From vatsavai@cs.umn.edu Sun Dec 1 02:30:25 2002 From: vatsavai@cs.umn.edu (Ranga Raju Vatsavai) Date: Sat, 30 Nov 2002 20:30:25 -0600 (CST) Subject: [Mapserver-users] welcome Message-ID: <200212010230.UAA07546@pluto.cs.umn.edu> Test message after mapserver-users mailing list is created with mailman. Subscription information can be found at http://lists.gis.umn.edu/mailman/listinfo/mapserver-users Thanks Raju ---- From fx.gamoy@mapxplore.com Mon Dec 2 10:37:23 2002 From: fx.gamoy@mapxplore.com (fx gamoy) Date: Mon, 2 Dec 2002 10:37:23 -0000 Subject: [Mapserver-users] log files problem Message-ID: <005301c299ee$ccfc53f0$0201a8c0@mapxplore.com> C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_0050_01C299EE.CCF52800 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hello everybody, i've goto problems with my log file. What is the way to configure a log.txt file in a log directory? that's = to say http://mymap.com/log/log.txt I have defined some parameters in my test.map (WEB) globprefs.php but = nothing occurs. i am using apache in a winnt plateform whit mapserver3.6.3 and = php/mapscript. Thanks fx gamoy http://www.mapxplore.com/ ------=_NextPart_000_0050_01C299EE.CCF52800 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
------=_NextPart_000_0105_01C299F5.6F2DB960-- From fx.gamoy@mapxplore.com Mon Dec 2 15:21:40 2002 From: fx.gamoy@mapxplore.com (fx gamoy) Date: Mon, 2 Dec 2002 15:21:40 -0000 Subject: [Mapserver-users] New mapserver application Message-ID: <001401c29a16$83978ae0$0201a8c0@mapxplore.com> C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_0011_01C29A16.8367C850 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Mapserver-list members, i am proud to present my first MapServer project on http://www.mapxplore.com/ The system is based on MapServer and php/mapscript hosted with Apache. Have fun.. and thanks for all your replies fx gamoy ------=_NextPart_000_0011_01C29A16.8367C850 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable----- Original Message -----From:=20 nida = Khan=20Sent: Monday, December 02, 2002 = 10:46=20 AMSubject: [Mapserver-users] = raster=20 layerok... I am very much confuse here, = I've got=20 only .tif file from
ordnancesurvey website. There is no download = avaliable=20 for twf file!!!!
Where do I get twf=20 file???
Regards
Nida.
----- Original Message = -----
From:=20 "Hankley, Chip" <Chip.Hankley@GASAI.Com>
To: = "'nida Khan'"=20 <nida@webstar.co.uk>
Cc: = "MapServer List=20 (E-mail)" <mapserver-users@lists.gis.umn.edu>
Sent:=20 Friday, November 29, 2002 2:26 PM
Subject: RE: [mapserver-users] = raster=20 layer
> Nida,
>
> > it gives me this=20 error
> > readWorldFile(): Unable to access file. = Unable to=20 open
> > world file for reading.
>
> This = indicates=20 to me that your image doesn't have a valid world file, or
> that = it=20 isn't GeoTif. For the image to display correctly, it needs to = have
>=20 that. Is there a 'tq38sw.tfw' file in the directory?
>
>=20 Chip
-----Original Message-----
From: nida Khan=20 [mailto:nida@webstar.co.uk]
Sent: Monday, December 02, 2002 = 11:48=20 AM
To: Ed McNierney
Subject: Re: [Mapserver-users] = raster=20 layerHi ,this is what it contains0.635
0
0
-0.635
530000
185000Nida.= ------_=_NextPart_001_01C29A30.AF0A62D1-- From steve.lime@dnr.state.mn.us Mon Dec 2 20:55:41 2002 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Mon, 02 Dec 2002 14:55:41 -0600 Subject: [mapserver-users] v. 3.7 release? Message-ID:----- Original Message -----From:=20 Ed = McNierney=20To: nida KhanSent: Monday, December 02, = 2002 3:57=20 PMSubject: RE: = [Mapserver-users] raster=20 layerNida -What are the contents of your world (TFW) = file?- Ed-----Original Message-----
From: nida Khan=20 [mailto:nida@webstar.co.uk]
Sent: Monday, December 02, = 2002=20 10:30 AM
To: Ed McNierney
Subject: Re:=20 [Mapserver-users] raster layerHi Again,Once again thank you so much for your=20 help!.
There r files in the = tmp=20 directory alright, I can c scalebar fine, I tried to view the = image=20 outside the mapserver as well, but still it prints it as=20 blank." If you're really = retrieving files=20 but they're blank images, then your data doesn't intersect the map = image=20 requested."ok, I've got only one layer in the map file = for that=20 raster image, got .tif and .tfw file in my raster = directorychanged the extents as mentioned in last=20 email.whats next?Me lost in GIS worldNida.Nida -I'm not really sure what that information means, but = you need to=20 figure out which of these three things is = happening:1. MapServer is creating and your browser is displaying = a=20 perfectly valid image that is blank.2. MapServer is creating an image in the IMAGEPATH = directory but=20 your browser can't retrieve it.3. MapServer cannot create an image in the IMAGEPATH=20 directory.These are three different problems with three different = fixes. You should check the IMAGEPATH directory after = trying to=20 display the map a few times - you should see more temporary = image files=20 being created there. If they're not being created, then = your=20 MapServer setup doesn't have permission to write to that=20 directory. If the files are created but you can't retrieve = them in=20 your browser, then your Web site doesn't have access to those=20 files. If you're really retrieving files but they're blank = images,=20 then your data doesn't intersect the map image=20 requested.- Ed-----Original Message-----
From: nida Khan=20 [mailto:nida@webstar.co.uk]
Sent: Monday, December = 02, 2002=20 9:09 AM
To: Ed McNierney
Subject: Re:=20 [Mapserver-users] raster layerThank you so much for your = reply!I right clicked on that blank image, and = it does not=20 look like a image to me,protocol=3Dhyper texttype=3Dhtml documentaddress=3D"full address at time of = init."size=3D2460I changed the extents before I did this, = nothing=20 make any diffrencehere is my content of map = fileNAME WALES
#EXTENT 127000.0 160000.0 = 380000.0=20 402000.0
EXTENT 127000.0 160000.0 530000.0 185000.0
SIZE = 400=20 400
FONTSET=20 "/var/www/html/application/fonts/fonts.list"
SHAPEPATH=20 "/var/www/html/application/"
UNITS = KILOMETERS
=20
WEB
TEMPLATE wales2.html
IMAGEPATH=20 "/var/www/html/application/tmp/"
IMAGEURL=20 "/application/tmp/"
END
QUERYMAP
SIZE 200 = 200
STATUS=20 ON
STYLE HILITE
COLOR 255 0=20 0
ENDSYMBOL
NAME 'circle'
= TYPE=20 ELLIPSE
POINTS 1 1 END
FILLED=20 TRUE
END
LAYER
# NAME=20 "Layer_CIB"
NAME "wales_boundary"
DATA=20 "raster/tq38sw.tif"
TYPE RASTER =
=20 STATUS DEFAULT
OFFSITE 0
ENDEND # end of map fileI have .tif and .tfw file in my raster=20 directory!Really appreciate your help!RegardsNida.----- Original Message ----- =From:=20 Ed=20 McNierneyTo: nida KhanSent: Monday, = December 02, 2002=20 1:53 PMSubject: RE: = [Mapserver-users]=20 raster layerNida -If you are getting a blank image (not a MISSING = image, but a=20 real, valid image that is blank) that means that the data = you have=20 do not overlap the extents requested for the map. Look = at the=20 EXTENTS line in your map file; the numbers should be similar = to the=20 last two lines in the TFW file.= - = EdEd McNierney
President and Chief=20 Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 = Princeton=20 Street, Suite 305
North Chelmsford, MA =20 01863
ed@topozone.com
(978) 251-4242 =-----Original = Message-----
From: nida=20 Khan [mailto:nida@webstar.co.uk]
Sent: Monday, = December=20 02, 2002 6:25 AM
To: nida Khan;=20 mapserver-users@lists.gis.umn.edu
Subject: Re:=20 [Mapserver-users] raster layerI have downloaded a big zip file, = whith all the=20 .twf files.Now I have copied the related twf file = in the=20 same directory and yapee, not gettting that error any = more,=20 instead a blank image is coming up :(. (anyone have any = idea what=20 might be the issue this time)thats something new to = explore!Thank you very much every for your = helpful=20 repliesRegardsNida.----- Original Message = -----=20From:=20 nida KhanSent: Monday, = December 02,=20 2002 10:46 AMSubject: = [Mapserver-users]=20 raster layerok... I am very much = confuse=20 here, I've got only .tif file from
ordnancesurvey = website.=20 There is no download avaliable for twf = file!!!!
Where do=20 I get twf file???
Regards
Nida.
----- = Original=20 Message -----
From: "Hankley, Chip" <Chip.Hankley@GASAI.Com>
To:=20 "'nida Khan'" <nida@webstar.co.uk>
Cc:=20 "MapServer List (E-mail)" <mapserver-users@lists.gis.umn.edu>
Sent: Friday, November 29, 2002 2:26=20 PM
Subject: RE: [mapserver-users] raster=20 layer
> Nida,
>
> > it = gives me=20 this error
> > readWorldFile(): Unable to = access=20 file. Unable to open
> > world file for=20 reading.
>
> This indicates to me that your = image=20 doesn't have a valid world file, or
> that it = isn't=20 GeoTif. For the image to display correctly, it needs to=20 have
> that. Is there a 'tq38sw.tfw' file in the=20 directory?
>
>=20 = ChipI think Dan's about right with the timing. There are still a couple of important additions to come in the next couple of weeks: joins and Oracle Spatial queries among them. I think we should shoot for a January 1st beta with things improving throughout Dec. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 11/26/02 09:55AM >>> John McCue wrote: > > Is there a time estimate for when version 3.7 might become the current > version of MapServer? There are a number of features that I would like to > implement from v3.7 as soon as it is ready. > It's getting closer every day, we had talked with Steve about releasing at end of November but it's not ready yet... I hope to see a release or at least a very stable beta before Christmas. This is just from my point of view, Steve may want to add some comments. BTW, the CVS version is starting to be in very good shape now, so if you (or others experienced users on the list) want to help then you can download the source from CVS (or nightly builds) and then try to port your applications to 3.7 and report issues that you find via bugzilla. The most imporant is to report things that used to work in 3.6 and don't work in 3.7. Also, if someone wanted to create and maintain a "3.6 to 3.7 migration guide" (a Wiki page), that would help a lot too. A good starting point for this would be the file HISTORY.TXT in the source package, and a few posts to the list: About migrating existing PHP code: ---- http://lists.dmsolutions.ca/pipermail/mapserver-users/2002-November/042694.html About the new 24 bits support: ---- http://lists.dmsolutions.ca/pipermail/mapserver-users/2002-October/042386.html http://lists.dmsolutions.ca/pipermail/mapserver-users/2002-November/042854.html About the new SWF Flash and PDF support: ---- http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html http://www2.dmsolutions.ca/mapserver/dl/PDFMapserverUserDoc.html Best Regards, Daniel -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From rmurray@NRCan.gc.ca Mon Dec 2 22:20:10 2002 From: rmurray@NRCan.gc.ca (Murray, Ross) Date: Mon, 2 Dec 2002 17:20:10 -0500 Subject: [Mapserver-users] Bad SDE query Message-ID: <3E3C279AF3F9D411BAA00002A529150E02C51925@s0-ott-x10.nrn.nrcan.gc.ca> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C29A50.FA6528F0 Content-Type: text/plain; charset="iso-8859-1" If I dynamically create a query of my shapefile-based map as ('[CODE]' eq '3a' OR '[CODE]' eq '3b') there are some darn cool results (even if I say so myself). Yet this ('[CODE]' eq '5201' OR '[CODE]' eq '5201') indentically constructed query on another (SDE layer) map produces the following error msSDELayerWhichShapes(): SDE error. SE_stream_query(): Invalid SQL syntax. (-42). If I have the same query templates for each attempt, can anyone suggest why I might be getting the worse result? < > ------_=_NextPart_000_01C29A50.FA6528F0 Content-Type: application/octet-stream; name="Murray, Ross.vcf" Content-Disposition: attachment; filename="Murray, Ross.vcf" BEGIN:VCARD VERSION:2.1 N:Murray;Ross FN:Murray, Ross ORG:NRCAN.RNCAN;ESS.SST TITLE:Information Management and GIS Technician TEL;WORK;VOICE:947-1411 (613) TEL;CELL;VOICE: ADR;WORK:;2 - 255;601 Booth Street;Ottawa;ON;K1A 0E8;CA LABEL;WORK;ENCODING=QUOTED-PRINTABLE:2 - 255=0D=0A601 Booth Street=0D=0AOttawa, ON K1A 0E8=0D=0ACA EMAIL;PREF;INTERNET:rmurray@NRCan.gc.ca REV:20020717T171556Z END:VCARD ------_=_NextPart_000_01C29A50.FA6528F0-- From vinko@cprsig.cl Tue Dec 3 09:47:04 2002 From: vinko@cprsig.cl (Vinko Vrsalovic) Date: Tue, 3 Dec 2002 04:47:04 -0500 Subject: [Mapserver-users] Scalable images HOWTO? Message-ID: <20021203094704.GA8183@landsat.cprsig.cl> Hello, I need to put images (PNG files generated independently from Mapserver) over a polygon layer. My current approach to this is to generate a point layer with points in the places I want to put the images in. Then, using pixmap symbols I draw the images (I miss a symbol object in PHP/Mapscript :-) ). That works to the point of displaying the image in the point. The only problem is that, if I want the symbol to scale, it gets distorted. This is expected to happen, but I need to preserve readability of some texts in the image. What can I do in the process of generating the image to reduce the impact of scaling? Or the only reasonable solution is regenerating each time the image (ie, doing the scaling on my own)? Thanks, -- Vinko Vrsalovic http://www.cprsig.cl From jhart@frw.uva.nl Tue Dec 3 09:43:43 2002 From: jhart@frw.uva.nl (Jan Hartmann) Date: Tue, 03 Dec 2002 10:43:43 +0100 Subject: [Mapserver-users] Bad SDE query References: <3E3C279AF3F9D411BAA00002A529150E02C51925@s0-ott-x10.nrn.nrcan.gc.ca> Message-ID: <3DEC7CCF.2000605@frw.uva.nl> I'm not sure, but try leaving the quotes out in the second example (number variables can go unquoted): ([CODE] eq 5201 or [CODE] eq 5201) # why twice the same? Jan Hartmamm Murray, Ross wrote: > If I dynamically create a query of my shapefile-based map as > > ('[CODE]' eq '3a' OR '[CODE]' eq '3b') > > there are some darn cool results (even if I say so myself). Yet this > > ('[CODE]' eq '5201' OR '[CODE]' eq '5201') > > indentically constructed query on another (SDE layer) map produces the > following error > > msSDELayerWhichShapes(): SDE error. SE_stream_query(): Invalid SQL syntax. > (-42). > > If I have the same query templates for each attempt, can anyone suggest why > I might be getting the worse result? > > < > From nida@webstar.co.uk Tue Dec 3 11:24:02 2002 From: nida@webstar.co.uk (nida Khan) Date: Tue, 3 Dec 2002 11:24:02 -0000 Subject: [Mapserver-users] raster layer References: <13858AA1A74F30419F319ACB66A9D1221F39C7@mercator.topozone.com> Message-ID: <00d201c29abe$7c1f8760$a901a8c0@private.webstar.co.uk> This is a multi-part message in MIME format. ------=_NextPart_000_00CF_01C29ABE.7BAB8FE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thank you so much Ed and THE list, Ed you r a *, great! I can c the map now , will play around with X and Y axis to suit our = need! :). btw is there anyone using mapserver in UK with ordnancesurvey data?? just curious what conversion tools u r using, and what's happening = outside my office :) Kind Regards Nida. ----- Original Message -----=20 From: Ed McNierney=20 To: nida Khan ; mapserver-users@lists.gis.umn.edu=20 Sent: Monday, December 02, 2002 6:29 PM Subject: RE: [Mapserver-users] raster layer Nida - Your EXTENT line: EXTENT 127000.0 160000.0 530000.0 185000.0 says "use a minimum X of 127000, a minimum Y of 160000, a maximum X of = 530000, and a maximum Y of 185000". However, the upper-left corner of = your image is at X =3D 530000, Y =3D 185000. This means that the entire = image data lies just to the right of the area you're viewing, so you'll = get no map. Try changing the line to: EXTENT 530000.0 160000.0 555000.0 185000.0 and see what you get. I can't tell how large your image is, but this = should make SOMETHING visible in the upper-left corner of the map image. = The extents for a map image are normally provided as FORM variables, so = you can control the area mapped interactively. - Ed -----Original Message----- From: nida Khan [mailto:nida@webstar.co.uk] Sent: Monday, December 02, 2002 11:48 AM To: Ed McNierney Subject: Re: [Mapserver-users] raster layer Hi , this is what it contains 0.635 0 0 -0.635 530000 185000 Nida. ----- Original Message -----=20 From: Ed McNierney=20 To: nida Khan=20 Sent: Monday, December 02, 2002 3:57 PM Subject: RE: [Mapserver-users] raster layer Nida - What are the contents of your world (TFW) file? - Ed -----Original Message----- From: nida Khan [mailto:nida@webstar.co.uk] Sent: Monday, December 02, 2002 10:30 AM To: Ed McNierney Subject: Re: [Mapserver-users] raster layer Hi Again, Once again thank you so much for your help!. There r files in the tmp directory alright, I can c scalebar = fine, I tried to view the image outside the mapserver as well, but still = it prints it as blank. " If you're really retrieving files but they're blank images, = then your data doesn't intersect the map image requested." ok, I've got only one layer in the map file for that raster = image, got .tif and .tfw file in my raster directory changed the extents as mentioned in last email. whats next? Me lost in GIS world Nida. Nida - I'm not really sure what that information means, but you need = to figure out which of these three things is happening: 1. MapServer is creating and your browser is displaying a = perfectly valid image that is blank. 2. MapServer is creating an image in the IMAGEPATH directory = but your browser can't retrieve it. 3. MapServer cannot create an image in the IMAGEPATH = directory. These are three different problems with three different fixes. = You should check the IMAGEPATH directory after trying to display the = map a few times - you should see more temporary image files being = created there. If they're not being created, then your MapServer setup = doesn't have permission to write to that directory. If the files are = created but you can't retrieve them in your browser, then your Web site = doesn't have access to those files. If you're really retrieving files = but they're blank images, then your data doesn't intersect the map image = requested. - Ed -----Original Message----- From: nida Khan [mailto:nida@webstar.co.uk] Sent: Monday, December 02, 2002 9:09 AM To: Ed McNierney Subject: Re: [Mapserver-users] raster layer Thank you so much for your reply! I right clicked on that blank image, and it does not look = like a image to me, protocol=3Dhyper text type=3Dhtml document address=3D"full address at time of init." size=3D2460 I changed the extents before I did this, nothing make any = diffrence here is my content of map file NAME WALES #EXTENT 127000.0 160000.0 380000.0 402000.0 EXTENT 127000.0 160000.0 530000.0 185000.0 SIZE 400 400 FONTSET "/var/www/html/application/fonts/fonts.list" SHAPEPATH "/var/www/html/application/" UNITS KILOMETERS =20 WEB TEMPLATE wales2.html IMAGEPATH "/var/www/html/application/tmp/" IMAGEURL "/application/tmp/" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE =20 COLOR 255 0 0 END SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END =20 LAYER # NAME "Layer_CIB" NAME "wales_boundary"=20 DATA "raster/tq38sw.tif" TYPE RASTER =20 STATUS DEFAULT OFFSITE 0 END END # end of map file I have .tif and .tfw file in my raster directory! Really appreciate your help! Regards Nida. =20 ----- Original Message -----=20 From: Ed McNierney=20 To: nida Khan=20 Sent: Monday, December 02, 2002 1:53 PM Subject: RE: [Mapserver-users] raster layer Nida - If you are getting a blank image (not a MISSING image, but = a real, valid image that is blank) that means that the data you have do = not overlap the extents requested for the map. Look at the EXTENTS line = in your map file; the numbers should be similar to the last two lines in = the TFW file. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242=20 -----Original Message----- From: nida Khan [mailto:nida@webstar.co.uk] Sent: Monday, December 02, 2002 6:25 AM To: nida Khan; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] raster layer I have downloaded a big zip file, whith all the .twf = files. Now I have copied the related twf file in the same = directory and yapee, not gettting that error any more, instead a blank = image is coming up :(. (anyone have any idea what might be the issue = this time) thats something new to explore! Thank you very much every for your helpful replies Regards Nida. ----- Original Message -----=20 From: nida Khan=20 To: mapserver-users@lists.gis.umn.edu=20 Sent: Monday, December 02, 2002 10:46 AM Subject: [Mapserver-users] raster layer ok... I am very much confuse here, I've got only .tif = file from ordnancesurvey website. There is no download avaliable = for twf file!!!! Where do I get twf file??? Regards Nida. ----- Original Message ----- From: "Hankley, Chip" To: "'nida Khan'" Cc: "MapServer List (E-mail)" = Sent: Friday, November 29, 2002 2:26 PM Subject: RE: [mapserver-users] raster layer > Nida, > > > it gives me this error > > readWorldFile(): Unable to access file. Unable to = open > > world file for reading. > > This indicates to me that your image doesn't have a = valid world file, or > that it isn't GeoTif. For the image to display = correctly, it needs to have > that. Is there a 'tq38sw.tfw' file in the directory? > > Chip ------=_NextPart_000_00CF_01C29ABE.7BAB8FE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thank you so much Ed and THE list,Ed you r a *, great!I can c the map now , will play around with = X and Y=20 axis to suit our need! :).btw is there anyone using mapserver in UK with=20 ordnancesurvey data??just curious what conversion tools u r using, and = what's=20 happening outside my office :)Kind RegardsNida.----- Original Message -----From:=20 Ed = McNierneySent: Monday, December 02, 2002 = 6:29=20 PMSubject: RE: [Mapserver-users] = raster=20 layerNida=20 -Your=20 EXTENT line:EXTENT 127000.0 = 160000.0=20 530000.0 185000.0says=20 "use a minimum X of 127000, a minimum Y of 160000, a maximum X of = 530000, and=20 a maximum Y of 185000". However, the upper-left corner of your = image is=20 at X =3D 530000, Y =3D 185000. This means that the entire image = data lies=20 just to the right of the area you're viewing, so you'll get no = map. =20 Try changing the line to:EXTENT 530000.0 160000.0 555000.0=20 185000.0and see what you get. = I can't tell=20 how large your image is, but this should make SOMETHING visible in the = upper-left corner of the map image. The extents for a map image = are=20 normally provided as FORM variables, so you can control the area = mapped=20 interactively.-=20 Ed<= /BODY> ------=_NextPart_000_00CF_01C29ABE.7BAB8FE0-- From LVN@hvm.dk Tue Dec 3 13:00:56 2002 From: LVN@hvm.dk (Lars V. Nielsen) Date: Tue, 3 Dec 2002 14:00:56 +0100 Subject: [Mapserver-users] Examples of ECW and color JPEGs ? Message-ID: <004501c29acc$050bf1f0$1101a8c0@odin> Hi list, Can anyone provide or point me to examples of how to include ECW and/or color JPEG's as raster layers in a map file ? I presume it's done via the GDAL interface, which _is_ included in the 3.6.3 version I'm running. Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard & Meklenborg, Odense Denmark http://www.hvm.dk From knozi@gmx.at Tue Dec 3 13:29:10 2002 From: knozi@gmx.at (Gernot Katzlberger) Date: Tue, 3 Dec 2002 14:29:10 +0100 Subject: [Mapserver-users] center coordinates Message-ID: <00ba01c29acf$f73af860$1a3f8283@gis.univie.ac.at> This is a multi-part message in MIME format. ------=_NextPart_000_00B7_01C29AD8.5898FD70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi list, for the mac-users i wanted to convert a mapplet-application to a simple = non-java mapserver (only gif-picture output).=20 i have manged to get the map but now the application only zooms into the = center. if i want to make a query it also queries the center of the map = and not the spot i clicked on. it doesn't matter where i click on the map, always the = center-coordinates are used. do you have any ideas? Thanks in advance, Gernot ------=_NextPart_000_00B7_01C29AD8.5898FD70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable-----Original Message-----
From: nida Khan=20 [mailto:nida@webstar.co.uk]
Sent: Monday, December 02, = 2002 11:48=20 AM
To: Ed McNierney
Subject: Re: = [Mapserver-users]=20 raster layerHi ,this is what it contains0.635
0
0
-0.635
530000
185000Nida.----- Original Message ----- =From:=20 Ed = McNierney=20To: nida KhanSent: Monday, December 02, = 2002 3:57=20 PMSubject: RE: = [Mapserver-users] raster=20 layerNida -What are the contents of your world (TFW) = file?- Ed-----Original Message-----
From: nida Khan=20 [mailto:nida@webstar.co.uk]
Sent: Monday, December 02, = 2002=20 10:30 AM
To: Ed McNierney
Subject: Re:=20 [Mapserver-users] raster layerHi Again,Once again thank you so much for your=20 help!.
There r files in = the tmp=20 directory alright, I can c scalebar fine, I tried to view the = image=20 outside the mapserver as well, but still it prints it as=20 blank." If you're really = retrieving=20 files but they're blank images, then your data doesn't intersect = the map=20 image requested."ok, I've got only one layer in the map file = for that=20 raster image, got .tif and .tfw file in my raster = directorychanged the extents as mentioned in last=20 email.whats next?Me lost in GIS worldNida.Nida -I'm not really sure what that information means, but = you need=20 to figure out which of these three things is=20 happening:1. MapServer is creating and your browser is = displaying a=20 perfectly valid image that is blank.2. MapServer is creating an image in the IMAGEPATH = directory=20 but your browser can't retrieve it.3. MapServer cannot create an image in the IMAGEPATH=20 directory.These are three different problems with three = different=20 fixes. You should check the IMAGEPATH directory after = trying to=20 display the map a few times - you should see more temporary = image=20 files being created there. If they're not being created, = then=20 your MapServer setup doesn't have permission to write to that=20 directory. If the files are created but you can't = retrieve them=20 in your browser, then your Web site doesn't have access to = those=20 files. If you're really retrieving files but they're = blank=20 images, then your data doesn't intersect the map image=20 requested.- Ed-----Original Message-----
From: nida = Khan=20 [mailto:nida@webstar.co.uk]
Sent: Monday, December = 02,=20 2002 9:09 AM
To: Ed McNierney
Subject: = Re:=20 [Mapserver-users] raster layerThank you so much for your = reply!I right clicked on that blank image, and = it does=20 not look like a image to me,protocol=3Dhyper texttype=3Dhtml documentaddress=3D"full address at time of=20 init."size=3D2460I changed the extents before I did this, = nothing=20 make any diffrencehere is my content of map = fileNAME WALES
#EXTENT 127000.0 160000.0 = 380000.0=20 402000.0
EXTENT 127000.0 160000.0 530000.0 = 185000.0
SIZE 400=20 400
FONTSET=20 "/var/www/html/application/fonts/fonts.list"
SHAPEPATH=20 "/var/www/html/application/"
UNITS=20 KILOMETERS
WEB
TEMPLATE=20 wales2.html
IMAGEPATH=20 "/var/www/html/application/tmp/"
IMAGEURL=20 "/application/tmp/"
END
QUERYMAP
SIZE 200 = 200
=20 STATUS ON
STYLE HILITE
COLOR 255 = 0=20 0
ENDSYMBOL
NAME 'circle'
= TYPE=20 ELLIPSE
POINTS 1 1 END
FILLED=20 TRUE
END
LAYER
# NAME=20 "Layer_CIB"
NAME "wales_boundary"
DATA=20 "raster/tq38sw.tif"
TYPE RASTER =
=20 STATUS DEFAULT
OFFSITE 0
ENDEND # end of map fileI have .tif and .tfw file in my raster=20 directory!Really appreciate your = help!RegardsNida.----- Original Message = -----From:=20 Ed=20 McNierneyTo: nida=20 KhanSent: Monday, = December 02,=20 2002 1:53 PMSubject: RE:=20 [Mapserver-users] raster layerNida -If you are getting a blank image (not a MISSING = image, but=20 a real, valid image that is blank) that means that the = data you=20 have do not overlap the extents requested for the = map. Look=20 at the EXTENTS line in your map file; the numbers should = be=20 similar to the last two lines in the TFW = file.= - = EdEd McNierney
President and Chief=20 Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 = Princeton=20 Street, Suite 305
North Chelmsford, MA =20 01863
ed@topozone.com
(978) 251-4242=20-----Original = Message-----
From:=20 nida Khan [mailto:nida@webstar.co.uk]
Sent: = Monday,=20 December 02, 2002 6:25 AM
To: nida Khan;=20 mapserver-users@lists.gis.umn.edu
Subject: Re: = [Mapserver-users] raster layerI have downloaded a big zip file, = whith all=20 the .twf files.Now I have copied the related twf = file in the=20 same directory and yapee, not gettting that error any = more,=20 instead a blank image is coming up :(. (anyone have any = idea=20 what might be the issue this time)thats something new to = explore!Thank you very much every for your = helpful=20 repliesRegardsNida.----- Original Message = -----=20From:=20 nida Khan =Sent: Monday, = December=20 02, 2002 10:46 AMSubject:=20 [Mapserver-users] raster layerok... I am very = much confuse=20 here, I've got only .tif file from
ordnancesurvey = website.=20 There is no download avaliable for twf = file!!!!
Where=20 do I get twf = file???
Regards
Nida.
-----=20 Original Message -----
From: "Hankley, Chip" = <Chip.Hankley@GASAI.Com>
To: "'nida Khan'" <nida@webstar.co.uk>
Cc:=20 "MapServer List (E-mail)" <mapserver-users@lists.gis.umn.edu>
Sent: Friday, November 29, 2002 2:26=20 PM
Subject: RE: [mapserver-users] raster=20 layer
> Nida,
>
> > it = gives me=20 this error
> > readWorldFile(): Unable = to=20 access file. Unable to open
> > world = file for=20 reading.
>
> This indicates to me that = your image=20 doesn't have a valid world file, or
> that it = isn't=20 GeoTif. For the image to display correctly, it needs = to=20 have
> that. Is there a 'tq38sw.tfw' file in the = directory?
>
>=20 = Chiphi list,for the mac-users i wanted to convert a mapplet-application to a = simple=20 non-java mapserver (only gif-picture output).i have manged to get the map but now the application only zooms = into the=20 center. if i want to make a query it also queries the center of the map = and not=20 the spot i clicked on.it doesn't matter where i click on the map, always the = center-coordinates=20 are used.do you have any ideas?Thanks in advance,Gernot------=_NextPart_000_00B7_01C29AD8.5898FD70-- From fx.gamoy@mapxplore.com Mon Dec 2 10:02:40 2002 From: fx.gamoy@mapxplore.com (fx gamoy) Date: Mon, 2 Dec 2002 10:02:40 -0000 Subject: [Mapserver-users] LOG file Message-ID: <002101c299e9$f3887030$0201a8c0@mapxplore.com> C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_001E_01C299E9.F34F37C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hello everybody, i've goto problems with my log file. What is the way to configure a log.txt file in a log directory? that's = to say http://mymap.com/log/log.txt I have defined some parameters in my test.map (WEB) globprefs.php but = nothing occurs. i am using apache in a winnt plateform whit mapserver3.6.3 and = php/mapscript. Thanks fx gamoy http://www.mapxplore.com/ ------=_NextPart_000_001E_01C299E9.F34F37C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printablehello everybody,i've goto problems with my log = file.What is the way to configure a log.txt = file in a=20 log directory? that's to say http://mymap.com/log/log.txtI have defined some parameters in my = test.map (WEB)=20 globprefs.php but nothing occurs.i am using apache in a winnt plateform = whit=20 mapserver3.6.3 and php/mapscript.Thanksfx gamoyhttp://www.mapxplore.com/------=_NextPart_000_001E_01C299E9.F34F37C0-- From erik.van-der-goot@jrc.it Mon Dec 2 09:45:39 2002 From: erik.van-der-goot@jrc.it (Erik Van der Goot) Date: Mon, 02 Dec 2002 10:45:39 +0100 Subject: [mapserver-users] Does anybody use Mapserver and Tomcat on Wi n2000?? In-Reply-To: <61D6E8202227D41197360050BACF5FE4292710@srvmail> Message-ID: <5.1.0.14.2.20021202104005.03cc3008@isis-ms.jrc.it> Hi Luca, thanks for the reply. Yes, the CGI is configured fine, I can see that I am actually talking to mapserv.exe when it produces the GIFs. The problem is that it does not talk back to me. For your information, I have configured the CGI servlet as a part of my web application and this works ok. Thanks again, although I still have no idea where the problem might be. I'd like to know what mapserv is trying to do once it produces the GIFs in the temp directory. That way perhaps I can find out what the problem is. Erik At 08:25 02/12/2002 +0100, Luca Palli wrote: >No idea on your problems! > >But you have well configurated your Tomcat? >In the Tomcat documentation (CGI HOW-TO) there are two operation to make cgi >working: > >1. Rename $CATALINA_BASE/server/lib/servlets-cgi.renametojar to >$CATALINA_BASE/server/lib/servlets-cgi.jar > >2. Remove the XML comments from around the CGI servlet and servlet-mapping >configuration in $CATALINA_BASE/conf/web.xml > >Ciao Luca > > > -----Original Message----- > > From: Erik Van der Goot [mailto:erik.van-der-goot@jrc.it] > > Sent: vendredi, 29. novembre 2002 14:27 > > To: Luca Palli > > Subject: RE: [mapserver-users] Does anybody use Mapserver and > > Tomcat on > > Wi n2000?? > > > > > > Hi Luca, > > > > thanks for your answer. > > I hope you don't mind me mailing you directly. > > > > When you say 'it works only in browse mode' what do you mean > > exactly?? I am > > not (but hope to become) a true mapserver user. > > > > I have installed the Tomcat CGI servlet in my web application, and > > mapserver lives in the correct directory. > > I have modified the demo-html.init file and the map file as per the > > instructions. When I click on the button I can SEE that > > mapserver produces > > 4 .gif files in the temp directory (on the server of > > course)that I have > > specified. > > > > So... my CGI is working (also when I look at the Tomcat > > logfiles it is > > clear that it finds the .exe) , mapserver is working (to some > > extent, I get > > the 4 gifs in the temp directory).. BUT it never talks back > > to me...my > > browser just sits there > > > > Do you have any ideas why that could be?? > > Is there a way I can get mapserv to log what it is doing? > > > > Grazie mille > > > > Ciao > > > > Erik > > > > At 09:29 29/11/2002 +0100, you wrote: > > >Yes, but it works only in browse mode. > > >In map (for legend reference and scalbar is the same) mode > > Tomcat send the > > >image as texts and change some bytes. > > >For exemple the byte 90 is a reserved byte in Windows and > > Tomcat transform > > >it to 3F "?". > > > > > > > -----Original Message----- > > > > From: Erik Van der Goot [mailto:erik.van-der-goot@jrc.it] > > > > Sent: jeudi, 28. novembre 2002 15:06 > > > > To: mapserver-users@lists.gis.umn.edu > > > > Subject: [mapserver-users] Does anybody use Mapserver and > > Tomcat on > > > > Win2000?? > > > > > > > > > > > > > > From nida@webstar.co.uk Mon Dec 2 10:24:54 2002 From: nida@webstar.co.uk (nida Khan) Date: Mon, 2 Dec 2002 10:24:54 -0000 Subject: [mapserver-users] raster layer References: <3DFF131E4E6D2D4198CDD758F35A5353010ABF8F@postoffice.GASAI.Com> Message-ID: <009201c299ed$0e2ca160$a901a8c0@private.webstar.co.uk> ok... I am very much confuse here, I've got only .tif file from ordnancesurvey website. There is no download avaliable for twf file!!!! Where do I get twf file??? Regards Nida. ----- Original Message ----- From: "Hankley, Chip"To: "'nida Khan'" Cc: "MapServer List (E-mail)" Sent: Friday, November 29, 2002 2:26 PM Subject: RE: [mapserver-users] raster layer > Nida, > > > it gives me this error > > readWorldFile(): Unable to access file. Unable to open > > world file for reading. > > This indicates to me that your image doesn't have a valid world file, or > that it isn't GeoTif. For the image to display correctly, it needs to have > that. Is there a 'tq38sw.tfw' file in the directory? > > Chip From sproull.j@emstechnologies.ca Mon Dec 2 13:06:37 2002 From: sproull.j@emstechnologies.ca (Jim Sproull) Date: 02 Dec 2002 08:06:37 -0500 Subject: [mapserver-users] PHP mapscript: drawing labels as top layer In-Reply-To: <3DE7D465.51590F6B@dmsolutions.ca> References: <1038578265.28281.76.camel@localhost.localdomain> <3DE7BC47.95BAEB93@dmsolutions.ca> <1038598755.3092.9.camel@localhost.localdomain> <3DE7D465.51590F6B@dmsolutions.ca> Message-ID: <1038834397.17286.1.camel@localhost.localdomain> I guess I was talking more of a LABELCACHECACHE :) Basically something to tell mapObj->draw() not to draw the label cache implicitly, but instead to hold off until it is called directly. But again, this is probably unneeded feature-creep. Jim Sproull On Fri, 2002-11-29 at 15:56, Daniel Morissette wrote: > Jim Sproull wrote: > > > > Has it been discussed to include this as an attribute to layerObj? > > drawlabelcache = true or something similar? Or is that getting too > > obtuse? > > > > It's there already. There is a LAYER parameter called LABELCACHE -- Jim Sproull EMS Technologies From lfilak@medinaco.org Mon Dec 2 13:33:55 2002 From: lfilak@medinaco.org (Lowell Filak) Date: Mon, 02 Dec 2002 08:33:55 -0500 Subject: [mapserver-users] raster layer Message-ID: <200212021332.gB2DW3u02457@yogi.medinaco.net> Remeber, not a .tfw but a .wld . Lowell F. The following message was sent by "Hankley, Chip" on Fri, 29 Nov 2002 08:26:55 -0600. > Nida, > > > it gives me this error > > readWorldFile(): Unable to access file. Unable to open > > world file for reading. > > This indicates to me that your image doesn't have a valid world file, or > that it isn't GeoTif. For the image to display correctly, it needs to have > that. Is there a 'tq38sw.tfw' file in the directory? > > Chip From theflan@gofree.indigo.ie Mon Dec 2 13:52:27 2002 From: theflan@gofree.indigo.ie (Marie Flanagan) Date: Mon, 2 Dec 2002 13:52:27 -0000 Subject: [Mapserver-users] PNG file printing from browser Message-ID: <03e901c29a0a$0d6a0e80$2d42a8c0@marie> This is a multi-part message in MIME format. ------=_NextPart_000_03E6_01C29A0A.0CDC2660 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello List, I have a query about printing the map image files generated by = Mapscript. If I try to print a map as a png image file from an IE5 = browser it prints out incorrectly - just lots of black. I thought the = problem might be with the browser unable to print png format but other = png file I found on the web seem to print ok from my browser. I = converted the output to JPEG and that prints ok but the file size is up = to 5 times larger than png and is very slow to download. Any suggestions gratefully received. Regards, Marie Flanagan ------=_NextPart_000_03E6_01C29A0A.0CDC2660 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello List,I have a query about printing the map = image files=20 generated by Mapscript. If I try to print a map as a png image = file from=20 an IE5 browser it prints out incorrectly - just lots of black. I = thought=20 the problem might be with the browser unable to print png format but = other png=20 file I found on the web seem to print ok from my browser. I = converted the=20 output to JPEG and that prints ok but the file size is up to 5 times = larger than=20 png and is very slow to download.Any suggestions gratefully = received.Regards,Marie = Flanagan------=_NextPart_000_03E6_01C29A0A.0CDC2660-- From luke_luca@hotmail.com Mon Dec 2 22:01:59 2002 From: luke_luca@hotmail.com (Luke Wallace) Date: Mon, 02 Dec 2002 22:01:59 +0000 Subject: [Mapserver-users] Wind Barbs / Truetype font annotation? Message-ID:I've been working on the Texas Mesonet project, and am trying to get Wind Barb plots for each of the sites based upon their wind speed and direction. I've looked through the archives, but the bits of code I've found don't seem to work when combined together. Below are the important parts of my main mapfile SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME 'wind1' TYPE truetype FONT 'Esri_Weather' FILLED true ANTIALIAS true CHARACTER "b" # symbol number in character map end # # Working Point Layer # LAYER NAME weather-metar TYPE POINT DATA currentWeather STATUS ON LABELCACHE OFF TOLERANCE 10 CLASS NAME 'Weather Stations' COLOR 100 200 164 SYMBOL 'circle' SIZE 7 TEMPLATE "weather_refresh.html" END END # # Non-working Barb Layer # LAYER NAME weather-barbs STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION DATA currentWeather CLASS EXPRESSION "([WINDSPD] = 0)" SYMBOL 'wind1' SIZE 25 COLOR 0 0 0 END END I realize I'm going to need more classes (with more expressions) to get this to be a truly correct barb, but I'm trying to take small steps and just get any symbol to show. The following layer in my mapfile puts a single barb in the lower left corner of the map. This shows my fontset is set up correctly (right?). LAYER NAME credits STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 4 696 END TEXT 'b' END CLASS LABEL TYPE TRUETYPE FONT Esri_weather SIZE 50 ANTIALIAS true COLOR 0 0 0 POSITION UR END END END _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From bwragg@mappingandbeyond.com Tue Dec 3 02:14:26 2002 From: bwragg@mappingandbeyond.com (Benjamin Wragg) Date: Tue, 3 Dec 2002 12:44:26 +1030 Subject: [Mapserver-users] Map files CGI - PHP MapScript Message-ID: <000201c29a71$b51ec5f0$0100a8c0@mapping12> This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C29AC9.B7AE9090 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi guys, I just have a question regarding how Map files work in both CGI and PHP MapScript environments? In a CGI environment say I go to my MapServer html pages and fire up the default page e.g index.html. Is it correct in saying that doing this request gets sent to mapserv.exe containing, among other things, the path to a map file e.g demo.map? MapServer now parses the Map file, loads the data specified and creates an image in the IMAGEPATH directory which is specified in the map file? Say I now zoomed in on the map, another request is sent to the mapserv.exe except this time the minx, miny, maxx, maxy are specified. Because of its stateless nature does MapServer have to parse the map file again reloaded all the data and restore any database connections? Regarding a PHP MapScript environment (which I'm still coming up to speed with, so please excuse me if I don't use the correct terms) when the default page is fired up a few lines like the following tell MapServer to parse the europe.map file and create an image: $map_path="/var/www/html/ms/map_files/"; $map = ms_newMapObj($map_path."europe.map"); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); If I now zoom in on the map, is it possible to reuse the $map object used in the above lines of code, or do I need to recreate the object again, resulting in the parsing of the map file again and reloading and restoring of the data connections? Thanks, Benjamin Wragg ------=_NextPart_000_0003_01C29AC9.B7AE9090 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message Hi=20 guys,I just = have a=20 question regarding how Map files work in both CGI and PHP MapScript=20 environments?In a = CGI environment=20 say I go to my MapServer html pages and fire up the default page = e.g=20 index.html. Is it correct in saying that doing this request gets sent to = mapserv.exe containing, among other things, the path to a map file = e.g=20 demo.map? MapServer now parses the Map file, loads the = data=20 specified and creates an image in the IMAGEPATH directory which is = specified in=20 the map file?Say I = now zoomed in=20 on the map, another request is sent to the mapserv.exe except = this=20 time the minx, miny, maxx, maxy are specified. Because of its = stateless=20 nature does MapServer have to parse the map file again reloaded all the = data and=20 restore any database connections?Regarding a PHP=20 MapScript environment (which I'm still coming up to speed with, so = please excuse=20 me if I don't use the correct terms) when the default page is fired = up a=20 few lines like the following tell MapServer to parse the europe.map file = and=20 create an image:$map_path=3D"/var/www/html/ms/map_files/";&nbs= p;
=20 $map =3D=20 ms_newMapObj($map_path."europe.map");
$image=3D$map->draw();
$im= age_url=3D$image->saveWebImage(MS_PNG,1,1,0);If I = now zoom in on=20 the map, is it possible to reuse the $map object used in the above lines = of=20 code, or do I need to recreate the object again, resulting in the = parsing of the=20 map file again and reloading and restoring of the data=20 connections?Thanks,Benjamin=20 Wragg------=_NextPart_000_0003_01C29AC9.B7AE9090-- From bwragg@tpg.com.au Tue Dec 3 02:22:14 2002 From: bwragg@tpg.com.au (Benjamin Wragg) Date: Tue, 3 Dec 2002 12:52:14 +1030 Subject: [Mapserver-users] Map files CGI - PHP MapScript Message-ID: <001101c29a72$cbaa7390$0100a8c0@mapping12> This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C29ACA.CE38B790 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi guys, I just have a question regarding how Map files work in both CGI and PHP MapScript environments? In a CGI environment say I go to my MapServer html pages and fire up the default page e.g index.html. Is it correct in saying that doing this request gets sent to mapserv.exe containing, among other things, the path to a map file e.g demo.map? MapServer now parses the Map file, loads the data specified and creates an image in the IMAGEPATH directory which is specified in the map file? Say I now zoomed in on the map, another request is sent to the mapserv.exe except this time the minx, miny, maxx, maxy are specified. Because of its stateless nature does MapServer have to parse the map file again reloaded all the data and restore any database connections? Regarding a PHP MapScript environment (which I'm still coming up to speed with, so please excuse me if I don't use the correct terms) when the default page is fired up a few lines like the following tell MapServer to parse the europe.map file and create an image: $map_path="/var/www/html/ms/map_files/"; $map = ms_newMapObj($map_path."europe.map"); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); If I now zoom in on the map, is it possible to reuse the $map object used in the above lines of code, or do I need to recreate the object again, resulting in the parsing of the map file again and reloading and restoring of the data connections? Thanks, Benjamin Wragg ------=_NextPart_000_0012_01C29ACA.CE38B790 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printableMessage ------=_NextPart_000_0012_01C29ACA.CE38B790-- From jacobi@dfki.de Tue Dec 3 10:36:21 2002 From: jacobi@dfki.de (Sven Jacobi) Date: Tue, 03 Dec 2002 11:36:21 +0100 Subject: [Mapserver-users] adding objects Message-ID: <3DEC8925.2070107@dfki.de> Hi, is it possible to alter a layer, i. e. to add an object by an user? It would be great, if an user could add a certain object found by him to the map where this new object isn't recognized yet. Any ideas or experiences? Cheers, Sven From jacobi@dfki.de Tue Dec 3 10:48:31 2002 From: jacobi@dfki.de (Sven Jacobi) Date: Tue, 03 Dec 2002 11:48:31 +0100 Subject: [Mapserver-users] adding objects Message-ID: <200212031048.gB3Am61D018335@corp-200.dfki.uni-sb.de> Hi, does anybody know whether it is possible to add objects to a certain layer? It would be great if an user would have the possibility to add an object to a map when he is sure that the map has to be "updated". Any ideas or experiences? Cheers, Sven From erik.van-der-goot@jrc.it Tue Dec 3 10:49:29 2002 From: erik.van-der-goot@jrc.it (Erik Van der Goot) Date: Tue, 03 Dec 2002 11:49:29 +0100 Subject: [mapserver-users] Does anybody use Mapserver and Tomcat on Win2000?? In-Reply-To: <5.1.0.14.0.20021202120118.05ec2ad8@192.168.11.30> References: <5.1.0.14.2.20021128150430.03bfee08@isis-ms.jrc.it> Message-ID: <5.1.0.14.2.20021203114731.01ee9210@isis-ms.jrc.it> Hi Dan thanks for your reply did you ever try the demo program to test the installation?? (the itasca stuff) Erik At 12:03 02/12/2002 -0800, you wrote: >Yes, but I use PHP and Mapscript to generate map images. www.ddive.com > >At 03:05 PM 11/28/2002 +0100, you wrote: > From bon@ivv-aachen.de Tue Dec 3 12:27:16 2002 From: bon@ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Tue, 3 Dec 2002 13:27:16 +0100 Subject: [Mapserver-users] Compiling the boxzooming mapplet Message-ID: <000001c29ac7$5192a690$1a01a8c0@ivvaachen.de> What ist necessary to compile the boxzooming mapplet? When I try to compile it with suns standard edition 1.4.0_01 of the jdk I get the error "package netscape,javascript does not exist". When I try to compile it with Microsoft Visual J++ I get the error message "createCustomCursor is not a method of class toolkit". Thanks in advance Nicole From Rich@GreenwoodMap.com Tue Dec 3 15:23:56 2002 From: Rich@GreenwoodMap.com (Richard Greenwood) Date: Tue, 03 Dec 2002 08:23:56 -0700 Subject: [Mapserver-users] Compiling the boxzooming mapplet In-Reply-To: <000001c29ac7$5192a690$1a01a8c0@ivvaachen.de> Message-ID: <5.1.1.6.0.20021203082057.00ac1608@mail.GreenwoodMap.com> At 01:27 PM 12/3/2002 +0100, you wrote: >What ist necessary to compile the boxzooming mapplet? > >When I try to compile it with suns standard edition 1.4.0_01 of the jdk I >get the error >"package netscape,javascript does not exist". You need the Live Connect classes, which I think I found on the netscape site. They are in "winNPSDK.zip" or "winsdk40.zip". I found the Sun Java 1.3 sdk worked better (it produced code that ran under IE) >When I try to compile it with Microsoft Visual J++ I get the error message >"createCustomCursor is not a method of class toolkit". I never got the MS compiler to work. Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich@GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From lfilak@medinaco.org Tue Dec 3 15:47:45 2002 From: lfilak@medinaco.org (Lowell Filak) Date: Tue, 03 Dec 2002 10:47:45 -0500 Subject: [Mapserver-users] adding objects Message-ID: <200212031545.gB3Fjou21090@yogi.medinaco.net> If by layer you mean shapefile: To "add" features to an existing shapefile you need to actually create a new shapefile object and loop through each of the features in the existing shapefile and add them to the new shapefile. Then before closing the shapefile object you can add new features to it and then overwrite the old shapefile with the new version. Why? There is more discussion in the archives regarding that but for the most part the original shapefile design (if I understand correctly) was for quick read access and not write access. There is a PerlMapscript example towards the top of (look for "Does the shapefile already exist or is it yet to exist."): http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex8 And, yes, we actually use that script to add features to a shapefile. HTH Lowell F. The following message was sent by Sven JacobiHi=20 guys,I just = have a=20 question regarding how Map files work in both CGI and PHP MapScript=20 environments?In a = CGI environment=20 say I go to my MapServer html pages and fire up the default page = e.g=20 index.html. Is it correct in saying that doing this request gets sent to = mapserv.exe containing, among other things, the path to a map file = e.g=20 demo.map? MapServer now parses the Map file, loads the = data=20 specified and creates an image in the IMAGEPATH directory which is = specified in=20 the map file?Say I = now zoomed in=20 on the map, another request is sent to the mapserv.exe except = this=20 time the minx, miny, maxx, maxy are specified. Because of its = stateless=20 nature does MapServer have to parse the map file again reloaded all the = data and=20 restore any database connections?Regarding a PHP=20 MapScript environment (which I'm still coming up to speed with, so = please excuse=20 me if I don't use the correct terms) when the default page is fired = up a=20 few lines like the following tell MapServer to parse the europe.map file = and=20 create an image:$map_path=3D"/var/www/html/ms/map_files/";&nbs= p;
$map=20 =3D=20 ms_newMapObj($map_path."europe.map");
$image=3D$map->draw();
$im= age_url=3D$image->saveWebImage(MS_PNG,1,1,0);If I = now zoom in on=20 the map, is it possible to reuse the $map object used in the above lines = of=20 code, or do I need to recreate the object again, resulting in the = parsing of the=20 map file again and reloading and restoring of the data=20 connections?Thanks,Benjamin=20 Wraggon Tue, 03 Dec 2002 11:48:31 +0100. > Hi, > > does anybody know whether it is possible to add objects to a certain layer? > It would be great if an user would have the possibility to add an object to > a map when he is sure that the map has to be "updated". > > Any ideas or experiences? > > Cheers, > > Sven > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From vatsavai@cs.umn.edu Tue Dec 3 16:15:08 2002 From: vatsavai@cs.umn.edu (Ranga Raju Vatsavai) Date: Tue, 3 Dec 2002 10:15:08 -0600 (CST) Subject: [Mapserver-users] digested version Message-ID: <200212031615.KAA01601@pluto.cs.umn.edu> Hello Digested version subscribers, I would like to know if any digested member got any digested version sofar? You should be getting at least one per day. Also let me know the time stamp of the digested version (I mean at what time you got the digest). General question? Did anybody noticed any problems, extrodinary delays, missing mails, etc., after new subsciption? Thanks in advance, Raju ---- From stepan.kafka@centrum.cz Tue Dec 3 16:20:49 2002 From: stepan.kafka@centrum.cz (Stepan Kafka) Date: Tue, 3 Dec 2002 17:20:49 +0100 Subject: [Mapserver-users] adding objects In-Reply-To: <200212031545.gB3Fjou21090@yogi.medinaco.net> Message-ID: <001d01c29ae7$f0f86a10$7e3c2fc3@HSGIS> Hi, current version of mapscript enables adding object to EXISTING shapefile (I use it frequently). The shapefile may be opened like this: ms_newShapefileObj("filename", -2) Stepan Kafka > -----Původní zpráva----- > Od: mapserver-users-admin@lists.gis.umn.edu > [mailto:mapserver-users-admin@lists.gis.umn.edu]za uživatele Lowell > Filak > Odesláno: 3. prosince 2002 16:48 > Komu: Sven Jacobi; mapserver-users@lists.gis.umn.edu > Předmět: Re: [Mapserver-users] adding objects > > > If by layer you mean shapefile: > To "add" features to an existing shapefile you need to actually > create a new shapefile object and loop through each of the > features in the existing shapefile and add them to the new shapefile. > Then before closing the shapefile object you can add new features > to it and then overwrite the old shapefile with the new version. > Why? > There is more discussion in the archives regarding that but for > the most part the original shapefile design (if I understand > correctly) was for quick read access and not write access. > There is a PerlMapscript example towards the top of (look for > "Does the shapefile already exist or is it yet to exist."): > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex8 > And, yes, we actually use that script to add features to a shapefile. > HTH > Lowell F. > > The following message was sent by Sven Jacobi on > Tue, 03 Dec 2002 11:48:31 +0100. > > > Hi, > > > > does anybody know whether it is possible to add objects to a > certain layer? > > It would be great if an user would have the possibility to add > an object to > > a map when he is sure that the map has to be "updated". > > > > Any ideas or experiences? > > > > Cheers, > > > > Sven > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > From lfilak@medinaco.org Tue Dec 3 16:53:04 2002 From: lfilak@medinaco.org (Lowell Filak) Date: Tue, 03 Dec 2002 11:53:04 -0500 Subject: [Mapserver-users] adding objects Message-ID: <200212031651.gB3Gp9u22049@yogi.medinaco.net> I see. My apologies for the mis-information. Lowell F. The following message was sent by "Stepan Kafka" on Tue, 3 Dec 2002 17:20:49 +0100. > Hi, > current version of mapscript enables adding object to EXISTING shapefile > (I use it frequently). > The shapefile may be opened like this: > > ms_newShapefileObj("filename", -2) > > Stepan Kafka > > > -----Původní zpráva----- > > Od: mapserver-users-admin@lists.gis.umn.edu > > [mailto:mapserver-users-admin@lists.gis.umn.edu]za uživatele Lowell > > Filak > > Odesláno: 3. prosince 2002 16:48 > > Komu: Sven Jacobi; mapserver-users@lists.gis.umn.edu > > Předmět: Re: [Mapserver-users] adding objects > > > > > > If by layer you mean shapefile: > > To "add" features to an existing shapefile you need to actually > > create a new shapefile object and loop through each of the > > features in the existing shapefile and add them to the new shapefile. > > Then before closing the shapefile object you can add new features > > to it and then overwrite the old shapefile with the new version. > > Why? > > There is more discussion in the archives regarding that but for > > the most part the original shapefile design (if I understand > > correctly) was for quick read access and not write access. > > There is a PerlMapscript example towards the top of (look for > > "Does the shapefile already exist or is it yet to exist."): > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex8 > > And, yes, we actually use that script to add features to a shapefile. > > HTH > > Lowell F. > > > > The following message was sent by Sven Jacobi on > > Tue, 03 Dec 2002 11:48:31 +0100. > > > > > Hi, > > > > > > does anybody know whether it is possible to add objects to a > > certain layer? > > > It would be great if an user would have the possibility to add > > an object to > > > a map when he is sure that the map has to be "updated". > > > > > > Any ideas or experiences? > > > > > > Cheers, > > > > > > Sven > > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From jhart@frw.uva.nl Tue Dec 3 17:06:32 2002 From: jhart@frw.uva.nl (Jan Hartmann) Date: Tue, 03 Dec 2002 18:06:32 +0100 Subject: [Mapserver-users] Wind Barbs / Truetype font annotation? References: Message-ID: <3DECE498.6020606@frw.uva.nl> Luke, The way you do it the Barb layer has to be defined as a POINT layer. You are symbolizing individual points based on classes and symbols from the MapFile itself. Alternatively, you can use an ANNOTATION layer, but in that case the annotation for each site (i.e. the character numbers of the wind-barb symbols) has to be present as a separate column in the DATA-file (or computed via PostGIS). In that case you only need a LABELITEM, and all sites will be labeled according to the accompanying character. I agree, it is a subtle distinction. Jan Hartmann Luke Wallace wrote: > > I've been working on the Texas Mesonet project, and am trying to get > Wind Barb plots for each of the sites based upon their wind speed and > direction. I've looked through the archives, but the bits of code I've > found don't seem to work when combined together. Below are the > important parts of my main mapfile > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > SYMBOL > NAME 'wind1' > TYPE truetype > FONT 'Esri_Weather' > FILLED true > ANTIALIAS true > CHARACTER "b" # symbol number in character map > end > > # > # Working Point Layer > # > LAYER > NAME weather-metar > TYPE POINT > DATA currentWeather > STATUS ON > LABELCACHE OFF > TOLERANCE 10 > CLASS > NAME 'Weather Stations' > COLOR 100 200 164 > SYMBOL 'circle' > SIZE 7 > TEMPLATE "weather_refresh.html" > END > END > > # > # Non-working Barb Layer > # > LAYER > NAME weather-barbs > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > DATA currentWeather > CLASS > EXPRESSION "([WINDSPD] = 0)" > SYMBOL 'wind1' > SIZE 25 > COLOR 0 0 0 > END > END > > I realize I'm going to need more classes (with more expressions) to get > this to be a truly correct barb, but I'm trying to take small steps and > just get any symbol to show. > > The following layer in my mapfile puts a single barb in the lower left > corner of the map. This shows my fontset is set up correctly (right?). > > LAYER > NAME credits > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS 4 696 END > TEXT 'b' > END > CLASS > LABEL > TYPE TRUETYPE > FONT Esri_weather > SIZE 50 > ANTIALIAS true > COLOR 0 0 0 > POSITION UR > END > END > END > > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > Jan Hartmann Depratment of Geography University of Amsterdam From ed@topozone.com Tue Dec 3 17:46:53 2002 From: ed@topozone.com (Ed McNierney) Date: Tue, 3 Dec 2002 12:46:53 -0500 Subject: [Mapserver-users] PNG file printing from browser Message-ID: <13858AA1A74F30419F319ACB66A9D1221F39D1@mercator.topozone.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C29AF3.F71CF3B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Marie - =20 IE 5 has problems printing 8-bit palettized PNGs. The bug was fixed in = IE 5.5 and is still fixed in IE 6 versions. The PNG you printed = successfully was probably a 24-bit PNG, which does not trigger the bug. =20 See: =20 http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;255239 =20 - Ed -----Original Message----- From: Marie Flanagan [mailto:theflan@gofree.indigo.ie] Sent: Monday, December 02, 2002 8:52 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] PNG file printing from browser Hello List, =20 I have a query about printing the map image files generated by = Mapscript. If I try to print a map as a png image file from an IE5 = browser it prints out incorrectly - just lots of black. I thought the = problem might be with the browser unable to print png format but other = png file I found on the web seem to print ok from my browser. I = converted the output to JPEG and that prints ok but the file size is up = to 5 times larger than png and is very slow to download. =20 Any suggestions gratefully received. =20 Regards, =20 Marie Flanagan ------_=_NextPart_001_01C29AF3.F71CF3B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Marie=20 -IE 5=20 has problems printing 8-bit palettized PNGs. The bug was fixed in = IE 5.5=20 and is still fixed in IE 6 versions. The PNG you printed = successfully was=20 probably a 24-bit PNG, which does not trigger the = bug.See:- Ed------_=_NextPart_001_01C29AF3.F71CF3B0-- From joe@otsys.com Tue Dec 3 17:46:46 2002 From: joe@otsys.com (Joe Bussell) Date: Tue, 03 Dec 2002 09:46:46 -0800 Subject: [Mapserver-users] Wind Barbs / Truetype font annotation? References:-----Original Message-----
From: Marie Flanagan=20 [mailto:theflan@gofree.indigo.ie]
Sent: Monday, December 02, = 2002=20 8:52 AM
To: = mapserver-users@lists.gis.umn.edu
Subject:=20 [Mapserver-users] PNG file printing from browserHello List,I have a query about printing the map = image files=20 generated by Mapscript. If I try to print a map as a png image = file from=20 an IE5 browser it prints out incorrectly - just lots of black. I = thought=20 the problem might be with the browser unable to print png format but = other png=20 file I found on the web seem to print ok from my browser. I = converted=20 the output to JPEG and that prints ok but the file size is up to 5 = times=20 larger than png and is very slow to download.Any suggestions gratefully = received.Regards,Marie=20 FlanaganMessage-ID: <3DECEE06.5080000@otsys.com> I had the worst time with creating custom symbols until someone passed me a link which suggested that I needed to declare them in a symbolset file. I offer that you should create such a file and reference it in your mapfile with the SYMBOLSET directive. I believe this is reletive to the shape path, but am not totally sure. Good luck. If you get something nice I would love to use it for an internal project here. Cordially, Joe Bussell On Time Systems www.trafficdodger.com Luke Wallace wrote: > > I've been working on the Texas Mesonet project, and am trying to get > Wind Barb plots for each of the sites based upon their wind speed and > direction. I've looked through the archives, but the bits of code I've > found don't seem to work when combined together. Below are the > important parts of my main mapfile > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > SYMBOL > NAME 'wind1' > TYPE truetype > FONT 'Esri_Weather' > FILLED true > ANTIALIAS true > CHARACTER "b" # symbol number in character map > end > > # > # Working Point Layer > # > LAYER > NAME weather-metar > TYPE POINT > DATA currentWeather > STATUS ON > LABELCACHE OFF > TOLERANCE 10 > CLASS > NAME 'Weather Stations' > COLOR 100 200 164 > SYMBOL 'circle' > SIZE 7 > TEMPLATE "weather_refresh.html" > END > END > > # > # Non-working Barb Layer > #