From mapserver at mail.remote.org Sat Sep 1 04:10:35 2001 From: mapserver at mail.remote.org (Frederik Ramm) Date: Sat, 1 Sep 2001 13:10:35 +0200 Subject: [mapserver-users] Projection Problem Message-ID: <20010901131035.A32281@aruba.remote.org> Hi, I'm using Map Server v4.3 with PROJ support compiled in. I have a few shape files with European cities, rivers, and borders, downloaded from ESRI. I'm using the shp2img utility for testing. The data is in lat/long format. When not using a specific projection (i.e. no PROJECTION sections in my map file), I have to use EXTENT 5 47 17 58 to get a decent view of Germany & surrounding countries. There's a layer called "citynames", defined as follows (more or less copied from the demo application), which displays the city names just about right: LAYER NAME citynames TYPE ANNOTATION DATA awscitie STATUS ON LABELITEM "city_name" CLASSITEM "city_name" LABELMAXSCALE 500000 CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END END END After that success, I started using a projection. I inserted PROJECTION geographic END with all my layers, and PROJECTION "proj=tmerc" "ellps=WGS84" "lat_0=50" END in the MAP section and changed the extent to EXTENT 380246.45 -321450.90 998622.55 1017529.68 Now the streams, coastlines, and borders get displayed fine in the new projection, but the city labels do not show up any more. If I single out the "citynames" layer for display, I get a map of names only with the non-projection map file, and an empty image when I try to use the projection. Does anybody know why? The sample images I generated, the map files I was using, and the shapefiles are available here: http://www.remote.org/frederik/tmp/msproj.tgz (roughly 1 MB). Bye Frederik -- Frederik Ramm ## eMail frederik at remote.org ## N48?59.94 E008?24.36' From Russell.A.Moffitt at Dartmouth.EDU Sat Sep 1 15:13:20 2001 From: Russell.A.Moffitt at Dartmouth.EDU (Russell A. Moffitt) Date: 01 Sep 2001 18:13:20 EDT Subject: [mapserver-users] overlaying vector arrows on map Message-ID: <48736793@dasher.Dartmouth.EDU> A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1647 bytes Desc: not available URL: From sylvain.pasche at epfl.ch Mon Sep 3 00:49:26 2001 From: sylvain.pasche at epfl.ch (Sylvain Pasche) Date: Mon, 3 Sep 2001 09:49:26 +0200 (CEST) Subject: [mapserver-users] msQueryByPoint(): No matching record(s) Message-ID: <15251.13830.71533.171787@gargle.gargle.HOWL> About my version, I'm currently using the latest CVS version. In fact, the problem seems to be solved when I put together the two class sections of the layer: This is the old, not working version: LAYER NAME courses TYPE POINT STATUS ON DATA courses LabelItem "NOM" LabelMaxscale 99999 LabelMinscale 10000 CLASS SYMBOL 14 MAXSIZE 15 OUTLINECOLOR 255 0 0 COLOR 255 0 0 LABEL TYPE bitmap COLOR 255 0 0 BACKGROUNDCOLOR 255 220 220 POSITION AUTO END END TOLERANCE 12 HEADER "ID NOM ALTITUDE COORD_X COORD_Y" CLASSITEM "ID" CLASS EXPRESSION /./ TEMPLATE "ttt" END END # Layer And this is the new working version LAYER NAME courses TYPE POINT STATUS ON DATA courses LabelItem "NOM" LabelMaxscale 99999 LabelMinscale 10000 HEADER "ID NOM ALTITUDE COORD_X COORD_Y" CLASSITEM "ID" CLASS EXPRESSION /./ TEMPLATE "ttt" SYMBOL 14 MAXSIZE 15 OUTLINECOLOR 255 0 0 COLOR 255 0 0 LABEL TYPE bitmap COLOR 255 0 0 BACKGROUNDCOLOR 255 220 220 POSITION AUTO END END TOLERANCE 12 END # Layer Is it wrong to use two different classes ? (Or is this a bug ?) Sylvain -----Original Message----- From: "Stephen Lime" Date: Fri, 31 Aug 2001 09:15:38 -0500 How recent is your version? There have been changes made over that last 3 weeks that fix bugs releated to queries. My testing has things working very well now. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From ashish at manchitra.com Mon Sep 3 00:44:47 2001 From: ashish at manchitra.com (Ashish Mohan) Date: Mon, 3 Sep 2001 13:14:47 +0530 Subject: [mapserver-users] Any ideas on using Arabic TTFs? Message-ID: <003101c1344c$5184a190$120ba8c0@manchitra.co.in> Hi All. Does anybody have any idea as to how to use some Arabic font in mapserver. i did the usual stuff, like defining an alias for the font in a "fonts.list" file and using the alias name as the font for a particular layer to write some text on labels. but i get some garbage which i am unable to decipher. one thing which surprised me was the fact that no error code was returned throughout the code when i debugged it. however the desirable output was not produced. has anyone dealt with any arabic TTF before with mapserver? do we need to do something special for supporting arabic TTFs? i was able to display some kanji text. as far as i know, arabic must be supported by Unicode TTF. any ideas? i am using version 3.4 of mapserver along with the associated default libraries of GD, FreeType etc provided in the download. do i need to get the latest versions of the FreeType library and mapserver, to be able to support arabic fonts? thanks in advance. -ashish -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierrick.brihaye at culture.gouv.fr Mon Sep 3 02:24:02 2001 From: pierrick.brihaye at culture.gouv.fr (Pierrick Brihaye) Date: Mon, 03 Sep 2001 11:24:02 +0200 Subject: [mapserver-users] mapserver symbol error References: Message-ID: <3B934C32.209@culture.gouv.fr> Hi, Taken from : http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0105/msg00030.html > Version 3.4 - February 2001 > --------------------------- > > - SHADESET, LINESET, MARKERSET -> SYMBOLSET > All symbols files should be combined by cat'ing them together. > > - STYLED removed in symbol definitions > Brute force solution: flush all symbols with a STYLED from your .sym > files. If you want to use ms_demo with MapServer 3.5, read this important line : > So, to fix, move your TEMPLATE line into the CLASS object and remove the QUERY object. taken from : http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0108/msg00348.html This helped me *very* much to make the demo work with MapServer 3.5 ;-) p.b. setoadi, R wrote: I am new in mapserver. I am not successfully installing the ms_demo for mapserver 3.4 The error message is "getSymbol(): Symbol definition error. (STYLED):(6) " I think, the error caused my symbol.sym. . From ashish at manchitra.com Mon Sep 3 02:58:14 2001 From: ashish at manchitra.com (Ashish Mohan) Date: Mon, 3 Sep 2001 15:28:14 +0530 Subject: [mapserver-users] Query about line styles. Message-ID: <000801c1345e$f6a6a0d0$120ba8c0@manchitra.co.in> Hi All. Has anybody used different line-styles for rendering a shape layer with "line" features? How do we enable it? As far as i can make out, there was a keyword used in symbol.sym file with the name of "STYLED" but this is not supported anymore. How can I use mapserver to render line data with various line styles like dashed, thick lines, dashed-dotted-dashed etc. I am using mapserver 3.4. Thanks in advance. -ashish -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Mon Sep 3 07:19:28 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 03 Sep 2001 10:19:28 -0400 Subject: [mapserver-users] msQueryByPoint(): No matching record(s) References: <15251.13830.71533.171787@gargle.gargle.HOWL> Message-ID: <3B939170.64A2F90D@dmsolutions.ca> Sylvain, In your "old" example, the second class will never be used since the first class contains no expression and will catch all features. (i.e. no expression means catch all) This is not a bug... it's the way it should work... MapServer stops at the first class that matches a given feature and for this reason the catch all class should always be last if you have one. So in your case since you seem to want both classes to catch all features then the solution to the problem is what you did: merge them into a single class. Daniel Sylvain Pasche wrote: > > About my version, I'm currently using the latest CVS version. > > In fact, the problem seems to be solved when I put together the two > class sections of the layer: > > This is the old, not working version: > > LAYER > NAME courses > TYPE POINT > STATUS ON > DATA courses > LabelItem "NOM" > LabelMaxscale 99999 > LabelMinscale 10000 > CLASS > SYMBOL 14 > MAXSIZE 15 > OUTLINECOLOR 255 0 0 > COLOR 255 0 0 > LABEL > TYPE bitmap > COLOR 255 0 0 > BACKGROUNDCOLOR 255 220 220 > POSITION AUTO > END > END > TOLERANCE 12 > > HEADER "ID NOM ALTITUDE COORD_X COORD_Y" > CLASSITEM "ID" > CLASS > EXPRESSION /./ > TEMPLATE "ttt" > END > > END # Layer > > And this is the new working version > > LAYER > NAME courses > TYPE POINT > STATUS ON > DATA courses > LabelItem "NOM" > LabelMaxscale 99999 > LabelMinscale 10000 > > HEADER "ID NOM ALTITUDE COORD_X COORD_Y" > CLASSITEM "ID" > > CLASS > EXPRESSION /./ > TEMPLATE "ttt" > > SYMBOL 14 > MAXSIZE 15 > OUTLINECOLOR 255 0 0 > COLOR 255 0 0 > LABEL > TYPE bitmap > COLOR 255 0 0 > BACKGROUNDCOLOR 255 220 220 > POSITION AUTO > END > END > TOLERANCE 12 > END # Layer > > Is it wrong to use two different classes ? (Or is this a bug ?) > > Sylvain > > -----Original Message----- > From: "Stephen Lime" > Date: Fri, 31 Aug 2001 09:15:38 -0500 > > How recent is your version? There have been changes made over that last > 3 weeks that fix bugs releated to queries. My testing has things working > very well now. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From andreag at crs4.it Mon Sep 3 12:07:36 2001 From: andreag at crs4.it (A. Giacomelli) Date: Mon, 03 Sep 2001 21:07:36 +0200 Subject: [mapserver-users] Mapserv reporting error reading item added to DBF file Message-ID: <3B93D4F8.14176B27@crs4.it> Hi, I am running mapserver 3.4 on winnt. I have added (via ArcView) a column to one of my DBF files, to provide information necessary for classification of my features. Mapserv complains that it cannot find the item with the name corresponding to the new column....(the error comes from msFindRecords()). Any suggestions ? TIA and regards, -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia http://www.crs4.it/~andreag ========================================= From JohnHockaday at auslig.gov.au Mon Sep 3 15:32:38 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Tue, 4 Sep 2001 08:32:38 +1000 Subject: [mapserver-users] Mapserv reporting error reading item added to DBF file Message-ID: <53273E187450D311ACF6009027927B12022C0EDE@smtpgate.auslig.gov.au> Andrea, I'm not sure that this is the problem but this may help. The name of the attribute column is case sensitive. ArcView often shows the name of the attribute column in a different case to its actual case especially if you are using a PC. Try finding out the actual case of the name of the attribute column and using that in the mapserv map file. John > -----Original Message----- > From: A. Giacomelli [SMTP:andreag at crs4.it] > Sent: Tuesday, September 04, 2001 5:08 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Mapserv reporting error reading item added > to DBF file > > Hi, > > I am running mapserver 3.4 on winnt. > > I have added (via ArcView) a column to one of my DBF files, to provide > information necessary for classification of my features. > Mapserv complains that it cannot find the item with the name > corresponding to the new column....(the error comes from > msFindRecords()). > > Any suggestions ? > > TIA and regards, > -- > ========================================= > Andrea Giacomelli > Centre for Advanced Studies, Research and > Development in Sardinia > > http://www.crs4.it/~andreag > ========================================= From mapserver at mail.remote.org Mon Sep 3 16:09:38 2001 From: mapserver at mail.remote.org (Frederik Ramm) Date: Tue, 4 Sep 2001 01:09:38 +0200 Subject: [mapserver-users] GTOPO30, Raster Maps, and Projections Message-ID: <20010904010938.A10466@aruba.remote.org> Hi, I'm using MapServer 4.3 (but will upgrade to 4.4/4.5 if required to solve my problem). I have a PNG map of Europe, generated from GTOPO30 elevation data. I created it using the free "drawmap" utility; the file is 1920x2540 pixels in size and depicts the area from (30N,10W) to (70N,20E). As far as I understand, drawmap doesn't really use a proper projection, it just stretches the grid to match whatever coordinates and pixel sizes I specify. How can I use this PNG bitmap as a raster background for my MapServer maps? I have read the relevant documentation and got "something" to show up but I am at a loss how to create a proper world file for the data I have. The docs say: "The world file contents look like the following. The first coefficient is the X pixel size. The second and third are rotational coefficients (and should normally be NULL). The fourth is the Y pixel size, normally negative indicating that Y decreases as you move down from the top left origin. The final two values are the X and Y location of the center of the top left pixel." This seems to imply that I need a bitmap in which the pixel size (in meters) is constant - something which cannot be said of my map! If this is too difficult, then is there some other way to use GTOPO30 data with MapServer (besides creating raster files with drawmap and taking it from there)? Thanks, Frederik -- Frederik Ramm ## eMail frederik at remote.org ## N48?59.94 E008?24.36' From armin.burger at territoriumonline.com Tue Sep 4 01:27:58 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Tue, 4 Sep 2001 10:27:58 +0200 Subject: [mapserver-users] GTOPO30, Raster Maps, and Projections Message-ID: <200109040731.JAA29417@efferd.nettz.com> Frederik, you could try it with a world file 'yourimage.pgw' and the values 0.015625 0.000000 0.000000 -0.015748 -10.00000 70.00000 Armin > Hi, > I'm using MapServer 4.3 (but will upgrade to 4.4/4.5 if required to > solve my problem). > I have a PNG map of Europe, generated from GTOPO30 elevation data. I > created it using the free "drawmap" utility; the file is 1920x2540 > pixels in size and depicts the area from (30N,10W) to (70N,20E). > As far as I understand, drawmap doesn't really use a proper > projection, it just stretches the grid to match whatever coordinates > and pixel sizes I specify. > How can I use this PNG bitmap as a raster background for my MapServer > maps? I have read the relevant documentation and got "something" > to show up but I am at a loss how to create a proper world file for > the data I have. The docs say: > "The world file contents look like the following. The first > coefficient is the X pixel size. The second and third are rotational > coefficients (and should normally be NULL). The fourth is the Y pixel > size, normally negative indicating that Y decreases as you move down > from the top left origin. The final two values are the X and Y > location of the center of the top left pixel." > This seems to imply that I need a bitmap in which the pixel size (in > meters) is constant - something which cannot be said of my map! > If this is too difficult, then is there some other way to use GTOPO30 > data with MapServer (besides creating raster files with drawmap and > taking it from there)? > Thanks, > Frederik > -- > Frederik Ramm ## eMail frederik at remote.org ## N48?59.94 E008?24.36' From marin at here.is Tue Sep 4 04:12:00 2001 From: marin at here.is (Ma) Date: Tue, 04 Sep 2001 11:12:00 +0000 Subject: [mapserver-users] GTOPO30, Raster Maps, and Projections References: <20010904010938.A10466@aruba.remote.org> Message-ID: <3B94B700.9D8FE38D@here.is> One more question: Is it possible to use ESRI GRID with Mapserver? How? Because GTOPO can be easily converted to GRID (yes, I know that GRID can be covered to SHP file). -- Ma Frederik Ramm wrote: > Hi, > > I'm using MapServer 4.3 (but will upgrade to 4.4/4.5 if required to > solve my problem). > > I have a PNG map of Europe, generated from GTOPO30 elevation data. I > created it using the free "drawmap" utility; the file is 1920x2540 > pixels in size and depicts the area from (30N,10W) to (70N,20E). > > As far as I understand, drawmap doesn't really use a proper > projection, it just stretches the grid to match whatever coordinates > and pixel sizes I specify. > > How can I use this PNG bitmap as a raster background for my MapServer > maps? I have read the relevant documentation and got "something" > to show up but I am at a loss how to create a proper world file for > the data I have. The docs say: > > "The world file contents look like the following. The first > coefficient is the X pixel size. The second and third are rotational > coefficients (and should normally be NULL). The fourth is the Y pixel > size, normally negative indicating that Y decreases as you move down > from the top left origin. The final two values are the X and Y > location of the center of the top left pixel." > > This seems to imply that I need a bitmap in which the pixel size (in > meters) is constant - something which cannot be said of my map! > > If this is too difficult, then is there some other way to use GTOPO30 > data with MapServer (besides creating raster files with drawmap and > taking it from there)? > > Thanks, > Frederik > > -- > Frederik Ramm ## eMail frederik at remote.org ## N48?59.94 E008?24.36' From teb at mallit.fr.umn.edu Tue Sep 4 06:30:12 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 4 Sep 2001 08:30:12 -0500 (CDT) Subject: [mapserver-users] Looking for Compiled Mapserver 3.5 execute file (fwd) Message-ID: <200109041330.IAA09805@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Originating-IP: [193.116.20.221] From: "Eric Tang" To: mapserver-info at lists.gis.umn.edu Subject: Looking for Compiled Mapserver 3.5 execute file Date: Tue, 04 Sep 2001 01:00:17 +0000 Mime-Version: 1.0 X-OriginalArrivalTime: 04 Sep 2001 01:00:17.0621 (UTC) FILETIME=[F6816850:01C134DC] Anyone have compiled Mapserver 3.5 execute file? I just download the 3.5 demo, and try to see the demo on WinNT platform. Regards, Eric _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp ------------- End Forwarded Message ------------- From John.Arthur at voicestream.com Tue Sep 4 07:01:22 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Tue, 4 Sep 2001 07:01:22 -0700 Subject: [mapserver-users] Itemquery in Mapscript(PHP) Message-ID: <987E5CD7052ED51198F400508BA25279089EDE@vamerrifms01.gsm1900.org> That was it! Thanks Laurent & Daniel. Now all I have to do is to get it to zoom. By the way,... does this happen with IIS also? John Arthur -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Tuesday, September 04, 2001 9:19 AM To: Arthur, John Subject: Re: [mapserver-users] Itemquery in Mapscript(PHP) "Arthur, John" wrote: > > Laurent, > > Thanks for your help. I must be doing something wrong, it didn't seem to > work for me. I'm using 3.5 > When I run the search the first time, the map is returned, but nothing is > highlighted or zoomed. > When I run the search the second time, an error is returned: > Warning: MapServer Error in msLoadMap(): ():(0) in c:\program > files\apache group\apache\mapinfo\htdocs\drawquery.php on line 7 > Did you install PHP under Apache as a CGI? On Windows PHP MapScript won't work well with PHP installed as an Apache module. If you downloaded the Win32 PHP4 distribution from http://php.net/ then see the file "install.txt" that was included in the ZIP file and make sure you follow the CGI installation for your web server. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Rich at GreenwoodMap.com Tue Sep 4 07:24:41 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Tue, 04 Sep 2001 08:24:41 -0600 Subject: [mapserver-users] mapplet boxoff() Message-ID: <5.1.0.14.0.20010904080955.00b1c468@mail.GreenwoodMap.com> Hello Mappers; I'm having trouble with the Java mapplet boxoff() function. If I go document.mapplet.boxoff(); I end up in an endless loop in which the form keeps getting submitted to the server. boxon() seems to work fine for me. A simple example of boxoff() would be greatly appreciated even if you can't directly answer my question. Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From assefa at dmsolutions.ca Tue Sep 4 07:21:24 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Tue, 04 Sep 2001 10:21:24 -0400 Subject: [mapserver-users] Looking for Compiled Mapserver 3.5 execute file (fwd) References: <200109041330.IAA09805@mallit.fr.umn.edu> Message-ID: <3B94E364.83C90244@dmsolutions.ca> There is a mapserver executable (latest version from the CVS) on our download site : http://www2.dmsolutions.ca/webtools/dl/php4.0.6_php_mapscript_35.zip. Hope it helps, Later, teb wrote: > ------------- Begin Forwarded Message ------------- > > X-Originating-IP: [193.116.20.221] > From: "Eric Tang" > To: mapserver-info at lists.gis.umn.edu > Subject: Looking for Compiled Mapserver 3.5 execute file > Date: Tue, 04 Sep 2001 01:00:17 +0000 > Mime-Version: 1.0 > X-OriginalArrivalTime: 04 Sep 2001 01:00:17.0621 (UTC) > FILETIME=[F6816850:01C134DC] > > Anyone have compiled Mapserver 3.5 execute file? > I just download the 3.5 demo, and try to see the demo on WinNT > platform. > > Regards, > Eric > > _________________________________________________________________ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp > > ------------- End Forwarded Message ------------- -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From vkurnosov at softech.ru Tue Sep 4 07:41:16 2001 From: vkurnosov at softech.ru (Vladislav Kurnosov) Date: Tue, 4 Sep 2001 18:41:16 +0400 Subject: [mapserver-users] Itemquery in Mapscript(PHP) In-Reply-To: <987E5CD7052ED51198F400508BA25279089EDE@vamerrifms01.gsm1900.org> References: <987E5CD7052ED51198F400508BA25279089EDE@vamerrifms01.gsm1900.org> Message-ID: <2778.010904@softech.ru> It seems as the mapserver code doesn't support multithreading at all (I mean apartment-type threading, not free-threading). Vladislav Kurnosov Tuesday, September 04, 2001, 6:01:22 PM, you wrote: > That was it! Thanks Laurent & Daniel. Now all I have to do is to get it to > zoom. > By the way,... does this happen with IIS also? > John Arthur > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Tuesday, September 04, 2001 9:19 AM > To: Arthur, John > Subject: Re: [mapserver-users] Itemquery in Mapscript(PHP) > "Arthur, John" wrote: >> >> Laurent, >> >> Thanks for your help. I must be doing something wrong, it didn't seem to >> work for me. I'm using 3.5 >> When I run the search the first time, the map is returned, but nothing is >> highlighted or zoomed. >> When I run the search the second time, an error is returned: >> Warning: MapServer Error in msLoadMap(): ():(0) in c:\program >> files\apache group\apache\mapinfo\htdocs\drawquery.php on line 7 >> > Did you install PHP under Apache as a CGI? On Windows PHP MapScript > won't work well with PHP installed as an Apache module. > If you downloaded the Win32 PHP4 distribution from http://php.net/ then > see the file "install.txt" that was included in the ZIP file and make > sure you follow the CGI installation for your web server. From morissette at dmsolutions.ca Tue Sep 4 07:37:53 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 04 Sep 2001 10:37:53 -0400 Subject: [mapserver-users] Itemquery in Mapscript(PHP) References: <987E5CD7052ED51198F400508BA25279089EDE@vamerrifms01.gsm1900.org> Message-ID: <3B94E741.92A1A172@dmsolutions.ca> "Arthur, John" wrote: > > That was it! Thanks Laurent & Daniel. Now all I have to do is to get it to > zoom. > By the way,... does this happen with IIS also? > Yes, it's the same with any web server on Windows: PHP4 MUST be installed as a CGI and not as a module/ISAPI extension because the module/ISAPI implementation of PHP4 uses threads and php_mapscript.dll is not thread-safe. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bfischer at mpls.houstoneng.com Tue Sep 4 08:59:48 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Tue, 4 Sep 2001 10:59:48 -0500 Subject: [mapserver-users] mapplet boxoff() Message-ID: <8879CCE0F0187742B7302A93A8B87B090284E8@mpls.houstoneng.com> I ran into this exact same problem, when I tried to implement the mapplet. I thought I was just doing something wrong, but maybe not. Boxon() also worked just fine for me. Thanks, Brian -----Original Message----- From: Richard Greenwood [mailto:Rich at GreenwoodMap.com] Sent: Tuesday, September 04, 2001 9:25 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] mapplet boxoff() Hello Mappers; I'm having trouble with the Java mapplet boxoff() function. If I go document.mapplet.boxoff(); I end up in an endless loop in which the form keeps getting submitted to the server. boxon() seems to work fine for me. A simple example of boxoff() would be greatly appreciated even if you can't directly answer my question. Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From steve.lime at dnr.state.mn.us Tue Sep 4 09:02:21 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 04 Sep 2001 11:02:21 -0500 Subject: [mapserver-users] Any ideas on using Arabic TTFs? Message-ID: My guess is you'll need newer versions of GD since that's where much of the language support lives. Try 1.8.x and see what happens. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ashish Mohan" 09/03/01 02:44AM >>> Hi All. Does anybody have any idea as to how to use some Arabic font in mapserver. i did the usual stuff, like defining an alias for the font in a "fonts.list" file and using the alias name as the font for a particular layer to write some text on labels. but i get some garbage which i am unable to decipher. one thing which surprised me was the fact that no error code was returned throughout the code when i debugged it. however the desirable output was not produced. has anyone dealt with any arabic TTF before with mapserver? do we need to do something special for supporting arabic TTFs? i was able to display some kanji text. as far as i know, arabic must be supported by Unicode TTF. any ideas? i am using version 3.4 of mapserver along with the associated default libraries of GD, FreeType etc provided in the download. do i need to get the latest versions of the FreeType library and mapserver, to be able to support arabic fonts? thanks in advance. -ashish From steve.lime at dnr.state.mn.us Tue Sep 4 12:14:15 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 04 Sep 2001 14:14:15 -0500 Subject: [mapserver-users] Query about line styles. Message-ID: There have been several threads in the past about this complete with examples. Have a look though the message archive first and then I'll be glad to tackle specific questions at that point. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ashish Mohan" 09/03/01 04:58AM >>> Hi All. Has anybody used different line-styles for rendering a shape layer with "line" features? How do we enable it? As far as i can make out, there was a keyword used in symbol.sym file with the name of "STYLED" but this is not supported anymore. How can I use mapserver to render line data with various line styles like dashed, thick lines, dashed-dotted-dashed etc. I am using mapserver 3.4. Thanks in advance. -ashish From Stuart.Row at brs.gov.au Tue Sep 4 16:41:15 2001 From: Stuart.Row at brs.gov.au (Stuart.Row at brs.gov.au) Date: Wed, 5 Sep 2001 09:41:15 +1000 Subject: [mapserver-users] mapplet boxoff() Message-ID: <595FE28AB1EBD111920F0060B06B3DD709A08928@ACTMAIL2> Richard, If you have a look in mapplet.java you will notice that the boxoff function includes a call to 'repaint();' whereas boxon does not. I don't understand why and personally would be happier if it wasn't there, but that is the reason you get the endless loop. I have removed any calls to boxon and boxoff for this reason. A shame as it is a really useful function. Cheers, Stuart Row Bureau of Rural Sciences Tel: +61 2 6272 4640 Email: stuart.row at brs.gov.au Fax: +61 2 6272 4687 Web: http://www.affa.gov.au -----Original Message----- From: Richard Greenwood [mailto:Rich at GreenwoodMap.com] Sent: Tuesday, September 04, 2001 9:25 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] mapplet boxoff() Hello Mappers; I'm having trouble with the Java mapplet boxoff() function. If I go document.mapplet.boxoff(); I end up in an endless loop in which the form keeps getting submitted to the server. boxon() seems to work fine for me. A simple example of boxoff() would be greatly appreciated even if you can't directly answer my question. Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From steve.lime at dnr.state.mn.us Tue Sep 4 19:39:28 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 04 Sep 2001 21:39:28 -0500 Subject: [mapserver-users] mapplet boxoff() Message-ID: The call to repaint is there to clear the screen of any box currently displayed, hence the name boxoff(). With boxon() there generally nothing else painted so there's no need repaint. I really don't think repaint is the source of the loop since all painting does is draw a box or crosshair and the map and never triggers calls back to javascript. There is some thread related code in there that does end up communicating back to the browser and that's the problem. (the threading code is there to deal with issues related to browser response while waiting for the applet to do something, long story) The error is most likely in the implementation of the mapplet_apply() method in javascript. The redraw patameter is there for just this circumstance. It signifies whether the call to mapplet_apply is worthy of action by the browser, either a form submission or a call to the applet swap method. Simply wrap your code in something like this: function mapplet_apply(...) { if(redraw) { ... your code here ... } } and you shouldn't have any problems. I know this seems a tad convoluted but there are good reasons for the redraw parameter. With boxoff you want to communicate the collapsed box coordinates to the browser but that in itself doesn't warrant further action. Same goes for swapping images, you want to reset the cursor (i.e. imgxy and imgbox) but don't want to trigger another redraw. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 09/04/01 18:45 PM >>> Richard, If you have a look in mapplet.java you will notice that the boxoff function includes a call to 'repaint();' whereas boxon does not. I don't understand why and personally would be happier if it wasn't there, but that is the reason you get the endless loop. I have removed any calls to boxon and boxoff for this reason. A shame as it is a really useful function. Cheers, Stuart Row Bureau of Rural Sciences Tel: +61 2 6272 4640 Email: stuart.row at brs.gov.au Fax: +61 2 6272 4687 Web: http://www.affa.gov.au -----Original Message----- From: Richard Greenwood [mailto:Rich at GreenwoodMap.com] Sent: Tuesday, September 04, 2001 9:25 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] mapplet boxoff() Hello Mappers; I'm having trouble with the Java mapplet boxoff() function. If I go document.mapplet.boxoff(); I end up in an endless loop in which the form keeps getting submitted to the server. boxon() seems to work fine for me. A simple example of boxoff() would be greatly appreciated even if you can't directly answer my question. Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From jimburnett at ntelos.net Wed Sep 5 07:43:07 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 5 Sep 2001 10:43:07 -0400 Subject: [mapserver-users] Putting a point on my map Message-ID: <01090510430703.27103@Xero> OK, could someone point me in the right direction as to wich function in MapScript I would use to get a point to show up on parcels? So if I do a search on my data, it would put dots, or push pins on the parcels. I can get the extents of those parcels, but what function do I use to put a Dot or Pin at those extents? thanks! -jim From M.Achtzehn at cui.de Wed Sep 5 07:53:50 2001 From: M.Achtzehn at cui.de (Michael Achtzehn) Date: Wed, 5 Sep 2001 16:53:50 +0200 Subject: [mapserver-users] mapxy + scale / buffer not work! Message-ID: <000001c1361a$93d2a630$11c8a8c6@cui.de> Hallo, An apparent old problem, for which I could not discover a solution in the Mailing. I would like to determine an object with one ID (here regnrba) ) from a data base to display. With ITEMQUERY mode and using MAPXY=SHAPE I would like to show the result on certain scale, but BUFFER or SCALE parameter does nothing. Where are the contents of the variable shapes defined - is ' shapes " a variable or a keyword for the map server? Do I have to make 'shapes' special entries for the definition of in templete file? Where is the mistake - how can I solve my problem? (I work with mapserver 3.4 on Win NT.) my data: URL: http://ms_test.cui.de/cgi-bin/mapserv.exe?map=ms_demo/isab02.map&layer=lsa_tfb&mode=itemquery&item=regnrba&value=1105-41/15&mapxy=shapes;scale=50000 mapfile: map extent 4401328.5 5644860.0 4582087.0 5878911.5 imagecolor 255 255 255 name "isab02" shapepath "data" size 600 600 status on symbolset "symbols/all.sym" #MA fontset eingef?gt f?r Beschriftung der Lables fontset "font.set" units meters # 1 web isab01.html web footer "isab02_footer.html" header "isab02_header.html" imagepath "C:/Inetpub/wwwroot/ms_demo/tmp/" imageurl "/ms_demo/tmp/" template "isab02.html" end # 2 querymap hilite querymap STATUS ON STYLE HILITE COLOR 255 255 0 size 700 500 end # 3 scalebar #none 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 # 1 label #none label backgroundcolor 0 0 0 color 255 255 0 size tiny end end # 4 layer lsarb layer classitem "MERGE_RP" data "lsarb" # group "lsarb" labelcache on labelitem "MERGE_RP" name "lsarb" # postlabelcache true # Wenn Option aktiv erscheint Fl?che immer oben queryitem "MERGE_RP" status on type polygon # 2 class {RP Dessau} class color 255 217 125 SYMBOL 2 expression "151" name "RP Dessau" outlinecolor 0 0 0 label color 0 128 255 end # label end # 3 class {RP Halle} class color 255 251 195 expression "152" name "RP Halle" outlinecolor 0 0 0 label color 0 128 255 end # label end # 4 class {RP Magdeburg} class color 183 223 134 expression "153" name "RP Magdeburg" outlinecolor 0 0 0 label color 0 128 255 end # label end end # # 5 layer lsa_tfb layer name "lsa_tfb" type polygon status on data "lsa_tfb" header "lsa_tfb_header.html" # 1 query #none query template "lsa_tfb_query.html" end minscale 10000 labelcache on labelitem "REGNR_BA" # postlabelcache true # wenn Option aktiv, kein Hiliting in der Abfrage! # 2 class lsa_tfb_1 class name "Tiefbauflaechen" SYMBOL 0 color 230 221 251 outlinecolor 0 0 0 # 1 label #none label angle auto antialias backgroundcolor 250 250 150 buffer 2 #Gr??e des Labels (MA) color 140 70 5 font "arial" maxsize 12 minsize 7 position cr size small type truetype end # label end end # 6 reference graphics/reference.gif reference color -1 -1 -1 extent 4401328.5 5644860.0 4582087.0 5878911.5 image "graphics/reference.gif" outlinecolor 255 0 0 size 120 120 status on end # 8 legend #none legend keysize 18 12 status on # 1 label #none label color 0 0 89 size medium type bitmap end end end _ query_templet:

Informationssystem Altbergbau

Abfrageergebnis
Thank you Michael Achtzehn Dipl.-Ing. M. Achtzehn CUI - Consultinggesellschaft f?r Umwelt und Infrastruktur Eisenbahnstra?e 10 06132 Halle ____________________ www.cui.de Tel.: 0345 7742 749 Fax.: 0345 7742 754 From Pietro.Musella at Informsrl.it Wed Sep 5 08:33:00 2001 From: Pietro.Musella at Informsrl.it (Musella Pietro) Date: Wed, 5 Sep 2001 16:33:00 +0100 Subject: [mapserver-users] Frame & Mapserver Message-ID: Hi All, where can I find some examples in which it comes used mapserver, page HTML with frame and Rosa Applet. Thanks Pietro Musella -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreag at crs4.it Wed Sep 5 10:32:10 2001 From: andreag at crs4.it (A. Giacomelli) Date: Wed, 05 Sep 2001 19:32:10 +0200 Subject: [mapserver-users] adding labels via php mapscript Message-ID: <3B96619A.26B23ADD@crs4.it> Hi, I'm talking about adding labels/annotation dynamically via a ms_point->draw method. I know this has already been discussed on the list, and I have the postings from the archives, but it's not getting to work. I would appreciate if you could check the code snippets included. There was also a similar posting a couple of weeks ago, but I think it is not related to the same version of mapserv, and was referring to polygons, rather than points, so I would like to double check... I am currently working on 3.4 + php4. TIA for any suggestions, =============================================== Here goes the code. It's supposed to write MYSTRING in the middle of my image. =============================================== PHPmapscript part: ...... $mylayer = $gpoMap->getLayerByName("credits"); $txtp = ms_newpointobj(); $txtp->setXY( $myMap->extent->miny + ($gpoMap->extent->max - $gpoMap->extent->minx)/2 , $gpoMap->extent->miny + ($gpoMap->ex tent->maxy -$gpoMap->extent->miny )/2); //$txtp->draw($myMap,$mylayer,$img,"credits","MYSTRING"); $txtp->draw($myMap,$mylayer,$img,0,"MYSTRING"); ...... ------------------------------------------------- MAP file ...... LAYER NAME credits TYPE POINT # TRIED ALSO W/ ANNOTATION STATUS ON CLASS NAME credits COLOR 0 0 255 LABEL COLOR 0 0 255 FORCE TRUE TYPE TRUETYPE FONT fritqat-italic MINSIZE 15 MAXSIZE 30 END END END ..... -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia http://www.crs4.it/~andreag ========================================= From jason.coutermarsh at crrel.usace.army.mil Wed Sep 5 13:56:32 2001 From: jason.coutermarsh at crrel.usace.army.mil (Jason Coutermarsh) Date: Wed, 5 Sep 2001 16:56:32 -0400 Subject: [mapserver-users] Changing projection of Mapscript-created layer Message-ID: Hi! I'm trying to place a label on a point using Mapscript. The map file I'm using is in Geographic projection. I create a new layer in Mapscript so I can set the label properties, and I need to know how to set the projection of the layer. I've tried $labellayer->setProjection("geographic"); with no luck. Mapscript doesn't seem to care what the projection is set to. I don't get an error, but I also don't get a point. Thanks. Jason Coutermarsh Jason.Coutermarsh at crrel.usace.army.mil From steve.lime at dnr.state.mn.us Wed Sep 5 14:04:53 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 05 Sep 2001 16:04:53 -0500 Subject: [mapserver-users] mapxy + scale / buffer not work! Message-ID: Hi Michael: You're correct, this doesn't work on 3.4, but will in 3.5 (currently doesn't). It's not a technical issue rather one of priorities in getting things working. You can work around this by not using a query map but rather adding a second layer to use in displaying the query results. For this second layer you're going to modify the class expression dynamically to isolate the chosen record and draw it special. You do this within an tag that normally would be used to display the querymap. Here's how: - add a second layer to your mapfile, it should reference the same data as you want to query and define the class to draw the selected feature as you wish, the class item should be 'regnrba'. Don't define a class expression. Place this layer AFTER the main layer and set it's status to OFF. - drop the query map from your mapfile - add something like this to your template (assuming new layer is called foo) What that call does is creates a map: - centered on the shape - with an extent defined by the value of buffer (could also use scale) - preserves any layers that were already on using [getlayers] - turns on the new layer "foo" - sets the expression for the first CLASS in foo to be the value of the item REGNRBA What the value for map_foo_class_expression should be will depend on what valid values in REGNRBA is. If it's strictly a number then you have to enclose it in double quotes for mapserver to treat it correctly, just use map_foo_class_expression=%22[REGNRBA]%22 instead. You could also use other unique column values to isolate the record. Hope this helps. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Michael Achtzehn" 09/05/01 09:53AM >>> Hallo, An apparent old problem, for which I could not discover a solution in the Mailing. I would like to determine an object with one ID (here regnrba) ) from a data base to display. With ITEMQUERY mode and using MAPXY=SHAPE I would like to show the result on certain scale, but BUFFER or SCALE parameter does nothing. Where are the contents of the variable shapes defined - is ' shapes " a variable or a keyword for the map server? Do I have to make 'shapes' special entries for the definition of in templete file? Where is the mistake - how can I solve my problem? (I work with mapserver 3.4 on Win NT.) my data: URL: http://ms_test.cui.de/cgi-bin/mapserv.exe?map=ms_demo/isab02.map&layer=lsa_tfb&mode=itemquery&item=regnrba&value=1105-41/15&mapxy=shapes;scale=50000 mapfile: map extent 4401328.5 5644860.0 4582087.0 5878911.5 imagecolor 255 255 255 name "isab02" shapepath "data" size 600 600 status on symbolset "symbols/all.sym" #MA fontset eingef?gt f?r Beschriftung der Lables fontset "font.set" units meters # 1 web isab01.html web footer "isab02_footer.html" header "isab02_header.html" imagepath "C:/Inetpub/wwwroot/ms_demo/tmp/" imageurl "/ms_demo/tmp/" template "isab02.html" end # 2 querymap hilite querymap STATUS ON STYLE HILITE COLOR 255 255 0 size 700 500 end # 3 scalebar #none 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 # 1 label #none label backgroundcolor 0 0 0 color 255 255 0 size tiny end end # 4 layer lsarb layer classitem "MERGE_RP" data "lsarb" # group "lsarb" labelcache on labelitem "MERGE_RP" name "lsarb" # postlabelcache true # Wenn Option aktiv erscheint Fl?che immer oben queryitem "MERGE_RP" status on type polygon # 2 class {RP Dessau} class color 255 217 125 SYMBOL 2 expression "151" name "RP Dessau" outlinecolor 0 0 0 label color 0 128 255 end # label end # 3 class {RP Halle} class color 255 251 195 expression "152" name "RP Halle" outlinecolor 0 0 0 label color 0 128 255 end # label end # 4 class {RP Magdeburg} class color 183 223 134 expression "153" name "RP Magdeburg" outlinecolor 0 0 0 label color 0 128 255 end # label end end # # 5 layer lsa_tfb layer name "lsa_tfb" type polygon status on data "lsa_tfb" header "lsa_tfb_header.html" # 1 query #none query template "lsa_tfb_query.html" end minscale 10000 labelcache on labelitem "REGNR_BA" # postlabelcache true # wenn Option aktiv, kein Hiliting in der Abfrage! # 2 class lsa_tfb_1 class name "Tiefbauflaechen" SYMBOL 0 color 230 221 251 outlinecolor 0 0 0 # 1 label #none label angle auto antialias backgroundcolor 250 250 150 buffer 2 #Gr??e des Labels (MA) color 140 70 5 font "arial" maxsize 12 minsize 7 position cr size small type truetype end # label end end # 6 reference graphics/reference.gif reference color -1 -1 -1 extent 4401328.5 5644860.0 4582087.0 5878911.5 image "graphics/reference.gif" outlinecolor 255 0 0 size 120 120 status on end # 8 legend #none legend keysize 18 12 status on # 1 label #none label color 0 0 89 size medium type bitmap end end end _ query_templet:

Informationssystem Altbergbau

Abfrageergebnis
Thank you Michael Achtzehn Dipl.-Ing. M. Achtzehn CUI - Consultinggesellschaft f?r Umwelt und Infrastruktur Eisenbahnstra?e 10 06132 Halle ____________________ www.cui.de Tel.: 0345 7742 749 Fax.: 0345 7742 754 From steve.lime at dnr.state.mn.us Wed Sep 5 14:10:54 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 05 Sep 2001 16:10:54 -0500 Subject: [mapserver-users] Putting a point on my map Message-ID: Assuming you've working within a layer that has already been defined or read from a mapfile, and that the coordinates reside in a pointObj then you use the draw method. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Jim Burnett 09/05/01 09:43AM >>> OK, could someone point me in the right direction as to wich function in MapScript I would use to get a point to show up on parcels? So if I do a search on my data, it would put dots, or push pins on the parcels. I can get the extents of those parcels, but what function do I use to put a Dot or Pin at those extents? thanks! -jim From steve.lime at dnr.state.mn.us Wed Sep 5 15:50:41 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 05 Sep 2001 17:50:41 -0500 Subject: [mapserver-users] adding labels via php mapscript Message-ID: Assuming your allowing for cached labels you need to call the drawLabelCache method once your done with all drawing (and before outputing the image of course). This applies to all layer types. Unless specificly disabled drawing of the cache takes place post feature rendering. The mapObj draw method takes care of this for you but in this case you must manually call it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "A. Giacomelli" 09/05/01 12:35 PM >>> Hi, I'm talking about adding labels/annotation dynamically via a ms_point->draw method. I know this has already been discussed on the list, and I have the postings from the archives, but it's not getting to work. I would appreciate if you could check the code snippets included. There was also a similar posting a couple of weeks ago, but I think it is not related to the same version of mapserv, and was referring to polygons, rather than points, so I would like to double check... I am currently working on 3.4 + php4. TIA for any suggestions, =============================================== Here goes the code. It's supposed to write MYSTRING in the middle of my image. =============================================== PHPmapscript part: ...... $mylayer = $gpoMap->getLayerByName("credits"); $txtp = ms_newpointobj(); $txtp->setXY( $myMap->extent->miny + ($gpoMap->extent->max - $gpoMap->extent->minx)/2 , $gpoMap->extent->miny + ($gpoMap->ex tent->maxy -$gpoMap->extent->miny )/2); //$txtp->draw($myMap,$mylayer,$img,"credits","MYSTRING"); $txtp->draw($myMap,$mylayer,$img,0,"MYSTRING"); ...... ------------------------------------------------- MAP file ...... LAYER NAME credits TYPE POINT # TRIED ALSO W/ ANNOTATION STATUS ON CLASS NAME credits COLOR 0 0 255 LABEL COLOR 0 0 255 FORCE TRUE TYPE TRUETYPE FONT fritqat-italic MINSIZE 15 MAXSIZE 30 END END END ..... -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia http://www.crs4.it/~andreag ========================================= From dblasby at refractions.net Wed Sep 5 16:58:15 2001 From: dblasby at refractions.net (Dave Blasby) Date: Wed, 05 Sep 2001 16:58:15 -0700 Subject: [mapserver-users] Mapserver itemquery - hand off to database engine References: Message-ID: <3B96BC17.EAC5B33B@refractions.net> I've had a few requests from people using PostGIS and item queries. It appears that mapserver is requesting the entire dataset and doing the item query search itself. It would be very much faster if it just handed this search off to the database engine. So, how do I go about making these modification? I looked at "msQueryByAttributes()" and it might make sense, for PostGIS and SDE layers, to just throw the attribute query into the layer's filter. It seems like the path of least resistance because a normal msLayerWhichShapes() can be called. What are the implications of doing something like this? What about modifying other queries? dave From mapserver at lists.remote.org Wed Sep 5 17:02:54 2001 From: mapserver at lists.remote.org (Frederik Ramm) Date: Thu, 6 Sep 2001 02:02:54 +0200 Subject: [mapserver-users] Faster MapServer Stand-Alone? Message-ID: <20010906020254.A6404@aruba.remote.org> Hi, I've been looking at using the MapServer for a project of mine in which I have to create map images with minimal delay. Please correct me if I'm wrong but I got the impression that, basically, the MapServer will always run as a CGI. That means that for each request it will not only start a new process but also open and parse the map and all shape files. Then, it creates an output file which will be read by the web server in order to pass it on to the client. I haven't run any load tests but it seems obvious that this wastes a lot of performance. Hence I played around and built a stand-alone web server (which does the listen, accept, and fork) and then produces an image, along the lines of shp2img but at the end the image is sent out on the socket without further temp file creation. For the client, the whole operation looks identical to a standard CGI request. Of course my server is nowehere near as efficient and configurable as, say, an Apache server, but it isn't meant as a replacement for those - my server doesn't serve files or CGI scripts, just generated maps. Of course this whole process only improves things if I can read and pre-process as much of the map data as possible. Reading the map file in advance is trivial (in my scenario, the map file will be the same for all requests, but the extent and maybe the layer selection will change). I might want to support different projections but I could perhaps try and pre-initialize the relevant PROJ structures. I have not looked at the shapefile processing too closely but it seems that the shapefiles are parsed for each request. Is the shapefile format already so efficient that placing the shapefiles on a RAM disk (or using a decent buffering file system) will create near-optimum performance, or would it be worthwhile to try and pre-load all the shape data from the start? Maybe someone else has played around with this concept. Especially, I'd like to know how far I can go along this road without having to re-write large parts of the MapServer. Of course I'd prefer to just write a MapServer add-on but if it turns out that pre-loading stuff is just not supported anywhere by any means, then my project would become one hell of a "diff-and-patch" exercise in no time :-) Bye Frederik -- Frederik Ramm ## eMail frederik at remote.org ## N48?59.94 E008?24.36' From pramsey at refractions.net Wed Sep 5 18:25:52 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 05 Sep 2001 18:25:52 -0700 Subject: [mapserver-users] Faster MapServer Stand-Alone? References: <20010906020254.A6404@aruba.remote.org> Message-ID: <3B96D0A0.FA3C988D@refractions.net> Frederik Ramm wrote: > Please correct me if I'm wrong but I got the impression that, > basically, the MapServer will always run as a CGI. That means that for > each request it will not only start a new process but also open and > parse the map and all shape files. Then, it creates an output file > which will be read by the web server in order to pass it on to the > client. > > I haven't run any load tests but it seems obvious that this wastes a > lot of performance. Probably it wastes *some* performance, but before you go and develop a long-running mapserver at great personal expense, you might want to consider the relative loads involved in: 1 - starting up the CGI process 2 - parsing the mapfile 3 - finding and reading in the relevant vectors 4 - rasterizing the vectors Because I have empirically found that mapserver is slowest when I ask it to rasterize alot of vectors. The more data I actually require *in the image* in slower it is. And a long-run process is not going to avoid that requirement. So if the rasterization (4) is 90% of the CPU requirement, spending your effort optimizing for 1, 2 and 3 might not be the best investment. I understand your concerns, it was the first thing which leapt to my mind when I started installing and understanding mapserver, but my actual experience *using* it has shown it to be blazingly fast. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From M.Achtzehn at cui.de Thu Sep 6 06:33:16 2001 From: M.Achtzehn at cui.de (Michael Achtzehn) Date: Thu, 6 Sep 2001 15:33:16 +0200 Subject: AW: [mapserver-users] mapxy + scale / buffer not work! In-Reply-To: Message-ID: <000801c136d8$7d8887a0$11c8a8c6@cui.de> Hi Stephen, Thank you for your hints - unfortunately it does not function yet correctly. First: [shapemidx] and [shapemidy] dont't work - It appears the error message "getNumeric(): Incorrect data type" bat, if I the coordinates for mapxy directly into the URL enter-it work. What does one have to consider with the use of [shapemidx] and [shapemidy]? Also "... mode=map[getlayers ] " functions not, if I define go it more layer manually how as described, it is a syntax error, or which is with the use of [getlayers] to consider? With the described modifications it functions how describes but can I hilite the selected object also? Thanks in advance Michael > -----Urspr?ngliche Nachricht----- > Von: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] > Gesendet am: Mittwoch, 5. September 2001 23:05 > An: M.Achtzehn at cui.de; mapserver-users at lists.gis.umn.edu > Betreff: Re: [mapserver-users] mapxy + scale / buffer not work! > > Hi Michael: You're correct, this doesn't work on 3.4, but > will in 3.5 (currently doesn't). It's not > a technical issue rather one of priorities in getting things > working. You can work around this > by not using a query map but rather adding a second layer to > use in displaying the query > results. For this second layer you're going to modify the > class expression dynamically to isolate > the chosen record and draw it special. You do this within an > tag that normally would > be used to display the querymap. Here's how: > > - add a second layer to your mapfile, it should reference > the same data as you want to > query and define the class to draw the selected feature as > you wish, the class item should > be 'regnrba'. Don't define a class expression. Place this > layer AFTER the main layer and > set it's status to OFF. > > - drop the query map from your mapfile > > - add something like this to your template (assuming new > layer is called foo) > > src="/cgi-bin/mapserv.exe?map=[mapfile]&layer=foo&mapxy=[shpmi > dx]+[shpmidy]&buffer=xxxx&map_foo_class_expression=[REGNRBA]&m ode=map[getlayers]"> > > What that call does is creates a map: > > - centered on the shape > - with an extent defined by the value of buffer (could also > use scale) > - preserves any layers that were already on using [getlayers] > - turns on the new layer "foo" > - sets the expression for the first CLASS in foo to be the > value of the item REGNRBA > > What the value for map_foo_class_expression should be will > depend on what valid values in REGNRBA is. If > it's strictly a number then you have to enclose it in double > quotes for mapserver to treat it correctly, just use > map_foo_class_expression=%22[REGNRBA]%22 instead. You could > also use other unique column values to > isolate the record. > > Hope this helps. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Michael Achtzehn" 09/05/01 09:53AM >>> > Hallo, > An apparent old problem, for which I could not discover a > solution in the Mailing. > I would like to determine an object with one ID (here > regnrba) ) from a data base to display. > With ITEMQUERY mode and using MAPXY=SHAPE I would like to > show the result on certain scale, but BUFFER or SCALE > parameter does nothing. > Where are the contents of the variable shapes defined - is ' > shapes " a variable or a keyword for the map server? Do I > have to make 'shapes' special entries for the > > definition of in templete file? > > Where is the mistake - how can I solve my problem? > > (I work with mapserver 3.4 on Win NT.) > > my data: > > URL: > http://ms_test.cui.de/cgi-bin/mapserv.exe?map=ms_demo/isab02.m > ap&layer=lsa_tfb&mode=itemquery&item=regnrba&value=1105-41/15& > mapxy=shapes;scale=50000 > ____________________ > www.cui.de > Tel.: 0345 7742 749 > Fax.: 0345 7742 754 > From steve.lime at dnr.state.mn.us Thu Sep 6 06:44:51 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 06 Sep 2001 08:44:51 -0500 Subject: AW: [mapserver-users] mapxy + scale / buffer not work! Message-ID: It's [shpmidx] and [shpmidy] not [shape...], there's also an extra space before the ] in your getlayers substitution. My suggestion does hilite the selected object, that's what the second layer definition is for. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Michael Achtzehn" 09/06/01 08:33 AM >>> Hi Stephen, Thank you for your hints - unfortunately it does not function yet correctly. First: [shapemidx] and [shapemidy] dont't work - It appears the error message "getNumeric(): Incorrect data type" bat, if I the coordinates for mapxy directly into the URL enter-it work. What does one have to consider with the use of [shapemidx] and [shapemidy]? Also "... mode=map[getlayers ] " functions not, if I define go it more layer manually how as described, it is a syntax error, or which is with the use of [getlayers] to consider? With the described modifications it functions how describes but can I hilite the selected object also? Thanks in advance Michael > -----Urspr?ngliche Nachricht----- > Von: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] > Gesendet am: Mittwoch, 5. September 2001 23:05 > An: M.Achtzehn at cui.de; mapserver-users at lists.gis.umn.edu > Betreff: Re: [mapserver-users] mapxy + scale / buffer not work! > > Hi Michael: You're correct, this doesn't work on 3.4, but > will in 3.5 (currently doesn't). It's not > a technical issue rather one of priorities in getting things > working. You can work around this > by not using a query map but rather adding a second layer to > use in displaying the query > results. For this second layer you're going to modify the > class expression dynamically to isolate > the chosen record and draw it special. You do this within an > tag that normally would > be used to display the querymap. Here's how: > > - add a second layer to your mapfile, it should reference > the same data as you want to > query and define the class to draw the selected feature as > you wish, the class item should > be 'regnrba'. Don't define a class expression. Place this > layer AFTER the main layer and > set it's status to OFF. > > - drop the query map from your mapfile > > - add something like this to your template (assuming new > layer is called foo) > > src="/cgi-bin/mapserv.exe?map=[mapfile]&layer=foo&mapxy=[shpmi > dx]+[shpmidy]&buffer=xxxx&map_foo_class_expression=[REGNRBA]&m ode=map[getlayers]"> > > What that call does is creates a map: > > - centered on the shape > - with an extent defined by the value of buffer (could also > use scale) > - preserves any layers that were already on using [getlayers] > - turns on the new layer "foo" > - sets the expression for the first CLASS in foo to be the > value of the item REGNRBA > > What the value for map_foo_class_expression should be will > depend on what valid values in REGNRBA is. If > it's strictly a number then you have to enclose it in double > quotes for mapserver to treat it correctly, just use > map_foo_class_expression=%22[REGNRBA]%22 instead. You could > also use other unique column values to > isolate the record. > > Hope this helps. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Michael Achtzehn" 09/05/01 09:53AM >>> > Hallo, > An apparent old problem, for which I could not discover a > solution in the Mailing. > I would like to determine an object with one ID (here > regnrba) ) from a data base to display. > With ITEMQUERY mode and using MAPXY=SHAPE I would like to > show the result on certain scale, but BUFFER or SCALE > parameter does nothing. > Where are the contents of the variable shapes defined - is ' > shapes " a variable or a keyword for the map server? Do I > have to make 'shapes' special entries for the > > definition of in templete file? > > Where is the mistake - how can I solve my problem? > > (I work with mapserver 3.4 on Win NT.) > > my data: > > URL: > http://ms_test.cui.de/cgi-bin/mapserv.exe?map=ms_demo/isab02.m > ap&layer=lsa_tfb&mode=itemquery&item=regnrba&value=1105-41/15& > mapxy=shapes;scale=50000 > ____________________ > www.cui.de > Tel.: 0345 7742 749 > Fax.: 0345 7742 754 > From morissette at dmsolutions.ca Thu Sep 6 07:40:52 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 06 Sep 2001 10:40:52 -0400 Subject: [mapserver-users] Faster MapServer Stand-Alone? References: <20010906020254.A6404@aruba.remote.org> Message-ID: <3B978AF4.9B8F9D51@dmsolutions.ca> Frederik Ramm wrote: > > Hi, > > I've been looking at using the MapServer for a project of mine > in which I have to create map images with minimal delay. > > Please correct me if I'm wrong but I got the impression that, > basically, the MapServer will always run as a CGI. That means that for > each request it will not only start a new process but also open and > parse the map and all shape files. Then, it creates an output file > which will be read by the web server in order to pass it on to the > client. > Frederik, As someone else pointed in another message, most of the time is spent in accessing the map data and the overhead of loading the CGI is minimal relative to the time of accessing the map data and rendering them. Note that using "mode=map" you can already return a map directly to stdout and avoid the temporary GIF file creation if that's a concern to you... but since you need to produce an HTML response plus some GIF images in the same request, saving to a temporary GIF is what causes the less overhead. Proper use of quadtree indexes and tile indexes is the first thing you should concentrate on when tuning your applications. Loading all shapefiles in RAM might improve performance, but only if your dataset is smaller than your available RAM... it might be an interesting option to look into (maybe a new CONNECTIONTYPE RAM ? ;), but that won't replace good use of quadtrees and tile indexes when you deal with gigabytes of data. Back to your original question: I think what you need is FastCGI... it would run under the regular Apache (so you don't ned to write your own server), but would save the overhead of loading the CGI and you could even preload the mapfile pretty easily and even preload the tile indexes for instance (with some work). There have been discussions on using MapServer under FastCGI about a year ago but we haven't heard anything since then. I think your efforts would be better spent in making MapServer FastCGI-friendly than in writing a custom server... and we might even be interested in helping with such a project. BTW, is anyone running MapServer with FastCGI at the moment? Or did anyone try it recently? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From hunt at zedxinc.com Thu Sep 6 07:59:12 2001 From: hunt at zedxinc.com (Aaron Hunt) Date: Thu, 6 Sep 2001 10:59:12 -0400 Subject: [mapserver-users] Compile error Message-ID: <012d01c136e4$7d6ca4c0$1805000a@zedxinc.com> I am trying to compile mapserver 3.5 with ./configure --with-proj --with-gdal --with-ogr And I get the below compile error on the make In file included from mapproject.h:15, from map.h:33, from mapogr.cpp:126: /usr/local/include/projects.h:74: declaration of `double hypot (double, double)' throws different exceptions /usr/include/bits/mathinline.h:617: than previous declaration `double hypot (double, double) throw ()' make: *** [mapogr.o] Error 1 Can anyone please help me? Thank you Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Thu Sep 6 09:40:30 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 06 Sep 2001 12:40:30 -0400 Subject: [mapserver-users] Compile error References: <012d01c136e4$7d6ca4c0$1805000a@zedxinc.com> Message-ID: <3B97A6FE.2020608@pobox.com> Aaron Hunt wrote: > I am trying to compile mapserver 3.5 with > > > > ./configure --with-proj --with-gdal --with-ogr > > > > And I get the below compile error on the make > > > In file included from mapproject.h:15, > from map.h:33, > from mapogr.cpp:126: > /usr/local/include/projects.h:74: declaration of `double hypot (double, > double)' throws different exceptions > /usr/include/bits/mathinline.h:617: than previous declaration `double > hypot (double, double) throw ()' > make: *** [mapogr.o] Error 1 Aaron, What platform are you on? I am not sure why this is happening to you, but not others. However, I believe if you upgrade to the latest PROJ.4 (4.4.3 at http://www.remotesensing.org/proj) and then reconfigure and rebuild MapServer I think you will find this goes away. The 4.4.3 version of PROJ.4 carefully segregates public declarations into proj_api.h and private ones into projects.h. The hypot() declaration in projects.h is presumably intended to help in cases where it is missing from math.h, but in the C++ build case (of mapogr.cpp) it conflicts with the proper C++ declaration of hypot() which includes exception information. Let me know if the problem persists. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mapserver at hotmail.com Thu Sep 6 10:26:43 2001 From: mapserver at hotmail.com (WMS Mapping) Date: Thu, 06 Sep 2001 17:26:43 +0000 Subject: [mapserver-users] Error compile Message-ID: Hello I compile ms_34 for linux redhat 7.1 for module php_mapscript generate this error: http://212.128.15.42/gmap/htdocs/gmap75.phtml Warning: is no longer supported - please use the track_vars INI directive instead in /var/www/html/gmap/htdocs/gmap75.phtml on line 1 Warning: is no longer supported - please use the track_vars INI directive instead in /var/www/html/gmap/htdocs/gmap75.php3 on line 1 What is the problems? _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From morissette at dmsolutions.ca Thu Sep 6 11:27:47 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 06 Sep 2001 14:27:47 -0400 Subject: [mapserver-users] Error compile References: Message-ID: <3B97C023.5819AC80@dmsolutions.ca> WMS Mapping wrote: > > Warning: is no longer supported - please use the > track_vars INI directive instead in /var/www/html/gmap/htdocs/gmap75.php3 on > line 1 > > What is the problems? > As the error message says: use of is deprecated... just take the lines out of the specified files and you'll be fine as long as track_vars is not explicitly disabled in php.ini (it's enabled by default in PHP4) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Sep 6 11:49:33 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 06 Sep 2001 14:49:33 -0400 Subject: [mapserver-users] Compile error References: <012d01c136e4$7d6ca4c0$1805000a@zedxinc.com> <3B97A6FE.2020608@pobox.com> <016b01c136fa$62bf1b60$1805000a@zedxinc.com> <3B97B607.3020702@pobox.com> <018501c136fd$f1a78d00$1805000a@zedxinc.com> <3B97BEB4.2060406@pobox.com> Message-ID: <3B97C53D.148A3D6C@dmsolutions.ca> Frank Warmerdam wrote: > > I will discuss the benefits of static linking against just OGR libraries with > Daniel who set some of that up. Hopefully this won't have to bite too many > other people. > Frank, Static linking of OGR was useful in the days where GDAL could not be easily installed and queried for config options (i.e. when there was no gdal-config) ... and it made it much easier to debug too. However, today for my own use I don't think this is required any more since GDAL now installs itself easily and gdal-config takes care of all the magic. However, I could see places where it is impossible to install GDAL in the runtime path (or where multiple versions of GDAL may be installed) and static linking may come handy. But this is true for most of the other libraries that MapServer links with and we don't allow any of them (except GD) to be statically linked... so I'm not sure what's best... if the static linking of OGR causes headaches then I guess we could take it out unless some users tell us that they still need it. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From m.achtzehn at cui.de Thu Sep 6 12:49:04 2001 From: m.achtzehn at cui.de (m.achtzehn at cui.de) Date: Thu, 6 Sep 2001 21:49:04 +0200 Subject: [mapserver-users] How works variables (p.E. shpmidx, shpmidy) Message-ID: <000401c1370d$0191f610$05cda8c0@cui.de> In my Application, doesn't work ...mapxy=[shpmidx]+[shpmidy]... in URL - which I must consider? I seem to have here a basic understanding problem. Thus I cannot implement the tip of steve (http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0109/msg00028.html) I use mapserver 3.4 on WIN NT. thanks! Michael From pramsey at refractions.net Thu Sep 6 13:06:04 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 06 Sep 2001 13:06:04 -0700 Subject: [mapserver-users] LINE and POLYLINE Message-ID: <3B97D72C.792E4E65@refractions.net> Within the context of rendering a polygon feature, what is the difference between a LINE layer and a POLYLINE layer? Surely both should simply render the polygon as the boundaries only. What is the distinction? -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From pramsey at refractions.net Thu Sep 6 13:11:56 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 06 Sep 2001 13:11:56 -0700 Subject: [mapserver-users] LINE and POLYLINE Message-ID: <3B97D88C.8E992DC5@refractions.net> Apologies, RTFM: (doh!) Then answer, as the FAQ clearly explains, is that LINE and POLYLINE both render polygons identically, as the linear outlines. However, they ANNOTATE them differently: LINE will annotate them along the edge (like a line) and POLYLINE will annotate them in the middle (like a polygon). Sorry about that. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From mgiesbrecht at geoarctic.com Thu Sep 6 14:18:02 2001 From: mgiesbrecht at geoarctic.com (Mark Giesbrecht) Date: Thu, 06 Sep 2001 15:18:02 -0600 Subject: [mapserver-users] embed scalebar in map image? Message-ID: <3B97E80A.93708276@geoarctic.com> Hi All, I have searched the archive and can't quite figure out if there's a way to embed a scalebar in the returned map image. Either that, or have the scalebar write to another page on a frameset. I'm not trying MapScript just yet, as I've got a custom MapServ.exe that can handle a thousand layers, but no matching php_mapscript.dll. Embarassingly enough, can't quite get both to compile. Anyways, any pointers, suggestions? Cheers, Mark -- Mark Giesbrecht, M.Sc. GIS Programmer/Analyst GeoArctic International Services Ltd. mgiesbrecht at geoarctic.com http://www.geoarctic.com phone: (403) 290-1320 fax: (403) 264-5848 From ahmad at munif.org Thu Sep 6 20:26:16 2001 From: ahmad at munif.org (Ahmad Munif) Date: Fri, 7 Sep 2001 10:26:16 +0700 Subject: [mapserver-users] how to make shapefiles ? Message-ID: <20010907102616.58e53327.ahmad@munif.org> hello, i'm a newbie, i'm still confused to ShapeFile. my assumtion, shapefile is used to draw a map with vector format. any one can tell me how to make shapefile, and what tools that i can use to build it ? thanks From ahmad at munif.org Fri Sep 7 03:47:24 2001 From: ahmad at munif.org (Ahmad Munif) Date: Fri, 7 Sep 2001 17:47:24 +0700 Subject: No subject Message-ID: <20010907174724.031093eb.ahmad@munif.org> any one can show me step by step to create new shapefile with php mapscript ? thanks. From mapserver at hotmail.com Fri Sep 7 03:55:31 2001 From: mapserver at hotmail.com (WMS Mapping) Date: Fri, 07 Sep 2001 10:55:31 +0000 Subject: [mapserver-users] Error compile module php/mapscript Message-ID: Hello Generate error who compile ms_35 in linux redhat 7.1 interface gmap3.5 What is the problems? see please http://212.128.15.42/gmap/htdocs/gmap75.phtml gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -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_TTF -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_TTF -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_TTF -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_TTF -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_TTF -I/usr/include maplexer.c -o maplexer.o maplexer.c:3075: warning: `yyunput' 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_TTF -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_TTF -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_TTF -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_TTF -I/usr/include mapsymbol.c -o mapsymbol.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -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_TTF -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_TTF -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_TTF -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_TTF -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_TTF -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_TTF -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_TTF -I/usr/include mapprimitive.c -o mapprimitive.o mapprimitive.c:749: warning: `get_centroid' 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_TTF -I/usr/include mapproject.c -o mapproject.o mapproject.c:66: warning: `msProjectGrowRect' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include mapraster.c -o mapraster.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include mapsde.c -o mapsde.o c++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -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_TTF -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_TTF -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_TTF -I/usr/include mapresample.c -o mapresample.o mapresample.c:409: warning: `msInitApproxTransformer' defined but not used mapresample.c:426: warning: `msFreeApproxTransformer' defined but not used mapresample.c:437: warning: `msApproxTransformer' defined but not used mapresample.c:541: warning: `msTransformMapToSource' 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_TTF -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_TTF -I/usr/include mapwmslayer.c -o mapwmslayer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -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_TTF -I/usr/include epplib.c -o epplib.o ar rc libmap.a mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o mapgml.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_TTF -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_TTF -I/usr/include shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o shp2img gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include legend.c -o legend.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include legend.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o legend gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include mapserv.c -o mapserv.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include cgiutil.c -o cgiutil.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include mapserv.o cgiutil.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o mapserv gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include shptree.c -o shptree.o shptree.c: In function `main': shptree.c:38: warning: `filename' might be used uninitialized in this function shptree.c:40: warning: `byte_order' might be used uninitialized in this function gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include shptree.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o shptree gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include shptreevis.c -o shptreevis.o shptreevis.c: In function `main': shptreevis.c:76: warning: unused variable `pabyBuf' gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include shptreevis.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o shptreevis gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include shptreetst.c -o shptreetst.o shptreetst.c: In function `main': shptreetst.c:68: warning: `node' might be used uninitialized in this function gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include shptreetst.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o shptreetst gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include scalebar.c -o scalebar.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include scalebar.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o scalebar gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include sortshp.c -o sortshp.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include sortshp.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o sortshp touch perlvars pwd > perlvars echo -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF >> perlvars echo -I. -I/usr/include >> perlvars echo -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm >> perlvars echo >> perlvars gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include tile4ms.c -o tile4ms.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include tile4ms.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o tile4ms cd mapscript/php3; make; cd ../.. make[1]: Cambiando a directorio `/home/webmap/source/mapserver/mapscript/php3' gcc -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_JPEG -I/home/webmap/source/mapserver -I/usr/include -I/home/webmap/source/mapserver/../php-4.0.4pl1 -I/home/webmap/source/mapserver/../php-4.0.4pl1/dl -I/home/webmap/source/mapserver/../php-4.0.4pl1/main -I/home/webmap/source/mapserver/../php-4.0.4pl1/Zend -I/home/webmap/source/mapserver/../php-4.0.4pl1/include -I/home/webmap/source/mapserver/../php-4.0.4pl1/TSRM -I/usr/include/apache/ -I/usr/include/apache -c -o php_mapscript_util.o php_mapscript_util.c gcc -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_JPEG -I/home/webmap/source/mapserver -I/usr/include -I/home/webmap/source/mapserver/../php-4.0.4pl1 -I/home/webmap/source/mapserver/../php-4.0.4pl1/dl -I/home/webmap/source/mapserver/../php-4.0.4pl1/main -I/home/webmap/source/mapserver/../php-4.0.4pl1/Zend -I/home/webmap/source/mapserver/../php-4.0.4pl1/include -I/home/webmap/source/mapserver/../php-4.0.4pl1/TSRM -I/usr/include/apache/ -I/usr/include/apache -c -o php_mapscript.o php_mapscript.c php_mapscript.c: In function `php3_ms_img_saveImage': php_mapscript.c:3242: warning: implicit declaration of function `php_header' gcc -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_JPEG -I/home/webmap/source/mapserver -I/usr/include -I/home/webmap/source/mapserver/../php-4.0.4pl1 -I/home/webmap/source/mapserver/../php-4.0.4pl1/dl -I/home/webmap/source/mapserver/../php-4.0.4pl1/main -I/home/webmap/source/mapserver/../php-4.0.4pl1/Zend -I/home/webmap/source/mapserver/../php-4.0.4pl1/include -I/home/webmap/source/mapserver/../php-4.0.4pl1/TSRM -I/usr/include/apache/ -I/usr/include/apache -c -o mapscript_i.o mapscript_i.c gcc -shared -L/usr/local/lib -rdynamic -o php_mapscript.so php_mapscript_util.o php_mapscript.o mapscript_i.o -L/home/webmap/source/mapserver -lmap -ltiff -ljpeg -lfreetype -lpng -lz -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lm make[1]: Saliendo directorio `/home/webmap/source/mapserver/mapscript/php3' [root at mapserver mapserver]# cd mapscript/php3/ [root at mapserver php3]# dir CVS Makefile Makefile.vc mapscript_i.o php_mapscript.h php_mapscript.so php_mapscript_util.h php_proj.c README.WIN32 examples Makefile.in mapscript_i.c php_mapscript.c php_mapscript.o php_mapscript_util.c php_mapscript_util.o README [root at mapserver php3]# cp -ax php_mapscript.so /usr/lib lib libexec [root at mapserver php3]# cp -ax php_mapscript.so /usr/lib/apache/ cp: overwrite `/usr/lib/apache/php_mapscript.so'? s [root at mapserver php3]# cp -ax php_mapscript.so /usr/lib/php4/ cp: overwrite `/usr/lib/php4/php_mapscript.so'? s _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From morissette at dmsolutions.ca Fri Sep 7 06:31:27 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 07 Sep 2001 09:31:27 -0400 Subject: [mapserver-users] Re: Creating shapefile References: <20010907174724.031093eb.ahmad@munif.org> Message-ID: <3B98CC2F.5134509A@dmsolutions.ca> Ahmad Munif wrote: > > any one can show me step by step to create new shapefile with php mapscript ? > thanks. There is an example of creating a point shapefile in the file mapscript/php3/examples/test_writeshape.phtml in the mapserver source code distribution (available from the MapServer website). -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From sjohnston at satshot.com Fri Sep 7 03:50:18 2001 From: sjohnston at satshot.com (Shawn L Johnston) Date: Fri, 7 Sep 2001 10:50:18 +0000 (GMT) Subject: [mapserver-users] Mapserver Dev Message-ID: Sorry, know this questions pops up every now and then... What is the status on mapserver development? It sounds like a lot of work is in progress on 3.5, will this become a "stable" release? We've played a little with 3.4 and 3.5 and like a lot of the new features but most of our mapserver sites are running on 3.2.20. We'd like to start using 3.5, but it seems to be a bit of a moving target ;) Cheers, Shawn From bill at madscheme.com Fri Sep 7 09:17:19 2001 From: bill at madscheme.com (Bill Lubanovic) Date: Fri, 07 Sep 2001 11:17:19 -0500 Subject: [mapserver-users] Center in lat/lon, radius in miles? Message-ID: <3B98F30F.E23877F4@madscheme.com> Although I've read the docs and the list archives, installed the demo, and have built working applications, I'm stuck on something that sounds simple. I'm trying to plot a map with its center at a given lat/lon and a radius of a given number of miles. The map would actually include features within the bounding box of this circle, not clipped to the circle. The data files (state/county/etc. boundaries) are good, and the projection from lat/lon to lcc and other projections works in the template file. But I'm not sure how to define the extent around the center point, since the original lat/lon (DD) space doesn't equate to miles. I'm approximating the bounding box by trial and error. Should I use proj.4 to calculate the extents in miles from each lat/lon counterpoint? Or is there a way in Mapserver to specify this directly? Thanks, Bill Lubanovic Mad Scheme Limited I wish I may/I wish I might/I wish I were/A trilobite From steve.lime at dnr.state.mn.us Fri Sep 7 09:22:25 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 07 Sep 2001 11:22:25 -0500 Subject: [mapserver-users] Mapserver Dev Message-ID: We've had scheduled releases set for mid-July and Sept 1st but I always seem to have an excuse not to go public. 3.5 is really very stable and we're in the position of fine tuning things and tracking down a few last minute bugs. I hope to release it in the next 2 weeks. Since there is a nightly and CVS access we haven't really been holding any development back so I haven't worried too much about the *official* start of 3.5. If I was in the position to upgrade I'd skip 3.4 and go straight to 3.5 as it sits now. We will always be adding stuff via point releases later. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Shawn L Johnston 09/07/01 05:50AM >>> Sorry, know this questions pops up every now and then... What is the status on mapserver development? It sounds like a lot of work is in progress on 3.5, will this become a "stable" release? We've played a little with 3.4 and 3.5 and like a lot of the new features but most of our mapserver sites are running on 3.2.20. We'd like to start using 3.5, but it seems to be a bit of a moving target ;) Cheers, Shawn From SDunning at nephrology.org Fri Sep 7 09:26:40 2001 From: SDunning at nephrology.org (Stephan Dunning) Date: Fri, 7 Sep 2001 11:26:40 -0500 Subject: [mapserver-users] Polygon symbols Message-ID: Are there symbols available to "shade" a polygon with something like diagonal lines or interspersed dots instead of actual color shades? If not, is it possible to create some and add them to the symbol file? Thanks, Stephan From sjohnston at satshot.com Fri Sep 7 04:22:11 2001 From: sjohnston at satshot.com (Shawn L Johnston) Date: Fri, 7 Sep 2001 11:22:11 +0000 (GMT) Subject: [mapserver-users] Mapserver Dev In-Reply-To: Message-ID: On Fri, 7 Sep 2001, Stephen Lime wrote: > We've had scheduled releases set for mid-July and Sept 1st but I always seem > to have an excuse not to go public. 3.5 is really very stable and we're in the > position of fine tuning things and tracking down a few last minute bugs. I hope > to release it in the next 2 weeks. Since there is a nightly and CVS access we > haven't really been holding any development back so I haven't worried too > much about the *official* start of 3.5. 2 weeks? Can I hold you too that? j/k ;) > If I was in the position to upgrade I'd skip 3.4 and go straight to 3.5 as it sits > now. We will always be adding stuff via point releases later. Sounds great, lots of new stuff to play with it looks like! Cheers, Shawn From wasserburger at plan.at Fri Sep 7 10:24:25 2001 From: wasserburger at plan.at (Wolfgang W. Wasserburger) Date: Fri, 7 Sep 2001 19:24:25 +0200 Subject: [mapserver-users] GPF Message-ID: Hi list, just experimented and now liking to get mapserver to run, we have a few problems: #) we tried the precompiled Mapserver 3.4 on NT, GIF-Version (PNG and 3.5 are looking simular!) #) we have al lot of street types for different colors and sizes. #) when someone zooms in very near, Mapserver causes Dr. Watson to come up on the server with a General Protection Fault. #) when anotherone on the server hits OK very fast, the map is submitted, otherwise we get Server Error 500 "couldn't find CGI-output ....." #) funny: we liked to color pedestrian areas in green. This causes the described error. When we pan to another location it sometimes doesn't make an error, sometimes it does, even if there are no new pedestrian areas. If we change the color to white or black or red, no errors occur. Any suggestions? Any ideas how to solve it? Workarounds? Greetings from Vienna, Austria Wolfgang W. Wasserburger From wasserburger at plan.at Fri Sep 7 10:33:12 2001 From: wasserburger at plan.at (Wolfgang W. Wasserburger) Date: Fri, 7 Sep 2001 19:33:12 +0200 Subject: [mapserver-users] SHPTREE ERROR Message-ID: Hi List, i tried to index my shapefiles using SHPTREE on a NT-machine, but it raised a DR. Watson Message: "Application Error detected". I tried the versions coming with 3.4 and 3.5. Same Problem. Any suggestions? any comments? Greetings from Vienna, Austria Wolfgang W. Wasserburger From hunt at zedxinc.com Fri Sep 7 11:51:36 2001 From: hunt at zedxinc.com (Aaron Hunt) Date: Fri, 7 Sep 2001 14:51:36 -0400 Subject: [mapserver-users] php queryByPoint Message-ID: <00a001c137ce$1f5465e0$1805000a@zedxinc.com> I am trying to use php mapscript to query a map file using queryByPoint and all I ever get is "Warning: MapServer Error in msQueryByPoint(): No matching record(s) found. " Can anyone help me, or direct me to some examples, with querying and displaying the results. The code I am using is below where $filename and $pointshape are the names of the shape files used and $minx, $miny, $maxx, $maxy is the extent passed in.. Thank you for any help Aaron setxy($lon,$lat); $map = ms_newMapObj("phpsoil.map"); $map->setExtent($minx, $miny, $maxx, $maxy); $layer = $map->getlayerbyname(field); $layer->set("data","$filename"); $layer2 = $map->getlayerbyname(datap); $layer2->set("data","$pointshape"); $map->queryByPoint($point,MS_MULTIPLE,-1); ?> -------------- next part -------------- An HTML attachment was scrubbed... URL: From v at w.cl Fri Sep 7 12:59:07 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Fri, 7 Sep 2001 15:59:07 -0400 (CLT) Subject: [mapserver-users] msCalculateScale() error. In-Reply-To: <3B8FDD11.CB1CA1D1@dmsolutions.ca> from "Daniel Morissette" at ago 31, 2001 02:53:05 Message-ID: <20010907195907.5ACA02299E@mail.selperchile.cl> Hello, Testing the last version of PHP Mapscript (the one that solved the invalid map handle issue), I now cannot change the extent, zoom and the like of the image. The error is: Fatal error: MapServer Error in msCalculateScale(): Invalid image extent. in /path/file on line XX This happens whenever I call the setextent or zoompoint methods (I assume it happens with the other methods that mess with the extent also, but I'm not using them, so I couldn't tell). That takes me to the second question: How do I retrieve from the CVS an old version? (the previous 3.5, for instance) I can find my way through with the invalid map handle, but not without changing the extent or zoom or pan. (Stupid me, I should have made a backup) Thanks, -- V. From morissette at dmsolutions.ca Fri Sep 7 13:18:06 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 07 Sep 2001 16:18:06 -0400 Subject: [mapserver-users] Re: msCalculateScale() error. References: <20010907195907.5ACA02299E@mail.selperchile.cl> Message-ID: <3B992B7E.B047DAC0@dmsolutions.ca> "Vinko Vrsalovic B." wrote: > > Testing the last version of PHP Mapscript (the one that solved > the invalid map handle issue), I now cannot change the extent, zoom > and the like of the image. The error is: > > Fatal error: MapServer Error in msCalculateScale(): Invalid image extent. in > /path/file on line XX > > This happens whenever I call the setextent or zoompoint methods (I assume > it happens with the other methods that mess with the extent also, but I'm not > using them, so I couldn't tell). > Vinko, Are you sure that you compiled with php_mapscript_util.c revision 1.8? JF Doyon had the same extents problem as you with the test version of php_mapscript_uitl.c that I Emailed both of you, but using revision 1.8 of php_mapscript_util.c (the latest in CVS) fixed it for him. JF: Do you still get that extents problem? > That takes me to the second question: > > How do I retrieve from the CVS an old version? (the previous 3.5, for > instance) I can find my way through with the invalid map handle, but not > without changing the extent or zoom or pan. (Stupid me, I should have > made a backup) > For instance, to retrieve php_mapscript_util.c revision 1.7, you would call: cd mapscript/php3 cvs update -r 1.7 php_mapscript_util.c Note that this is "sticky"... i.e. you'll be "stuck" with revision 1.7 forever, even next time you do a cvs update... to remove the sticky flags and come back to the latest revision you'll have to use cvs update -A php_mapscript_util.c -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Sep 7 13:29:20 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 7 Sep 2001 16:29:20 -0400 Subject: [mapserver-users] RE: msCalculateScale() error. Message-ID: <7CDD7B94357FD5119E800002A537C46E22FBF3@s5-ccr-r1.ccrs.nrcan.gc.ca> Vinko, Dan, Hmmm I WAS getting that error. If I recall correctly, this was because the map extents weren't getting filled in when I output the HTML (For passing through the form for the next operation). Oh I remember now, you (dan) had me uncomment a line in the php_mapscript_utli.c file ... Here's the suggestion you made that fixed it: > This shouldn't have changed. It may be a side-effect of my changes. > Can you try removing the comments around the call to ZVAL_ADDREF() at > line 573 in the php_mapscript_util.c that I sent you and tell me if that > makes a difference... I don't think it should, but I would like to rule > that one out now. > Turns out it did make a difference :) This is what fixed my problem with the msCalculateScale error ... Hope this helps! Cheers, J.F. > ---------- > From: Daniel Morissette[SMTP:morissette at dmsolutions.ca] > Sent: Friday, September 07, 2001 4:18 PM > To: v at w.cl > Cc: mapserver-users at lists.gis.umn.edu; Doyon, Jean-Francois > Subject: Re: msCalculateScale() error. > > "Vinko Vrsalovic B." wrote: > > > > Testing the last version of PHP Mapscript (the one that solved > > the invalid map handle issue), I now cannot change the extent, zoom > > and the like of the image. The error is: > > > > Fatal error: MapServer Error in msCalculateScale(): Invalid image > extent. in > > /path/file on line XX > > > > This happens whenever I call the setextent or zoompoint methods (I > assume > > it happens with the other methods that mess with the extent also, but > I'm not > > using them, so I couldn't tell). > > > > Vinko, > > Are you sure that you compiled with php_mapscript_util.c revision 1.8? > JF Doyon had the same extents problem as you with the test version of > php_mapscript_uitl.c that I Emailed both of you, but using revision 1.8 > of php_mapscript_util.c (the latest in CVS) fixed it for him. > > JF: Do you still get that extents problem? > > > > That takes me to the second question: > > > > How do I retrieve from the CVS an old version? (the previous 3.5, for > > instance) I can find my way through with the invalid map handle, but not > > without changing the extent or zoom or pan. (Stupid me, I should have > > made a backup) > > > > For instance, to retrieve php_mapscript_util.c revision 1.7, you would > call: > > cd mapscript/php3 > cvs update -r 1.7 php_mapscript_util.c > > Note that this is "sticky"... i.e. you'll be "stuck" with revision 1.7 > forever, even next time you do a cvs update... to remove the sticky > flags and come back to the latest revision you'll have to use > cvs update -A php_mapscript_util.c > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From mapserver at hotmail.com Fri Sep 7 13:47:40 2001 From: mapserver at hotmail.com (WMS Mapping) Date: Fri, 07 Sep 2001 20:47:40 +0000 Subject: [mapserver-users] Error nightly version Message-ID: Greetings I try to compile Mapserver version nightly.tar.gz in I modulate php/mapscrip in Linux RedHat 7.1 and the following error is generated: Fatal error: Call to undefined function: ms_getversion() in /var/www/html/gmap/htdocs/gmap75.php3 on line 33 If somebody could please help. Somebody had compiled mapserver in I modulate php/mapscrip in RedHat 7.1 they could help me it is necessary to solve this problem or the correct procedures for the compilation. Diego J. Padron _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From teb at mallit.fr.umn.edu Fri Sep 7 14:08:01 2001 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 7 Sep 2001 16:08:01 -0500 (CDT) Subject: [mapserver-users] mapscript (FWD) Message-ID: <200109072108.QAA12564@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Fri, 7 Sep 2001 15:57:38 -0500 (CDT) From: Kent S Ridl To: Subject: mapscript MIME-Version: 1.0 hello! i'm a csci student at UND, and am working on setting up mapserver for UMAC. i have absolutely no background in imaging, and i am learning perl as i tinker with mapscript. that said, i just have a really quick extremely newbie question... can mapscript be used to define everything without needing a mapfile?? also, any other sample perl mapscript code would be greatly appreciated. thanks a lot! kent ridl ------------- End Forwarded Message ------------- From steve.lime at dnr.state.mn.us Fri Sep 7 14:28:52 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 07 Sep 2001 16:28:52 -0500 Subject: [mapserver-users] msCalculateScale() error. Message-ID: I made the change to the scale calculation function to make sure that an extent is valid before proceeding. The PHP code most likely needs to be upgraded to ignore that error (there are occations when that is OK to do) if appropriate. The rest of my testing has shown no ill affects to the change. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Vinko Vrsalovic B." 09/07/01 02:59PM >>> Hello, Testing the last version of PHP Mapscript (the one that solved the invalid map handle issue), I now cannot change the extent, zoom and the like of the image. The error is: Fatal error: MapServer Error in msCalculateScale(): Invalid image extent. in /path/file on line XX This happens whenever I call the setextent or zoompoint methods (I assume it happens with the other methods that mess with the extent also, but I'm not using them, so I couldn't tell). That takes me to the second question: How do I retrieve from the CVS an old version? (the previous 3.5, for instance) I can find my way through with the invalid map handle, but not without changing the extent or zoom or pan. (Stupid me, I should have made a backup) Thanks, -- V. From steve.lime at dnr.state.mn.us Fri Sep 7 14:55:10 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 07 Sep 2001 16:55:10 -0500 Subject: [mapserver-users] Re: Center in lat/lon, radius in miles? Message-ID: Are you using parameters like mapxy and buffer to do this or some other method? Since your output map is lcc this isn't hard. You just need to convert your center point from lat/lon to lcc and then generate the exent around that computed point. The CGI program (compiled with Proj.4) has built-in capabilities to do this. For example, assuming a non-geographic output projection you can set mapext or mapxy in the output projection or in lat/lon. If it's in lat/lon MapServer will convert to the output projection before continuing. You can use the buffer parameter to specify a radius to use around the mapxy point. In your case you'd set it to ? a mile (in output units). Hope this helps. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Bill Lubanovic 09/06/01 04:36PM >>> Although I've read the docs, installed the demo, and have built working applications, I'm stuck on something that sounds simple. I'm trying to plot a map with its center at a given lat/lon and a radius of a given number of miles. The map would actually be the bounding box of this circle, not clipped to the circle. And it would only be a circle in lat/lon space (Mercator), not in any other projection, right? The data files (state/county/etc. boundaries) are good, and the projection from lat/lon to lcc and other projections works in the template file. But I'm not sure how to define the extent around the centerpoint, since the original lat/lon (DD) space doesn't equate to miles. I'm approximating the bounding box by trial and error. Should I use proj.4 to calculate the extents in miles for each lat/lon centerpoint? Or is there a way in Mapserver to specify this directly? Thanks, Bill Lubanovic Mad Scheme Limited From steve.lime at dnr.state.mn.us Fri Sep 7 15:03:59 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 07 Sep 2001 17:03:59 -0500 Subject: [mapserver-users] Polygon symbols Message-ID: Stephan: Sure, lot's of them. Here's a sample hashed one: SYMBOL NAME 'hash' TYPE VECTOR POINTS 0 0 1 1 END END The POINTS section defines a line going from 0,0 to 1,1 on the unit square (sorta like this - /). That line is turned into a simple brush and is used to fill the polygon. You can also create images outside of MapServer to do the same thing. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephan Dunning 09/07/01 11:26AM >>> Are there symbols available to "shade" a polygon with something like diagonal lines or interspersed dots instead of actual color shades? If not, is it possible to create some and add them to the symbol file? Thanks, Stephan From Rich at GreenwoodMap.com Fri Sep 7 15:17:01 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Fri, 07 Sep 2001 16:17:01 -0600 Subject: [mapserver-users] Polygon symbols In-Reply-To: Message-ID: <5.1.0.14.0.20010907161434.028eac80@mail.GreenwoodMap.com> I asked the same question and Sam Paske offered the following answer, which works great. Set SYMBOL for the desired hatch pattern and SIZE for the desired spacing. Rich ==== Sam Paske's email ================ I have gotten transparent fills to work on one of my map sites: http://www.kapurgis.com/agsmaps/t-cdrbrg/zoning_init.html I used the ellipse symbol as follows to set up a layer class: CLASS NAME "A-1" EXPRESSION 'A-1' OUTLINECOLOR 0 0 0 SYMBOL 1 SIZE 1 COLOR 128 225 185 END At 11:26 AM 9/7/2001 -0500, you wrote: >Are there symbols available to "shade" a polygon with something like >diagonal lines or interspersed dots instead of actual color shades? >If not, is it possible to create some and add them to the symbol file? > >Thanks, >Stephan Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rich at GreenwoodMap.com Fri Sep 7 16:00:40 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Fri, 07 Sep 2001 17:00:40 -0600 Subject: [mapserver-users] 3.5 Win32 w/ truetype Message-ID: <5.1.0.14.0.20010907165506.028fd670@mail.GreenwoodMap.com> Has anybody gotten 3.5 compiled with truetype working on win32? The nightly build binary gives me the following error: "msGetLabelSize(): TrueType Font error. libgd was not built with TrueType font support" And I have not had much success compiling it with freetype myself, either. Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From pramsey at refractions.net Fri Sep 7 16:19:28 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Fri, 07 Sep 2001 16:19:28 -0700 Subject: [mapserver-users] ScaleHint (again) Message-ID: <3B995600.83F69B89@refractions.net> How does the WMS ScaleHint behave in the presence of projections? I have a WMS service where the data is all in a planar projection. Browsing in the planar projection using good old mapserver interfaces, everything is hunky dory. Browsing in lat/lon, things go off the rails. I can request potentially debilitating quantities of data from the server, and it'll try and render *all* of it. I am quite ignorant of the voodoo behind min/max scale and how thing kind of thing would behave with respect to reprojection, particularly into something completely off the wall like lat/lon. Paul -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From v at w.cl Fri Sep 7 17:17:58 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Fri, 7 Sep 2001 20:17:58 -0400 (CLT) Subject: [mapserver-users] msCalculateScale() error. In-Reply-To: from "Stephen Lime" at sep 07, 2001 04:28:52 Message-ID: <20010908001758.7679C2299E@mail.selperchile.cl> > > I made the change to the scale calculation function to make sure that > an extent is valid before proceeding. The PHP code most likely needs > to be upgraded to ignore that error (there are occations when that is > OK to do) if appropriate. The rest of my testing has shown no ill affects > to the change. Yes, I found that out the hard way :-). I was passing empty values the first time I called setextent(). Now it works as expected. Thanks, -- V. From steve.lime at dnr.state.mn.us Fri Sep 7 20:18:49 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 07 Sep 2001 22:18:49 -0500 Subject: [mapserver-users] ScaleHint (again) Message-ID: Well, MapServer treats lat/lon as a planar coordinate system for the most part. That's expected. To calculate a scale you need a conversion between decimal degrees and a known unit (i.e. inches). Problem with longitudes is they are not fixed and as you move north... blah, blah, blah. The internal code uses a dd to inches value that is valid at the equator, which may explain the goofiness you're seeing espcially if you're working a ways north. It's an arbitrary decision, but since there's preopably no good value and scale makes no sense with lat/lon for the most part I haven't worried about it. Perhaps it should be tunable. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Paul Ramsey 09/07/01 18:16 PM >>> How does the WMS ScaleHint behave in the presence of projections? I have a WMS service where the data is all in a planar projection. Browsing in the planar projection using good old mapserver interfaces, everything is hunky dory. Browsing in lat/lon, things go off the rails. I can request potentially debilitating quantities of data from the server, and it'll try and render *all* of it. I am quite ignorant of the voodoo behind min/max scale and how thing kind of thing would behave with respect to reprojection, particularly into something completely off the wall like lat/lon. Paul -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From armin.burger at territoriumonline.com Sat Sep 8 03:18:21 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Sat, 8 Sep 2001 12:18:21 +0200 Subject: [mapserver-users] SHPTREE ERROR Message-ID: <200109080921.LAA10613@efferd.nettz.com> wolfgang, in my opinion it raises dr. watson after having finished the index file. but anyway, you could use the shptree executable from the last 3.3 version, that never called the dr. armin > Hi List, > i tried to index my shapefiles using SHPTREE on a NT-machine, but it raised > a DR. Watson Message: "Application Error detected". > I tried the versions coming with 3.4 and 3.5. Same Problem. > Any suggestions? any comments? > Greetings from Vienna, Austria > Wolfgang W. Wasserburger From morissette at dmsolutions.ca Sat Sep 8 07:56:23 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sat, 08 Sep 2001 10:56:23 -0400 Subject: [mapserver-users] 3.5 Win32 w/ truetype References: <5.1.0.14.0.20010907165506.028fd670@mail.GreenwoodMap.com> Message-ID: <3B9A3197.14730B44@dmsolutions.ca> Richard Greenwood wrote: > > Has anybody gotten 3.5 compiled with truetype working on win32? The nightly > build binary gives me the following error: > > "msGetLabelSize(): TrueType Font error. libgd was not built with TrueType > font support" > There's a recent 3.5 executable (and PHP DLL) that includes truetype at http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip (This executable is huge because it includes almost every possible MapServer option) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Sat Sep 8 08:12:50 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sat, 08 Sep 2001 11:12:50 -0400 Subject: [mapserver-users] php queryByPoint References: <00a001c137ce$1f5465e0$1805000a@zedxinc.com> Message-ID: <3B9A3572.CA4B2B9E@dmsolutions.ca> > Aaron Hunt wrote: > > I am trying to use php mapscript to query a map file using > queryByPoint and all I ever get is > "Warning: MapServer Error in msQueryByPoint(): No matching record(s) > found. " > Can anyone help me, or direct me to some examples, with querying and > displaying the results. > Your code seems to do the right thing... I would suggest that you check the following: 1- Did you set a TEMPLATE parameter in the queryable layer(s) or in their CLASSes? 2- Is there really something at the location ($lat, $lon) that you are querying? Is your data in lat/lon as well? (i.e. the query coordinates have to be in the same projection as the map itself). Try a queryByRect() with the whole view extent and see if that returns something. 3- Have you tried increasing the TOLERANCE value? Finally, the GMap PHP demo contains example of querying and displaying results: http://www2.dmsolutions.ca/mapserver/dl/gmap-ms35-20010726.tar.gz The querying happens at the end of GMap75CheckClick(), around line 500 in gmap75.php3, and displaying the results is all handled in the function GMapDumpqueryResults() which is in the same file. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From M.Achtzehn at cui.de Mon Sep 10 00:21:00 2001 From: M.Achtzehn at cui.de (Michael Achtzehn) Date: Mon, 10 Sep 2001 09:21:00 +0200 Subject: [mapserver-users] Zoom to Object - ProblemProblem with templete variables Message-ID: <002101c139c9$252c3b30$14c8a8c6@cui.de> Hi Group, here my problem still once in detail: I would like to show a query result on certain scale, but BUFFER or SCALE parameter does nothing. Steve gave me datzu the following tip: "Hi Michael: You're correct, this doesn't work on 3.4, but will in 3.5 (currently doesn't). It's not a technical issue rather one of priorities in getting things working. You can work around this by not using a query map but rather adding a second layer to use in displaying the query results. For this second layer you're going to modify the class expression dynamically to isolate the chosen record and draw it special. You do this within an tag that normally would be used to display the querymap. Here's how: - add a second layer to your mapfile, it should reference the same data as you want to query and define the class to draw the selected feature as you wish, the class item should be 'regnrba'. Don't define a class expression. Place this layer AFTER the main layer and set it's status to OFF. - drop the query map from your mapfile - add something like this to your template (assuming new layer is called foo) " But with the Variables '[shpmidx]+[shpmidy]' this don't work. What wrong do I make? Here my File listings: Init (html-) file (index06.html): Mapserver Demo Informationssystem Altbergbau

Informationssystem Altbergbau Demo 06.09.2001


Start der Demo durch dr?cken des Knopfes unten


---------------------------------------------------------------------------------------------------------------------------------------------------------------- Templete file: Mapserver - einfacher Test

Das ist eine ganz einfache Mapserver Seite

Es soll Objekt mit Regnrba = 1005-23/01 angezeigt werden

Test Map

 

Map File: map extent 4401328.5 5644860.0 4582087.0 5878911.5 imagecolor 255 255 255 name "Isab06 (Test Steve's Methode)" shapepath "data" size 600 600 status on symbolset "symbols/all.sym" #MA fontset eingef?gt f?r Beschriftung der Lables fontset "font.set" units meters # 1 web isab02.html web footer "isab06_footer.html" header "isab06_header.html" imagepath "C:/Inetpub/wwwroot/ms_demo/tmp/" imageurl "/ms_demo/tmp/" template "isab06.html" log "isab06.log" end # Querymap f?r diese Version entfern # 2 querymap hilite # querymap # STATUS ON # STYLE HILITE # COLOR 255 255 0 # size 700 500 # end # 3 scalebar #none 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 # 1 label #none label backgroundcolor 0 0 0 color 255 255 0 size tiny end end # 4 layer lsarb layer classitem "MERGE_RP" data "lsarb" # group "lsarb" labelcache on labelitem "MERGE_RP" name "lsarb" # postlabelcache true # Wenn Option aktiv erscheint Fl?che immer oben queryitem "MERGE_RP" status on type polygon # 2 class {RP Dessau} class color 255 217 125 SYMBOL 2 expression "151" name "RP Dessau" outlinecolor 0 0 0 label color 0 128 255 end # label end # 3 class {RP Halle} class color 255 251 195 expression "152" name "RP Halle" outlinecolor 0 0 0 label color 0 128 255 end # label end # 4 class {RP Magdeburg} class color 183 223 134 expression "153" name "RP Magdeburg" outlinecolor 0 0 0 label color 0 128 255 end # label end end # # Rasterlayer TK200 LAYER NAME "lsatk200" DATA "lsatk200.tif" TYPE RASTER STATUS ON END # 5 layer lsa_tfb layer name "lsa_tfb" type polygon status on data "lsa_tfb" header "lsa_tfb_header.html" # 1 query #none query template "lsa_tfb_query.html" end # minscale 50000 # MA: nicht zu klein w?hlen - sonst keine Anzeige der Objekte labelcache on labelitem "REGNR_BA" # postlabelcache true # wenn Option aktiv, kein Hiliting in der Abfrage! # 2 class lsa_tfb_1 class name "Tiefbauflaechen" SYMBOL 0 color 255 102 0 outlinecolor 0 0 0 # 1 label #none label angle auto antialias backgroundcolor 250 250 150 buffer 2 #Gr??e des Labels (MA) color 140 70 5 font "arial" maxsize 12 minsize 7 position cr size small type truetype end # label end end # MA: jetzt kommt der Abfragelayer # 5 layer q_lsa_tfb layer name "q_lsa_tfb" type polygon status off data "lsa_tfb" header "lsa_tfb_header.html" # MA: Querymap f?r Abfrage entfernen # 1 query #none query template "lsa_tfb_query.html" end labelcache on labelitem "REGNR_BA" # postlabelcache true # wenn Option aktiv, kein Hiliting in der Abfrage! # 2 class lsa_tfb_1 class name "regnr_ba" SYMBOL 0 color 230 221 251 outlinecolor 0 0 0 label angle auto antialias backgroundcolor 250 250 150 buffer 2 #Gr??e des Labels (MA) color 140 70 5 font "arial" maxsize 12 minsize 7 position cr size small type truetype end # label end #class end # Ende des Abfragelayers # 6 reference graphics/reference.gif reference color -1 -1 -1 extent 4401328.5 5644860.0 4582087.0 5878911.5 image "graphics/reference.gif" outlinecolor 255 0 0 size 120 120 status on end # 8 legend #none legend keysize 18 12 status on # 1 label #none label color 0 0 89 size medium type bitmap end end end Logfile: Mon Sep 10 09:10:29 2001,434,198.168.200.39,Isab06 (Test Steve's Methode),0,4374758.379800 5644860.000000 4608657.120200 5878911.500000,-1.000000 -1.000000,lsa_tfb lsatk200 ,normal execution Mon Sep 10 09:10:29 2001,47,198.168.200.39,Isab06 (Test Steve's Methode),0,4401328.500000 5644860.000000 4582087.000000 5878911.500000,-1.000000 -1.000000,q_lsa_tfb ,getNumeric(): Incorrect data type. Mon Sep 10 09:10:30 2001,362,198.168.200.39,Isab06 (Test Steve's Methode),3,4472400.000000 5740000.000000 4492400.000000 5760000.000000,4482400.000000 5750000.000000,q_lsa_tfb lsatk200 lsa_tfb> ,normal execution (Wy 3 entries?) Greetings from Halle/Saale, Germany Michael Dipl.-Ing. M. Achtzehn CUI - Consultinggesellschaft f?r Umwelt und Infrastruktur Eisenbahnstra?e 10 06132 Halle ____________________ www.cui.de Tel.: 0345 7742 749 Fax.: 0345 7742 754 -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at aruke.com Mon Sep 10 02:47:51 2001 From: matt at aruke.com (Matt Carlson) Date: Mon, 10 Sep 2001 18:47:51 +0900 Subject: [mapserver-users] tiling problems References: <002101c139c9$252c3b30$14c8a8c6@cui.de> Message-ID: <000c01c139dd$a94595b0$0400a8c0@matt> OS : red hat 6.2 mapserver v: downloaded nightly and built today i can't seem to get tiling to work for me. i've looked at past messages in the list, it seems like everythings ok, but my perl script throws an error when i try to use the tiling feature. here's my map file. NAME MAPNAME STATUS ON UNITS meters SHAPEPATH "/home/MAPS/map-tile" IMAGECOLOR 255 255 255 INTERLACE OFF LAYER Name L_069 data L_069 # name of shape file that is in my tile folders TYPE LINE Tileitem location # name of the data field, checked this in arc explorer Tileindex /home/MAPS/map-tile/tilex # shape file generated by tile4ms util program STATUS ON CLASS COLOR 210 110 170 END END END in /home/MAPS/map-tile/ i have tilex.shp, dbf, and shx. the values in Location are : ./shp_tiles/[folder name]/[shape file name] the shp_tiles folder is at /home/MAPS/map-tile/shp_tiles/[folders]/[shape names] i brought up tilex in arc explorer and it looks good. is there something i'm missing? i'm loading this mapfile via perl/mapscript, and it works fine when im not using tiling(when i use only shapepath and data), but displays an internal server error when i try the above. i have all my perl script errors printing to a file but when this error happens the error file gets written blank. thanks in advance for any help matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From Regina.Obe.PFD at ci.boston.ma.us Mon Sep 10 05:58:00 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Mon, 10 Sep 2001 08:58:00 -0400 Subject: [mapserver-users] Itemquery in Mapscript(PHP) Message-ID: I'm trying to simulate the item query functionality that is in mapserve in PHP mapscript. I followed another example I found on this list serv and that worked fine except I can't get it to zoom in. It highlights the area but doesn't zoom in and wondering if this is possible without having to query a table that has the list of extents for each feature. This is what my code looks like $map = ms_newMapObj("bosstreets.map"); $lzone = $map->getlayerbyname("zones"); //get neighborhood layer $lzone->set("status", MS_ON); $qclass = $lzone->getClass(0); $qclass->setexpression("Dorchester"); $acolor = $map->addColor(255,40,250); $qclass->set("color", $acolor); $img = $map->draw() or die('Unable to draw map'); $url = $img->saveWebImage(MS_GIF, 0, 0, -1); This is the portion of my map file that I think is relevant LAYER NAME "zones" DATA Pdnad83_region STATUS DEFAULT TYPE POLYGON CLASSITEM "NAME" CLASS NAME "NAME" OUTLINECOLOR 50 230 0 END END (I'm using mapscript for PHP 3.5 (pre-alpha) (Jul 20,2001) on PHP 4.0.6 running on top of IIS) Thanks. I'm really impressed with Mapscript and the Mapserv CGI exe so far. Never thought mapping could be this easy. Regina Obe Senior Programmer Department Of Neighborhood Development City of Boston From stephane.bricard at ducvra.com Mon Sep 10 08:58:27 2001 From: stephane.bricard at ducvra.com (=?iso-8859-1?Q?St=E9phane_Bricard?=) Date: Mon, 10 Sep 2001 17:58:27 +0200 Subject: [mapserver-users] How to compile mapserv with FreeType support ? HELP !!!!!!!!! Message-ID: <007c01c13a11$6ecd7c20$d101a8c0@acute> Hi everybody, I'm trying to compile mapserv (3.5 nightly build) with FreeType support. Freetype 2.04 is installed, GD1.3 also (I was previously using it with PHP 4.05). - Here are my compile options : php-4.0.6 : ./configure --with-mysql --with-apache=../apache_1.3.20 --with-gd=../gd1.3 - -without-ttf --enable-track-vars --enable-dbase --with-system-regex apache_1.3.20: ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a mapserver ./configure --with-php=../php-4.0.6 --with-gd=../gd1.3 --with-freetype=/usr/ local/bin/freetype-config - Here is the output of mapserv configure : ---------------------------------- creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking for bison... bison -y checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. checking which version of GD to use... using libgd from -L/root/install/mapserver/../gd1.3 -lgd checking where FreeType is installed... using libfreetype from -L/usr/local/lib -lfreetype checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. ./configure: unset: `ac_cv_lib_z_z,zlibVersion': not a valid identifier checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs. checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. checking for gdImageGif in -lc... yes checking for gdImagePng in -lc... no checking for gdImageJpeg in -lc... no checking for gdImageWBMP in -lc... no checking for gdImageStringFT in -lc... no checking for gdImageStringTTF in -lc... no checking for gdImageString16 in -lc... yes checking for gdImageGifPtr in -lc... no using GD ( -DUSE_GD_GIF) from /root/install/mapserver/../gd1.3. checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... yes using libtiff from system libs. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include PROJ.4 support... PROJ.4 support not requested. checking whether we should include ESRI SDE support... SDE Version is 80. ESRI SDE support not requested. checking whether we should compile in MPATROL support... MPATROL support not requested. checking whether we should include OGR support... OGR support not requested. checking if GDAL support requested... no checking if PostGIS support requested... no checking whether we should include WMS support... OGC WMS Compatibility not enabled (PROJ.4 is required for WMS). checking whether we should include WMS Client Connections support... OGC WMS Client Connections not enabled (PROJ.4 and libwww required). Compiling with -DIGNORE_MISSING_DATA. checking for PHP/MapScript module options... checking whether 'perl -V' works... yes checking for location of config.h or php_config.h... /root/install/mapserver/../php-4.0.6/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... no PHP/MapScript module configured. updating cache ./config.cache creating ./config.status creating Makefile creating mapscript/php3/Makefile -------------------------------------- I don't get any error while comiling mapserv BUT the only result I get when I try to use a TrueType related keyword in my mapfile (i.e FONT) is that : Warning: MapServer Error in loadlabel(): Keyword FONT is not valid without TrueType font support ms_GetVersion() returns this : MapServer version 3.5 (pre-alpha) OUTPUT=GIF INPUT=SHAPEFILE All of this is running on a Suse 6.4 box running pretty smoothly Apache and PHP for the last 2 years. Thanks in advance for any insight from any of you out there ! St?phane Bricard Paris France From steve.lime at dnr.state.mn.us Mon Sep 10 09:32:07 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 10 Sep 2001 11:32:07 -0500 Subject: [mapserver-users] Itemquery in Mapscript(PHP) Message-ID: The "zoom in" feature is specific to the mapserv CGI. You'd have to re-create that code in PHP to achieve functionality. Remember that with queries a result set is build and then drawn. During that first step is when shapes are first processed and their extents can be looked at. With the setup you have below that first step doesn't happen, that is, the extent is provided (probably in your mapfile) BEFORE the expressions are even evaluated. How to fix? Well you can do a true attribute query using the layer FILTER parameter and the queryByAttribute method or you can use other tools like the various .dbf modules and interact with the attribute table that way. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Obe, Regina DND\MIS" 09/10/01 07:58AM >>> I'm trying to simulate the item query functionality that is in mapserve in PHP mapscript. I followed another example I found on this list serv and that worked fine except I can't get it to zoom in. It highlights the area but doesn't zoom in and wondering if this is possible without having to query a table that has the list of extents for each feature. This is what my code looks like $map = ms_newMapObj("bosstreets.map"); $lzone = $map->getlayerbyname("zones"); //get neighborhood layer $lzone->set("status", MS_ON); $qclass = $lzone->getClass(0); $qclass->setexpression("Dorchester"); $acolor = $map->addColor(255,40,250); $qclass->set("color", $acolor); $img = $map->draw() or die('Unable to draw map'); $url = $img->saveWebImage(MS_GIF, 0, 0, -1); This is the portion of my map file that I think is relevant LAYER NAME "zones" DATA Pdnad83_region STATUS DEFAULT TYPE POLYGON CLASSITEM "NAME" CLASS NAME "NAME" OUTLINECOLOR 50 230 0 END END (I'm using mapscript for PHP 3.5 (pre-alpha) (Jul 20,2001) on PHP 4.0.6 running on top of IIS) Thanks. I'm really impressed with Mapscript and the Mapserv CGI exe so far. Never thought mapping could be this easy. Regina Obe Senior Programmer Department Of Neighborhood Development City of Boston From bamarob55 at yahoo.com Mon Sep 10 13:20:12 2001 From: bamarob55 at yahoo.com (Robert Aldridge) Date: Mon, 10 Sep 2001 13:20:12 -0700 (PDT) Subject: [mapserver-users] Compiling nightly build Message-ID: <20010910202012.98812.qmail@web10308.mail.yahoo.com> HELP! I'm getting very frustrated with myself trying to compile a recent nightly build of mapserver. I have a fresh install of Mandrake 8.0 and want to get mapserver working. I downloaded and installed gd, libtiff, libpng, libjpeg, etc. I also install the ArcSDE8.1 client. The configure script runs fine with the following arguments: ./configure --with-sde=/usr/local/arcsde/sdeexe81 --with-sde-version=81 --with-gd=../gd-1.8.4 Then I run make and everything seems to build OK. However, when I try to run mapserv with: ./mapserv /path-to-test-map/test.map I get: ./mapserv: error while loading shared libraries: libpng.so.3: cannot load shared object file: No such file or directory The libpng.so.3 exists in /usr/local/lib and the png tests worked ok. Help, please... Sorry if this sounds like a newbie question, but I'm stuck! Thanks, Robert Aldridge __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com From morissette at dmsolutions.ca Mon Sep 10 14:16:24 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 10 Sep 2001 17:16:24 -0400 Subject: [mapserver-users] Compiling nightly build References: <20010910202012.98812.qmail@web10308.mail.yahoo.com> Message-ID: <3B9D2DA8.2D20797F@dmsolutions.ca> Robert, I'm not sure about Mandrake, I'm more familiar with RedHat, but they should work the same way... 2 things to check: 1- Make sure /usr/local/bin is listed in /etc/ld.so.conf ... if it's not there then add it 2- Rerun /sbin/ldconfig as root... this will update the runtime libpath cache and force the system to see the latest libs that you installed. Hope that helps, Daniel Robert Aldridge wrote: > > HELP! > > I'm getting very frustrated with myself trying to > compile a recent nightly build of mapserver. I have a > fresh install of Mandrake 8.0 and want to get > mapserver working. I downloaded and installed gd, > libtiff, libpng, libjpeg, etc. I also install the > ArcSDE8.1 client. The configure script runs fine with > the following arguments: > > ./configure --with-sde=/usr/local/arcsde/sdeexe81 > --with-sde-version=81 --with-gd=../gd-1.8.4 > > Then I run make and everything seems to build OK. > However, when I try to run mapserv with: > > ./mapserv /path-to-test-map/test.map > > I get: > > ./mapserv: error while loading shared libraries: > libpng.so.3: cannot load shared object file: No such > file or directory > > The libpng.so.3 exists in /usr/local/lib and the png > tests worked ok. > > Help, please... > > Sorry if this sounds like a newbie question, but I'm > stuck! > > Thanks, > > Robert Aldridge > > __________________________________________________ > Do You Yahoo!? > Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger > http://im.yahoo.com -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From LBallard at YesVirginia.org Mon Sep 10 14:54:46 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Mon, 10 Sep 2001 17:54:46 -0400 Subject: [mapserver-users] Compiling nightly build Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CFC3@communications> I'm not in front of a Linux box right now but try: putting the lib directory in /etc/ld.so.conf then running /sbin/ldconfig I think those are the commands. You can also try telling the webserver where the library is by adding a line in httpd.conf that's something like: LD_LIBRARY_PATH = /path/to/lib restart the webserver. might want to verify syntax. -----Original Message----- From: Robert Aldridge To: MapServer_Users Sent: 9/10/01 4:20 PM Subject: [mapserver-users] Compiling nightly build HELP! I'm getting very frustrated with myself trying to compile a recent nightly build of mapserver. I have a fresh install of Mandrake 8.0 and want to get mapserver working. I downloaded and installed gd, libtiff, libpng, libjpeg, etc. I also install the ArcSDE8.1 client. The configure script runs fine with the following arguments: ./configure --with-sde=/usr/local/arcsde/sdeexe81 --with-sde-version=81 --with-gd=../gd-1.8.4 Then I run make and everything seems to build OK. However, when I try to run mapserv with: ./mapserv /path-to-test-map/test.map I get: ./mapserv: error while loading shared libraries: libpng.so.3: cannot load shared object file: No such file or directory The libpng.so.3 exists in /usr/local/lib and the png tests worked ok. Help, please... Sorry if this sounds like a newbie question, but I'm stuck! Thanks, Robert Aldridge __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com From jga at scot.cnes.fr Tue Sep 11 01:36:10 2001 From: jga at scot.cnes.fr (jrom) Date: Tue, 11 Sep 2001 10:36:10 +0200 Subject: [mapserver-users] LegendObj with php/mapscript Message-ID: <200109110830.KAA04648@cnes.fr> Hi, I'm currently writing s acript that parse a mapfile and import all parameters of the mapfile in a database. I'm using php/mapscript. I can get layerObj, classObject parameters, etc... But it seems that i cannot get legend and scalebar object. Is there a trick to get these parameters from the mapfile using php/mapscript or may i write a parser specially for these objects? Regards jrom From Regina.Obe.PFD at ci.boston.ma.us Tue Sep 11 05:16:28 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Tue, 11 Sep 2001 08:16:28 -0400 Subject: [mapserver-users] Itemquery in Mapscript(PHP) Message-ID: Stephen, Thanks for the suggestion. I was looking for some documentation or examples as to how to go about doing this, but couldn't find any on using FILTER parameter and queryByAttribute. Do you have an example of how to use this? I'm sure I'm way off-base and apologize if this is a really stupid question. I don't think this existed in the build I had so I upgraded to a newer build of php mapscript I tried something like $map = ms_newMapObj("bosstreets.map"); $lzone = $map->getlayerbyname("zones"); //get neighborhood layer $lzone->set("status", MS_ON); $lzone->set("filteritem", "NAME"); //NAME is the field in the table that refers to neighborhood $map->queryByAttributes("Dorchester", MS_SINGLE, -1); $img = $map->draw() or die('Unable to draw map'); $url = $img->saveWebImage(MS_GIF, 0, 0, -1); (I tried a bunch of permutations of queryByAttributes) But keep on getting the error Object has an invalid '_map_handle_' property (at the queryByAttributes line) -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Monday, September 10, 2001 12:32 PM To: Regina.Obe.PFD at ci.boston.ma.us; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Itemquery in Mapscript(PHP) The "zoom in" feature is specific to the mapserv CGI. You'd have to re-create that code in PHP to achieve functionality. Remember that with queries a result set is build and then drawn. During that first step is when shapes are first processed and their extents can be looked at. With the setup you have below that first step doesn't happen, that is, the extent is provided (probably in your mapfile) BEFORE the expressions are even evaluated. How to fix? Well you can do a true attribute query using the layer FILTER parameter and the queryByAttribute method or you can use other tools like the various .dbf modules and interact with the attribute table that way. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Obe, Regina DND\MIS" 09/10/01 07:58AM >>> I'm trying to simulate the item query functionality that is in mapserve in PHP mapscript. I followed another example I found on this list serv and that worked fine except I can't get it to zoom in. It highlights the area but doesn't zoom in and wondering if this is possible without having to query a table that has the list of extents for each feature. This is what my code looks like $map = ms_newMapObj("bosstreets.map"); $lzone = $map->getlayerbyname("zones"); //get neighborhood layer $lzone->set("status", MS_ON); $qclass = $lzone->getClass(0); $qclass->setexpression("Dorchester"); $acolor = $map->addColor(255,40,250); $qclass->set("color", $acolor); $img = $map->draw() or die('Unable to draw map'); $url = $img->saveWebImage(MS_GIF, 0, 0, -1); This is the portion of my map file that I think is relevant LAYER NAME "zones" DATA Pdnad83_region STATUS DEFAULT TYPE POLYGON CLASSITEM "NAME" CLASS NAME "NAME" OUTLINECOLOR 50 230 0 END END (I'm using mapscript for PHP 3.5 (pre-alpha) (Jul 20,2001) on PHP 4.0.6 running on top of IIS) Thanks. I'm really impressed with Mapscript and the Mapserv CGI exe so far. Never thought mapping could be this easy. Regina Obe Senior Programmer Department Of Neighborhood Development City of Boston From tom at asd-g.com Tue Sep 11 05:44:13 2001 From: tom at asd-g.com (Artem 'Thomas' Hlushko) Date: Tue, 11 Sep 2001 15:44:13 +0300 Subject: [mapserver-users] tcl mapscript real world examples Message-ID: <20010911154413.A2508@asd.kiev.ua> Hello, List! Please, send or give links to subj. I have load mapfiles, modify mapObj, add inline features, change expressions, ..., save map, reference, scale and legend images to build complex web application. The only examples I found are shpinfo.tcl and msworkbench. The first is short, the second uses object packages and obfuscates mapscript API. Perl and PHP docs and examples don't help - tcl is too different. Thanks From morissette at dmsolutions.ca Tue Sep 11 05:54:07 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 11 Sep 2001 08:54:07 -0400 Subject: [mapserver-users] Itemquery in Mapscript(PHP) References: Message-ID: <3B9E096F.788FDEFC@dmsolutions.ca> "Obe, Regina DND\\MIS" wrote: > > (I tried a bunch of permutations of queryByAttributes) > > But keep on getting the error > Object has an invalid '_map_handle_' property (at the queryByAttributes > line) > Running PHP4.0.6, correct? A fix for this _map_handle_ problem has been committed to CVS on 2001-09-05 ... so you should recompile with the latest MapServer CVS source. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Sep 11 06:03:45 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 11 Sep 2001 09:03:45 -0400 Subject: [mapserver-users] LegendObj with php/mapscript References: <200109110830.KAA04648@cnes.fr> Message-ID: <3B9E0BB1.FD91F5B1@dmsolutions.ca> jrom wrote: > > I'm currently writing s acript that parse > a mapfile and import all parameters of the > mapfile in a database. I'm using php/mapscript. > I can get layerObj, classObject parameters, etc... > But it seems that i cannot get legend and scalebar > object. Is there a trick to get these parameters from > the mapfile using php/mapscript or may i write a > parser specially for these objects? > There is currently no way to access the legendObj and scalebarObj parameters from PHP MapScript (nobody ever needed them before) so these will have to be added eventually. I've filed this in bugzilla to make sure this gets addressed, but that's low priority as we have more important issues to resolve before the 3.5 release. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=41 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From teb at mallit.fr.umn.edu Tue Sep 11 06:24:18 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 11 Sep 2001 08:24:18 -0500 (CDT) Subject: [mapserver-users] point does not appear in mapscript (fwd) Message-ID: <200109111324.IAA01224@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Steven Hayes" To: Subject: point does not appear in mapscript Date: Tue, 11 Sep 2001 22:19:08 +1000 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Hi, I've been using MapServ in a very basic way for some time but have just started working with mapscript. I have gotten a simple map to draw but what I really want to do is to dynamically add points (based on a sql query, though I think that is not relevant to this question). My problem is in using the pointObj() method and specifically the class parameter. I am a bit vague on this one but it seems to me that the symbol and the colour used to draw the point is sourced from the class definition in a layer called from the map file using the getLayerByName method. My relevant layer statement in the map file is as follows: ########################################################################33 LAYER NAME sw_sites TYPE point STATUS OFF DATA locations #DATA location_mi_point labelitem "ID" CLASS SYMBOL 3 SIZE 7 NAME sw_sites COLOR 254 0 0 LABEL BACKGROUNDCOLOR 200 255 255 COLOR 30 94 94 SIZE SMALL POSITION AUTO WRAP " " END END END ############################################################# My mapscript code is as follows: ############################################################### #! /usr/bin/perl use CGI qw/:standard :html3 -no_debug/; use mapscript; $q = new CGI; print $q->header(); $map = new mapObj("/www/hosted/streamwatch/cgi-bin/streamwatch.map") or die('Unable to open mapfile.'); my $layer = $map->getLayerByName('regall'); $layer->{status} = $mapscript::MS_ON; my $layer = $map->getLayerByName('ocean'); $layer->{status} = $mapscript::MS_ON; my $layer = $map->getLayerByName('rivall'); $layer->{status} = $mapscript::MS_ON; $point = new pointObj(); $point->{y} = $data->{'-33.7577'}; $point->{x} = $data->{'151.0188'}; $map->{extent}->{minx}= 150.9000; $map->{extent}->{miny}= -33.6000; $map->{extent}->{maxx}= 151.1000; $map->{extent}->{maxy}= -33.8000; $map->{height} = 300; $map->{width} = 300; my $img = $map->prepareImage(); #$layer->draw($map, $img); $img = $map->draw() or die('Unable to draw map'); $layer = $map->getLayerByName('sw_sites'); $point->draw($map, $layer, $img, 0, "test point"); $map->drawLabelCache($img); mapscript::msSaveImage($img, undef, $map->{interlace}, $map->{transparent}); ########################################################################3 The following link shows what result I get: http://www.streamwatch.org.au/cgi-bin/testmapscript.pl There should by rights be a small red triangle in somewhere near the center of the map with the lable "test point". I am clearly missing something fundamental. Can anyone help? Regards Steven Hayes TND Computer Systems Sydney NSW Australia ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Tue Sep 11 06:24:28 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 11 Sep 2001 08:24:28 -0500 (CDT) Subject: [mapserver-users] mapscript point problem solved (fwd) Message-ID: <200109111324.IAA01228@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Steven Hayes" To: Subject: mapscript point problem solved Date: Tue, 11 Sep 2001 22:24:32 +1000 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Hi, as is almost always the case with me, as soon as I sent my last email to the list regarding using the pointObj() method I solved the problem by simply thinking it through. As mapscript examples seem to be a bith thin on the ground perhaps this one might help someone now it works. #! /usr/bin/perl # plots a test point on a map - written as a test prior to generating entire point layer from sql # query use CGI qw/:standard :html3 -no_debug/; use mapscript; $q = new CGI; print $q->header(); $map = new mapObj("/www/hosted/streamwatch/cgi-bin/streamwatch.map") or die('Unable to open mapfile.'); my $layer = $map->getLayerByName('regall'); $layer->{status} = $mapscript::MS_ON; my $layer = $map->getLayerByName('ocean'); $layer->{status} = $mapscript::MS_ON; my $layer = $map->getLayerByName('rivall'); $layer->{status} = $mapscript::MS_ON; $point = new pointObj(); $point->{y} = -33.7577; $point->{x} = 151.0188; $map->{extent}->{minx}= 150.9000; $map->{extent}->{miny}= -33.6000; $map->{extent}->{maxx}= 151.1000; $map->{extent}->{maxy}= -33.8000; $map->{height} = 300; $map->{width} = 300; my $img = $map->prepareImage(); #$layer->draw($map, $img); $img = $map->draw() or die('Unable to draw map'); $layer = $map->getLayerByName('sw_dynamic_sites'); $point->draw($map, $layer, $img, 0, "test point"); $map->drawLabelCache($img); mapscript::msSaveImage($img, undef, $map->{interlace}, $map->{transparent}); Regards Steven Hayes ------------- End Forwarded Message ------------- From lmallach at gte.net Tue Sep 11 11:28:03 2001 From: lmallach at gte.net (Lawrence E. Mallach) Date: Tue, 11 Sep 2001 11:28:03 -0700 Subject: [mapserver-users] Re: [OSRS] very large image handling & serving? References: <6DD7370C9452D31192A10008C75D07530BA1B27F@raptor.gov.yk.ca> Message-ID: <02e801c13aef$7f1ebc40$c4faafcf@gte.net> Hi All While this is not a free solution, it is a very good and very inexpensive solution. Try www.innomage.com. ----- Original Message ----- From: Matt.Wilkie To: Cc: ; mapserver-users at lists. gis. umn. edu (E-mail) Sent: Thursday, August 23, 2001 5:18 PM Subject: [OSRS] very large image handling & serving? > Hi All, > > What is the current state of open source / free software solutions > for handling and serving very large images? > > Please reply to me directly and I will summarize the responses back > to the lists in about a week. > > The goal is to serve up ortho-mosaics with the following dimensions > and size (uncompressed): > > RAW MOSAIC > 30 metre Standard: 37,000 x 32,000 pixels = ~ 1.2gig > 15 metre Panchromatic: 74,000 x 64,000 pixels = ~ 4.8gig > 60 metre Thermal: 18,500 x 16,000 pixels = ~ 296 meg > > IMAGE PRODUCTS > 30 metre RGB Composite = 1.2gig x 3 = 3.6gig > 15 metre Enhanced Composite = 3.6gig x 4 = 14.4 gig > > The user would display a decimated reference image of the entire mosaic and > draw a selection box to select their area of interest. > This could be via a web or standalone app. Most areas of interest > would probably not be larger than screen size (eg. 1280x1064). > > Clients would require everything from full resolution 1to1 images > for remote sensing analysis to decimated "web-ready" screen shots. > > Other notes: > > - clients are desktop publishing apps (Word, Excel, Publisher, > Illustrator, PhotoShop), low end GIS (ArcView, MapInfo), high > end GIS/RS (ArcInfo v7&8, PCI), and web browsers (IE, NS). > > - Mutli-segmented intranet, Windows NT 4 domain servers > > - hardware of the server is yet determined but is not likely to > be that good, at least initially (eg. ~1ghz, 768mb ram, IDE RAID) > > - the sysadmins are all mostly Win32 based, the *nix expertise is > limited thus any *nix-based solution must be GUI and and should be > WIMP friendly. > > - there is a non-trivial amount of ESRI inertia, thus for > Mapserver to win out over ArcIMS there must be compelling > arguments with pretty pictures. > > - there is a non-trivial amount of Microsoft inertia, thus more > compelling arguments and more pretty pictures. > > I have no idea what the actual demand on the server will be, but > potentially a lot -- 595 computers spread over 21 subnets on the > intranet just answered to "net view". > > The results of this query are not likely to be implemented by > myself; I will be writing it up a report and passing on > recommendations. > > > > -matt > > ----------------------------------------------------------------- > Matt Wilkie * Yukon Renewable Resources GIS > http://renres.gov.yk.ca/pubs/rrgis/ > ----------------------------------------------------------------- > ---------------------------------------- > Open Source Remote Sensing Project Discussion List > To Subscribe: send a message to majordomo at remotesensing.org with 'subscribe osrs' in the body > To Unsubscribe: send a message to majordomo at remotesensing.org with 'unsubscribe osrs' in the body > To Report Problems: send a message to owner-remotesensing at remotesensing.org From pramsey at refractions.net Tue Sep 11 13:27:21 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 11 Sep 2001 13:27:21 -0700 Subject: [mapserver-users] Re: [OSRS] very large image handling & serving? References: <6DD7370C9452D31192A10008C75D07530BA1B27F@raptor.gov.yk.ca> <02e801c13aef$7f1ebc40$c4faafcf@gte.net> Message-ID: <3B9E73A9.248CFC69@refractions.net> Performance and stability are always great themes to dwell on when selling to PHBs. They sound both important and measurable. My anecdotal experience with IMS and Mapserver has convinced me that Mapserver is both faster, and more stable. However, I just have only a few personal data points. Has anyone ever done a benchmarking which could be released and used by other Mapservernauts to advance the cause? "Lawrence E. Mallach" wrote: > > Hi All > > While this is not a free solution, it is a very good and very inexpensive > solution. Try www.innomage.com. > > ----- Original Message ----- > From: Matt.Wilkie > To: > Cc: ; mapserver-users at lists. gis. umn. edu (E-mail) > > Sent: Thursday, August 23, 2001 5:18 PM > Subject: [OSRS] very large image handling & serving? > > > Hi All, > > > > What is the current state of open source / free software solutions > > for handling and serving very large images? > > > > Please reply to me directly and I will summarize the responses back > > to the lists in about a week. > > > > The goal is to serve up ortho-mosaics with the following dimensions > > and size (uncompressed): > > > > RAW MOSAIC > > 30 metre Standard: 37,000 x 32,000 pixels = ~ 1.2gig > > 15 metre Panchromatic: 74,000 x 64,000 pixels = ~ 4.8gig > > 60 metre Thermal: 18,500 x 16,000 pixels = ~ 296 meg > > > > IMAGE PRODUCTS > > 30 metre RGB Composite = 1.2gig x 3 = 3.6gig > > 15 metre Enhanced Composite = 3.6gig x 4 = 14.4 gig > > > > The user would display a decimated reference image of the entire mosaic > and > > draw a selection box to select their area of interest. > > This could be via a web or standalone app. Most areas of interest > > would probably not be larger than screen size (eg. 1280x1064). > > > > Clients would require everything from full resolution 1to1 images > > for remote sensing analysis to decimated "web-ready" screen shots. > > > > Other notes: > > > > - clients are desktop publishing apps (Word, Excel, Publisher, > > Illustrator, PhotoShop), low end GIS (ArcView, MapInfo), high > > end GIS/RS (ArcInfo v7&8, PCI), and web browsers (IE, NS). > > > > - Mutli-segmented intranet, Windows NT 4 domain servers > > > > - hardware of the server is yet determined but is not likely to > > be that good, at least initially (eg. ~1ghz, 768mb ram, IDE RAID) > > > > - the sysadmins are all mostly Win32 based, the *nix expertise is > > limited thus any *nix-based solution must be GUI and and should be > > WIMP friendly. > > > > - there is a non-trivial amount of ESRI inertia, thus for > > Mapserver to win out over ArcIMS there must be compelling > > arguments with pretty pictures. > > > > - there is a non-trivial amount of Microsoft inertia, thus more > > compelling arguments and more pretty pictures. > > > > I have no idea what the actual demand on the server will be, but > > potentially a lot -- 595 computers spread over 21 subnets on the > > intranet just answered to "net view". > > > > The results of this query are not likely to be implemented by > > myself; I will be writing it up a report and passing on > > recommendations. > > > > > > > > -matt > > > > ----------------------------------------------------------------- > > Matt Wilkie * Yukon Renewable Resources GIS > > http://renres.gov.yk.ca/pubs/rrgis/ > > ----------------------------------------------------------------- > > ---------------------------------------- > > Open Source Remote Sensing Project Discussion List > > To Subscribe: send a message to majordomo at remotesensing.org with > 'subscribe osrs' in the body > > To Unsubscribe: send a message to majordomo at remotesensing.org with > 'unsubscribe osrs' in the body > > To Report Problems: send a message to > owner-remotesensing at remotesensing.org -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From jimburnett at ntelos.net Wed Sep 12 06:18:05 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 12 Sep 2001 09:18:05 -0400 Subject: [mapserver-users] Putting a point on my map References: Message-ID: <00b801c13b8d$5bd3cfc0$2f01a8c0@jbwin2000> I only know the extents, I want to put a point over a shape, in my map, based on my search. May have multiple points. Basically I want to use the expression setting in the layer object to show points or icons. -jim ----- Original Message ----- From: "Stephen Lime" To: ; Sent: Wednesday, September 05, 2001 5:10 PM Subject: Re: [mapserver-users] Putting a point on my map > Assuming you've working within a layer that has already been defined > or read from a mapfile, and that the coordinates reside in a pointObj then > you use the draw method. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Jim Burnett 09/05/01 09:43AM >>> > OK, could someone point me in the right direction as to wich function in > MapScript I would use to get a point to show up on parcels? So if I do a > search on my data, it would put dots, or push pins on the parcels. I can get > the extents of those parcels, but what function do I use to put a Dot or Pin > at those extents? > > > thanks! > > -jim > > From bart at atsence.nl Wed Sep 12 08:42:45 2001 From: bart at atsence.nl (Bart van Heijningen) Date: Wed, 12 Sep 2001 17:42:45 +0200 Subject: [mapserver-users] Compile probelems RH7.0 Message-ID: First of all I would like to express my sympathy for the american people during these terrible times. I realize that my little problems have no significance at all in respect to what is going on in the US right now. Bart van Heijningen Maybe if one has some time please look at this for a sec. I just cannot get the mapserver php interface compiled. I use: Mapserver 3.4 GD 1.2 RH 7.0 php 3.0.18 Apache 1.3.19 I "use" the hints described in the document PHP/MapScript compile and install on RedHat 6.x I have Php working witha Apache just fine. (I downgraded to php3 as I got error messages complaining about the version of my php4) I use ./configure --with-gd=gd-1.2 --without-ttf --with-php=../php-3.0.18 --with-a pxs All the time results in a php error mesg saying: --cut -- -------------------------------------- -------- important !!! ------- -------------------------------------- To use PHP extentions on your OS, you will have tio recompile PHP. You need to edit the Makefile with in the php3 directory and add -"to the start of the LDFLAGS line at the top of the makefile" -des-Doptimze=-02 -march=i386 -mcpu=i386 -Dcc=gcc _Dcccdlflags=-fPIC -Dinstalprefix=/usr -Dprefix=/usr -Darchname=i386-linux - Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -D man3ext=3pm -Uuselargefiles -rdynamic --cut-- I put this in the Configuration.tmpl file as suggested as I use the APACI built mechanism But... this changes nothing the same erroro occurs and the ./configure ends with -- cut -- creating Makefile sed: file conftest.s1 line 74: undeterminated 's' command creating gdft/Makefile sed: file conftest.s1 line 74: undeterminated 's' command creating mapscript/php3/Makefile sed: file conftest.s1 line 74: undeterminated 's' command -- cut -- Then I do a make and the result is: -- cut -- make: ** No targets. Stop. -- cut -- I tried quite some things but I am treall stuck now for a fe weeks -------------- next part -------------- An HTML attachment was scrubbed... URL: From praktikant2.arp at bd.so.ch Wed Sep 12 09:54:38 2001 From: praktikant2.arp at bd.so.ch (Praktikant/in2 ARP) Date: Wed, 12 Sep 2001 17:54:38 +0100 Subject: [mapserver-users] line of true type symbols; marker filling Message-ID: <5B025B1F39D6D4119F5700508BEEEC66214B25@srsofaioi4546.ktso.ch> Hello Stephen, I wonna make a line out of a symbol from a TrueTypeFont (when the symbol is already defined in the .sym file) but I cannot do it with spacing between each symbol. they always go one after another to form the line. Is there like a STYLE command where I can define the space width? how can I actually insert a symbol (TrueType) with a filling? can I make it a composite marker in the mapfile when I have 2 symbols (one for the outline, one for the filling) in the .sym file to superpose ? or is there a FILL*? command which creates the filling? (its not working with the BACKGROUNDCOLOR/COLOR commands --> result is transparent) thank you. Doreen Wenzel. From morissette at dmsolutions.ca Wed Sep 12 08:58:54 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 12 Sep 2001 11:58:54 -0400 Subject: [mapserver-users] Compile probelems RH7.0 References: Message-ID: <3B9F863E.20CDE993@dmsolutions.ca> > Bart van Heijningen wrote: > > -- cut -- > creating Makefile > sed: file conftest.s1 line 74: undeterminated 's' command > creating gdft/Makefile > sed: file conftest.s1 line 74: undeterminated 's' command > creating mapscript/php3/Makefile > sed: file conftest.s1 line 74: undeterminated 's' command > > -- cut -- > There was a problem in the 3.4 configure script with RH7.x and a few other ones. Try again with this new configure script: http://www2.dmsolutions.ca/mapserver/dl/ms34_configure-RH7-20010219.tar.gz -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Wed Sep 12 11:22:48 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 12 Sep 2001 14:22:48 -0400 Subject: [mapserver-users] How to compile mapserv with FreeType support ? HELP !!!!!!!!! References: <007c01c13a11$6ecd7c20$d101a8c0@acute> Message-ID: <3B9FA7F8.51818A58@dmsolutions.ca> St?phane Bricard wrote: > > Hi everybody, > > I'm trying to compile mapserv (3.5 nightly build) with FreeType support. > Freetype 2.04 is installed, GD1.3 also (I was previously using it with PHP > 4.05). > > - Here are my compile options : > > mapserver > ./configure --with-php=../php-4.0.6 --with-gd=../gd1.3 --with-freetype=/usr/ > local/bin/freetype-config > Stephane, Starting with MapServer 3.5, Freetype is supported via the GD library and not directly as it used to be. This means that you need to compile MapServer with a GD that includes Freetype support and then MapServer's configure should detect that GD supports Freetype and will enable truetype fonts in MapServer. I don't think GD1.3 could support Freetype, so you'll probably have to upgrade to GD1.8.x. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From LBallard at YesVirginia.org Wed Sep 12 12:14:57 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Wed, 12 Sep 2001 15:14:57 -0400 Subject: [mapserver-users] php_mapscript.so: undefined symbol: gdImageCreateFromGif Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CFE0@communications> RH 7.1 Nightly build from yesterday I can't seem to hammer out this problem. I think it's an issue with gd libraries but I didn't compile Apache with GD support nor PHP. Is Mapserv seeing 2 gd library versions which may exist on the system? ./configure --with-gd=./gd-1.8.4 --with-php=/usr/local/src/Apachetoolbox-1.5.32/src/php-4.0.6 --with-sde=../sdeexe81/ --with-sde-version=81 Using patched gd libs with .gif support. Here's my link: http://gis.vedp.org/testweb/mapserver/mapscript/php3/examples/phpinfo_mapscr ipt.php Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Wed Sep 12 13:30:06 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 12 Sep 2001 16:30:06 -0400 Subject: [mapserver-users] php_mapscript.so: undefined symbol: gdImageCreateFromGif References: <509989F9E1D38D47ADA73ED9CF5BF32A16CFE0@communications> Message-ID: <3B9FC5CE.717D44DA@dmsolutions.ca> Ballard,Lowell wrote: > > RH 7.1 > > Nightly build from yesterday > > I can't seem to hammer out this problem. I think it's an issue with > gd libraries but I didn't compile Apache with GD support nor PHP. Is > Mapserv seeing 2 gd library versions which may exist on the system? > > ./configure -with-gd=./gd-1.8.4 --with-php=/usr/local/src/Apachetoolbox-1.5.32/src/php-4.0.6 --with-sde=../sdeexe81/ --with-sde-version=81 > > Using patched gd libs with .gif support. RH7.1 comes with its own GD in /usr/lib ... so you are likely compiling with the right one, but at runtime its the /usr/lib/libgd.so that gets picked and this one has no GIF support. Try configuring with --with-gd=static,./gd-1.8.4 This will force linking with ./gd-1.8.4/libgd.a -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bfischer at mpls.houstoneng.com Wed Sep 12 14:44:27 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Wed, 12 Sep 2001 16:44:27 -0500 Subject: [mapserver-users] Problem with Netscape treating a space different than Internet Explorer Message-ID: <8879CCE0F0187742B7302A93A8B87B09029813@mpls.houstoneng.com> Mapserver community, I was wondering if anyone else has had this problem. I assume there must be a way around it, but can't find a solution. Here is the problem: I am using the [layers] cgi variable in a hyperlink like shown below. http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=[map]&templat e=printmap.html&layers=[layers]&mapext=[minx]+[miny]+[maxx]+[maxy] The problem is Netscape does not replace the space with a %20, but Internet Explorer does. Internet Explorer 5.5 URL: http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=projects/fgdc /mapviewer/mapviewer.map&template=printmap.html&layers=lakes%20Rivers%20 Roads&mapext=-100.092035+47.222059+-94.531453+51.668504 Netscape 4.7 URL: http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=projects/fgdc /mapviewer/mapviewer.map&template=printmap.html&layers=lakes Rivers Roads&mapext=-96.766990+48.008085+-95.278996+49.197928 Any suggestions would be greatly appreciated. Thanks, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From tkralidi at CCRS.NRCan.gc.ca Wed Sep 12 15:39:35 2001 From: tkralidi at CCRS.NRCan.gc.ca (Tom Kralidis) Date: Wed, 12 Sep 2001 18:39:35 -0400 (EDT) Subject: [mapserver-users] Problem with Netscape treating a space different than Internet Explorer : In-Reply-To: <8879CCE0F0187742B7302A93A8B87B09029813@mpls.houstoneng.com> Message-ID: Hi, You may want to try a JavaScript call to figure out which browser is the client, i.e.: Check the JavaScript documentation for the correct syntax on replacing substrings. Hope this helps. ..Tom You wrote... >Date: Wed, 12 Sep 2001 16:44:27 -0500 >From: Brian Fischer >To: mapserver-users at lists.gis.umn.edu >Subject: [mapserver-users] Problem with Netscape treating a space > different than Internet Explorer > >Mapserver community, > >I was wondering if anyone else has had this problem. I assume there >must be a way around it, but can't find a solution. > >Here is the problem: I am using the [layers] cgi variable in a hyperlink >like shown below. > >http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=[map]&templat >e=printmap.html&layers=[layers]&mapext=[minx]+[miny]+[maxx]+[maxy] > >The problem is Netscape does not replace the space with a %20, but >Internet Explorer does. > >Internet Explorer 5.5 URL: >http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=projects/fgdc >/mapviewer/mapviewer.map&template=printmap.html&layers=lakes%20Rivers%20 >Roads&mapext=-100.092035+47.222059+-94.531453+51.668504 > >Netscape 4.7 URL: >http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=projects/fgdc >/mapviewer/mapviewer.map&template=printmap.html&layers=lakes Rivers >Roads&mapext=-96.766990+48.008085+-95.278996+49.197928 > >Any suggestions would be greatly appreciated. > >Thanks, >Brian > > From peter at digitalearth.com.au Wed Sep 12 18:35:33 2001 From: peter at digitalearth.com.au (Peter Naumovski) Date: Thu, 13 Sep 2001 11:35:33 +1000 Subject: [mapserver-users] dissappearing image References: Message-ID: <001e01c13bf4$62668730$0d00a8c0@mars> Hi all, I am having some problems with one of the layers I am using in a Mapserver application I have built. When zoomed out to full extents, the image seems to get cut from the top left corner to a vertex on the bottom right hand corner, and misses the vertex on the bottom left hand corner. If I zoom in this problem sometimes dissappears, but other times it still occurs when zooming in. I have attached an image which displays this problem Any help would be greatly appreciated. Regards Peter Naumovski Visualisation/GIS Digital Earth Pty Ltd tel: 02 4271 0492 fax: 02 4271 4950 web: http://www.digitalearth.com.au -------------- next part -------------- A non-text attachment was scrubbed... Name: map_prob.png Type: image/png Size: 3567 bytes Desc: not available URL: From ed at topozone.com Wed Sep 12 19:00:56 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 12 Sep 2001 22:00:56 -0400 Subject: [mapserver-users] dissappearing image Message-ID: <13858AA1A74F30419F319ACB66A9D122D1AC@mercator.topozone.com> Peter - That looks odd; you don't have some wayward white polygon layer lying on top? Is there a URL where we can see this interactively? Can you send the MAP file? - Ed Ed McNierney Chief Mapmaker TopoZone.com / Maps a la carte, Inc. ed at topozone.com -----Original Message----- From: Peter Naumovski [mailto:peter at digitalearth.com.au] Sent: Wednesday, September 12, 2001 9:36 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] dissappearing image Hi all, I am having some problems with one of the layers I am using in a Mapserver application I have built. When zoomed out to full extents, the image seems to get cut from the top left corner to a vertex on the bottom right hand corner, and misses the vertex on the bottom left hand corner. If I zoom in this problem sometimes dissappears, but other times it still occurs when zooming in. I have attached an image which displays this problem Any help would be greatly appreciated. Regards Peter Naumovski Visualisation/GIS Digital Earth Pty Ltd tel: 02 4271 0492 fax: 02 4271 4950 web: http://www.digitalearth.com.au From peter at digitalearth.com.au Wed Sep 12 21:41:03 2001 From: peter at digitalearth.com.au (Peter Naumovski) Date: Thu, 13 Sep 2001 14:41:03 +1000 Subject: [mapserver-users] dissappearing image References: <13858AA1A74F30419F319ACB66A9D122D1AC@mercator.topozone.com> Message-ID: <001601c13c0e$5bfa65f0$0d00a8c0@mars> Hi all, Here is the map file I am using: NAME WOLLONGONG EXTENT 150 -35 151.2759 -34 SIZE 430.5 337 FONTSET "D:/mapserver/symbols/fonts/fonts.list" SYMBOLSET symbols/symbols.sym SHAPEPATH "D:/mapserver/shapefiles" UNITS DD WEB TEMPLATE templates/wollongong.html IMAGEPATH "C:/TEMP/" IMAGEURL "/tmp/" END LEGEND KEYSIZE 15 8 #IMAGECOLOR 240 240 240 LABEL TYPE truetype FONT arial SIZE 9 COLOR 0 0 0 OFFSET 0 -4.5 ANTIALIAS END STATUS ON END SCALEBAR STATUS on INTERVALS 4 SIZE 200 2 COLOR 0 0 0 OUTLINECOLOR 0 0 0 IMAGECOLOR 240 240 240 BACKGROUNDCOLOR 255 255 255 UNITS kilometers LABEL COLOR 0 0 0 SIZE SMALL END END REFERENCE STATUS ON IMAGE shapefiles/ref_map.png SIZE 150 150 EXTENT 150 -35 151.2759 -34 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END LAYER NAME "water" DATA water STATUS DEFAULT TYPE POLYGON CLASS name "Water" COLOR 219 247 247 END END LAYER NAME "land" DATA land STATUS DEFAULT TYPE POLYGON CLASS name "Land" COLOR 229 229 213 END END LAYER NAME "tifImage" DATA /mapserver/raster/wollongong_geo.tif STATUS DEFAULT TYPE raster END LAYER NAME "builtup" DATA builtup STATUS ON TYPE Polygon CLASS name "Urban Area" COLOR 255 193 237 END END LAYER NAME "coast" DATA coast STATUS DEFAULT TYPE line CLASS name "Coast" COLOR 100 100 100 END END LAYER NAME "mainroads" DATA main_roads STATUS OFF TYPE line CLASS name "Main Roads" COLOR 200 0 0 symbol 'line' size 2 END END LAYER NAME "minor_roads" DATA minor_roads STATUS OFF TYPE line CLASS name "Minor roads" COLOR 200 0 0 END END LAYER NAME "rail" DATA rail STATUS OFF TYPE line CLASS name "Rail" COLOR 20 20 20 END END LAYER NAME "watercourse" DATA watercourse STATUS OFF TYPE line CLASS name "Watercourse" COLOR 0 0 200 END END LAYER NAME "Rivers" DATA streams STATUS OFF TYPE Polygon CLASS name "Rivers" COLOR 0 0 200 END END LAYER NAME "reservoir" DATA reservoir STATUS OFF TYPE Polygon CLASS name "Reservoir" COLOR 0 30 100 END END LAYER NAME "lakes" DATA lakes STATUS OFF TYPE Polygon CLASS name "Lakes" COLOR 55 146 249 END END LAYER NAME "swamp" DATA swamp STATUS OFF TYPE Polygon CLASS name "Swamp" COLOR 74 74 17 END END LAYER NAME "Cities" DATA cities STATUS OFF TYPE point LABELITEM "name" CLASS name "Cities" COLOR 240 242 104 OUTLINECOLOR 255 255 255 size 10 SYMBOL 'circle' LABEL TYPE truetype FONT arial-bold SIZE 10 COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION CR OFFSET 2 0 END END END END # end of map file Thanks for your help ----- Original Message ----- From: "Ed McNierney" To: "Peter Naumovski" ; Sent: Thursday, September 13, 2001 12:00 PM Subject: RE: [mapserver-users] dissappearing image > Peter - > > That looks odd; you don't have some wayward white polygon layer lying on > top? Is there a URL where we can see this interactively? Can you send > the MAP file? > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > ed at topozone.com > > -----Original Message----- > From: Peter Naumovski [mailto:peter at digitalearth.com.au] > Sent: Wednesday, September 12, 2001 9:36 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] dissappearing image > > > Hi all, > > I am having some problems with one of the layers I am using in a > Mapserver > application I have built. > When zoomed out to full extents, the image seems to get cut from the top > left corner to a vertex on the > bottom right hand corner, and misses the vertex on the bottom left hand > corner. If I zoom in this problem > sometimes dissappears, but other times it still occurs when zooming in. > > I have attached an image which displays this problem > > Any help would be greatly appreciated. > > Regards > Peter Naumovski > > Visualisation/GIS > Digital Earth Pty Ltd > tel: 02 4271 0492 > fax: 02 4271 4950 > web: http://www.digitalearth.com.au > > > > > From peter at digitalearth.com.au Wed Sep 12 22:46:49 2001 From: peter at digitalearth.com.au (Peter Naumovski) Date: Thu, 13 Sep 2001 15:46:49 +1000 Subject: [mapserver-users] dissappearing image References: <13858AA1A74F30419F319ACB66A9D122D1AC@mercator.topozone.com> Message-ID: <000501c13c17$7c4d9c60$0d00a8c0@mars> Hi, I managed to solve my problem by adding another vertex to the bottom left hand corner of that particular shapefile. Although I don't really understand why it solved my problem it appears to be working. Thanks for all the help Regards Peter Naumovski Visualisation/GIS Digital Earth Pty Ltd tel: 02 4271 0492 fax: 02 4271 4950 web: http://www.digitalearth.com.au From matt at aruke.com Thu Sep 13 00:30:40 2001 From: matt at aruke.com (Matt Carlson) Date: Thu, 13 Sep 2001 16:30:40 +0900 Subject: [mapserver-users] classindex References: <13858AA1A74F30419F319ACB66A9D122D1AC@mercator.topozone.com> <000501c13c17$7c4d9c60$0d00a8c0@mars> Message-ID: <000901c13c25$fe15e9b0$0400a8c0@matt> i got this off of the mailing list archives for changes with mapserver 3.5. - Draw() method of pointObj, RectObj take class_index instead of class_name as argument pointObj->Draw(map, layer, img, class_index, label_string) rectObj->Draw(map, layer, img, class_index, label_string) how do i get class_index of a mapscript created class, or any class for that matter? i browsed through the source and the only reference to classindex i could find was from the shapeObj. why was this changed? code: ### create a layer ## $layer = new layerObj($map); $layer->{name} = "bmpl_".$bmpref; $layer->{type} = $mapscript::MS_POINT; $layer->{status} = $mapscript::MS_ON; ### layer classes ### $class = new classObj($layer); $class->{name} = 'bmcl_'.$bmpref; $symx = $map->getSymbolByName($bmpref); $class->{symbol} = $symx; @latpnts = split(/w/,$latclass{$bmpref}); @lonpnts = split(/w/,$lonclass{$bmpref}); ## point object ## loop through each set of points for ($k=0; $k<=$#latpnts ;$k++){ $point = new pointObj(); $point->{x} = @lonpnts[$k]; $point->{y} = @latpnts[$k]; $point->draw($map,$layer,$img,???????????????????????????,undef); } From tom at asd-g.com Thu Sep 13 00:44:51 2001 From: tom at asd-g.com (Artem 'Thomas' Hlushko) Date: Thu, 13 Sep 2001 10:44:51 +0300 Subject: [tpoindex@nyx.net: Re: [mapserver-users] tcl mapscript real world examples] Message-ID: <20010913104451.F2508@asd.kiev.ua> ----- Forwarded message from Tom Poindexter ----- X-Nyx-Envelope-Data: Date=Tue Sep 11 11:12:19 2001, Sender=tpoindex, Recipient=tom at asd-g.com, Valsender=tpoindex at localhost From: Tom Poindexter To: "Artem 'Thomas' Hlushko" Subject: Re: [mapserver-users] tcl mapscript real world examples X-OriginalArrivalTime: 11 Sep 2001 17:05:12.0310 (UTC) FILETIME=[EB522160:01C13AE3] On Tue, Sep 11, 2001 at 03:44:13PM +0300, Artem 'Thomas' Hlushko wrote: > I have load mapfiles, modify mapObj, add > inline features, change expressions, ..., > save map, reference, scale and legend images > to build complex web application. Sounds like you have a good grip on things if you're doing this much! > The only examples I found are shpinfo.tcl > and msworkbench. The first is short, the > second uses object packages and obfuscates > mapscript API. There are two different API's. The first the the Mapscript interface as implemented in Tcl. This should be relatively equivalent to the Perl and Python interfaces, as they are each built from the same Swig specification. There is a Swig generated documentation file, that pretty much just lists the objects and methods. Yes, sadly, there isn't a lot of docs. The Mapscript docs at mapserver.gis.umn.edu/mapscript.html should give you a good intro, even for Tcl. The main differences are the language syntax issues. Where Perl uses '->' as an object method or data specifier, Tcl simply uses a space. Perl: $map = newmapObj('foo.map'); Tcl: set map [mapscript::mapObj -args foo.map] All Tcl Mapscript objects reside in a namespace of 'mapscript'. Other differences are that Tcl objects use methods 'configure' and 'cget' to get an set data members, rather than just resolving with a '->', e.g: Perl: $map->{name} = 'test'; Tcl: $map configure -name test Tcl also needs to dereference object references in one object, to gain access to child object data & methods: Perl: $map->{extent}->{minx} = $minimum_x; Tcl: set extent [$map cget -extent] mapscript::rectObjRef $extent configure -minx $minimum_x The 'mapscript::rectObjRef' command is used as a cast, which is a more readable way of: rectObj_minx_set $extent $minimum_x which is the actual command constructed by Swig. The 'rectObjRef' command is constructed in mapscriptsupp.tcl to provide the other syntax. The other API used by MapServer Workbench is 'msTclObjs', which allows manipulation of map objects for editing, when a map object may be in an invalid state. I wrote these to do things like cut/copy/paste, allow data entry validation and meta-data for the Mapscript objects. > Perl and PHP docs and examples don't help - > tcl is too different. First, you should have a good understanding of Tcl (should take most people a few hours, a day at most.) There are several good books on Tcl, and lots of info on the web. I'm currently working on updating Mapscript/Tcl and MapServer Workbench for Mapserver 3.5, if I have time, I'll try to add some addtional docs or examples. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ ----- End forwarded message ----- From Regina.Obe.PFD at ci.boston.ma.us Thu Sep 13 05:40:31 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Thu, 13 Sep 2001 08:40:31 -0400 Subject: [mapserver-users] Problem with Netscape treating a space diff erent than Internet Explorer Message-ID: You have to URL Encode the layers section. IE does an implicit URL Encode when it sees spaces in a URL tag whereas Netscape doesn't. Try this line in place of your URL I don't have a netscape browser handy at the moment so couldn't test it. -----Original Message----- From: Brian Fischer [mailto:bfischer at mpls.houstoneng.com] Sent: Wednesday, September 12, 2001 5:44 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Problem with Netscape treating a space different than Internet Explorer Mapserver community, I was wondering if anyone else has had this problem. I assume there must be a way around it, but can't find a solution. Here is the problem: I am using the [layers] cgi variable in a hyperlink like shown below. http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=[map]&template=pr intmap.html&layers=[layers]&mapext=[minx]+[miny]+[maxx]+[maxy] The problem is Netscape does not replace the space with a %20, but Internet Explorer does. Internet Explorer 5.5 URL: http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=projects/fgdc/map viewer/mapviewer.map&template=printmap.html&layers=lakes%20Rivers%20Roads&ma pext=-100.092035+47.222059+-94.531453+51.668504 Netscape 4.7 URL: http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=projects/fgdc/map viewer/mapviewer.map&template=printmap.html&layers=lakes Rivers Roads&mapext=-96.766990+48.008085+-95.278996+49.197928 Any suggestions would be greatly appreciated. Thanks, Brian From bfischer at mpls.houstoneng.com Thu Sep 13 06:44:41 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Thu, 13 Sep 2001 08:44:41 -0500 Subject: [mapserver-users] Problem with Netscape treating a space different than Internet Explorer Message-ID: <8879CCE0F0187742B7302A93A8B87B09029814@mpls.houstoneng.com> Thanks Regina. Your suggestion worked great. It now works in both Explorer and Netscape. I already had the URL in a JavaScript function, so all I had to do is add the escape function. function printmap() { OpenPrintWin = this.open("http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=[m ap]&template=printmap.html&layers=" + escape('[layers]') + "&mapext=[minx]+[miny]+[maxx]+[maxy]", "PrintWindow", "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes"); } Tom, I did not try your suggestion but I'm sure it would of worked also. It was the same concept as Regina's suggestion. Thanks again to everyone, Brian -----Original Message----- From: Obe, Regina DND\MIS [mailto:Regina.Obe.PFD at ci.boston.ma.us] Sent: Thursday, September 13, 2001 7:41 AM To: Brian Fischer; 'mapserver-users at lists.gis.umn.edu' Subject: RE: [mapserver-users] Problem with Netscape treating a space different than Internet Explorer You have to URL Encode the layers section. IE does an implicit URL Encode when it sees spaces in a URL tag whereas Netscape doesn't. Try this line in place of your URL I don't have a netscape browser handy at the moment so couldn't test it. -----Original Message----- From: Brian Fischer [mailto:bfischer at mpls.houstoneng.com] Sent: Wednesday, September 12, 2001 5:44 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Problem with Netscape treating a space different than Internet Explorer Mapserver community, I was wondering if anyone else has had this problem. I assume there must be a way around it, but can't find a solution. Here is the problem: I am using the [layers] cgi variable in a hyperlink like shown below. http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=[map]&templat e=pr intmap.html&layers=[layers]&mapext=[minx]+[miny]+[maxx]+[maxy] The problem is Netscape does not replace the space with a %20, but Internet Explorer does. Internet Explorer 5.5 URL: http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=projects/fgdc /map viewer/mapviewer.map&template=printmap.html&layers=lakes%20Rivers%20Road s&ma pext=-100.092035+47.222059+-94.531453+51.668504 Netscape 4.7 URL: http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=projects/fgdc /map viewer/mapviewer.map&template=printmap.html&layers=lakes Rivers Roads&mapext=-96.766990+48.008085+-95.278996+49.197928 Any suggestions would be greatly appreciated. Thanks, Brian From bart at atsence.nl Thu Sep 13 06:59:26 2001 From: bart at atsence.nl (Bart van Heijningen) Date: Thu, 13 Sep 2001 15:59:26 +0200 Subject: [mapserver-users] Where is the shape? Message-ID: Hi, When testing the Mapscript php module with the writeshape example: test_writeshape.phtml All seems to work fine as I get the following message in my browser.. --- cut --- Shapes Created. Shape File (/tmp/shptest) closed. Dbase file closed. --- cut --- Question: I cannot find the created shape anywhere, any idea what could have happened? (it does create a shapefile right?) Thanx, Bart van Heijningen -------------- next part -------------- An HTML attachment was scrubbed... URL: From FradshamT at DFO-MPO.GC.CA Thu Sep 13 08:44:23 2001 From: FradshamT at DFO-MPO.GC.CA (FradshamT at DFO-MPO.GC.CA) Date: Thu, 13 Sep 2001 11:44:23 -0400 Subject: [mapserver-users] Compile Error Message-ID: <6ECF0007FF49D411A25400508B6D9162F19E64@msgnflwh02.nfl.dfo-mpo.gc.ca> I have been watching the list for a while hoping someone had the same compile error that I have been affected with, but with no luck. My thanks to Daniel Morissette and David Armstrong for their postings regarding compiling MapServer on a Win32 platform. I have searched the online archives (which have been very helpful for other components) but I have not found an exact problem. BACKGROUND: I am compiling MapServer 3.5 with: GD 2.0.1 FreeType 2.0.4 GDAL 1.1.5 Jpeg-6b LibPng 1.20 Proj 4.4.3 Regex 0.12 LibTiff 3.5.6 Zlib 1.1.3 I modified my Makefile.vc as David Armstrong And Daniel Morissette had suggested but I get the following error: D:\Mapserver>nmake /f makefile.vc Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cd gd-2.0.1 nmake /f makefile.nt gd.lib OPTFLAGS="/nologo /Zi" Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. NMAKE : fatal error U1073: don't know how to make 'gdttf.obj' Stop. NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~2\VC98\BIN\NMAKE.EXE' : return co de '0x2' Stop. A copy of my MakeFiles for Mapserver 3.5 and GD 2.0.1 follows this email for those who want to have a look. So if anyone can help it would be greatly appreciated. Trevor Fradsham Systems Analyst - GIS Canadian Coast Guard Portfolio IM&TS, Fisheries & Oceans MAKEFILE.VC for MapServer 3.5 # # makefile.vc - Main MapServer makefile for MSVC++ # # This VC++ makefile will build MAPSERVER.LIB, MAPSERV.EXE, and the other # MapServer command-line programs. # # To use the makefile: # - Open a DOS prompt window # - Run the VCVARS32.BAT script to initialize the VC++ environment variables # - Start the build with: nmake /f makefile.vc # # $Id: Makefile.vc,v 1.12 2001/08/23 15:22:29 dan Exp $ # #OPTFLAGS = /nologo /Zi /W3 /DDEBUG OPTFLAGS = /nologo /Zi BASE_CFLAGS = $(OPTFLAGS) LDFLAGS = /NODEFAULTLIB:libcd CC= cl LINK= link # # If you want to ignore missing datafile errors uncomment the following # line. This is especially useful with large tiled datasets that may not # have complete data for each tile. # #IGNORE_MISSING_DATA=-DIGNORE_MISSING_DATA # # Apparently these aren't as commonplace as I'd hoped. Edit the # following line to reflect the missing functions on your platform. # #STRINGS=-DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRDUP STRINGS=-DNEED_STRCASECMP -DNEED_STRNCASECMP # Proj.4 distribution (cartographic projection routines). Not required for normal use. (EXPERIMENTAL) PROJ_LIB=./proj-4.4.3/src/proj.lib PROJ_INC=-I./proj-4.4.3/src PROJ=-DUSE_PROJ #Use this flag to compile with WMS support WMS=-DUSE_WMS # GD distribution (graphics library GIF and/or PNG support). (REQUIRED) # # - Version 1.2 is included and writes LZW GIF (-DUSE_GD_GIF -DUSE_GD_SWAP_XY). # - Versions 1.3 to 1.5 write non-LZW GIF (-DUSE_GD_GIF). # - Versions 1.6 and greater write PNG (-DUSE_GD_PNG). Add -lpng -lz to GD_LIB line. # - Versions 1.8 (or was it 1.7?) also supports JPEG and WBMP (-DUSE_GD_JPEG -DUSE_GD_WBMP) # # The following lines will compile GD 1.2: #GDFONT_OBJ= gd-1.2/gdfontt.obj gd-1.2/gdfonts.obj gd-1.2/gdfontmb.obj \ # gd-1.2/gdfontl.obj gd-1.2/gdfontg.obj #GD_INC= -I./gd-1.2 #GD_LIB= gd-1.2/gd.lib #GD= -DUSE_GD_GIF -DUSE_GD_SWAP_XY #MAKE_GD=gd # A patched version of GD that supports GIF, JPEG, PNG and WBMP can be # downloaded from http://www.rime.com.au/gd/. # The following defns will include the patched GD 1.8.4 with TTF: GDFONT_OBJ= GD_INC= -I./gd-2.0.1 GD_LIB= ./gd-2.0.1/gd.lib ./jpeg-6b/libjpeg.lib ./libpng120/libpng.lib \ ./zlib-1.1.3/zlib.lib ./freetype-2.0.1/objs/freetype204mt.lib GD= -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF \ -DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR MAKE_GD=gd # TIFF distribution (raster support for TIFF and GEOTIFF imagery).(RECOMMENDED) TIFF_INC=-I./tiff-v3.5.6-beta/libtiff TIFF_LIB=./tiff-v3.5.6-beta/libtiff/libtiff.lib TIFF=-DUSE_TIFF # JPEG distribution (raster support for grayscale JPEG images, INPUT ONLY). #JPEG_INC= #JPEG_LIB=-ljpeg #JPEG=-DUSE_JPEG # EPPL7 Support (this activates ERDAS as well) Included in the distribution. Probably the best raster alternative if # you've got EPPL7 laying around. See http://www.lmic.state.mn.us/ for more information. (RECOMMENDED) EPPL=-DUSE_EPPL EPPL_OBJ=epplib.obj # OGR Support OGC Simple Feature inspired interface for vector # formats. See http://gdal.velocet.ca/projects/opengis/ GDAL_DIR= ./gdal-1.1.5 OGR=-DUSE_OGR OGR_LIB = $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts.lib $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib $(GDAL_DIR)/ogr/ogr.lib $(GDAL_DIR)/ogr/../port/cpl.lib OGR_INC = -I$(GDAL_DIR)/ogr/ogrsf_frmts -I$(GDAL_DIR)/ogr -I$(GDAL_DIR)/ogr/../port # ESRI SDE support. #SDE_OPT=-DUSE_SDE #SDE_INC=-I../arcsde/include #SDE_LIB=../arcsde/lib/sde80.lib ../arcsde/lib/sg80.lib ../arcsde/lib/pe80.lib # # UofMN GIS/Image Processing Extension (very experimental) # #EGIS=-DUSE_EGIS #ERR_OBJ=./errLog/errLog.o #ERR_INC=-I./errLog #ERR_LIB=-L./errLog -lerrLog #IMGGEN_OBJ=./imgSrc/imgLib.o #IMGGEN_INC=-I./imgSrc #IMGGEN_LIB=-L./imgSrc -limgGEN # # VC++ does not include the REGEX library... so we must provide our one. # The following definitions will try to build GNU regex-0.12 located in the # regex-0.12 sub-directory. # If it was not included in the source distribution, then you can get it from: # ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz # REGEX_OBJ=.\regex-0.12\regex.obj REGEX_INC=-I./regex-0.12 # # IMPORTANT NOTE ABOUT REGEX FOR PHP_MAPSCRIPT USERS: # # If you want to compile the PHP_MAPSCRIPT module, then you have to make # MapServer uses the same version of the REGEX library that PHP was # compiled with: # #PHP_REGEX=..\php-3.0.14\regex #PHP_REGEX=..\php-4.0.6\regex #REGEX_OBJ=$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \ # $(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj #REGEX_INC=-I$(PHP_REGEX) -DPHP_NO_ALIASES # # REGEX needs some special flags... here they are for VC++ 6.0 # REGEX_OPT=-DHAVE_STRING_H -DREGEX_MALLOC # # --- You shouldn't have to edit anything else. --- # # # Main MapServer library. # MS_LIB = mapserver.lib MS_OBJS = mapbits.obj maphash.obj mapshape.obj mapxbase.obj \ mapparser.obj maplexer.obj mapindex.obj maptree.obj \ mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj \ maplegend.obj maputil.obj mapscale.obj mapquery.obj \ maplabel.obj maperror.obj mapprimitive.obj mapproject.obj\ mapraster.obj cgiutil.obj mapsde.obj mapogr.obj \ mappostgis.obj maplayer.obj mapresample.obj mapwms.obj \ mapwmslayer.obj mapgml.obj\ $(EPPL_OBJ) $(REGEX_OBJ) MS_HDRS = map.h mapfile.h MS_EXE = mapserv.exe shp2img.exe legend.exe \ shptree.exe scalebar.exe sortshp.exe tile4ms.exe # # # LIBS = $(MS_LIB) $(GD_LIB) $(TIFF_LIB) $(JPEG_LIB) \ $(PROJ_LIB) $(ERR_LIB) $(IMGGEN_LIB) $(OGR_LIB) INCLUDES = $(GD_INC) $(TIFF_INC) $(JPEG_INC) \ $(PROJ_INC) $(ERR_INC) $(IMGGEN_INC) $(REGEX_INC) $(OGR_INC) CFLAGS = $(BASE_CFLAGS) $(INCLUDES) $(REGEX_OPT) $(STRINGS) \ $(EPPL) $(PROJ) $(TIFF) $(JPEG) $(GD) $(OGR) $(WMS) default: all all: $(MAKE_GD) $(MS_LIB) $(MS_EXE) $(MS_OBJS): $(MS_HDRS) $(MS_LIB): $(MS_OBJS) copy $(GDAL_DIR)\gdal.pdb . lib /out:$(MS_LIB) $(MS_OBJS) $(MS_EXE): $(LIBS) gd:: cd gd-2.0.1 nmake /f makefile.nt gd.lib OPTFLAGS="$(OPTFLAGS)" cd .. .c.obj: $(CC) $(CFLAGS) /c $*.c /Fo$*.obj .cpp.obj: $(CC) $(CFLAGS) /c $*.cpp /Fo$*.obj .c.exe: $(CC) $(CFLAGS) /c $*.c /Fo$*.obj $(LINK) $(LDFLAGS) $*.obj $(LIBS) .cpp.exe: $(CC) $(CFLAGS) /c $*.cpp /Fo$*.obj $(LINK) $(LDFLAGS) $*.obj $(LIBS) clean: del *.obj del $(REGEX_OBJ) del $(MS_LIB) del $(MS_EXE) del *.pdb del *.exp del *.ilk cd gd-1.2 nmake -f makefile.nt clean cd .. cd gdft nmake -f makefile.vc clean cd .. MAKEFILE.NT for GD-2.0.1 #NMAKE makefile for Windows 95/98/NT developers. #Produces a static library (libgd.lib). Thanks to Joe Gregorio. #THIS IS OUT OF DATE. COMPILER=cl #If the ar command fails on your system, consult the ar manpage #for your system. AR=LIB #If the install command is not in your path, provide #an explicit path for it here, or install manually. INSTALL=install #If you don't have FreeType and/or Xpm installed, including the #header files, uncomment this (default). CFLAGS=-Ox -GX #If you do have FreeType and/or Xpm fully installed, uncomment a #variation of this and comment out the line above. See also LIBS below. #CFLAGS=-O -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_LIBFREETYPE # -DHAVE_LIBFREETYPE can be used instead of -DHAVE_TTF to use the # newer FreeType2 libraries #Libraries required for applications #LIBS=gd.lib libpng.lib zlib.lib LIBS=gd.lib ../lpng120/libpng.lib ../zlib-1.1.3/zlib.lib \ ../jpeg-6b/libjpeg.lib ../freetype-2.0.4/objs/freetype204mt.lib #Libraries required for gd.lib itself GDLIBS=../lpng120/libpng.lib ../zlib-1.1.3/zlib.lib \ ../jpeg-6b/libjpeg.lib ../freetype-2.0.4/objs/freetype204mt.lib #Typical install locations for freetype, zlib, jpeg, xpm and #libpng header files. If yours are somewhere else, change this. #INCLUDEDIRS=-I d:\zlib -I d:\libpng -I d:\libjpeg -I d:\libttf INCLUDEDIRS=-I../zlib-1.1.3 -I../lpng120 -I../jpeg-6b \ -I../freetype-2.0.4/objs -I../freetype-2.0.4/include/freetype \ -I../freetype-2.0.4/include #Typical install locations for freetype, zlib, xpm, libjpeg and #libpng libraries. # #If yours are somewhere else, other than a standard location #such as /lib or /usr/lib, then change this. Be sure to keep #-L. as this allows the gd library itself to be found. #Put -L. first so that old versions of the gd library elsewhere #on your system can't cause conflicts while building a new one. #LIB=d:\devstudio\vc\lib;d:\zlib;d:\libpng;d:\libjpeg;d:\libttf LIBDIRS= #Location where gd.lib should be installed by "make install". INSTALL_LIB=/usr/local/lib #Location where .h files should be installed by "make install". INSTALL_INCLUDE=/usr/local/include #Location where useful non-test programs should be installed by "make install". INSTALL_BIN=/usr/local/bin # # # Changes should not be required below here. # # VERSION=1.8.1 CC=$(COMPILER) $(INCLUDEDIRS) LINK=$(CC) $(LIB) $(LIBS) PROGRAMS=$(BIN_PROGRAMS) $(TEST_PROGRAMS) BIN_PROGRAMS=pngtogd.exe pngtogd2.exe gdtopng.exe gd2topng.exe gd2copypal.exe gdparttopng.exe webpng.exe TEST_PROGRAMS=gdtest.exe gddemo.exe gd2time.exe gdtestttf.exe gdtestft.exe all: gd.lib $(PROGRAMS) gddemo.exe: gddemo.c gd.lib $(CC) gddemo.c $(LIBDIRS) $(LIBS) pngtogd.exe: pngtogd.c gd.lib $(CC) pngtogd.c $(LIBDIRS) $(LIBS) webpng.exe: webpng.c gd.lib $(CC) webpng.c $(LIBDIRS) $(LIBS) pngtogd2.exe: pngtogd2.c gd.lib $(CC) pngtogd2.c $(LIBDIRS) $(LIBS) gdtopng.exe: gdtopng.c gd.lib $(CC) gdtopng.c $(LIBDIRS) $(LIBS) gd2topng.exe: gd2topng.c gd.lib $(CC) gd2topng.c $(LIBDIRS) $(LIBS) gd2copypal.exe: gd2copypal.c gd.lib $(CC) gd2copypal.c $(LIBDIRS) $(LIBS) gdparttopng.exe: gdparttopng.c gd.lib $(CC) gdparttopng.c $(LIBDIRS) $(LIBS) gdtest.exe: gdtest.c gd.lib $(CC) gdtest.c $(LIBDIRS) $(LIBS) gd2time.exe: gd2time.c gd.lib $(CC) gd2time.c $(LIBDIRS) $(LIBS) gdtestttf.exe: gdtestttf.c gd.lib $(CC) gdtestttf.c $(LIBDIRS) $(LIBS) gdtestft.exe: gdtestft.c gd.lib $(CC) gdtestft.c $(LIBDIRS) $(LIBS) #OBJS=gd.obj gd_gd.obj gd_gd2.obj gd_io.obj gd_io_dp.obj gd_io_file.obj gd_ss.obj \ # gd_io_ss.obj gd_png.obj gdxpm.obj gdfontt.obj gdfonts.obj gdfontmb.obj gdfontl.obj \ # gdfontg.obj gdtables.obj gdttf.obj gdft.obj gdcache.obj gdkanji.obj gd_jpeg.obj OBJS=gd.obj gdhelpers.obj gd_gd.obj gd_gd2.obj gd_io.obj gd_io_dp.obj gd_io_file.obj gd_ss.obj \ gd_io_ss.obj gd_png.obj gdxpm.obj gdfontt.obj gdfonts.obj gdfontmb.obj gdfontl.obj \ gdfontg.obj gdtables.obj gdttf.obj gdft.obj gdcache.obj gdkanji.obj gd_jpeg.obj gd_wbmp.obj wbmp.obj gd.lib: $(OBJS) gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h $(AR) $(OBJS) $(GDLIBS) clean: del *.obj *.lib $(PROGRAMS) From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Sep 13 10:06:26 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 13 Sep 2001 13:06:26 -0400 Subject: [mapserver-users] FW: about mapserver documentation Message-ID: <7CDD7B94357FD5119E800002A537C46E22FC0C@s5-ccr-r1.ccrs.nrcan.gc.ca> Can someone help him? Thx > ---------- > From: toni hern?ndez[SMTP:toni at giscampus.udg.es] > Sent: Thursday, September 13, 2001 12:12 PM > To: jdoyon at nrcan.gc.ca > Subject: about mapserver documentation > > hi, > > My name is tony and I work for the university of girona, spain. > We have just find this application and it is really wonderful but.... is > there any problems with the angle of labels in line shapes? Is it possible > that it only works for a concret version? > > Thanks in advance for your time. > > From neodym at datagis.com Thu Sep 13 10:06:27 2001 From: neodym at datagis.com (Tobias Zuegel) Date: Thu, 13 Sep 2001 19:06:27 +0200 (CEST) Subject: [mapserver-users] MapScript Java ?! Message-ID: Hi list, I desperately need help! I tried to generate a java version of MapScript using SWIG 1.3.7. But that does not work at all :((( First, I get this message: [root at datagis4 ~/cvs/mapserver/mapscript/java]# swig -java -shadow mapscript.i ../../map.h:454. Warning: class keyword used, but not in C++ mode. Well ... I ignored this warning and tried to compile, but then I got another error: [root at datagis4 ~/cvs/mapserver/mapscript/java]# gcc -Dbool=char -DHAS_BOOL -O2 -m486 -fno-strength-reduce -fPIC -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -ldg -ljpeg -lttf -ltiff -lz -c mapscript_wrap.c -I/usr/local/jdk1.2.2/include -I../../ -I/root/opensource_map/mapserver/gd-1.2 mapscript_wrap.c: In function `_SWIG_exception': mapscript_wrap.c:77: parse error before `excep' mapscript_wrap.c:78: request for member `ExceptionClear' in something not a structure or union mapscript_wrap.c:79: `excep' undeclared (first use in this function) mapscript_wrap.c:79: (Each undeclared identifier is reported only once mapscript_wrap.c:79: for each function it appears in.) mapscript_wrap.c:79: request for member `FindClass' in something not a structure or union mapscript_wrap.c:82: request for member `ThrowNew' in something not a structure or union I removed those lines and it compiled. But when I tried to access the classes he complains about missing symbols for "ms_error". So, I removed everything containing ms_error from the sources, compiled again and got another error about missing symbols for "msLoadMap" Thats where I am standing now, and I have no idea what to try next ... Can anybody tell me what to try now to get it work? Greetings, Toby From thfischer at mapmedia.de Thu Sep 13 11:24:14 2001 From: thfischer at mapmedia.de (Thorsten Fischer) Date: Thu, 13 Sep 2001 20:24:14 +0200 Subject: [mapserver-users] php/mapscript and querybypoint Message-ID: <01091320452900.04449@grobi> Ladies and gentlemen, I am confused. I do the following in php/mapscript: ($extent coming in to the script as extents in a way like minx+miny+maxx+maxy, this appears to be computed correctly; $mapbild_x and _y are the points clicked on in the map) $extvalues = split ("\+", $extent); $map -> setExtent ($extvalues [0], $extvalues [1], $extvalues [2], $extvalues [3]); $pointclickedX = $extvalues [0] + (($extvalues [2] - $extvalues [0]) / (double) $map -> width) * (double) $mapbild_x; $pointclickedY = $extvalues [1] + (($extvalues [3] - $extvalues [1]) / (double) $map -> height) * (double) $mapbild_y; $querypoint = ms_newPointObj (); $querypoint -> setXY ($pointclickedX, $pointclickedY); $queryresult = @$map -> queryByPoint ($querypoint, MS_SINGLE, -1); Maybe my mapfile is set up in a wrong way, i am spending some time to figure out how queries work at all. My mapfile shows the following layer: LAYER CONNECTIONTYPE postgis NAME objekte TYPE POLYGON STATUS default DATA "geo_value from objekte" CONNECTION "user=xxx password=xxx dbname=xxx" CLASSITEM "id" CLASS EXPRESSION ([id] eq 0) NAME "geoid_hilite" SYMBOL 0 SIZE 1 COLOR 255 0 0 OUTLINECOLOR 0 0 0 TEMPLATE "" END CLASS EXPRESSION /1 neq 1/ NAME "geoid_current" SYMBOL 0 SIZE 1 COLOR 135 206 250 OUTLINECOLOR 0 0 0 TEMPLATE "" END CLASS EXPRESSION /./ NAME "geoid_normal" SYMBOL 0 SIZE 1 COLOR 240 230 140 OUTLINECOLOR 0 0 0 TEMPLATE "" END END The expressions are always overridden in each map and provide useful default values. According to php/mapscript 3.5 docs, $queryresult now holds (should hold) an integer. My problems are: 1) I am getting more or less random results, either 1 or 0 for my clicks in the map. Heavy investigations into the code by several people show that the passing of parameters to/from the script appears to be correct. So do included debugging printing options: the computation is ok. But the results are obviously not. What am I doing wrong? 2) what am I to do with the final integer? In the end, I need the number of the shape i clicked. thanks in advance from a desperate developer, thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From mgiesbrecht at geoarctic.com Thu Sep 13 13:01:30 2001 From: mgiesbrecht at geoarctic.com (Mark Giesbrecht) Date: Thu, 13 Sep 2001 14:01:30 -0600 Subject: [mapserver-users] Changing map file parameters via URL Message-ID: <3BA1109A.9E07C3B0@geoarctic.com> Hi all, I'm having a bit of trouble changing the following map file parameters via URL: WEB HEADER queries/page_header.htm FOOTER queries/page_footer.htm IMAGEPATH "F:\InetPub\wwwroot\tmp\" IMAGEURL "/tmp/" END LAYER NAME "08c-" TYPE LINE STATUS ON TOLERANCE 10 DATA '08c_coh69-magnoliapark_spans_ne' CLASS name '08c-' COLOR 255 0 225 SIZE 2 SYMBOL 'line' END #CLASS HEADER 'queries/transmission_header.htm' QUERY TEMPLATE 'queries/transmission.htm' END #QUERY END #LAYER I would like to change the content of the HEADER and TEMPLATE variables in the map file, and am doing so with the following request: ...&map_WEB_HEADER=queries/towers_page_header.htm&map_WEB_FOOTER=queries/towers_page_footer.htm &map_08c-_HEADER=queries/towers_transmission_header.htm&map_08c-_QUERY_TEMPLATE=queries/towers_transmission.htm The WEB_HEADER/FOOTER change correctly, however, I seem to be missing something on the layer HEADER and QUERY_TEMPLATE. Anything obvious I'm missing? Thanks, Mark -- Mark Giesbrecht, M.Sc. GIS Programmer/Analyst GeoArctic International Services Ltd. mgiesbrecht at geoarctic.com http://www.geoarctic.com phone: (403) 290-1320 fax: (403) 264-5848 From Regina.Obe.PFD at ci.boston.ma.us Thu Sep 13 14:33:22 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Thu, 13 Sep 2001 17:33:22 -0400 Subject: [mapserver-users] FW: about mapserver documentation Message-ID: Angling of labels only works if you are using true type fonts. Here is an example from one of my map files - hope this helps and seems to angle street labels more or less correctly. FONTSET symbols/fonts/font.lst LAYER NAME streetnames STATUS ON DATA streetSP83_polyline TYPE LINE LABELITEM "STREET" CLASS SYMBOL 0 COLOR 255 255 255 LABEL ANTIALIAS MINDISTANCE 200 MINFEATURESIZe 50 ANGLE AUTO TYPE truetype FONT arial POSITION AUTO PARTIALS true SIZE 6 COLOR 128 0 0 END END END -----Original Message----- From: Doyon, Jean-Francois [mailto:Jean-Francois.Doyon at CCRS.NRCan.gc.ca] Sent: Thursday, September 13, 2001 1:06 PM To: 'mapserver-users at lists.gis.umn.edu' Subject: [mapserver-users] FW: about mapserver documentation Can someone help him? Thx > ---------- > From: toni hern?ndez[SMTP:toni at giscampus.udg.es] > Sent: Thursday, September 13, 2001 12:12 PM > To: jdoyon at nrcan.gc.ca > Subject: about mapserver documentation > > hi, > > My name is tony and I work for the university of girona, spain. > We have just find this application and it is really wonderful but.... is > there any problems with the angle of labels in line shapes? Is it possible > that it only works for a concret version? > > Thanks in advance for your time. > > From v at w.cl Thu Sep 13 18:29:11 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Thu, 13 Sep 2001 21:29:11 -0400 (CLT) Subject: [mapserver-users] Labels and Classes In-Reply-To: <20010908001758.7679C2299E@mail.selperchile.cl> from "Vinko Vrsalovic B." at sep 07, 2001 08:17:58 Message-ID: <20010914012911.ACA1C22997@mail.selperchile.cl> Two questions PHP/MS related: Number One: How can I tell a layerObj not to draw the labels defined in the mapfile? I've tried setting labelitem to "", but that prevents the drawing of the entire layer, not only the labels. I also tried setting the text of the classes to "", but MapServer complains about an error in getSymbol if I do so. (BTW, the docs for settext are wrong, they say (string text), it should be (layerObj layer, string text)). I need to do this to show labels from another layer, given a certain amount of zoom and not mixing those labels with the previous. (i can turn off the layer, but that's not the idea). Number Two: How can I dynamically add classes to a layerObj? I see the getClass method, but no set or addClass. -- V. From toni at giscampus.udg.es Fri Sep 14 08:34:24 2001 From: toni at giscampus.udg.es (=?iso-8859-1?Q?toni_hern=E1ndez?=) Date: Fri, 14 Sep 2001 17:34:24 +0200 Subject: [mapserver-users] RV: rotating labels Message-ID: <006301c13d32$bb56eda0$0e2fce82@udg.es> Hi everyone, I am trying to rotate labels. It seems that I need the FONTSET with the fonts.lists file. I am using windows Nt 4.0 and I got the following error message: "msGetLabelSize(): TrueType Font error. libgd was not built with TrueType font support " Could anyone (please) tell me what am I doing wrong? This is part of the map file corresponding to the layer I want to show labels about. LAYER NAME carrers TYPE LINE STATUS ON DATA carrers LABELITEM "Nomsencerc" SYMBOLSCALE 10000 LABELMAXSCALE 24000 CLASS COLOR 128 40 40 LABEL TYPE TRUETYPE ANTIALIAS FONT "Arial" COLOR 0 0 0 OUTLINECOLOR 255 255 230 SIZE 8 MINSIZE 4 MINDISTANCE 100 MAXSIZE 8 ANGLE AUTO POSITION CC MINFEATURESIZE 100 MINFEATURESIZE AUTO BUFFER 2 END END END end -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Fri Sep 14 08:41:32 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 14 Sep 2001 10:41:32 -0500 Subject: [mapserver-users] Re: FW: [Manifold] Map Server Docs Message-ID: Jim: Thanks for passing this along. Dimitri's points are valid to a certain extent. - Depending on who you talk to MapServer is extremely easy to use or can be cumbersome. I've not run across a single system that is *easy* to use. Many include an out-of-the-box functionality that get's folks up quickly although it's a very different matter to move away from that in any meaningful fashion. MapServer's demo serve's much the same role but in my opinion is easier to extend. Several tools have been written (Tom Poindexter's suite of tools is an example) and others are on the way. - write access to the file system is NOT a requirement although many folks use it that way. It's easy to setup a system that writes no files to disk. The java version of the DNR Recreation Compass and LandView are examples and even the most basic CGI versions can be configured this way. Risks associated with write permissions can be mitigated IF permissions are handled correctly. No system is free from security issues, just running on Windows is a huge one! - by "low performance" I assume he's refering to CGI vs whatever. CGI is slower, yes, but that's not the bottleneck which is clearly related to processing the GIS data. MapScript certainly provides a host of alternatives. I've not used Manifold's web piece but performance relative to other vendor products is pretty clear. The comment I agree with most is that by NOT being a GIS itself MapServer does, in many cases, assume you have other products to use. I've always used it in concert with other systems and I think most users do as well. It's just that those other vendors don't offer a free or even marginally low cost web mapping system. Manifold is the only one to do that, kudos for that. As for the experience of the user? Web mapping simply is not the domain of pure GIS staff nor pure web staff. It's techical enough to require both in the form of teams or staff with particular talents. Once MapServer configuration (i.e. map files) are mastered there's no need for ANY scripting so a less techical audience is free to participate (especially if we can build more wizard tools). Yet the system offers advanced users the opportunity to code as much as they'd like. And in the end you're not locked into an OS, scripting language, file format or vendor. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Platt, Jim" 09/14/01 10:05AM >>> Steve: It is not my habit to pass along competitor's comments (just ask the folks around here), but I thought you might be interested in this. Jim Platt -----Original Message----- From: Dimitri Rotow [mailto:dar at manifold.net] Sent: Friday, September 14, 2001 9:59 AM To: manifold-l at lists.directionsmag.com Subject: RE: [Manifold] Map Server Docs > The MapServer component you refer to is an open source product > developed at > the univ of minnesota > http://mapserver.gis.umn.edu/ . Documentation is limited basically to what > you see on those pages and a list server. > > Regards > > Andrew Luger > Andrew, I believe Andrew Coates was asking about the Manifold Internet Map Server (IMS) that is part of 5.00. Manifold IMS has no connection whatsoever with the University of Minnesota project, nor does it use any code from the University of Minnesota server. It is a very different thing, based on Manifold System. Once can see that Manifold IMS is based on Manifold by how it leverages the capabilities of Manifold, for example to display surfaces, work with Zoom Ranges, and so on. Manifold IMS is essentially an alternate presentation / user interface layer for Manifold. As the programming interfaces for Phase 2 are published the details of interfacing to Manifold IMS will also be published. Although this is a Manifold list and not a general GIS list, I hope people will forgive me for going "off topic" slightly and commenting on the Minnesota server. It has pluses and minuses: the biggest pluses are that it is free and runs on Linux. The biggest minuses are that is is complex to configure and operate, it is a low performance architecture and that it has numerous security holes, the most obvious of which is that it requires giving the Internet client "write" permission to the server's Internet directories. These make it risky to deploy in production environments. >From an architectural viewpoint I would respectfully disagree with the Minnesota approach. When contemplating the Minnesota server one is struck by how for it to be seriously useful it requires the user / webmaster to have a real GIS to work with. On the other hand, it defines a world (in terms of the configuration, programming and scripting required to make it do things) that is very technical and very different in the details of that technicality from any GIS. That means for proficiency one must end up learning and optimizing two very different systems: the GIS that's used for most mapping stuff and the GIS/server that's used to publish. I can understand how the above happened, since the Minnesota folks did not have a GIS to work with of their own. At Manifold we figured that if a person invests a lot of time in mastering a GIS he or she should be able to leverage that GIS directly in the presentation/interaction via Internet. Using the GIS makes creation of a web page a very simple dialog, almost a "one-click" process, while retaining the sophistication of what one can do in a real GIS (surfaces, images, projections, etc.). We, of course, had a very extensive GIS already so we had the luxury of taking this approach. It is also a cost advantage, since a free map server plus any other GIS ends up being considerably more expensive than 5.00 (which includes Manifold IMS "for free"). Cheers, Dimitri _______________________________________________________________________ List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, send e-mail to majordomo at lists.directionsmag.com and put "unsubscribe Manifold-L" in the message body. From paul at tei.or.th Fri Sep 14 10:24:18 2001 From: paul at tei.or.th (Paul Hastings) Date: Sat, 15 Sep 2001 00:24:18 +0700 Subject: [mapserver-users] Re: FW: [Manifold] Map Server Docs References: Message-ID: <004b01c13d42$16e02a10$0a729acb@tei.or.th> > From: Dimitri Rotow [mailto:dar at manifold.net] > I believe Andrew Coates was asking about the Manifold Internet Map Server > (IMS) that is part of 5.00. Manifold IMS has no connection whatsoever with huh? the same dimitri who for years said "bah humbug" to internet map servers? thats interesting. From morissette at dmsolutions.ca Fri Sep 14 11:55:43 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 14 Sep 2001 14:55:43 -0400 Subject: [mapserver-users] Re: FW: [Manifold] Map Server Docs References: Message-ID: <3BA252AF.9D31A001@dmsolutions.ca> Dimitri Rotow wrote: > > Although this is a Manifold list and not a general GIS list, I hope people > will forgive me for going "off topic" slightly and commenting on the > Minnesota server. It has pluses and minuses: the biggest pluses are that it > is free and runs on Linux. The biggest minuses are that is is complex to > configure and operate, it is a low performance architecture and that it has > numerous security holes, the most obvious of which is that it requires > giving the Internet client "write" permission to the server's Internet > directories. These make it risky to deploy in production environments. > Dimitri, I agree with some of your points, but I strongly disagree on the "low performance and numerous security holes"... you also forgot to mention (in the pluses) reliability/stability and connectivity with other systems via protocols such as OGC WMS (client and server), and on-the-fly access to various data sources such as SDE, PostGIS, 20 raster formats and half a dozen vector formats. I'm actually glad to hear that you have been able to combine easy configuration and application development, flexibility, high performance and affordable price into a single product... it's a huge step in the right direction since none of the current map server offering could do *all* of that until now AFAIK... not even MapServer which I have to admit requires some skills and some time before you can take full advantage of all its features. This is not sarcasm... if what you pretend is true then I'm impressed! But I won't believe until I see it... Does your note imply that Manifold IMS will deliver better performance (and stability) than MapServer? Other than the mythic belief that CGI is slow, MapServer is actually the fastest fully featured web map server I've seen until now... yes CGI overhead exists but it is minimal compared to the time to render maps based on hundreds of Megabytes or even Gigabytes of data (which MapServer can accomodate amazingly well thanks to its high performance internal architecture!). Anyway, I'm looking forward to see a Manifold-based website that can beat Jean-Francois Doyon's Election application which served 80,000 maps from a single Linux box on elections day last fall while sites based on other webmapping servers all went down. There is no cache trick here... we're talking about real maps drawn and served. Combine that with a pool of servers with load balancing and the possibilities are unlimited (and the price hard to beat!). 80,000 maps per day on a single server is acceptable performance to me... if Manifold IMS beats that then I might even consider digging out our old Manifold license and upgrading to see it by myself. Best Regards, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Fri Sep 14 11:55:56 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 14 Sep 2001 13:55:56 -0500 Subject: [mapserver-users] RV: rotating labels Message-ID: It's not a mapfile issue, the GD library the software was built against didn't have Freetype support. Either rebuild or get a new version... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> toni hern?ndez 09/14/01 10:34AM >>> Hi everyone, I am trying to rotate labels. It seems that I need the FONTSET with the fonts.lists file. I am using windows Nt 4.0 and I got the following error message: "msGetLabelSize(): TrueType Font error. libgd was not built with TrueType font support " Could anyone (please) tell me what am I doing wrong? This is part of the map file corresponding to the layer I want to show labels about. LAYER NAME carrers TYPE LINE STATUS ON DATA carrers LABELITEM "Nomsencerc" SYMBOLSCALE 10000 LABELMAXSCALE 24000 CLASS COLOR 128 40 40 LABEL TYPE TRUETYPE ANTIALIAS FONT "Arial" COLOR 0 0 0 OUTLINECOLOR 255 255 230 SIZE 8 MINSIZE 4 MINDISTANCE 100 MAXSIZE 8 ANGLE AUTO POSITION CC MINFEATURESIZE 100 MINFEATURESIZE AUTO BUFFER 2 END END END end From steve.lime at dnr.state.mn.us Fri Sep 14 12:02:22 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 14 Sep 2001 14:02:22 -0500 Subject: [mapserver-users] Re: FW: [Manifold] Map Server Docs Message-ID: I haven't followed Manifold nor Dimitri. The Manifold IMS demos are too simple to get an understanding of what it can do (and they only run on MSIE). Manifold itself looks like a nice partner with MapServer if one doesn't already have one... ;-> Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Paul Hastings 09/14/01 12:24PM >>> > From: Dimitri Rotow [mailto:dar at manifold.net] > I believe Andrew Coates was asking about the Manifold Internet Map Server > (IMS) that is part of 5.00. Manifold IMS has no connection whatsoever with huh? the same dimitri who for years said "bah humbug" to internet map servers? thats interesting. From steve.lime at dnr.state.mn.us Fri Sep 14 12:42:57 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 14 Sep 2001 14:42:57 -0500 Subject: [mapserver-users] classindex Message-ID: Yes, the draw method has changed. The old method did NOT take a class name rather a string to be evaluated against the various class expressions. Because of architecture changes the class to be used in rendering a feature must be known prior to calling the draw method. The assumtion is that using mapscript that would be handled in the scripting code. It doesn't have to be that way but I'll have to make a few additions to the mapscript code to allow you to pass a string to have evaluated against a number of class expressions. The method would be called getClassIndex or something like that and would be there for layer objects. All that said, your solution is simple. The first class you create is class 0, the second is class 1 and so on. So from your code since all is dynamic you'd use 0 for ?????????????. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Matt Carlson" 09/13/01 02:30AM >>> i got this off of the mailing list archives for changes with mapserver 3.5. - Draw() method of pointObj, RectObj take class_index instead of class_name as argument pointObj->Draw(map, layer, img, class_index, label_string) rectObj->Draw(map, layer, img, class_index, label_string) how do i get class_index of a mapscript created class, or any class for that matter? i browsed through the source and the only reference to classindex i could find was from the shapeObj. why was this changed? code: ### create a layer ## $layer = new layerObj($map); $layer->{name} = "bmpl_".$bmpref; $layer->{type} = $mapscript::MS_POINT; $layer->{status} = $mapscript::MS_ON; ### layer classes ### $class = new classObj($layer); $class->{name} = 'bmcl_'.$bmpref; $symx = $map->getSymbolByName($bmpref); $class->{symbol} = $symx; @latpnts = split(/w/,$latclass{$bmpref}); @lonpnts = split(/w/,$lonclass{$bmpref}); ## point object ## loop through each set of points for ($k=0; $k<=$#latpnts ;$k++){ $point = new pointObj(); $point->{x} = @lonpnts[$k]; $point->{y} = @latpnts[$k]; $point->draw($map,$layer,$img,???????????????????????????,undef); } From jbutcher at ci.collierville.tn.us Fri Sep 14 13:58:06 2001 From: jbutcher at ci.collierville.tn.us (Jim Butcher) Date: Fri, 14 Sep 2001 15:58:06 -0500 Subject: [mapserver-users] Re: FW: [Manifold] Map Server Docs In-Reply-To: <3BA252AF.9D31A001@dmsolutions.ca> References: Message-ID: <5.1.0.14.0.20010914155646.00a6d390@mail.ci.collierville.tn.us> Well stated Mr. Morissette ! At 02:55 PM 9/14/2001 -0400, you wrote: >Dimitri, > >I agree with some of your points, but I strongly disagree on the "low >performance and numerous security holes"... you also forgot to mention >(in the pluses) reliability/stability and connectivity with other >systems via protocols such as OGC WMS (client and server), and >on-the-fly access to various data sources such as SDE, PostGIS, 20 >raster formats and half a dozen vector formats. > >I'm actually glad to hear that you have been able to combine easy >configuration and application development, flexibility, high performance >and affordable price into a single product... it's a huge step in the >right direction since none of the current map server offering could do >*all* of that until now AFAIK... not even MapServer which I have to >admit requires some skills and some time before you can take full >advantage of all its features. This is not sarcasm... if what you >pretend is true then I'm impressed! But I won't believe until I see >it... > >Does your note imply that Manifold IMS will deliver better performance >(and stability) than MapServer? Other than the mythic belief that CGI >is slow, MapServer is actually the fastest fully featured web map server >I've seen until now... yes CGI overhead exists but it is minimal >compared to the time to render maps based on hundreds of Megabytes or >even Gigabytes of data (which MapServer can accomodate amazingly well >thanks to its high performance internal architecture!). > >Anyway, I'm looking forward to see a Manifold-based website that can >beat Jean-Francois Doyon's Election application which served 80,000 maps >from a single Linux box on elections day last fall while sites based on >other webmapping servers all went down. There is no cache trick here... >we're talking about real maps drawn and served. Combine that with a >pool of servers with load balancing and the possibilities are unlimited >(and the price hard to beat!). > >80,000 maps per day on a single server is acceptable performance to >me... if Manifold IMS beats that then I might even consider digging out >our old Manifold license and upgrading to see it by myself. > >Best Regards, >-- >------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ >------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. James H. Butcher GIS/Plans Manager Town of Collierville phone: 901-853-3271 fax: 901-853-5858 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dar at manifold.net Sat Sep 15 10:15:40 2001 From: dar at manifold.net (Dimitri Rotow) Date: Sat, 15 Sep 2001 10:15:40 -0700 Subject: [mapserver-users] Re: FW: [Manifold] Map Server Docs In-Reply-To: <3BA252AF.9D31A001@dmsolutions.ca> Message-ID: > > Dimitri Rotow wrote: > > > > Although this is a Manifold list and not a general GIS list, I > hope people > > will forgive me for going "off topic" slightly and commenting on the > > Minnesota server. It has pluses and minuses: the biggest > pluses are that it > > is free and runs on Linux. The biggest minuses are that is is > complex to > > configure and operate, it is a low performance architecture and > that it has > > numerous security holes, the most obvious of which is that it requires > > giving the Internet client "write" permission to the server's Internet > > directories. These make it risky to deploy in production environments. > > > Daniel, As much as I enjoy discussing the pros and cons of various servers, I must gently object to your selecting only a portion of my original posting to Manifold-L for cross posting elsewhere. I apologize in advance to any readers of other lists or the cc: list who have no interest in this interchange... if so, please flame Daniel for cross posting and not me! :-) You clipped out the main content of my posting. My original posting went on to say that I felt the main issue with the Minnesota server is that in practise it assumes one also has a GIS for the nuts and bolts of mapping, but that the details of configuring and operating the Minnesota server are very different from any existing GIS. That requires the operator to become proficient in two worlds: the GIS and the map server. I then pointed out the advantages accruing when an extensive GIS also incorporates a map server: people need become proficient in only one system and the presentation (publishing via Internet) can be as simple as a one-click process. This was the main point of my posting that touched on the Minnesota server. > I agree with some of your points, but I strongly disagree on the "low > performance and numerous security holes"... you also forgot to mention > (in the pluses) reliability/stability and connectivity with other I agree that my phrase would have been better to write "the biggest pluses are that it is free, comprehensive and runs on Linux." However, since my posting was to a peer group who (presumably) all already have Manifold and thus Manifold IMS (Internet Map Server), I was not writing as carefully as I would have for a general audience. I was providing a few words so people who have not heard of the Minnesota server would know what I was talking about. Plus, my point was not to write a technical review, it was to state that I felt it was a better approach for a full-featured GIS to include a map server than to have a disjoint toolkit of a GIS and a map server that are fundamentally different in their operating styles. > systems via protocols such as OGC WMS (client and server), and > on-the-fly access to various data sources such as SDE, PostGIS, 20 > raster formats and half a dozen vector formats. > OGC and the like are fairly typical of the frightfully bureaucratized approaches one sees coming out of the legacy GIS world. Lots of raster and vector formats are fine, but frankly, most of the nearly 200 million people in the world who operate Microsoft Office don't care about OGC or SDE or PostGIS. Those are the people who buy large volume and, ultimately, decide what is widespread in the market. I see parallels to how UNIX marginalized itself. Rather than pay attention to what hundreds of millions of people felt was important, the UNIX community wasted time and energy in elitist "standards" wars and standards "processes" that no one except a fraction of a percent of computer users cared about. In the 1980's I knew many people in UNIX who felt that adoption by the Federal government of certain UNIX-driven standards would "force" the masses to accept what we were doing. It was almost as though if people could somehow cram a sufficiently encompassing synthesis of Berkeley, AT&T System III and System V, and SUN approaches to file systems, networking, etc., into one UNIX it would be accepted by the masses. Of course, the masses didn't care. What I think is especially galling to UNIX/Linux partisans is that the reason Microsoft has triumphed is that users have *chosen* Microsoft over UNIX/Linux. I have heard this explained away by fanatics using endless rationalizations (Microsoft forces people to buy its products, hundreds of millions of people are too stupid to know they should be buying what I prefer, etc., etc.), but always avoiding confronting the key observation that by margins of about a hundred to one [counting all the ripped-off copies of MS stuff] people voluntarily prefer Microsoft to Linux. I don't disagree that quite a few people prefer OGC and actually intend to buy SDE and deploy it, think about PostGIS and so on. But they are in the 1% cohort compared to those who don't care about such things and prefer a one-click map server that allows them to present the data they have over Internet. One might say the unwashed 99% are too stupid to realize that they should take OGC seriously, that they don't know what they want, that they should be using Linux, and so on. But in the end if one ignores the legitimate interests of millions of people one ends up being marginalized. Don't make the mistake of UNIX and assume away the "ease of use" thing, or allow a dislike of Microsoft to not consider the desiderata of the only (numerically) market that counts. > I'm actually glad to hear that you have been able to combine easy > configuration and application development, flexibility, high performance > and affordable price into a single product... it's a huge step in the > right direction since none of the current map server offering could do > *all* of that until now AFAIK... not even MapServer which I have to > admit requires some skills and some time before you can take full > advantage of all its features. This is not sarcasm... if what you > pretend is true then I'm impressed! But I won't believe until I see ^^^ Perhaps this is a simple case of the impression in writing being different than what was intended, but I wish you would not have used quite so an implication-laden word as "pretend." Daniel, considering that I was writing in a list where all of us have Manifold IMS there is no need to "pretend." It's what we use on a daily basis. Manifold 5.00 does indeed cost $245, it does indeed (in addition to what may be the most extensive and powerful general purpose GIS ever introduced) include Manifold IMS at no additional charge, it does provide superb performance in both GIS and IMS and one can, in fact, publish a map server web page in it with one click [the "OK" button in the File - Export - Web Page dialog using default settings]. A web page for t5.00 is at http://www.manifold.net/news/news_set.html, including links to some of the beta sites for Manifold IMS and links to the User Manual at http://www.manifold.net/manuals/5_userman/start.htm ... The user manual lays out everything very openly (albeit in annoying format given the automatic translator to HTML that was used). > it... > > Does your note imply that Manifold IMS will deliver better performance > (and stability) than MapServer? Other than the mythic belief that CGI That remains to be seen and quite likely (like many things in computing) will depend in part on the specific application. Like anything, Manifold IMS and MapServer both encompass assumptions about what the target uses are likely to be and are optimized for such target uses. If those target uses are significantly different, it will always be possible to construct an example shaped to fit the target for either Manifold IMS or MapServer where one clobbers the other. If that is true, the question then becomes which target use pattern is more relevant to the specific use one is considering. I believe that Manifold is better aimed at the target uses that predominate in the market. Manifold IMS is session-free and supports object pooling, both wonderful performance gains in an .asp environment. Microsoft ASP in itself is obviously a higher performance environment than CGI (although, of course, it has tradeoffs in other dimensions). There are well-known technical reasons why this is so that cannot be made irrelevant by labeling them "mythic" (as you apparently acknowledge by your comment on "CGI overhead"). > is slow, MapServer is actually the fastest fully featured web map server > I've seen until now... yes CGI overhead exists but it is minimal > compared to the time to render maps based on hundreds of Megabytes or > even Gigabytes of data (which MapServer can accomodate amazingly well > thanks to its high performance internal architecture!). > It sounds like you are making the case that the well-known, less-optimal process performance of CGI relative to ASP does not matter because it is dominated by the slow response of the server when rendering images based on very large data sets. That's a fair point, but it is only true in cases where very large data sets are in play. It turns out that (as a determined web crawl will reveal) the maps that most people publish over the web are tiny. For the most part they are simple vector maps running a few tens of megabytes. I could be wrong, but I believe that all other things being equal CGI overhead (if nothing else) in such cases will be a negative factor in an otherwise well-architected map server. This will be especially true with many hits in a short period of time. On the other hand, "performance" is something of a canard since virtually no map servers have any significant traffic. For the most part the distribution of map servers on the web is lots of niche sites that few people visit. This is a better argument in favor of CGI than the one you made. > Anyway, I'm looking forward to see a Manifold-based website that can > beat Jean-Francois Doyon's Election application which served 80,000 maps > from a single Linux box on elections day last fall while sites based on > other webmapping servers all went down. There is no cache trick here... > we're talking about real maps drawn and served. Combine that with a > pool of servers with load balancing and the possibilities are unlimited > (and the price hard to beat!). > Hmm... 80,000 / 24 = 3333. 3333 / 60 = 56 (rounded). That's less than one image per second. Clearly, there must have been peak load issues if other servers went down since a server rate of one per second does not strike me as a very high standard in modern times. "Cache tricks" are part of an intelligent design so they should not be disparaged. The only "real" map drawn and served is the image the user sees in his browser... any effective method is fair game. Plus, one can load balance with any system through simple methods. I disagree on price, by the way. Few things are free: there is usually only a shifting of cost. To really "do" map web sites a user needs both a map server and a GIS. The cost of ESRI + MapServer is far beyond the $245 cost of Manifold + Manifold IMS. In both cases, the map server is "free." That's the equation confronting most users (who are new to GIS, statistically) who would operate a Internet map server site. My own guess based on rather cursory explorations is that fewer than 1% of the potential users of an Internet map serving site need more than one server. For them the above equation is dominant. For those who need more servers the benefit of a free map server increases since presumably they don't need to replicate the GIS. However, there is a substantial cost in technical expertise imposed by MapServer. That is not a free economic good. Humans cost more than anything in the system, so when even a little bit of thought is required the cost penalty is high. If you price what it costs to get a consultant in to configure MapServer for you, I'd bet you would conclude that the actual cost per server for small numbers of servers is higher than the volume discounted price of Manifold IMS for such servers. It's true that if you have a server farm with 1000 servers you have a serious incentive to get free software for each. But, as a significant percentage of the market such installations do not exist. It's also true that some people have the intrinsic technical skill to configure MapServer or the hobby interest to acquire such expertise or enough time on their hands that the cost of acquiring the skill is zero at the margin. For such people there may well be no "cost" to using MapServer but once again as a significant percentage of the market such a cohort does not exist. > 80,000 maps per day on a single server is acceptable performance to > me... if Manifold IMS beats that then I might even consider digging out > our old Manifold license and upgrading to see it by myself. > As noted above, 80,000 per day is not a big deal: the key issue is peak load. I feel safe in saying that given a reasonably modern PC Manifold IMS has the performance to handle over 95% of all sites people might have. In fact, it has so much capacity that we expect many people will go into the "application server" market of offering to configure and host other people's IMS sites, much as Blue Marble is attempting to do as a service business. One server could easily host many dozens of sites. For the remaining 5% in a few months we will offer the Advanced Manifold IMS. Advanced IMS is optimized for those few Enterprise users who are working with a different class of application. Cheers, Dimitri From morissette at dmsolutions.ca Sat Sep 15 11:34:46 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sat, 15 Sep 2001 14:34:46 -0400 Subject: [mapserver-users] Re: FW: [Manifold] Map Server Docs References: Message-ID: <3BA39F46.115153E5@dmsolutions.ca> Dimitri Rotow wrote: > > As much as I enjoy discussing the pros and cons of various servers, I must > gently object to your selecting only a portion of my original posting to > Manifold-L for cross posting elsewhere. I apologize in advance to any > readers of other lists or the cc: list who have no interest in this > interchange... if so, please flame Daniel for cross posting and not me! :-) > Dimitri, I quoted only portion of your message because I was responding to a thread which was already started and in which your complete message had already been forwarded: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0109/msg00117.html So *all* the readers of my message knew what I was referring to and were able to apreciate all your points before reading my reply. I just happened to CC: you since I thought that it was fair to give you a chance to reply. Even though you raise interesting points for which I would have interesting arguments, I'm scared that this discussion would last forever. I'll end the discussion now because I don't have the time to write 5 pages Emails everyday for the next few weeks. I think there is a market for "one-click webmapping" (anyone has patented this one yet? ;-) with Manifold and there is also a market for an Open Source MapServer that developers can tweak in any possible way. They address different needs just like Windows and Unix/Linux address different needs. You're not a Open Source/Unix/Linux fan (obviously) and I'm not a Microsoft/Windows fan (also quite obvious!) but both are (and will be) around for quite some time whether we like it or not... so we might as well take advantage of both worlds instead of flaming each other. Take care, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From ed at topozone.com Sat Sep 15 11:51:40 2001 From: ed at topozone.com (Ed McNierney) Date: Sat, 15 Sep 2001 14:51:40 -0400 Subject: [mapserver-users] Re: FW: [Manifold] Map Server Docs Message-ID: <13858AA1A74F30419F319ACB66A9D122D1D3@mercator.topozone.com> Forgive the brief excerpt: "On the other hand, "performance" is something of a canard since virtually no map servers have any significant traffic. For the most part the distribution of map servers on the web is lots of niche sites that few people visit. This is a better argument in favor of CGI than the one you made." As far as I know, the busiest mapping site on the entire Web is MapQuest. I wonder whether they chose that nasty, slow, poorly-performing CGI architecture or not ? - Ed Ed McNierney Chief Mapmaker TopoZone.com From marin at here.is Sat Sep 15 13:46:39 2001 From: marin at here.is (Ma) Date: Sat, 15 Sep 2001 20:46:39 +0000 Subject: [mapserver-users] Re: FW: [Manifold] Map Server Docs References: Message-ID: <3BA3BE2E.7F6FBB26@here.is> Dimitri Rotow wrote: > > I disagree on price, by the way. Few things are free: there is usually only > a shifting of cost. To really "do" map web sites a user needs both a map > server and a GIS. The cost of ESRI + MapServer is far beyond the $245 cost > of Manifold + Manifold IMS. In both cases, the map server is "free." > That's the equation confronting most users (who are new to GIS, > statistically) who would operate a Internet map server site. > why ESRI? you can use some no-cost M$ Windows based GIS. :> -- Ma From Rich at GreenwoodMap.com Sun Sep 16 09:21:28 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Sun, 16 Sep 2001 10:21:28 -0600 Subject: [mapserver-users] Layer Group Name Message-ID: <5.1.0.14.0.20010916101745.00ad56a0@mail.GreenwoodMap.com> I've got a question about using the GROUP clause of the Layer object. It seems I can use the group name for the qlayer in an nquery, but not in an itemquery. Is this the expected behavior? (I'm using ms 3.5). Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From Rich at GreenwoodMap.com Sun Sep 16 09:39:39 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Sun, 16 Sep 2001 10:39:39 -0600 Subject: [mapserver-users] Layer Group Name - more Message-ID: <5.1.0.14.0.20010916103350.038118f0@mail.GreenwoodMap.com> A follow up to my previous question - It seems that if I use a group name for the qlayer in an nquery it gets ignored (like I hadn't specified a qlayer, and all layers with a template in their class are queried). But specifying a group name for the qlayer in an itemquery generates an error. So can the group name be used to define the qlayer? It appears not. And if I am correct, can anyone suggest a way in which I might specify more than one qlayer, but not all of the layers in my .map files? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From vguzman at main-task.com Sun Sep 16 08:30:25 2001 From: vguzman at main-task.com (Vladimir =?iso-8859-1?Q?Guzm=E1n?=) Date: Sun, 16 Sep 2001 17:30:25 +0200 Subject: [mapserver-users] analysis question Message-ID: <3BA4C591.9BA8C6E2@main-task.com> Hello everybody. I'm wondering if there is a way to draw some kind of analysis in maps through mapscript-php: I have a point coverage with clients in it. I have a polygon coverage with zones in it. I need to generate a map of density of clients by zone. For example, I need zone 1 in red color, because it have 100 clients. zone 2 in pink color, because it have 50 clients. zone 3 in white color, bacause it have 0 clients. and so on... Is it possible? How do I do it? Thanks in Advance, Vladimir G From dar at manifold.net Sun Sep 16 16:51:56 2001 From: dar at manifold.net (Dimitri Rotow) Date: Sun, 16 Sep 2001 16:51:56 -0700 Subject: [mapserver-users] Re: FW: [Manifold] Map Server Docs In-Reply-To: <13858AA1A74F30419F319ACB66A9D122D1D3@mercator.topozone.com> Message-ID: > > Forgive the brief excerpt: > > "On the other hand, "performance" is something of a canard since > virtually no > map servers have any significant traffic. For the most part the > distribution of map servers on the web is lots of niche sites that few > people visit. This is a better argument in favor of CGI than the one > you > made." > > As far as I know, the busiest mapping site on the entire Web is > MapQuest. I wonder whether they chose that nasty, slow, > poorly-performing CGI architecture or not ? > Ed, If they use CGI, they might have chosen to use it for other reasons despite the performance hit compared to ASP. My letter also included the following: "Microsoft ASP in itself is obviously a higher performance environment than CGI (although, of course, it has tradeoffs in other dimensions)." Performance is just one factor to be considered when choosing a dynamic web page technology. If you are familiar with the workings of web servers you know that spawning a separate process for each request (CGI) is an intrinsically lower performance approach than the in-process model used by ASP and COM. [For those Windows readers unfamiliar with CGI, for *each* request it is from a process perspective akin to opening a DOS box in 2000, starting a script, retrieving the answer and closing the box, as opposed to simply executing within the same DLL already sitting in RAM]. There are, of course, other considerations that may cause people to use CGI rather than ASP. CGI has been around a lot longer so there is lots of inertia behind CGI. For many people it is easier to start coding an application using CGI and scripts, so it is understandable why many applications get prototyped using CGI and grow from there. After an application grows to a certain point it's a lot easier to toss more hardware at disappointing performance than to re-code into a different environment. Finally, ASP is a purely Microsoft technology and so is not available to people who (for whatever reasons) choose Linux. Conversely, there are many reasons why someone might choose ASP instead of CGI other than the performance advantage of ASP. It's all a matter of balance. I have no idea whether MapQuest uses CGI or Linux or what their business reasons were for doing so. Since they are a business, I presume that ultimately it was business reasons that led them to the decisions they reached. However, to suggest that "If MapQuest uses CGI than therefore CGI is higher performance than ASP" is silly. It could well be that MapQuest wanted to avoid paying for Windows licenses on 1000 servers. There may be a lesson in that for people who operate large server farms, but that is not most map server operators. If we are to relate this back to map servers in general, it is important to observe that *most* map server applications on the web are characterized by very small sites accessed by very few people. A few sites (like MapQuest) get millions of hits and the most of the rest of the sites get hundreds of hits. To my mind, that is a better argument for CGI and Linux than MapQuest, the reason being that in a classic, low-budget, low volume, code-your-own environment the idea of accessible, free, ad-hoc tools like Linux, Apache, CGI and PERL has a lot of appeal. In such cases getting started easily and free is much more important than the performance penalty of launching a few more processes to service each hit. However, for a fully automated, commercial, shrink-wrapped package solution aimed at pure Microsoft environments there is an entirely different impetus. If you know you are going to be exclusively in a Microsoft environment it makes sense to leverage all the benefits of that environment. In that case the package will use ASP for the obvious benefits it brings. So, I mean no disrespect to CGI or to the Minnesota MapServer. Both are certainly a fine way to go if you have the technical talent and can absorb the labor costs of configuration. But within the Microsoft Windows world (indisputably a first choice for many) there is absolutely no doubt that few professionals would choose a CGI based solution when they could use ASP, for performance reasons alone. Since I don't read the mapserver-users list I don't know if this thread is appropriate content for posts and I don't feel comfortable continuing to "cc" the list just because respondants did so. I would ask that any writers interested in corresponding further on this write to me directly. Cheers, Dimitri From Robin.Ellis at dnr.qld.gov.au Sun Sep 16 19:05:08 2001 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Mon, 17 Sep 2001 12:05:08 +1000 Subject: [mapserver-users] Postgres and msSearchDiskTree(): Message-ID: List, I'm running a recent nightly build of Mapserver on a Solaris Unix server utilising Apache. I'm accessing numerous data layers from PostgresSQL and have no problems displaying or querying attributes in the standard manner. However when using one polygon layer to conduct a 'featurenquery' on another polygon layer, I occassionaly get the error message: "msSearchDiskTree(): Unable to access file." This error is not consistant - some polygons work OK, others don't. The problem does not appear to be related to the number of records returned either, as this also appears to be relatively 'random'. Any ideas? Thanks Rob Robin Ellis Department of Natural Resources and Mines Burnett District +61 7 4131 5771 Robin.Ellis at dnr.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From georg116 at gmx.at Mon Sep 17 02:26:14 2001 From: georg116 at gmx.at (georg116) Date: Mon, 17 Sep 2001 11:26:14 +0200 Subject: [mapserver-users] Rectangle Query Message-ID: <3BA5C1B6.3010309@gmx.at> Hi, I'm using Mapserver 3.4 together with GMAP PHP/Mapscript on SuSE Linux 7.2. Since upgrading from 3.3 to 3.4, queries only work on a point basis. The strange thing is, when querying using a rectangle, only the objects that are touched by the bottom edge are recognized ?!? Any suggestions? Georg From j1mmm at hotmail.com Mon Sep 17 03:12:09 2001 From: j1mmm at hotmail.com (j1mmm) Date: Mon, 17 Sep 2001 17:12:09 +0700 Subject: [mapserver-users] compile error on GD-1.8.4 in winNT Message-ID: how i can fix it?? appreciate so much for your help Thank j1mmm j1mmm at hotmail.com ================ Creating library mapserv.lib and object mapserv.exp mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromPng mapserver.lib(mapsymbol.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromPng mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromGif mapserver.lib(mapsymbol.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromGif mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _gdImageW BMP mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _gdImageP ng mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _gdImageG if mapserv.exe : fatal error LNK1120: 9 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Maul at bgr.de Mon Sep 17 04:13:46 2001 From: Andreas.Maul at bgr.de (Maul, Andreas-Alexander) Date: Mon, 17 Sep 2001 12:13:46 +0100 Subject: [mapserver-users] problems to query tiled data Message-ID: Hi list, I have problems to query tiled data with ms 3.5. After creating a bunch of shape files containing point data and building an index file with tile4ms by specifying a list of full path names to these shape files, the data are drawn correctly but when I click on a point, I get the following error message: Content-type: text/html msSearchDiskTree(): Unable to access file. If I specify the corresponding non-tiled shape file with a DATA statement, the query works. Here is the layer section of my map file: ... LAYER NAME "Gravimetrie" TILEINDEX "gravidx" TILEITEM "location" TYPE POINT STATUS OFF TOLERANCE 5 TOLERANCEUNITS PIXELS PROJECTION "proj=latlong" "ellps=bessel" END CLASS NAME "Gravimetrie" COLOR 220 100 0 SYMBOL 1 SIZE 3 TEMPLATE "tgravimetrie.html" END END ... Any hints what I am doing wrong? Regards, Andreas From Andreas.Maul at bgr.de Mon Sep 17 05:46:32 2001 From: Andreas.Maul at bgr.de (Maul, Andreas-Alexander) Date: Mon, 17 Sep 2001 13:46:32 +0100 Subject: [mapserver-users] compile error on GD-1.8.4 in winNT Message-ID: Hi, I had the same problem with the alleged gif-patched version of gd-1.8.4 (http://downloads.rhyme.com.au/gd/gd-1.8.4gif.tar.gz): at least the prototypes of the gif functions in the source code (gd.h) were missing. So I downloaded the patched version with auto make (http://downloads.rhyme.com.au/gd/gd-1.8.4amgif.tar.gz) where the functions are present. Using this package, the error messages (unresolved symbols) will disappear. Andreas how i can fix it?? appreciate so much for your help Thank j1mmm j1mmm at hotmail.com ================ Creating library mapserv.lib and object mapserv.exp mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromPng mapserver.lib(mapsymbol.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromPng mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromGif mapserver.lib(mapsymbol.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromGif mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _gdImageW BMP mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _gdImageP ng mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _gdImageG if mapserv.exe : fatal error LNK1120: 9 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. From sjohnston at satshot.com Mon Sep 17 03:16:22 2001 From: sjohnston at satshot.com (Shawn L Johnston) Date: Mon, 17 Sep 2001 10:16:22 +0000 (GMT) Subject: [mapserver-users] Re: FW: [Manifold] Map Server Docs In-Reply-To: Message-ID: On Sun, 16 Sep 2001, Dimitri Rotow wrote: > My letter also included the following: "Microsoft ASP in itself is obviously > a higher performance environment than CGI (although, of course, it has > tradeoffs in other dimensions)." Performance is just one factor to be > considered when choosing a dynamic web page technology. Of course the "performance penalty" is going to also depend largley on how well the application is designed and coded, regardles of if its ran through cgi or through something like ASP. > Finally, ASP is a purely Microsoft technology and so is not available to > people who (for whatever reasons) choose Linux. Not true. See http://httpd.apache.org/related_projects.html#apacheasp and of course there is always PHP and ColdFusion additionaly. > I have no idea whether MapQuest uses CGI or Linux or what their business > reasons were for doing so. I believe part of their system is driven through Oracle. > However, for a fully automated, commercial, shrink-wrapped package solution > aimed at pure Microsoft environments there is an entirely different impetus. > If you know you are going to be exclusively in a Microsoft environment it > makes sense to leverage all the benefits of that environment. In that case > the package will use ASP for the obvious benefits it brings. You may also spend more for hardware up front, as Windows Servers seem to have this tendancy to use memory like my old International Truck burns gas. Like you say you have too look at the balance. Cheers, Shawn From toni at giscampus.udg.es Mon Sep 17 08:36:55 2001 From: toni at giscampus.udg.es (=?iso-8859-1?Q?toni_hern=E1ndez?=) Date: Mon, 17 Sep 2001 17:36:55 +0200 Subject: [mapserver-users] No query layer defined. References: <5.1.0.14.0.20010916103350.038118f0@mail.GreenwoodMap.com> Message-ID: <00be01c13f8e$94d7ef90$0e2fce82@udg.es> Hi everybody, I am just about to abandon. :-( I have mapserver version 3.5 and I am trying to select some streets in the map using a simple html form but I get this message: "msQueryByAttributes(): General error message. No query layer defined. " Here is the layer in question. LAYER NAME carrers TYPE LINE STATUS DEFAULT DATA carrers LABELITEM "Nomsencerc" CLASS COLOR 128 40 40 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 230 MINSIZE 4 MINDISTANCE 100 MAXSIZE 8 MINFEATURESIZE 100 MINFEATURESIZE AUTO BUFFER 2 END END TEMPLATE case4_template.html END Anyone knows? From morissette at dmsolutions.ca Mon Sep 17 09:24:37 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 17 Sep 2001 12:24:37 -0400 Subject: [mapserver-users] problems to query tiled data References: Message-ID: <3BA623C5.C8AF3F2B@dmsolutions.ca> "Maul, Andreas-Alexander" wrote: > > Hi list, > I have problems to query tiled data with ms 3.5. After creating a bunch of > shape files containing point data and building an index file with tile4ms by > specifying a list of full path names to these shape files, the data are > drawn correctly but when I click on a point, I get the following error > message: > > Content-type: text/html msSearchDiskTree(): Unable to access file. > > If I specify the corresponding non-tiled shape file with a DATA statement, > the query works. > A fix for this problem has been committed to CVS on 2001-09-01 ... try upgrading to the latest CVS version. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Sep 17 11:59:54 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 17 Sep 2001 13:59:54 -0500 Subject: [mapserver-users] Layer Group Name - more Message-ID: Qlayer refers to a single layer, not a group. If you would be so kind as to register this as a feature request via bugzilla I'll take a look at it. Another option would be to allow multiple qlayers just as with the layer parameter. You can use the regular layer or layers parameters to turn on layers you want to query and those parameters do respect groups. To be queryable a layer: - must be explicitly turned on or have STATUS of DEFAULT/QUERYONLY (in 3.5 the QUERYONLY option goes away in favor of setting TYPE to QUERY, this was done because in previous versions you could never turn off QUERYONLY layers, a bad thing) - must have a valid template So you can certainly turn layers on the old fashioned way. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Richard Greenwood 09/16/01 11:39AM >>> A follow up to my previous question - It seems that if I use a group name for the qlayer in an nquery it gets ignored (like I hadn't specified a qlayer, and all layers with a template in their class are queried). But specifying a group name for the qlayer in an itemquery generates an error. So can the group name be used to define the qlayer? It appears not. And if I am correct, can anyone suggest a way in which I might specify more than one qlayer, but not all of the layers in my .map files? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From Regina.Obe.PFD at ci.boston.ma.us Mon Sep 17 12:37:10 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Mon, 17 Sep 2001 15:37:10 -0400 Subject: [mapserver-users] No query layer defined. Message-ID: This is a bit of a guess since I'm new to mapserv myself, but I think your TEMPLATE tag should be within your class definition (in 3.5) Try this instead LAYER NAME carrers TYPE LINE STATUS DEFAULT DATA carrers LABELITEM "Nomsencerc" CLASS COLOR 128 40 40 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 230 MINSIZE 4 MINDISTANCE 100 MAXSIZE 8 MINFEATURESIZE 100 MINFEATURESIZE AUTO BUFFER 2 END TEMPLATE case4_template.html END END -----Original Message----- From: toni hern?ndez [mailto:toni at giscampus.udg.es] Sent: Monday, September 17, 2001 11:37 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] No query layer defined. Hi everybody, I am just about to abandon. :-( I have mapserver version 3.5 and I am trying to select some streets in the map using a simple html form but I get this message: "msQueryByAttributes(): General error message. No query layer defined. " Here is the layer in question. LAYER NAME carrers TYPE LINE STATUS DEFAULT DATA carrers LABELITEM "Nomsencerc" CLASS COLOR 128 40 40 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 230 MINSIZE 4 MINDISTANCE 100 MAXSIZE 8 MINFEATURESIZE 100 MINFEATURESIZE AUTO BUFFER 2 END END TEMPLATE case4_template.html END Anyone knows? From joemayfair at usa.net Mon Sep 17 13:10:09 2001 From: joemayfair at usa.net (Walt Lin) Date: Mon, 17 Sep 2001 16:10:09 -0400 Subject: [mapserver-users] calculating x,y from lat,lon Message-ID: <20010917161009.A1979@shenandoah> Hi all, I have mapserver generating a map image for me, and then I do my own calculation of x,y from lat,lon for certain points and overlay them. Sometimes they line up correctly, but most of the time, the x coordinate is very accurate but the y coordinate is off by a small margin. I would like to know the formula mapserver uses to calculate the pixel x,y from the lat,lon of a point, in the decimal degrees units. I have looked through the source but couldn't find it. The supposedly incorrect formula I have been using is: x = (point_lon - left_lon) / (right_lon - left_lon) * image_width y = (1 - (point_lat - lower_lat) / (upper_lat - lower_lat)) * image_height (the pixel origin being in the upper left corner). Also, it is not feasible to simply give mapserver the point and have it do the work. I need to do the calculation outside of mapserver. I am guessing that it has something to do with the curvature of the earth and whether it is projecting points with a normal to the earth's surface or a normal to the plane of the image? Thanks for any help, Walt From imap at chesapeake.net Mon Sep 17 14:40:14 2001 From: imap at chesapeake.net (imap at chesapeake.net) Date: Mon, 17 Sep 2001 17:40:14 -0400 Subject: [mapserver-users] calculating x,y from lat,lon References: <20010917161009.A1979@shenandoah> Message-ID: <3BA66DBE.E958DE72@chesapeake.net> Walt, Here is a piece of javascript code that works OK with projected map coordinates, but I am not sure how it will work with unprojected lat/lon values. Typically I call this before I submit to the server. Your milage may vary. I have similar problems getting accuracy going from x,y -> lat/lon -> projected map coordinates. (mainly because no proj hooks from js.) If anyone has additional insight (and/or code) to deal with this problem, please forward to the list. Regards, Chris Stuber (mapsurfer) function computeExtent() { var mapext = new Array(4); var imgext = document.mapserv.imgext.value.split(" "); var imgbox = document.mapserv.imgbox.value.split(" "); var imgxy = document.mapserv.imgxy.value.split(" "); var cellsize, offsetx, offsety; if((imgbox[0] != imgbox[2]) && (imgbox[1] != imgbox[3])) { // working from an image box cellsize = (imgext[2]-imgext[0])/(sx-1); // cells are square mapext[0] = 1.0*imgext[0] + cellsize*imgbox[0]; mapext[2] = 1.0*imgext[0] + cellsize*imgbox[2]; mapext[1] = 1.0*imgext[3] - cellsize*imgbox[3]; mapext[3] = 1.0*imgext[3] - cellsize*imgbox[1]; } else { // working from an image x,z (imgxy) var x, y, zoom=1; if(document.mapserv.zoomdir[0].checked) // zooming in zoom = document.mapserv.zoomsize.value; if(document.mapserv.zoomdir[1].checked) // zooming out zoom = 1/document.mapserv.zoomsize.value; cellsize = (imgext[2]-imgext[0])/(sx-1); // cells are square x = 1.0*imgext[0] + cellsize*imgxy[0]; y = 1.0*imgext[3] - cellsize*imgxy[1]; mapext[0] = x - .5*((imgext[2] - imgext[0])/zoom); mapext[1] = y - .5*((imgext[3] - imgext[1])/zoom); mapext[2] = x + .5*((imgext[2] - imgext[0])/zoom); mapext[3] = y + .5*((imgext[3] - imgext[1])/zoom); } // adjust the map exent to optimally fit the image size cellsize = Math.max((mapext[2] - mapext[0])/(sx-1), (mapext[3] - mapext[1])/(sy-1)); offsetx = Math.round(Math.max(((sx-1)-(mapext[2]-mapext[0])/cellsize)/2,0)); offsety = Math.round(Math.max(((sy-1)-(mapext[3]-mapext[1])/cellsize)/2,0)); mapext[0] = mapext[0] - offsetx*cellsize; mapext[1] = mapext[1] - offsety*cellsize; mapext[2] = mapext[2] + offsetx*cellsize; mapext[3] = mapext[3] + offsety*cellsize; var temp = mapext[0]+" "+mapext[1]+" "+mapext[2]+" "+mapext[3]; document.mapserv.mapext.value = temp; } Walt Lin wrote: > > Hi all, > > I have mapserver generating a map image for me, and then I do my own calculation of x,y from lat,lon for certain points and overlay them. Sometimes they line up correctly, but most of the time, the x coordinate is very accurate but the y coordinate is off by a small margin. I would like to know the formula mapserver uses to calculate the pixel x,y from the lat,lon of a point, in the decimal degrees units. I have looked through the source but couldn't find it. The supposedly incorrect formula I have been using is: > > x = (point_lon - left_lon) / (right_lon - left_lon) * image_width > y = (1 - (point_lat - lower_lat) / (upper_lat - lower_lat)) * image_height > > (the pixel origin being in the upper left corner). Also, it is not feasible to simply give mapserver the point and have it do the work. I need to do the calculation outside of mapserver. I am guessing that it has something to do with the curvature of the earth and whether it is projecting points with a normal to the earth's surface or a normal to the plane of the image? > > Thanks for any help, > Walt From trem at socialchange.net.au Mon Sep 17 18:30:14 2001 From: trem at socialchange.net.au (Trem Stamp) Date: Tue, 18 Sep 2001 11:30:14 +1000 Subject: [mapserver-users] Mapserv 3.5 opaque tag Message-ID: <3BA6A3A6.49D4AE4D@socialchange.net.au> Hi all, Just wondering if when a wms capabilities request is made using mapserv 3.5, the map file has the ability to define the opaque tag for a layer, and if so, how this is defined in the map file. Cheers, Trem From paul at tei.or.th Tue Sep 18 00:04:49 2001 From: paul at tei.or.th (Paul Hastings) Date: Tue, 18 Sep 2001 14:04:49 +0700 Subject: [mapserver-users] iis urlscan & mapserver cgi Message-ID: <000d01c14010$3532f170$0d729acb@tei.or.th> just a heads up that applying iis's urlscan security tool kills off mapserver CGI. trying to figure out the correct settings to allow CGI execution & still keep the other security settings... ---------------------------------------------------- Paul Hastings paul at tei.or.th Director Environmental Information Center Thailand Environment Institute Member Team Allaire http://www.tei.or.th/eic --------------------------- From j1mmm at hotmail.com Tue Sep 18 00:09:43 2001 From: j1mmm at hotmail.com (j1mmm) Date: Tue, 18 Sep 2001 14:09:43 +0700 Subject: [mapserver-users] error LNK2001: unresolved external symbol _gdImageCreateFromPng Message-ID: Do u have any advice?? appreciate so much for your help my error is ..... ---------------------------------------------------- Creating library mapserv.lib and object mapserv.exp mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromPng mapserver.lib(mapsymbol.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromPng mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _gdImageP ng mapserv.exe : fatal error LNK1120: 2 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. ------------------------------------------------------- Anyway THANK SO MUCH j1mmm j1mmm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvain.speh at CLERMONT.cemagref.fr Tue Sep 18 01:23:56 2001 From: sylvain.speh at CLERMONT.cemagref.fr (Speh Sylvain) Date: Tue, 18 Sep 2001 10:23:56 +0200 Subject: [mapserver-users] Comparison between MS and other cartographic servers Message-ID: Hi list, I'm a studient who tried to cope with MapServer. After studying it, I try to make some comparisons between MS and others such as AutoDesk MapGuide 4.0. I'm especially interested by fonctionnal and workbench aspects. Is there anybody working with the both servers ? Thanks for any help, Sylvain From morissette at dmsolutions.ca Tue Sep 18 07:02:21 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 18 Sep 2001 10:02:21 -0400 Subject: [mapserver-users] Mapserv 3.5 opaque tag References: <3BA6A3A6.49D4AE4D@socialchange.net.au> Message-ID: <3BA753ED.6D334E10@dmsolutions.ca> Trem Stamp wrote: > > Just wondering if when a wms capabilities request is made using mapserv > 3.5, the map file has the ability to define the opaque tag for a layer, > and if so, how this is defined in the map file. > It was not supported until now, but I added it this morning (it's in CVS). There is a new "wms_opaque" layer metadata that is used to control the opaque layer attribute in the capabilites. This applies to version 1.1.0 only and if "wms_opaque" is not defined then we assume "opaque=0" as stated in the spec. Now, about the other question that you had sent outside the list: > Trem Stamp wrote: > > > > I understand the builds for windows NT is done every week from CVS > > automatically. I noticed that the last build was done on 31st August > > and was hoping that this would have included the wms functionality. > > > > It seemed that it only had the following. > > > > MapServer version 3.5 (pre-alpha) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > > OUTPUT=WBMP SUPPOR > > TS=PROJ SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE > > > > Do you know when a build will be done which includes WMS and bug fixes > > for tiled reprojection using raster images (which were fixed by you over > > the last couple of weeks)? > > I don't know about the builds at UMN, but there is one that's about 2 weeks old on our site and it includes WMS server support: http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip (I guess the filename does not suggest it, but it includes both the PHP DLL and mapserv.exe) We'll try to put a new one on our site later this week with the latest fixes in it, and compiled with the latest PROJ and GDAL libs. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From lfilak at yahoo.com Tue Sep 18 09:02:02 2001 From: lfilak at yahoo.com (Lowell Filak) Date: Tue, 18 Sep 2001 09:02:02 -0700 (PDT) Subject: [mapserver-users] Load balancing script Message-ID: <20010918160202.44821.qmail@web11301.mail.yahoo.com> In a previous discussion at http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0101/msg00049.html there was reference to a load balancing script based on work by Chris Stuber being posted to the site. Does anyone know where that script is located? Thanks. Lowell Filak __________________________________________________ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ From steve.lime at dnr.state.mn.us Tue Sep 18 09:14:38 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 18 Sep 2001 11:14:38 -0500 Subject: [mapserver-users] Load balancing script Message-ID: Here's the script I wrote a few years back based on Chris' original work which was not MapServer based. It's a perl script that you reference instead of the MapServer CGI program. The script checks that state of a pool of machine and fires the CGI request to the appropriate machine. The perl script and the MapServer setup need to be in place on all boxes. It's possible to have a single balance script as well. I ran this across 4 Sun 250's and it worked like a charm, each machine kicked out roughly the same number of maps each day. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Lowell Filak 09/18/01 11:02AM >>> In a previous discussion at http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0101/msg00049.html there was reference to a load balancing script based on work by Chris Stuber being posted to the site. Does anyone know where that script is located? Thanks. Lowell Filak __________________________________________________ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ -------------- next part -------------- A non-text attachment was scrubbed... Name: balance.pl Type: application/octet-stream Size: 948 bytes Desc: not available URL: From toni at giscampus.udg.es Tue Sep 18 09:23:49 2001 From: toni at giscampus.udg.es (=?iso-8859-1?Q?toni_hern=E1ndez?=) Date: Tue, 18 Sep 2001 18:23:49 +0200 Subject: [mapserver-users] TEXT QUERY References: <20010917161009.A1979@shenandoah> Message-ID: <023501c1405e$4c40c060$0e2fce82@udg.es> Hi friends, I know, I know I am very disturbing but... I hope I have almost done it. I have been trying to make a text query (item/value). When I take the shapes that come with the demo everything is ok, but when I use the shapes I really want to use (i.e to locate one street of my city) everything goes to hell and no match is found. I have been studying the dbf files and thera are no great differences. Is anything else i am missing? From steve.lime at dnr.state.mn.us Tue Sep 18 12:56:14 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 18 Sep 2001 14:56:14 -0500 Subject: [mapserver-users] Rectangle Query Message-ID: It is possible the rectangle is out of order? It needs to be minx, miny, maxx, maxy. That's the first thing I'd check since rectangle queries do work in all versions. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> georg116 09/17/01 04:26AM >>> Hi, I'm using Mapserver 3.4 together with GMAP PHP/Mapscript on SuSE Linux 7.2. Since upgrading from 3.3 to 3.4, queries only work on a point basis. The strange thing is, when querying using a rectangle, only the objects that are touched by the bottom edge are recognized ?!? Any suggestions? Georg From AWOOLEY at mountainland.org Tue Sep 18 15:27:32 2001 From: AWOOLEY at mountainland.org (ANDREW WOOLEY) Date: Tue, 18 Sep 2001 16:27:32 -0600 Subject: [mapserver-users] QueryByPoint Message-ID: Folks, I apologize if this has been asked before, but I can't seem to find any thing about it on the archives. For some of my themes, the query works just fine. However, for others, it doesn't work at all. I have tried many different things to get it to work, but I can't understand the problem. I have copied the mapfile layer definitions for one that works and just change the data pointer and it won't work. I have tried lots of combinations and I have discovered that - for one theme - if I click on very large polygons, it works, but anything very small will not work. The same holds true with lines - larger lines work - smaller ones don't. Does this make any sense to anyone? I just can't figure it out. I have adjusted my tolerance from 1 to 1000 and many places in between, but no avail. Any suggestions would be appreciated. Andrew From vguzman at main-task.com Wed Sep 19 00:29:35 2001 From: vguzman at main-task.com (Vladimir =?iso-8859-1?Q?Guzm=E1n?=) Date: Wed, 19 Sep 2001 09:29:35 +0200 Subject: [mapserver-users] [Fwd: analysis question] Message-ID: <3BA8495F.D4D1166F@main-task.com> Hello everybody. I'm wondering if there is a way to draw some kind of analysis in maps through mapscript-php: I have a point coverage with clients in it. I have a polygon coverage with zones in it. I need to generate a map of density of clients by zone. For example, I need zone 1 in red color, because it have 100 clients. zone 2 in pink color, because it have 50 clients. zone 3 in white color, bacause it have 0 clients. and so on... Is it possible? How do I do it? Thanks in Advance, Vladimir G From steve.lime at dnr.state.mn.us Wed Sep 19 08:31:29 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 19 Sep 2001 10:31:29 -0500 Subject: [mapserver-users] [Fwd: analysis question] Message-ID: It's possible to do this totally dynamically but the performance would likely be poor. I would recommend pre-processing the data to add the number of clients to the polygon coverage. That could be scripted so that you could run it as your client coverage changes. Basically you want to run a series of queries using MapScript. Not the PHP version, but with perl, python or tk/tcl so that you can run this outside of a web environment. The easiest way to do this would be like this: - for each point in the client file select the polygon (zone) it falls in (point select) - update a counter for that zone - after all points have been processed you now have a tally of the number of clients for each zone - add those totals as a new item in the zone attribute table Now you can easily map the density with PHP or the MapServer CGI version. Re-run the density script as necessary to update your zone data. Steve Stephen Lime Data and Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Vladimir Guzm?n 09/19/01 09:43 AM >>> Hello everybody. I'm wondering if there is a way to draw some kind of analysis in maps through mapscript-php: I have a point coverage with clients in it. I have a polygon coverage with zones in it. I need to generate a map of density of clients by zone. For example, I need zone 1 in red color, because it have 100 clients. zone 2 in pink color, because it have 50 clients. zone 3 in white color, bacause it have 0 clients. and so on... Is it possible? How do I do it? Thanks in Advance, Vladimir G From pucher at atlas.gis.univie.ac.at Wed Sep 19 08:18:49 2001 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Wed, 19 Sep 2001 17:18:49 +0200 Subject: [mapserver-users] (no subject) Message-ID: <3BA8B759.8060004@atlas.gis.univie.ac.at> who end -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universit?t Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartographie and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: pucher at atlas.gis.univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto ________________________________________________________ "The toughest fight, was with my wife." -- Muhammad Ali From pramsey at refractions.net Wed Sep 19 10:01:52 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 19 Sep 2001 10:01:52 -0700 Subject: [mapserver-users] [Fwd: analysis question] References: <3BA8495F.D4D1166F@main-task.com> Message-ID: <3BA8CF80.85E270EF@refractions.net> Not with mapserver alone. You'll need to use some kind of GIS software to initially calculate how many points in each polygon, and store that as an attribute with your polygon coverage. Then you can render colors based on that calculated number. Vladimir Guzm?n wrote: > > Hello everybody. > I'm wondering if there is a way to draw some kind of analysis in maps > through mapscript-php: > > I have a point coverage with clients in it. > I have a polygon coverage with zones in it. > I need to generate a map of density of clients by zone. > For example, I need > zone 1 in red color, because it have 100 clients. > zone 2 in pink color, because it have 50 clients. > zone 3 in white color, bacause it have 0 clients. > and so on... > > Is it possible? > How do I do it? > > Thanks in Advance, > > Vladimir G -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From teb at mallit.fr.umn.edu Wed Sep 19 10:24:10 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 19 Sep 2001 12:24:10 -0500 (CDT) Subject: [mapserver-users] Newbie Question - Mapserver for attribute and spatial queries (FWD) Message-ID: <200109191724.MAA03220@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: klehr1 at tampabay.rr.com To: Subject: Newbie Question - Mapserver for attribute and spatial queries Date: Wed, 19 Sep 2001 09:21:44 -0400 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 I'm looking at MapServer to accomplish the following tasks: 1. Query a shape file off an attribute && a spatial distance - i.e. select * from shapefile where coordinates are within 500 units of (select coordiantes from shapefile where id = 'user entered id' ) 2. Genearate a new map based on the results of 1. Displaying the new map on the web with the polygon of 'user entered id' in the colored in the middle of the map and all other polygons selected in 1 displayed (zoom and pan features) This is basically polygon outline map - with one polygon highlighed. Generate and display Map -- the map is now an image map on the web. 3. User sees the new map, and they click on a another polygon -- resolve the polygon's id and call another url with that id, i.e redirect page to www/cgi-bin/get_table?id=clicked_id. Questions: Can this be accomplished with mapserver? Is this a mapserver or mapscript type of application (there are two distinct applications here)? Any example sites/code would be greatly appreciated. Thanks for your help. Steve Lehr ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at refractions.net Wed Sep 19 12:50:09 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 19 Sep 2001 12:50:09 -0700 Subject: [mapserver-users] PostGIS 0.6 Released Message-ID: <3BA8F6F1.95F4022B@refractions.net> SUMMARY: Refractions Research is pleased to announce the 0.6 release of PostGIS : Geographic Objects for the PostgreSQL object-relational database server. PostGIS/PostgreSQL is a spatial database much like ESRI's SDE and Oracles OracleSpatial. PostGIS/PostgreSQL includes the following functionality: - Simple Features as defined by the OpenGIS Consortium (OGC) - Support for Well-Known Text and Well-Known Binary representations of GIS objects - Fast spatial indexing using GiST - Geospatial analysis functions - PostgreSQL JDBC extension objects corresponding to the geometries - Support for OGC access functions as defined by the Simple Features Specification The latest release increases OpenGIS standards support, upgrades Mapserver support, and increases the number of accessor functions dramatically. For more information, see the PostGIS project web site at: http://postgis.refractions.net REQUIREMENTS: - PostgreSQL Version 7.1.x (Version 7.2 and CVS versions of PostgreSQL will *not* work due to changes in the GiST index interface. The next version of PostGIS will move to PostgreSQL 7.2.) - The PL/pgSQL server-side language must be installed before PostGIS RELEASE NOTES: - Version 0.6 includes numerous new functions bringing the system closer to OpenGIS SQL standards. The SPATIAL_REF_SYS and GEOMETRY_COLUMNS tables are now supported and maintainted. SRIDs are included in all geometries, and functions check for consistent SRIDs. - The internal binary format has changed since version 0.5, so a dump/restore of existing databases is *required*. See the UPGRADING section of the README. - The latest CVS version of Mapserver will be required if you are using PostGIS as a Mapserver datasource. See http://mapserver.gis.umn.edu/ for more information on Mapserver and for CVS snapshots. NEW FUNCTIONS: postgis_version() Return the PostGIS version number. find_srid(::varchar, ::varchar, ::varchar) Return the SRID number for a particular column of a database. AddGeometryColumn(::varchar,
::varchar, ::varchar, ::integer, ::varchar, ::integer) Appends a geometry column to an existing table and updates the metadata tables appropriately. DropGeometryColumn(::varchar,
::varchar, ::varchar) Removes a geometry column from an existing spatial table. Distance(::geometry, ::geometry) Returns the cartesian distance between two geometries. AsText(::geometry) Returns the OGC well-known text version of the geometry. SRID(::geometry) Returns the integer SRID of the geometry. GeometryFromText(::varchar, ::integer) Creates a geometry object given the OGC well-known text and a valid SRID. SetSRID(::geometry) Sets the SRID of a geometry to a particular value. IsClosed(::geometry) Returns true of first and last points of geometry are coincident. StartPoint(::geometry) Returns the first point of a geometry. EndPoint(::geometry) Returns the last point of a geometry. Centroid(::geometry) Returns the centroid of a geometry. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From Hannah.Jensen at erdc.usace.army.mil Wed Sep 19 13:50:05 2001 From: Hannah.Jensen at erdc.usace.army.mil (Jensen, Hannah ERDC-CRREL-NH) Date: Wed, 19 Sep 2001 16:50:05 -0400 Subject: [mapserver-users] mapshape query Message-ID: <048FBD219330D211B47000A0C9B3BAFD02A618E6@crl02.crrel.usace.army.mil> Hi, all. I'm a MapServer newbie, so my apologies if this question has gone around before. I want to query a map for all features within a polygon, as drawn on the map using the applet. To do this, I was hoping to use the mapshape CGI variable. But when I tried to test this approach by substituting polygon points and the mapshape variable for the imgbox for the same area in Example 5 from the tutorial, I got no results for an area that definitely should return results. So the URL string from the example is: http://terrasip.gis.umn.edu/cgi-bin/mapserv?map=%2FterrasipProjects%2Ftutori al%2Fexample5.map&imgext=74000.000000+4653929.765886+798000.000000+5621070.2 34114&imgbox=155+190+205+238&mode=nquery&layer=state_parks&layer=lakes&layer =counties&zoom=1&submit_button=Redraw%2FQuery and I changed it to: http://terrasip.gis.umn.edu/cgi-bin/mapserv?map=%2FterrasipProjects%2Ftutori al%2Fexample5.map&imgext=74000.000000+4653929.765886+798000.000000+5621070.2 34114&mapshape=155+190+155+238+205+238+205+190+155+190&mode=nquery&layer=sta te_parks&layer=lakes&layer=counties&zoom=1&submit_button=Redraw%2FQuery which gave: msQueryUsingShape(): Search returned no results. No matching record(s) found. when it should have returned 5 state parks. I must not be using mapshape properly. Can anyone shed some light on how to select features using a shape rather than a rectangle? Thanks! Cheers, Hannah From teb at mallit.fr.umn.edu Wed Sep 19 15:34:24 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 19 Sep 2001 17:34:24 -0500 (CDT) Subject: [mapserver-users] epsg usage - getProjection ? (FWD) Message-ID: <200109192234.RAA03386@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Thu, 20 Sep 2001 00:09:19 +0200 (CEST) From: Bruno Gendron Subject: epsg usage - getProjection ? To: mapserver-info at lists.gis.umn.edu MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi to everyone, 2 questions... 1. How can I use the epsg projection codes in Mapserver on Win2000? So far, on Linux, epsg codes in the form PROJECTION "init=epsg:4130" END are working great, but not on Windows, where I get the following error: "no system list"... Also, is there a way to create a predefined list of requently used projections? 2. Is there a way to access, from PHP-MapScript, the projection parameters of a map, using a method like $mapObj->getProjection()? If not, any suggestions? Thanks... -- Bruno Gendron GIS Consultant Lachine, QC, Canada ___________________________________________________________ Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! Yahoo! Courrier : http://fr.mail.yahoo.com ------------- End Forwarded Message ------------- From matt at aruke.com Thu Sep 20 00:54:50 2001 From: matt at aruke.com (Matt Carlson) Date: Thu, 20 Sep 2001 16:54:50 +0900 Subject: [mapserver-users] projection confusion References: <3BA8B759.8060004@atlas.gis.univie.ac.at> Message-ID: <000c01c141a9$87394380$0400a8c0@matt> version : 3.3.011 built with proj : 4.4.3 hi, we are dealing with a client right now that is saying that the building polys being served up by mapserver look 'crooked'. is this a projection issue? the files are using dd for units, do these need to be projected a certain way to look right? i tried playing with some different projections in my map file and always came up with a white map. i'm suspecting my map is being projected out into nowhere. when the data was originally made it was projected from meters to wgs84 dd. do i need to define a projection in mapserver in order for these buildings to come out right? is this something that can be defined in the map file? thnks for any help, i'm a programmer not a gis guy basically lost here. matt From claude.philipona at camptocamp.com Sat Sep 15 04:24:53 2001 From: claude.philipona at camptocamp.com (Claude Philipona) Date: Sat, 15 Sep 2001 13:24:53 +0200 Subject: [mapserver-users] strange behaviour of zoomscale() in phpmapscript Message-ID: <002c01c13dd9$0a7e9530$1500a8c0@bsa> Hello, We have observed a strange behaviour with the zoomscale method in PHPMpscript 3.5. If we set the zoomscale with a given scale, we get in return a scale that is not set equal to what we gave as parameter. There is always a shift, which appears, for a given width and height, to be a constant percentage of the scale. This appears anywhere on the map, even very far from the maximum mapextent. Is it a bug or a wrong use of the fonction? Actually, we need for our application to be able to zoom with a precise scale, to get one to one pixel representation of our raster image Here is an example of the problem we use: MapScript Version (Aug 29, 2001) MapServer version 3.5 (pre-alpha) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE if we do: $Map->zoomscale($scale, $pixelpos, $width_pix, $height_pix, $georefext, $georefmaxext); with the following values (part of var_dump($Map->scale): $scale: int(28347) $pixelpos: ["x"]=> float(281) ["y"]=> float(277) $width: int(400) $height: int(400) $georefext: ["minx"]=> float(556933.36088877) ["miny"]=> float(111233.13134228) ["maxx"]=> float(562918.54274843) ["maxy"]=> float(117218.31320194) $georefmaxext: ["minx"]=> float(479231.75) ["miny"]=> float(65964.67) ["maxx"]=> float(847736.75) ["maxy"]=> float(320184.67) just after $Map->zoomscale() we get $new_scale: 28276.1325 $new_extent (bbox): 559142.913985 111078.53760395 563132.98830536 115068.61192431 we have a difference between what we asked and what we get of : 28347 - 28276.1325 = 70.8675 which is 0.25% (this factor is constant for 400x400 map at any scale, but it chages with different scale). This behaviour doesn't depend on the initial scale prior to the call of zoomscale (in this example, the initial scale was 42414) Any idea on what is happening? Claude Philipona From claude.philipona at camptocamp.com Thu Sep 20 05:10:38 2001 From: claude.philipona at camptocamp.com (Claude Philipona) Date: Thu, 20 Sep 2001 14:10:38 +0200 Subject: [mapserver-users] proj module for php with pj_transform ? Message-ID: <003101c141cd$42ac8c30$1500a8c0@bsa> There is the source for a proj module for php in the distribution of Mapserver. We compiled it and use it to have forward and inverse porjection directly available in PHP. In the new version of proj 4.4.3 there are some new fonctions allowing to make datum shift and to transform from any coordinates (projection or geographic) system to another one, with pj_transform. We know that these function are not implemented yet in the php module. As we are not expert in building php module, we wanted to know if anybody is planning to extend the php proj module with those fucntion? For now, I'm using the exec() function to call the system command cs2cs (command using pj_transform). For example to translate from swiss grid to UTM 32N: exec("cs2cs +init=epsg:9814 +to +init=epsg:32632 < Matt - There isn't any "look right" here - the expected shape of these polygons is completely dependent upon the projection chosen. Since you're talking about "buildings", I'm assuming that they are pretty small polygons (in a global sense) and therefore won't be affected as much by the projection, except in their orientation. That is, the difference between UTM and decimal degrees will be a shape that's about the same but rotated (roughly). If your buildings are being projected into nowhere, check the EXTENTS parameter in the map file. If you're not defining a projection, you'll need to be sure that the range of coordinates in your shapes lies within the extents of the map. If your coordinates are in decimal degrees, then your extents need to be in decimal degrees, too. If you can post the map file and/or the shape file data it would be helpful if you're still stuck. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Matt Carlson [mailto:matt at aruke.com] Sent: Thursday, September 20, 2001 3:55 AM To: mapserver-users Subject: [mapserver-users] projection confusion version : 3.3.011 built with proj : 4.4.3 hi, we are dealing with a client right now that is saying that the building polys being served up by mapserver look 'crooked'. is this a projection issue? the files are using dd for units, do these need to be projected a certain way to look right? i tried playing with some different projections in my map file and always came up with a white map. i'm suspecting my map is being projected out into nowhere. when the data was originally made it was projected from meters to wgs84 dd. do i need to define a projection in mapserver in order for these buildings to come out right? is this something that can be defined in the map file? thnks for any help, i'm a programmer not a gis guy basically lost here. matt From morissette at dmsolutions.ca Thu Sep 20 06:15:39 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 20 Sep 2001 09:15:39 -0400 Subject: [mapserver-users] epsg usage - getProjection ? (FWD) References: <200109192234.RAA03386@mallit.fr.umn.edu> Message-ID: <3BA9EBFB.EAA46462@dmsolutions.ca> Bruno Gendron wrote: > > 1. How can I use the epsg projection codes in > Mapserver on Win2000? So far, on Linux, epsg codes in > the form > > PROJECTION > "init=epsg:4130" > END > > are working great, but not on Windows, where I get the > following error: "no system list"... Also, is there a > way to create a predefined list of requently used > projections? > The system list it is looking for is a file called "epsg". On Unix it is usually installed under /usr/local/share/proj, and on Windows, PROJ4 looks for it in directory C:\proj. So you have to get a copy of the "epsg" file and place it in C:\proj. You can get it from the PROJ4 source distribution at http://www.remotesensing.org/proj , and we also made a copy available for download on our site at http://www2.dmsolutions.ca/mapserver/dl/proj4-epsg.zip > 2. Is there a way to access, from PHP-MapScript, the > projection parameters of a map, using a method like > $mapObj->getProjection()? If not, any suggestions? > > Thanks... > There is currently no way to access the projection settings of a map or a layer in PHP MapScript. You may want to file this in bugzilla as an enhancement and we'll try to add this at some point in the future. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Rich at GreenwoodMap.com Thu Sep 20 06:58:07 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Thu, 20 Sep 2001 07:58:07 -0600 Subject: [mapserver-users] turning legend on/off Message-ID: <5.1.0.14.0.20010920075439.00b055b0@mail.GreenwoodMap.com> How would I go about turning a legend on/off? I remember reading that map file properties could be manipulated from the query string, but I can't find what I thought I read. Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From steve.lime at dnr.state.mn.us Thu Sep 20 07:17:32 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 20 Sep 2001 09:17:32 -0500 Subject: [mapserver-users] turning legend on/off Message-ID: Use map_legend_status to on or off. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Richard Greenwood 09/20/01 08:58AM >>> How would I go about turning a legend on/off? I remember reading that map file properties could be manipulated from the query string, but I can't find what I thought I read. Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From SDunning at nephrology.org Thu Sep 20 07:22:32 2001 From: SDunning at nephrology.org (Stephan Dunning) Date: Thu, 20 Sep 2001 09:22:32 -0500 Subject: [mapserver-users] Multiple Shapepaths? Message-ID: Is it possible to employ two separate shapepaths or mapfiles for one map with multiple layers, one for permanent shapes/layers and one for temporary shapes/layers to be purged daily? Each database query performed by a user on my app creates a dbf and ultimately a shapefile to use in mapserver, but I have writing these temp shapes to the same directory as my other permanent shapes. I'd like to store them separately in order to automatically purge the temp directory on a daily basis. Thoughts? Thanks, Stephan From morissette at dmsolutions.ca Thu Sep 20 07:29:45 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 20 Sep 2001 10:29:45 -0400 Subject: [mapserver-users] strange behaviour of zoomscale() in phpmapscript References: <002c01c13dd9$0a7e9530$1500a8c0@bsa> Message-ID: <3BA9FD59.11AD4B94@dmsolutions.ca> Claude, I think this is a bug, but even if it's not a bug then it's worth looking into. I have filed it in bugzilla: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=46 Add your Email address to the CC: in the bug report if you want to be informed when it's fixed. And BTW, thanks for the clear description of the problem! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Claude Philipona wrote: > > Hello, > We have observed a strange behaviour with the zoomscale method in PHPMpscript > 3.5. > If we set the zoomscale with a given scale, we get in return a scale that is not > set equal to what we gave as parameter. There is always a shift, which appears, > for a given width and height, to be a constant percentage of the scale. This > appears anywhere on the map, even very far from the maximum mapextent. > > Is it a bug or a wrong use of the fonction? Actually, we need for our application > to be able to zoom with a precise scale, to get one to one pixel representation > of our raster image > > Here is an example of the problem > > we use: > MapScript Version (Aug 29, 2001) > MapServer version 3.5 (pre-alpha) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS INPUT=EPPL7 INPUT=JPEG INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > if we do: > $Map->zoomscale($scale, $pixelpos, > $width_pix, $height_pix, > $georefext, $georefmaxext); > > with the following values (part of var_dump($Map->scale): > $scale: > int(28347) > > $pixelpos: > ["x"]=> float(281) ["y"]=> float(277) > > $width: > int(400) > > $height: > int(400) > > $georefext: > ["minx"]=> float(556933.36088877) ["miny"]=> float(111233.13134228) ["maxx"]=> > float(562918.54274843) ["maxy"]=> float(117218.31320194) > > $georefmaxext: > ["minx"]=> float(479231.75) ["miny"]=> float(65964.67) ["maxx"]=> > float(847736.75) ["maxy"]=> float(320184.67) > > just after $Map->zoomscale() we get > > $new_scale: 28276.1325 > > $new_extent (bbox): 559142.913985 111078.53760395 563132.98830536 > 115068.61192431 > > we have a difference between what we asked and what we get of : > 28347 - 28276.1325 = 70.8675 which is 0.25% (this factor is constant for 400x400 > map at any scale, but it chages with different scale). > > This behaviour doesn't depend on the initial scale prior to the call of > zoomscale (in this example, the initial scale was 42414) > > Any idea on what is happening? > > Claude Philipona From steve.lime at dnr.state.mn.us Thu Sep 20 07:32:20 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 20 Sep 2001 09:32:20 -0500 Subject: [mapserver-users] Multiple Shapepaths? Message-ID: You're not the first to suggest this and I'll look into adding this support. In the meantime I suggest storing these temp shapefiles in a subdirectory in your main directory. Then just preface those layer data elements with temp/filename and treat permanent layers as normal. Note that you can have some layers with fullpath data defs and others that use shapepath. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephan Dunning 09/20/01 09:22AM >>> Is it possible to employ two separate shapepaths or mapfiles for one map with multiple layers, one for permanent shapes/layers and one for temporary shapes/layers to be purged daily? Each database query performed by a user on my app creates a dbf and ultimately a shapefile to use in mapserver, but I have writing these temp shapes to the same directory as my other permanent shapes. I'd like to store them separately in order to automatically purge the temp directory on a daily basis. Thoughts? Thanks, Stephan From morissette at dmsolutions.ca Thu Sep 20 07:35:12 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 20 Sep 2001 10:35:12 -0400 Subject: [mapserver-users] proj module for php with pj_transform ? References: <003101c141cd$42ac8c30$1500a8c0@bsa> Message-ID: <3BA9FEA0.50CAADE8@dmsolutions.ca> I filed this as an enhancement request in bugzilla... http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=47 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Claude Philipona wrote: > > There is the source for a proj module for php in the distribution of Mapserver. > We compiled it and use it to have forward and inverse porjection directly > available in PHP. > > In the new version of proj 4.4.3 there are some new fonctions allowing to make > datum shift and to transform from any coordinates (projection or geographic) > system to another one, with pj_transform. > > We know that these function are not implemented yet in the php module. As we are > not expert in building php module, we wanted to know if anybody is planning to > extend the php proj module with those fucntion? > > For now, I'm using the exec() function to call the system command cs2cs (command > using pj_transform). For example to translate from swiss grid to UTM 32N: > exec("cs2cs +init=epsg:9814 +to +init=epsg:32632 < \n" ,$cmd_result); > > Claude Philipona From morissette at dmsolutions.ca Thu Sep 20 07:38:05 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 20 Sep 2001 10:38:05 -0400 Subject: [mapserver-users] Multiple Shapepaths? References: Message-ID: <3BA9FF4D.647E38BD@dmsolutions.ca> Stephan Dunning wrote: > > Is it possible to employ two separate shapepaths or mapfiles for one map > with multiple layers, one for permanent shapes/layers and one for temporary > shapes/layers to be purged daily? > > Each database query performed by a user on my app creates a dbf and > ultimately a shapefile to use in mapserver, but I have writing these temp > shapes to the same directory as my other permanent shapes. I'd like to > store them separately in order to automatically purge the temp directory on > a daily basis. > It's possible... simply set an absolute path for the DATA value of the temporary shapefile layer and then the SHAPEPATH will be ignored for this layer. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jimburnett at ntelos.net Thu Sep 20 08:04:50 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Thu, 20 Sep 2001 11:04:50 -0400 Subject: [mapserver-users] Shape File Requirements Message-ID: <003e01c141e5$98867770$2f01a8c0@jbwin2000> What are the: *Minimum requirements in the map file and ... *Minimum requirements in the esri shape file to display a map? I am having problems with two specific shape files called contouers and the other is called southriver. They open up in Arc Explorer wit hno problems, but they wont worked with mapservre. I so currently have other shape files from the same source that work fine, such as parcel layers, roads and city limits. I've tried setting them up as lines, polylines, and all those, but still nothing. Thanks! -Jim- -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreag at crs4.it Thu Sep 20 08:31:10 2001 From: andreag at crs4.it (Andrea Giacomelli) Date: Thu, 20 Sep 2001 17:31:10 +0200 Subject: [mapserver-users] PHP mapscript: saveWebImage: an easy one Message-ID: <3BAA0BBE.30CA9D74@crs4.it> Sorry for coming back on these trivial 3.4->3.5 issues: I have setup a new 3.5 installation which I would like to test. This is the version installed: MapScript Version (Jul 20, 2001) MapServer version 3.5 (pre-alpha) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=SHAPEFILE message output: code used: $img = $map->draw(); $url = $img->saveWebImage(MS_GIF,0,0,0); printf("\n", $url, $map->width, $map->height); result: Warning: Wrong parameter count for savewebimage() in c:\data\htdocs/mia/testcrs4/test_draw_map.php on line 55 ....I have tried with variants (MS_PNG, numeric equivalents, changing number of parameters - even though I remember the documentation regarding the syntax changes in this method. ...what am I overlooking ? TIA and regards, -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia http://www.crs4.it/~andreag ========================================= Mailing address: Sesta Strada Ovest, Z.I. Macchiareddu C.P. 94 09010 Uta (CA) ITALY From sjohnston at satshot.com Thu Sep 20 04:12:36 2001 From: sjohnston at satshot.com (Shawn L Johnston) Date: Thu, 20 Sep 2001 11:12:36 +0000 (GMT) Subject: [mapserver-users] Multiple Shapepaths? In-Reply-To: Message-ID: On Thu, 20 Sep 2001, Stephan Dunning wrote: > Is it possible to employ two separate shapepaths or mapfiles for one map > with multiple layers, one for permanent shapes/layers and one for temporary > shapes/layers to be purged daily? Sure can. I beleive you want to use the 'DATA' tag in the Layer Object section to specify the path. What I've done is to set a root directory with the SHAPEPATH tag and then use the DATA tag to specify directorys under the root... so something like: /vectors | | ---/2000_vectors | | ---/2001_vectors And the mapfile would look something like: # Start of Mapfile NAME blah SHAPEPATH "/vectors/" ... LAYER NAME foo TYPE polyline DATA "2000_vectors/foo" ... > Each database query performed by a user on my app creates a dbf and > ultimately a shapefile to use in mapserver, but I have writing these temp > shapes to the same directory as my other permanent shapes. I'd like to > store them separately in order to automatically purge the temp directory on > a daily basis. > > Thoughts? I'm running an older version of mapserver, on the newer versions you might be able to even do without the SHAPEPATH and just list the full path to the shapefile for each layer. I think I tried to do this, but had some problems, but that was with 3.2.20. Cheers, Shawn From John.Arthur at voicestream.com Thu Sep 20 11:36:11 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Thu, 20 Sep 2001 11:36:11 -0700 Subject: [mapserver-users] proj module for php with pj_transform ? Message-ID: <987E5CD7052ED51198F400508BA25279089F08@vamerrifms01.gsm1900.org> First question: This may be a little off subject, but I have a Oracle database that stores Latitude/Longitude in NAD27 UTM. I would like to transform them to NAD83 Decimal on the fly for use in mapserver(and other things) using LCC cordinates. The biggest issue is the conversion of NAD27->NAD83. Will this be possible with pj_transform? Second question: Can I create a map layer with multiple points(point for each record) from a database on the fly with php-mapscript? Thank you for your time. John Arthur john.arthur at voicestream.com -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Thursday, September 20, 2001 10:35 AM To: claude.philipona at camptocamp.com Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] proj module for php with pj_transform ? I filed this as an enhancement request in bugzilla... http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=47 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Claude Philipona wrote: > > There is the source for a proj module for php in the distribution of Mapserver. > We compiled it and use it to have forward and inverse porjection directly > available in PHP. > > In the new version of proj 4.4.3 there are some new fonctions allowing to make > datum shift and to transform from any coordinates (projection or geographic) > system to another one, with pj_transform. > > We know that these function are not implemented yet in the php module. As we are > not expert in building php module, we wanted to know if anybody is planning to > extend the php proj module with those fucntion? > > For now, I'm using the exec() function to call the system command cs2cs (command > using pj_transform). For example to translate from swiss grid to UTM 32N: > exec("cs2cs +init=epsg:9814 +to +init=epsg:32632 < \n" ,$cmd_result); > > Claude Philipona From teb at mallit.fr.umn.edu Thu Sep 20 12:31:11 2001 From: teb at mallit.fr.umn.edu (teb) Date: Thu, 20 Sep 2001 14:31:11 -0500 (CDT) Subject: [mapserver-users] WMS Layers and Grouping (FWD) Message-ID: <200109201931.OAA04105@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Wed, 19 Sep 2001 16:16:00 -0700 From: Paul Ramsey X-Accept-Language: en,pdf MIME-Version: 1.0 To: mapserver-info at lists.gis.umn.edu Subject: WMS Layers and Grouping Content-Transfer-Encoding: 7bit There are a couple issues around the translation from a mapserver map file and the WMS capabilities file which I am wondering about: - The WMS Capabilities includes the ability to "nest" layers, such that one could have a description like this: Water Features water Rivers rivs Lakes lks This would be kind of cool to be able to do. Using the mapserver 'group' idea to implement this is possible. However, I have another question regarding 'group', and it goes like this: - Oftentimes, people will use the mapserver 'group' to provide one "virtual" layer made out of a whole bunch of scale-dependant layers. So, you have a group 'roads' which consists of 1:6Million roads at full extent, 1:250K roads partway in, and 1:20K roads at max zoom. Right now, mapservers WMS will report all the constituent layers of this virtual layer in the Capabilities file, like this: roads_6M roads_250K roads_20K When really, as a map publisher I would prefer to just expost the thing as one virtual layer, thusly: Roads So, two different problems, but I do not have a clean solution in my head in terms of mapping file syntax, to allow these kinds of WMS constructions from a map file. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Thu Sep 20 12:31:44 2001 From: teb at mallit.fr.umn.edu (teb) Date: Thu, 20 Sep 2001 14:31:44 -0500 (CDT) Subject: [mapserver-users] Help with perl and mapserver (FWD) Message-ID: <200109201931.OAA04110@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: teqnate at attglobal.net Date: Thu, 20 Sep 2001 13:25:50 -0600 X-Accept-Language: en MIME-Version: 1.0 To: mapserver-info at lists.gis.umn.edu Subject: Help with perl and mapserver Content-Transfer-Encoding: 7bit I have 3 questions to ask the mapserver community. Can anyone tell me how to get perl to work with mapserver on a windows NT machine? 2. Do I have to compile the mapserver with secial commands. 3. If so, what are they and where do I put them. Thank you in advance for taking the time to help me out. Nathan Holbrook ------------- End Forwarded Message ------------- From bfischer at mpls.houstoneng.com Thu Sep 20 14:53:56 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Thu, 20 Sep 2001 16:53:56 -0500 Subject: [mapserver-users] Help with perl and mapserver (FWD) Message-ID: <8879CCE0F0187742B7302A93A8B87B0902981E@mpls.houstoneng.com> Nathan, I will try to answer your questions to the best of my knowledge. 1.) There is only one person I know of that has successfully installed the Perl version of MapScript on a Windows machine. Here is a link to the message posted to the list: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/htm l/0105/msg00183.html Most users that want to use MapScript on a Windows machine seem to use DM Solution's PHP MapScript. There is a gentleman from the University of Kansas also trying to produce a COM version of MapScript. I have also seen a few other postings of users compiling MapScript for Java and Python. 2.) You do not need to compile MapServer if you want to use the CGI program and MapScript for PHP. There are already compiled versions of MapServer and MapScript that certain groups maintain for download. http://mapserver.gis.umn.edu/win32binaries.html http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_dl.html Brian -----Original Message----- From: teb [mailto:teb at mallit.fr.umn.edu] Sent: Thursday, September 20, 2001 2:32 PM To: mapserver-users at lists.gis.umn.edu Cc: teqnate at attglobal.net Subject: [mapserver-users] Help with perl and mapserver (FWD) ------------- Begin Forwarded Message ------------- From: teqnate at attglobal.net Date: Thu, 20 Sep 2001 13:25:50 -0600 X-Accept-Language: en MIME-Version: 1.0 To: mapserver-info at lists.gis.umn.edu Subject: Help with perl and mapserver Content-Transfer-Encoding: 7bit I have 3 questions to ask the mapserver community. Can anyone tell me how to get perl to work with mapserver on a windows NT machine? 2. Do I have to compile the mapserver with secial commands. 3. If so, what are they and where do I put them. Thank you in advance for taking the time to help me out. Nathan Holbrook ------------- End Forwarded Message ------------- From morissette at dmsolutions.ca Thu Sep 20 15:05:43 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 20 Sep 2001 18:05:43 -0400 Subject: [mapserver-users] WMS Layers and Grouping (FWD) References: <200109201931.OAA04105@mallit.fr.umn.edu> Message-ID: <3BAA6837.EDE26D1A@dmsolutions.ca> Paul Ramsey wrote: > > - The WMS Capabilities includes the ability to "nest" layers, such that > one could have a description like this: > > Water Features > water > > Rivers > rivs > > > Lakes > lks > > > > This would be kind of cool to be able to do. Using the mapserver > 'group' idea to implement this is possible. However, I have another > question regarding 'group', and it goes like this: > Agreed, this was already filed as a enhancementt: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=12 > - Oftentimes, people will use the mapserver 'group' to provide one > "virtual" layer made out of a whole bunch of scale-dependant layers. > So, you have a group 'roads' which consists of 1:6Million roads > at full extent, 1:250K roads partway in, and 1:20K roads at max > zoom. Right now, mapservers WMS will report all the constituent > layers of this virtual layer in the Capabilities file, like > this: > > > roads_6M > > > roads_250K > > > roads_20K > > > When really, as a map publisher I would prefer to just expost > the thing as one virtual layer, thusly: > > > Roads > > > So, two different problems, but I do not have a clean solution in my > head in terms of mapping file syntax, to allow these kinds of WMS > constructions from a map file. > I agree with your suggestion... in this case the group discussed earlier would do the trick since it would group under a top-level "Roads" layer all the scale-specific Roads layers and would still give access to the individual layers. However I see why you may not want individual layers to be visible. There are a few ways that we could handle this: 1- We could have a "wms_hidden" metadata... if it is set then the layer is not visible in the WMS capabilities. We would have to define how this works in combination with the grouping described above. 2- Right now, if 2 layers have the same name then MapServer's WMS interface will try to give them unique names in the capabilities by appending a number to the individual layer names (i.e. if your mapfile contains 3 layers with name "roads" then the capabilities will return roads_1, roads_2, roads_3) We could modify the interface so that it is legal to have layers with identical names, and then only the first one with that name is shown in the capabilities, the other ones are automatically hidden. All layers with the same name would be turned on automatically in a getMap request if that layer name is requested. I had to write this quickly...maybe it won't make much sense when you read it? Anyway, if you (and the other users) like one of those options then you might want to file a enhancement request in bugzilla. Best Regards, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From trem at socialchange.net.au Thu Sep 20 19:33:24 2001 From: trem at socialchange.net.au (trem) Date: Fri, 21 Sep 2001 12:33:24 +1000 Subject: [mapserver-users] EPSG code for LCC in meters Message-ID: <3BAAA6F3.F53F0339@socialchange.net.au> Hi all, I was wondering if anyone could provide a quick answer to this question. I have a input projection in Lambert Conformal (seems to be in meters, not dd). The area of the image is in NSW, Australia. I had a look at the EPSG codes for use in mapserv 3.5 but couldn't see the relevant code. Is there one available? If not and I need to reference it in the old type format, ie. PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" END What would the syntax be? What do I need to replace the dd with (just meters?) Cheers, Trem -- Application Developer Address: 248 Johnston St Annandale NSW 2038 Phone: (02) 9692 5100 | Fax: (02) 9692 5192 Mobile: 0404 075196 Email: trem at socialchange.net.au Website: http://online.socialchange.net.au/ From trem at socialchange.net.au Thu Sep 20 19:59:06 2001 From: trem at socialchange.net.au (trem) Date: Fri, 21 Sep 2001 12:59:06 +1000 Subject: [mapserver-users] Additional query to LCC projection in mapserv35 Message-ID: <3BAAACF9.33701761@socialchange.net.au> Hi, I tried to use gdaltindex to create a shape file for a tif with a tfw file. It has worked fine prviously with other projections, but now I get errors when trying to use a world file in lcc (meters) format. 470.6057581861 0.0000000000 0.0000000000 -470.6373040371 -610434.9324385989 476763.6099834632 The error I get is: bash-2.04$ gdaltindex -tileindex farwest farwest.shp farwest* ERROR 4: `farwestlzw.tfw' not recognised as a supported file format. Unable to open farwestlzw.tfw, skipping. Is this type of projection available currently. If not are there any solutions to get around this problem? (ie. would it be better to have dd rather than meters?) Cheers, Trem -- Application Developer Address: 248 Johnston St Annandale NSW 2038 Phone: (02) 9692 5100 | Fax: (02) 9692 5192 Mobile: 0404 075196 Email: trem at socialchange.net.au Website: http://online.socialchange.net.au/ From rob at socialchange.net.au Thu Sep 20 22:22:35 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Fri, 21 Sep 2001 15:22:35 +1000 Subject: [mapserver-users] WMS Layers and Grouping (FWD) References: <200109201931.OAA04105@mallit.fr.umn.edu> <3BAA6837.EDE26D1A@dmsolutions.ca> Message-ID: <3BAACE9B.CC72B098@socialchange.net.au> Not such a problem: If a layer has a it can be addressed as a layer - and will include all the sub-layers. A Layer may have a but no <Name> - in which case it is not allowed to be accessed directly, but can be used as a template and also as a grouping title in legends. I think this addresses all the issues, and yes - it would be way cool implement this automatically. Rob Daniel Morissette wrote: > Paul Ramsey wrote: > > > > - The WMS Capabilities includes the ability to "nest" layers, such that > > one could have a description like this: > > <Layer> > > <Title>Water Features > > water > > > > Rivers > > rivs > > > > > > Lakes > > lks > > > > > > > > This would be kind of cool to be able to do. Using the mapserver > > 'group' idea to implement this is possible. However, I have another > > question regarding 'group', and it goes like this: > > > > Agreed, this was already filed as a enhancementt: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=12 > > > - Oftentimes, people will use the mapserver 'group' to provide one > > "virtual" layer made out of a whole bunch of scale-dependant layers. > > So, you have a group 'roads' which consists of 1:6Million roads > > at full extent, 1:250K roads partway in, and 1:20K roads at max > > zoom. Right now, mapservers WMS will report all the constituent > > layers of this virtual layer in the Capabilities file, like > > this: > > > > > > roads_6M > > > > > > roads_250K > > > > > > roads_20K > > > > > > When really, as a map publisher I would prefer to just expost > > the thing as one virtual layer, thusly: > > > > > > Roads > > > > > > So, two different problems, but I do not have a clean solution in my > > head in terms of mapping file syntax, to allow these kinds of WMS > > constructions from a map file. > > > > I agree with your suggestion... in this case the group discussed earlier > would do the trick since it would group under a top-level "Roads" layer > all the scale-specific Roads layers and would still give access to the > individual layers. > > However I see why you may not want individual layers to be visible. > There are a few ways that we could handle this: > > 1- We could have a "wms_hidden" metadata... if it is set then the layer > is not visible in the WMS capabilities. We would have to define how > this works in combination with the grouping described above. > > 2- Right now, if 2 layers have the same name then MapServer's WMS > interface will try to give them unique names in the capabilities by > appending a number to the individual layer names (i.e. if your mapfile > contains 3 layers with name "roads" then the capabilities will return > roads_1, roads_2, roads_3) > > We could modify the interface so that it is legal to have layers with > identical names, and then only the first one with that name is shown in > the capabilities, the other ones are automatically hidden. All layers > with the same name would be turned on automatically in a getMap request > if that layer name is requested. > > I had to write this quickly...maybe it won't make much sense when you > read it? Anyway, if you (and the other users) like one of those options > then you might want to file a enhancement request in bugzilla. > > Best Regards, > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From AWOOLEY at mountainland.org Fri Sep 21 04:53:09 2001 From: AWOOLEY at mountainland.org (ANDREW WOOLEY) Date: Fri, 21 Sep 2001 05:53:09 -0600 Subject: [mapserver-users] QueryByPoint Message-ID: Folks, I received this reply to my initial query and I have yet to receive any answer. Does anyone have an idea why some of my shapefiles will work with a query and some won't? I have line themes that seem to always work, but for some reason polygon features don't work. I have a shapefile that is parcels and it will only return results on the very largest parcels i.e. >100 acres. However, I have parks polygons and can't seem to even get results on any of them. I can query point features, but if I convert my polygons to points and try that, using the very same LAYER def. and just changing the DATA to point to the new one and it doesn't work. It is very, very frustrating. Does anyone have any insight about this? Sorry for my difficulty in explaining, but it seems to be strange behavior. I tried to get the latest nightly build (I need 3.5) and it won't compile (as of yesterday afternoon). Thanks for any good suggestions. Andrew >>> toni hern?ndez 09/21 12:35 AM >>> Hi Andrew, I have the same problem you have and no idea how to solve it. I am starting to think that maybe it is no way to make it work properly. Anywat, did anyone tell you something. Thanks. ----- Original Message ----- From: ANDREW WOOLEY To: Sent: Wednesday, September 19, 2001 12:27 AM Subject: [mapserver-users] QueryByPoint > Folks, > > I apologize if this has been asked before, but I can't seem to find any thing about it on the archives. > > For some of my themes, the query works just fine. However, for others, it doesn't work at all. I have tried many different things to get it to work, but I can't understand the problem. I have copied the mapfile layer definitions for one that works and just change the data pointer and it won't work. I have tried lots of combinations and I have discovered that - for one theme - if I click on very large polygons, it works, but anything very small will not work. The same holds true with lines - larger lines work - smaller ones don't. Does this make any sense to anyone? I just can't figure it out. I have adjusted my tolerance from 1 to 1000 and many places in between, but no avail. > > Any suggestions would be appreciated. > > Andrew From morissette at dmsolutions.ca Fri Sep 21 07:51:22 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 21 Sep 2001 10:51:22 -0400 Subject: [mapserver-users] QueryByPoint References: Message-ID: <3BAB53EA.5F6A7C87@dmsolutions.ca> ANDREW WOOLEY wrote: > > I received this reply to my initial query and I have yet to receive any answer. Does anyone have an idea why some of my shapefiles will work with a query and some won't? I have line themes that seem to always work, but for some reason polygon features don't work. I have a shapefile that is parcels and it will only return results on the very largest parcels i.e. >100 acres. However, I have parks polygons and can't seem to even get results on any of them. I can query point features, but if I convert my polygons to points and try that, using the very same LAYER def. and just changing the DATA to point to the new one and it doesn't work. It is very, very frustrating. Does anyone have any insight about this? > > Sorry for my difficulty in explaining, but it seems to be strange behavior. I tried to get the latest nightly build (I need 3.5) and it won't compile (as of yesterday afternoon). Thanks for any good suggestions. > Andrew, Toni, Could one of you please file this in bugzilla and provide a small mapfile and test dataset that reproduces the problem. Having an easy way to reproduce the problem would help us a lot in helping you. About yesterday's compilation problem, it is resolved in today's CVS. Make sure you rerun configure then 'make clean' and 'make'. Thanks, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From AWOOLEY at mountainland.org Fri Sep 21 10:23:22 2001 From: AWOOLEY at mountainland.org (ANDREW WOOLEY) Date: Fri, 21 Sep 2001 11:23:22 -0600 Subject: [mapserver-users] QueryByPoint Message-ID: OK. Thanks for all the help. I found some errors in my code and checked out the new version from CVS and all is healed. It works just fine now. Thanks for bearing with me and for your assistance. Andrew >>> Daniel Morissette 09/21 8:51 AM >>> ANDREW WOOLEY wrote: > > I received this reply to my initial query and I have yet to receive any answer. Does anyone have an idea why some of my shapefiles will work with a query and some won't? I have line themes that seem to always work, but for some reason polygon features don't work. I have a shapefile that is parcels and it will only return results on the very largest parcels i.e. >100 acres. However, I have parks polygons and can't seem to even get results on any of them. I can query point features, but if I convert my polygons to points and try that, using the very same LAYER def. and just changing the DATA to point to the new one and it doesn't work. It is very, very frustrating. Does anyone have any insight about this? > > Sorry for my difficulty in explaining, but it seems to be strange behavior. I tried to get the latest nightly build (I need 3.5) and it won't compile (as of yesterday afternoon). Thanks for any good suggestions. > Andrew, Toni, Could one of you please file this in bugzilla and provide a small mapfile and test dataset that reproduces the problem. Having an easy way to reproduce the problem would help us a lot in helping you. About yesterday's compilation problem, it is resolved in today's CVS. Make sure you rerun configure then 'make clean' and 'make'. Thanks, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jimburnett at ntelos.net Fri Sep 21 10:37:03 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Fri, 21 Sep 2001 13:37:03 -0400 Subject: [mapserver-users] Dynamic Extensions Message-ID: <001301c142c4$0696bd90$2f01a8c0@jbwin2000> Can mapscript be loaded as a Dynamic Extension? -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From imap at chesapeake.net Sat Sep 22 00:16:49 2001 From: imap at chesapeake.net (imap at chesapeake.net) Date: Sat, 22 Sep 2001 03:16:49 -0400 Subject: [mapserver-users] 3.5 mapscript problem References: Message-ID: <3BAC3AE1.5AD92976@chesapeake.net> Steve, With regard to mapscript querys in 3.5 In one of your emails earlier in the year, you said that you need: No. A layer is queryable if it is: - ON, either explicitly via a form or has STATUS DEFAULT or QUERYONLY and - has a QUERY object with a TEMPLATE defined. Seems like in my first mapfile definition: > LAYER > NAME ctyindex > TYPE QUERY > STATUS ON > DATA "ctyindex" > TEMPLATE dummy > END is missing the QUERY TEMPLATE dummy END and 3.5 errors out when this is included in the layer. When it is removed, the query does not work and yeilds "No matching record(s) found." Likewise, in 3.3, removing those same lines produces the same error, so I suspect the layer has no QUERY object. Anyway I got my 3.3 and 3.5 mapscript co-existing, and the 3.3 query scripts seems to be working OK. I also tried changing the mapfile as you suggest with TYPE LINE, but that didn't have any effect. If I set STATUS QUERYONLY in the mapfile, 3.5 gives me getSymbol(): Symbol definition error. (QUERYONLY):(11) Looking at the docs, specifically the 3.5 Mapfile reference, the Query Object section is gone. I am just trying to figure out what is going on with QUERY. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc (410)257-3187 Stephen Lime wrote: > > Your first layer def is fine, I may have screwed up and am not recognizing > "TYPE QUERY" properly. In your case the TYPE is irrelevant since queries > operate on the real type of the data rather than the display type. Try setting > TYPE to LINE and see if that works. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> 09/21/01 01:54AM >>> > > with LAYER, needs a QUERY object/directive and a TEMPLATE > for the query to succeed, otherwise nothing is found. > It current looks like this: > > LAYER > NAME ctyindex > TYPE QUERY > STATUS ON > DATA "ctyindex" > TEMPLATE dummy > END > > gives me nothing back: > > Fri Sep 21 02:32:36 2001 - msQueryByRect(): Search returned no results. No > matching record(s) found. > > If I embed a QUERY object in the layer: > > LAYER > NAME ctyindex > TYPE QUERY > STATUS ON > DATA "ctyindex" > QUERY > TEMPLATE dummy > END > END > > 3.5 complains with > > Fri Sep 21 02:48:29 2001 - loadLayer(): Unknown identifier. (QUERY):(13) > > There may be a fix in the mapfile that I am not aware of... , If it smells > like a bug let me know and I will post to bugzilla. > > Regards, > > Chris From pnaciona at gis.umn.edu Sat Sep 22 00:31:27 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Sat, 22 Sep 2001 02:31:27 -0500 Subject: [mapserver-users] QueryByPoint In-Reply-To: Message-ID: Andrew, Toni, Could it be a topology or region problem? I'm out of the country right now so I can't provide detailed answers (don't have ArcView with me). If you are using ArcView, download the XTools extension from the ESRI users scripts page. Or just search for XTools on Google. XTools has a tool that can "flatten" you polygon layers. That would be my guess on your problem. Good luck! Perry Pericles S. Nacionales Research Assistant GIS and Remote Sensing Lab Department of Forest Resources University of Minnesota (612) 624-3459 pnaciona at gis.umn.edu On Fri, 21 Sep 2001, ANDREW WOOLEY wrote: > Folks, > > I received this reply to my initial query and I have yet to receive any answer. Does anyone have an idea why some of my shapefiles will work with a query and some won't? I have line themes that seem to always work, but for some reason polygon features don't work. I have a shapefile that is parcels and it will only return results on the very largest parcels i.e. >100 acres. However, I have parks polygons and can't seem to even get results on any of them. I can query point features, but if I convert my polygons to points and try that, using the very same LAYER def. and just changing the DATA to point to the new one and it doesn't work. It is very, very frustrating. Does anyone have any insight about this? > > Sorry for my difficulty in explaining, but it seems to be strange behavior. I tried to get the latest nightly build (I need 3.5) and it won't compile (as of yesterday afternoon). Thanks for any good suggestions. > > Andrew > > >>> toni hern?ndez 09/21 12:35 AM >>> > Hi Andrew, > > I have the same problem you have and no idea how to solve it. I am starting > to think that maybe it is no way to make it work properly. > > Anywat, did anyone tell you something. > > Thanks. > > ----- Original Message ----- > From: ANDREW WOOLEY > To: > Sent: Wednesday, September 19, 2001 12:27 AM > Subject: [mapserver-users] QueryByPoint > > > > Folks, > > > > I apologize if this has been asked before, but I can't seem to find any > thing about it on the archives. > > > > For some of my themes, the query works just fine. However, for others, it > doesn't work at all. I have tried many different things to get it to work, > but I can't understand the problem. I have copied the mapfile layer > definitions for one that works and just change the data pointer and it won't > work. I have tried lots of combinations and I have discovered that - for > one theme - if I click on very large polygons, it works, but anything very > small will not work. The same holds true with lines - larger lines work - > smaller ones don't. Does this make any sense to anyone? I just can't figure > it out. I have adjusted my tolerance from 1 to 1000 and many places in > between, but no avail. > > > > Any suggestions would be appreciated. > > > > Andrew > > From teb at mallit.fr.umn.edu Sat Sep 22 09:14:10 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Sat, 22 Sep 2001 11:14:10 -0500 (CDT) Subject: [mapserver-users] =?iso-8859-1?Q?Postgis=2Bshapefile?= (fwd) Message-ID: <200109221614.LAA05297@mallit.fr.umn.edu> From gispmpf at zipmail.com.br Fri Sep 21 23:16:12 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Sat, 22 Sep 2001 03:16:12 -0300 Subject: =?iso-8859-1?Q?Postgis=2Bshapefile?= Message-ID: <3BA7824200007FC1@www.zipmail.com.br> I'm a new user of mapserver and i have some questions: 1)How can i get a map file and a symbol file from a shapefile? 2)I heard that: i can use te postgreSQL extension PostGis to draw maps from the database how can i generate a map and a symbol file for this maps? 3) I have to convert my dxf files on shapefiles to use them with mapserver? 4) Where can i get informations about how to generate a map and a symbol file? Thanks Jo?o Mario L Brezolin GIS/Analyst ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From mapserver at hotmail.com Sun Sep 23 15:47:12 2001 From: mapserver at hotmail.com (=?iso-8859-1?B?RGllZ28gSi4gUGFkcvNuIFAu?=) Date: Sun, 23 Sep 2001 22:47:12 +0000 Subject: [mapserver-users] Error Compile nightly Message-ID: Greetings I try to compile mapserver nightly in I modulate php/mapscrip for Linux Mandrake 8.0 with the sigiuiente instruction: ./configure --with-gd=../gd-1.8.4 --with-php=/usr/include/php --with -apxs=/usr/sbin/apxs --with-apache=/usr/include/apache --with-proj=/usr/local/ --with-ogr=../gdal-1.1.5/ogr/ --with-gdal=../gdal-1.1.5/ --with-tiff=../tiff-v3.5.6-beta and the following error is generated: ./libmap.a(mapraster.o): In function `drawGDAL': mapraster.o(.text+0x431): undefined reference to `GDALGetRasterXSize' mapraster.o(.text+0x441): undefined reference to `GDALGetRasterYSize' mapraster.o(.text+0x459): undefined reference to `GDALGetGeoTransform' mapraster.o(.text+0x470): undefined reference to `GDALGetDescription' mapraster.o(.text+0x478): undefined reference to `GDALReadWorldFile' mapraster.o(.text+0x7b7): undefined reference to `GDALGetRasterXSize' mapraster.o(.text+0x81b): undefined reference to `GDALGetRasterXSize' mapraster.o(.text+0x895): undefined reference to `GDALGetRasterYSize' mapraster.o(.text+0x8fa): undefined reference to `GDALGetRasterYSize' mapraster.o(.text+0xad2): undefined reference to `GDALGetRasterBand' mapraster.o(.text+0xaf6): undefined reference to `GDALGetRasterCount' mapraster.o(.text+0xb11): undefined reference to `GDALGetRasterColorTable' mapraster.o(.text+0xb2f): undefined reference to `GDALGetRasterBand' mapraster.o(.text+0xb42): undefined reference to `GDALGetRasterBand' mapraster.o(.text+0xb55): undefined reference to `GDALGetRasterBand' mapraster.o(.text+0xb91): undefined reference to `GDALGetRasterColorTable' mapraster.o(.text+0xba7): undefined reference to `GDALCloneColorTable' mapraster.o(.text+0xbce): undefined reference to `GDALCreateColorTable' mapraster.o(.text+0xc20): undefined reference to `GDALSetColorEntry' mapraster.o(.text+0xc9c): undefined reference to `GDALGetColorEntryAsRGB' mapraster.o(.text+0xd09): undefined reference to `GDALGetColorEntryCount' mapraster.o(.text+0xd49): undefined reference to `GDALGetColorEntryAsRGB' mapraster.o(.text+0xda6): undefined reference to `GDALGetColorEntryCount' mapraster.o(.text+0xe35): undefined reference to `GDALRasterIO' mapraster.o(.text+0xf38): undefined reference to `GDALRasterIO' mapraster.o(.text+0xfa1): undefined reference to `GDALRasterIO' mapraster.o(.text+0x10f2): undefined reference to `GDALDestroyColorTable' ./libmap.a(mapraster.o): In function `msDrawRasterLayer': mapraster.o(.text+0x44bb): undefined reference to `GDALAllRegister' mapraster.o(.text+0x44e5): undefined reference to `GDALOpen' mapraster.o(.text+0x4524): undefined reference to `GDALGetProjectionRef' mapraster.o(.text+0x4568): undefined reference to `GDALGetGeoTransform' mapraster.o(.text+0x4582): undefined reference to `GDALReadWorldFile' mapraster.o(.text+0x4639): undefined reference to `GDALClose' ./libmap.a(mapresample.o): In function `msResampleGDALToMap': mapresample.o(.text+0xae6): undefined reference to `GDALGetGeoTransform' mapresample.o(.text+0xaf9): undefined reference to `GDALGetDescription' mapresample.o(.text+0xb10): undefined reference to `GDALGetDescription' mapresample.o(.text+0xb18): undefined reference to `GDALReadWorldFile' mapresample.o(.text+0xb27): undefined reference to `GDALGetRasterXSize' mapresample.o(.text+0xb33): undefined reference to `GDALGetRasterYSize' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Please if somebody can help me to solve this problem. Thank you for the help.. Diego J. Padr?n _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From warmerdam at pobox.com Sun Sep 23 19:45:26 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Sun, 23 Sep 2001 22:45:26 -0400 Subject: [mapserver-users] Error Compile nightly References: Message-ID: <3BAE9E46.2010305@pobox.com> Diego J. Padr?n P. wrote: > Greetings > > I try to compile mapserver nightly in I modulate php/mapscrip for Linux > Mandrake 8.0 with the sigiuiente instruction: > > ./configure --with-gd=../gd-1.8.4 --with-php=/usr/include/php --with > -apxs=/usr/sbin/apxs --with-apache=/usr/include/apache > --with-proj=/usr/local/ --with-ogr=../gdal-1.1.5/ogr/ > --with-gdal=../gdal-1.1.5/ --with-tiff=../tiff-v3.5.6-beta > Diego, Plase configure with "--with-ogr=../gdal-1.1.5/apps/gdal-config --with-gdal". The argument to the --with-ogr and --with-gdal options should be the path to the config program, not the root of the tree. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From j1mmm at hotmail.com Sun Sep 23 23:57:50 2001 From: j1mmm at hotmail.com (j1mmm) Date: Mon, 24 Sep 2001 13:57:50 +0700 Subject: [mapserver-users] compile with TIFF Message-ID: I want to compile MapServer to read TIFF. I already have tiff-v3.5.5.zip But after compiled, i got mapserv.exe, no TIFF effect, there is no different like it doesn't compile it. Do i have to configure anything else??? Thank for all help j1mmm j1mmm at hotmail.com these are my makefile. ====ms35gif_nightly.zip --> Makefile.vc========= # # makefile.vc - Main MapServer makefile for MSVC++ # # This VC++ makefile will build MAPSERVER.LIB, MAPSERV.EXE, and the other # MapServer command-line programs. # # To use the makefile: # - Open a DOS prompt window # - Run the VCVARS32.BAT script to initialize the VC++ environment variables # - Start the build with: nmake /f makefile.vc # # $Id: Makefile.vc,v 1.12 2001/08/23 15:22:29 dan Exp $ # #OPTFLAGS = /nologo /Zi /W3 /DDEBUG OPTFLAGS = /nologo /Zi BASE_CFLAGS = $(OPTFLAGS) LDFLAGS = /NODEFAULTLIB:libcd CC= cl LINK= link # # If you want to ignore missing datafile errors uncomment the following # line. This is especially useful with large tiled datasets that may not # have complete data for each tile. # #IGNORE_MISSING_DATA=-DIGNORE_MISSING_DATA # # Apparently these aren't as commonplace as I'd hoped. Edit the # following line to reflect the missing functions on your platform. # #STRINGS=-DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRDUP STRINGS=-DNEED_STRCASECMP -DNEED_STRNCASECMP # Proj.4 distribution (cartographic projection routines). Not required for normal use. (EXPERIMENTAL) PROJ_LIB=./proj/src/proj.lib PROJ_INC=-I ./proj/src PROJ=-DUSE_PROJ #Use this flag to compile with WMS support WMS=-DUSE_WMS # GD distribution (graphics library GIF and/or PNG support). (REQUIRED) # # - Version 1.2 is included and writes LZW GIF (-DUSE_GD_GIF -DUSE_GD_SWAP_XY). # - Versions 1.3 to 1.5 write non-LZW GIF (-DUSE_GD_GIF). # - Versions 1.6 and greater write PNG (-DUSE_GD_PNG). Add -lpng -lz to GD_LIB line. # - Versions 1.8 (or was it 1.7?) also supports JPEG and WBMP (-DUSE_GD_JPEG -DUSE_GD_WBMP) # # The following lines will compile GD 1.2: #GDFONT_OBJ= gd-1.2/gdfontt.obj gd-1.2/gdfonts.obj gd-1.2/gdfontmb.obj \ # gd-1.2/gdfontl.obj gd-1.2/gdfontg.obj #GD_INC= -I./gd-1.2 #GD_LIB= gd-1.2/gd.lib #GD= -DUSE_GD_GIF -DUSE_GD_SWAP_XY #MAKE_GD=gd # A patched version of GD that supports GIF, JPEG, PNG and WBMP can be # downloaded from http://www.rime.com.au/gd/. # The following defns will include the patched GD 1.8.4 with TTF: GDFONT_OBJ= GD_INC= -I ./gd-1.8.4 GD_LIB= ./gd-1.8.4/gd.lib ./jpeg/libjpeg.lib ./libpng/projects/msvc/win32/libpng/dll/libpng.lib \ ./zlib/release/zlib.lib ./freetype/lib/freetype200b8.lib GD= -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF \ -DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR MAKE_GD=gd # TIFF distribution (raster support for TIFF and GEOTIFF imagery).(RECOMMENDED) TIFF_INC=-I./tiff/libtiff TIFF_LIB=./tiff/libtiff/libtiff.lib TIFF=-DUSE_TIFF # JPEG distribution (raster support for grayscale JPEG images, INPUT ONLY). JPEG_INC=-I./jpeg JPEG_LIB=./jpeg/libjpeg.lib JPEG=-DUSE_JPEG # EPPL7 Support (this activates ERDAS as well) Included in the distribution. Probably the best raster alternative if # you've got EPPL7 laying around. See http://www.lmic.state.mn.us/ for more information. (RECOMMENDED) #EPPL=-DUSE_EPPL #EPPL_OBJ=epplib.obj # OGR Support OGC Simple Feature inspired interface for vector # formats. See http://gdal.velocet.ca/projects/opengis/ GDAL_DIR= .\gdal OGR=-DUSE_OGR OGR_LIB = $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts.lib $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib $(GDAL_DIR)/ogr/ogr.lib $(GDAL_DIR)/ogr/../port/cpl.lib OGR_INC = -I$(GDAL_DIR)/ogr/ogrsf_frmts -I$(GDAL_DIR)/ogr -I$(GDAL_DIR)/ogr/../port # ESRI SDE support. SDE_OPT=-DUSE_SDE SDE_INC=-I C:\arcexe80\arcsde\sqlexe\include SDE_LIB=C:\arcexe80\arcsde\sqlexe\lib\sde80.lib C:\arcexe80\arcsde\sqlexe\lib\sg80.lib C:\arcexe80\arcsde\sqlexe\lib\pe80.lib # # UofMN GIS/Image Processing Extension (very experimental) # #EGIS=-DUSE_EGIS #ERR_OBJ=./errLog/errLog.o #ERR_INC=-I./errLog #ERR_LIB=-L./errLog -lerrLog #IMGGEN_OBJ=./imgSrc/imgLib.o #IMGGEN_INC=-I./imgSrc #IMGGEN_LIB=-L./imgSrc -limgGEN # # VC++ does not include the REGEX library... so we must provide our one. # The following definitions will try to build GNU regex-0.12 located in the # regex-0.12 sub-directory. # If it was not included in the source distribution, then you can get it from: # ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz # REGEX_OBJ= .\regex\regex.obj REGEX_INC=-I ./regex # # IMPORTANT NOTE ABOUT REGEX FOR PHP_MAPSCRIPT USERS: # # If you want to compile the PHP_MAPSCRIPT module, then you have to make # MapServer uses the same version of the REGEX library that PHP was # compiled with: # #PHP_REGEX=..\php-3.0.14\regex #PHP_REGEX=..\php-4.0.6\regex #REGEX_OBJ=$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \ # $(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj #REGEX_INC=-I$(PHP_REGEX) -DPHP_NO_ALIASES # # REGEX needs some special flags... here they are for VC++ 6.0 # REGEX_OPT=-DHAVE_STRING_H -DREGEX_MALLOC # # --- You shouldn't have to edit anything else. --- # # # Main MapServer library. # MS_LIB = mapserver.lib MS_OBJS = mapbits.obj maphash.obj mapshape.obj mapxbase.obj \ mapparser.obj maplexer.obj mapindex.obj maptree.obj \ mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj \ maplegend.obj maputil.obj mapscale.obj mapquery.obj \ maplabel.obj maperror.obj mapprimitive.obj mapproject.obj\ mapraster.obj cgiutil.obj mapsde.obj mapogr.obj \ mappostgis.obj maplayer.obj mapresample.obj mapwms.obj \ mapwmslayer.obj mapgml.obj\ $(EPPL_OBJ) $(REGEX_OBJ) MS_HDRS = map.h mapfile.h MS_EXE = mapserv.exe shp2img.exe legend.exe \ shptree.exe scalebar.exe sortshp.exe tile4ms.exe # # # LIBS = $(MS_LIB) $(GD_LIB) $(TIFF_LIB) $(JPEG_LIB) $(SDE_LIB)\ $(PROJ_LIB) $(ERR_LIB) $(IMGGEN_LIB) $(OGR_LIB) INCLUDES = $(GD_INC) $(TIFF_INC) $(JPEG_INC) $(SDE_INC)\ $(PROJ_INC) $(ERR_INC) $(IMGGEN_INC) $(REGEX_INC) $(OGR_INC) CFLAGS = $(BASE_CFLAGS) $(INCLUDES) $(REGEX_OPT) $(STRINGS) $(SDE_OPT) \ $(EPPL) $(PROJ) $(TIFF) $(JPEG) $(GD) $(OGR) $(WMS) default: all all: $(MAKE_GD) $(MS_LIB) $(MS_EXE) $(MS_OBJS): $(MS_HDRS) $(MS_LIB): $(MS_OBJS) copy $(GDAL_DIR)\gdal.pdb . lib /out:$(MS_LIB) $(MS_OBJS) $(MS_EXE): $(LIBS) gd:: cd gd-1.8.4 nmake /f makefile.nt gd.lib OPTFLAGS="$(OPTFLAGS)" cd .. .c.obj: $(CC) $(CFLAGS) /c $*.c /Fo$*.obj .cpp.obj: $(CC) $(CFLAGS) /c $*.cpp /Fo$*.obj .c.exe: $(CC) $(CFLAGS) /c $*.c /Fo$*.obj $(LINK) $(LDFLAGS) $*.obj $(LIBS) .cpp.exe: $(CC) $(CFLAGS) /c $*.cpp /Fo$*.obj $(LINK) $(LDFLAGS) $*.obj $(LIBS) clean: del *.obj del $(REGEX_OBJ) del $(MS_LIB) del $(MS_EXE) del *.pdb del *.exp del *.ilk cd gd-1.8.4 nmake -f makefile.nt clean cd .. cd gdft nmake -f makefile.vc clean cd .. =======gd-1.8.4amgif.tar.gz --> makefile.nt ======== #NMAKE makefile for Windows 95/98/NT developers. #Produces a static library (libgd.lib). Thanks to Joe Gregorio. #This is out of date. COMPILER=cl #If the ar command fails on your system, consult the ar manpage #for your system. AR=LIB #If the install command is not in your path, provide #an explicit path for it here, or install manually. INSTALL=install #If you don't have FreeType and/or Xpm installed, including the #header files, uncomment this (default). #CFLAGS=-Ox -GX #If you do have FreeType and/or Xpm fully installed, uncomment a #variation of this and comment out the line above. See also LIBS below. #CFLAGS=-O -DHAVE_LIBXPM -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_LIBTTF CFLAGS=-O -DHAVE_JPEG -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE-LIB_FREETYPE -DHAVE_LIBTTF -DMSWIN32 # -DHAVE_LIBFREETYPE can be used instead of -DHAVE_TTF to use the # newer FreeType2 libraries #Libraries required for applications LIBS=gd.lib ../libpng/projects/msvc/win32/libpng/dll/libpng.lib ../zlib/release/zlib.lib ../jpeg/libjpeg.lib #LIBS=gd.lib libpng.lib zlib.lib libjpeg.lib libttf.lib #Libraries required for gd.lib itself GDLIBS=../libpng/projects/msvc/win32/libpng/dll/libpng.lib ../zlib/release/zlib.lib ../jpeg/libjpeg.lib ../freetype/lib/freetype200b8.lib ../tiff/libtiff/libtiff.lib #GDLIBS=libpng.lib zlib.lib libjpeg.lib libttf.lib #Typical install locations for freetype, zlib, jpeg, xpm and #libpng header files. If yours are somewhere else, change this. INCLUDEDIRS=-I../zlib -I../libpng -I../jpeg -I../freetype/lib -I../freetype/include/freetype -I../freetype/include -I../tiff #Typical install locations for freetype, zlib, xpm, libjpeg and #libpng libraries. # #If yours are somewhere else, other than a standard location #such as /lib or /usr/lib, then change this. Be sure to keep #-L. as this allows the gd library itself to be found. #Put -L. first so that old versions of the gd library elsewhere #on your system can't cause conflicts while building a new one. LIBDIRS= #Location where gd.lib should be installed by "make install". INSTALL_LIB=C:\Program Files\Microsoft Visual Studio\VC98\Lib #Location where .h files should be installed by "make install". INSTALL_INCLUDE=C:\Program Files\Microsoft Visual Studio\VC98\Include #Location where useful non-test programs should be installed by "make install". INSTALL_BIN=C:\Program Files\Microsoft Visual Studio\VC98\Bin # # # Changes should not be required below here. # # VERSION=1.8.1 CC=$(COMPILER) $(INCLUDEDIRS) LINK=$(CC) $(LIB)$(LIBS) PROGRAMS=$(BIN_PROGRAMS) $(TEST_PROGRAMS) BIN_PROGRAMS=pngtogd.exe pngtogd2.exe gdtopng.exe gd2topng.exe gd2copypal.exe gdparttopng.exe webpng.exe gd2togif.exe gdcmpgif.exe giftogd2.exe TEST_PROGRAMS=gdtest.exe gddemo.exe gd2time.exe gdtestttf.exe gdtestft.exe all: gd.lib $(PROGRAMS) gddemo.exe: gddemo.c gd.lib $(CC) gddemo.c $(LIBDIRS) $(LIBS) pngtogd.exe: pngtogd.c gd.lib $(CC) pngtogd.c $(LIBDIRS) $(LIBS) webpng.exe: webpng.c gd.lib $(CC) webpng.c $(LIBDIRS) $(LIBS) pngtogd2.exe: pngtogd2.c gd.lib $(CC) pngtogd2.c $(LIBDIRS) $(LIBS) gdtopng.exe: gdtopng.c gd.lib $(CC) gdtopng.c $(LIBDIRS) $(LIBS) gd2topng.exe: gd2topng.c gd.lib $(CC) gd2topng.c $(LIBDIRS) $(LIBS) gd2copypal.exe: gd2copypal.c gd.lib $(CC) gd2copypal.c $(LIBDIRS) $(LIBS) gdparttopng.exe: gdparttopng.c gd.lib $(CC) gdparttopng.c $(LIBDIRS) $(LIBS) gdtest.exe: gdtest.c gd.lib $(CC) gdtest.c $(LIBDIRS) $(LIBS) gd2time.exe: gd2time.c gd.lib $(CC) gd2time.c $(LIBDIRS) $(LIBS) gdtestttf.exe: gdtestttf.c gd.lib $(CC) gdtestttf.c $(LIBDIRS) $(LIBS) gdtestft.exe: gdtestft.c gd.lib $(CC) gdtestft.c $(LIBDIRS) $(LIBS) gd2togif.exe: gd2togif.c gd.lib $(CC) gd2togif.c $(LIBDIRS) $(LIBS) gdcmpgif.exe: gdcmpgif.c gd.lib $(CC) gdcmpgif.c $(LIBDIRS) $(LIBS) giftogd2.exe: giftogd2.c gd.lib $(CC) giftogd2.c $(LIBDIRS) $(LIBS) OBJS=gd.obj gdhelpers.obj gd_gd.obj gd_gd2.obj gd_io.obj gd_io_dp.obj gd_io_file.obj gd_ss.obj \ gd_io_ss.obj gd_png.obj gdxpm.obj gdfontt.obj gdfonts.obj gdfontmb.obj gdfontl.obj \ gd_gif_in.obj gd_gif_out.obj gd_biggif_out.obj gd_lzw_out.obj \ gdfontg.obj gdtables.obj gdttf.obj gdft.obj gdcache.obj gdkanji.obj gd_jpeg.obj gd_wbmp.obj wbmp.obj gd.lib: $(OBJS) gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h $(AR) $(OBJS) $(GDLIBS) clean: del *.obj *.lib $(PROGRAMS) -------------- next part -------------- An HTML attachment was scrubbed... URL: From tpoindex at nyx.net Mon Sep 24 07:15:57 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Mon, 24 Sep 2001 08:15:57 -0600 Subject: [mapserver-users] Help with perl and mapserver (FWD) In-Reply-To: <8879CCE0F0187742B7302A93A8B87B0902981E@mpls.houstoneng.com>; from bfischer@mpls.houstoneng.com on Thu, Sep 20, 2001 at 04:53:56PM -0500 References: <8879CCE0F0187742B7302A93A8B87B0902981E@mpls.houstoneng.com> Message-ID: <20010924081557.C2781@nyx10.nyx.net> On Thu, Sep 20, 2001 at 04:53:56PM -0500, Brian Fischer wrote: > 1.) There is only one person I know of that has successfully installed > the Perl version of MapScript on a Windows machine. Here is a link to ... > Most users that want to use MapScript on a Windows machine seem to use > DM Solution's PHP MapScript. There is a gentleman from the University > of Kansas also trying to produce a COM version of MapScript. I have > also seen a few other postings of users compiling MapScript for Java and > Python. Mapscript/Tcl is also available for Windows. I include a pre-compiled DLL from the MapServer Workbench page at http://msworkbench.sourceforge.net/ The Mapscript extension can be used for any Windows programming with Tcl/Tk, not just MapServer Workbench. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From neodym at datagis.com Mon Sep 24 09:33:10 2001 From: neodym at datagis.com (Tobias Zuegel) Date: Mon, 24 Sep 2001 18:33:10 +0200 (CEST) Subject: [mapserver-users] Help with perl and mapserver In-Reply-To: <20010924081557.C2781@nyx10.nyx.net> Message-ID: > On Thu, Sep 20, 2001 at 04:53:56PM -0500, Brian Fischer wrote: > > 1.) There is only one person I know of that has successfully installed > > the Perl version of MapScript on a Windows machine. Here is a link to > ... > > Most users that want to use MapScript on a Windows machine seem to use > > DM Solution's PHP MapScript. There is a gentleman from the University > > of Kansas also trying to produce a COM version of MapScript. I have > > also seen a few other postings of users compiling MapScript for Java and I tried to compile MapScript for Java but it does not work! I searched the postings and find nothing useful ... If you know how to compile MapScript for Java let me know, please ;) Greetings, Toby From steve.lime at dnr.state.mn.us Mon Sep 24 09:31:03 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 24 Sep 2001 11:31:03 -0500 Subject: [mapserver-users] 3.5 mapscript problem Message-ID: The previous email you mention refers to version prior to 3.5. 3.5 requires that a layer have STATUS ON or DEFAULT and that it has at least 1 class with a TEMPLATE defined or a global layer TEMPLATE (applies to all classes). STATUS QUERYONLY is gone because by tying up STATUS with whether or not a layer is for query only is stupid (on my part) cause you can't explicitly turn layers on or off. Therefore a new layer TYPE was created called QUERY. It actually doesn't affect the query functions which don't use layer TYPE but drawing functions know to ignore these layers. QUERY objects are gone and their contents rolled into CLASS objects. This was do to minimize the number of EXPRESSIONs that needed to be processed. By combining CLASS and QUERY the same layer-based functions could be used for drawing and querying. That really simplified the layer API. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 09/22/01 02:16AM >>> Steve, With regard to mapscript querys in 3.5 In one of your emails earlier in the year, you said that you need: No. A layer is queryable if it is: - ON, either explicitly via a form or has STATUS DEFAULT or QUERYONLY and - has a QUERY object with a TEMPLATE defined. Seems like in my first mapfile definition: > LAYER > NAME ctyindex > TYPE QUERY > STATUS ON > DATA "ctyindex" > TEMPLATE dummy > END is missing the QUERY TEMPLATE dummy END and 3.5 errors out when this is included in the layer. When it is removed, the query does not work and yeilds "No matching record(s) found." Likewise, in 3.3, removing those same lines produces the same error, so I suspect the layer has no QUERY object. Anyway I got my 3.3 and 3.5 mapscript co-existing, and the 3.3 query scripts seems to be working OK. I also tried changing the mapfile as you suggest with TYPE LINE, but that didn't have any effect. If I set STATUS QUERYONLY in the mapfile, 3.5 gives me getSymbol(): Symbol definition error. (QUERYONLY):(11) Looking at the docs, specifically the 3.5 Mapfile reference, the Query Object section is gone. I am just trying to figure out what is going on with QUERY. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc (410)257-3187 Stephen Lime wrote: > > Your first layer def is fine, I may have screwed up and am not recognizing > "TYPE QUERY" properly. In your case the TYPE is irrelevant since queries > operate on the real type of the data rather than the display type. Try setting > TYPE to LINE and see if that works. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> 09/21/01 01:54AM >>> > > with LAYER, needs a QUERY object/directive and a TEMPLATE > for the query to succeed, otherwise nothing is found. > It current looks like this: > > LAYER > NAME ctyindex > TYPE QUERY > STATUS ON > DATA "ctyindex" > TEMPLATE dummy > END > > gives me nothing back: > > Fri Sep 21 02:32:36 2001 - msQueryByRect(): Search returned no results. No > matching record(s) found. > > If I embed a QUERY object in the layer: > > LAYER > NAME ctyindex > TYPE QUERY > STATUS ON > DATA "ctyindex" > QUERY > TEMPLATE dummy > END > END > > 3.5 complains with > > Fri Sep 21 02:48:29 2001 - loadLayer(): Unknown identifier. (QUERY):(13) > > There may be a fix in the mapfile that I am not aware of... , If it smells > like a bug let me know and I will post to bugzilla. > > Regards, > > Chris From m.spring at gmx.de Mon Sep 24 10:09:35 2001 From: m.spring at gmx.de (Markus Spring) Date: Mon, 24 Sep 2001 19:09:35 +0200 (CEST) Subject: [mapserver-users] article on mapserver in Linux-Magazin Message-ID: <20010924170935.4547649EC9@sputnik.lrrl.arch.tu-muenchen.de> Hi list, the german Linuxmagazin has printed an article about the usage of the mapserver in the department of environment and health of the city of munich and the chair of regional science, regional policy and regional planning of the technical university of munich. Under http://dream/a_katalog/info/linuxmag/geodaten_frei_en.xml?portal=cap2000 you find a slightly adapted english version of this article Kind regards markus From m.spring at gmx.de Mon Sep 24 11:56:03 2001 From: m.spring at gmx.de (Markus Spring) Date: 24 Sep 2001 20:56:03 +0200 Subject: [mapserver-users] article on mapserver in Linux-Magazin In-Reply-To: <3BAF6C23.F0866E48@here.is> Message-ID: Hi List, sorry for the mangled url (a have this address in my /etc/hosts file). Here is the correct one: http://dream.lrrl.arch.tu-muenchen.de/a_katalog/info/linuxmag/geodaten_frei_en.xml?portal=cap2000 Markus From gispmpf at zipmail.com.br Mon Sep 24 17:35:03 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Tue, 25 Sep 2001 00:35:03 +0000 Subject: [mapserver-users] =?iso-8859-1?Q?Shapefile?= Message-ID: <3BAE997D00002341@www.zipmail.com.br> I have a newbie question... Can i convert a shapefile in a map file? If i can ...how can i do it? Thanks Jo?o M?rio L Brezolin GIS/Analyst ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From gispmpf at zipmail.com.br Mon Sep 24 17:50:23 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Tue, 25 Sep 2001 00:50:23 +0000 Subject: [mapserver-users] =?iso-8859-1?Q?msworkbench?= Message-ID: <3BAE997D000023B9@www.zipmail.com.br> I have another newbie question: Every time i lunch the msworkbench (0.3) and its msexplorer.tcl module i get this error: "Cannot send to msexplorer.tcl .Check your xhosts settings,xhosts should report access control enabled, only authorized clients can connect." How can i fix this problem? Thanks Jo?o M?rio L. Brezolin GIS/Analyst ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From tpoindex at nyx.net Mon Sep 24 21:16:49 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Mon, 24 Sep 2001 22:16:49 -0600 Subject: [mapserver-users] msworkbench In-Reply-To: <3BAE997D000023B9@www.zipmail.com.br>; from gispmpf@zipmail.com.br on Tue, Sep 25, 2001 at 12:50:23AM +0000 References: <3BAE997D000023B9@www.zipmail.com.br> Message-ID: <20010924221649.A24051@nyx10.nyx.net> This usually means one of two possilbe problems: - failure of one workbench program to start another. - wrong X server security is being used. For the first problem, I'll assume you are using msedit.tcl, and trying to use the 'Tools' menu function to start the explorer. Does the msexplorer.tcl program start up? If not, then perhaps you have not installed the package correctly. See the 'README' file. For the second problem, Tcl/Tk only allows communications between programs when your X server is secured. That is, you must not use 'xhost' style security, and use 'xauth' instead. Try running 'xhost' without any arguments - you should see: access control enabled, only authorized clients can connect Run 'xhost -' to turn off xhost style security. Read the man pages on how 'xauth' works. Alternatively, you can compile Tcl/Tk with a special Makefile flag that doesn't check for a secured X server. This is generally not a good idea if you can possibly avoid it. -tom On Tue, Sep 25, 2001 at 12:50:23AM +0000, gispmpf at zipmail.com.br wrote: > I have another newbie question: > Every time i lunch the msworkbench (0.3) and its msexplorer.tcl module i > get this error: "Cannot send to msexplorer.tcl .Check your xhosts settings,xhosts > should report access control enabled, only authorized clients can connect." > How can i fix this problem? -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From kodali at unisoftindia.net Mon Sep 24 23:07:36 2001 From: kodali at unisoftindia.net (kodali) Date: Tue, 25 Sep 2001 01:07:36 -0500 (CDT) Subject: [mapserver-users] Date: Mon, 25 Sep 1995 11:35:54 +0530 Message-ID: <000801ba8b0c$fbbac620$3800a8c0@192.168.0.1> hi How to call crysral reports from visualc++ can you help me by rao -------------- next part -------------- An HTML attachment was scrubbed... URL: From vkurnosov at softech.ru Mon Sep 24 23:40:07 2001 From: vkurnosov at softech.ru (Vladislav Kurnosov) Date: Tue, 25 Sep 2001 10:40:07 +0400 Subject: [mapserver-users] Date: Mon, 25 Sep 1995 11:35:54 +0530 In-Reply-To: <000801ba8b0c$fbbac620$3800a8c0@192.168.0.1> References: <000801ba8b0c$fbbac620$3800a8c0@192.168.0.1> Message-ID: <1444.010925@softech.ru> Yes, how can we do it?))))) Best regards, Vladislav Kurnosov mailto:vkurnosov at softech.ru Tuesday, September 25, 2001, 10:07:36 AM, you wrote: > hi > How to call crysral reports from visualc++ > can you help me > by > rao From Michael.Dreesmann at LVERMAP.brandenburg.de Tue Sep 25 04:02:38 2001 From: Michael.Dreesmann at LVERMAP.brandenburg.de (Dreesmann, Michael) Date: Tue, 25 Sep 2001 13:02:38 +0200 Subject: [mapserver-users] MS 3.5 + TIFF Message-ID: <47E1D354A19DD311BA2600105A4234F46B3BE7@ntsv3.lvap.kvv-bb.de> During installation of MS 3.5 on linux everything was okay. I used the data (SHAPE and TIFF LZW) of my default-project (MS 3.4 WinNT). I updated the map-file. GetMap and GetCapabilities works correct. Only the TIFF visualization (with TFW-file) was wrong. It seemed, that the MS changes X and Y. The output was mirrored (on the correct place) through the axis up-left to down-right. Has anyone an idea whats going wrong ? Regards Michael From steve.lime at dnr.state.mn.us Tue Sep 25 06:59:47 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 25 Sep 2001 08:59:47 -0500 Subject: [mapserver-users] MS 3.5 + TIFF Message-ID: You must be using gd 1.2 which uses a different system to access the pixel array. Upgrade to something newer and it will work ok. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Dreesmann, Michael" 09/25/01 06:02AM >>> During installation of MS 3.5 on linux everything was okay. I used the data (SHAPE and TIFF LZW) of my default-project (MS 3.4 WinNT). I updated the map-file. GetMap and GetCapabilities works correct. Only the TIFF visualization (with TFW-file) was wrong. It seemed, that the MS changes X and Y. The output was mirrored (on the correct place) through the axis up-left to down-right. Has anyone an idea whats going wrong ? Regards Michael From mapserver at hotmail.com Tue Sep 25 09:30:45 2001 From: mapserver at hotmail.com (=?iso-8859-1?B?RGllZ28gSi4gUGFkcvNuIFAu?=) Date: Tue, 25 Sep 2001 16:30:45 +0000 Subject: [mapserver-users] Error compile Message-ID: Greetings I try to compile php/mapscrip in Windows 2000, installing FoxServ + php4.0.6_php_mapscript_35.zip + gmap-ms35-20010726.zip and the following error is generated: Fatal error: dl() is not supported in multithreaded Web servers - use extension statements in your php.ini in c:\foxserv\www\gmap\htdocs\gmap75.phtml on line 30 If somebody could help them he/she would thank. Thank you. _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From mckenna at dmsolutions.ca Tue Sep 25 09:54:38 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Tue, 25 Sep 2001 12:54:38 -0400 Subject: [mapserver-users] Error compile References: Message-ID: <3BB0B6CE.EB5EEE85@dmsolutions.ca> Diego J. Padr?n P. wrote: > > I try to compile php/mapscrip in Windows 2000, installing FoxServ + > php4.0.6_php_mapscript_35.zip + gmap-ms35-20010726.zip and the following > error is generated: > > Fatal error: dl() is not supported in multithreaded Web servers - use > extension statements in your php.ini in > c:\foxserv\www\gmap\htdocs\gmap75.phtml on line 30 > I believe your problem is that your PHP is configured as an Apache module instead of as a CGI. Open the file httpd.conf in the conf directory of Apache and make sure the line below is commented: LoadModule php4_module pathto/FoxServ/php/sapi/php4apache.dll There is a note on this in the PHP/Mapscript-install howto: http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html#example Hope this helps. Jeff -- Jeff McKenna GIS Specialist DM Solutions Group Inc. Ottawa, Ontario http://www.dmsolutions.ca/ From mapserver at hotmail.com Tue Sep 25 11:10:28 2001 From: mapserver at hotmail.com (=?iso-8859-1?B?RGllZ28gSi4gUGFkcvNuIFAu?=) Date: Tue, 25 Sep 2001 18:10:28 +0000 Subject: [mapserver-users] Help compile php/mapscrip Message-ID: That applications open source are necessary to compile the mapserver in I modulate php/mapscrip for handling of the interface GMAP. do I have Linux Mandrake 8.0, ms_3.4, gd-1.8.4, freetype-1.3.1, php-4.0.4pl1 that another application is necessary? If somebody please has experience in compiling php/mapscrip in Linux RedHat 8.0 I need of their help to be able to compile it. Thank you. Diego J. Padr?n _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From teb at mallit.fr.umn.edu Tue Sep 25 11:57:47 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 25 Sep 2001 13:57:47 -0500 (CDT) Subject: [mapserver-users] Extents and units in map file (FWD) Message-ID: <200109251857.NAA06848@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Content-return: allowed Date: Tue, 25 Sep 2001 09:38:05 -0700 From: "Webber, Tim MCF:EX" Subject: Extents and units in map file To: "'mapserver-info at lists.gis.umn.edu'" MIME-version: 1.0 Content-transfer-encoding: 7BIT Hi. I have been playing around with mapserver and have been fairly successful getting some thematic maps of our proince (B.C.) up and working (sort of). The difficulty I am having (other than difficulties associated with not really knowing what I am doing) is : when I use the proper extents with units=meters in the mapfile the resulting map is "zoomed in" and shows only a small area of my map. When I change the units to inches everthing appears as I would expect it should but the scalebar is way out. The other associated problem is that I cant get the reference map I have created to indicate my position on the main map. I have included a portion of my mapfile just in case it helps clarify my problems Any advice would be much appreciated. THanks. # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 SYMBOLSET symbols/symbol.sym #extent from mcf.axl in inform's development EXTENT 253176.0 349007.0 1980563.0 1755550.0 #UNITS METERS UNITS INCHES # TJW - shapepath is relative to the map file. demo.map in this case SHAPEPATH "data" IMAGECOLOR 255 255 255 WEB HEADER demo_header.html TEMPLATE tpmap.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "c:\inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" # LOG "demo.log" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # the map in lower right hand corner REFERENCE IMAGE bc.gif #IMAGE graphics/reference.gif #EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 EXTENT 273176 369022 1870563 1735549 SIZE 150 150 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 255 255 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END ------------- End Forwarded Message ------------- From Hannah.Jensen at erdc.usace.army.mil Tue Sep 25 12:17:56 2001 From: Hannah.Jensen at erdc.usace.army.mil (Jensen, Hannah ERDC-CRREL-NH) Date: Tue, 25 Sep 2001 15:17:56 -0400 Subject: [mapserver-users] setting projection based on zoom Message-ID: <048FBD219330D211B47000A0C9B3BAFD02A618F5@crl02.crrel.usace.army.mil> Hi, all. I would like to be able to change projections based on how far the user is zoomed in. For example, if they start out looking at the US in Lambert Azimuthal Equal Area but zoom in on Alaska, the map should display the zoomed in area in UTM zone 6. I'm hoping to be able to do this with CGI variables, but maybe that's not possible. If I pass in the projection parameters and the map extent (in the new projection units) like so: http://myserver/cgi-bin/mapserv34g?map=../html/usamap/tiger.map&mode=browse& map_projection=proj=utm,zone=6&mapext=415087+7115646+546659+7214763 it works fine. But since I don't know the map extent in the new projection before conversion, what variables should I pass to properly define the map extent? Can I somehow tell it to calculate the new extent based on the old one? Is there a better way to do this? Thanks in advance for any info/advice... Cheers, Hannah From teb at mallit.fr.umn.edu Tue Sep 25 13:06:35 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 25 Sep 2001 15:06:35 -0500 (CDT) Subject: [mapserver-users] mapplet (FWD) Message-ID: <200109252006.PAA06961@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "res07as8" To: Subject: mapplet Date: Tue, 25 Sep 2001 13:10:28 -0700 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 I'm running windows 2000 and IIS. I have the demo and the mapplet page refreshing running. I would like to get a non-page refreshing mapplet functioning. I like the landview example but get an error com.ms.security.securityExceptionEx[mapplet.swap] and never a image. The error code is 0X80004005. I need a simple non-freshing solution with a reference map and no query. Does anyone have a simple template and instructions (with gotcha-yas) with the class, javascript, etc? Thanks so much in advance! Dustin ------------- End Forwarded Message ------------- From Hannah.Jensen at erdc.usace.army.mil Tue Sep 25 13:09:53 2001 From: Hannah.Jensen at erdc.usace.army.mil (Jensen, Hannah ERDC-CRREL-NH) Date: Tue, 25 Sep 2001 16:09:53 -0400 Subject: [mapserver-users] setting projection based on zoom Message-ID: <048FBD219330D211B47000A0C9B3BAFD02A618F6@crl02.crrel.usace.army.mil> Proof that you should leave your desk once in awhile -- someone down the hall saw my post and walked over to give me the answer. Thanks, Joel! Anyway, if mapext is specified in lat/long, it works properly. Only caveat is that the projection must be specified FIRST in the URL. So this works: http://myserver/cgi-bin/mapserv34g?mode=browse&map=..%2Fhtml%2Fusamap%2Ftige r.map&map_projection=proj=utm,zone=19&mapext=-78.12+40.14+-63.19+49.23 but this doesn't: http://myserver/cgi-bin/mapserv34g?mode=browse&map=..%2Fhtml%2Fusamap%2Ftige r.map&mapext=-78.12+40.14+63.19+49.23&map_projection=proj=utm,zone=19 Strange but true... -----Original Message----- From: Jensen, Hannah ERDC-CRREL-NH To: 'mapserver-users at lists.gis.umn.edu' Sent: 9/25/01 3:17 PM Subject: [mapserver-users] setting projection based on zoom Hi, all. I would like to be able to change projections based on how far the user is zoomed in. For example, if they start out looking at the US in Lambert Azimuthal Equal Area but zoom in on Alaska, the map should display the zoomed in area in UTM zone 6. I'm hoping to be able to do this with CGI variables, but maybe that's not possible. If I pass in the projection parameters and the map extent (in the new projection units) like so: http://myserver/cgi-bin/mapserv34g?map=../html/usamap/tiger.map&mode=bro wse& map_projection=proj=utm,zone=6&mapext=415087+7115646+546659+7214763 it works fine. But since I don't know the map extent in the new projection before conversion, what variables should I pass to properly define the map extent? Can I somehow tell it to calculate the new extent based on the old one? Is there a better way to do this? Thanks in advance for any info/advice... Cheers, Hannah From steve.lime at dnr.state.mn.us Tue Sep 25 13:26:01 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 25 Sep 2001 15:26:01 -0500 Subject: [mapserver-users] setting projection based on zoom Message-ID: Here's why. The extent is projected when it is read from the CGI data, so it is converted using the existing projection information it has at that time. Setting the projection afterwords has no effect but to screw things up. This is fixable. Hannah, would you be so kind as to add this to bugzilla? Thanks- Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jensen, Hannah ERDC-CRREL-NH" 09/25/01 03:09PM >>> Proof that you should leave your desk once in awhile -- someone down the hall saw my post and walked over to give me the answer. Thanks, Joel! Anyway, if mapext is specified in lat/long, it works properly. Only caveat is that the projection must be specified FIRST in the URL. So this works: http://myserver/cgi-bin/mapserv34g?mode=browse&map=..%2Fhtml%2Fusamap%2Ftige r.map&map_projection=proj=utm,zone=19&mapext=-78.12+40.14+-63.19+49.23 but this doesn't: http://myserver/cgi-bin/mapserv34g?mode=browse&map=..%2Fhtml%2Fusamap%2Ftige r.map&mapext=-78.12+40.14+63.19+49.23&map_projection=proj=utm,zone=19 Strange but true... -----Original Message----- From: Jensen, Hannah ERDC-CRREL-NH To: 'mapserver-users at lists.gis.umn.edu' Sent: 9/25/01 3:17 PM Subject: [mapserver-users] setting projection based on zoom Hi, all. I would like to be able to change projections based on how far the user is zoomed in. For example, if they start out looking at the US in Lambert Azimuthal Equal Area but zoom in on Alaska, the map should display the zoomed in area in UTM zone 6. I'm hoping to be able to do this with CGI variables, but maybe that's not possible. If I pass in the projection parameters and the map extent (in the new projection units) like so: http://myserver/cgi-bin/mapserv34g?map=../html/usamap/tiger.map&mode=bro wse& map_projection=proj=utm,zone=6&mapext=415087+7115646+546659+7214763 it works fine. But since I don't know the map extent in the new projection before conversion, what variables should I pass to properly define the map extent? Can I somehow tell it to calculate the new extent based on the old one? Is there a better way to do this? Thanks in advance for any info/advice... Cheers, Hannah From tkralidi at ccrs.nrcan.gc.ca Tue Sep 25 15:43:28 2001 From: tkralidi at ccrs.nrcan.gc.ca (Tom Kralidis) Date: Tue, 25 Sep 2001 18:43:28 -0400 (EDT) Subject: [mapserver-users] setting projection based on zoom In-Reply-To: Message-ID: Hi, Does this work with imgext instead of mapext? I can't seem to get it working with imgext. Any hints? Thanks ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca ================================= You wrote... >Date: Tue, 25 Sep 2001 15:26:01 -0500 >From: Stephen Lime >To: Hannah.Jensen at erdc.usace.army.mil, mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] setting projection based on zoom > >Here's why. The extent is projected when it is read from the CGI data, so it is >converted using the existing projection information it has at that time. Setting >the projection afterwords has no effect but to screw things up. This is fixable. >Hannah, would you be so kind as to add this to bugzilla? > >Thanks- Steve > >Stephen Lime >Data & Applications Manager > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 > >>>> "Jensen, Hannah ERDC-CRREL-NH" 09/25/01 03:09PM >>> > >Proof that you should leave your desk once in awhile -- someone down the >hall saw my post and walked over to give me the answer. Thanks, Joel! > >Anyway, if mapext is specified in lat/long, it works properly. Only caveat >is that the projection must be specified FIRST in the URL. So this works: > >http://myserver/cgi-bin/mapserv34g?mode=browse&map=..%2Fhtml%2Fusamap%2Ftige >r.map&map_projection=proj=utm,zone=19&mapext=-78.12+40.14+-63.19+49.23 > >but this doesn't: > >http://myserver/cgi-bin/mapserv34g?mode=browse&map=..%2Fhtml%2Fusamap%2Ftige >r.map&mapext=-78.12+40.14+63.19+49.23&map_projection=proj=utm,zone=19 > >Strange but true... > > > >-----Original Message----- >From: Jensen, Hannah ERDC-CRREL-NH >To: 'mapserver-users at lists.gis.umn.edu' >Sent: 9/25/01 3:17 PM >Subject: [mapserver-users] setting projection based on zoom > > >Hi, all. I would like to be able to change projections based on how far >the >user is zoomed in. For example, if they start out looking at the US in >Lambert Azimuthal Equal Area but zoom in on Alaska, the map should >display >the zoomed in area in UTM zone 6. I'm hoping to be able to do this with >CGI >variables, but maybe that's not possible. If I pass in the projection >parameters and the map extent (in the new projection units) like so: > >http://myserver/cgi-bin/mapserv34g?map=../html/usamap/tiger.map&mode=bro >wse& >map_projection=proj=utm,zone=6&mapext=415087+7115646+546659+7214763 > >it works fine. But since I don't know the map extent in the new >projection >before conversion, what variables should I pass to properly define the >map >extent? Can I somehow tell it to calculate the new extent based on the >old >one? Is there a better way to do this? Thanks in advance for any >info/advice... > > > >Cheers, >Hannah > From joemayfair at usa.net Tue Sep 25 22:08:40 2001 From: joemayfair at usa.net (Walt Lin) Date: Wed, 26 Sep 2001 01:08:40 -0400 Subject: [mapserver-users] mapfile help Message-ID: <20010926010840.C8324@shenandoah> Hey guys, I'm having trouble turning on some layers with mapscript. When turning on the "county" layer, mapscript complains, returns a -1 status, and does not turn it on. The strange thing was that it used to, and I'm almost positive I didn't change the mapfile entry for that layer, just added new layers and moved things around. Do you see anything wrong with my mapfile the way it is? I've read the docs but can't seem to figure it out. The layers are tiger files converted to shp. Thanks. Walt MAP STATUS ON # EXTENT -72.70 41.44 -70.28 42.79 imagecolor 255 255 255 # SIZE 421 281 UNITS dd FONTSET fonts.list # MARKERSET marker.sym LAYER NAME county TYPE POLYGON # TOLERANCE 3 MAXSCALE 4000000 MINSCALE 5000 LABELMAXSCALE 4000000 LABELITEM "NAME" CLASS COLOR 255 255 255 BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 200 200 200 LABEL ANGLE AUTO COLOR 0 0 0 TYPE TRUETYPE FONT arial SIZE 10 POSITION AUTO WRAP " " MINDISTANCE 300 END END END LAYER NAME states TYPE POLYGON #TOLERANCE 3 MAXSCALE 10000000000 MINSCALE 2000000 LABELMAXSCALE 4000000 LABELITEM "Name" CLASS COLOR 255 255 255 BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 200 200 200 LABEL ANGLE AUTO COLOR 0 0 0 TYPE TRUETYPE FONT arial SIZE 10 POSITION AUTO WRAP " " MINDISTANCE 300 END END END LAYER NAME roads TYPE LINE MAXSCALE 185000 LABELMAXSCALE 180000 LABELITEM "FENAME" CLASS backgroundcolor 255 255 255 COLOR 180 180 180 LABEL ANGLE AUTO COLOR 0 0 0 TYPE TRUETYPE FONT arial SIZE 10 POSITION AUTO WRAP " " MINDISTANCE 300 END END END LAYER NAME water TYPE POLYGON MAXSCALE 4000000 TOLERANCE 3 CLASS NAME "Water" COLOR 150 150 255 # BACKGROUNDCOLOR 32 201 201 BACKGROUNDCOLOR 150 150 255 OUTLINECOLOR 150 150 255 END END # layer LAYER NAME kgl TYPE POLYGON MAXSCALE 40000 LABELMAXSCALE 40000 LABELITEM "KGLNAME" CLASS NAME "Key" COLOR 0 250 125 OUTLINECOLOR 150 150 255 LABEL COLOR 0 0 0 END END END END # end map From sylvain.pasche at epfl.ch Wed Sep 26 00:18:19 2001 From: sylvain.pasche at epfl.ch (Sylvain Pasche) Date: Wed, 26 Sep 2001 09:18:19 +0200 (CEST) Subject: [mapserver-users] php mapscript doesn't work whith php 4.0.4pl1 Message-ID: <15281.33083.469440.362527@gargle.gargle.HOWL> Hello, I've tried to compile the latest cvs version of mapserver, with php mapscript. However, php mapscript does not work any more with php version 4.0.4pl1. In fact, there is an unresolved symbol "add_property_zval" with does not exist in php 4.0.4pl1, but is in php4.0.6. Does it mean that php mapscript is not compatible with php4.0.4pl1 any more ? or is it possible to use a work around to keep compatibility with older versions ? Regards Sylvain From j1mmm at hotmail.com Wed Sep 26 01:43:47 2001 From: j1mmm at hotmail.com (j1mmm) Date: Wed, 26 Sep 2001 15:43:47 +0700 Subject: [mapserver-users] mapserver.rar References: <002701c144ca$4edfd8e0$f648fe3e@david> <002d01c144d1$58012c10$f648fe3e@david> <004201c144d7$1285a390$f648fe3e@david> Message-ID: hi all, i tried this MS35 package. it 's easier ,more conveinent and spent less less time. if you are compiling MS now, i suggest this one. j1mmm j1mmm at hotmail.com ----- Original Message ----- From: "David Armstrong" To: "j1mmm" Sent: Monday, September 24, 2001 3:58 PM Subject: Re: mapserver compile > > download my version it will be quicker than trying to find your build > problem > tiff is included. > > www.maptrackit.com > > under mapserver for windows then downloads > mapserver full includes all librarys > > run vcvars32 then submake.bat in gdal-1.1.5 and finally make.bat in > mapserver35 directory > > shout if you get stuck > > > From pucher at atlas.gis.univie.ac.at Wed Sep 26 05:00:21 2001 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Wed, 26 Sep 2001 14:00:21 +0200 Subject: [mapserver-users] Query Layer out of DB Message-ID: <3BB1C355.3070607@atlas.gis.univie.ac.at> Hello, I want to explain my question with a little example. Let's presume, I have a map of Europe with all the european countries included. In addition to that, I have statistical data about the various countries - like population, area etc. - stored in a database system - say MySQL. I make a SQL query, showing me the 3 countries with the highest poulation figures (e.g. Germany, France, UK). The system gives me a button saying "Show in Mapserver". What I want to see is the map of Europe with the three countries hilited. I'm quite sure that this has to be done with a newLayerObj, that is simply put onto the "standard" layers. Can anybody give me some more detailed information about this. Any suggestions, code snippets, links or previously posted messages to mapserver-users-group would be great. mfg ALEX -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universit?t Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartographie and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: pucher at atlas.gis.univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto ________________________________________________________ "The toughest fight, was with my wife." -- Muhammad Ali From mckenna at dmsolutions.ca Wed Sep 26 05:54:06 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Wed, 26 Sep 2001 08:54:06 -0400 Subject: [mapserver-users] php mapscript doesn't work whith php 4.0.4pl1 References: <15281.33083.469440.362527@gargle.gargle.HOWL> Message-ID: <3BB1CFEE.EB405C4F@dmsolutions.ca> Sylvain Pasche wrote: > > Hello, > > I've tried to compile the latest cvs version of mapserver, with php > mapscript. > However, php mapscript does not work any more with php version > 4.0.4pl1. In fact, there is an unresolved symbol "add_property_zval" > with does not exist in php 4.0.4pl1, but is in php4.0.6. > > Does it mean that php mapscript is not compatible with php4.0.4pl1 any > more ? > or is it possible to use a work around to keep compatibility with > older versions ? > > Regards > > Sylvain Sylvain, You are correct, phpMapscript code was recently modified to reflect memory leak fixes in php4.0.6. I recommend that you just upgrade to php4.0.6. The PHP/Mapscript documentation will be updated with this information. Jeff -- Jeff McKenna GIS Specialist DM Solutions Group Inc. Ottawa, Ontario http://www.dmsolutions.ca/ From bart at atsence.nl Wed Sep 26 06:16:51 2001 From: bart at atsence.nl (Bart van Heijningen) Date: Wed, 26 Sep 2001 15:16:51 +0200 Subject: [mapserver-users] Newbie, misplacing raster images with phpmapscript. Message-ID: Hello Mapscript/server community, I experienced the following problem: In a nutshell: When I draw a map with the Mapserver I get a raster image perfectly placed on the other shapes. When drawing the map using php mapscript the raster image seems to be mirrored, upside down and offset quite a bit compared to the first result. I use the same .map file so I do not believe that the problem should be looked for in there.. Has anyone experienced this problem as well? Any ideas what can be the origin of this problem? RH 7.0 Mapscript 35 Mapserver 35 php 3.0.18 gd 1.2 Thank you all for your time, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Hankley at GASAI.Com Wed Sep 26 06:23:26 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 26 Sep 2001 08:23:26 -0500 Subject: [mapserver-users] mapfile help Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3EC3@postoffice.GASAI.Com> I see that you don't have a STATUS line for any of your layers. I don't know if STATUS is required... but I use it, and my stuff is working! ;) You might try starting off with your layers as off or default. Then turn them ON with mapscript. You might also try turning off your scale limits while you're debugging. Here's a layer definition from one of my mapfiles: LAYER NAME "OrthoPhoto" DATA "S:\PROJECTS\20000156\images\lp_bw6.tif" STATUS OFF MAXSCALE 8000 OFFSITE 0 TYPE RASTER END ...on the PHP side, I'm controlling visibility like this: $Layer = $map->getlayerbyname("OrthoPhoto"); if (($HTTP_POST_VARS['OrthoPhoto']) AND ($map->scale < 8000)) $Layer->set("status", 1); else $Layer->set("status", 0); Hope this helps. Chip From morissette at dmsolutions.ca Wed Sep 26 07:05:47 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 26 Sep 2001 10:05:47 -0400 Subject: [mapserver-users] Newbie, misplacing raster images with phpmapscript. References: Message-ID: <3BB1E0BB.2854FC36@dmsolutions.ca> Bart, Seems like a GD1.2 vs GD 1.3+ issue again. Can you make sure that your PHP is NOT compiled with GD... or if you need GD in your PHP then make sure both MapScript and PHP are using the same GD. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. > Bart van Heijningen wrote: > > Hello Mapscript/server community, > > I experienced the following problem: > > In a nutshell: > When I draw a map with the Mapserver I get a raster image perfectly > placed on the other shapes. > > When drawing the map using php mapscript the raster image seems to be > mirrored, upside down and offset quite a bit compared to the first > result. > I use the same .map file so I do not believe that the problem should > be looked for in there.. > > Has anyone experienced this problem as well? > Any ideas what can be the origin of this problem? > > RH 7.0 > Mapscript 35 > Mapserver 35 > php 3.0.18 > gd 1.2 > > Thank you all for your time, > > Bart From bart at atsence.nl Wed Sep 26 07:18:06 2001 From: bart at atsence.nl (Bart van Heijningen) Date: Wed, 26 Sep 2001 16:18:06 +0200 Subject: [mapserver-users] Subsitute for styled in 3.5 symbol file? Message-ID: Hi all, Now the styled option is no longer available in the symbol.sym from version 3.5 I have not succeeded in making an highway as was possible with the STYLED option in the line.sym file. Like: Symbol Type STYLED SYLE -1 1 8 0 0 0 1 1 8 END END Any suggestions will be highly appreciated. Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at hotmail.com Wed Sep 26 10:16:02 2001 From: mapserver at hotmail.com (=?iso-8859-1?B?RGllZ28gSi4gUGFkcvNuIFAu?=) Date: Wed, 26 Sep 2001 17:16:02 +0000 Subject: [mapserver-users] Error Compile PHP/MAPSCRIPT Message-ID: Greetings I try to compile php/mapscrip in Linux RedHat 8.0 using the following tools: php-4.0.4pl1 + nightly.tar.gz + gd-1.8.4.tar.gz + freetype-2.0.4.tar.gz I apply the following thing: ./configure --with-php=/usr/include/php/ --with-apxs=/usr/sbin/apxs --without-ttf --with-apache=/usr/include/apache/ checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for c++... (cached) c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether c++ accepts -g... (cached) yes checking for ranlib... (cached) ranlib checking for flex... (cached) flex checking for yywrap in -lfl... (cached) yes checking for bison... (cached) bison -y checking if compiler supports -R... (cached) no checking if compiler supports -Wl,-rpath,... (cached) yes checking for exp in -lm... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for strdup... (cached) yes checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. checking which version of GD to use... using libgd from system libs. checking where FreeType is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. ./configure: unset: `ac_cv_lib_z_z,zlibVersion': not a valid identifier checking where Zlib is installed... checking for zlibVersion in -lz... (cached) yes using libz from system libs. checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... no checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageString16 in -lgd... yes checking for gdImageGifPtr in -lgd... no using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from system libs. checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... yes using libtiff from system libs. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include PROJ.4 support... PROJ.4 support not requested. checking whether we should include ESRI SDE support... SDE Version is 80. ESRI SDE support not requested. checking whether we should compile in MPATROL support... MPATROL support not requested. checking whether we should include OGR support... OGR support not requested. checking if GDAL support requested... no checking if PostGIS support requested... no checking whether we should include WMS support... OGC WMS Compatibility not enabled (PROJ.4 is required for WMS). checking whether we should include WMS Client Connections support... OGC WMS Client Connections not enabled (PROJ.4 and libwww required). Compiling with -DIGNORE_MISSING_DATA. checking for PHP/MapScript module options... checking whether 'perl -V' works... yes checking for location of config.h or php_config.h... /usr/include/php//main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... no PHP/MapScript module configured. checking for location of Apache headers using apxs... -I/usr/include/apache checking for location of Apache headers... -I/usr/include/apache/ creating ./config.status creating Makefile creating mapscript/php3/Makefile ------------------------------------------- Then I make and the following errors are generated: This is alone the errors: ---------------------- maplexer.c:3075: warning: `yyunput' defined but not used mapprimitive.c:749: warning: `get_centroid' defined but not used mapproject.c:66: warning: `msProjectGrowRect' defined but not used mapresample.c:409: warning: `msInitApproxTransformer' defined but not used mapresample.c:426: warning: `msFreeApproxTransformer' defined but not used mapresample.c:437: warning: `msApproxTransformer' defined but not used mapresample.c:541: warning: `msTransformMapToSource' defined but not used shptree.c: In function `main': shptree.c:38: warning: `filename' might be used uninitialized in this function shptree.c:40: warning: `byte_order' might be used uninitialized in this function shptreevis.c: In function `main': shptreevis.c:76: warning: unused variable `pabyBuf' shptreetst.c: In function `main': shptreetst.c:68: warning: `node' might be used uninitialized in this function php_mapscript.c: In function `php3_ms_img_saveImage': php_mapscript.c:3242: warning: implicit declaration of function `php_header' cc: unrecognized option `-rdynamic-Wl' --------------------------- But when trying to visualize the Interface GMAP the following Error it is generated: --------------------- Warning: MapServer Error in msGetLabelSize(): Could not find/open font in /var/www/html/gmap/htdocs/gmap75.php3 on line 530 Fatal error: Call to a member function on a non-object in /var/www/html/gmap/htdocs/gmap75.php3 on line 531 --------------------- Somebody please can to indicate me which is the error. Many grace for the help. _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From steve.lime at dnr.state.mn.us Wed Sep 26 10:22:21 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 26 Sep 2001 12:22:21 -0500 Subject: [mapserver-users] Subsitute for styled in 3.5 symbol file? Message-ID: I posted the solution to this in a previous thread (several months ago) so please see that for code snippets and so on. Basically you need to use overlayed symbols (i.e. a thin line over a thick line) to achieve that effect. The only difference between the approaches is that the center of a line is no longer transparent. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Bart van Heijningen" 09/26/01 09:18AM >>> Hi all, Now the styled option is no longer available in the symbol.sym from version 3.5 I have not succeeded in making an highway as was possible with the STYLED option in the line.sym file. Like: Symbol Type STYLED SYLE -1 1 8 0 0 0 1 1 8 END END Any suggestions will be highly appreciated. Bart From gispmpf at zipmail.com.br Wed Sep 26 12:01:12 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Wed, 26 Sep 2001 19:01:12 +0000 Subject: [mapserver-users] =?iso-8859-1?Q?Re=3A=20=5Bmapserver=2Dusers=5D=20Shapefile?= In-Reply-To: <3BB08C08.50609C3F@dmsolutions.ca> Message-ID: <3BAE9D0100005BB4@www.zipmail.com.br> 1)What i have to do to make the mapserver software read a shpfile? 2) Can I link this shpfiles with postgres using postgis? 3)How can i draw a map using postgis? 4) How can i define a symbols file for postgis? Thanks Jo?o M?rio L Brezolin GIS/Analyst -- Mensagem original -- >gispmpf at zipmail.com.br wrote: >> >> I have a newbie question... >> Can i convert a shapefile in a map file? >> If i can ...how can i do it? >> >> Thanks >> Jo?o M?rio L Brezolin >> GIS/Analyst >> > > >What do you mean by "convert"? MapServer can convert projections >on-the-fly, it can also read several file formats. > > >Jeff > > > >-- > >Jeff McKenna >GIS Specialist >DM Solutions Group Inc. >Ottawa, Ontario >http://www.dmsolutions.ca/ > ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From steve.lime at dnr.state.mn.us Wed Sep 26 15:30:11 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 26 Sep 2001 17:30:11 -0500 Subject: [mapserver-users] Query Layer out of DB Message-ID: Seems to me the easiest way to do this is to turn the results of the SQL query into a either an attribute query or a class expression that hilites the right polys. This assumes you have a primary key between the 2 systems, a county code or something. I'd recommend the class expression option since it's the most straight forward. 3.5 has a couple of nice features that make doing this sort of thing pretty easy. Basically you set up a map with 2 parts, layer descriptions that compose the background of the map and a single layer to use in displaying the right countries. That single layer is what you manipulate the class expression for. Set the status to OFF for that layer and set up a class like: CLASS EXPRESSION /%codelist%/ ... END Then in your other app you'd create a variable that cats all the country codes together (i.e. id1|id2|id3) called codelist. MapServer CGI will substitute the value of codelist for %codelist% and there you have it, a dynamic expression. Be sure to turn the layer on. No need to go to MapScript on this one... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Alexander Pucher 09/26/01 07:11 AM >>> Hello, I want to explain my question with a little example. Let's presume, I have a map of Europe with all the european countries included. In addition to that, I have statistical data about the various countries - like population, area etc. - stored in a database system - say MySQL. I make a SQL query, showing me the 3 countries with the highest poulation figures (e.g. Germany, France, UK). The system gives me a button saying "Show in Mapserver". What I want to see is the map of Europe with the three countries hilited. I'm quite sure that this has to be done with a newLayerObj, that is simply put onto the "standard" layers. Can anybody give me some more detailed information about this. Any suggestions, code snippets, links or previously posted messages to mapserver-users-group would be great. mfg ALEX -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universit?t Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartographie and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: pucher at atlas.gis.univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto ________________________________________________________ "The toughest fight, was with my wife." -- Muhammad Ali From pramsey at refractions.net Wed Sep 26 13:28:18 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 26 Sep 2001 16:28:18 -0400 Subject: [mapserver-users] ANNOTATION/TOPONYMY versus LABELS Message-ID: <200109262315.f8QNFYW27771@lion.animals> Has there been any thought given to supporting explicit annotation? By that I mean, textual elements which have specific fixed ground heights, locations, rotations. Generally, ANNOTATION is more cartographic, and LABELS are more of a GIS thing. But (a) there are lots of organizations out there which have toponymy in annotation forms and (b) good annotation really makes a good cartographic product. From mapserver at hotmail.com Wed Sep 26 16:57:21 2001 From: mapserver at hotmail.com (=?iso-8859-1?B?RGllZ28gSi4gUGFkcvNuIFAu?=) Date: Wed, 26 Sep 2001 23:57:21 +0000 Subject: [mapserver-users] Help Compile Php/Mapscript Message-ID: Greetings I try to compile php/mapscrip in Linux RedHat 8.0 using the following tools: php-4.0.4pl1 + nightly.tar.gz + gd-1.8.4.tar.gz + freetype-2.0.4.tar.gz I apply the following thing: ./configure --with-php=/usr/include/php/ --with-apxs=/usr/sbin/apxs --without-ttf --with-apache=/usr/include/apache/ checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for c++... (cached) c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether c++ accepts -g... (cached) yes checking for ranlib... (cached) ranlib checking for flex... (cached) flex checking for yywrap in -lfl... (cached) yes checking for bison... (cached) bison -y checking if compiler supports -R... (cached) no checking if compiler supports -Wl,-rpath,... (cached) yes checking for exp in -lm... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for strdup... (cached) yes checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. checking which version of GD to use... using libgd from system libs. checking where FreeType is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. ./configure: unset: `ac_cv_lib_z_z,zlibVersion': not a valid identifier checking where Zlib is installed... checking for zlibVersion in -lz... (cached) yes using libz from system libs. checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... no checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageString16 in -lgd... yes checking for gdImageGifPtr in -lgd... no using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from system libs. checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... yes using libtiff from system libs. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include PROJ.4 support... PROJ.4 support not requested. checking whether we should include ESRI SDE support... SDE Version is 80. ESRI SDE support not requested. checking whether we should compile in MPATROL support... MPATROL support not requested. checking whether we should include OGR support... OGR support not requested. checking if GDAL support requested... no checking if PostGIS support requested... no checking whether we should include WMS support... OGC WMS Compatibility not enabled (PROJ.4 is required for WMS). checking whether we should include WMS Client Connections support... OGC WMS Client Connections not enabled (PROJ.4 and libwww required). Compiling with -DIGNORE_MISSING_DATA. checking for PHP/MapScript module options... checking whether 'perl -V' works... yes checking for location of config.h or php_config.h... /usr/include/php//main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... no PHP/MapScript module configured. checking for location of Apache headers using apxs... -I/usr/include/apache checking for location of Apache headers... -I/usr/include/apache/ creating ./config.status creating Makefile creating mapscript/php3/Makefile ------------------------------------------- Then I make and the following errors are generated: This is alone the errors: ---------------------- maplexer.c:3075: warning: `yyunput' defined but not used mapprimitive.c:749: warning: `get_centroid' defined but not used mapproject.c:66: warning: `msProjectGrowRect' defined but not used mapresample.c:409: warning: `msInitApproxTransformer' defined but not used mapresample.c:426: warning: `msFreeApproxTransformer' defined but not used mapresample.c:437: warning: `msApproxTransformer' defined but not used mapresample.c:541: warning: `msTransformMapToSource' defined but not used shptree.c: In function `main': shptree.c:38: warning: `filename' might be used uninitialized in this function shptree.c:40: warning: `byte_order' might be used uninitialized in this function shptreevis.c: In function `main': shptreevis.c:76: warning: unused variable `pabyBuf' shptreetst.c: In function `main': shptreetst.c:68: warning: `node' might be used uninitialized in this function php_mapscript.c: In function `php3_ms_img_saveImage': php_mapscript.c:3242: warning: implicit declaration of function `php_header' cc: unrecognized option `-rdynamic-Wl' --------------------------- But when trying to visualize the Interface GMAP the following Error it is generated: --------------------- Warning: MapServer Error in msGetLabelSize(): Could not find/open font in /var/www/html/gmap/htdocs/gmap75.php3 on line 530 Fatal error: Call to a member function on a non-object in /var/www/html/gmap/htdocs/gmap75.php3 on line 531 --------------------- Somebody please can to indicate me which is the error. Many grace for the help. _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From zhox at yeah.net Wed Sep 26 20:04:00 2001 From: zhox at yeah.net (Zhou Xu) Date: Thu, 27 Sep 2001 11:4:0 +0800 Subject: [mapserver-users] help! mapserver compile error(Re:Mapserver.rar) Message-ID: <20010927031517.7050D1CA6A6F3@smtp.yeah.net> Dear Mr. Armstrong, Thank you for your MapServer for Windows, I think you do a good job. Here I met with two problems when I downloaded the mapserver.rar from your web site and compile it on my computer(PHP4.06,Win 2000): First,when I unpack the mapserver35.rar file using Winrar, this error message comes up: 1 mapserver35.rar: CRC failed in mapserver35\lpng1011\projects\msvc\win32\zlib\dll_dbga\infutil.cod 2 mapserver35.rar: Unexpected end of archive and I download it again,the same. So I ignored the first problem, unpacked the rest files into my folder: E:\ms_win\mapserver35, and cd e:\ms_win\mapserver35\gdal-1.1.5, run vcvars32, then submake, just as your words in your web page. But I got the Second problem: the dos window exit after a while without message.I checked the submake.bat and found the gdal.log file catching all message which is attached with this message. Would you please help me with it? I am very thankful to you for your help. Zhou Xu ------------------------------------------------------------------------------------------- ZiZhuYuan BaishengCun No.1 NGCC Post Code, 100044 Beijing, China Phone: +86 10 86851042 Fax: +86 10 68424101 Email: std at nsdi.gov.cn ------------------------------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: gdal.log Type: application/octet-stream Size: 20402 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Wed Sep 26 21:13:51 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 26 Sep 2001 23:13:51 -0500 Subject: [mapserver-users] ANNOTATION/TOPONYMY versus LABELS Message-ID: To a certain extent yes. With an ANNOTATION layer using a LABELANGLEITEM and LABELSIZEITEM you can control the properties you mention on a label-by-label basis. The intent was to support exactly what you're refering to- pre and well defined annotation. The problem I see is that effort is usually done in support of a single map (i.e. area and scale) and may not translate well to the infinite number of viewing options of a web application, so some tuning of placement (e.g. removing overlaping labels) will undoubtedly be necessary. It's certainly not a bad place to start though. Note that OGR even goes further allowing use of a STYLEITEM where many CLASS object parameters are held in a single field allowing the ultimate in preprocessing. This is an experimental feature that has not been extended to basic shapefiles, SDE or PostGIS but will be at some point. I hope I understood the question correctly (had to look up "toponymy"). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Paul Ramsey 09/26/01 18:19 PM >>> Has there been any thought given to supporting explicit annotation? By that I mean, textual elements which have specific fixed ground heights, locations, rotations. Generally, ANNOTATION is more cartographic, and LABELS are more of a GIS thing. But (a) there are lots of organizations out there which have toponymy in annotation forms and (b) good annotation really makes a good cartographic product. From pucher at atlas.gis.univie.ac.at Thu Sep 27 01:36:20 2001 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Thu, 27 Sep 2001 10:36:20 +0200 Subject: [mapserver-users] Query Layer out of DB References: Message-ID: <3BB2E504.40203@atlas.gis.univie.ac.at> Steve, sounds great to me, but: a) can I do this with mapserver 3.4 ? b) where to put/send the variable codelist ? Append it in the URL? Like e.g.: http://path/to/mapserver.phtml?codelist=AT|DE|IT ? Doesn't work like this! The mapfile looks like this (it work, when I sustitute %codelist% with e.g. AT|DE|IT - they turn red): ... ... ... LAYER NAME nut3 DESCRIPTION "nut3" CLASSITEM "Nurgcd" # LABELITEM "Arrgcdl0" QUERYITEM "Nurgcd" TYPE POLYGON STATUS ON DATA nut3 CLASS EXPRESSION /%codelist%/ NAME "0" COLOR 255 0 0 END CLASS EXPRESSION /DE|IT|LI/ NAME "1" COLOR 188 137 137 END CLASS EXPRESSION /AT|FR|BE/ NAME "2" COLOR 188 182 137 END CLASS EXPRESSION /DK|NL/ NAME "3" COLOR 141 188 137 END CLASS EXPRESSION /CH|LU|SI/ NAME "4" COLOR 137 175 188 END CLASS EXPRESSION /EUCON|EULAK/ NAME "4" COLOR 210 210 210 END HEADER "Nurgcd NURGNM Link" TOLERANCE 1 QUERYITEM "NURGNM" QUERY EXPRESSION /./ TEMPLATE "ttt" END END -------------------- mfg ALEX Stephen Lime wrote: >Seems to me the easiest way to do this is to turn the results of the SQL query into a either an attribute query or a class expression that hilites the right polys. This assumes you have a primary key between the 2 systems, a county code or something. I'd recommend the class expression option since it's the most straight forward. 3.5 has a couple of nice features that make doing this sort of thing pretty easy. Basically you set up a map with 2 parts, layer descriptions that compose the background of the map and a single layer to use in displaying the right countries. That single layer is what you manipulate the class expression for. Set the status to OFF for that layer and set up a class like: > >CLASS > EXPRESSION /%codelist%/ > ... >END > >Then in your other app you'd create a variable that cats all the country codes together (i.e. id1|id2|id3) called codelist. MapServer CGI will substitute the value of codelist for %codelist% and there you have it, a dynamic expression. Be sure to turn the layer on. > >No need to go to MapScript on this one... > >Steve > >Stephen Lime >Data & Applications Manager > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 > >>>>Alexander Pucher 09/26/01 07:11 AM >>> >>>> >Hello, > >I want to explain my question with a little example. > >Let's presume, I have a map of Europe with all the european countries >included. In addition to that, I have statistical data about the various >countries - like population, area etc. - stored in a database system - >say MySQL. I make a SQL query, showing me the 3 countries with the >highest poulation figures (e.g. Germany, France, UK). The system gives >me a button saying "Show in Mapserver". What I want to see is the map of >Europe with the three countries hilited. > >I'm quite sure that this has to be done with a newLayerObj, that is >simply put onto the "standard" layers. Can anybody give me some more >detailed information about this. Any suggestions, code snippets, links >or previously posted messages to mapserver-users-group would be great. > >mfg >ALEX > -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universit?t Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartographie and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: pucher at atlas.gis.univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto ________________________________________________________ "The toughest fight, was with my wife." -- Muhammad Ali -------------- next part -------------- An HTML attachment was scrubbed... URL: From LLO at carlbro.dk Thu Sep 27 02:46:27 2001 From: LLO at carlbro.dk (Lars Holm Loldrup) Date: Thu, 27 Sep 2001 10:46:27 +0100 Subject: [mapserver-users] Multiple colums in itemnquery Message-ID: <01Sep27.104638cest.119057@gateway1.carlbro.dk> Is it possible to specify more than 1 column in an itemquery/itemnquery ? I have tried: a) &item=col1+col2&value=1234+5678 b) &item=col1&item=col2&value=1234&value=5678 whithout any luck. My complete query URL with ONE column that works (only for me, the server is NOT public available): http://gis6-llo/scripts/mapserver/mapserv.exe?map=d:/www/llo/dkplan.map&mode =itemnquery&mapext=shape&qlayer=qmatrikel&item=ELAVSKODE&value=150456 Best regards Lars Holm Loldrup Carl Bro as Granskoven 8, DK 2600 Glostrup Tel (dir): 4348 6466 mailto:llo at carlbro.dk http://www.carlbro.dk From pucher at atlas.gis.univie.ac.at Thu Sep 27 07:15:50 2001 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Thu, 27 Sep 2001 16:15:50 +0200 Subject: [mapserver-users] Mapserver Applications Worldwide Message-ID: <3BB33496.90500@atlas.gis.univie.ac.at> For an upcoming speech on webmapping I will give, I would need some information from the guys that actually work with UMN Mapserver. -) Experience about *big* projects. What is the maximum shape size you use, you heard of someone uses? Layer numers, mapfile dimension etc. How much can Mapserver handle? -) Tell me your favourite mapserver application, that is available online. Both in terms of technical features as well as layout. URL's would be fine. mfg ALEX -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universit?t Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartographie and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: pucher at atlas.gis.univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto ________________________________________________________ "The toughest fight, was with my wife." -- Muhammad Ali From marin at here.is Thu Sep 27 07:34:26 2001 From: marin at here.is (Ma) Date: Thu, 27 Sep 2001 14:34:26 +0000 Subject: [mapserver-users] Mapserver Applications Worldwide References: <3BB33496.90500@atlas.gis.univie.ac.at> Message-ID: <3BB338F2.EFA9AFF0@here.is> where and when you are going to give a speech on webmaping? -- Ma ___________ "... there's no such thing as an innocent user, but that's another subject." -- Dark Avenger Alexander Pucher wrote: > For an upcoming speech on webmapping I will give, I would need some > information from the guys that actually work with UMN Mapserver. > > -) Experience about *big* projects. What is the maximum shape size you > use, you heard of someone uses? Layer numers, mapfile dimension etc. How > much can Mapserver handle? > > -) Tell me your favourite mapserver application, that is available > online. Both in terms of technical features as well as layout. URL's > would be fine. > > mfg > ALEX > > -- > ________________________________________________________ > > Institut fuer Geographie und Regionalforschung > Universit?t Wien > Kartografie und Geoinformation > > Departement of Geography and Regional Research > University of Vienna > Cartographie and GIS > > Universitaetstr. 7, A-1010 Wien, AUSTRIA > > Tel: (+43 1) 4277 48644 > Fax: (+43 1) 4277 48649 > E-mail: pucher at atlas.gis.univie.ac.at > > FTP: ftp://ftp.gis.univie.ac.at > WWW: http://www.gis.univie.ac.at/karto > ________________________________________________________ > > "The toughest fight, was with my wife." -- Muhammad Ali > From ed at topozone.com Thu Sep 27 07:48:21 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 27 Sep 2001 10:48:21 -0400 Subject: [mapserver-users] Mapserver Applications Worldwide Message-ID: <13858AA1A74F30419F319ACB66A9D122D27B@mercator.topozone.com> Alex - When will you be giving this speech? We're developing an application for a customer that certainly fits your definition of *big*, but it won't be open to the public for about four weeks and I won't be able to have you talk about it before then. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Alexander Pucher [mailto:pucher at atlas.gis.univie.ac.at] Sent: Thursday, September 27, 2001 10:16 AM To: mapserver-users Subject: [mapserver-users] Mapserver Applications Worldwide For an upcoming speech on webmapping I will give, I would need some information from the guys that actually work with UMN Mapserver. -) Experience about *big* projects. What is the maximum shape size you use, you heard of someone uses? Layer numers, mapfile dimension etc. How much can Mapserver handle? -) Tell me your favourite mapserver application, that is available online. Both in terms of technical features as well as layout. URL's would be fine. mfg ALEX -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universit?t Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartographie and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: pucher at atlas.gis.univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto ________________________________________________________ "The toughest fight, was with my wife." -- Muhammad Ali From mgiesbrecht at geoarctic.com Thu Sep 27 12:11:00 2001 From: mgiesbrecht at geoarctic.com (Mark Giesbrecht) Date: Thu, 27 Sep 2001 13:11:00 -0600 Subject: [mapserver-users] Changing Scalebar units with Mapscript/3.4 Message-ID: <3BB379C4.E63C6F48@geoarctic.com> Hi All, I'm trying to use PHP/Mapscript 3.4 to change scalebar units dynamically, using the following: ...PHP code $gpoMap = ms_newMapObj("reliant_base_test.map"); if (isset($map_scalebar_units)) { $gpoMap->scalebar->set("units", $map_scalebar_units); //pure shot in the dark, as I don't know of any scalebar method } ...from mapfile SCALEBAR STYLE 0 #or 1 STATUS EMBED INTERVALS 6 COLOR 10 10 10 OUTLINECOLOR 10 10 10 UNITS miles POSITION LR LABEL TYPE BITMAP ANTIALIAS COLOR 15 15 15 SIZE small END TRANSPARENT TRUE END I haven't found anything to work; am I at a loss? Thanks, Mark -- Mark Giesbrecht, M.Sc. GIS Programmer/Analyst GeoArctic International Services Ltd. mgiesbrecht at geoarctic.com http://www.geoarctic.com phone: (403) 290-1320 fax: (403) 264-5848 From toni.underwater at tiscalinet.it Thu Sep 27 12:06:27 2001 From: toni.underwater at tiscalinet.it (Antonio Cosenza) Date: Thu, 27 Sep 2001 21:06:27 +0200 Subject: [mapserver-users] Query problem Message-ID: <01092721062709.01023@linux> Hi everybody, is it possible to retrieve the coordinates of a select object of a shapefile? Thanks a lot Toni -- L <<<<<<<<<<<< Powered by SuSE Linux 7.1 >>>>>>>>>>>>>>>> I N Kernel 2.2.18 U X Gnome 1.2 From Chip.Hankley at GASAI.Com Thu Sep 27 13:05:29 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 27 Sep 2001 15:05:29 -0500 Subject: [mapserver-users] Changing IMAGECOLOR with PHP MapScript Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3ED7@postoffice.GASAI.Com> Can someone please show me how to change the background color of my map with PHP MapScript. This is the basics of what I've tried so far... $map = ms_newMapObj("GB01.map"); $map->set("imagecolor", 0 0 0); -or- $map->set("imagecolor", setRGB(0, 0, 0)); ...neither seem to be working. TIA Chip Hankley From steve.lime at dnr.state.mn.us Thu Sep 27 13:32:19 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 27 Sep 2001 15:32:19 -0500 Subject: [mapserver-users] Query problem Message-ID: It's possible to retrieve the bounding box and the center of that bounding box using [shpext] or [shpmid], but not the actual points with the MapServer CGI. With MapScript you have full access... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Antonio Cosenza 09/27/01 02:06PM >>> Hi everybody, is it possible to retrieve the coordinates of a select object of a shapefile? Thanks a lot Toni -- L <<<<<<<<<<<< Powered by SuSE Linux 7.1 >>>>>>>>>>>>>>>> I N Kernel 2.2.18 U X Gnome 1.2 From mckenna at dmsolutions.ca Thu Sep 27 13:33:11 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Thu, 27 Sep 2001 16:33:11 -0400 Subject: [mapserver-users] Changing IMAGECOLOR with PHP MapScript References: <3DFF131E4E6D2D4198CDD758F35A53536E3ED7@postoffice.GASAI.Com> Message-ID: <3BB38D07.E3583BC@dmsolutions.ca> "Hankley, Chip" wrote: > > Can someone please show me how to change the background color of my map with > PHP MapScript. > > This is the basics of what I've tried so far... > > $map = ms_newMapObj("GB01.map"); > > $map->set("imagecolor", 0 0 0); > -or- > $map->set("imagecolor", setRGB(0, 0, 0)); > > ...neither seem to be working. > > TIA > > Chip Hankley I think you have to add a colour first before you try to set its property (see the MapObject Class and its members in http://mapserver.gis.umn.edu/doc/phpmapscript-class-guide.html#MapObj), such as the following: $color = $map->addcolor(0,0,0); $map->set("imagecolor", $color); Jeff -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ From steve.lime at dnr.state.mn.us Thu Sep 27 13:50:11 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 27 Sep 2001 15:50:11 -0500 Subject: [mapserver-users] Mapserver Applications Worldwide Message-ID: - big projects. On our own stuff we tend to be Minnesota bound, but that just lends itself to more detail. Sheer numbers of features don't necessarily matter as much as feature detail. The Recreation Compass uses ~30 layers totaling ~250Mb vector and 13Gb raster. The app answers around 10k requests a day. I do know of others managing far larger datasets (but no more detailed) such as nationwide GDT data or nationwide TIGER. How much it can handle is largely a function of application and data design. If you make the right data available at the right time in the right format I think huge data volumes can be processed. - favorite apps. Well, I'll nominate a couple of our's here at the DNR: 1) Recreation Compass (www.dnr.state.mn.us/compass.html): It's the reason the the MapServer exists. It's very usable and provides access to 5,000+ web resources that really couldn't be organized any other way. 2) Data Deli (deli.dnr.state.mn.us): This site demonstrates WHY web mapping is important to business. The site facilitates 2,400 custom data bundles each day, and this is work that our GIS staff doesn't need to do. In fact, data requests have gone to near nil, saving the organization a great deal of money. (I also think it's a cool app!) I'll let others mention their sites, there are lots of good ones out there. I assume you're going to talk about your Atlas project which is among the best MapServer apps I've seen. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Alexander Pucher 09/27/01 09:15AM >>> For an upcoming speech on webmapping I will give, I would need some information from the guys that actually work with UMN Mapserver. -) Experience about *big* projects. What is the maximum shape size you use, you heard of someone uses? Layer numers, mapfile dimension etc. How much can Mapserver handle? -) Tell me your favourite mapserver application, that is available online. Both in terms of technical features as well as layout. URL's would be fine. mfg ALEX -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universit?t Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartographie and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: pucher at atlas.gis.univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto ________________________________________________________ "The toughest fight, was with my wife." -- Muhammad Ali From John.Arthur at voicestream.com Thu Sep 27 13:58:56 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Thu, 27 Sep 2001 13:58:56 -0700 Subject: [mapserver-users] How to create [n]mile radius polygon(circle) Message-ID: <987E5CD7052ED51198F400508BA25279089F16@vamerrifms01.gsm1900.org> How can i create a [n]mile radius circle either with a polygon or symbol. I have managed to create a crude oval octigon based on 12 lat/long points but I cant seem to get a smooth circle or the correct mile radius. John Arthur From lfilak at yahoo.com Thu Sep 27 14:19:23 2001 From: lfilak at yahoo.com (Lowell Filak) Date: Thu, 27 Sep 2001 14:19:23 -0700 (PDT) Subject: [mapserver-users] Mapserver Applications Worldwide In-Reply-To: <3BB33496.90500@atlas.gis.univie.ac.at> Message-ID: <20010927211923.68438.qmail@web11302.mail.yahoo.com> As a partial answer you may want to check a prior posting from topozone.com . I would be curious to hear about large data sets also. I have a presentation coming up on the 10th of October and I'm sure I will field questions regarding scalability. I already have the information regarding the "small server farm" perl routine and the links to backhand.org . The data we manage and use with mapserver is only for a county and we consider it large but large is a relative term and we're not done implementing all of our data yet including the orthophotos. Lowell Filak --- Alexander Pucher wrote: > For an upcoming speech on webmapping I will give, I > would need some > information from the guys that actually work with > UMN Mapserver. > > -) Experience about *big* projects. What is the > maximum shape size you > use, you heard of someone uses? Layer numers, > mapfile dimension etc. How > much can Mapserver handle? > > -) Tell me your favourite mapserver application, > that is available > online. Both in terms of technical features as well > as layout. URL's > would be fine. > > mfg > ALEX > > -- > ________________________________________________________ > > Institut fuer Geographie und Regionalforschung > Universit?t Wien > Kartografie und Geoinformation > > Departement of Geography and Regional Research > University of Vienna > Cartographie and GIS > > Universitaetstr. 7, A-1010 Wien, AUSTRIA > > Tel: (+43 1) 4277 48644 > Fax: (+43 1) 4277 48649 > E-mail: pucher at atlas.gis.univie.ac.at > > FTP: ftp://ftp.gis.univie.ac.at > WWW: http://www.gis.univie.ac.at/karto > ________________________________________________________ > > "The toughest fight, was with my wife." -- Muhammad > Ali > > > __________________________________________________ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com From ed at topozone.com Thu Sep 27 14:42:06 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 27 Sep 2001 17:42:06 -0400 Subject: [mapserver-users] How to create [n]mile radius polygon(circle) Message-ID: <13858AA1A74F30419F319ACB66A9D122D298@mercator.topozone.com> John - You could use a simple circle symbol (i.e. a square ellipse) and set its SIZE appropriately. You would need to do the math to convert miles to pixels in order to set the symbol SIZE. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Arthur, John [mailto:John.Arthur at voicestream.com] Sent: Thursday, September 27, 2001 4:59 PM To: mapserver-users Subject: [mapserver-users] How to create [n]mile radius polygon(circle) How can i create a [n]mile radius circle either with a polygon or symbol. I have managed to create a crude oval octigon based on 12 lat/long points but I cant seem to get a smooth circle or the correct mile radius. John Arthur From Chip.Hankley at GASAI.Com Thu Sep 27 14:48:56 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 27 Sep 2001 16:48:56 -0500 Subject: [mapserver-users] Changing IMAGECOLOR with PHP MapScript Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3EDA@postoffice.GASAI.Com> OK, I tried this ($map is passed) $bgcolor = $map->addcolor(238,238,238); $map->set("imagecolor", $bgcolor); ...and now I get the following error: Fatal error: Property 'imagecolor' does not exist in this object. in c:\inetpub\wwwroot\seating\seating.php on line 567 Any ideas? Chip I think you have to add a colour first before you try to set its property (see the MapObject Class and its members in http://mapserver.gis.umn.edu/doc/phpmapscript-class-guide.html#MapObj), such as the following: $color = $map->addcolor(0,0,0); $map->set("imagecolor", $color); Jeff -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ -----Original Message----- From: Jeff McKenna [mailto:mckenna at dmsolutions.ca] Sent: Thursday, September 27, 2001 3:33 PM To: Hankley, Chip Cc: Users Subject: Re: [mapserver-users] Changing IMAGECOLOR with PHP MapScript "Hankley, Chip" wrote: > > Can someone please show me how to change the background color of my map with > PHP MapScript. > > This is the basics of what I've tried so far... > > $map = ms_newMapObj("GB01.map"); > > $map->set("imagecolor", 0 0 0); > -or- > $map->set("imagecolor", setRGB(0, 0, 0)); > > ...neither seem to be working. > > TIA > > Chip Hankley From mckenna at dmsolutions.ca Thu Sep 27 15:09:31 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Thu, 27 Sep 2001 18:09:31 -0400 Subject: [mapserver-users] Changing IMAGECOLOR with PHP MapScript References: <3DFF131E4E6D2D4198CDD758F35A53536E3EDA@postoffice.GASAI.Com> Message-ID: <3BB3A39B.C982AB09@dmsolutions.ca> "Hankley, Chip" wrote: > > OK, > > I tried this > ($map is passed) > $bgcolor = $map->addcolor(238,238,238); > $map->set("imagecolor", $bgcolor); > > ...and now I get the following error: > > Fatal error: Property 'imagecolor' does not exist in this object. in > c:\inetpub\wwwroot\seating\seating.php on line 567 > I'm sorry, I should read the documentation more carefully. Try this: $map = ms_newMapObj("GB01.map"); $map->imagecolor->setRGB(238,238,238); Jeff -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ From Timothy.Mackey at agso.gov.au Thu Sep 27 15:33:31 2001 From: Timothy.Mackey at agso.gov.au (Timothy.Mackey at agso.gov.au) Date: Fri, 28 Sep 2001 08:33:31 +1000 Subject: [mapserver-users] How to create [n]mile radius polygon(circle ) Message-ID: <28DE833A781BD511839600D0B772248F4F539E@agsomail1.agso.gov.au> Hi John, I create circles in mapscript like this (with a layer called "circle" already in the mapfile): $p=new pointObj(); $circle=new shapeObj($mapscript::MS_LINE); $line=new lineObj(); $layer = $map->getLayerByName('circle'); $class = $layer->getClass(0); $pi=3.141592654; for($i=0;$i<2.1*$pi;$i=$i+$pi/100) { $p->{x} = $x + $radius * cos($i); $p->{y} = $y + $radius * sin($i); $line->add($p); } $circle->add($line); $circle->draw($map,$layer,$img,undef,"damage"); Tim Mackey Internet Applications Manager AGSO - Geoscience Australia e-mail: timothy.mackey at agso.gov.au phone: (02) 6249 9813 fax: (02) 6249 9984 http://www.agso.gov.au/ ABN: 80 091 799 039 -----Original Message----- From: Arthur, John [mailto:John.Arthur at voicestream.com] Sent: Friday, 28 September 2001 6:59 AM To: mapserver-users Subject: [mapserver-users] How to create [n]mile radius polygon(circle) How can i create a [n]mile radius circle either with a polygon or symbol. I have managed to create a crude oval octigon based on 12 lat/long points but I cant seem to get a smooth circle or the correct mile radius. John Arthur From gispmpf at zipmail.com.br Thu Sep 27 21:29:17 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Fri, 28 Sep 2001 01:29:17 -0300 Subject: [mapserver-users] =?iso-8859-1?Q?shpfile?= Message-ID: <3BB0B05600006BE1@www.zipmail.com.br> What i have to do to make mapserver read a shapefile and show it in a web browser? Thanks Jo?o M?rio L. Brezolin GIS/Analyst ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From pucher at atlas.gis.univie.ac.at Fri Sep 28 00:14:07 2001 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Fri, 28 Sep 2001 09:14:07 +0200 Subject: [mapserver-users] Mapserver Applications Worldwide References: <13858AA1A74F30419F319ACB66A9D122D27B@mercator.topozone.com> Message-ID: <3BB4233F.3090300@atlas.gis.univie.ac.at> Ed, I'm very sorry, but this will take place in the course of an internal meeting, concerning an EU project (Statistical Atlas of the European Union), I'm working on currently. Takes place mid october, but won't be open to the public, I'm afraid. mfg ALEX Ed McNierney wrote: >Alex - > >When will you be giving this speech? We're developing an application >for a customer that certainly fits your definition of *big*, but it >won't be open to the public for about four weeks and I won't be able to >have you talk about it before then. > > - Ed > >Ed McNierney >Chief Mapmaker >TopoZone.com >ed at topozone.com >(978) 251-4242 > > >-----Original Message----- >From: Alexander Pucher [mailto:pucher at atlas.gis.univie.ac.at] >Sent: Thursday, September 27, 2001 10:16 AM >To: mapserver-users >Subject: [mapserver-users] Mapserver Applications Worldwide > > >For an upcoming speech on webmapping I will give, I would need some >information from the guys that actually work with UMN Mapserver. > >-) Experience about *big* projects. What is the maximum shape size you >use, you heard of someone uses? Layer numers, mapfile dimension etc. How > >much can Mapserver handle? > >-) Tell me your favourite mapserver application, that is available >online. Both in terms of technical features as well as layout. URL's >would be fine. > >mfg >ALEX > -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universit?t Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartographie and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: pucher at atlas.gis.univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto ________________________________________________________ "The toughest fight, was with my wife." -- Muhammad Ali From atod at gd.itb.ac.id Fri Sep 28 20:50:51 2001 From: atod at gd.itb.ac.id (atod) Date: Fri, 28 Sep 2001 20:50:51 -0700 Subject: [mapserver-users] shpfile References: <3BB0B05600006BE1@www.zipmail.com.br> Message-ID: <000501c14899$f1319840$062fcda7@musashi> you must create *.map file for map configuration and *.html for the template and of course you must install the mapserver at your engine. I think you must open http://terrasip.gis.umn.edu/projects/tutorial/ for detail information. regards setoadi ----- Original Message ----- From: To: "Mapserver List" Sent: Thursday, September 27, 2001 9:29 PM Subject: [mapserver-users] shpfile > What i have to do to make mapserver read a shapefile and show it in a web > browser? > > Thanks > Jo?o M?rio L. Brezolin > GIS/Analyst > > > > ___________________________________________________________ > > http://www.zipmail.com.br O e-mail que vai aonde voc? est?. > > > From steve.lime at dnr.state.mn.us Fri Sep 28 07:58:10 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 28 Sep 2001 09:58:10 -0500 Subject: [mapserver-users] How to create [n]mile radius polygon(circle) Message-ID: Some of the other methods mentioned are useful for pre-3.5 versions. In 3.5 however there is a new parameter called SIZEUNITS for CLASS objects and you can use it to draw symbols of a fixed size regardless of map scale. In theory this snippet: CLASS COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'circle' SIZE 1 UNITS MILES END would get you a red circle (assuming you've got a circle symbol) with a black outline 1 mile in diameter. I know this is not optimal and we should really support a CIRCLE layer type- in time. Perhaps you could add that to bugzilla as a feature request... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Arthur, John" 09/27/01 03:58PM >>> How can i create a [n]mile radius circle either with a polygon or symbol. I have managed to create a crude oval octigon based on 12 lat/long points but I cant seem to get a smooth circle or the correct mile radius. John Arthur From Hannah.Jensen at erdc.usace.army.mil Fri Sep 28 08:48:06 2001 From: Hannah.Jensen at erdc.usace.army.mil (Jensen, Hannah ERDC-CRREL-NH) Date: Fri, 28 Sep 2001 11:48:06 -0400 Subject: [mapserver-users] setting projection based on zoom Message-ID: <048FBD219330D211B47000A0C9B3BAFD02A618FD@crl02.crrel.usace.army.mil> Hi, Steve. I am still wrestling with this problem and wondered if you had any further suggestions. Once I figured out that lat/long could be used to specify mapext, I thought I could find the lat/long coordinates of the zoom box based on the geographic extent of the image (minlat, minlon, etc). Not so! I couldn't seem to convert with much accuracy, which I guess shouldn't have been surprising. I guess there's no way around interfacing with PROJ somehow. I saw an old posting on the web about a PROJ perl module, which I was hoping would be able to spit out the lat/long points for the zoom box. Is there a better way? If the PROJ perl module is the way to go, can you send it to me? Any suggestions are much appreciated!! Thanks! Cheers, Hannah -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, September 25, 2001 4:26 PM To: Hannah.Jensen at erdc.usace.army.mil; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] setting projection based on zoom Here's why. The extent is projected when it is read from the CGI data, so it is converted using the existing projection information it has at that time. Setting the projection afterwords has no effect but to screw things up. This is fixable. Hannah, would you be so kind as to add this to bugzilla? Thanks- Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jensen, Hannah ERDC-CRREL-NH" 09/25/01 03:09PM >>> Proof that you should leave your desk once in awhile -- someone down the hall saw my post and walked over to give me the answer. Thanks, Joel! Anyway, if mapext is specified in lat/long, it works properly. Only caveat is that the projection must be specified FIRST in the URL. So this works: http://myserver/cgi-bin/mapserv34g?mode=browse&map=..%2Fhtml%2Fusamap%2Ftige r.map&map_projection=proj=utm,zone=19&mapext=-78.12+40.14+-63.19+49.23 but this doesn't: http://myserver/cgi-bin/mapserv34g?mode=browse&map=..%2Fhtml%2Fusamap%2Ftige r.map&mapext=-78.12+40.14+63.19+49.23&map_projection=proj=utm,zone=19 Strange but true... -----Original Message----- From: Jensen, Hannah ERDC-CRREL-NH To: 'mapserver-users at lists.gis.umn.edu' Sent: 9/25/01 3:17 PM Subject: [mapserver-users] setting projection based on zoom Hi, all. I would like to be able to change projections based on how far the user is zoomed in. For example, if they start out looking at the US in Lambert Azimuthal Equal Area but zoom in on Alaska, the map should display the zoomed in area in UTM zone 6. I'm hoping to be able to do this with CGI variables, but maybe that's not possible. If I pass in the projection parameters and the map extent (in the new projection units) like so: http://myserver/cgi-bin/mapserv34g?map=../html/usamap/tiger.map&mode=bro wse& map_projection=proj=utm,zone=6&mapext=415087+7115646+546659+7214763 it works fine. But since I don't know the map extent in the new projection before conversion, what variables should I pass to properly define the map extent? Can I somehow tell it to calculate the new extent based on the old one? Is there a better way to do this? Thanks in advance for any info/advice... Cheers, Hannah From Chip.Hankley at GASAI.Com Fri Sep 28 13:33:18 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Fri, 28 Sep 2001 15:33:18 -0500 Subject: [mapserver-users] PHP, Create Layer on Fly - HELP Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3EE6@postoffice.GASAI.Com> OK, I'm totally lost. I'm trying to embed a legend into my map. I've created a PNG of my legend, and I want it to always render at the LL of my image. What I'm trying to do is create a point layer on the fly, using the PNG image as my symbol. I'm getting a couple of PARSE errors...lines 18 and 22, that are befuddling me. If I just comment these out, I get the following fatal error: Fatal error: Object has an invalid '_map_handle_' property in c:\inetpub\wwwroot\seating\seating.php on line 42 I feel like I'm misreading the 3.5 PHP docs somehow. Any help, as always, is much appreciated. Chip Here's the snippets of code: 1 $img = $map->draw(); 2 embed_legend($map, $Cur_Extent, $img); 3 4 function embed_legend($map, $Cur_Extent, $img) { 5 //$map is the current MapObject 6 //$Cur_Extent is an array where: 7 //$Cur_Extent[0] = Xmin 8 //$Cur_Extent[1] = Ymin 9 //$Cur_Extent[2] = Xmax 10 //$Cur_Extent[3] = Ymax 12 //$img is the current ImageObject 13 14 //Create a new Point Layer 15 $layer = ms_newLayerObj($map); 16 $layer->set("name", "legend"); 17 $layer->set("type", MS_LAYER_POINT); 18 $layer->set{"status", 1); //THIS GIVES ME A PARSE ERROR 19 20 //Create a new Class for the Layer 21 $class = ms_newClassObj($layer); 22 $class->set{"name", "legendclass"); //THIS GIVES ME A PARSE ERROR 23 $symb = $map->getSymbolByName('symbols/legend.png'); 24 $class->set("symbol", $symb); 25 26 //Place the point so that it is 52 pixels IN and 41 27 // pixels UP from the lower left hand conrner of 28 // the image. We are using an image that is 100 x 80 29 // pixels... this should put the image just inside 30 // the rendered image. 31 $ImgWidth = $map->width; 32 $ImgHeight = $map->height; 33 $Pixel_X = ($Cur_Extent[2] - $Cur_Extent[0]) / $ImgWidth; 34 $Pixel_Y = ($Cur_Extent[3] - $Cur_Extent[1]) / $ImgHeight; 35 $Spot_X = $Cur_Extent[0] + 52 * $Pixel_X; 36 $Spot_Y = $Cur_Extent[1] + 41 * $Pixel_Y; 37 38 $point = ms_newpointObj(); 39 $point->setXY($Spot_X, $Spot_Y); 40 $point->draw($map,$layer,$img,'legendclass',undef); 41 42 $layer->draw($img); 43 } From matthew.g.krusemark at co.multnomah.or.us Fri Sep 28 14:47:47 2001 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Fri, 28 Sep 2001 14:47:47 -0700 Subject: [mapserver-users] Blank gif outputs Message-ID: <9D07D10FA5CAD21192620008C7B14D2902699A1D@isdexch-1.co.multnomah.or.us> I am getting a blank image rendered after compiling on slackware linux with gd 1.2 that comes with the distribution. I researched the list archive and found a message pertaining to the IGNORE_MISSING_DATA flag at compile time which was present. The legend, scalebar, and reference map are all broken gifs. Any ideas? Thanks in advance,-matthew From cameron at socialchange.net.au Fri Sep 28 14:55:11 2001 From: cameron at socialchange.net.au (Cameron Shorter) Date: Sat, 29 Sep 2001 07:55:11 +1000 Subject: [mapserver-users] WMS client / Community Map Builder project Message-ID: <3BB4F1BF.EFFF637D@socialchange.net.au> Two things: Web Map Server Client ===================== 1. With some help from others, I've just finished getting standard Web Map Service (WMS) Client functionality into the geotools applet. (It is still needs polishing, but it works). 2. We've implemented double buffering, so that you can get immediate feedback as you pan/zoom, and the map layers get redrawn as they become available. 3. I have a demonstration which accesses 2 different Web Map Servers, but you should be able to access as many as you like. 4. You can see a demo at: http://newgate.socialchange.net.au:8080/geotools-dev/OGCExample.html Community Map Builder Project ============================= http://mapbuilder.sourceforge.net Building the WMS client is just the first step in my grand plan of building an open source map data entry tool - which essentially is a Web Feature Server (WFS) Client - plus a little more. I'm looking out for like minded developers, or people who just want to be keep informed. I'm particularly interested to hear ideas about developing Web Feature Servers (WFS) and whether this should be done with PostGIS. Check out the site and join one of the email lists if you are interested. http://sourceforge.net/mail/?group_id=35246 Join the announce list if you want to be notified occasionally of milestones in development. Join the developers list if you want to join discussions about further development. -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From steve.lime at dnr.state.mn.us Sun Sep 30 05:35:27 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Sun, 30 Sep 2001 07:35:27 -0500 Subject: No subject Message-ID: help Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From steve.lime at dnr.state.mn.us Sun Sep 30 08:03:58 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Sun, 30 Sep 2001 10:03:58 -0500 Subject: [mapserver-users] help message... Message-ID: Hi folks, it was a mistake. I was asking for the command list from majordomo and sent the message to the wrong list. Oops. State employees are going on strike here *ugh* and I'll be locked out of my mail system here tonite and needed to reset my email address on the user list. Don't send stuff to this address, it may not get read. Use sdlime at mninter.net instead. If you were expecting a reply from me I may not have gotten to you're message and you may want to re-send a message to that new address. Later- Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From mapserver at hotmail.com Sun Sep 30 14:17:25 2001 From: mapserver at hotmail.com (=?iso-8859-1?B?RGllZ28gSi4gUGFkcvNuIFAu?=) Date: Sun, 30 Sep 2001 21:17:25 +0000 Subject: [mapserver-users] Error Compile Windows Message-ID: Greetings I try to compile php/mapscrip in Windows 98, installing FoxServ + php4.0.6 + php_mapscript_35.zip + gmap-ms35-20010726.zip and the following error is generated: Fatal error: dl() is not supported in multithreaded Web servers - use extension statements in your php.ini in c:\foxserv\www\gmap\htdocs\gmap75.phtml on line 30 If somebody could help them he/she would thank. Thank you. _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp