From andrew at elwell.org.uk Sat Jun 1 13:19:54 2002 From: andrew at elwell.org.uk (Andrew Elwell) Date: Sat, 1 Jun 2002 21:19:54 +0100 Subject: [mapserver-users] Newbie questions re shape files and point data Message-ID: <20020601201954.GC11871@elwell.org.uk> Hi folks, I've downloaded mapserver 3.5 and sucessfully got the demo up and running (after changing to .png) on a debian box. However I DON'T have a GIS background so am now stuck... What I'm trying to achieve is a UK coastline map, with boat tracking positions marked on it. (see http://www.oytscotland.org.uk) I've managed to get a shapefile for the UK from esri's website,but it looks "squashed" - Is this because I haven't set extents? I have a mysql database of lat / lon (WGS84) positions for the boat since the start of the season. I assume these will be plotted as points? If so, how do I create a layer containing the positions for a particular voyage. I'm more than happy to teach myself, if someone can point out some useful URLs. The other option I wondered about (rather than mapserver) was to use GRASS and generate an image for each voyage. However, I also know nothing about GRASS (yet...) Many thanks for any advice, Andrew From woodbri at swoodbridge.com Sun Jun 2 14:57:26 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 02 Jun 2002 17:57:26 -0400 Subject: [mapserver-users] Easy Mapserver demo (was: New User) References: <3CF86222.6000702@maich.gr> Message-ID: <3CFA94C5.320B24E8@swoodbridge.com> Nicolas, This sounds great! Give it a try and let us know how it works. I would suspect that you might have problems with needing a writable directory pn the hard disk for mapserver to dump images, etc. into, so you might need to some how configure a hard disk directory to be mapped into the web servers htdocs tree. -Steve Nicolas Boretos wrote: > > Hi, > > I've got a simple webserver and mapserver all packaged up that basically > you click and run. I have not tried to run off a cd, but can give it a > shot if youd like. Let me know if you have any interest... > > sincerely, > > nicolas boretos > > Tyler Mitchell wrote: > > > A while back I had demoed a program that was a mini web server that could > > run straight off a cdrom. It included CGI support. Does this ring a bell > > with you? I'm trying to find this program again - any suggestions? > > > > I'd like to work with others to get Mapserver and related technologies > > working in such an environment for demostration purposes. Have you done > > any work on this sort of thing? > > > > Drop me if this sounds good to you or if you have any pointers for me. > > > > Tyler > > > > > > > > "Simon Kirkness" > > > > w.gov.au> cc: > > Sent by: Fax to: > > owner-mapserver-users at lists. Subject: [mapserver-users] New User > > gis.umn.edu > > > > > > 05/29/2002 05:41 PM > > > > > > > > > > > > > > Hi All, > > > > Am I able to run the MapServer application and Demo on a PC independant > > of a web server? > > > > > > > > <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< > > > > Simon Kirkness > > NSW Fisheries > > Project Officer > > Threatened Species > > Port Stephens Fisheries Centre > > > > Ph: (02) 4916 3810 > > Fax: (02) 4916 3880 > > > > Email: kirkness at fisheries.nsw.gov.au > > > > Note: This message is intended for the addressee named and may contain > > confidential information. If you are not the intended recipient, > > please > > delete it and notify the sender. Views expressed in this message are > > those > > of the individual sender, and are not necessarily the views of NSW > > Fisheries. > > > > (See attached file: InterScan_Disclaimer.txt) > > > > > > From pkishor at GeoAnalytics.com Sun Jun 2 19:31:32 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sun, 2 Jun 2002 21:31:32 -0500 Subject: [mapserver-users] Easy Mapserver demo (was: New User) In-Reply-To: <3CFA94C5.320B24E8@swoodbridge.com> Message-ID: <044D3C0B-769A-11D6-A248-0003936306C2@geoanalytics.com> On Sunday, June 2, 2002, at 04:57 PM, Stephen Woodbridge wrote: > Nicolas, > > This sounds great! Give it a try and let us know how it works. I would > suspect that you might have problems with needing a writable directory > pn the hard disk for mapserver to dump images, etc. into, so you might > need to some how configure a hard disk directory to be mapped into the or you could just write the images out to STDOUT... > web servers htdocs tree. > > -Steve > > Nicolas Boretos wrote: >> >> Hi, >> >> I've got a simple webserver and mapserver all packaged up that >> basically >> you click and run. I have not tried to run off a cd, but can give it a >> shot if youd like. Let me know if you have any interest... >> >> sincerely, >> >> nicolas boretos >> >> Tyler Mitchell wrote: >> >>> A while back I had demoed a program that was a mini web server that >>> could >>> run straight off a cdrom. It included CGI support. Does this ring a >>> bell >>> with you? I'm trying to find this program again - any suggestions? >>> >>> I'd like to work with others to get Mapserver and related technologies >>> working in such an environment for demostration purposes. Have you >>> done >>> any work on this sort of thing? >>> >>> Drop me if this sounds good to you or if you have any pointers for me. >>> >>> Tyler >>> >>> >>> >>> "Simon Kirkness" >>> >> >>> w.gov.au> cc: >>> Sent by: Fax to: >>> owner-mapserver-users at lists. Subject: >>> [mapserver-users] New User >>> gis.umn.edu >>> >>> >>> 05/29/2002 05:41 PM >>> >>> >>> >>> >>> >>> >>> Hi All, >>> >>> Am I able to run the MapServer application and Demo on a PC >>> independant >>> of a web server? >>> >>> >>> >>> <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< >>> >>> Simon Kirkness >>> NSW Fisheries >>> Project Officer >>> Threatened Species >>> Port Stephens Fisheries Centre >>> >>> Ph: (02) 4916 3810 >>> Fax: (02) 4916 3880 >>> >>> Email: kirkness at fisheries.nsw.gov.au >>> >>> Note: This message is intended for the addressee named and may contain >>> confidential information. If you are not the intended recipient, >>> please >>> delete it and notify the sender. Views expressed in this message are >>> those >>> of the individual sender, and are not necessarily the views of NSW >>> Fisheries. >>> >>> (See attached file: InterScan_Disclaimer.txt) >>> >>> >>> From Antti.Roppola at brs.gov.au Sun Jun 2 23:31:59 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Mon, 3 Jun 2002 16:31:59 +1000 Subject: [mapserver-users] Compile errors: mapscript_i.c PHP/Mapscript 3.6, PHP 4.1.2 Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D9950E9@ACTMAIL2> Hi all, My compile of 3.6 is bailing out when make gets to mapscript_i.c:903 "too few arguments to function msTransformShape". Has anyone struck this error before and know how to resolve it? TIA, Antti php_mapscript.c:4692: warning: implicit declaration of function `php_header' cc -O2 -Dbool=char -DHAS_BOOL -D_REENTRANT -DDEBIAN -I/usr/local/include -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS_LYR -DUSE_WMS -DUSE_GDAL -DUSE_OGR -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG -I/usr/src/mapserver_3.6.020528 -I/usr/include/w3c-libwww -I/usr/include/libxml -DHAVE_CONFIG_H -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/src/php4-4.1.2 -I/usr/src/php4-4.1.2/dl -I/usr/src/php4-4.1.2/main -I/usr/src/php4-4.1.2/Zend -I/usr/src/php4-4.1.2/include -I/usr/src/php4-4.1.2/TSRM -c -o mapscript_i.o mapscript_i.c mapscript_i.c: In function `shapefileObj_getTransformed': mapscript_i.c:903: too few arguments to function `msTransformShape' mapscript_i.c: At top level: /usr/src/mapserver_3.6.020528/maptemplate.h:16: warning: `inchesPerUnit' defined but not used make[1]: *** [mapscript_i.o] Error 1 make[1]: Leaving directory `/usr/src/mapserver_3.6.020528/mapscript/php3' vitric:/usr/src/mapserver_3.6.020528# PHP 4.1.2 is configured as: ./configure --with-mysql --with-apxs --with-regex=system --with-pdflib --with-postgresql I am configuring Mapserver as: ./configure --with-gd --without-tiff --with-proj --withogr --with-gdal --with-wmsclient --with-php=/usr/src/php4-4.1.2 --witout-pdf From Antti.Roppola at brs.gov.au Mon Jun 3 00:26:07 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Mon, 3 Jun 2002 17:26:07 +1000 Subject: [mapserver-users] RE: Compile errors: mapscript_i.c PHP/Mapscript 3.6, PHP 4.1.2 Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D9950EA@ACTMAIL2> Hi all, I just grabbed a more recent source for 3.6 (30 May) and I notice that msTransformShape in map.h now has a different number of arguments. It compiles up and dl(); likes it. :o) Cheers, Antti -----Original Message----- From: Roppola, Antti - BRS Sent: Monday, 3 June 2002 4:32 PM To: MapServer Subject: Compile errors: mapscript_i.c PHP/Mapscript 3.6, PHP 4.1.2 Hi all, My compile of 3.6 is bailing out when make gets to mapscript_i.c:903 "too few arguments to function msTransformShape". Has anyone struck this error before and know how to resolve it? TIA, Antti From bon at ivv-aachen.de Mon Jun 3 00:23:49 2002 From: bon at ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Mon, 3 Jun 2002 09:23:49 +0200 Subject: AW: [mapserver-users] Mapplet - Force Zoomdir with image buttons Message-ID: <000c01c20acf$9b423270$3e01a8c0@ivvaachen.de> Try to set the following parameters and submit the application:
Nicole ---------------------- Nicole B?meke IVV-Aachen Germany -----Urspr?ngliche Nachricht----- Von: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]Im Auftrag von Marco Catellani Gesendet: Freitag, 31. Mai 2002 19:48 An: mapserver-users at lists.gis.umn.edu Betreff: [mapserver-users] Mapplet - Force Zoomdir with image buttons Hi all. I'm using MapServer 3.6 with Mapplet Extension. The question involves zoomdir value. Using classical interface with radio button (coupled with the [zoomdir_-1|0|1_check] special character) the application run correctly. I'm trying to use image buttons instead of radio buttons to obtain the same result. What I need is that clicking the image the zoomdir value change correctly. I'm using code like this: function ZoominSub(){ document.mapserv.zoomdir.value = "1"; } Zoom in but I don't get what I want; in fact when I click the image and then I click over the map the result is a pan operation, not a zoomin one. Do you have any suggestion or advise? Thank you very much! Marco From Gunter.Rieth at stadt.mainz.de Mon Jun 3 00:42:52 2002 From: Gunter.Rieth at stadt.mainz.de (Gunter.Rieth at stadt.mainz.de) Date: Mon, 3 Jun 2002 09:42:52 +0200 Subject: [mapserver-users] MapInfo Truetype fonts Message-ID: hi Anders, this is how I do it under Windows2000 with mapserver. The file "GPGSymbole" is a .ttf Truetype fonts file and was added into fonts.txt like all the others. Then you have to find out what letter on the keyboard expresses your symbol. This can be done inside MS Word or other programms using the Font GPGSymbole and printing all the keys. LAYER NAME symbols TYPE ANNOTATION MINSCALE 500 MAXSCALE 1500 CONNECTIONTYPE OGR CONNECTION "x:/demo/data/xxxx/topkt1.TAB" STATUS DEFAULT CLASS NAME "Symbol_3484" EXPRESSION ( [OSCHL] eq 3484 ) TEXT "-" LABEL FORCE true COLOR 0 0 255 TYPE TRUETYPE FONT "GPGSymbole" SIZE 10 END END CLASS NAME "Symbol_5281" EXPRESSION ( [OSCHL] eq 5281 ) TEXT "T" LABEL COLOR 0 0 255 FORCE true TYPE TRUETYPE FONT "GPGSymbole" SIZE 10 END END ..... Gunter -------------- next part -------------- An HTML attachment was scrubbed... URL: From marichalperez at yahoo.es Mon Jun 3 01:20:51 2002 From: marichalperez at yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Mon, 3 Jun 2002 09:20:51 +0100 Subject: [mapserver-users] QueryUsingPoint Message-ID: Hi, all. I want to query a map in a particular point. Then I try: getLayerByName("layer_name"); $punto=ms_newPointObj(); $punto->setXY(458994.81,3108986.66); $resultado=$capa->queryUsingPoint($punto,MS_SINGLE,0); $imagen=$mapa->draw(); $url_imagen=$imagen->saveWebImage(MS_PNG,1,1,0); ?> When I try this, no page is sent (the server wait and wait...) What's the problem? Thanks a lot _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From mcherve at cirad.fr Mon Jun 3 01:28:20 2002 From: mcherve at cirad.fr (marie-christine herve) Date: Mon, 03 Jun 2002 10:28:20 +0200 Subject: [mapserver-users] new layers for Query : no results Message-ID: <3CFB28A4.E3CBA407@cirad.fr> hello ((first i try explain in english)) i need some help about mapscript and queries , i have a .TAB in mapinfo with many attributes (>200), and users can choose to query severals among them (no limit). I don't want to put them all in my map file but i've build new layer with ms_newLayerObj($mapO) . When i do that, i have no results for these layers , i verify that they are known in the map. Their status is ON, but i don't know if they have a template for the query. To be sure I create classes for them by copying the existing classes of a layer in my map file which have a template, but no results . I use the queryByPoint method, it works well with the layers in my mapfile. is there any other way to create new layers queriable ? please if somebody can help (PHP/Mapscript mapserver 3.5) thanks , MC in french more easy for me : J'ai beaucoup d'attributs dans un fichier .TAB de mapinfo. L'utilisateur doit pouvoir interroger les valeurs de plusieurs attributs de cette table (nombre inconnu et iilimit?). Pour g?rer ca, j'ai pens? cr?er ? la demande de nouveaux layers en fonction des choix faits par l'utilisateur. Les layers existent bien dans la l'objet MAP (v?rifi?) mais la m?thode queryByPoint ne renvoie aucun r?sultat pour les nouveaux layers, j'ai bien mis leur statut ? ON, pour avoir un TEMPLATE je leur ai cr?? des classes copi?es de classes existantes avec un template dans mon MAP file. Mais la je n'ai pas le moyen de v?rifier ... Est-ce que ma m?thode pour faire des queries est bonne ??? Merci pour tout conseil Marie-Christine From akh at le34.dk Mon Jun 3 03:01:49 2002 From: akh at le34.dk (Anders Knudstrup Hansen LE34) Date: Mon, 3 Jun 2002 12:01:49 +0200 Subject: [mapserver-users] regex question Message-ID: Hello.... I'm trying to use regex in my class expressions... The item that I'm trying to match consists of 2 parts. example: expression /^"%KT2 %U65"/ doesn't work expression "%KT2 %U65" works fine What is the problem with my regular expression????? Thanks / Anders From agnieszka_zak at interia.pl Mon Jun 3 04:23:23 2002 From: agnieszka_zak at interia.pl (=?iso-8859-2?Q?Agnieszka_=AFak?=) Date: Mon, 3 Jun 2002 13:23:23 +0200 Subject: [mapserver-users] MapScript-3.6.0-beta2 - Win32 Message-ID: <001d01c20af1$14a68a50$0200a8c0@Agnieszka> Hi, I want to use $layer->set("styleitem", "AUTO") but I get error "Fatal error: Property 'styleitem' does not exist in this object". I use win32 binaries MapScript-3.6.0-beta2. Is this property available in beta2? This change was made on 06.05 (mapserver_ChangeLog.txt ). I have tried to compile sources from cvs but I give up. Is there any possibility to find win32 binaries with this change. Thanks for any help. Regards, Agnieszka ?ak ----------------------------------------------------------------------- Dla Ciebie: "A.I. - Sztuczna Inteligencja" - najnowszy film Spielberga! >>> http://link.interia.pl/f15e1 From akh at le34.dk Mon Jun 3 05:27:36 2002 From: akh at le34.dk (Anders Knudstrup Hansen LE34) Date: Mon, 3 Jun 2002 14:27:36 +0200 Subject: [mapserver-users] Problem searching with itemquery Message-ID: I have a weird problem when I try to search for valus in a roadline MaoInfo file When I search for something that isn't there I get the message: msQueryByAttributes(): Search returned no results. No matching record(s) found. This is OK.... But when I search for something that should return results i get this message: getSymbol(): Symbol definition error. (67):(520) The URL that I use for searching looks like this: http://pc-22.le34.dk/cgi-bin/mapserv?mode=itemquery&map_Motorvej_filter=65&map_Motorvej_filteritem=Stationering&qlayer=Motorvej&layers=Motorvej&item=Stationering&imgext=-72563.000000+131605.000000+-64563.000000+139605.000000&map=d%3A%2Fmsworkbench%2Fweb%"Foresund%2Foresund.map&savequery=true&mapext=shapes I have no idea about what is wrong, and any help would be greatly appreciated.... Thanks / Anders Knudstrup Hansen From pkishor at GeoAnalytics.com Mon Jun 3 05:41:51 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 3 Jun 2002 07:41:51 -0500 Subject: [mapserver-users] regex question In-Reply-To: Message-ID: <46DA7D75-76EF-11D6-A248-0003936306C2@geoanalytics.com> try expression "/^%KT2 %U65/" if '%KT2 %U65' is the exact and only match, you could also add a $ at the end like so... /^%KT2 %U65$/ keep in mind, the single space in between will get matched... On Monday, June 3, 2002, at 05:01 AM, Anders Knudstrup Hansen LE34 wrote: > Hello.... > > I'm trying to use regex in my class expressions... The item that I'm > trying to match consists of 2 parts. > > example: > > expression /^"%KT2 %U65"/ doesn't work > expression "%KT2 %U65" works fine > > What is the problem with my regular expression????? > > Thanks > > / Anders From lfilak at medinaco.org Mon Jun 3 06:25:46 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 03 Jun 2002 09:25:46 -0400 Subject: [mapserver-users] Newbie questions re shape files and point data Message-ID: <200206031315.g53DFNe02252@yogi.medinaco.net> Just as background information: The data we have retrieved from ESRI's site/cd's before is in projection=geographic & units=decimal_degrees as opposed to the lat/lon data that you have for the boat positions. You will need to define a projection for your mapfile and also a projection for the layer that contains the boat coordinates. There is a lot of discussion regarding projections in the archives, a list of projections at http://www.remotesensing.org/geotiff/proj_list/ , and the proj.4 homepage is at http://www.remotesensing.org/proj/ which should be helpful. I also wonder if a certain user @ indigo.ie may have some more specific information regarding your problem that may aid you (hint...hint...). Lowell F. The following message was sent by Andrew Elwell on Sat, 1 Jun 2002 21:19:54 +0100. > Hi folks, > > I've downloaded mapserver 3.5 and sucessfully got the demo up and > running (after changing to .png) on a debian box. > > However I DON'T have a GIS background so am now stuck... > > What I'm trying to achieve is a UK coastline map, with boat tracking > positions marked on it. (see http://www.oytscotland.org.uk) > > I've managed to get a shapefile for the UK from esri's website,but it > looks "squashed" - Is this because I haven't set extents? > > I have a mysql database of lat / lon (WGS84) positions for the boat > since the start of the season. I assume these will be plotted as points? > > If so, how do I create a layer containing the positions for a particular > voyage. > > I'm more than happy to teach myself, if someone can point out some > useful URLs. > > The other option I wondered about (rather than mapserver) was to use > GRASS and generate an image for each voyage. However, I also know > nothing about GRASS (yet...) > > Many thanks for any advice, > > Andrew From lfilak at medinaco.org Mon Jun 3 06:38:13 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 03 Jun 2002 09:38:13 -0400 Subject: [mapserver-users] MapScript-3.6.0-beta2 - Win32 Message-ID: <200206031327.g53DRpe02437@yogi.medinaco.net> Do you mean: $layer->{styleitem} = $mapscript::MS_AUTO ? Lowell F. The following message was sent by =?iso-8859-2?Q?Agnieszka_=AFak?= on Mon, 3 Jun 2002 13:23:23 +0200. > Hi, > > I want to use $layer->set("styleitem", "AUTO") but I get error "Fatal error: > Property 'styleitem' does not exist in this object". > I use win32 binaries MapScript-3.6.0-beta2. Is this property available in > beta2? > This change was made on 06.05 (mapserver_ChangeLog.txt ). > I have tried to compile sources from cvs but I give up. Is there any > possibility to find win32 binaries with this change. > > Thanks for any help. > > Regards, > Agnieszka ?ak > > > > ----------------------------------------------------------------------- > Dla Ciebie: "A.I. - Sztuczna Inteligencja" - najnowszy film Spielberga! > >>> http://link.interia.pl/f15e1 > From mcherve at cirad.fr Mon Jun 3 07:00:10 2002 From: mcherve at cirad.fr (marie-christine herve) Date: Mon, 03 Jun 2002 16:00:10 +0200 Subject: [mapserver-users] change reference extent parameter Message-ID: <3CFB766A.862C0ECA@cirad.fr> hello i d'like to use the same mapfile for each continent i want to draw. i can change the MAP EXTENT parameter but not the REFERENCE EXTENT parameter (the refObject is read only parameter). is there a way to do that ? thanks for any idea MC J'ai des cartes ? exploiter par continent , avec les memes layer pour chacun. Donc plutot que de faire une fichier .MAP par continent je voulais faire un fichier map unique dans lequel je changerai ? chaque fois les parametres EXTENT. Malheureusement pour l'objet REFERENCE on ne peut que lire le parametre EXTENT Y a-t-il un moyen de le faire ?voluer ? tout id?e est la bienvenue merci beaucoup Marie-Christine From david.fawcett at moea.state.mn.us Mon Jun 3 07:28:17 2002 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Mon, 3 Jun 2002 09:28:17 -0500 Subject: [mapserver-users] Easy Mapserver demo (was: New User) Message-ID: A year or two back, someone had mentioned using Sambar Server to run a MapServer App off a CD. I used it to set up a couple of Mapserver 3.3 demo apps. Worked quite slick. http://www.sambar.com/ David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 > ---------- > From: Tyler Mitchell[SMTP:TMitchell at lignum.com] > Sent: Friday, May 31, 2002 10:45 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Easy Mapserver demo (was: New User) > > <> > > A while back I had demoed a program that was a mini web server that could > run straight off a cdrom. It included CGI support. Does this ring a bell > with you? I'm trying to find this program again - any suggestions? > > I'd like to work with others to get Mapserver and related technologies > working in such an environment for demostration purposes. Have you done > any work on this sort of thing? > > Drop me if this sounds good to you or if you have any pointers for me. > > Tyler > > > > "Simon Kirkness" > > w.gov.au> cc: > Sent by: Fax to: > owner-mapserver-users at lists. Subject: [mapserver-users] New User > gis.umn.edu > > > 05/29/2002 05:41 PM > > > > > > > Hi All, > > Am I able to run the MapServer application and Demo on a PC independant > of a web server? > > > > <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< > > Simon Kirkness > NSW Fisheries > Project Officer > Threatened Species > Port Stephens Fisheries Centre > > Ph: (02) 4916 3810 > Fax: (02) 4916 3880 > > Email: kirkness at fisheries.nsw.gov.au > > Note: This message is intended for the addressee named and may contain > confidential information. If you are not the intended recipient, > please > delete it and notify the sender. Views expressed in this message are > those > of the individual sender, and are not necessarily the views of NSW > Fisheries. > > (See attached file: InterScan_Disclaimer.txt) > > > From morissette at dmsolutions.ca Mon Jun 3 08:19:27 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 03 Jun 2002 11:19:27 -0400 Subject: [mapserver-users] MapScript-3.6.0-beta2 - Win32 References: <001d01c20af1$14a68a50$0200a8c0@Agnieszka> Message-ID: <3CFB88FF.E5D2C559@dmsolutions.ca> Agnieszka ?ak wrote: > > I want to use $layer->set("styleitem", "AUTO") but I get error "Fatal error: > Property 'styleitem' does not exist in this object". > I use win32 binaries MapScript-3.6.0-beta2. Is this property available in > beta2? > This change was made on 06.05 (mapserver_ChangeLog.txt ). > I have tried to compile sources from cvs but I give up. Is there any > possibility to find win32 binaries with this change. > Actually, this change was made into the 3.7dev tree only... I applied the same fix to the 3.6 branch this morning, but it was too late for the 3.6 release, so it will only be part of a future 3.6.1 release. We may have win32 binaries with this minor fix (and a few others) on our site in a couple of days. -- ------------------------------------------------------------ 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 nicolasb at maich.gr Mon Jun 3 08:27:35 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Mon, 03 Jun 2002 18:27:35 +0300 Subject: [mapserver-users] MapServer on CD demo References: <200206031315.g53DFNe02252@yogi.medinaco.net> Message-ID: <3CFB8AE7.7050305@maich.gr> Hi, I managed to find some time to play with MapServer so it runs of a CD. Included is a webserver....Directions are at http://zpro.maich.gr:20000/ro_demo/ I've included, for demo purposes a minimum MS3.4 and a small coverage; thus the size of the archive... Let me know; this runs on WIndows, but *nix are even easier... sincerely, nicolas boretos From TMitchell at lignum.com Mon Jun 3 08:34:10 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Mon, 3 Jun 2002 08:34:10 -0700 Subject: [mapserver-users] Easy Mapserver demo (was: New User) Message-ID: Can you give us some more info? This sounds like exactly what I was thinking of. What platform o/s are you using? I'm definitely interested, can you easily package it up to share? Tyler Nicolas Boretos r> cc: mapserver-users at lists.gis.umn.edu Fax to: 05/31/2002 10:56 Subject: Re: [mapserver-users] Easy Mapserver demo (was: New User) PM Hi, I've got a simple webserver and mapserver all packaged up that basically you click and run. I have not tried to run off a cd, but can give it a shot if youd like. Let me know if you have any interest... sincerely, nicolas boretos Tyler Mitchell wrote: > A while back I had demoed a program that was a mini web server that could > run straight off a cdrom. It included CGI support. Does this ring a bell > with you? I'm trying to find this program again - any suggestions? > > I'd like to work with others to get Mapserver and related technologies > working in such an environment for demostration purposes. Have you done > any work on this sort of thing? > > Drop me if this sounds good to you or if you have any pointers for me. > > Tyler > > > > "Simon Kirkness" > > w.gov.au> cc: > Sent by: Fax to: > owner-mapserver-users at lists. Subject: [mapserver-users] New User > gis.umn.edu > > > 05/29/2002 05:41 PM > > > > > > > Hi All, > > Am I able to run the MapServer application and Demo on a PC independant > of a web server? > > > > <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< > > Simon Kirkness > NSW Fisheries > Project Officer > Threatened Species > Port Stephens Fisheries Centre > > Ph: (02) 4916 3810 > Fax: (02) 4916 3880 > > Email: kirkness at fisheries.nsw.gov.au > > Note: This message is intended for the addressee named and may contain > confidential information. If you are not the intended recipient, > please > delete it and notify the sender. Views expressed in this message are > those > of the individual sender, and are not necessarily the views of NSW > Fisheries. > > (See attached file: InterScan_Disclaimer.txt) > > > From lfilak at medinaco.org Mon Jun 3 08:53:03 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 03 Jun 2002 11:53:03 -0400 Subject: [mapserver-users] change reference extent parameter Message-ID: <200206031542.g53Fgee04431@yogi.medinaco.net> referenceMapObj->{extent} should be rw not ro. Lowell F. The following message was sent by marie-christine herve on Mon, 03 Jun 2002 16:00:10 +0200. > hello > i d'like to use the same mapfile for each continent i want to draw. > i can change the MAP EXTENT parameter but not the REFERENCE EXTENT > parameter (the refObject is read only parameter). > is there a way to do that ? > thanks for any idea > MC > > > J'ai des cartes ? exploiter par continent , avec les memes layer pour > chacun. > Donc plutot que de faire une fichier .MAP par continent je voulais faire > un fichier map unique dans lequel je changerai ? chaque fois > les parametres EXTENT. > Malheureusement pour l'objet REFERENCE on ne peut que lire le parametre > EXTENT > Y a-t-il un moyen de le faire ?voluer ? > > tout id?e est la bienvenue > merci beaucoup > Marie-Christine > > From morissette at dmsolutions.ca Mon Jun 3 08:52:19 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 03 Jun 2002 11:52:19 -0400 Subject: [mapserver-users] Compile errors: mapscript_i.c PHP/Mapscript 3.6, PHP 4.1.2 References: <595FE28AB1EBD111920F0060B06B3DD70D9950E9@ACTMAIL2> Message-ID: <3CFB90B3.E8D42BF9@dmsolutions.ca> Antti.Roppola at brs.gov.au wrote: > > My compile of 3.6 is bailing out when make gets to mapscript_i.c:903 > "too few arguments to function msTransformShape". Has anyone struck > this error before and know how to resolve it? > ... > mapscript_i.c: In function `shapefileObj_getTransformed': > mapscript_i.c:903: too few arguments to function `msTransformShape' Seems like you're compiling the 3.7dev source (or the mapserver-3.6.0-beta1.tar.gz which was 3.7-dev by mistake)... please try this again with the official 3.6 release source: http://mapserver.gis.umn.edu/dist/mapserver-3.6.0.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 btolka at gtcomputing.com Mon Jun 3 08:30:06 2002 From: btolka at gtcomputing.com (Bryan Tolka) Date: Mon, 03 Jun 2002 11:30:06 -0400 Subject: [mapserver-users] Gmap demo errors Message-ID: <3CFB8B7E.3050405@gtcomputing.com> I keep getting these errors when trying to load the gmap demo. Warning: MapServer Error in msGetLabelSize(): Could not find/open font in /var/www/html/client/gmap/htdocs/gmap75.php3 on line 530 Fatal error: Call to a member function on a non-object in /var/www/html/client/gmap/htdocs/gmap75.php3 on line 531 I tried recompling with freetype 1.3 with gd-1.8.4 and mapserver 3.6, but still receive the same error. Any help would be appreciated. Thamks Bryan Tolka West Virginia University From ARyan at co.linn.or.us Mon Jun 3 09:37:01 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Mon, 3 Jun 2002 09:37:01 -0700 Subject: [mapserver-users] Problem searching with itemquery Message-ID: <614FCE5F14A6D41180C200010240D6A2AD8E47@LINNMS> I'm having problems with itemquery as well. When I use itemquery with an item/value pair, all the lots within the current image are selected rather than the one I'm querying for. Anyone else ever get this? Adam -----Original Message----- From: Anders Knudstrup Hansen LE34 [mailto:akh at le34.dk] Sent: Monday, June 03, 2002 5:28 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Problem searching with itemquery I have a weird problem when I try to search for valus in a roadline MaoInfo file When I search for something that isn't there I get the message: msQueryByAttributes(): Search returned no results. No matching record(s) found. This is OK.... But when I search for something that should return results i get this message: getSymbol(): Symbol definition error. (67):(520) The URL that I use for searching looks like this: http://pc-22.le34.dk/cgi-bin/mapserv?mode=itemquery&map_Motorvej_filter=65&m ap_Motorvej_filteritem=Stationering&qlayer=Motorvej&layers=Motorvej&item=Sta tionering&imgext=-72563.000000+131605.000000+-64563.000000+139605.000000&map =d%3A%2Fmsworkbench%2Fweb%"Foresund%2Foresund.map&savequery=true&mapext=shap es I have no idea about what is wrong, and any help would be greatly appreciated.... Thanks / Anders Knudstrup Hansen From ARyan at co.linn.or.us Mon Jun 3 10:15:53 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Mon, 3 Jun 2002 10:15:53 -0700 Subject: [mapserver-users] Problem searching with itemquery Message-ID: <614FCE5F14A6D41180C200010240D6A2AD8E99@LINNMS> A..HA!! Finally... I get the same error when my filteritem is not in quotes. Try filteritem='Stationering'. Adam -----Original Message----- From: Anders Knudstrup Hansen LE34 [mailto:akh at le34.dk] Sent: Monday, June 03, 2002 5:28 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Problem searching with itemquery I have a weird problem when I try to search for valus in a roadline MaoInfo file When I search for something that isn't there I get the message: msQueryByAttributes(): Search returned no results. No matching record(s) found. This is OK.... But when I search for something that should return results i get this message: getSymbol(): Symbol definition error. (67):(520) The URL that I use for searching looks like this: http://pc-22.le34.dk/cgi-bin/mapserv?mode=itemquery&map_Motorvej_filter=65&m ap_Motorvej_filteritem=Stationering&qlayer=Motorvej&layers=Motorvej&item=Sta tionering&imgext=-72563.000000+131605.000000+-64563.000000+139605.000000&map =d%3A%2Fmsworkbench%2Fweb%"Foresund%2Foresund.map&savequery=true&mapext=shap es I have no idea about what is wrong, and any help would be greatly appreciated.... Thanks / Anders Knudstrup Hansen From jvanulde at NRCan.gc.ca Mon Jun 3 11:21:31 2002 From: jvanulde at NRCan.gc.ca (Van Ulden, Joost) Date: Mon, 3 Jun 2002 14:21:31 -0400 Subject: [mapserver-users] Using TrueType font as a symbol - PHP/Mapscript Message-ID: <8AE17DD6AA4FD51191CD0002A5511681074A18@s5-van1-r1.nrn.nrcan.gc.ca> Hello all, We are trying to use a truetype font symbol for point locations on our map. We cannot get php/mapscript to generate a map for us. We suspect that it map have something to do with the font and or the way we have authored the mapfile. Below is the relevant details. Any suggestions would be helpful. Font file 'fonts/fonts.txt' contents: greenmap greemi__.ttf Error when php tries to process mapfile: Warning: MapServer Error in getSymbol(): (NAME):( Mapfile snippet: FONTSET fonts/fonts.txt LAYER NAME stories METADATA "DESCRIPTION" "Local Stories" "RESULT_FIELDS" "STORY_ID" END TYPE POINT STATUS DEFAULT TOLERANCE 10 TOLERANCEUNITS pixels CLASS NAME "Icon_id" TEMPLATE void SYMBOL NAME 'greemi' TYPE TRUETYPE FONT greenmap FILLED false ANTIALIAS true CHARACTER "o" END SIZE 6 COLOR 0 0 0 END END Joost van Ulden Data Integration Specialist GSC-Pacific Division 101-605 Robson St. Vancouver, BC V6B 5J3 604.666.7525 jvanulde at nrcan.gc.ca From bfischer at mpls.houstoneng.com Mon Jun 3 11:42:50 2002 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Mon, 3 Jun 2002 13:42:50 -0500 Subject: [mapserver-users] WMS Client Support Message-ID: <8879CCE0F0187742B7302A93A8B87B0902999F@mpls.houstoneng.com> Hi MapServer WMS users, I am new to the WMS feature of MapServer. I am trying to add a WMS layer to my current mapserver application and I am not having any success. I have read through the WMS Client HowTo and an old posted message (http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0204 /msg00314.html) and neither seem to work for me. I am using MapServer3.5 with WMS_Client Support. When I insert the WMS layer into the map file all I see in the web browser are my non-wms layers. None of the WMS layers seem to show up. I have tried two different WMS layers; one from the Geography Network as used in the old posted message and one by DMSoultions in the WMS HowTo. My map file is attached below. Can anyone see any reason why the WMS layers wouldn't be showing up in the web browser? Thanks, Brian # RRBDINviewer.map MAP NAME "RRBDINViewer" EXTENT -104.057243 42.47964 -89.179642 59.99992 SIZE 500 400 FONTSET "d:/rrbdin_dev/tools/mapserv35/fonts/fontset.list" SYMBOLSET "d:/rrbdin_dev/tools/mapserv35/symbols/symbol.sym" SHAPEPATH "d:/rrbdin_dev/tools/mapviewer/shapefiles/dd" UNITS METERS Projection "init=epsg:4326" END WEB IMAGEPATH "d:/rrbdin_dev/tools/mapserv35/temp_mapserv/" TEMPLATE rrbdinviewer.html MAXSCALE 7000000 END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END LEGEND STATUS ON IMAGECOLOR 204 204 153 LABEL TYPE TRUETYPE ANTIALIAS TRUE FONT arial COLOR 0 0 0 SIZE 9 END END SCALEBAR STATUS ON INTERVALS 4 SIZE 150 6 OUTLINECOLOR 120 120 120 COLOR 0 0 0 IMAGECOLOR 204 204 153 BACKGROUNDCOLOR 204 204 153 STYLE 1 UNITS MILES LABEL ANTIALIAS TRUE COLOR 0 0 0 SIZE tiny END END #scalebar REFERENCE STATUS ON EXTENT -104.057243 42.47964 -89.179642 59.99992 IMAGE "d:/rrbdin_dev/tools/mapviewer/images/rrb_refmap.gif" SIZE 150 153 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END #reference LAYER NAME "esri" METADATA "wms_title" "ESRI - WORLD" "wms_srs" "epsg:4326" "wms_connectiontimeout" "1000" END TYPE RASTER STATUS ON CONNECTION "http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceNam e=ESRI_World&VERSION=1.0.0&REQUEST=map&Layers=Rivers&Format=gif" CONNECTIONTYPE WMS PROJECTION "init=epsg:4326" END End #layer esri LAYER NAME bathmetry METADATA "wms_title" "Elevation/Bathymetry" "wms_srs" "EPSG:42403 EPSG:4269 EPSG:4326" END TYPE RASTER STATUS ON CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?VERSION=1.1.0&LAYERS=bath ymetry&FORMAT=image/gif" CONNECTIONTYPE WMS PROJECTION "init=epsg:4326" END End #layer DmSolutions LAYER NAME pol_bndry DATA "pol_bnd" STATUS DEFAULT TYPE LINE PROJECTION "init=epsg:4326" END LABELITEM "NAME" LABELMINSCALE 2000000 CLASS NAME "Political Boundary" COLOR 50 50 50 SYMBOL 2 LABEL FORCE TRUE SIZE 12 COLOR 50 50 50 OUTLINECOLOR 200 200 200 BUFFER 4 TYPE TRUETYPE FONT arial-bold ANTIALIAS TRUE END END END LAYER NAME watershed DATA "envirocanada_wtrshd" STATUS DEFAULT TYPE LINE PROJECTION "init=epsg:4326" END CLASS NAME "Red River Basin" SYMBOL 'plainline' COLOR 255 0 0 SIZE 2 END END END #map file -------------- next part -------------- An HTML attachment was scrubbed... URL: From rjames57 at yahoo.com Mon Jun 3 11:51:23 2002 From: rjames57 at yahoo.com (randy james) Date: Mon, 3 Jun 2002 11:51:23 -0700 (PDT) Subject: [mapserver-users] Query Message-ID: <20020603185123.37273.qmail@web12505.mail.yahoo.com> Hi I've been checking the sites that use Mapserver without much luck. I'm looking for an example of how to query a database so that the items returned are highlited on the map. Is it possible? For example on a forest cover layer i would like the user to have a dialog box where they would enter (something like) SELECT FROM "L_FC" ALL WHERE type="fir" And all the polygons where the column TYPE contains "fir" would be highlited or changed a colour i choose. I would think it is possible? Randy __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From jvanulde at NRCan.gc.ca Mon Jun 3 12:02:22 2002 From: jvanulde at NRCan.gc.ca (Van Ulden, Joost) Date: Mon, 3 Jun 2002 15:02:22 -0400 Subject: [mapserver-users] gd-png warning: alpha channel not supported Message-ID: <8AE17DD6AA4FD51191CD0002A5511681074A19@s5-van1-r1.nrn.nrcan.gc.ca> Does anyone know why we get this error everytime Mapserver renders an image? Joost van Ulden Data Integration Specialist GSC-Pacific Division 101-605 Robson St. Vancouver, BC V6B 5J3 604.666.7525 jvanulde at nrcan.gc.ca From lfilak at medinaco.org Mon Jun 3 14:31:41 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 03 Jun 2002 17:31:41 -0400 Subject: [mapserver-users] Query Message-ID: <200206032121.g53LLHe08563@yogi.medinaco.net> If I understand your question correctly try this: http://www.highwayengineer.co.medina.oh.us/cgi-bin/mapserv?map=mche.map&layer=parcelp&layer=parcel1&layer=parcel2&layer=parcel3&layer=parcel4&layer=parcel7&layer=parcel9&layer=parcel10&layer=parcel12&layer=mjroad&layer=municipal&layer=boundary&zoomsize=10 Click on 'Query Parcel' And enter '03817a11007' on the Parcel# line then take a look at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex5 and http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex7 Those two examples together create the highlighting. Lowell F. The following message was sent by randy james on Mon, 3 Jun 2002 11:51:23 -0700 (PDT). > Hi > > I've been checking the sites that use Mapserver > without much luck. I'm looking for an example of how > to query a database so that the items returned are > highlited on the map. Is it possible? > > For example on a forest cover layer i would like the > user to have a dialog box where they would enter > (something like) > > SELECT FROM "L_FC" ALL WHERE type="fir" > > And all the polygons where the column TYPE contains > "fir" would be highlited or changed a colour i choose. > > I would think it is possible? > > Randy > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com From pbaker at where2getit.com Mon Jun 3 15:43:23 2002 From: pbaker at where2getit.com (Paul Baker) Date: 03 Jun 2002 17:43:23 -0500 Subject: [mapserver-users] Mapscript/PHP not compatible with PHP4 in Debian Woody In-Reply-To: <3CFB8B7E.3050405@gtcomputing.com> References: <3CFB8B7E.3050405@gtcomputing.com> Message-ID: <1023144203.10878.29.camel@pbaker> I'm working on the debian package for mapserver 3.6 and I'm running into a small snag. Debian's PHP4 package is built using php's bundled regex. So it looks like I won't be building a debian package of mapserver that includes Mapscript/PHP. :-( Is there any chance that this is going to be resolved? I doubt I could convince the Debian PHP maintainers to switch to using the system regex. checking for location of config.h or php_config.h... /usr/include/php4/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... yes configure: error: !!! The current version of PHP MapScript has some problems with !!! !!! PHP4's bundled regex. Until we figure the solution to the !!! !!! problem, the workaround is to compile PHP4 with the system regex !!! !!! Please re-configure and re-compile PHP4 with --with-system-regex !!! !!! and then re-configure and re-compile MapServer. !!! make: *** [config.status] Error 1 -- Paul Baker From rjames57 at yahoo.com Mon Jun 3 16:07:57 2002 From: rjames57 at yahoo.com (randy james) Date: Mon, 3 Jun 2002 16:07:57 -0700 (PDT) Subject: [mapserver-users] Query In-Reply-To: <200206032121.g53LLHe08563@yogi.medinaco.net> Message-ID: <20020603230757.80945.qmail@web12505.mail.yahoo.com> Hi The link you give works alright, but I still cannot get it. For it to work like at the site at (highwayengineer.co.media.oh.us) i would need the cgi sript "query.cgi". Is the script query.cgi a modified verion of the perl scripts qry_point.pl and shpinfo.pl? Randy --- Lowell Filak wrote: > If I understand your question correctly try this: > http://www.highwayengineer.co.medina.oh.us/cgi-bin/mapserv?map=mche.map&layer=parcelp&layer=parcel1&layer=parcel2&layer=parcel3&layer=parcel4&layer=parcel7&layer=parcel9&layer=parcel10&layer=parcel12&layer=mjroad&layer=municipal&layer=boundary&zoomsize=10 > Click on 'Query Parcel' > And enter '03817a11007' on the Parcel# line __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com From Antti.Roppola at brs.gov.au Mon Jun 3 20:37:44 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Tue, 4 Jun 2002 13:37:44 +1000 Subject: [mapserver-users] Mapscript/PHP not compatible with PHP4 in D ebian Woody Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D9950EE@ACTMAIL2> Paul, Since PHP has to be compiled as a CGI to work with Mapserver, I compiled up a seperate PHP executable that is only used with PHPMapscript pages. Asides from not causing dependancy problems later on, it also means I don't need to worry about enforcing Mapserver related limitations on my regular PHP apps. See http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebianLinux for a detailed list of how I have set up my 3.6 box. I'd rather a seperate PHP CGI was packaged until the regex and CGI issues are fixed. Cheers, Antti P.S. I found the testing distro was for the most part up-to-date with Mapserver's requirements while stable was missing a lot. testing is supposed to be in a pretty advanced state so it should be OK. -----Original Message----- From: Paul Baker [mailto:pbaker at where2getit.com] Sent: Tuesday, 4 June 2002 8:43 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Mapscript/PHP not compatible with PHP4 in Debian Woody I'm working on the debian package for mapserver 3.6 and I'm running into a small snag. Debian's PHP4 package is built using php's bundled regex. So it looks like I won't be building a debian package of mapserver that includes Mapscript/PHP. :-( Is there any chance that this is going to be resolved? I doubt I could convince the Debian PHP maintainers to switch to using the system regex. checking for location of config.h or php_config.h... /usr/include/php4/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... yes configure: error: !!! The current version of PHP MapScript has some problems with !!! !!! PHP4's bundled regex. Until we figure the solution to the !!! !!! problem, the workaround is to compile PHP4 with the system regex !!! !!! Please re-configure and re-compile PHP4 with --with-system-regex !!! !!! and then re-configure and re-compile MapServer. !!! make: *** [config.status] Error 1 -- Paul Baker From Antti.Roppola at brs.gov.au Mon Jun 3 21:00:29 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Tue, 4 Jun 2002 14:00:29 +1000 Subject: [mapserver-users] ArcINFO grids not rendering properly with GDAL 1.1.7 Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D9950F0@ACTMAIL2> Hi all, After setting up one Arc/INFO grid that works perfectly, I set up another and whenever I display it, large chunks are not rendered: ftp://ftp.brs.gov.au/outgoing/temp/ll_grid.png Note some blocks are not rendering ftp://ftp.brs.gov.au/outgoing/temp/ll_tiff.png Export the grid to a TIFF and it works So far I have: - Reprojected from lat/long to Albers (a more integer like projection) - Upgraded from GDAL 1.1.5 to 1.1.7 (as part of building a new v3.6 box) - Looked at the grid to see if I have done anything different (items defined as 4,10,B only value & count in the .VAT) Any ideas? Antti From steveb at bundaberg.qld.gov.au Mon Jun 3 22:59:08 2002 From: steveb at bundaberg.qld.gov.au (Steven Bowden) Date: 04 Jun 2002 15:59:08 +1000 Subject: [mapserver-users] PHP/Mapscript Installation Help Message-ID: <1023170348.11262.367.camel@homer> Hi List, Hopefully somebody can point me in the right direction to help me get php/mapscript compiled and running correctly. I have managed to get mapserver up and running but I just can't seem to get mapscript to work. This is what I am using as installed from RedHat 7.3: apache-1.3.23-11 php-4.1.2-7 and mapserver-3.6.0 My configuration options for mapserver are: ./configure --with-pdf --with-proj --with-postgis --with-php=/usr/include/php --with-apxs --without-ttf >From what I can tell php was configured with the correct options. It has the options included: --with-regex=system --with-apxs=/usr/sbin/apxs (All the options were displayed at the start of phpinfo()) In order to get mapscript to compile I have to edit the Makefile in the mapscript/php3 directory. This is the line produced from the configure script: CC = gcc gcc -I. -I.. -fPIC I have to change it to CC = gcc -I. -I.. -fPIC Should I have to edit this file? Is there anything else that I might need to change? I then put mapserv and php_mapscript.so into the relevant directories. I can access the phpinfo_mapscript.phtml and it says that the module is loaded. ie: MapScript Version ($Revision: 1.104 $ $Date: 2002/04/24 20:37:32 $) MapServer version 3.6.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE I then modify the test_draw_map.phtml file to point to my working .map file. When I access this page it then gives me a fatal error due to thread safety problems and points me to the following url. http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI I then follow the instruction for running only php/mapscript scripts as CGI. After I have made all of the changes to httpd.conf and restarted httpd I try and access the test_draw_map.phtml again and I get the following error messages: Warning: Unexpected character in input: '' (ASCII=4) state=1 in /usr/bin/php on line 6081 Warning: Unexpected character in input: ' in /usr/bin/php on line 6082 Warning: Unexpected character in input: '' (ASCII=4) state=1 in /usr/bin/php on line 6082 Warning: Unexpected character in input: '' (ASCII=4) state=1 in /usr/bin/php on line 6083 Warning: Unexpected character in input: '' (ASCII=28) state=1 in /usr/bin/php on line 6084 Parse error: parse error in /usr/bin/php on line 6084 I have been bashing about with this for about the last week and not getting anywhere. If I want to use mapscript should I down grade to php 4.0.6 and mapserver 3.5 as mentioned in the php/mapscript installation howto??? Regards Steven Bowden GIS Officer Bundaber City Council From nicolasb at maich.gr Tue Jun 4 00:09:36 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Tue, 04 Jun 2002 10:09:36 +0300 Subject: [mapserver-users] Easy Mapserver demo (was: New User) References: Message-ID: <3CFC67B0.8050903@maich.gr> Tyler Mitchell wrote: > Can you give us some more info? This sounds like exactly what I was > thinking of. > What platform o/s are you using? I'm definitely interested, can you easily > package it up to share? > Hi, This is running on WindowsXP, and should have no problem on 2K/98. An identical build can be made for Linux, Solaris etc...But I assume most people would want to demo a CD from Windows. I put some more directions etc. again at http://zpro.maich.gr:20000/ro_demo/ In addition to the archive which includes some sample data and 3.4 ms, I have also put up just the MS/Webserver combination for those who want to use their own data http://zpro.maich.gr:20000/ro_demo/ms.zip Anyway, give it a shot. I burned a couple of cd's and they work fine.. nicolas From guillaume.sueur at khi2.fr Tue Jun 4 00:44:32 2002 From: guillaume.sueur at khi2.fr (Guillaume Sueur) Date: Tue, 4 Jun 2002 09:44:32 +0200 Subject: [mapserver-users] CGI problem - MS35 IIS Message-ID: <003901c20b9b$accb8290$1820a8c0@sig.fr> Hi there, Since I've build mapscript application and installed MS35gif and the libwww_dll my old mapserver CGI applications don't work anymore. IIS send back a "CGI error" page, saying "the program did not run correctly, not sending back a complete set of HTTP headers. The headers are : " It doesn't seem to come from the .map file, because even if I empty it, I still have exactly the same error. Any Idea ? Thanks Guillaume SUEUR -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at khi2.fr Tue Jun 4 01:47:06 2002 From: guillaume.sueur at khi2.fr (Guillaume Sueur) Date: Tue, 4 Jun 2002 10:47:06 +0200 Subject: [mapserver-users] Line symbol - side by side colors Message-ID: <00a001c20ba4$6ad018c0$1820a8c0@sig.fr> Hi again, I'm trying to make a line symbol (or two) to draw a line. With a width of 2 I want a side in white and the other side in red. Give me a clue ! Thanks -------------------------------------------------------- Guillaume SUEUR Ing?nieur d?veloppement SIG G?osignal 25bis av Marcel Dassault BP 5836 31505 TOULOUSE CEDEX 5 T?l : 05 61 17 47 17 -------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bon at ivv-aachen.de Tue Jun 4 02:15:02 2002 From: bon at ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Tue, 4 Jun 2002 11:15:02 +0200 Subject: [mapserver-users] rosa-sample Message-ID: <000001c20ba8$4f6f7130$3e01a8c0@ivvaachen.de> Is it possible to run the rosa applet without using PHP/Mapscript? If yes, are there any demos for that available? In the wiki there is a link to a sample html file for the use of the rosa applet: ftp://ftp.intevation.de/users/frank/mapserver/rosa-sample.zip. Can anyone explain to me how it implements the toolbar buttons zoomin, zoomout, recentre, pquery and redraw or post the missing source code? Thanks in advance, Nicole ------------------------------------ Nicole B?meke IVV-Aachen Germany From guillaume.sueur at khi2.fr Tue Jun 4 03:34:06 2002 From: guillaume.sueur at khi2.fr (Guillaume Sueur) Date: Tue, 4 Jun 2002 12:34:06 +0200 Subject: [mapserver-users] CGI problem - MS35 IIS References: <003901c20b9b$accb8290$1820a8c0@sig.fr> Message-ID: <000901c20bb3$5d5135d0$1820a8c0@sig.fr> Ok, it's been fixed up. The libttf.dll was lacking. Thx Guillaume ----- Original Message ----- From: Guillaume Sueur To: Liste MapServer Sent: Tuesday, June 04, 2002 9:44 AM Subject: [mapserver-users] CGI problem - MS35 IIS Hi there, Since I've build mapscript application and installed MS35gif and the libwww_dll my old mapserver CGI applications don't work anymore. IIS send back a "CGI error" page, saying "the program did not run correctly, not sending back a complete set of HTTP headers. The headers are : " It doesn't seem to come from the .map file, because even if I empty it, I still have exactly the same error. Any Idea ? Thanks Guillaume SUEUR -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon_ktn at hotmail.com Tue Jun 4 04:41:01 2002 From: simon_ktn at hotmail.com (simon yc) Date: Tue, 04 Jun 2002 19:41:01 +0800 Subject: [mapserver-users] RE: Interface design advice Message-ID: Hi, I need your advice on this. My Plan: Built a interface which only refreshes the map image. Can be done via frames or thing. Problem: In other parts of my website, I sometimes mention a place, say XYZ and provides a link to the map application to directly zoom to it. With non-frames solution, I can send a url like "www.map.com?place=XYZ What is the solution for frames ? TIA Simon _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From woodbri at swoodbridge.com Tue Jun 4 05:12:28 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 04 Jun 2002 08:12:28 -0400 Subject: [mapserver-users] RE: Interface design advice References: Message-ID: <3CFCAEAC.E7CACB59@swoodbridge.com> simon yc wrote: > Problem: > In other parts of my website, I sometimes mention a place, say XYZ and > provides a link to > the map application to directly zoom to it. With non-frames solution, I can > send a url like "www.map.com?place=XYZ > What is the solution for frames ? It depends on what you want to do with the link to a frame. Typically, if you already have the frames loaded and with your content in one frame and you just want the map to show in another frame you add a or you could place a link that would popup a window with the map's parent frameset and use some javascript to get it to load the correct "www.map.com?place=XYZ" location. -Steve From twan at twansoft.com Tue Jun 4 05:40:54 2002 From: twan at twansoft.com (Twan Kogels) Date: Tue, 04 Jun 2002 14:40:54 +0200 Subject: [mapserver-users] Problem with postgis layer Message-ID: <5.0.0.25.2.20020604143329.019400c8@pop3.wish.nl> Hi, I have got a strange problem with a postgis layer in mapserver 3.5. A example to illustrate my problem: the following layer definition works: LAYER CONNECTIONTYPE postgis NAME "poi_layer" # Connect to a remote spatial database CONNECTION "user=postgres dbname=food host=10.0.0.2" # Get the lines from the 'geom' column of the 'roads' table DATA "the_geom from pc6punten" FILTER "pc6 like '1797%'" STATUS ON TYPE POINT CLASSITEM "pc6" CLASS TEMPLATE "ttt_query.html" SYMBOL 2 SIZE 8 COLOR 0 0 0 END TOLERANCE 5 END but when i try the following layer definition: LAYER CONNECTIONTYPE postgis NAME "poi_layer" # Connect to a remote spatial database CONNECTION "user=postgres dbname=food host=10.0.0.2" # Get the lines from the 'geom' column of the 'roads' table DATA "p.the_geom from pc6punten p" FILTER "p.pc6 like '1797%'" STATUS ON TYPE POINT CLASSITEM "pc6" CLASS TEMPLATE "ttt_query.html" SYMBOL 2 SIZE 8 COLOR 0 0 0 END TOLERANCE 5 END The layer doesn't return any results. Does anyone know what i'm doing wrong? Thanks, -twan -- http://www.twansoft.com From imap at chesapeake.net Tue Jun 4 07:06:15 2002 From: imap at chesapeake.net (imap at chesapeake.net) Date: Tue, 04 Jun 2002 10:06:15 -0400 Subject: [mapserver-users] shapeObj mapscript comments Message-ID: <3CFCC957.23EC3959@chesapeake.net> ok guys... using perl mapscript, still trying to fix a bunch of broken code after going to mapserv3.5, somewhere along the line shapeObj->draw(mapObj,layerObj,image,integer class_index,character text) changed to shapeObj->draw(mapObj,layerObj,image) My question here is... How do you classify the shape based on the classes defined for layerObj? the shapeObj->draw() method is missing attributes, so any clue how to get around this? Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions From schut at GisSrv.IenD.wau.nl Tue Jun 4 07:03:31 2002 From: schut at GisSrv.IenD.wau.nl (Vincent Schut) Date: Tue, 04 Jun 2002 16:03:31 +0200 Subject: [mapserver-users] rectangle in reference map Message-ID: <200206041603.32150.schut@gissrv.iend.wau.nl> Probably it is something quite stupid. I hesitated to question it here, but it seems my only hope left... I'd like to have a nice red rectangle in my reference map, showing me where I am in the map. I've set up a reference map in the map file, which displays OK. Only no red (neither other color) rectangle appears. Do I need to do something more than just refimage=$map->drawReferenceMap(); ? A rectangle query or something? The mapfile definition page mentions something like that at the reference object, but I can't find anything similar in the php_mapscript object definitions like a queryRectangle method or something similar... All images that I use are png. PHP=4.1.2 Mapserver/mapscript = 3.6.0 I already tried playing around with the color and outlinecolor items, but nothing happened. Thanks, Vincent. ------------------------------------------------------------ Here comes my map file: NAME "samboja" SIZE 400 440 STATUS ON EXTENT 492499.336 9879200.289 502498.366 9890199.289 UNITS METERS TRANSPARENT ON PROJECTION "proj=utm" "ellps=GRS80" "zone=50" "south" "no_defs" END SHAPEPATH "./data" WEB IMAGEPATH "/home/samboja/ms_tmp/" IMAGEURL "/samboja/ms_tmp/" MAXSCALE 70860 MINSCALE 4428 END REFERENCE IMAGE "/home/samboja/ms_data/data/reference/sl_ref.png" EXTENT 492499.336 9879200.289 502498.366 9890199.289 COLOR 255 0 0 OUTLINECOLOR 255 0 0 SIZE 100 110 STATUS ON END LAYER NAME "IKONOS2001" MAXSCALE 70860 MINSCALE 70859 DATA "tilez0/1x1.png" TYPE RASTER STATUS ON END LAYER NAME "IKONOS2001" MAXSCALE 70859 MINSCALE 35429 TILEINDEX "tilez1_idx.shp" TILEITEM "Location" TYPE RASTER STATUS ON END LAYER NAME "IKONOS2001" MAXSCALE 35429 MINSCALE 17714 TILEINDEX "tilez2_idx.shp" TILEITEM "Location" TYPE RASTER STATUS ON END LAYER NAME "IKONOS2001" MAXSCALE 17714 MINSCALE 8857 TILEINDEX "tilez3_idx.shp" TILEITEM "Location" TYPE RASTER STATUS ON END LAYER NAME "IKONOS2001" MAXSCALE 8857 MINSCALE 4428 TILEINDEX "tilez4_idx.shp" TILEITEM "Location" TYPE RASTER STATUS ON END LAYER NAME "IKONOS2001" MAXSCALE 4428 MINSCALE 0 TILEINDEX "tilez5_idx.shp" TILEITEM "Location" TYPE RASTER STATUS ON END LAYER NAME "TILETEST" DATA "tilez1_idx.shp" TYPE POLYGON CLASS COLOR -1 -1 -1 OUTLINECOLOR 0 200 0 END STATUS ON END END From pramsey at refractions.net Tue Jun 4 07:59:15 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 04 Jun 2002 07:59:15 -0700 Subject: [mapserver-users] Problem with postgis layer References: <5.0.0.25.2.20020604143329.019400c8@pop3.wish.nl> Message-ID: <3CFCD5C3.1B181D0A@refractions.net> What you are doing wrong is inferring from the SQL-like syntax of the DATA parameter that the values are actually being passed verbatim to the SQL parser. They are not. They are being parsed by the postgis map layer, and then used in SQL appropriately. So, your SQL riff on the standard layout actually breaks the system. Twan Kogels wrote: > DATA "p.the_geom from pc6punten p" > The layer doesn't return any results. Does anyone know what i'm doing wrong? -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From DMartin at erac.com Tue Jun 4 07:57:10 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 4 Jun 2002 09:57:10 -0500 Subject: [mapserver-users] RE: Interface design advice Message-ID: Without javascript, you can set the target for your form to be the frame.
If your audience is purely internal, and you know they will all be using Internet Explorer, I'd suggest an