From frank.koormann at intevation.de Fri Feb 1 03:31:50 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 1 Feb 2002 12:31:50 +0100 Subject: [mapserver-users] Angle of de labels In-Reply-To: <02013111393100.06442@cartman.omni> References: <02013111393100.06442@cartman.omni> Message-ID: <20020201113150.GB25796@intevation.de> Michel, * Michel M. dos Santos (malone at creedence.org) [020131 16:19]: > > > Hi All, > > > I'm new with MapServer and GIS. I need to show as "label" the > name of de streets of a city. The names are visible , but only > in horizontal. I want they appears folowing de layer "streets". > > [LAYER Definition snipped] > LABEL > MINDISTANCE 400 > PARTIALS FALSE > COLOR 0 0 89 > SIZE TINY > TYPE BITMAP > END Rotated labels only work with truetype fonts. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From frank.koormann at intevation.de Fri Feb 1 03:39:45 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 1 Feb 2002 12:39:45 +0100 Subject: [mapserver-users] Draw points? In-Reply-To: References: Message-ID: <20020201113945.GC25796@intevation.de> Nacho, * Nacho Benito (nachobenito75 at hotmail.com) [020131 23:18]: > Hello everybody > I would like to know if it?s possible to draw in the map a point what it > isn't in any layer. In fact what I want to do is draw a symbol in any > position. > Please, could you help me? I've been looking for some information about > that in the mailing archives list but I can't find anything. > Is it relationated with symbols' object? > Thanks in advance iUsing the CGI-version this can be realised with an empty layer for such markers in combination with the mapfile parameter changing methods. http://mapserver.gis.umn.edu/doc/cgi-reference.html#mapfile should give you an idea of the concept. regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From nachobenito75 at hotmail.com Fri Feb 1 03:56:40 2002 From: nachobenito75 at hotmail.com (Nacho Benito) Date: Fri, 01 Feb 2002 12:56:40 +0100 Subject: [mapserver-users] Draw points? Message-ID: hello Frank Thank you for your help. Can you tell me how I could draw a point if I know the coordinates (however they could change). Do I have to do it with symbol object? Thank you very much. You're ver kind people (sorry if I can't explain me well but my english is horrible) Could you tell me where can I find an example? >From: Frank Koormann >To: Nacho Benito >CC: mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] Draw points? >Date: Fri, 1 Feb 2002 12:39:45 +0100 > >Nacho, > >* Nacho Benito (nachobenito75 at hotmail.com) [020131 23:18]: > > Hello everybody > > I would like to know if it?s possible to draw in the map a point what it > > isn't in any layer. In fact what I want to do is draw a symbol in any > > position. > > Please, could you help me? I've been looking for some information about > > that in the mailing archives list but I can't find anything. > > Is it relationated with symbols' object? > > Thanks in advance > >iUsing the CGI-version this can be realised with an empty layer for >such markers in combination with the mapfile parameter changing methods. > >http://mapserver.gis.umn.edu/doc/cgi-reference.html#mapfile > >should give you an idea of the concept. > >regards, > > Frank > >-- >Frank Koormann > Professional Service around Free Software (http://intevation.net/) > FreeGIS Project (http://freegis.org/) _________________________________________________________________ MSN Photos es la manera m?s sencilla de compartir e imprimir sus fotos: http://photos.latam.msn.com/Support/WorldWide.aspx From frank.koormann at intevation.de Fri Feb 1 04:17:31 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 1 Feb 2002 13:17:31 +0100 Subject: [mapserver-users] Draw points? In-Reply-To: References: Message-ID: <20020201121731.GA26498@intevation.de> Hi Nacho, * Nacho Benito (nachobenito75 at hotmail.com) [020201 12:56]: > hello Frank > > Frank Koormann wrote: > >* Nacho Benito (nachobenito75 at hotmail.com) [020131 23:18]: > > > Hello everybody > > > I would like to know if it?s possible to draw in the map a point what it > > > isn't in any layer. In fact what I want to do is draw a symbol in any > > > position. > > > Please, could you help me? I've been looking for some information about > > > that in the mailing archives list but I can't find anything. > > > Is it relationated with symbols' object? > > > Thanks in advance > > > >iUsing the CGI-version this can be realised with an empty layer for > >such markers in combination with the mapfile parameter changing methods. > > > >http://mapserver.gis.umn.edu/doc/cgi-reference.html#mapfile > > > >should give you an idea of the concept. > > Thank you for your help. Can you tell me how I could draw a point if I know > the coordinates (however they could change). Do I have to do it with symbol > object? You need an empty layer defined in your map file: (replace marker with something reasonable for your application, especially select an existing symbol) # Marker-Layer LAYER NAME marker TYPE POINT STATUS OFF CLASS NAME "marker" SYMBOL "marker" END POSTLABELCACHE true END >From an URL you now can add points to this layer (for the next visualisation) as indicated by http://mapserver.gis.umn.edu/doc/cgi-reference.html#mapfile ...&map_marker_feature=new&map_marker_feature_points=12345.6789+12345.6789... Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From GrantM at ATSER.com Fri Feb 1 06:37:51 2002 From: GrantM at ATSER.com (Grant Marblestone) Date: Fri, 1 Feb 2002 08:37:51 -0600 Subject: [mapserver-users] so i have newbie question Message-ID: <000801c1ab2e$0c790e70$7201010a@localhost.atser> So i have been working along with some other people on this site http://66.1.116.66:8080/aweb/gmap_permits/htdocs/index.html and i want to know if its possible to have the gmapdumpqueryresults() on a separate frame from the actual map? I am doing this so that the above map page will not reload and only the query results will change on the bottom frame. What do yall think? Thanks, Grant -------------- next part -------------- An HTML attachment was scrubbed... URL: From pnaciona at gis.umn.edu Fri Feb 1 08:22:04 2002 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 1 Feb 2002 10:22:04 -0600 Subject: [mapserver-users] cannot find -lPDF In-Reply-To: <20020131121309.18D4846F13@mail.passofundo.rs.gov.br> Message-ID: Joao, On Thu, 31 Jan 2002 joao at pmpf.rs.gov.br wrote: > Hello all, > > I'm trying to configure mapserver with this options: > > /configure --with-postgis=/usr/local/pgsql/bin/pg_config > --with-pdf=/usr/local/pdflib/ --with-proj=/usr/local/proj4/ > --with-php=/root/php-4.0.6 --with-apxs=/usr/local/apache/bin/apxs > --enable-shared-pdflib --with-zlib=/usr/local/zlib/ > > but this error has occured: > > /usr/bin/ld: cannot find -lPDF > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > Try replacing -lPDF with -lpdf. Check the PDF settings on your MapServer makefile--make sure the PDF_OBJ line equals mappdf.o. I already add /usr/local/pdflib in the ld.so.conf > > Does anybody has any idea how to fix this erro? > > Thaks > Jo?o > > > -- > www.pmpf.rs.gov.br > > > Good luck! -Perry From teb at mallit.fr.umn.edu Fri Feb 1 09:51:04 2002 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 1 Feb 2002 11:51:04 -0600 (CST) Subject: [mapserver-users] mouse over map (FWD) Message-ID: <200202011751.LAA15126@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Stender, Amy ERDC-CRREL-NH" To: mapserver-info at lists.gis.umn.edu Subject: mouse over map Date: Fri, 1 Feb 2002 10:15:35 -0500 MIME-Version: 1.0 I was looking at the DNR weather map: http://www.dnr.state.mn.us/weather/map.html and I was wondering if anyone could help me try something like that for my map. I'd like the user to be able to mouse over a point and have an "alt"-like box appear next to the mouse. But my map isn't static, so I can necessarily say: when mouse is that this pixel by this pixel, popUp. Is this something I'll have to alter in the mapplet? Thanks in advance, Amy Amy L. Stender Remote Sensing/GIS Center Cold Regions Research and Engineering Laboratory United States Army Corps of Engineers 72 Lyme Road, Hanover, NH 03755-1290 Tel: (603) 646-4733 Fax: (603) 646-4730 astender at crrel.usace.army.mil ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Fri Feb 1 09:53:28 2002 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 1 Feb 2002 11:53:28 -0600 (CST) Subject: [mapserver-users] lavels angle (FWD) Message-ID: <200202011753.LAA15132@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Sender: fgclaram at correo.alu-ab.uclm.es Date: Fri, 01 Feb 2002 14:25:47 +0100 To: mapserver-info at lists.gis.umn.edu From: Francisco Subject: lavels angle Mime-Version: 1.0 X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) Hello. I'm trying to set orientation to labels of a streets layer, whith the streets orientation. I only can orientate the box of the labels, the labels keep horizontal. Can you help me?. Thank you. This is the code: LAYER NAME "calles" DATA calles.shp STATUS OFF TYPE ANNOTATION MAXSCALE 400000 SYMBOLSCALE 100000 LABELITEM "CALLE" CLASSITEM "CALLE" LABELANGLEITEM "CALLE" CLASS NAME "calles" LABEL ANGLE AUTO POSITION CC PARTIALS FALSE SIZE TINY MINSIZE 8 MAXSIZE 14 COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 ANTIALIAS TRUE BUFFER 4 END END END ------------------------------------------------------------- Regards. Fran. ------------- End Forwarded Message ------------- From TMitchell at lignum.com Fri Feb 1 10:14:45 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 1 Feb 2002 10:14:45 -0800 Subject: [mapserver-users] Any Mapserver and database forms demos around? Message-ID: Hi guys, Many are asking me about collaborative web-based solutions for managing database information and coupling that with GIS viewing capabilities. I'm planning to use Mapserver to display mostly point data, but will want to have the ability to view AND edit database information for each location. Does anyone have a web site that I could look at to see this in action? I need to describe the concept to my colleagues and would like to show them a demonstration of a similar kind of system Tyler From ahaigh at ic24.net Fri Feb 1 10:38:29 2002 From: ahaigh at ic24.net (Andrew) Date: Fri, 1 Feb 2002 18:38:29 -0000 Subject: [mapserver-users] MS3.5 for Win2K with Postgis References: Message-ID: <000401c1ab52$d080e260$0200a8c0@plasma> A quick question, according to the readme file in the zipfile, "This is the precompiled distribution of MapServer version 3.5 nightly build with GIF, OGR, GDAL, PostGIS (PostgreSQL) and OGC WMS server support." When I do mapserv -v I get: C:\mapserver>mapserv -v MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PR J SUPPORTS=TTF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE And when I try: http://plasma/cgi-bin/mapserv.exe?map=c:/demo.map&request=GetCapabilities I get the following output. mapserv(): Web application error. No template provided. I'm assuming that this version doesn't have WMS support, as stated in the README file. Is it possible to get hold of a copy which does? Thanks, Andrew ----- Original Message ----- From: "Pericles S. Nacionales" To: "jrom" Cc: Sent: Wednesday, January 30, 2002 6:36 PM Subject: Re: [mapserver-users] MS3.5 for Win2K with Postgis > Nicolas, > > On Wed, 30 Jan 2002, jrom wrote: > > > > > Perry, > > Thanx a lot for your reactivity ! > > > > I tried the binaries you provided, It works on windows 2000 with postgis > > ! > > Thanks! Good to know it works. I run into problems with mappostgis.c, > crapping out and giving the "BIG_ENDIAN/LITTLE_ENDIAN" error message. I > got around it by copying the Cygwin param.h header into MSVC's include/sys > directory and editing mappostgis.c. There might be another way to go > around this but it needs to be fixed permanently. > > > Your mapserv.exe is much bigger than the one I compiled yesterday > > (680KB/2.4 Mb). > > I must have missed an important step in the compilation, or maybe the > > libpq.dll was not accessible from apache (mine was not in the > > winnt/system32 folder). > > I compiled with static library support, except for zlib and libpq (hence > the need for the dlls). I tried linking GDAL/OGR and PROJ.4 libs > dynamically but I get lots of error messages. > > > > > I'm interested in the compilation how-to on windows, though Linux is our > > prefered way to run mapserver and postgis. > > > > There are already compilation how-to's for Unix (and Linux) and Windows > but I'll add the bit about compiling PostGIS support on Windows. Yup, > I'll add that to my ever expanding to-do list. :) > > > > Regards, > > Nicolas Ribot > > SCOT. > > > Ciao! > Perry N. > > PS: Is you app available for public browsing? We ought to update the good > old MapServer gallery. > > From pushkar at ERC.MsState.Edu Fri Feb 1 11:17:29 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Fri, 1 Feb 2002 13:17:29 -0600 (CST) Subject: [mapserver-users] tiff problem, In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220E7BE4@mercator.topozone.com> Message-ID: Ed, David and Perry, You were all very helpful I finally converted my 24 bit TIFF to 8 bit TIFF, seems like photoshop didn't do it right so my peers used some other utility I can't recollect. Anyway my apache error log reads: ld.so.1: mapserv: fatal: relocation error: file mapserv: symbol TIFFIsByteSwapped: referenced symbol not found [Fri Feb 1 13:09:33 2002] [error] [client 127.0.0.1] Premature end of script headers: /rstc/user1/erc/pushkar/apache_1.3.22/cgi-bin/mapserv Which I found was due to multiple copies of libtiff.so on my system, after researching mailing list archives, I found the foll: ************** Stephen wins the prize. This was exactly the problem: another version of libtiff.so lying around.... Thanks! Andy On Wed, 7 Jun 2000, Stephen Lime wrote: > Might there be other versions of libtiff on the system? Perhaps in the other libs defined in LD_LIBRARY_PATH? > > s. > > <<< Andrew E Long 6/ 7 9:49p >>> > Hi Folks, > > I've got the ms_3.3.010 mapserver & demo running using the latest and > greatest of the usual software suspects (e.g. libtiff), but am crashing > ignominously when I get to the LandSat TM Image: if I try to display it, > all crashes. Checking the error log for my web server, I find > > ld.so.1: mapserv: fatal: relocation error: file mapserv: symbol > TIFFIsByteSwapped: referenced symbol not found > > TIFFIsByteSwapped is definitely contained in the libtiff > distribution, and I find it in libtiff.so, which is in > /usr/local/lib. > > I've added the LD_LIBRARY_PATH variable to Apache (thanks Daniel > Morissette), which includes /usr/local/lib, i.e. > > SetEnv LD_LIBRARY_PATH /usr/lib:/usr/openwin/lib:/usr/ucblib:/usr/local/lib > ********* So my que. is now what if I have multiple copies of libtiff.so, what is the remedy? Thanks, -Pushkar From TMitchell at lignum.com Fri Feb 1 13:35:11 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 1 Feb 2002 13:35:11 -0800 Subject: [mapserver-users] MS3.5 for Win2K with Postgis Message-ID: I'm just starting to scratch the surface of WMS, but in my opinion that error doesn't look it necessarily means WMS isn't compiled into the build, but perhaps the WMS server isn't setup properly? How do you know that everything is setup properly in your map file? Tyler "Andrew" Sent by: To: "Pericles S. Nacionales" , "jrom" owner-mapserver-users at lists.g is.umn.edu cc: Fax to: Subject: Re: [mapserver-users] MS3.5 for Win2K with Postgis 02/01/2002 10:38 AM A quick question, according to the readme file in the zipfile, "This is the precompiled distribution of MapServer version 3.5 nightly build with GIF, OGR, GDAL, PostGIS (PostgreSQL) and OGC WMS server support." When I do mapserv -v I get: C:\mapserver>mapserv -v MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PR J SUPPORTS=TTF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE And when I try: http://plasma/cgi-bin/mapserv.exe?map=c:/demo.map&request=GetCapabilities I get the following output. mapserv(): Web application error. No template provided. I'm assuming that this version doesn't have WMS support, as stated in the README file. Is it possible to get hold of a copy which does? Thanks, Andrew ----- Original Message ----- From: "Pericles S. Nacionales" To: "jrom" Cc: Sent: Wednesday, January 30, 2002 6:36 PM Subject: Re: [mapserver-users] MS3.5 for Win2K with Postgis > Nicolas, > > On Wed, 30 Jan 2002, jrom wrote: > > > > > Perry, > > Thanx a lot for your reactivity ! > > > > I tried the binaries you provided, It works on windows 2000 with postgis > > ! > > Thanks! Good to know it works. I run into problems with mappostgis.c, > crapping out and giving the "BIG_ENDIAN/LITTLE_ENDIAN" error message. I > got around it by copying the Cygwin param.h header into MSVC's include/sys > directory and editing mappostgis.c. There might be another way to go > around this but it needs to be fixed permanently. > > > Your mapserv.exe is much bigger than the one I compiled yesterday > > (680KB/2.4 Mb). > > I must have missed an important step in the compilation, or maybe the > > libpq.dll was not accessible from apache (mine was not in the > > winnt/system32 folder). > > I compiled with static library support, except for zlib and libpq (hence > the need for the dlls). I tried linking GDAL/OGR and PROJ.4 libs > dynamically but I get lots of error messages. > > > > > I'm interested in the compilation how-to on windows, though Linux is our > > prefered way to run mapserver and postgis. > > > > There are already compilation how-to's for Unix (and Linux) and Windows > but I'll add the bit about compiling PostGIS support on Windows. Yup, > I'll add that to my ever expanding to-do list. :) > > > > Regards, > > Nicolas Ribot > > SCOT. > > > Ciao! > Perry N. > > PS: Is you app available for public browsing? We ought to update the good > old MapServer gallery. > > From pnaciona at gis.umn.edu Fri Feb 1 13:44:26 2002 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 1 Feb 2002 15:44:26 -0600 Subject: [mapserver-users] MS3.5 for Win2K with Postgis In-Reply-To: Message-ID: My mistake. I accidentally deleted the WMS line in the Makefile. I've updated the package so please download again. It's at http://128.101.73.155/projects/ms35_gdal_ogr_pg.zip. -Perry On Fri, 1 Feb 2002, Tyler Mitchell wrote: > > I'm just starting to scratch the surface of WMS, but in my opinion that > error doesn't look it necessarily means WMS isn't compiled into the build, > but perhaps the WMS server isn't setup properly? How do you know that > everything is setup properly in your map file? > > Tyler > > > > "Andrew" > Sent by: To: "Pericles S. Nacionales" , "jrom" > owner-mapserver-users at lists.g > is.umn.edu cc: > Fax to: > Subject: Re: [mapserver-users] MS3.5 for Win2K with Postgis > 02/01/2002 10:38 AM > > > > > > > A quick question, > > according to the readme file in the zipfile, "This is the precompiled > distribution of MapServer version 3.5 nightly build with > GIF, OGR, GDAL, PostGIS (PostgreSQL) and OGC WMS server support." > > When I do mapserv -v > > I get: > > C:\mapserver>mapserv -v > MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PR > J SUPPORTS=TTF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > And when I try: > http://plasma/cgi-bin/mapserv.exe?map=c:/demo.map&request=GetCapabilities > > I get the following output. > > mapserv(): Web application error. No template provided. > > I'm assuming that this version doesn't have WMS support, as stated in the > README file. Is it possible to get hold of a copy which does? > > Thanks, > > Andrew > > ----- Original Message ----- > From: "Pericles S. Nacionales" > To: "jrom" > Cc: > Sent: Wednesday, January 30, 2002 6:36 PM > Subject: Re: [mapserver-users] MS3.5 for Win2K with Postgis > > > > Nicolas, > > > > On Wed, 30 Jan 2002, jrom wrote: > > > > > > > > Perry, > > > Thanx a lot for your reactivity ! > > > > > > I tried the binaries you provided, It works on windows 2000 with > postgis > > > ! > > > > Thanks! Good to know it works. I run into problems with mappostgis.c, > > crapping out and giving the "BIG_ENDIAN/LITTLE_ENDIAN" error message. I > > got around it by copying the Cygwin param.h header into MSVC's > include/sys > > directory and editing mappostgis.c. There might be another way to go > > around this but it needs to be fixed permanently. > > > > > Your mapserv.exe is much bigger than the one I compiled yesterday > > > (680KB/2.4 Mb). > > > I must have missed an important step in the compilation, or maybe the > > > libpq.dll was not accessible from apache (mine was not in the > > > winnt/system32 folder). > > > > I compiled with static library support, except for zlib and libpq (hence > > the need for the dlls). I tried linking GDAL/OGR and PROJ.4 libs > > dynamically but I get lots of error messages. > > > > > > > > I'm interested in the compilation how-to on windows, though Linux is > our > > > prefered way to run mapserver and postgis. > > > > > > > There are already compilation how-to's for Unix (and Linux) and Windows > > but I'll add the bit about compiling PostGIS support on Windows. Yup, > > I'll add that to my ever expanding to-do list. :) > > > > > > > Regards, > > > Nicolas Ribot > > > SCOT. > > > > > > Ciao! > > Perry N. > > > > PS: Is you app available for public browsing? We ought to update the > good > > old MapServer gallery. > > > > > > > > > > From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Fri Feb 1 13:59:28 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Fri, 1 Feb 2002 16:59:28 -0500 Subject: [mapserver-users] Scale calculation ? Message-ID: <7CDD7B94357FD5119E800002A537C46E22FE65@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, Im having bit of problem, not really mapserver related, but with all the knowledgeable people here I thoguht I'd try :) I've got the following map extent: -1442903,1246771,-1958558,3366821 (These are Meters, LCC) Now if I look at this extent with MapServer, it tells me the scale is: 15840015.370266 (This with a GIF of 428x380) Now if I use the following formula (Taken from the MapServer source): md = width/(resolution*inchesPerUnit[units]); // was (width-1) gd = extent.maxx - extent.minx; which translates into: reqscale = ( -1958558 - -1442903 ) / ( 428 / ( 72 * 39.3701 ) ) in python I consistently get a different result:-3415186.92036 (Or just take the positive version of this, whiich is what you get if you swap minx and miny) Now the value MapServer returns is right ... But what's wrong with MY calculation ??? I need to be able to get to the same number MapServer comes up with. Up 'till now this was working fine ... but not anymore it seems :( I'm no GIS guru, so any help figuring this out would be greatly appreciated :) Thanks :) Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From vguzman at bigfoot.com Fri Feb 1 15:07:03 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Fri, 01 Feb 2002 18:07:03 -0500 Subject: [mapserver-users] Any Mapserver and database forms demos around? References: Message-ID: <3C5B1F97.7050806@bigfoot.com> Tyler Mitchell wrote: >Hi guys, >Many are asking me about collaborative web-based solutions for managing >database information and coupling that with GIS viewing capabilities. >I'm planning to use Mapserver to display mostly point data, but will want >to have the ability to view AND edit database information for each >location. > >Does anyone have a web site that I could look at to see this in action? I >need to describe the concept to my colleagues and would like to show them a >demonstration of a similar kind of system > >Tyler > > Mitchell: If you want you can take a look at: www.main-task.com/sig login: test password: test It provides a solution for manage a set of antennas and coverages for ISP's. You cand add, edit and delete information about clients, antennas, nodes, etc.. This information is stored in a postgres database. It also has a geo-coding algorithm designed for Bogot? city (Colombia). (You can try a search like CR 15 # 85-55 -- This is a typical address in Bogot?) You can also search for an specific client (Try in the combo -> Cliente and in the search box -> ENAUTOS) And you can do zoom-in, zoom-out, pan and zoom all, and hide or show layers (clientes, nodos, antenas) Hope that helps, -- Vladimir Guzm?n R. ----------------- www.main-task.com From vguzman at bigfoot.com Fri Feb 1 15:08:33 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Fri, 01 Feb 2002 18:08:33 -0500 Subject: [mapserver-users] lavels angle (FWD) References: <200202011753.LAA15132@mallit.fr.umn.edu> Message-ID: <3C5B1FF1.6060403@bigfoot.com> teb wrote: >------------- Begin Forwarded Message ------------- > >X-Sender: fgclaram at correo.alu-ab.uclm.es >Date: Fri, 01 Feb 2002 14:25:47 +0100 >To: mapserver-info at lists.gis.umn.edu >From: Francisco >Subject: lavels angle >Mime-Version: 1.0 >X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) > > >Hello. > >I'm trying to set orientation to labels of a streets layer, whith the >streets orientation. >I only can orientate the box of the labels, the labels keep horizontal. > >Can you help me?. >Thank you. > >This is the code: > >LAYER > NAME "calles" > DATA calles.shp > STATUS OFF > TYPE ANNOTATION > MAXSCALE 400000 > SYMBOLSCALE 100000 > LABELITEM "CALLE" > CLASSITEM "CALLE" > LABELANGLEITEM "CALLE" > CLASS > NAME "calles" > LABEL > ANGLE AUTO > POSITION CC > PARTIALS FALSE > SIZE TINY > MINSIZE 8 > MAXSIZE 14 > COLOR 0 0 0 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > ANTIALIAS TRUE > BUFFER 4 > END > END > END >------------------------------------------------------------- > >Regards. >Fran. > > >------------- End Forwarded Message ------------- > > > As Frank Koormann said: Rotated labels only work with truetype fonts. Regards, -- Vladimir Guzm?n R. ----------------- www.main-task.com From pnaciona at gis.umn.edu Fri Feb 1 19:06:06 2002 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 1 Feb 2002 21:06:06 -0600 Subject: [mapserver-users] problem compiling with gdal and ecw Message-ID: Folks, While trying to compile MapServer with GDAL (which has been compiled successfully with ECW support enabled), I ran into the error messages below. Has anyone trying to use ECW stuff encountered this problem before and found a way to fix it? Any help would be appreciated. Here come the messages: Creating library mapserv.lib and object mapserv.exp gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol _NCScbmRead ViewLineBIL gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol _NCSGetErro rText gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol _NCScbmSetF ileView gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol _NCScbmGetV iewFileInfo gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol _NCScbmOpen FileView gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol _NCSEcwComp ressFreeClient gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol _NCSEcwComp ressClose gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol _NCSEcwComp ress gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol _NCSEcwComp ressOpen gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol _NCSEcwComp ressAllocClient mapserv.exe : fatal error LNK1120: 10 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. Thanks in advance for your help. -Perry N. From pnaciona at gis.umn.edu Fri Feb 1 22:17:32 2002 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Sat, 2 Feb 2002 00:17:32 -0600 Subject: [mapserver-users] mapserver and libraries source tree Message-ID: Folks, Some of you have requested my MapServer and libraries source tree. Well, you can now download at your own risk the full tree as a 185 Mb zip file. It's available at http://128.101.73.155/projects/ms35.zip. This what I use to compile the win32 binaries which you can download in the MapServer web site. This now includes the PostgreSQL source. I'm offering this as a one-time deal and I won't be updating the archive. For those who wish to conserve network bandwidth, I'm still providing the binaries. I'm also continuing the weekly compilation from the nightly source. Rock on. -Perry From nachobenito75 at hotmail.com Sat Feb 2 04:31:30 2002 From: nachobenito75 at hotmail.com (Nacho Benito) Date: Sat, 02 Feb 2002 13:31:30 +0100 Subject: [mapserver-users] Draw points? Message-ID: Hi Frank Thank your for your help, It works now, I only have another little problem: I can draw a cross symbol but it's too small, and it always have the same size (and I zoom in it!) What can I do? In my map file I have: SYMBOL NAME "cross" TYPE vector POINTS 2 0 2 50 -99 -99 0 25 50 25 END END Thank you again regards Nacho >From: Frank Koormann >To: Nacho Benito >CC: frank.koormann at intevation.de, mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] Draw points? >Date: Fri, 1 Feb 2002 13:17:31 +0100 > >Hi Nacho, > >* Nacho Benito (nachobenito75 at hotmail.com) [020201 12:56]: > > hello Frank > > > > Frank Koormann wrote: > > >* Nacho Benito (nachobenito75 at hotmail.com) [020131 23:18]: > > > > Hello everybody > > > > I would like to know if it?s possible to draw in the map a point >what it > > > > isn't in any layer. In fact what I want to do is draw a symbol in >any > > > > position. > > > > Please, could you help me? I've been looking for some information >about > > > > that in the mailing archives list but I can't find anything. > > > > Is it relationated with symbols' object? > > > > Thanks in advance > > > > > >iUsing the CGI-version this can be realised with an empty layer for > > >such markers in combination with the mapfile parameter changing >methods. > > > > > >http://mapserver.gis.umn.edu/doc/cgi-reference.html#mapfile > > > > > >should give you an idea of the concept. > > > > Thank you for your help. Can you tell me how I could draw a point if I >know > > the coordinates (however they could change). Do I have to do it with >symbol > > object? > >You need an empty layer defined in your map file: >(replace marker with something reasonable for your application, >especially select an existing symbol) > ># Marker-Layer >LAYER > NAME marker > TYPE POINT > STATUS OFF > CLASS > NAME "marker" > SYMBOL "marker" > END > > POSTLABELCACHE true >END > >From an URL you now can add points to this layer (for the next >visualisation) as indicated by >http://mapserver.gis.umn.edu/doc/cgi-reference.html#mapfile > > >...&map_marker_feature=new&map_marker_feature_points=12345.6789+12345.6789... > >Regards, > > Frank > >-- >Frank Koormann > Professional Service around Free Software (http://intevation.net/) > FreeGIS Project (http://freegis.org/) _________________________________________________________________ MSN Photos es la manera m?s sencilla de compartir e imprimir sus fotos: http://photos.latam.msn.com/Support/WorldWide.aspx From frank.koormann at intevation.de Sat Feb 2 06:54:15 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Sat, 2 Feb 2002 15:54:15 +0100 Subject: [mapserver-users] Draw points? In-Reply-To: References: Message-ID: <20020202145415.GA1843@intevation.de> Hi Nacho, * Nacho Benito (nachobenito75 at hotmail.com) [020202 13:31]: > Hi Frank > Thank your for your help, It works now, I only have another little problem: > I can draw a cross symbol but it's too small, and it always have the same > size (and I zoom in it!) > What can I do? You can change the size using the SIZE keyword of the CLASS object. Using the SYMBOLSCALE keyword (part of the LAYER object you activate scaling of the symbol and define the scale at wich it should reach full size (as specified by SIZE). Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From malone at creedence.org Sat Feb 2 07:09:44 2002 From: malone at creedence.org (malone at creedence.org) Date: Sat, 02 Feb 2002 13:09:44 -0200 (BRST) Subject: [mapserver-users] how to build symbols Message-ID: <1012662584.3c5c0138958b7@creedence.org> Hi, Thanks by answer about label's angles. Now I have another problem. The documentation about symbols is very little. I don't now how to build symbols for streets. My map is the city of Curitiba (Brazil) and I need to draw the streets. I try to draw with a png image. A litlle image white with de edges in gray, but stay very ugly. Anyone have another documentation about symbols ? Can I how to draw this symbol ? Thanks, []' Michel M. dos Santos From nachobenito75 at hotmail.com Sat Feb 2 10:01:31 2002 From: nachobenito75 at hotmail.com (Nacho Benito) Date: Sat, 02 Feb 2002 19:01:31 +0100 Subject: [mapserver-users] Draw points? Message-ID: Hi Frank, Thank's. All is working perfectly. Your help was very useful. Regards, Nacho >From: Frank Koormann >To: Nacho Benito >CC: frank.koormann at intevation.de, mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] Draw points? >Date: Sat, 2 Feb 2002 15:54:15 +0100 > >Hi Nacho, > >* Nacho Benito (nachobenito75 at hotmail.com) [020202 13:31]: > > Hi Frank > > Thank your for your help, It works now, I only have another little >problem: > > I can draw a cross symbol but it's too small, and it always have the >same > > size (and I zoom in it!) > > What can I do? > >You can change the size using the SIZE keyword of the CLASS object. >Using the SYMBOLSCALE keyword (part of the LAYER object you activate >scaling of the symbol and define the scale at wich it should reach full >size (as specified by SIZE). > >Regards, > > Frank > >-- >Frank Koormann > Professional Service around Free Software (http://intevation.net/) > FreeGIS Project (http://freegis.org/) _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.yupimsn.com/intl.asp From armin.burger at territoriumonline.com Sun Feb 3 08:02:07 2002 From: armin.burger at territoriumonline.com (Armin Burger) Date: Sun, 3 Feb 2002 17:02:07 +0100 Subject: [mapserver-users] Accessing MapServer with an ArcView3 extension Message-ID: <200202031603.KAA24676@lists.gis.umn.edu> Hello MapServer users, if anyone of you is interested in an ArcView 3.x extension to access MapServer services: I wrote an extension that dynamically loads MapServer layers as image themes into ArcView. Unfortunately I cannot offer the extension as Open Source because it shares plenty of code with a commercial extension of my company. If anybody would like to try it, though (I regard it as 'freeware'): you can download it at http://digilander.iol.it/arminburger/avmapserv.html There you'll find also a short description how to use it. Armin From morissette at dmsolutions.ca Sun Feb 3 13:34:42 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sun, 03 Feb 2002 16:34:42 -0500 Subject: [mapserver-users] so i have newbie question References: <000801c1ab2e$0c790e70$7201010a@localhost.atser> Message-ID: <3C5DACF2.C45030B8@dmsolutions.ca> Grant Marblestone wrote: > > So i have been working along with some other people on this site > http://66.1.116.66:8080/aweb/gmap_permits/htdocs/index.html > > and i want to know if its possible to have the gmapdumpqueryresults() > > on a separate frame from the actual map? I am doing this so that the > above map page will not reload and only the query results will change > on the bottom frame. > Yes it is possible to redirect output to a separate frame or even to another window by setting the FORM's TARGET. To do this you'll have to write some JavaScript functions to be called 'onClick' for each of the controls in the page that can submit the form, even those buttons that are not targetted to a separate frame. There is nothing specific to MapServer here... it's just making use of JavaScript to control the action and target of a FORM. Now, in your case I see that you use the ROSA applet... so things are different because there is no way to set an onClick callback on an applet. But ROSA has a parameter called "TB_BUT_*_JSACTION" which does the same as an onClick would do on a submit button. I attached below 2 JavaScript functions that can be used as JSACTIONs in ROSA to achieve what you want. You have to set TB_BUT_*_JSACTION to have an empty TARGET value and point to the main gmap_permits.php script for all your ROSA toolbar buttons... ... except the QUERY button for which you would set the target to 'query_frame' and have it call a separate point_query.php script to handle the query on the server... I hope that helps. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. function submitAction(strTarget, strAction) { // Force new form action and target and submit if ((mapForm = document.forms[0]) == null) { window.alert("Map form not found!"); return; } mapForm.target = strTarget; mapForm.action = strAction; mapForm.submit(); } From s8854617 at sinamail.com Sun Feb 3 21:53:39 2002 From: s8854617 at sinamail.com (=?big5?B?czg4NTQ2MTc=?=) Date: Mon, 4 Feb 2002 13:53:39 +0800 Subject: [mapserver-users] =?big5?B?SG93IHRvIHVzZSBQb3N0R0lTIHdpdGggaXRlbXF1ZXJ5Pw==?= Message-ID: <20020204055339.20662.qmail@sinamail.com> Hi everybody: I am trying using MapServer with itemquery to access the table in PostGIS. But I got a message: msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing POSTGIS DECLARE statement (0.6 failed - retried 0.5 and it failed too). Following is my template & map files: My template HTML: Let US GO! GO! GO!
The ID:
My tuto4.map (Map file) is: NAME EX3 SIZE 500 400 EXTENT 208385 2672226 209810 2673639 FONTSET /var/www/html/itasca/fonts.list UNITS meters IMAGECOLOR 255 255 255 IMAGETYPE PNG WEB IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 END LAYER NAME test CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=testdb" DATA "shape from post_map" STATUS DEFAULT TYPE POLYGON FILTER "value_08 = judger" CLASS COLOR 0 255 0 OUTLINECOLOR 0 0 0 TEMPLATE tuto3_show.html END END END # Fim do MapFile My query template tuto3_show.html: That is a SHOW!!

This is a test

My post_map table is PostGIS: testdb=# \d post_map Table "post_map" Attribute | Type | Modifier -----------+--------------+---------- lid_01 | character(4) | lid_02 | character(4) | lid_03 | character(4) | shape | geometry | aa08 | character(1) | value_08 | integer | I want the "judger" variable can be assign a value from the go3.html by users, then tuto4.map filter data with the judger (in FILTER "value_08 = judger"). Could anyone tell me where I must fix ? Thank you very much. Whang Yeong Chong ================================================================== ??????? ??????! [??] sina [??] sina at u2online [????] 4050-8888? ???http://u2.sina.com.tw/sina???????? From Miroslav.Sodja at gov.si Mon Feb 4 01:25:25 2002 From: Miroslav.Sodja at gov.si (Miroslav Sodja) Date: Mon, 4 Feb 2002 10:25:25 +0100 Subject: [mapserver-users] Raster Message-ID: <000001c1ad5d$e0d34330$24b1000a@Miro> Hi all, I have questions about raster data. Layer with raster data has 38 images; images are about 4500 pixel width, and 6000 pixel height with 2 colors. I have tile index of those images. The problem is that every image has border with no data. And that border goes across the data of neighbor image. The image should be transparent. There is no problem if I have png file format with transparent background and map file look like that LAYER #raster 50.000 NAME "IME_50" TILEINDEX "raster/ko_50.shp" TILEITEM "PNG_NAME" TYPE raster STATUS ON MAXSCALE 60000 CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] <1 ) COLOR 0 0 0 END END But response of IIS and MapServer in that case is very slow. If I have tiff file format of those images I have white space around every image in layer but response of IIS and MapServer is fast. Map file is the same except: TILEITEM "TIF_NAME" I can't cut border with no data because images are deformed and new world file would be difficult to calculate. I have MapServer: MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE and IIS 5.0 on Windows 2000. Thanks for any suggestions. Miro Sodja miroslav.sodja at gov.si From malone at creedence.org Mon Feb 4 04:15:51 2002 From: malone at creedence.org (malone at creedence.org) Date: Mon, 04 Feb 2002 10:15:51 -0200 (BRST) Subject: [mapserver-users] PHP 4.1.1 Message-ID: <1012824951.3c5e7b771bdc8@creedence.org> Hi, The mapscript doesn't compile with PHP version 4.1.1 (Conectiva Linux 7.0) : gdbm -I/usr/include/db1 -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/home/michel/mapserver_3.5 -I/usr/include -I/usr/include/php -I/usr/include/php/dl -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/include -I/usr/include/php/TSRM -c -o php_mapscript.o php_mapscript.c php_mapscript.c:434: warning: initialization makes integer from pointer without a cast php_mapscript.c:434: initializer element is not computable at load time php_mapscript.c:434: (near initialization for `php3_ms_module_entry.size') php_mapscript.c:434: warning: initialization makes integer from pointer without a cast php_mapscript.c:434: warning: initialization makes integer from pointer without a cast php_mapscript.c:434: initializer element is not computable at load time php_mapscript.c:434: (near initialization for `php3_ms_module_entry.zend_debug') php_mapscript.c:434: warning: initialization makes integer from pointer without a cast php_mapscript.c:434: initializer element is not computable at load time php_mapscript.c:434: (near initialization for `php3_ms_module_entry.zts') php_mapscript.c:437: warning: initialization from incompatible pointer type php_mapscript.c: In function `php3_ms_img_saveImage': php_mapscript.c:3917: warning: implicit declaration of function `php_header' make[1]: *** [php_mapscript.o] Error 1 make[1]: Leaving directory `/home/michel/mapserver_3.5/mapscript/php3' With PHP 4.0.6 works fine. Is a bug in PHP or in mapscript ? []'s Michel M. dos Santos From ed at topozone.com Mon Feb 4 06:23:20 2002 From: ed at topozone.com (Ed McNierney) Date: Mon, 4 Feb 2002 09:23:20 -0500 Subject: [mapserver-users] Raster Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7C21@mercator.topozone.com> Miroslav - Store your images as TIFF files and use the OFFSITE keyword. If you can set no-data pixels to a unique value (not otherwise found in the image) in your TIFF files, just add the OFFSITE keyword to the raster layer with the TIFF file as data or indexed through a TILEINDEX file. If the value of your no-data pixel is 255, for example, then OFFSITE 255 will cause all pixels with that value to be treated as transparent. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Miroslav Sodja [mailto:Miroslav.Sodja at gov.si] Sent: Monday, February 04, 2002 4:25 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Raster Hi all, I have questions about raster data. Layer with raster data has 38 images; images are about 4500 pixel width, and 6000 pixel height with 2 colors. I have tile index of those images. The problem is that every image has border with no data. And that border goes across the data of neighbor image. The image should be transparent. There is no problem if I have png file format with transparent background and map file look like that LAYER #raster 50.000 NAME "IME_50" TILEINDEX "raster/ko_50.shp" TILEITEM "PNG_NAME" TYPE raster STATUS ON MAXSCALE 60000 CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] <1 ) COLOR 0 0 0 END END But response of IIS and MapServer in that case is very slow. If I have tiff file format of those images I have white space around every image in layer but response of IIS and MapServer is fast. Map file is the same except: TILEITEM "TIF_NAME" I can't cut border with no data because images are deformed and new world file would be difficult to calculate. I have MapServer: MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE and IIS 5.0 on Windows 2000. Thanks for any suggestions. Miro Sodja miroslav.sodja at gov.si From warmerdam at pobox.com Mon Feb 4 06:51:29 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 04 Feb 2002 09:51:29 -0500 Subject: [mapserver-users] Raster References: <000001c1ad5d$e0d34330$24b1000a@Miro> Message-ID: <3C5E9FF1.4010108@pobox.com> Miroslav Sodja wrote: > Hi all, > > I have questions about raster data. > > Layer with raster data has 38 images; images are about 4500 pixel width, > and 6000 pixel height with 2 colors. I have tile index of those images. > The problem is that every image has border with no data. And that border > goes across the data of neighbor image. The image should be transparent. > There is no problem if I have png file format with transparent > background and map file look like that > > LAYER #raster 50.000 > NAME "IME_50" > TILEINDEX "raster/ko_50.shp" > TILEITEM "PNG_NAME" > TYPE raster > STATUS ON > MAXSCALE 60000 > CLASSITEM "[pixel]" > CLASS > EXPRESSION ([pixel] <1 ) > COLOR 0 0 0 > END > END > > But response of IIS and MapServer in that case is very slow. > > If I have tiff file format of those images I have white space around > every image in layer but response of IIS and MapServer is fast. Map file > is the same except: > > TILEITEM "TIF_NAME" > > I can't cut border with no data because images are deformed and new > world file would be difficult to calculate. > > I have MapServer: > > MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE Miro, Don't you just need to use hte OFFSITE parameter in your LAYER description? For example, the following would indicate that any pixel with the value 0 should be treated as NODATA. The GDAL support in MapServer honours this, at least for colormapped images. OFFSITE 0 Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From morissette at dmsolutions.ca Mon Feb 4 07:09:11 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 04 Feb 2002 10:09:11 -0500 Subject: [mapserver-users] PHP 4.1.1 References: <1012824951.3c5e7b771bdc8@creedence.org> Message-ID: <3C5EA417.D8CDD45E@dmsolutions.ca> malone at creedence.org wrote: > > Hi, > > The mapscript doesn't compile with PHP version 4.1.1 (Conectiva Linux 7.0) : > PHP MapScript in MapServer 3.5 (release version) works only with PHP4.0.6 ... for more details on the status of MapScript and PHP4.1.1, see the following archive message: http://mapserver.gis.umn.edu/wilma/mapserver-users/0201/msg00291.html -- ------------------------------------------------------------ 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 trussell at mtcsc.com Mon Feb 4 08:04:36 2002 From: trussell at mtcsc.com (trussell at mtcsc.com) Date: Mon, 4 Feb 2002 08:04:36 -0800 Subject: [mapserver-users] Raster References: <000001c1ad5d$e0d34330$24b1000a@Miro> Message-ID: <001601c1ad95$a4f9c810$8664000a@sd.saclant.nato.int> Hi, I noticed that IE's png viewer is quite a processor hog and would like to find an alternative for that reason. Are you sure your lag time is on the server side? Tom ----- Original Message ----- From: "Miroslav Sodja" To: Sent: Monday, February 04, 2002 1:25 AM Subject: [mapserver-users] Raster > Hi all, > > I have questions about raster data. > > Layer with raster data has 38 images; images are about 4500 pixel width, > and 6000 pixel height with 2 colors. I have tile index of those images. > The problem is that every image has border with no data. And that border > goes across the data of neighbor image. The image should be transparent. > There is no problem if I have png file format with transparent > background and map file look like that > > LAYER #raster 50.000 > NAME "IME_50" > TILEINDEX "raster/ko_50.shp" > TILEITEM "PNG_NAME" > TYPE raster > STATUS ON > MAXSCALE 60000 > CLASSITEM "[pixel]" > CLASS > EXPRESSION ([pixel] <1 ) > COLOR 0 0 0 > END > END > > But response of IIS and MapServer in that case is very slow. > > If I have tiff file format of those images I have white space around > every image in layer but response of IIS and MapServer is fast. Map file > is the same except: > > TILEITEM "TIF_NAME" > > I can't cut border with no data because images are deformed and new > world file would be difficult to calculate. > > I have MapServer: > > MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > and IIS 5.0 on Windows 2000. > > Thanks for any suggestions. > > > Miro Sodja miroslav.sodja at gov.si > > > > From shussain at atsincorp.com Mon Feb 4 10:14:50 2002 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Mon, 4 Feb 2002 13:14:50 -0500 Subject: [mapserver-users] shape file extent Message-ID: <4D25CDA67110D3119FFB0008C707D7A7051EFD@deathstar> Hi List, Does any one know how to get the extent of a selected shape file. Please help me for this. Thanks, Hussain From steve.lime at dnr.state.mn.us Mon Feb 4 12:17:09 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 04 Feb 2002 14:17:09 -0600 Subject: [mapserver-users] Fwd: POSTGIS/Mapscript DB connection is not closing Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: jeff lounsbury Subject: POSTGIS/Mapscript DB connection is not closing Date: Mon, 04 Feb 2002 12:19:20 -0800 Size: 2727 URL: From teb at mallit.fr.umn.edu Mon Feb 4 12:15:45 2002 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 4 Feb 2002 14:15:45 -0600 (CST) Subject: [mapserver-users] POSTGIS/Mapscript DB connection is not closing (FWD) Message-ID: <200202042015.OAA16493@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Mon, 04 Feb 2002 12:19:20 -0800 From: jeff lounsbury X-Accept-Language: en MIME-Version: 1.0 To: mapserver-info at lists.gis.umn.edu Subject: POSTGIS/Mapscript DB connection is not closing Content-Transfer-Encoding: 7bit After I use mapscript to query my postgis layer in my map, the postmaster that got run never dies/closes? Anyone have any idea on why this might be happening? Hhere is an exerpt of the offending mapscript code... //turn the point where the user clicked on the image into a lat/long co-ordinate $pt = ms_newPointObj(); $lat = get_lat($map->extent->minx, $map->extent->maxx, $img_x, 700); $long = get_long($map->extent->miny, $map->extent->maxy, $img_y, 350); $pt->setXY($lat, $long); //query the postgis layer $layer = $map->getLayer(5); $err = @$layer->queryByPoint($pt, MS_MULTIPLE, $missby); if($err == MS_FAILURE){ echo "There were no results found, try zooming in closer."; }else if( $err == MS_SUCCESS){ $layer->open($img->shapepath); //save the query results into an array $i=0; $result = $layer->getResult($i); while($result != FALSE && $i < 5){ $shape = $layer->getShape($result->tileindex, $result->shapeindex); $value = $shape->values; $val[$i] = $value; $i++; $result = $layer->getResult($i); } $results_found =1; } $layer->close; As well as the postgid layer in the mapfile: LAYER CONNECTIONTYPE postgis NAME "mypostgis" DATA "point from usage_points" CONNECTION "host=ox user=postgres port=5555 dbname=postgis_usage" STATUS DEFAULT TYPE POINT CLASS TEMPLATE query.html MINSIZE 10 SYMBOL star COLOR 250 0 25 END END ,thanks -Jeff ------------- End Forwarded Message ------------- From v at w.cl Mon Feb 4 16:56:07 2002 From: v at w.cl (Vinko Vrsalovic) Date: Mon, 4 Feb 2002 19:56:07 -0500 Subject: [mapserver-users] shape file extent In-Reply-To: <4D25CDA67110D3119FFB0008C707D7A7051EFD@deathstar> References: <4D25CDA67110D3119FFB0008C707D7A7051EFD@deathstar> Message-ID: <20020204195607.A9131@landsat.cprsig.cl> On Mon, Feb 04, 2002 at 01:14:50PM -0500, Shaik Anwar Hussain wrote: > Hi List, > > Does any one know how to get the extent of a selected shape file. > ArcView: View->Properties->Area of Interest->Theme AcrExplorer: Don't know how, but must be very similar to arcview. PHP MapScript: numshapes;$i++) { $extent = $shapef->getExtent($i); echo "$i.- MINX $extent->minx "; echo "MINY $extent->miny "; echo "MAXX $extent->maxx "; echo "MAXY $extent->maxy \n
\n"; } $shapef->free(); ?> (From that output you should select the lowest minx and miny and the highest maxx and maxy for you to use as a global extent for that shapefile, that should be easy to obtain from the script above) You can translate this to perl if you like and run it from the console. I seem to recall that in some of the examples of Perl mapscript (from the source tree: mapserver/mapscript/perl/examples) there was a perl script that did exactly that. -- V. From dblasby at refractions.net Mon Feb 4 14:59:18 2002 From: dblasby at refractions.net (Dave Blasby) Date: Mon, 04 Feb 2002 14:59:18 -0800 Subject: [mapserver-users] POSTGIS/Mapscript DB connection is not closing Message-ID: <3C5F1246.D91839E0@refractions.net> >>After I use mapscript to query my postgis layer in my map, the >>postmaster that got run never dies/closes? >> >>Anyone have any idea on why this might be happening? >>here is an exerpt of the offending mapscript code... The PostGIS connector should close the mapserver connection when the msPOSTGISLayerClose() method is called. Your problem might be caused by mapserver not closing the layer. It could also be caused by PostgreSQL not properly closing down in the middle of a transaction (this shouldnt be a problem). dave From teb at mallit.fr.umn.edu Mon Feb 4 15:02:49 2002 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 4 Feb 2002 17:02:49 -0600 (CST) Subject: [mapserver-users] What's the best solution (FWD) Message-ID: <200202042302.RAA16692@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "SergioVallejo" To: Subject: What's the best solution Date: Mon, 4 Feb 2002 23:35:35 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Good day My name is Sergio Vallejo. I'm developing a site that uses soil maps. Actually, all the maps are images that we generate from shape files of ARcview. We would like to use MapServer to create a dynamic map interface to interrogate the databases. All ours pages are in ASP/VBScript. Is their a simple solution in this case ? Sergio Vallejo 2A rue Pierre de Coubertin 30320 Marguerittes t?l : 04 66 75 53 36 e-mail : sergio.vallejo at wanadoo.fr ------------- End Forwarded Message ------------- From trussell at mtcsc.com Mon Feb 4 16:46:11 2002 From: trussell at mtcsc.com (trussell at mtcsc.com) Date: Mon, 4 Feb 2002 16:46:11 -0800 Subject: [mapserver-users] POSTGIS/Mapscript DB connection is not closing (FWD) References: <200202042015.OAA16493@mallit.fr.umn.edu> Message-ID: <006101c1adde$81e10fc0$8664000a@sd.saclant.nato.int> Teb, Postmaster is supposed to behave like that. It runs in the background and fields requests. There's some great documentation on this at http://www.postgresql.org/idocs/index.php?postmaster-start.html. The code you included regards a topic I've been wondering about - doing a postgis query from a point selection. Hope to get something working there... Tom ----- Original Message ----- From: "teb" To: Cc: Sent: Monday, February 04, 2002 12:15 PM Subject: [mapserver-users] POSTGIS/Mapscript DB connection is not closing (FWD) > > ------------- Begin Forwarded Message ------------- > > Date: Mon, 04 Feb 2002 12:19:20 -0800 > From: jeff lounsbury > X-Accept-Language: en > MIME-Version: 1.0 > To: mapserver-info at lists.gis.umn.edu > Subject: POSTGIS/Mapscript DB connection is not closing > Content-Transfer-Encoding: 7bit > > After I use mapscript to query my postgis layer in my map, the > postmaster that got run never dies/closes? > > Anyone have any idea on why this might be happening? > Hhere is an exerpt of the offending mapscript code... > > file://turn the point where the user clicked on the image into a lat/long > co-ordinate > $pt = ms_newPointObj(); > $lat = get_lat($map->extent->minx, $map->extent->maxx, $img_x, > 700); > $long = get_long($map->extent->miny, $map->extent->maxy, $img_y, > 350); > $pt->setXY($lat, $long); > file://query the postgis layer > $layer = $map->getLayer(5); > $err = @$layer->queryByPoint($pt, MS_MULTIPLE, $missby); > > if($err == MS_FAILURE){ > echo "There were no results found, try > zooming in closer."; > }else if( $err == MS_SUCCESS){ > $layer->open($img->shapepath); > file://save the query results into an array > $i=0; > $result = $layer->getResult($i); > while($result != FALSE && $i < 5){ > $shape = $layer->getShape($result->tileindex, > $result->shapeindex); > $value = $shape->values; > $val[$i] = $value; > $i++; > $result = $layer->getResult($i); > } > $results_found =1; > } > $layer->close; > > > > As well as the postgid layer in the mapfile: > LAYER > CONNECTIONTYPE postgis > NAME "mypostgis" > DATA "point from usage_points" > CONNECTION "host=ox user=postgres port=5555 dbname=postgis_usage" > STATUS DEFAULT > TYPE POINT > CLASS > TEMPLATE query.html > MINSIZE 10 > SYMBOL star > COLOR 250 0 25 > END > END > > ,thanks > -Jeff > > > ------------- End Forwarded Message ------------- > > > From Rich at GreenwoodMap.com Mon Feb 4 20:14:25 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Mon, 04 Feb 2002 21:14:25 -0700 Subject: [mapserver-users] POSTGIS/Mapscript DB connection is not closing In-Reply-To: Message-ID: <5.1.0.14.0.20020204210949.00aea610@mail.GreenwoodMap.com> Are you referring to the postmaster or psql? Nobody should shut down postmaster except the postgres user or the OS, but if you have the psql monitor running, you will see a bunch of stuff. You can ignore it, hit to get back to the psql prompt, or just don't run psql. >After I use mapscript to query my postgis layer in my map, the >postmaster that got run never dies/closes? > >Anyone have any idea on why this might be happening? >Hhere is an exerpt of the offending mapscript code... > > //turn the point where the user clicked on the image into a lat/long >co-ordinate > $pt = ms_newPointObj(); > $lat = get_lat($map->extent->minx, $map->extent->maxx, $img_x, >700); > $long = get_long($map->extent->miny, $map->extent->maxy, $img_y, >350); > $pt->setXY($lat, $long); > //query the postgis layer > $layer = $map->getLayer(5); > $err = @$layer->queryByPoint($pt, MS_MULTIPLE, $missby); > > if($err == MS_FAILURE){ > echo "There were no results found, try >zooming in closer."; > }else if( $err == MS_SUCCESS){ > $layer->open($img->shapepath); > //save the query results into an array > $i=0; > $result = $layer->getResult($i); > while($result != FALSE && $i < 5){ > $shape = $layer->getShape($result->tileindex, >$result->shapeindex); > $value = $shape->values; > $val[$i] = $value; > $i++; > $result = $layer->getResult($i); > } > $results_found =1; > } > $layer->close; > > > >As well as the postgid layer in the mapfile: >LAYER > CONNECTIONTYPE postgis > NAME "mypostgis" > DATA "point from usage_points" > CONNECTION "host=ox user=postgres port=5555 dbname=postgis_usage" > STATUS DEFAULT > TYPE POINT > CLASS > TEMPLATE query.html > MINSIZE 10 > SYMBOL star > COLOR 250 0 25 > END > END > >,thanks >-Jeff Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From Rich at GreenwoodMap.com Mon Feb 4 20:23:14 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Mon, 04 Feb 2002 21:23:14 -0700 Subject: [mapserver-users] What's the best solution (FWD) In-Reply-To: <200202042302.RAA16692@mallit.fr.umn.edu> Message-ID: <5.1.0.14.0.20020204212000.00af55c0@mail.GreenwoodMap.com> I'd be reluctant to say what the "best" way to do it was, but you should read Ed McNierney excellent discussion of calling mapserver from an asp script: http://mapserver.gis.umn.edu/wilma/mapserver-users/0112/msg00066.html Rich At 05:02 PM 2/4/2002 -0600, you wrote: >------------- Begin Forwarded Message ------------- > >From: "SergioVallejo" >To: >Subject: What's the best solution >Date: Mon, 4 Feb 2002 23:35:35 +0100 >MIME-Version: 1.0 >X-Priority: 3 >X-MSMail-Priority: Normal >X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 > >Good day > >My name is Sergio Vallejo. I'm developing a site that uses soil >maps. Actually, all the maps are images that we generate from >shape files of ARcview. We would like to use MapServer to create >a dynamic map interface to interrogate the databases. > >All ours pages are in ASP/VBScript. > >Is their a simple solution in this case ? > >Sergio Vallejo >2A rue Pierre de Coubertin >30320 Marguerittes >t?l : 04 66 75 53 36 >e-mail : sergio.vallejo at wanadoo.fr > >------------- End Forwarded Message ------------- Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From Rich at GreenwoodMap.com Mon Feb 4 20:41:13 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Mon, 04 Feb 2002 21:41:13 -0700 Subject: [mapserver-users] problem compiling with gdal and ecw In-Reply-To: Message-ID: <5.1.0.14.0.20020204212938.02016228@mail.GreenwoodMap.com> I wish I kept better notes, but I edited the nmake.opt file in GDAL and added: ECWDIR = E:\Inetpub\wwwroot\mapserver\download\etc\ecw_sdk ECWLIB = $(ECWDIR)\lib\NCSEcw.lib $(ECWDIR)\lib\NCSEcwC.lib \ $(ECWDIR)\lib\NCSUtil.lib I compiled GDAL and tested for ecw functionality. Then in the mapserver makefile.vc I added: GDAL=-DUSE_GDAL ECW_DIR = E:\Inetpub\wwwroot\mapserver\download\etc\ecw_sdk\lib GDAL_LIB= $(GDAL_DIR)/gdal.lib $(ECW_DIR)\NCSEcwC.lib $(ECW_DIR)\NCSEcw.lib $(ECW_DIR)\NCSUtil.lib Basically when I get an unresolved external, I search for files containing the referenced external string and try to include the library or object file that includes that string (this is the way an uneducated person solves this sort of problem, my apologies to those of you who know how to do it correctly). Rich At 09:06 PM 2/1/2002 -0600, you wrote: >Folks, > >While trying to compile MapServer with GDAL (which has been compiled >successfully with ECW support enabled), I ran into the error messages below. >Has anyone trying to use ECW stuff encountered this problem before and found >a way to fix it? Any help would be appreciated. > >Here come the messages: > > Creating library mapserv.lib and object mapserv.exp >gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol >_NCScbmRead >ViewLineBIL >gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol >_NCSGetErro >rText >gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol >_NCScbmSetF >ileView >gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol >_NCScbmGetV >iewFileInfo >gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol >_NCScbmOpen >FileView >gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol >_NCSEcwComp >ressFreeClient >gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol >_NCSEcwComp >ressClose >gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol >_NCSEcwComp >ress >gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol >_NCSEcwComp >ressOpen >gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol >_NCSEcwComp >ressAllocClient >mapserv.exe : fatal error LNK1120: 10 unresolved externals >NMAKE : fatal error U1077: 'link' : return code '0x460' >Stop. > >Thanks in advance for your help. > >-Perry N. Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From Miroslav.Sodja at gov.si Mon Feb 4 23:21:08 2002 From: Miroslav.Sodja at gov.si (Miroslav Sodja) Date: Tue, 5 Feb 2002 08:21:08 +0100 Subject: FW: [mapserver-users] Raster Message-ID: <000101c1ae15$aea8d150$24b1000a@Miro> Miro Sodja e-mail: miroslav.sodja at gov.si -----Original Message----- From: Miroslav Sodja [mailto:Miroslav.Sodja at gov.si] Sent: Monday, February 04, 2002 3:45 PM To: 'ed at topozone.com' Subject: RE: [mapserver-users] Raster Thank you very much. It works. Miro Sodja miroslav.sodja at gov.si From Miroslav.Sodja at gov.si Tue Feb 5 00:00:26 2002 From: Miroslav.Sodja at gov.si (Miroslav Sodja) Date: Tue, 5 Feb 2002 09:00:26 +0100 Subject: [mapserver-users] Raster In-Reply-To: <001601c1ad95$a4f9c810$8664000a@sd.saclant.nato.int> Message-ID: <000001c1ae1b$2ba26ea0$24b1000a@Miro> I'm quite a few sure (is that correct in English) that lag time is on the server side. I try with Netscape too, but response time was almost the same. Bye Miro Sodja e-mail: miroslav.sodja at gov.si -----Original Message----- From: trussell at mtcsc.com [mailto:trussell at mtcsc.com] Sent: Monday, February 04, 2002 5:05 PM To: Miroslav.Sodja at gov.si; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Raster Hi, I noticed that IE's png viewer is quite a processor hog and would like to find an alternative for that reason. Are you sure your lag time is on the server side? Tom From jef.mony at free.fr Tue Feb 5 00:15:39 2002 From: jef.mony at free.fr (jef.mony at free.fr) Date: Tue, 5 Feb 2002 09:15:39 +0100 Subject: [mapserver-users] =?ISO-8859-1?Q?forum_fran=E7ais?= Message-ID: <3C5FA2BB.15648.F5D77@localhost> Salut ? tous, Voici comme pr?vu l'adresse d'un forum mapserver en fran?ais. Pour l'instant c'est un peu mort, mais c'est le d?but et il ne tient qu'? nous d'en faire un r?el outil. Alors A+ sur ce forum. http://rigel.ciril.fr/forum/index.php nb : l'envoi de message ou de r?ponses n?cessite d'?tre enregist?, alors n'h?sitez pas. Jef From nachobenito75 at hotmail.com Tue Feb 5 01:40:50 2002 From: nachobenito75 at hotmail.com (Nacho Benito) Date: Tue, 05 Feb 2002 10:40:50 +0100 Subject: No subject Message-ID: Hi list I have one problem that I would like to ask: I'm drawing some points as symbols like you explain to me (creating a new feature and sending the points by url) but I can't refresh all of them (only one ) when I zoom in the map. The code of the temaplate file is: (part of it of course) Thank you for your help Regards Nacho _________________________________________________________________ Hable con sus amigos en l?nea, pruebe MSN Messenger: http://messenger.msn.es From jef.mony at free.fr Tue Feb 5 02:29:39 2002 From: jef.mony at free.fr (jef.mony at free.fr) Date: Tue, 5 Feb 2002 11:29:39 +0100 Subject: =?ISO-8859-1?Q?Re:_[mapserver-users]_forum_fran=E7ais?= In-Reply-To: <5.1.0.14.2.20020205105213.00a34270@localhost> References: <3C5FA2BB.15648.F5D77@localhost> Message-ID: <3C5FC223.21552.8A0C08@localhost> Hi, As you see I can try to use english. I agree that there are more english users than french. Perhaps we are not enought to make this forum working, I don't know. But I don't want to exclude the english people and they can come and use the language they want. This annonce is just a way to help frenchies who prefer speak french. I use PhpBB and I've just translate the forum thema in english, then if you want, you can come. A+, Jef From nachobenito75 at hotmail.com Tue Feb 5 03:18:54 2002 From: nachobenito75 at hotmail.com (Nacho Benito) Date: Tue, 05 Feb 2002 12:18:54 +0100 Subject: [mapserver-users] Refresh the symbols Message-ID: Hi list I have one problem that I would like to ask: I'm drawing some points as symbols like you explain to me (creating a new feature and sending the points by url) but I can't refresh all of them (only one ) when I zoom in the map. The code of the temaplate file is: (part of it of course) Thank you for your help Regards Nacho _________________________________________________________________ Con MSN Hotmail s?mese al servicio de correo electr?nico m?s grande del mundo. http://www.hotmail.com/ES From nachobenito75 at hotmail.com Tue Feb 5 03:38:38 2002 From: nachobenito75 at hotmail.com (Nacho Benito) Date: Tue, 05 Feb 2002 12:38:38 +0100 Subject: [mapserver-users] Refresh symbols after zooms Message-ID: Hi list I have one problem that I would like to ask: I'm drawing some points as symbols like you explain to me (creating a new feature and sending the points by url) but I can't refresh all of them (only one ) when I zoom in the map. The code of the temaplate file is: (part of it of course) Thank you for your help Regards Nacho _________________________________________________________________ MSN Photos es la manera m?s sencilla de compartir e imprimir sus fotos: http://photos.latam.msn.com/Support/WorldWide.aspx From perik at azimuth.nl Tue Feb 5 04:58:14 2002 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Tue, 05 Feb 2002 13:58:14 +0100 Subject: =?iso-8859-1?Q?Re:_[mapserver-users]_forum_fran=E7ais?= In-Reply-To: <3C5FA2BB.15648.F5D77@localhost> Message-ID: <5.1.0.14.2.20020205135742.00a40100@localhost> Bonjour Jef, "pourquoi un forum en francais et ne pas english?" As brought up by Puneet at the end of last year, a forum would be a good alternative for information and questions regarding Mapserver and everything related. phpBB is a very good start as an alternative for the mailinglist. Discussions online tend to result in more interesting replies and remarks then from mailing-lists. As i remember correct, users can set their language for phpBB to what they choose. The question and answers however should be done in english. As mapserver, mascript, mapfiles etc... are also english it's good to keep it all the same. Also for learning english it's a good start ;-) If you switch to english, you can count me in as an extra member ;-) Erwin ** PS. is there an english-forum regarding mapserver ? At 09:15 5-2-02 +0100, jef.mony at free.fr wrote: >Salut ? tous, >Voici comme pr?vu l'adresse d'un forum mapserver en fran?ais. >Pour l'instant c'est un peu mort, mais c'est le d?but et il ne tient qu'? >nous >d'en faire un r?el outil. >Alors A+ sur ce forum. >http://rigel.ciril.fr/forum/index.php > >nb : l'envoi de message ou de r?ponses n?cessite d'?tre enregist?, alors >n'h?sitez pas. > >Jef From ahaigh at ic24.net Tue Feb 5 04:57:26 2002 From: ahaigh at ic24.net (Andrew) Date: Tue, 5 Feb 2002 12:57:26 -0000 Subject: [mapserver-users] Scalebar label Message-ID: <000201c1ae49$58f80760$0200a8c0@plasma> I'm relatively new to Mapserver and I'm attempting to implement Mapserver as on OGC WMS. I have two problems, so any help would be greatly appreciated. I've attached my mapfile definition at the bottom of the e-mail. 1. I have defined a scalebar, which I'd like to embed in the map. This works fine however, I want to place some text (a copyright notice) next to the scalebar (i.e. along the bottom of the map). To do this I think I need to include a label entry in my scalebar definition, but I can't work out how to set the text I want to display. 2. I have a vector layer which contains 136 polygons (name: 'boarders'). I'd like to make these semi-transparent, so you can still see the raster data in the layer below. Can you do this with Mapserver? I'm using Mapserver 3.5 on Windows 2000. Thanks in advance, Andrew Map file follows: NAME EMS STATUS ON SIZE 500 350 EXTENT 380000 400000 450000 450000 UNITS METERS IMAGETYPE gif PROJECTION "init=epsg:27700" END WEB METADATA "wms_title" "Enviroport Map Server" "wms_onlineresource" "http://plasma/cgi-bin/mapserv.exe?map=c:\demo.map" "wms_srs" "epsg:27700" END END # Definitions for map symbols SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END # End of map symbol definitions # Start of Map Layers, The first layer in this list is displayed at the bottom, etc. # Raster Data - Using shapefile index LAYER NAME "rst50k" TYPE raster STATUS ON TRANSFORM true TILEINDEX "H:\data\50k\tiff\poly" PROJECTION "init=epsg:27700" END METADATA WMS_TITLE "1:50,000 Colour Raster" WMS_ABSTRACT "Add info here" WMS_SRS "EPSG:27700" END # End of Metadata tag END # End of 50k raster # Ward Data - shapefile LAYER NAME "boarders" TYPE polygon DATA "H:\data\UKBoarders\947" STATUS OFF TRANSFORM true PROJECTION "init=epsg:27700" END CLASSITEM "Name" CLASS EXPRESSION 'Bolton' TEMPLATE "somepage.html" OUTLINECOLOR 0 0 0 COLOR 0 255 0 END # End of class Bolton CLASS EXPRESSION 'Birkby' TEMPLATE "somepage.html" OUTLINECOLOR 0 0 0 COLOR 255 0 0 END # End of class Bolton CLASS EXPRESSION /./ TEMPLATE "somepage.html" OUTLINECOLOR 0 0 0 COLOR 190 253 190 END TOLERANCE 3 METADATA WMS_TITLE "Wards" WMS_ABSTRACT "Ward boundary information." WMS_SRS "EPSG:27700" END # End of Metadata tag END # End of layer # Test POI Layer LAYER NAME "poi" TYPE point DATA "H:\data\testInfo\poi" STATUS ON TRANSFORM true PROJECTION "init=epsg:27700" END CLASS SYMBOL 'circle' SIZE 2 NAME 'Townships' OUTLINECOLOR 100 40 40 END METADATA WMS_TITLE "Point of Interest Data" WMS_ABSTRACT "Test Point of Interest Data for Muckenbrough County Council" WMS_SRS "EPSG:27700" END # End of Metadata tag END # End of layer # Test for scalebar MAP SCALEBAR BACKGROUNDCOLOR 0 0 0 COLOR 255 255 255 INTERVALS 3 OUTLINECOLOR 255 0 0 POSITION lr POSTLABELCACHE true SIZE 500 15 STATUS embed TRANSPARENT off STYLE 0 UNITS meters LABEL COLOR 0 0 0 SIZE tiny END # END of label END # END of scalebar END # End of map object END # End of file -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Tue Feb 5 06:12:13 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 05 Feb 2002 09:12:13 -0500 Subject: [mapserver-users] forum =?iso-8859-1?Q?fran=E7ais?= References: <5.1.0.14.2.20020205135742.00a40100@localhost> Message-ID: <3C5FE83D.F06983CF@dmsolutions.ca> "Azimuth, Erwin Perik" wrote: > > As i remember correct, users can set their language for phpBB to what they > choose. The question and answers however should be done in english. As > mapserver, mascript, mapfiles etc... are also english it's good to keep it > all the same. Also for learning english it's a good start ;-) > uh?!? Who said that everything around MapServer had to be in a single language? I would say that this forum is a good chance for MapServer users that want to start learning and practicing French. Daniel From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Tue Feb 5 06:28:36 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Tue, 5 Feb 2002 09:28:36 -0500 Subject: [mapserver-users] Scale calculation ? (Solved) Message-ID: <7CDD7B94357FD5119E800002A537C46E22FE6B@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, OK I figured out the problem. I guess it was part me, part mapserver behavior. What I had done sometime last year was create a list of extents for various places in Canada (Provinces/Territories/Major Cities) ... That list works fine. Then I took those same extents to apply them to a new tool I've got, and started noticing the mentionned problems. As you mentionned, the extent is wrong. The funny thing is , it still takes me to the right place! In retrospect, I'd like to remember how I came up with that extent below ... it really shouldn't work I guess ... when I pass that extent to MapServer, I get a map back drawn with completely different ones! I'm guessing MapServer notices that some of them make no sense and then does "something" to try and fix it ... Anyways I found my way around it :) Sorry about that ... Thanks! J.F. -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Friday, February 01, 2002 6:16 PM To: Jean-Francois.Doyon at ccrs.nrcan.gc.ca Subject: Re: [mapserver-users] Scale calculation ? If I read your extent right your x values are reversed (i.e. -1958558 is smaller than -1442903). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 02/01/02 03:59PM >>> Hello, Im having bit of problem, not really mapserver related, but with all the knowledgeable people here I thoguht I'd try :) I've got the following map extent: -1442903,1246771,-1958558,3366821 (These are Meters, LCC) Now if I look at this extent with MapServer, it tells me the scale is: 15840015.370266 (This with a GIF of 428x380) Now if I use the following formula (Taken from the MapServer source): md = width/(resolution*inchesPerUnit[units]); // was (width-1) gd = extent.maxx - extent.minx; which translates into: reqscale = ( -1958558 - -1442903 ) / ( 428 / ( 72 * 39.3701 ) ) in python I consistently get a different result:-3415186.92036 (Or just take the positive version of this, whiich is what you get if you swap minx and miny) Now the value MapServer returns is right ... But what's wrong with MY calculation ??? I need to be able to get to the same number MapServer comes up with. Up 'till now this was working fine ... but not anymore it seems :( I'm no GIS guru, so any help figuring this out would be greatly appreciated :) Thanks :) Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From Regina.Obe.PFD at ci.boston.ma.us Tue Feb 5 06:50:58 2002 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Tue, 5 Feb 2002 09:50:58 -0500 Subject: [mapserver-users] What's the best solution (FWD) Message-ID: I think it depends on how seamless you want this. To simply replace your static ArcView maps with dynamically generated mapserver maps, you can use the itemquerymap feature of mapserver which will give you the url to the generated map image and then use this as the source of your img tag - something like this Where the arguments layer_to_query is the layer defined in your map file that has a filter set some_query_field is the name of the query field you have defined some_query_value is the value to zoom the map to. If you want to get one step fancier, you can put an A Href around the map image, which would take the user to the map. The HREF would use mode itemquery instead of itemquerymap. Also note in your map file for the template you can use a URL instead of a mapserver template which would allow your user to go to an ASP page when they click on a feature instead of a mapserver generated page. Your template statement in your map file would then look something like TEMPLATE "http://mywebserver/mydynamicpage.asp?myfield=[afieldinmaplayerdatatable]" If you want it very integrated with your ASP pages, then you would go with Richard's suggestion. I would like to add to Richard's suggestion that if you don't want to spend the money on the ASPHttp component, you can achieve the same trick using the ServerXMLHTTP component that is built into IIS 5 (IIS 4 you might have to download the XML pack form microsoft's site, but it is free at anyrate). The syntax to use that would be something like (note you might want to check the manual since my syntax may be a bit off) mapServerURL = "http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&layer=" & layername Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP") ' Opens the connection to the remote server. You can do a post instead if you wish and the ' send syntax would then be something like xmlhttp.send "text you want to post" xmlhttp.Open "GET", mapServerURL, False xmlhttp.send mapServerHTML = xmlhttp.responseText -----Original Message----- From: Richard Greenwood [mailto:Rich at GreenwoodMap.com] Sent: Monday, February 04, 2002 11:23 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] What's the best solution (FWD) I'd be reluctant to say what the "best" way to do it was, but you should read Ed McNierney excellent discussion of calling mapserver from an asp script: http://mapserver.gis.umn.edu/wilma/mapserver-users/0112/msg00066.html Rich At 05:02 PM 2/4/2002 -0600, you wrote: >------------- Begin Forwarded Message ------------- > >From: "SergioVallejo" >To: >Subject: What's the best solution >Date: Mon, 4 Feb 2002 23:35:35 +0100 >MIME-Version: 1.0 >X-Priority: 3 >X-MSMail-Priority: Normal >X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 > >Good day > >My name is Sergio Vallejo. I'm developing a site that uses soil >maps. Actually, all the maps are images that we generate from >shape files of ARcview. We would like to use MapServer to create >a dynamic map interface to interrogate the databases. > >All ours pages are in ASP/VBScript. > >Is their a simple solution in this case ? > >Sergio Vallejo >2A rue Pierre de Coubertin >30320 Marguerittes >t?l : 04 66 75 53 36 >e-mail : sergio.vallejo at wanadoo.fr > >------------- End Forwarded Message ------------- Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From flavio at tydac.ch Tue Feb 5 07:10:23 2002 From: flavio at tydac.ch (Flavio Hendry) Date: Tue, 05 Feb 2002 16:10:23 +0100 Subject: =?ISO-8859-1?Q?Re:_[mapserver-users]_forum_fran=E7ais?= In-Reply-To: <3C5FE83D.F06983CF@dmsolutions.ca> References: <5.1.0.14.2.20020205135742.00a40100@localhost> <3C5FE83D.F06983CF@dmsolutions.ca> Message-ID: <200202051610230067.03C6C54C@gw-tydac.thenet.ch> Salut Daniel Pourquoi t'a r?pondu en anglais, est c'est vraiment fran?ais le qu?b?cois ? ;-)) ... E che ne diresti d'introdurre un po' d'italiano, che casino, no ? Ein bisschen Deutsch w?rde wohl auch nicht schaden ... Y el castellano me gustaria mas en cada caso ... ciao ;-) flavio ******** 10 Years TYDAC Event - Review see www.tydac.ch ********* xxxxxxxxxxxxxxxxxxx ATTENTION: New Address xxxxxxxxxxxxxxxxxxxxx ----------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry- mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ----------------------------------------------------------------- MAPINFO Strategic Partner - PCI Reseller - FME Distributor ESRI ArcGIS Solution Provider ----------------------------------------------------------------- From vguzman at bigfoot.com Tue Feb 5 07:26:18 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Tue, 05 Feb 2002 10:26:18 -0500 Subject: [mapserver-users] solaris Message-ID: <3C5FF99A.9080305@bigfoot.com> Hello. I've got a question: I need to compile and setup mapserver with php in solaris. Is there any special consideration compared with the same task in linux? Thanks a lot, Vladimir Guzm?n ------------------------ http:www.main-task.com From perik at azimuth.nl Tue Feb 5 07:25:22 2002 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Tue, 05 Feb 2002 16:25:22 +0100 Subject: =?iso-8859-1?Q?Re:_[mapserver-users]_forum_fran=E7ais?= In-Reply-To: <3C5FE83D.F06983CF@dmsolutions.ca> References: <5.1.0.14.2.20020205135742.00a40100@localhost> Message-ID: <5.1.0.14.2.20020205162444.00ab1ec0@localhost> I was encouriging it as an alternative to the mailinglist. Thinking that the forum will be a bigger succes if english is the main language. Starting also a dutch forum for example will spread the stuff over too many places. Focussing on questions and answers on one place keeps stuff closer to each other. Learning mapserver is hard enough, so skipping french for now ;-) Erwin At 09:12 5-2-02 -0500, Daniel Morissette wrote: >"Azimuth, Erwin Perik" wrote: > > > > As i remember correct, users can set their language for phpBB to what they > > choose. The question and answers however should be done in english. As > > mapserver, mascript, mapfiles etc... are also english it's good to keep it > > all the same. Also for learning english it's a good start ;-) > > > >uh?!? Who said that everything around MapServer had to be in a single >language? > >I would say that this forum is a good chance for MapServer users that >want to start learning and practicing French. > >Daniel From perik at azimuth.nl Tue Feb 5 07:26:27 2002 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Tue, 05 Feb 2002 16:26:27 +0100 Subject: =?iso-8859-1?Q?Re:_[mapserver-users]_forum_fran=E7ais?= In-Reply-To: <3C5FF511.93C7AE7@dmsolutions.ca> References: <5.1.0.14.2.20020205135742.00a40100@localhost> <5.1.0.14.2.20020205153034.00a36740@localhost> Message-ID: <5.1.0.14.2.20020205161319.00aaeae0@localhost> At 10:06 5-2-02 -0500, you wrote: > > Starting also a dutch forum for example will spread the stuff over too many > > places. > > Focussing on questions and answers on one place keeps stuff closer to each > > other. > > > >Agreed again, and for the same reason I have doubts about the potential >for success of any forum... even if it's english. The main resource is >the mailing list and if you split the users in two groups: the mailing >list users and the forum users then you reduce the potential to get >answers to your questions. Ok, agree that the main source is comming in through the mailing-list. That's why i hoped to persuide to use english, so mapserver related discussiond don't swerve all over the internet. >This being said, this is an Open Source project and everybody is free to >go ahead with their own initiatives... that's why I wouldn't discourage >them with their forum even if I don't believe that it will be a success. >My doubts are not motivated by the language, but by the fact that it's >apart from the main mapserver-users mailing list. > >We might be wrong after all... there may be enough French-speaking users >to support it. For most of the main contributors to MapServer, >including myself, English is only a second language. English being a second language for most people, it's also the language used in most programming languages. As these are used a lot when working with mapserver, most are fumiliar with it. Maybe not writing, but reading it is less hard. Can see lots of advantages/disadvantages between a forum and a mailinglist, but time and people's preferences will learn which one will be the one the user will prefer. From steve.lime at dnr.state.mn.us Tue Feb 5 07:27:06 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 05 Feb 2002 09:27:06 -0600 Subject: [mapserver-users] Scalebar label Message-ID: 1) Use an inline layer to do this, something like: LAYER NAME "copyright" TYPE ANNOTATION STATUS DEFAULT TRANSFORM FALSE FEATURE POINTS 200 400 END # or wherever you want it TEXT "© 2002 Your company" END END 2) You can't do true transparency. You can do a hatched fill though that has a similar effect. Try using a symbol like: SYMBOL NAME 'hatch1' TYPE VECTOR POINTS 0 0 1 1 END END Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Andrew" 02/05/02 06:57AM >>> I'm relatively new to Mapserver and I'm attempting to implement Mapserver as on OGC WMS. I have two problems, so any help would be greatly appreciated. I've attached my mapfile definition at the bottom of the e-mail. 1. I have defined a scalebar, which I'd like to embed in the map. This works fine however, I want to place some text (a copyright notice) next to the scalebar (i.e. along the bottom of the map). To do this I think I need to include a label entry in my scalebar definition, but I can't work out how to set the text I want to display. 2. I have a vector layer which contains 136 polygons (name: 'boarders'). I'd like to make these semi-transparent, so you can still see the raster data in the layer below. Can you do this with Mapserver? I'm using Mapserver 3.5 on Windows 2000. Thanks in advance, Andrew Map file follows: NAME EMS STATUS ON SIZE 500 350 EXTENT 380000 400000 450000 450000 UNITS METERS IMAGETYPE gif PROJECTION "init=epsg:27700" END WEB METADATA "wms_title" "Enviroport Map Server" "wms_onlineresource" "http://plasma/cgi-bin/mapserv.exe?map=c:\demo.map" "wms_srs" "epsg:27700" END END # Definitions for map symbols SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END # End of map symbol definitions # Start of Map Layers, The first layer in this list is displayed at the bottom, etc. # Raster Data - Using shapefile index LAYER NAME "rst50k" TYPE raster STATUS ON TRANSFORM true TILEINDEX "H:\data\50k\tiff\poly" PROJECTION "init=epsg:27700" END METADATA WMS_TITLE "1:50,000 Colour Raster" WMS_ABSTRACT "Add info here" WMS_SRS "EPSG:27700" END # End of Metadata tag END # End of 50k raster # Ward Data - shapefile LAYER NAME "boarders" TYPE polygon DATA "H:\data\UKBoarders\947" STATUS OFF TRANSFORM true PROJECTION "init=epsg:27700" END CLASSITEM "Name" CLASS EXPRESSION 'Bolton' TEMPLATE "somepage.html" OUTLINECOLOR 0 0 0 COLOR 0 255 0 END # End of class Bolton CLASS EXPRESSION 'Birkby' TEMPLATE "somepage.html" OUTLINECOLOR 0 0 0 COLOR 255 0 0 END # End of class Bolton CLASS EXPRESSION /./ TEMPLATE "somepage.html" OUTLINECOLOR 0 0 0 COLOR 190 253 190 END TOLERANCE 3 METADATA WMS_TITLE "Wards" WMS_ABSTRACT "Ward boundary information." WMS_SRS "EPSG:27700" END # End of Metadata tag END # End of layer # Test POI Layer LAYER NAME "poi" TYPE point DATA "H:\data\testInfo\poi" STATUS ON TRANSFORM true PROJECTION "init=epsg:27700" END CLASS SYMBOL 'circle' SIZE 2 NAME 'Townships' OUTLINECOLOR 100 40 40 END METADATA WMS_TITLE "Point of Interest Data" WMS_ABSTRACT "Test Point of Interest Data for Muckenbrough County Council" WMS_SRS "EPSG:27700" END # End of Metadata tag END # End of layer # Test for scalebar MAP SCALEBAR BACKGROUNDCOLOR 0 0 0 COLOR 255 255 255 INTERVALS 3 OUTLINECOLOR 255 0 0 POSITION lr POSTLABELCACHE true SIZE 500 15 STATUS embed TRANSPARENT off STYLE 0 UNITS meters LABEL COLOR 0 0 0 SIZE tiny END # END of label END # END of scalebar END # End of map object END # End of file From hunt at zedxinc.com Tue Feb 5 10:45:10 2002 From: hunt at zedxinc.com (Aaron Hunt) Date: Tue, 5 Feb 2002 10:45:10 -0800 Subject: [mapserver-users] mapscript compile problem Message-ID: <00f401c1ae75$3d5a2890$1805000a@helicity> When I try to compile mapserver with php 4.1.1 Below is some information for what I am getting and my configs. Thank you for any help, Aaron Errors when compiling mapserver: php_mapscript.c:493: warning: initialization makes integer from pointer without a cast php_mapscript.c:493: initializer element is not computable at load time php_mapscript.c:493: (near initialization for `php3_ms_module_entry.size') php_mapscript.c:493: warning: initialization makes integer from pointer without a cast php_mapscript.c:493: warning: initialization makes integer from pointer without a cast php_mapscript.c:493: initializer element is not computable at load time php_mapscript.c:493: (near initialization for `php3_ms_module_entry.zend_debug') php_mapscript.c:493: warning: initialization makes integer from pointer without a cast php_mapscript.c:493: initializer element is not computable at load time php_mapscript.c:493: (near initialization for `php3_ms_module_entry.zts') php_mapscript.c:496: warning: initialization from incompatible pointer type php_mapscript.c: In function `php3_ms_img_saveImage': php_mapscript.c:4082: warning: implicit declaration of function `php_header' make[1]: *** [php_mapscript.o] Error 1 make[1]: Leaving directory `/home/hunt/mapserver_dev/mapscript/php3' The php config is : ./configure --with-mysql --with-dbase --with-system-regex The mapserver config is : ./configure --with-proj4 --with-ogr --with-gdal --with-php=/home/hunt/php-4.1.1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From TMitchell at lignum.com Tue Feb 5 08:19:52 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 5 Feb 2002 08:19:52 -0800 Subject: [mapserver-users] forum =?iso-8859-1?Q?fran=E7ais?= Message-ID: "Daniel Morissette" wrote: >I would say that this forum is a good chance for MapServer users that >want to start learning and practicing French. Salut, Go french go... HA! Great idea! I love trying to remember all the stuff I (didn't) learned back in elementary school :) A demain. Au revoir! :) Tyler Daniel Morissette To: "Azimuth, Erwin Perik" Sent by: cc: mapserver-users at lists.gis.umn.edu owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: Re: [mapserver-users] forum fran?ais 02/05/2002 06:12 AM "Azimuth, Erwin Perik" wrote: > > As i remember correct, users can set their language for phpBB to what they > choose. The question and answers however should be done in english. As > mapserver, mascript, mapfiles etc... are also english it's good to keep it > all the same. Also for learning english it's a good start ;-) > uh?!? Who said that everything around MapServer had to be in a single language? I would say that this forum is a good chance for MapServer users that want to start learning and practicing French. Daniel From andreag at crs4.it Tue Feb 5 08:46:23 2002 From: andreag at crs4.it (Andrea Giacomelli) Date: Tue, 05 Feb 2002 17:46:23 +0100 Subject: [mapserver-users] php/mapscript. error in getlayerbyname Message-ID: <3C600C5F.571E513B@crs4.it> I am porting (finally!) my old apps to 3.5, and I am gradually ironing out some of the issues in the transition from 3.4 I have a .map file which is processed properly by php/mapscript (if I just request a $map->draw() it is ok. However I get a problem with getLayerByName: this is ok with some of the layers, but returns an error with some of the others. ========================= Warning: MapServer Error in : in c:\data\htdocs/mia/if/htdocs/t.php on line 7 Fatal error: getLayerByName failed for : s1 in c:\data\htdocs/mia/if/htdocs/t.php on line 7 ====================== Maybe I am missing something in the .map file translation ? TIA and regards, -- Andrea Giacomelli -------------- next part -------------- # configurazione mappa per prototipo if webgis - dicembre 2001 - a. giacomelli NAME DEMO STATUS ON SIZE 370 370 SYMBOLSET ../etc/symbols.sym #EXTENT 1400000 4300000 1580000 4580000 EXTENT 1360000 4300000 1650000 4580000 UNITS METERS SHAPEPATH "c:\users\andreag\if\data" # IFWEB ? la directory corrispondente a IF_DATA nella relazione IMAGECOLOR 224 255 255 FONTSET ../etc/fonts.txt #LABELOVERLAP FALSE # # Start of web interface definition # WEB # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "c:\data\htdocs\tmp\" IMAGEURL "c:\data\htdocs\tmp\" LOG "gmap.log" END # # Start of reference map # REFERENCE IMAGE images/reference.gif EXTENT 1360000 4300000 1650000 4580000 STATUS ON COLOR -1 -1 -1 # COLOR 224 255 255 OUTLINECOLOR 255 0 0 SIZE 120 120 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR # IMAGECOLOR 255 0 0 # IMAGECOLOR -1 -1 -1 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 150 5 # COLOR 255 255 255 # COLOR -1 -1 -1 # IMAGECOLOR -1 -1 -1 BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 0 0 255 UNITS kilometers INTERVALS 5 #ifw STATUS EMBED TRANSPARENT TRUE STYLE 0 END # # Start of layer definitions # LAYER NAME "la" ###v5 DESCRIPTION "Limammdec" TYPE POLYGON STATUS ON DATA comuni CLASS NAME "Limamm class_name" COLOR 200 245 220 OUTLINECOLOR 150 200 20 END END # layer LAYER # SYMBOLSCALE 2000000 NAME "lo" ###v5 DESCRIPTION "Localita'" TYPE POINT STATUS ON DATA loc LABELITEM "Comune" LABELMAXSCALE 500000 CLASS # EXPRESSION "[LABIDX] < 100" SYMBOL 7 SIZE 3 NAME "Localita'" COLOR 0 0 0 LABEL TYPE TRUETYPE OFFSET 20 20 COLOR 0 0 200 BUFFER 4 FONT arial MINSIZE 8 MAXSIZE 20 FORCE TRUE END END TOLERANCEUNITS meters TOLERANCE 1000 HEADER "Istat Comune" ###v5 QUERYITEM "Istat" ###v5 QUERY ###v5 EXPRESSION /./ ###v5 TEMPLATE "Istat" END END # Layer LAYER SYMBOLSCALE 200000 NAME "s1" ###v5 DESCRIPTION "dati_1" TYPE POINT STATUS ON DATA loc # Nota: come sopra per s0 CLASS MINSIZE 2 MAXSIZE 30 SYMBOL 3 SIZE 10 NAME "s11" COLOR 255 0 0 LABEL FORCE TRUE OFFSET 10 10 COLOR 0 10 0 TYPE TRUETYPE FONT arial MINSIZE 8 MAXSIZE 20 END END TOLERANCE 5 END # LAYER LAYER SYMBOLSCALE 200000 NAME "s0" ###v5 DESCRIPTION "dati_centrali" TYPE POINT STATUS ON DATA loc # N.B. Il layer viene creato vuoto, e poi "popolato" tramite query al database CLASS # MINSIZE 2 # MAXSIZE 20 SYMBOL 4 SIZE 20 NAME "s00" COLOR 255 0 255 LABEL FORCE TRUE OFFSET -10 -10 COLOR 255 0 255 TYPE TRUETYPE FONT arial MINSIZE 8 MAXSIZE 20 END END TOLERANCE 5 END #layer END # end map file From jeffloun at refractions.net Tue Feb 5 09:17:43 2002 From: jeffloun at refractions.net (jeff lounsbury) Date: Tue, 05 Feb 2002 09:17:43 -0800 Subject: [mapserver-users] POSTGIS/Mapscript DB connection is not closing (FWD) References: <200202042015.OAA16493@mallit.fr.umn.edu> <006101c1adde$81e10fc0$8664000a@sd.saclant.nato.int> Message-ID: <3C6013B6.3187BFDB@refractions.net> I try to go to that docs page, and guess what. "Warning: Unable to connect to PostgreSQL server: Sorry, too many clients already in /usr/local/www/www/idocs/opendb.php on line 3 Unable to access database" fairly ironic I thought... :-) Apparently either they happen to have a busy website, or else they are experiencing the same problem as me?? I don't think that a postmaster process is supposed to spawn every time I query something AND then never die. I'll agree with the first half, it is supposed to be created each time to access the database , but then it should die sometime soon after that as opposed to sitting there idle never doing anything again until there are max_connections used and none available so that everything is locked. Thanks though, I will definitely read those docs and see what might be happening as soon as the website is available... -Jeff trussell at mtcsc.com wrote: > Teb, > > Postmaster is supposed to behave like that. It runs in the background and > fields requests. There's some great documentation on this at > http://www.postgresql.org/idocs/index.php?postmaster-start.html. > > The code you included regards a topic I've been wondering about - doing a > postgis query from a point selection. Hope to get something working there... > > Tom > ----- Original Message ----- > From: "teb" > To: > Cc: > Sent: Monday, February 04, 2002 12:15 PM > Subject: [mapserver-users] POSTGIS/Mapscript DB connection is not closing > (FWD) > > > > > ------------- Begin Forwarded Message ------------- > > > > Date: Mon, 04 Feb 2002 12:19:20 -0800 > > From: jeff lounsbury > > X-Accept-Language: en > > MIME-Version: 1.0 > > To: mapserver-info at lists.gis.umn.edu > > Subject: POSTGIS/Mapscript DB connection is not closing > > Content-Transfer-Encoding: 7bit > > > > After I use mapscript to query my postgis layer in my map, the > > postmaster that got run never dies/closes? > > > > Anyone have any idea on why this might be happening? > > Hhere is an exerpt of the offending mapscript code... > > > > file://turn the point where the user clicked on the image into a > lat/long > > co-ordinate > > $pt = ms_newPointObj(); > > $lat = get_lat($map->extent->minx, $map->extent->maxx, $img_x, > > 700); > > $long = get_long($map->extent->miny, $map->extent->maxy, $img_y, > > 350); > > $pt->setXY($lat, $long); > > file://query the postgis layer > > $layer = $map->getLayer(5); > > $err = @$layer->queryByPoint($pt, MS_MULTIPLE, $missby); > > > > if($err == MS_FAILURE){ > > echo "There were no results found, try > > zooming in closer."; > > }else if( $err == MS_SUCCESS){ > > $layer->open($img->shapepath); > > file://save the query results into an array > > $i=0; > > $result = $layer->getResult($i); > > while($result != FALSE && $i < 5){ > > $shape = $layer->getShape($result->tileindex, > > $result->shapeindex); > > $value = $shape->values; > > $val[$i] = $value; > > $i++; > > $result = $layer->getResult($i); > > } > > $results_found =1; > > } > > $layer->close; > > > > > > > > As well as the postgid layer in the mapfile: > > LAYER > > CONNECTIONTYPE postgis > > NAME "mypostgis" > > DATA "point from usage_points" > > CONNECTION "host=ox user=postgres port=5555 dbname=postgis_usage" > > STATUS DEFAULT > > TYPE POINT > > CLASS > > TEMPLATE query.html > > MINSIZE 10 > > SYMBOL star > > COLOR 250 0 25 > > END > > END > > > > ,thanks > > -Jeff > > > > > > ------------- End Forwarded Message ------------- > > > > > > From pkishor at GeoAnalytics.com Tue Feb 5 09:26:33 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 5 Feb 2002 11:26:33 -0600 Subject: [mapserver-users] =?iso-8859-1?Q?RE=3A_=5Bmapserver-users=5D_forum_fran=E7ais?= Message-ID: Mon Dieu!!! La derni?re chose que je veux apprendre est un autre langage. Les Anglais, Hindi, Perl, PHP, JavaScript, Objective-C, HTML et diplomatie sont assez dur! pk/ > -----Original Message----- > From: Tyler Mitchell [mailto:TMitchell at lignum.com] > Sent: Tuesday, February 05, 2002 10:20 AM > To: Daniel Morissette > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] forum fran?ais > > > > "Daniel Morissette" wrote: > > >I would say that this forum is a good chance for MapServer users that > >want to start learning and practicing French. > > Salut, > Go french go... > HA! Great idea! I love trying to remember all the stuff I (didn't) > learned back in elementary school :) > A demain. > Au revoir! :) > > Tyler > > > > > > Daniel Morissette > > To: > "Azimuth, Erwin Perik" > Sent by: cc: > mapserver-users at lists.gis.umn.edu > owner-mapserver-users at lists.g Fax > to: > > is.umn.edu > Subject: Re: [mapserver-users] forum fran?ais > > > > > > 02/05/2002 06:12 AM > > > > > > > > > > "Azimuth, Erwin Perik" wrote: > > > > As i remember correct, users can set their language for > phpBB to what > they > > choose. The question and answers however should be done in > english. As > > mapserver, mascript, mapfiles etc... are also english it's > good to keep > it > > all the same. Also for learning english it's a good start ;-) > > > > uh?!? Who said that everything around MapServer had to be in a single > language? > > I would say that this forum is a good chance for MapServer users that > want to start learning and practicing French. > > Daniel > > > > > From joao at pmpf.rs.gov.br Tue Feb 5 11:14:32 2002 From: joao at pmpf.rs.gov.br (joao at pmpf.rs.gov.br) Date: Tue, 5 Feb 2002 19:14:32 -0000 Subject: [mapserver-users] compile problems Message-ID: <20020205191432.62F4B46EFB@mail.passofundo.rs.gov.br> i had compile mapserver with this options: /configure --with-postgis=/usr/local/pgsql/bin/pg_config --with-pdf=/usr/local/pdflib/ --with-proj=/usr/local/proj4/ --with-php=/root/php-4.0.6 --with-apxs=/usr/local/apache/bin/apxs --enable-shared-pdflib --with-zlib=/usr/local/zlib/ I'm was having this trouble: usr/bin/ld: cannot find -lPDF collect2: ld returned 1 exit status make: *** [shp2img] Error 1 so, as suggest, i exchange lPDF to lpdf and now i had this trouble: shp2pdf.o: In function `main': shp2pdf.o(.text+0x4aa): undefined reference to `msDrawMapPDF' collect2: ld returned 1 exit status make: *** [shp2pdf] Error 1 Anybody could help me fix it? Thanks Jo?o From gabriel at ciasc.gov.br Tue Feb 5 17:00:19 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Tue, 5 Feb 2002 19:00:19 -0600 Subject: [mapserver-users] Spacial Extent References: <200202042015.OAA16493@mallit.fr.umn.edu> <006101c1adde$81e10fc0$8664000a@sd.saclant.nato.int> <3C6013B6.3187BFDB@refractions.net> Message-ID: <013401c1aea9$a5ff90e0$12d713ac@ciasc.gov.br> Which the relation between "spacial extent " of the " Map Objets " and "spacial extent " of the Reference Map Object ? Gabriel From steve.lime at dnr.state.mn.us Tue Feb 5 13:29:11 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 05 Feb 2002 15:29:11 -0600 Subject: [mapserver-users] Spacial Extent Message-ID: The EXTENT in the map object is the extent for the map to be created. Most of the time it is always changing depending on what a user wants. The value set in the map file in effect sets a default extent. The EXTENT in the reference object defines the area shown in the reference map and is a fixed value. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "gabriel" 02/05/02 07:00PM >>> Which the relation between "spacial extent " of the " Map Objets " and "spacial extent " of the Reference Map Object ? Gabriel From andreag at crs4.it Wed Feb 6 01:02:01 2002 From: andreag at crs4.it (Andrea Giacomelli) Date: Wed, 06 Feb 2002 10:02:01 +0100 Subject: [mapserver-users] 3.5: how to handle empty DATA layers which were accepted in 3.4 Message-ID: <3C60F109.398E46DF@crs4.it> Hi, With 3.4 one of the approaches to draw points dynamically from a database was to have in the map file an layer without a DATA definition, which was then populated with calls to $point->draw(). Apparently layers read by 3.5 MUST have a DATA property assigned. The issue arises as I am using point data stored in an MS Access file. Can a layer be appropriately defined in 3.5 in order achieve the same result with the same logic ? I know that 3.5 allows much more connectivity towards databases, but for this specific application (which is in fact a demo) I would like to avoid porting also the data. Regards, -- ========================================= Andrea Giacomelli ========================================= From stepan.kafka at centrum.cz Wed Feb 6 08:25:11 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Wed, 6 Feb 2002 17:25:11 +0100 Subject: [mapserver-users] outline symbols scaling In-Reply-To: Message-ID: <000501c1af2a$d95750f0$7e3c2fc3@HSGIS> Steve, I use mapserver 3.5.1 and OVERLAYSYMBOL / OVERLAYOUTLINECOLOR for setting polygon outline symbols. It is great but I am not able to scale outlinesymbol via SYMBOLSCALE / MAXSIZE / MINSIZE parameters in map file. Does mapserver support it? Wouldn't be better to have different syntax for outlines e.g.: OUTLINESIZE / OUTLINESYMBOL/ OUTLINECOLOR etc. instead of current one? Is there any documentation to CARTO symbols on the MS web site? Thank you Stepan Kafka From steve.lime at dnr.state.mn.us Wed Feb 6 09:58:21 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 06 Feb 2002 11:58:21 -0600 Subject: [mapserver-users] outline symbols scaling Message-ID: A brave soul. Overlay symbols *should* be treated just like regular ones with regards to symbolscale. You use overlayminscale and overlaymaxscale to control sizing. I'll take your other suggestion under advisement. That was the plan at one point but was dropped in favor of the current scheme in order to limit the number of potential parameter names and to simplify coding. The symbol type is actually CARTOLINE and that code was committed a couple of days ago (written by Tomas Krecmer). It's experimental at this point but does appear to work. Basically CARTOLINEs are used for solid lines only. They are far more efficient than using brushes since lines are converted to polygons and then filled- pixel values are set only once as opposed to the many times required using a brush. This also allows for a variety of line joins and caps. New parameters are: - new symbol type CARTOLINE - symbol option LINECAP with values BUTT, ROUND, SQUARE, TRIANGLE default is BUTT - symbol option LINEJOIN with values NONE, ROUND, MITER, BEVEL default is ROUND - symbol option LINEJOINMAXSIZE [integer] (pixels I think) default is 3 An example would be SYMBOL NAME 'roads' TYPE CARTOLINE LINEJOIN MITER LINECAP ROUND END Dashes and such are not supported with this symbol type at this time. Again, totally new code right now and probably still needs tuning. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Stepan Kafka" 02/06/02 10:25AM >>> Steve, I use mapserver 3.5.1 and OVERLAYSYMBOL / OVERLAYOUTLINECOLOR for setting polygon outline symbols. It is great but I am not able to scale outlinesymbol via SYMBOLSCALE / MAXSIZE / MINSIZE parameters in map file. Does mapserver support it? Wouldn't be better to have different syntax for outlines e.g.: OUTLINESIZE / OUTLINESYMBOL/ OUTLINECOLOR etc. instead of current one? Is there any documentation to CARTO symbols on the MS web site? Thank you Stepan Kafka From TMitchell at lignum.com Wed Feb 6 10:05:30 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 6 Feb 2002 10:05:30 -0800 Subject: [mapserver-users] Accessing MapServer with an ArcView3 extension Message-ID: Armin - that is slick! I followed your instructions on the document you have online and it worked the first time! I'm running mapserver locally and it is almost instantaneous - faster than loading the data over our network. If anyone hasn't tried it out - I highly recommend it. I was thinking about this a while back and now you've done it :) Thank you for sharing it with us. Tyler Armin Burger cc: Sent by: Fax to: owner-mapserver-users at lists.g Subject: [mapserver-users] Accessing MapServer with an ArcView3 is.umn.edu extension 02/03/2002 08:02 AM Please respond to Armin Burger Hello MapServer users, if anyone of you is interested in an ArcView 3.x extension to access MapServer services: I wrote an extension that dynamically loads MapServer layers as image themes into ArcView. Unfortunately I cannot offer the extension as Open Source because it shares plenty of code with a commercial extension of my company. If anybody would like to try it, though (I regard it as 'freeware'): you can download it at http://digilander.iol.it/arminburger/avmapserv.html There you'll find also a short description how to use it. Armin From steve.lime at dnr.state.mn.us Wed Feb 6 10:19:01 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 06 Feb 2002 12:19:01 -0600 Subject: [mapserver-users] 3.5: how to handle empty DATA layers which were accepted in 3.4 Message-ID: Layer handling was one of the biggest things that changed between releases. So there may still be quirks. The point and shape draw methods don't rely on the DATA element at all though. They just assume that you have a valid shape with all the structural elements properly populated. If you do a layer/map draw then you need valid DATA or inline features but it sounds like you're not doing that. Are you getting an error as the mapfile is parsed, when the draw method is executed or what? I do what it to work as you've described. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrea Giacomelli 02/06/02 03:02AM >>> Hi, With 3.4 one of the approaches to draw points dynamically from a database was to have in the map file an layer without a DATA definition, which was then populated with calls to $point->draw(). Apparently layers read by 3.5 MUST have a DATA property assigned. The issue arises as I am using point data stored in an MS Access file. Can a layer be appropriately defined in 3.5 in order achieve the same result with the same logic ? I know that 3.5 allows much more connectivity towards databases, but for this specific application (which is in fact a demo) I would like to avoid porting also the data. Regards, -- ========================================= Andrea Giacomelli ========================================= From Tom.Kralidis at ccrs.nrcan.gc.ca Wed Feb 6 10:59:28 2002 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Kralidis, Tom) Date: Wed, 6 Feb 2002 13:59:28 -0500 Subject: [mapserver-users] Accessing MapServer with an ArcView3 extens ion Message-ID: <7CDD7B94357FD5119E800002A537C46E2265EF@s5-ccr-r1.ccrs.nrcan.gc.ca> Hi, This is a great idea. Any thought towards making access to WMSs? ..Tom > -----Original Message----- > From: Tyler Mitchell [mailto:TMitchell at lignum.com] > Sent: Wednesday, February 06, 2002 1:06 PM > To: Armin Burger > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Accessing MapServer with an ArcView3 > extension > > > > Armin - that is slick! > I followed your instructions on the document you have online > and it worked > the first time! > I'm running mapserver locally and it is almost instantaneous > - faster than > loading the data over our network. > If anyone hasn't tried it out - I highly recommend it. I was thinking > about this a while back and now you've done it :) > > Thank you for sharing it with us. > > Tyler > > > > > Armin Burger > > mapserver-users at lists.gis.umn.edu > ne.com> cc: > > Sent by: Fax > to: > > owner-mapserver-users at lists.g > Subject: [mapserver-users] Accessing MapServer with an > ArcView3 > is.umn.edu > extension > > > > > > 02/03/2002 08:02 AM > > Please respond to Armin > > Burger > > > > > > > > > > Hello MapServer users, > > if anyone of you is interested in an ArcView 3.x extension to access > MapServer services: I wrote an extension that dynamically > loads MapServer > layers as image themes into ArcView. > > Unfortunately I cannot offer the extension as Open Source > because it shares > plenty of code with a commercial extension of my company. If > anybody would > like to try it, though (I regard it as 'freeware'): you can > download it at > http://digilander.iol.it/arminburger/avmapserv.html There > you'll find also > a > short description how to use it. > > Armin > > > > > > > > > > From cabral at yadata.net Wed Feb 6 15:18:46 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Wed, 6 Feb 2002 21:18:46 -0200 Subject: [mapserver-users] 3.5: how to handle empty DATA layerswhich were accepted in 3.4 References: Message-ID: <002001c1af64$a0c15620$0207a8c0@naumaki> Andrea, What you need, as Steve mentioned, is to defined an empty inline feature in your mapfile. Like this: layer name 'my_point_layer' type point feature end # here's the trick class color 0 0 0 end end I figured out what you're doing in your app because, by what you described, it's similar to what I'm doing in one of my apps, except that I generate my data from a text file =) Cheers, Rod. ----- Original Message ----- From: "Steve Lime" To: Cc: Sent: Wednesday, February 06, 2002 4:19 PM Subject: Re: [mapserver-users] 3.5: how to handle empty DATA layerswhich were accepted in 3.4 Layer handling was one of the biggest things that changed between releases. So there may still be quirks. The point and shape draw methods don't rely on the DATA element at all though. They just assume that you have a valid shape with all the structural elements properly populated. If you do a layer/map draw then you need valid DATA or inline features but it sounds like you're not doing that. Are you getting an error as the mapfile is parsed, when the draw method is executed or what? I do what it to work as you've described. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrea Giacomelli 02/06/02 03:02AM >>> Hi, With 3.4 one of the approaches to draw points dynamically from a database was to have in the map file an layer without a DATA definition, which was then populated with calls to $point->draw(). Apparently layers read by 3.5 MUST have a DATA property assigned. The issue arises as I am using point data stored in an MS Access file. Can a layer be appropriately defined in 3.5 in order achieve the same result with the same logic ? I know that 3.5 allows much more connectivity towards databases, but for this specific application (which is in fact a demo) I would like to avoid porting also the data. Regards, -- ========================================= Andrea Giacomelli ========================================= From armin.burger at territoriumonline.com Thu Feb 7 00:39:12 2002 From: armin.burger at territoriumonline.com (Armin Burger) Date: Thu, 7 Feb 2002 09:39:12 +0100 Subject: [mapserver-users] Accessing MapServer with an ArcView3 extension Message-ID: <200202070836.JAA05775@efferd.nettz.com> Tom, I will try to add WMS support, mainly for requesting available layers and a better identify function. This has to be done via the DLL that communicates with the server. At the moment it is absolutely simple structured and only downloads the requested image via the URL. I'll see how easy it is to implement the new functions. And first I'd have to set up a working WMS MapServer. Armin > Hi, > This is a great idea. Any thought towards making access to WMSs? > ..Tom >> -----Original Message----- >> From: Tyler Mitchell [mailto:TMitchell at lignum.com] >> Sent: Wednesday, February 06, 2002 1:06 PM >> To: Armin Burger >> Cc: mapserver-users at lists.gis.umn.edu >> Subject: Re: [mapserver-users] Accessing MapServer with an ArcView3 >> extension >> >> >> >> Armin - that is slick! >> I followed your instructions on the document you have online >> and it worked >> the first time! >> I'm running mapserver locally and it is almost instantaneous >> - faster than >> loading the data over our network. >> If anyone hasn't tried it out - I highly recommend it. I was thinking >> about this a while back and now you've done it :) >> >> Thank you for sharing it with us. >> >> Tyler >> From fgclaram at alu-ab.uclm.es Thu Feb 7 01:17:54 2002 From: fgclaram at alu-ab.uclm.es (Francisco) Date: Thu, 07 Feb 2002 10:17:54 +0100 Subject: [mapserver-users] DBF Queries Message-ID: <5.1.0.14.0.20020207101658.00b70240@correo.alu-ab.uclm.es> Hello all. First of all, thank you for your help with the Angle labels. Now, I'm looking for documentation or examples about queries to DBF files. I use ArcView files (Shp, DBF, Shx) and i would like to show some points from a query in a map. Someone know where I can find something about it?. Thank you, Regards! Fran. From nachobenito75 at hotmail.com Thu Feb 7 02:18:23 2002 From: nachobenito75 at hotmail.com (Nacho Benito) Date: Thu, 07 Feb 2002 11:18:23 +0100 Subject: [mapserver-users] width lines Message-ID: Hi all, I have a simple cuestion: I have a layer in .dwg and I'm going to convert it to .shp and I would like to know if I can change the size of the line, so it could be seen better. Do you know what I mean? I don't know if it's clear. I want to change the line width. Can anyone help me? Thanks Nacho _________________________________________________________________ Con MSN Hotmail s?mese al servicio de correo electr?nico m?s grande del mundo. http://www.hotmail.com/ES From woodbri at swoodbridge.com Thu Feb 7 05:45:56 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 07 Feb 2002 08:45:56 -0500 Subject: [mapserver-users] width lines References: Message-ID: <3C628514.A973590F@swoodbridge.com> Nacho, This is easy to do. In the layer definition add LAYER .... CLASS SYMBOL 'circle' SIZE 3 END END The size is the weight of the line. -Steve Nacho Benito wrote: > > Hi all, > I have a simple cuestion: I have a layer in .dwg and I'm going to convert it > to .shp and I would like to know if I can change the size of the line, so it > could be seen better. Do you know what I mean? > I don't know if it's clear. I want to change the line width. > Can anyone help me? > Thanks > Nacho > > _________________________________________________________________ > Con MSN Hotmail s?mese al servicio de correo electr?nico m?s grande del > mundo. http://www.hotmail.com/ES From andreag at crs4.it Thu Feb 7 06:44:39 2002 From: andreag at crs4.it (Andrea Giacomelli) Date: Thu, 07 Feb 2002 15:44:39 +0100 Subject: [mapserver-users] 3.5: how to handle empty DATA layerswhich were accepted in 3.4 References: <002001c1af64$a0c15620$0207a8c0@naumaki> Message-ID: <3C6292D7.E9F912A1@crs4.it> Rodrigo Cabral wrote: > > Andrea, > > What you need, as Steve mentioned, is to defined an empty inline feature in > your mapfile. Like this: > > layer > name 'my_point_layer' > type point > feature end # here's the trick > class > color 0 0 0 > end > end > > > If you do a layer/map draw then you need valid DATA or inline features > but it sounds like you're not doing that. > The trick did it. Thanks to all. -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia http://www.crs4.it/~andreag ========================================= From steve.lime at dnr.state.mn.us Thu Feb 7 07:35:41 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 07 Feb 2002 09:35:41 -0600 Subject: [mapserver-users] 3.5: how to handle empty DATA layerswhich were accepted in 3.4 Message-ID: You shouldn't have to do this though. What symtoms are you experiencing if you leave out the empty feature? What does your code look like? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrea Giacomelli 02/07/02 08:44AM >>> Rodrigo Cabral wrote: > > Andrea, > > What you need, as Steve mentioned, is to defined an empty inline feature in > your mapfile. Like this: > > layer > name 'my_point_layer' > type point > feature end # here's the trick > class > color 0 0 0 > end > end > > > If you do a layer/map draw then you need valid DATA or inline features > but it sounds like you're not doing that. > The trick did it. Thanks to all. -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia http://www.crs4.it/~andreag ========================================= From gk1611 at ship.edu Thu Feb 7 08:40:37 2002 From: gk1611 at ship.edu (G Kelley) Date: Thu, 7 Feb 2002 11:40:37 -0500 (EST) Subject: [mapserver-users] outlinesize of polygon ? In-Reply-To: Message-ID: I am using Mapserver 3.4, and these solutions do not work. The first simply fills the polygon with circles, while the second does a solid fill for the polygon. Is this a 3.4 versus 3.5 issue? How does mapserver distinguish between what to use to draw the outline of the polygon and what to use to fill the polygon? For example, in the first solution below, how does mapserver know whether the polygon should be outlined using the circle symbol or filled with the circle symbol? Sorry if this is documented somewhere, but I could not find it in the either the 3.3 doc or the 3.5 doc. Thanks! -Gregg On 31 Jan 2002, Steve Lime wrote: >Hi Bernd: It's easy. First you need a symbol to use a a brush, this one >works well: > >SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE >END > >The depending on if you're drawing just the outline or the outline + >fill you'd do something like > >SYMBOL 'circle' >SIZE 3 >OUTLINECOLOR 0 0 0 > >or > >OVERLAYSYMBOL 'circle' >OVERLAYSIZE 3 >OVERLAYOUTLINECOLOR 0 0 0 > >Steve > >Stephen Lime >Data & Applications Manager > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 From pushkar at ERC.MsState.Edu Thu Feb 7 11:34:11 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Thu, 7 Feb 2002 13:34:11 -0600 (CST) Subject: [mapserver-users] DBF Queries In-Reply-To: <5.1.0.14.0.20020207101658.00b70240@correo.alu-ab.uclm.es> Message-ID: Hi, I am giving you an example from MS 3.3 I don't know whether it is changed, but you will get an idea of a simple query. QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END This will enable query for only this layer: LAYER NAME majr TYPE LINE STATUS ON DATA majr CLASS NAME "Major Rivers" COLOR 0 0 255 END HEADER "majr_header.html" FOOTER "majr_footer.html" QUERY TEMPLATE "majr.html" END TOLERANCE 5 END # end of layer object - major rivers The majr.html is the main file here which contains attrib. from your .dbf file: [LENGTH][MAJR_][MAJR_ID][NAME][RNUM] length, name etc.. are attribs. from the dbf file. _header.html: (only for html presentation) Layer: majr

The footer is simply html decoration:
LENGTHMAJR_MAJR_IDNAMERNUM

> > Hello all. > > First of all, thank you for your help with the Angle labels. > > Now, I'm looking for documentation or examples about queries to DBF files. > I use ArcView files (Shp, DBF, Shx) and i would like to show some points > from a query in a map. > Someone know where I can find something about it?. > > > Thank you, > > Regards! > Fran. > > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From hugues at parvillers.com Thu Feb 7 14:26:42 2002 From: hugues at parvillers.com (PARVILLERS) Date: Thu, 07 Feb 2002 23:26:42 +0100 Subject: [mapserver-users] Java Topology Suite Message-ID: <3C62FF22.D48BEE96@parvillers.com> I saw this in an other GIS mailing list . http://www.vividsolutions.com/jts/jtshome.htm From pushkar at ERC.MsState.Edu Thu Feb 7 15:00:16 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Thu, 7 Feb 2002 17:00:16 -0600 (CST) Subject: [mapserver-users] 24bit tiff and gdal Message-ID: Hi, I've compiled MS 3.5 with gdal: Banshee[284] pushkar$ mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE But when I try to display 24 bit tiff I get the foll. msg.: drawTIFF(): Image handling error. Only colormapped and grayscale images are supported. This is the info. for my tiff file Banshee[293] pushkar$ identify data/24bmosaic2001mstm.tif data/24bmosaic2001mstm.tif 5167x3675 DirectClass 54mb TIFF 3.6u 0:25 I've gdal1.1.5 and this is the info. for it: Banshee[296] pushkar$ gdal-config --formats gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 sdts raw dted mem jdem envisat elas fit gif jpeg png I have the tfw file also: 24bmosaic2001mstm.tfw **My ques. is do I have to disable TIFF support if I compile mapserver with GDAL? Maybe the default behaviour of MS is to use the tiff libs. read the tiff imgs. and not try to use GDAL after that? ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From steve.lime at dnr.state.mn.us Thu Feb 7 15:09:19 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 07 Feb 2002 17:09:19 -0600 Subject: [mapserver-users] Java Topology Suite Message-ID: Now, who wants to port it to C? Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> PARVILLERS 02/07/02 04:26PM >>> I saw this in an other GIS mailing list . http://www.vividsolutions.com/jts/jtshome.htm From delgadof at marn.gob.sv Thu Feb 7 15:18:14 2002 From: delgadof at marn.gob.sv (Francisco Delgado) Date: Thu, 7 Feb 2002 17:18:14 -0600 Subject: [mapserver-users] DBF Queries In-Reply-To: Message-ID: Yes, it has changed. Now both TEMPLATE, HEADER and FOOTER definitions go inside the QUERY object of each LAYER object, but I think what Fran is trying to do is to query a database that gets some records with Latitude/Longitud data within the returned fields and plot them over an existing map. Could somebody tell us (I want to do the same) how to do that? Atentamente, ------------------------------------------------ Francisco Jose Delgado - Director de Informatica MARN http://www.marn.gob.sv delgadof at marn.gob.sv -----Mensaje original----- De: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]En nombre de Pushkar Pradhan Enviado el: Thursday, February 07, 2002 1:34 PM Para: Francisco CC: mapserver-users at lists.gis.umn.edu Asunto: Re: [mapserver-users] DBF Queries Hi, I am giving you an example from MS 3.3 I don't know whether it is changed, but you will get an idea of a simple query. QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END This will enable query for only this layer: LAYER NAME majr TYPE LINE STATUS ON DATA majr CLASS NAME "Major Rivers" COLOR 0 0 255 END HEADER "majr_header.html" FOOTER "majr_footer.html" QUERY TEMPLATE "majr.html" END TOLERANCE 5 END # end of layer object - major rivers The majr.html is the main file here which contains attrib. from your .dbf file: [LENGTH][MAJR_][MAJR_ID][NAME][R NUM] length, name etc.. are attribs. from the dbf file. _header.html: (only for html presentation) Layer: majr

RNUM The footer is simply html decoration:
LENGTHMAJR_MAJR_IDNAME

> > Hello all. > > First of all, thank you for your help with the Angle labels. > > Now, I'm looking for documentation or examples about queries to DBF files. > I use ArcView files (Shp, DBF, Shx) and i would like to show some points > from a query in a map. > Someone know where I can find something about it?. > > > Thank you, > > Regards! > Fran. > > ---------------------------------------------------------------------------- -- PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ---------------------------------------------------------------------------- -- From steve.lime at dnr.state.mn.us Thu Feb 7 15:32:21 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 07 Feb 2002 17:32:21 -0600 Subject: [mapserver-users] DBF Queries Message-ID: That's what classes are for. So if you have a variable named population and you want all features with a value greater than 5000 you'd do something like CLASS NAME 'Cities with more the 5000 people in them.' EXPRESSION ([POPULATION] > 5000) COLOR 255 0 0 END The net effect is that only those features matching the expression (a query) are drawn. You can build these expressions dynamically or hardcode them in a map file. I believe the mapfile how-to explains the variety of expressions that you can do. Is this sort of what you're looking for? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Francisco Delgado" 02/07/02 05:18PM >>> Yes, it has changed. Now both TEMPLATE, HEADER and FOOTER definitions go inside the QUERY object of each LAYER object, but I think what Fran is trying to do is to query a database that gets some records with Latitude/Longitud data within the returned fields and plot them over an existing map. Could somebody tell us (I want to do the same) how to do that? Atentamente, ------------------------------------------------ Francisco Jose Delgado - Director de Informatica MARN http://www.marn.gob.sv delgadof at marn.gob.sv -----Mensaje original----- De: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]En nombre de Pushkar Pradhan Enviado el: Thursday, February 07, 2002 1:34 PM Para: Francisco CC: mapserver-users at lists.gis.umn.edu Asunto: Re: [mapserver-users] DBF Queries Hi, I am giving you an example from MS 3.3 I don't know whether it is changed, but you will get an idea of a simple query. QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END This will enable query for only this layer: LAYER NAME majr TYPE LINE STATUS ON DATA majr CLASS NAME "Major Rivers" COLOR 0 0 255 END HEADER "majr_header.html" FOOTER "majr_footer.html" QUERY TEMPLATE "majr.html" END TOLERANCE 5 END # end of layer object - major rivers The majr.html is the main file here which contains attrib. from your .dbf file: [LENGTH][MAJR_][MAJR_ID][NAME][R NUM] length, name etc.. are attribs. from the dbf file. _header.html: (only for html presentation) Layer: majr

RNUM The footer is simply html decoration:
LENGTHMAJR_MAJR_IDNAME

> > Hello all. > > First of all, thank you for your help with the Angle labels. > > Now, I'm looking for documentation or examples about queries to DBF files. > I use ArcView files (Shp, DBF, Shx) and i would like to show some points > from a query in a map. > Someone know where I can find something about it?. > > > Thank you, > > Regards! > Fran. > > ---------------------------------------------------------------------------- -- PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ---------------------------------------------------------------------------- -- From delgadof at marn.gob.sv Thu Feb 7 16:08:23 2002 From: delgadof at marn.gob.sv (Francisco Delgado) Date: Thu, 7 Feb 2002 18:08:23 -0600 Subject: [mapserver-users] DBF Queries In-Reply-To: Message-ID: Not exactly. I've used classes for that matter, but what I have is a dynamic database that is growing daily and in each record I have lat/long coordinates that should be added to the map without having to generate a new shapefile every time records are added. Thank you very much Atentamente, ------------------------------------------------ Francisco Jose Delgado - Director de Informatica MARN http://www.marn.gob.sv delgadof at marn.gob.sv Tel. (503) 260-5637 -----Mensaje original----- De: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Enviado el: Thursday, February 07, 2002 5:32 PM Para: fgclaram at alu-ab.uclm.es; pushkar at ERC.MsState.Edu; delgadof at marn.gob.sv CC: mapserver-users at lists.gis.umn.edu Asunto: RE: [mapserver-users] DBF Queries That's what classes are for. So if you have a variable named population and you want all features with a value greater than 5000 you'd do something like CLASS NAME 'Cities with more the 5000 people in them.' EXPRESSION ([POPULATION] > 5000) COLOR 255 0 0 END The net effect is that only those features matching the expression (a query) are drawn. You can build these expressions dynamically or hardcode them in a map file. I believe the mapfile how-to explains the variety of expressions that you can do. Is this sort of what you're looking for? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Francisco Delgado" 02/07/02 05:18PM >>> Yes, it has changed. Now both TEMPLATE, HEADER and FOOTER definitions go inside the QUERY object of each LAYER object, but I think what Fran is trying to do is to query a database that gets some records with Latitude/Longitud data within the returned fields and plot them over an existing map. Could somebody tell us (I want to do the same) how to do that? Atentamente, ------------------------------------------------ Francisco Jose Delgado - Director de Informatica MARN http://www.marn.gob.sv delgadof at marn.gob.sv -----Mensaje original----- De: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]En nombre de Pushkar Pradhan Enviado el: Thursday, February 07, 2002 1:34 PM Para: Francisco CC: mapserver-users at lists.gis.umn.edu Asunto: Re: [mapserver-users] DBF Queries Hi, I am giving you an example from MS 3.3 I don't know whether it is changed, but you will get an idea of a simple query. QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END This will enable query for only this layer: LAYER NAME majr TYPE LINE STATUS ON DATA majr CLASS NAME "Major Rivers" COLOR 0 0 255 END HEADER "majr_header.html" FOOTER "majr_footer.html" QUERY TEMPLATE "majr.html" END TOLERANCE 5 END # end of layer object - major rivers The majr.html is the main file here which contains attrib. from your .dbf file: [LENGTH][MAJR_][MAJR_ID][NAME][R NUM] length, name etc.. are attribs. from the dbf file. _header.html: (only for html presentation) Layer: majr

RNUM The footer is simply html decoration:
LENGTHMAJR_MAJR_IDNAME

> > Hello all. > > First of all, thank you for your help with the Angle labels. > > Now, I'm looking for documentation or examples about queries to DBF files. > I use ArcView files (Shp, DBF, Shx) and i would like to show some points > from a query in a map. > Someone know where I can find something about it?. > > > Thank you, > > Regards! > Fran. > > ---------------------------------------------------------------------------- -- PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ---------------------------------------------------------------------------- -- From warmerdam at pobox.com Thu Feb 7 18:22:55 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 07 Feb 2002 21:22:55 -0500 Subject: [mapserver-users] 24bit tiff and gdal References: Message-ID: <3C63367F.4040402@pobox.com> Pushkar Pradhan wrote: > Hi, > I've compiled MS 3.5 with gdal: > Banshee[284] pushkar$ mapserv -v > MapServer version 3.5 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF > INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE > > But when I try to display 24 bit tiff I get the foll. msg.: > drawTIFF(): Image handling error. Only colormapped and grayscale images > are supported. > This is the info. for my tiff file > Banshee[293] pushkar$ identify data/24bmosaic2001mstm.tif > data/24bmosaic2001mstm.tif 5167x3675 DirectClass 54mb TIFF 3.6u 0:25 > > I've gdal1.1.5 and this is the info. for it: > Banshee[296] pushkar$ gdal-config --formats > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 sdts raw dted mem jdem > envisat elas fit gif jpeg png > > I have the tfw file also: 24bmosaic2001mstm.tfw > > **My ques. is do I have to disable TIFF support if I compile mapserver > with GDAL? Maybe the default behaviour of MS is to use the tiff libs. read > the tiff imgs. and not try to use GDAL after that? Pushkar, If you want to use GDAL for your TIFF files you need to configure and build MapServer without direct TIFF support or the direct TIFF support will get used in preference. I have been sort of intending to change the configure to disable TIFF support (unless explicitly requested during the configure) if GDAL is configured in, but haven't gotten around to it. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From neteler at itc.it Fri Feb 8 03:27:43 2002 From: neteler at itc.it (Markus Neteler) Date: Fri, 8 Feb 2002 12:27:43 +0100 Subject: [mapserver-users] Raster map queries (pixel values)? Message-ID: <20020208122743.F21185@thuille.itc.it> Hi, probably it is well known, but I did not find anything about it: How can I query raster map pixels with MapServer? I want to add this functionality to my new (demo) GRASS-MapServer: http://grass.itc.it/start.html and to other servers. Thanks for any hint, Markus Neteler From malone at creedence.org Fri Feb 8 05:35:01 2002 From: malone at creedence.org (malone at creedence.org) Date: Fri, 08 Feb 2002 11:35:01 -0200 (BRST) Subject: [mapserver-users] Mapscript/PHP Message-ID: <1013175301.3c63d4051e4bb@creedence.org> Hello all, I implemented the example of mapscript/PHP in http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html and I saw how to do zoom in, zoom out, pan. Now , I don't know how to do queries in mapscript/PHP. I try de function queryByPoint but nothing happen. Somebody can help me ? []'s Michel M. dos Santos From woodbri at swoodbridge.com Fri Feb 8 06:26:53 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 08 Feb 2002 09:26:53 -0500 Subject: [mapserver-users] Mapscript/PHP References: <1013175301.3c63d4051e4bb@creedence.org> Message-ID: <3C63E02D.E9E8522F@swoodbridge.com> There is a good example of this in the gmap application. You can download it from: http://www2.dmsolutions.ca/mapserver/dl/ you might also find some information off the links at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript -Steve malone at creedence.org wrote: > > Hello all, > > I implemented the example of mapscript/PHP in > http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html and I saw how > to do zoom in, zoom out, pan. > > Now , I don't know how to do queries in mapscript/PHP. I try de function > queryByPoint but nothing happen. > > Somebody can help me ? > > []'s > Michel M. dos Santos From dchampion at clacks.gov.uk Fri Feb 8 06:32:55 2002 From: dchampion at clacks.gov.uk (dchampion at clacks.gov.uk) Date: Fri, 8 Feb 2002 14:32:55 +0000 Subject: [mapserver-users] Beginner question - UK projections Message-ID: I'm a new Mapserver user, and not a geographer, so this may be a simple question! Any help would be most gratefully received. I've compiled v3.5 with PROJ4 support and the demo works beautifully. I have a shapefile with data of my local area, Clackmannanshire in Scotland. My problem is how to get this data to display. I'm fairly sure it has something to do with projections, but that's where my understanding runs dry. So, how do I determine: a) What extent values to use b) What values to put in the PROJECTION block in the .map file? I've taken EXTENT values from ArcView based on UK OS grid references, and I've tried this for projection, based on my scant understanding, but no data is displayed: PROJECTION "proj=tmerc" "ellps=airy" "zone=31" "north" "no_defs" END TIA Daniel Champion Web Development Manager ClacksWeb http://www.clacksweb.org.uk ********************************************************************** This email and any attachments have been scanned for viruses prior to leaving Clackmannanshire Council. Clackmannanshire Council will not be liable for any losses as a result of any viruses being passed on. www.clacksweb.org.uk ********************************************************************** From andrewrcollins at yahoo.com Fri Feb 8 06:43:01 2002 From: andrewrcollins at yahoo.com (Andrew Collins) Date: Fri, 8 Feb 2002 06:43:01 -0800 (PST) Subject: [mapserver-users] Java Topology Suite In-Reply-To: <3C62FF22.D48BEE96@parvillers.com> Message-ID: <20020208144301.4466.qmail@web14007.mail.yahoo.com> Each > I saw this in an other GIS mailing list . > > http://www.vividsolutions.com/jts/jtshome.htm This library is *excellent* for manipulating polygons. If there are any developers on this list who would like to work on using JTS to manipulate SHP files, or similar related tasks, I would be glad to join a project at SourceForge... This is my first post--I just found MapServer two weeks ago and I'm astounded by the current power and future potential of this piece of open source software. ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From teb at mallit.fr.umn.edu Fri Feb 8 07:08:25 2002 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 8 Feb 2002 09:08:25 -0600 (CST) Subject: [mapserver-users] MapINFO, Region Style (FWD) Message-ID: <200202081508.JAA19328@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: CoadyT at DFO-MPO.GC.CA To: mapserver-info at lists.gis.umn.edu Subject: MapINFO, Region Style Date: Thu, 7 Feb 2002 13:41:30 -0500 MIME-Version: 1.0 I have tried everything I know possible to get my map to display a layer the same color and style of a .TAB MapINFO file. I am sending you guys my .map code for the capelin layer I am working on and the .TAB file I am using. I was wondering if you guys could come up with a solution to me problem. There are no errors the layer just wont display. I hole you guys can help!! Thanks Tony Coady ------------- End Forwarded Message ------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: fish3.zip Type: application/octet-stream Size: 17835 bytes Desc: fish3.zip URL: From warmerdam at pobox.com Fri Feb 8 07:18:49 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 08 Feb 2002 10:18:49 -0500 Subject: [mapserver-users] Beginner question - UK projections References: Message-ID: <3C63EC59.309@pobox.com> dchampion at clacks.gov.uk wrote: > I'm a new Mapserver user, and not a geographer, so this may be a simple > question! Any help would be most gratefully received. > > I've compiled v3.5 with PROJ4 support and the demo works beautifully. > > I have a shapefile with data of my local area, Clackmannanshire in > Scotland. My problem is how to get this data to display. I'm fairly sure > it has something to do with projections, but that's where my understanding > runs dry. > > So, how do I determine: > > a) What extent values to use > b) What values to put in the PROJECTION block in the .map file? > > I've taken EXTENT values from ArcView based on UK OS grid references, and > I've tried this for projection, based on my scant understanding, but no > data is displayed: > > PROJECTION > "proj=tmerc" > "ellps=airy" > "zone=31" > "north" > "no_defs" > END Daniel, The UK National Grid should be represented as: PROJECTION "proj=tmerc" "lat_0=49.000000000" "lon_0=-2.000000000" "k=0.999601" "x_0=400000.000" "y_0=-100000.000" "ellps=airy" "towgs84=375,-111,431,0,0,0,0" END The "towgs84" portion is only necessary if you will have data in other datums. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From teb at mallit.fr.umn.edu Fri Feb 8 07:22:19 2002 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 8 Feb 2002 09:22:19 -0600 (CST) Subject: [mapserver-users] hardware mapserver specification (FWD) Message-ID: <200202081522.JAA19383@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "sukhum sriklum" To: Subject: Date: Fri, 8 Feb 2002 17:48:59 +0700 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Hi, We are interesting to MapServer application developers. We want to build server with php language on linux redhat 6.2. - How are your hardware mapserver specification now? (CPU, RAM, HARDDISK, MOTHERBOARD) Please, advice me. Thankyou. Sukhum Sriklum ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Fri Feb 8 07:28:06 2002 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 8 Feb 2002 09:28:06 -0600 (CST) Subject: [mapserver-users] Mapserver CGI variable: img. (FWD) Message-ID: <200202081528.JAA19407@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Content-return: allowed Date: Thu, 07 Feb 2002 08:51:14 -0800 From: "Webber, Tim MCF:EX" Subject: Mapserver CGI variable: img. To: "'mapserver-info at lists.gis.umn.edu'" MIME-version: 1.0 Content-transfer-encoding: 7BIT I am using an img src tag to run mapserver. It almost does what I want. 4 gifs are created and dumped into my tmp directory. My problem is that I want to be able to control the name of these gifs. I tried setting the img cgi variable like in the following tag (&img=data1) hoping that that would set the value of the main map gif but it does'nt work. The map name still comes out something like data110130986502268.gif. Is there a way to execute mapserver like I have below (which again works) and be able to set the value of the gif's that get created and dumped into my tmp directory? MAP
------------- End Forwarded Message ------------- From williams at wildweb.org Fri Feb 8 08:32:01 2002 From: williams at wildweb.org (Doug Williams) Date: Fri, 8 Feb 2002 09:32:01 -0700 Subject: [mapserver-users] color polygons? Message-ID: <02020809320100.08437@grove.giantcedars.com> Hello, Is it possible to randomly (or otherwise) color polygons within a single shapefile according to the value of one of the shpefile attributes? Thanks, Doug Williams From amorin at NRCan.gc.ca Fri Feb 8 09:58:11 2002 From: amorin at NRCan.gc.ca (Morin, Annie) Date: Fri, 8 Feb 2002 12:58:11 -0500 Subject: [mapserver-users] obtaining a wms mapserver map by Cubeview interface. Message-ID: <06B403677C41D51194550002A55107D211BB09@S5-STF1-R1> Hi, I queried for a map from my cubeview interface. The mapserver url is: http://www.cgq-qgc.ca/cgi-bin/mapserv_35s.exe?map=d:\webcgq\hydrolink\public \mapservice\geomm.map this map works fine when calling it from the mapserver itself. but when i call it through the cubeview interface it gives me an error like the following one: msProcessProjection(): no options found in 'init' file. I tried the getCapabilities and the xml I received looks good. does anyone has an idea of what the problem may be? Annie Morin From matthew.g.krusemark at co.multnomah.or.us Fri Feb 8 09:58:04 2002 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Fri, 8 Feb 2002 09:58:04 -0800 Subject: [mapserver-users] RE: DBF or database dynamic shapes Message-ID: <9D07D10FA5CAD21192620008C7B14D290307560A@isdexch-1.co.multnomah.or.us> Does anyone have information on how to create points from coordinate information stored in a database or DBF file; in other words a SHP that gets dynamically displayed after coordinate info is entered? TIA, -matt From GrantM at ATSER.com Fri Feb 8 11:53:39 2002 From: GrantM at ATSER.com (Grant Marblestone) Date: Fri, 8 Feb 2002 13:53:39 -0600 Subject: [mapserver-users] Color polygons contd References: <02020809320100.08437@grove.giantcedars.com> Message-ID: <002401c1b0da$50ac6900$7201010a@localhost.atser> SO i think the answer to this is to use class expression to get teh colors you want. However i wish to ask further...... For expression not random.. but lets say i have some data zip that is basically 77777 77788 77478 88983 And i want them to be red if even and blue if odd.... QUESTION how can i use mod in the expression EXPRESSION [zip]%2==0 red EXPRESSION [zip]%2==1 blue? Thanks, Grant ----- Original Message ----- From: "Doug Williams" To: Sent: Friday, February 08, 2002 10:32 AM Subject: [mapserver-users] color polygons? > Hello, > > Is it possible to randomly (or otherwise) color polygons within a single > shapefile according to the value of one of the shpefile attributes? > > Thanks, > Doug Williams From pushkar at ERC.MsState.Edu Fri Feb 8 13:05:15 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Fri, 8 Feb 2002 15:05:15 -0600 (CST) Subject: [mapserver-users] 24bit tiff and gdal In-Reply-To: <3C63367F.4040402@pobox.com> Message-ID: Frank, Thanks for confirming my doubt about disabling TIFF support: so now my MS config. says: Banshee[51] pushkar$ mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=TTF INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE But to my horror now I am unable to read either 8 or 24 bit TIFFs, I get the foll. error: msDrawRaster(): Image handling error. Unrecognized or unsupported image format and when I try to display colored jpegs also it doesn't work: drawJPEG(): Unable to access file. Only grayscale JPEG images are supported. This is my path: Banshee[91] pushkar$ echo $LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/usr/dt/lib:/usr/openwin/lib:/usr/local/gnu/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/ucblib:/usr/local/netpbm/lib:/rstc/user1/erc/pushkar/gdal-1.1.5 i.e. I have given the path to the gdal dir. Apache's error log says: [Fri Feb 8 15:01:51 2002] [notice] SIGUSR1 received. Doing graceful restart [Fri Feb 8 15:01:51 2002] [notice] Apache/1.3.22 (Unix) configured -- resuming normal operations [Fri Feb 8 15:01:51 2002] [info] Server built: Nov 14 2001 12:06:07 [Fri Feb 8 15:01:51 2002] [notice] Accept mutex: fcntl (Default: fcntl) Am I not linking properly or something? On Thu, 7 Feb 2002, Frank Warmerdam wrote: > > > Pushkar Pradhan wrote: > > > Hi, > > I've compiled MS 3.5 with gdal: > > Banshee[284] pushkar$ mapserv -v > > MapServer version 3.5 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF > > INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE > > > > But when I try to display 24 bit tiff I get the foll. msg.: > > drawTIFF(): Image handling error. Only colormapped and grayscale images > > are supported. > > This is the info. for my tiff file > > Banshee[293] pushkar$ identify data/24bmosaic2001mstm.tif > > data/24bmosaic2001mstm.tif 5167x3675 DirectClass 54mb TIFF 3.6u 0:25 > > > > I've gdal1.1.5 and this is the info. for it: > > Banshee[296] pushkar$ gdal-config --formats > > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 sdts raw dted mem jdem > > envisat elas fit gif jpeg png > > > > I have the tfw file also: 24bmosaic2001mstm.tfw > > > > **My ques. is do I have to disable TIFF support if I compile mapserver > > with GDAL? Maybe the default behaviour of MS is to use the tiff libs. read > > the tiff imgs. and not try to use GDAL after that? > > > Pushkar, > > If you want to use GDAL for your TIFF files you need to configure and > build MapServer without direct TIFF support or the direct TIFF support > will get used in preference. I have been sort of intending to change > the configure to disable TIFF support (unless explicitly requested during > the configure) if GDAL is configured in, but haven't gotten around to it. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From steve.lime at dnr.state.mn.us Fri Feb 8 14:51:27 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 08 Feb 2002 16:51:27 -0600 Subject: [mapserver-users] Color polygons contd Message-ID: I don't believe there is a mod operator in the expression code. Could be added, and if you'd care to add that as a bug that would be appreciated. There is however a workaround using regex, this might work: CLASSITEM zip CLASS EXPRESSION /[13579]$/ # anything ending in an odd number COLOR 255 0 0 END CLASS COLOR 0 0 255 # no need for expression, this becomes the default END Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Grant Marblestone 02/08/02 01:53PM >>> SO i think the answer to this is to use class expression to get teh colors you want. However i wish to ask further...... For expression not random.. but lets say i have some data zip that is basically 77777 77788 77478 88983 And i want them to be red if even and blue if odd.... QUESTION how can i use mod in the expression EXPRESSION [zip]%2==0 red EXPRESSION [zip]%2==1 blue? Thanks, Grant ----- Original Message ----- From: "Doug Williams" To: Sent: Friday, February 08, 2002 10:32 AM Subject: [mapserver-users] color polygons? > Hello, > > Is it possible to randomly (or otherwise) color polygons within a single > shapefile according to the value of one of the shpefile attributes? > > Thanks, > Doug Williams From steve.lime at dnr.state.mn.us Fri Feb 8 14:58:02 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 08 Feb 2002 16:58:02 -0600 Subject: [mapserver-users] color polygons? Message-ID: You can use CLASSes to map your attribute values to colors. This is not a random process unless the attribute itself is populated randomly. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Doug Williams 02/08/02 10:32AM >>> Hello, Is it possible to randomly (or otherwise) color polygons within a single shapefile according to the value of one of the shpefile attributes? Thanks, Doug Williams From gsathis at yahoo.com Fri Feb 8 15:18:22 2002 From: gsathis at yahoo.com (Sathiskumar Govindasamy) Date: Fri, 08 Feb 2002 17:18:22 -0600 Subject: [mapserver-users] New to Mapserver Message-ID: <3C645CBE.3080407@yahoo.com> Hello, I am new to Mapserver. I don't know where to start. I tried to go through tutorial I couldn't get much out of it. I wanted the mapserver to generate map of US with states marked. I was told to use Tiger Line data. I don't loaded tigerline files for Illinois and also boundary line shapefiles for all the state states. Can someone tell me how to start or point me to some site where they have explained how to use Tiger data ? Thanks Sathis From v at w.cl Fri Feb 8 19:19:43 2002 From: v at w.cl (Vinko Vrsalovic) Date: Fri, 8 Feb 2002 22:19:43 -0500 Subject: [mapserver-users] Mapscript/PHP In-Reply-To: <1013175301.3c63d4051e4bb@creedence.org> References: <1013175301.3c63d4051e4bb@creedence.org> Message-ID: <20020208221943.A21823@landsat.cprsig.cl> On Fri, Feb 08, 2002 at 11:35:01AM -0200, malone at creedence.org wrote: > > I implemented the example of mapscript/PHP in > http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html and I saw how > to do zoom in, zoom out, pan. > > Now , I don't know how to do queries in mapscript/PHP. I try de function > queryByPoint but nothing happen. You should look at the gmap example by DM Solutions it's at http://www2.dmsolutions.ca/mapserver/dl/gmap-ms35-release.tar.gz For that to work you should define METADATA with the fields you want to be displayed for the layers you want to query. And don't forget to set a TEMPLATE for each layer you want to be queried. (This is the next thing i'll put on the by example HOWTO). -- V. From joemayfair at usa.net Fri Feb 8 20:34:44 2002 From: joemayfair at usa.net (Walt Lin) Date: Fri, 8 Feb 2002 23:34:44 -0500 Subject: [mapserver-users] New to Mapserver In-Reply-To: <3C645CBE.3080407@yahoo.com> References: <3C645CBE.3080407@yahoo.com> Message-ID: <20020209043444.GA29209@eggbert> If you just want to draw the state outlines and labels, don't use TIGER-- use files from nationalatlas.gov . If you need street level data for the whole US, then tiger is the way to go. Nationalatlas should have just one layer for states-- setup your .map file for just one layer and off you go. On Fri, Feb 08, 2002 at 05:18:22PM -0600, Sathiskumar Govindasamy wrote: > Hello, > > I am new to Mapserver. I don't know where to start. I tried to go > through tutorial I couldn't get much out of it. I wanted the mapserver > to generate map of US with states marked. I was told to use Tiger Line > data. I don't loaded tigerline files for Illinois and also boundary line > shapefiles for all the state states. Can someone tell me how to start or > point me to some site where they have explained how to use Tiger data ? > > Thanks > Sathis > > > From steve.lime at dnr.state.mn.us Fri Feb 8 21:49:28 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 08 Feb 2002 23:49:28 -0600 Subject: [mapserver-users] 24bit tiff and gdal Message-ID: A note on the jpeg support. Jpeg sucks for spatial data and really sucks for uses like MapServer. To access the lower righthand corner of the image you must decompress the entire image so performance is less than stellar. The support was added for B&W DOQ images as distributed by USGS. (We later converted all of our DOQ imagery to TIFF for performance reasons.)It's use is discouraged. Note that I don't believe there is such a thing as a color mapped (i.e. 8-bit) JPEG image (due to the compression) which is why only greyscale images are supported. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Pushkar Pradhan 02/08/02 15:12 PM >>> Frank, Thanks for confirming my doubt about disabling TIFF support: so now my MS config. says: Banshee[51] pushkar$ mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=TTF INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE But to my horror now I am unable to read either 8 or 24 bit TIFFs, I get the foll. error: msDrawRaster(): Image handling error. Unrecognized or unsupported image format and when I try to display colored jpegs also it doesn't work: drawJPEG(): Unable to access file. Only grayscale JPEG images are supported. This is my path: Banshee[91] pushkar$ echo $LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/usr/dt/lib:/usr/openwin/lib:/usr/local/gnu/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/ucblib:/usr/local/netpbm/lib:/rstc/user1/erc/pushkar/gdal-1.1.5 i.e. I have given the path to the gdal dir. Apache's error log says: [Fri Feb 8 15:01:51 2002] [notice] SIGUSR1 received. Doing graceful restart [Fri Feb 8 15:01:51 2002] [notice] Apache/1.3.22 (Unix) configured -- resuming normal operations [Fri Feb 8 15:01:51 2002] [info] Server built: Nov 14 2001 12:06:07 [Fri Feb 8 15:01:51 2002] [notice] Accept mutex: fcntl (Default: fcntl) Am I not linking properly or something? On Thu, 7 Feb 2002, Frank Warmerdam wrote: > > > Pushkar Pradhan wrote: > > > Hi, > > I've compiled MS 3.5 with gdal: > > Banshee[284] pushkar$ mapserv -v > > MapServer version 3.5 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF > > INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE > > > > But when I try to display 24 bit tiff I get the foll. msg.: > > drawTIFF(): Image handling error. Only colormapped and grayscale images > > are supported. > > This is the info. for my tiff file > > Banshee[293] pushkar$ identify data/24bmosaic2001mstm.tif > > data/24bmosaic2001mstm.tif 5167x3675 DirectClass 54mb TIFF 3.6u 0:25 > > > > I've gdal1.1.5 and this is the info. for it: > > Banshee[296] pushkar$ gdal-config --formats > > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 sdts raw dted mem jdem > > envisat elas fit gif jpeg png > > > > I have the tfw file also: 24bmosaic2001mstm.tfw > > > > **My ques. is do I have to disable TIFF support if I compile mapserver > > with GDAL? Maybe the default behaviour of MS is to use the tiff libs. read > > the tiff imgs. and not try to use GDAL after that? > > > Pushkar, > > If you want to use GDAL for your TIFF files you need to configure and > build MapServer without direct TIFF support or the direct TIFF support > will get used in preference. I have been sort of intending to change > the configure to disable TIFF support (unless explicitly requested during > the configure) if GDAL is configured in, but haven't gotten around to it. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From steve.lime at dnr.state.mn.us Fri Feb 8 22:00:32 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Sat, 09 Feb 2002 00:00:32 -0600 Subject: [mapserver-users] DBF Queries Message-ID: It's also worth considering using cron to run a script to dump from the main datasource (Oracle, flat file or whatever) to a shapefile. Perhaps it's not as slick, but it's likely better for performance and may allow you to use the CGI version of the MapServer- less code to write (beyond the converter). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Searle Ross" 02/07/02 19:30 PM >>> Francisco, One simple solution to your problem is is to store your point data in a postgres database and use postgis to display your dynamic info. We have got an application that does this and it works fine. Ross -----Original Message----- From: Francisco Delgado [mailto:delgadof at marn.gob.sv] Sent: Friday, 8 February 2002 10:08 AM To: Steve Lime; fgclaram at alu-ab.uclm.es; pushkar at ERC.MsState.Edu Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] DBF Queries Not exactly. I've used classes for that matter, but what I have is a dynamic database that is growing daily and in each record I have lat/long coordinates that should be added to the map without having to generate a new shapefile every time records are added. Thank you very much Atentamente, ------------------------------------------------ Francisco Jose Delgado - Director de Informatica MARN http://www.marn.gob.sv delgadof at marn.gob.sv Tel. (503) 260-5637 -----Mensaje original----- De: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Enviado el: Thursday, February 07, 2002 5:32 PM Para: fgclaram at alu-ab.uclm.es; pushkar at ERC.MsState.Edu; delgadof at marn.gob.sv CC: mapserver-users at lists.gis.umn.edu Asunto: RE: [mapserver-users] DBF Queries That's what classes are for. So if you have a variable named population and you want all features with a value greater than 5000 you'd do something like CLASS NAME 'Cities with more the 5000 people in them.' EXPRESSION ([POPULATION] > 5000) COLOR 255 0 0 END The net effect is that only those features matching the expression (a query) are drawn. You can build these expressions dynamically or hardcode them in a map file. I believe the mapfile how-to explains the variety of expressions that you can do. Is this sort of what you're looking for? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Francisco Delgado" 02/07/02 05:18PM >>> Yes, it has changed. Now both TEMPLATE, HEADER and FOOTER definitions go inside the QUERY object of each LAYER object, but I think what Fran is trying to do is to query a database that gets some records with Latitude/Longitud data within the returned fields and plot them over an existing map. Could somebody tell us (I want to do the same) how to do that? Atentamente, ------------------------------------------------ Francisco Jose Delgado - Director de Informatica MARN http://www.marn.gob.sv delgadof at marn.gob.sv -----Mensaje original----- De: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]En nombre de Pushkar Pradhan Enviado el: Thursday, February 07, 2002 1:34 PM Para: Francisco CC: mapserver-users at lists.gis.umn.edu Asunto: Re: [mapserver-users] DBF Queries Hi, I am giving you an example from MS 3.3 I don't know whether it is changed, but you will get an idea of a simple query. QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END This will enable query for only this layer: LAYER NAME majr TYPE LINE STATUS ON DATA majr CLASS NAME "Major Rivers" COLOR 0 0 255 END HEADER "majr_header.html" FOOTER "majr_footer.html" QUERY TEMPLATE "majr.html" END TOLERANCE 5 END # end of layer object - major rivers The majr.html is the main file here which contains attrib. from your .dbf file: [LENGTH][MAJR_][MAJR_ID][NAME][R NUM] length, name etc.. are attribs. from the dbf file. _header.html: (only for html presentation) Layer: majr

The footer is simply html decoration:
LENGTHMAJR_MAJR_IDNAMERNUM

> > Hello all. > > First of all, thank you for your help with the Angle labels. > > Now, I'm looking for documentation or examples about queries to DBF files. > I use ArcView files (Shp, DBF, Shx) and i would like to show some points > from a query in a map. > Someone know where I can find something about it?. > > > Thank you, > > Regards! > Fran. > > ------------------------------------------------------------------------ ---- -- PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------ ---- -- ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From v at w.cl Sat Feb 9 02:18:50 2002 From: v at w.cl (Vinko Vrsalovic) Date: Sat, 9 Feb 2002 05:18:50 -0500 Subject: [mapserver-users] RE: DBF or database dynamic shapes In-Reply-To: <9D07D10FA5CAD21192620008C7B14D290307560A@isdexch-1.co.multnomah.or.us> References: <9D07D10FA5CAD21192620008C7B14D290307560A@isdexch-1.co.multnomah.or.us> Message-ID: <20020209051850.A22609@landsat.cprsig.cl> On Fri, Feb 08, 2002 at 09:58:04AM -0800, KRUSEMARK Matthew G wrote: > Does anyone have information on how to create points from coordinate > information stored in a database or DBF file; in other words a SHP that gets > dynamically displayed after coordinate info is entered? With mapscript you can create a layer and a shape in that layer. You can obtain the data from a database or DBF file (with, for instance, the Perl or PHP native methods) and define a Shape with the obtained data, and finally add the shape to a layer and draw it. You can look at the Mapscript documentation to form you an idea of what's it about. -- V. From v at w.cl Sat Feb 9 03:31:27 2002 From: v at w.cl (Vinko Vrsalovic) Date: Sat, 9 Feb 2002 06:31:27 -0500 Subject: [mapserver-users] hardware mapserver specification (FWD) In-Reply-To: <200202081522.JAA19383@mallit.fr.umn.edu> References: <200202081522.JAA19383@mallit.fr.umn.edu> Message-ID: <20020209063127.A22702@landsat.cprsig.cl> > Hi, > We are interesting to MapServer application developers. We > want to build server with php language on linux redhat 6.2. Hi, why 6.2? > - How are your hardware mapserver specification now? (CPU, RAM, > HARDDISK, MOTHERBOARD) For a prototype that involved using Mapscript to display complex polygon layers, and dynamic generation of new layers with data stored in a database and queries on the shapefiles it ended up taking an average response time of 2 seconds on a P4 1.5, 1GB RAM and SCSI (don't know SCSI what that is, sorry) disks. On the other side, a basic application, that only displays static layers and queries on them, on a P2 350 with 128MB RAM and IDE disks, it took up an average response time of app. 1 second. -- V. From gsathis at yahoo.com Sat Feb 9 05:03:20 2002 From: gsathis at yahoo.com (Sathiskumar Govindasamy) Date: Sat, 09 Feb 2002 07:03:20 -0600 Subject: [mapserver-users] New to Mapserver In-Reply-To: <20020209043444.GA29209@eggbert> References: <3C645CBE.3080407@yahoo.com> <3C645CBE.3080407@yahoo.com> Message-ID: <5.1.0.14.0.20020209065850.00b29610@10.10.10.9> Hi, Thanks for your reply. Yes I wanted to go to street level mapping in the coming days, but I wanted to start with atleast the US and state boundaries with Interstates on it now. I have downloaded the Tiger Line 2000 data for Illinois. I have installed OGR and I am able to see the information through ogrinfo. But, how to I write template file and .map file with layers ? I would greatly appreciate your help. Thanks Sathis At 11:34 PM 2/8/2002 -0500, Walt Lin wrote: >If you just want to draw the state outlines and labels, don't use >TIGER-- use files from nationalatlas.gov . If you need street level >data for the whole US, then tiger is the way to go. Nationalatlas >should have just one layer for states-- setup your .map file for just >one layer and off you go. > >On Fri, Feb 08, 2002 at 05:18:22PM -0600, Sathiskumar Govindasamy wrote: > > Hello, > > > > I am new to Mapserver. I don't know where to start. I tried to go > > through tutorial I couldn't get much out of it. I wanted the mapserver > > to generate map of US with states marked. I was told to use Tiger Line > > data. I don't loaded tigerline files for Illinois and also boundary line > > shapefiles for all the state states. Can someone tell me how to start or > > point me to some site where they have explained how to use Tiger data ? > > > > Thanks > > Sathis > > > > > > From woodbri at swoodbridge.com Sat Feb 9 06:15:46 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 09 Feb 2002 09:15:46 -0500 Subject: [mapserver-users] New to Mapserver References: <3C645CBE.3080407@yahoo.com> <3C645CBE.3080407@yahoo.com> <5.1.0.14.0.20020209065850.00b29610@10.10.10.9> Message-ID: <3C652F12.1029F4BC@swoodbridge.com> Sathis, If you expect to get more than a few token hits on your server for demonstration purposes, you need to seriously consider translating the tigerline data to shape files as you will have big performance problems otherwise. If you ever plan to expand your data beyond one state you will need to use shapefiles also. The Census offers a bunch of boundary shapefiles now on its website for download, I don't think they have the street level files. Here are two layer definitions I use in my map file that might help, but I use shapefiles not OGR: LAYER NAME county MAXSCALE 799999 TYPE POLYGON STATUS ON TILEINDEX "tgrindex" DATA county CLASS NAME "Counties" COLOR -1 -1 -1 OUTLINECOLOR 128 128 128 END METADATA "DESCRIPTION" "County" "RESULT_FIELDS" "COUNTY STATE SSCCC" END HEADER "html/cty_header.html" FOOTER "html/cty_footer.html" TEMPLATE "html/cty.html" TOLERANCE 3 END LAYER NAME streets MAXSCALE 59999 STATUS ON TILEINDEX "tgrindex" DATA minroads TYPE LINE LABELITEM "NAME" CLASS NAME "Streets" SYMBOL "circle" COLOR 0 0 0 SIZE 4 OVERLAYSYMBOL "circle" OVERLAYCOLOR 255 255 255 OVERLAYSIZE 2 LABEL ANGLE AUTO TYPE TRUETYPE ANTIALIAS TRUE FONT arial-bold MINFEATURESIZE 10 MINDISTANCE 300 POSITION UC BUFFER 4 SIZE 8 COLOR 0 0 0 OUTLINECOLOR 255 255 204 END END METADATA "DESCRIPTION" "Surface Streets" "RESULT_FIELDS" "TLID NAME CFCC FRADDL TOADDL FRADDR TOADDR ZIPL ZIPR RTE_NUM" END HEADER "html/roads_header.html" FOOTER "html/roads_footer.html" TEMPLATE "html/roads.html" TOLERANCE 3 END # streets -Steve Sathiskumar Govindasamy wrote: > > Hi, > > Thanks for your reply. Yes I wanted to go to street level mapping in the > coming days, but I wanted to start with atleast the US and state boundaries > with Interstates on it now. I have downloaded the Tiger Line 2000 data for > Illinois. I have installed OGR and I am able to see the information through > ogrinfo. But, how to I write template file and .map file with layers ? I > would greatly appreciate your help. > > Thanks > Sathis > At 11:34 PM 2/8/2002 -0500, Walt Lin wrote: > >If you just want to draw the state outlines and labels, don't use > >TIGER-- use files from nationalatlas.gov . If you need street level > >data for the whole US, then tiger is the way to go. Nationalatlas > >should have just one layer for states-- setup your .map file for just > >one layer and off you go. > > > >On Fri, Feb 08, 2002 at 05:18:22PM -0600, Sathiskumar Govindasamy wrote: > > > Hello, > > > > > > I am new to Mapserver. I don't know where to start. I tried to go > > > through tutorial I couldn't get much out of it. I wanted the mapserver > > > to generate map of US with states marked. I was told to use Tiger Line > > > data. I don't loaded tigerline files for Illinois and also boundary line > > > shapefiles for all the state states. Can someone tell me how to start or > > > point me to some site where they have explained how to use Tiger data ? > > > > > > Thanks > > > Sathis > > > > > > > > > From joemayfair at usa.net Sat Feb 9 11:10:16 2002 From: joemayfair at usa.net (Walt Lin) Date: Sat, 9 Feb 2002 14:10:16 -0500 Subject: [mapserver-users] New to Mapserver In-Reply-To: <3C652F12.1029F4BC@swoodbridge.com> References: <3C645CBE.3080407@yahoo.com> <3C645CBE.3080407@yahoo.com> <5.1.0.14.0.20020209065850.00b29610@10.10.10.9> <3C652F12.1029F4BC@swoodbridge.com> Message-ID: <20020209191016.GB31612@eggbert> I use shp files as well for the tiger line files-- I converted the files to shp using tgr2shp (www.gistools.com). THat was a while ago, I don't know if there are any other methods or if there are freely available shp files with all of the tiger data (tgr2shp cost something like $100 and only runs on Windows-- I had to setup samba to get my windows machine to process the data on the linux server). On Sat, Feb 09, 2002 at 09:15:46AM -0500, Stephen Woodbridge wrote: > Sathis, > > If you expect to get more than a few token hits on your server for > demonstration purposes, you need to seriously consider translating the > tigerline data to shape files as you will have big performance problems > otherwise. If you ever plan to expand your data beyond one state you > will need to use shapefiles also. The Census offers a bunch of boundary > shapefiles now on its website for download, I don't think they have the > street level files. Here are two layer definitions I use in my map file > that might help, but I use shapefiles not OGR: > > LAYER > NAME county > MAXSCALE 799999 > TYPE POLYGON > STATUS ON > TILEINDEX "tgrindex" > DATA county > CLASS > NAME "Counties" > COLOR -1 -1 -1 > OUTLINECOLOR 128 128 128 > END > > METADATA > "DESCRIPTION" "County" > "RESULT_FIELDS" "COUNTY STATE SSCCC" > END > > HEADER "html/cty_header.html" > FOOTER "html/cty_footer.html" > TEMPLATE "html/cty.html" > > TOLERANCE 3 > END > > LAYER > NAME streets > MAXSCALE 59999 > STATUS ON > TILEINDEX "tgrindex" > DATA minroads > TYPE LINE > LABELITEM "NAME" > CLASS > NAME "Streets" > SYMBOL "circle" > COLOR 0 0 0 > SIZE 4 > OVERLAYSYMBOL "circle" > OVERLAYCOLOR 255 255 255 > OVERLAYSIZE 2 > LABEL > ANGLE AUTO > TYPE TRUETYPE > ANTIALIAS TRUE > FONT arial-bold > MINFEATURESIZE 10 > MINDISTANCE 300 > POSITION UC > BUFFER 4 > SIZE 8 > COLOR 0 0 0 > OUTLINECOLOR 255 255 204 > END > END > > METADATA > "DESCRIPTION" "Surface Streets" > "RESULT_FIELDS" "TLID NAME CFCC FRADDL TOADDL FRADDR TOADDR ZIPL > ZIPR RTE_NUM" > END > > HEADER "html/roads_header.html" > FOOTER "html/roads_footer.html" > TEMPLATE "html/roads.html" > > TOLERANCE 3 > END # streets > > > -Steve > > Sathiskumar Govindasamy wrote: > > > > Hi, > > > > Thanks for your reply. Yes I wanted to go to street level mapping in the > > coming days, but I wanted to start with atleast the US and state boundaries > > with Interstates on it now. I have downloaded the Tiger Line 2000 data for > > Illinois. I have installed OGR and I am able to see the information through > > ogrinfo. But, how to I write template file and .map file with layers ? I > > would greatly appreciate your help. > > > > Thanks > > Sathis > > At 11:34 PM 2/8/2002 -0500, Walt Lin wrote: > > >If you just want to draw the state outlines and labels, don't use > > >TIGER-- use files from nationalatlas.gov . If you need street level > > >data for the whole US, then tiger is the way to go. Nationalatlas > > >should have just one layer for states-- setup your .map file for just > > >one layer and off you go. > > > > > >On Fri, Feb 08, 2002 at 05:18:22PM -0600, Sathiskumar Govindasamy wrote: > > > > Hello, > > > > > > > > I am new to Mapserver. I don't know where to start. I tried to go > > > > through tutorial I couldn't get much out of it. I wanted the mapserver > > > > to generate map of US with states marked. I was told to use Tiger Line > > > > data. I don't loaded tigerline files for Illinois and also boundary line > > > > shapefiles for all the state states. Can someone tell me how to start or > > > > point me to some site where they have explained how to use Tiger data ? > > > > > > > > Thanks > > > > Sathis > > > > > > > > > > > > > > From morissette at dmsolutions.ca Sat Feb 9 13:21:37 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sat, 09 Feb 2002 16:21:37 -0500 Subject: [mapserver-users] obtaining a wms mapserver map by Cubeview interface. References: <06B403677C41D51194550002A55107D211BB09@S5-STF1-R1> Message-ID: <3C6592E1.73DC84EB@dmsolutions.ca> Bonjour Annie, This error means that an "EPSG:xxxx" code that you're trying to use is not defined in your EPSG file... I looked at your server's capabilities and it advertizes projection "EPSG:42304" for layer "BAS1860:cubestor"... but if you try using it then you get the error that you reported, so this projection is probably not defined in your EPSG file. EPSG codes in the range 42000-42999 are not standard: they are just custom codes that CubeWerx decided to use to deal with common canadian projections (LCC in this case) which were not available in the standard EPSG list... if you want to use those codes then you'll have to define them yourself. Here are the definitions for EPSG:42101, 42102, and 42304 which we often use also: ## Custom projection codes ## ## WGS84 / LCC Canada <42101> +proj=lcc +ellps=WGS84 +lat_0=0 +lon_0=-95 +lat_1=49 +lat_2=77 +x_0=0 +y_0=-8000000.0 +datum=WGS84 +units=m no_defs <> ## NAD83 / BC Albers <42102> +proj=aea +ellps=GRS80 +lat_0=45 +lon_0=-126.0 +lat_1=50.0 +lat_2=58.5 +x_0=1000000.0 +y_0=0 +datum=NAD83 +units=m no_defs <> # ## NAD83 LCC for Canada <42304> +proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95 +lat_1=49 +lat_2=77 +datum=NAD83 +units=m no_defs <> You could also download a copy of the epsg file with those 3 codes in it at http://www2.dmsolutions.ca/mapserver/dl/proj4-epsg-with-42xxx.zip Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. "Morin, Annie" wrote: > > Hi, > > I queried for a map from my cubeview interface. > > The mapserver url is: > http://www.cgq-qgc.ca/cgi-bin/mapserv_35s.exe?map=d:\webcgq\hydrolink\public > \mapservice\geomm.map > > this map works fine when calling it from the mapserver itself. but when i > call it through the cubeview interface it gives me an error like the > following one: > > msProcessProjection(): no options found in 'init' file. > > I tried the getCapabilities and the xml I received looks good. > does anyone has an idea of what the problem may be? > > Annie Morin From frank.koormann at intevation.de Sun Feb 10 06:03:01 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Sun, 10 Feb 2002 15:03:01 +0100 Subject: [mapserver-users] Mapserver CGI variable: img. (FWD) In-Reply-To: <200202081528.JAA19407@mallit.fr.umn.edu> References: <200202081528.JAA19407@mallit.fr.umn.edu> Message-ID: <20020210140301.GA18545@intevation.de> Tim, * teb (teb at mallit.fr.umn.edu) [020208 18:29]: > > ------------- Begin Forwarded Message ------------- > > Content-return: allowed > Date: Thu, 07 Feb 2002 08:51:14 -0800 > From: "Webber, Tim MCF:EX" > Subject: Mapserver CGI variable: img. > To: "'mapserver-info at lists.gis.umn.edu'" > MIME-version: 1.0 > Content-transfer-encoding: 7BIT > > I am using an img src tag to run mapserver. It almost does what I want. 4 > gifs are created and dumped into my tmp directory. My problem is that I > want to be able to control the name of these gifs. I tried setting the img > cgi variable like in the following tag (&img=data1) hoping that that would > set the value of the main map gif but it does'nt work. The map name still > comes out something like data110130986502268.gif. Is there a way to > execute mapserver like I have below (which again works) and be able to set > the value of the gif's that get created and dumped into my tmp directory? > Mostly: o The "NAME" Tag of the mapfile defined the start of the file name(s) o Using the CGI-Parameter "ID" you can replace the uniq session id based on system time and process id by an identifier of your choice. o The "leg", "ref" etc will still remain to differentiate the images generated within one session. See http://mapserver.gis.umn.edu/doc/mapfile-reference.html and http://mapserver.gis.umn.edu/doc/cgi-reference.html for more details. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From blackmail at snafu.de Mon Feb 11 05:25:14 2002 From: blackmail at snafu.de (Peter) Date: Mon, 11 Feb 2002 14:25:14 +0100 Subject: [mapserver-users] Mapserver and .dxf files Message-ID: <3C67C63A.8050409@snafu.de> Hi Listers, I'm having hundred .dxf files which I need to diplay within a mapserver application. Is there a possibility? One more problem: The .dxf files need to be updated sometimes... Any help appreciated! Thanks a lot Peter From GrantM at ATSER.com Mon Feb 11 07:39:14 2002 From: GrantM at ATSER.com (Grant Marblestone) Date: Mon, 11 Feb 2002 09:39:14 -0600 Subject: [mapserver-users] more query questions Message-ID: <000901c1b312$4d8af4a0$7201010a@localhost.atser> http://66.1.116.66:8080/aweb/gmap_permits/htdocs/ Howdy, This is my map page and i wish to have some queries on the dbf. One query is the click a point on map.. The other would be to search the map via a form textfield. How does one do this? Is there any laymens documentation out there>? Attached is my map file. Thanks so much, Grant Marblestone ATSER Systems -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gmap_permits.map Type: application/octet-stream Size: 5839 bytes Desc: not available URL: From DMcGaughey at mail.ci.lubbock.tx.us Mon Feb 11 08:16:48 2002 From: DMcGaughey at mail.ci.lubbock.tx.us (David McGaughey) Date: Mon, 11 Feb 2002 10:16:48 -0600 Subject: [mapserver-users] Shape files and Raster data Message-ID: Greetings! Having a strange problem. My shape files and raster data overlay pretty well until I zoom in really close. Then it seems that the raster data only zooms in one direction, and I loose the alignment between the shape files and the raster. For an example see this: http://maps.ci.lubbock.tx.us/cgi-bin/msv35/mapserv.exe?mode=browse&zoomdir=1&zoomsize=2&imgxy=299.5+299.5&imgext=946020.193585+7273854.347198+948737.547086+7276574.423406&map=%2Fhttpd%2Fmaps%2Fsp83%2Fgis%2Forthov35.map&name=%5Bname%5D&img.x=380&img.y=402 Then try zooming in one more time. I'm running v 3.5 on Windows 2000 as downloaded. The raster is tiled, State Plane 83 Texas North Central in feet from jpegs. Any ideas? David McGaughey City of Lubbock, Texas From teb at mallit.fr.umn.edu Mon Feb 11 08:41:34 2002 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 11 Feb 2002 10:41:34 -0600 (CST) Subject: [mapserver-users] Solaris SPARC segfault (FWD) Message-ID: <200202111641.KAA20642@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: gilles.cherix at freesurf.ch MIME-Version: 1.0 Date: Sun, 10 Feb 2002 14:52:08 +0100 To: gdal-dev at yahoogroups.com Cc: mapserver-info at lists.gis.umn.edu Subject: Solaris SPARC segfault Hello all, I'm trying to run mapserver's PHP/mapscript 3.5 release under solaris sparc (on a blade 100 running the latest solaris release). Sor far i've got everything to compile using GNU tools. GDAL 1.1.5 and CVS compile only when using every internal libs version. The problem is that when i try to use the mapscript php module i get a segmentation fault. Here's the back trace that gdb gave me : Program received signal SIGSEGV, Segmentation fault. 0xff1b27f0 in _longjmp () (gdb) where #0 0xff1b27f0 in _longjmp () #1 0xfe9f3608 in ?? () from /usr/local/lib/php/extensions/no-debug-non-zts-20001222/php_mapscript.so #2 0xfe7596d0 in ?? () from /usr/local/gdal/lib/libgdal.1.1.so #3 0xfe76b0f0 in ?? () from /usr/local/gdal/lib/libgdal.1.1.so #4 0xfe9f3f90 in ?? () from /usr/local/lib/php/extensions/no-debug-non-zts-20001222/php_mapscript.so #5 0xfe9f3ed8 in ?? () from /usr/local/lib/php/extensions/no-debug-non-zts-20001222/php_mapscript.so #6 0xfe9d94f0 in ?? () from /usr/local/lib/php/extensions/no-debug-non-zts-20001222/php_mapscript.so #7 0xfe9b7798 in ?? () from /usr/local/lib/php/extensions/no-debug-non-zts-20001222/php_mapscript.so #8 0xfec33fc4 in execute () #9 0xfec3430c in execute () #10 0xfec3430c in execute () #11 0xfec45808 in zend_execute_scripts (type=8, file_count=3) at zend.c:752 #12 0xfec5b42c in php_execute_script (primary_file=0xffbef578) at main.c:1206 That doesn't help me much... Is there a way to have more information on where the probleme resides? The php code used try to load PNG images... Thanks in advance Gilles CHERIX --- Genug gewartet? sunrise ADSL: schneller im Internet. http://www.sunrise.ch/de/internet/int_ads.asp --- Assez attendu? Avec sunrise ADSL, surfez encore plus vite sur le net. http://www.sunrise.ch/fr/internet/int_ads.asp --- Stufo di aspettare? Con sunrise ADSL pi? veloce che mai in Internet. http://www.sunrise.ch/it/internet/int_ads.asp ------------- End Forwarded Message ------------- From TMitchell at lignum.com Mon Feb 11 08:47:57 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Mon, 11 Feb 2002 08:47:57 -0800 Subject: [mapserver-users] hardware mapserver specification Message-ID: We are running a test server for getting to know mapserver and it runs okay. The server is a pentium 120Mhz with 64 MB RAM - not a recommended production server, but it works for me at the moment. I have the mapserver demo data (itasca county) running, the data is stored in a postgis database. With all the layers turned on, I get an average response time over our network of 3-4 seconds (I think it was 2 by using shape files instead of postgis, but I'm not sure at this moment). I also have mapserver running on my workstation, a Pentium 4 - 1.5Ghz with 256 MB RAM. I'm running more than just the demo data, including a 75MB satellite image and I get <1 second response on average. Required hard disk space is dependent upon the size of your spatial/tabular datasets (plus some temporary storage space). Tyler Vinko Vrsalovic Sent by: To: teb owner-mapserver-users at lists.g cc: mapserver-users at lists.gis.umn.edu, sukhum at tisconsult.com is.umn.edu Fax to: Subject: Re: [mapserver-users] hardware mapserver specification (FWD) 02/09/2002 03:31 AM Please respond to v > Hi, > We are interesting to MapServer application developers. We > want to build server with php language on linux redhat 6.2. Hi, why 6.2? > - How are your hardware mapserver specification now? (CPU, RAM, > HARDDISK, MOTHERBOARD) For a prototype that involved using Mapscript to display complex polygon layers, and dynamic generation of new layers with data stored in a database and queries on the shapefiles it ended up taking an average response time of 2 seconds on a P4 1.5, 1GB RAM and SCSI (don't know SCSI what that is, sorry) disks. On the other side, a basic application, that only displays static layers and queries on them, on a P2 350 with 128MB RAM and IDE disks, it took up an average response time of app. 1 second. -- V. From TMitchell at lignum.com Mon Feb 11 08:50:11 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Mon, 11 Feb 2002 08:50:11 -0800 Subject: [mapserver-users] Mapserver and .dxf files Message-ID: Hi Peter, Do mean that you have a lot of data and it is broken up by map sheets tiles? Peter Sent by: To: mapserver-users at lists.gis.umn.edu owner-mapserver-users at lists.g cc: is.umn.edu Fax to: Subject: [mapserver-users] Mapserver and .dxf files 02/11/2002 05:25 AM Hi Listers, I'm having hundred .dxf files which I need to diplay within a mapserver application. Is there a possibility? One more problem: The .dxf files need to be updated sometimes... Any help appreciated! Thanks a lot Peter From gsathis at yahoo.com Mon Feb 11 09:14:20 2002 From: gsathis at yahoo.com (Sathiskumar Govindasamy) Date: Mon, 11 Feb 2002 11:14:20 -0600 Subject: [mapserver-users] New to Mapserver References: <3C645CBE.3080407@yahoo.com> <3C645CBE.3080407@yahoo.com> <5.1.0.14.0.20020209065850.00b29610@10.10.10.9> <3C652F12.1029F4BC@swoodbridge.com> Message-ID: <3C67FBEC.9020104@yahoo.com> Steve, Thanks for your help. I have downloaded shapefiles from http://www.census.gov/geo/www/cob/st2000.html which are state boundary shape files. I tried to tweek the demo to work with that data. But I don't see anything on the maparea. The shape files are like st01_d00.xxx . There are three files per state. The following are my files. demo_init.html > Sathis, > MapServer Demo Interface > > >

MapServer Demo Interface

>


> Click on the initialize button to fire up the demo with 3 layers > turned on will be accessible for browsing. The > data are of Itasca County, MN and were derived, for the most part, > from USGS 1:24,000 quadrangles. Some things to note are: > >

> > > > > > > > > >
> >
> >


> > > ~ demo.html MapServer Demo Interface

MapServer Demo Interface


 Powered by MapServer
Zoom In Pan Zoom Out

Zoom Size


demo.map NAME EX2 EXTENT 74000 4775000 798000 5500000 SIZE 300 300 SHAPEPATH "tigershpdata" WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "set in demo_init.html" IMAGEURL "set in demo_init.html" END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of layer definitions # LAYER NAME st01_d00 TYPE POLYGON STATUS DEFAULT DATA st01_d00 CLASS # every other county in the state EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 49 117 185 END END END Can some tell me what the problem may be ? > > > >If you expect to get more than a few token hits on your server for >demonstration purposes, you need to seriously consider translating the >tigerline data to shape files as you will have big performance problems >otherwise. If you ever plan to expand your data beyond one state you >will need to use shapefiles also. The Census offers a bunch of boundary >shapefiles now on its website for download, I don't think they have the >street level files. Here are two layer definitions I use in my map file >that might help, but I use shapefiles not OGR: > >LAYER > NAME county > MAXSCALE 799999 > TYPE POLYGON > STATUS ON > TILEINDEX "tgrindex" > DATA county > CLASS > NAME "Counties" > COLOR -1 -1 -1 > OUTLINECOLOR 128 128 128 > END > > METADATA > "DESCRIPTION" "County" > "RESULT_FIELDS" "COUNTY STATE SSCCC" > END > > HEADER "html/cty_header.html" > FOOTER "html/cty_footer.html" > TEMPLATE "html/cty.html" > > TOLERANCE 3 >END > >LAYER > NAME streets > MAXSCALE 59999 > STATUS ON > TILEINDEX "tgrindex" > DATA minroads > TYPE LINE > LABELITEM "NAME" > CLASS > NAME "Streets" > SYMBOL "circle" > COLOR 0 0 0 > SIZE 4 > OVERLAYSYMBOL "circle" > OVERLAYCOLOR 255 255 255 > OVERLAYSIZE 2 > LABEL > ANGLE AUTO > TYPE TRUETYPE > ANTIALIAS TRUE > FONT arial-bold > MINFEATURESIZE 10 > MINDISTANCE 300 > POSITION UC > BUFFER 4 > SIZE 8 > COLOR 0 0 0 > OUTLINECOLOR 255 255 204 > END > END > > METADATA > "DESCRIPTION" "Surface Streets" > "RESULT_FIELDS" "TLID NAME CFCC FRADDL TOADDL FRADDR TOADDR ZIPL >ZIPR RTE_NUM" > END > > HEADER "html/roads_header.html" > FOOTER "html/roads_footer.html" > TEMPLATE "html/roads.html" > > TOLERANCE 3 >END # streets > > >-Steve > >Sathiskumar Govindasamy wrote: > >>Hi, >> >>Thanks for your reply. Yes I wanted to go to street level mapping in the >>coming days, but I wanted to start with atleast the US and state boundaries >>with Interstates on it now. I have downloaded the Tiger Line 2000 data for >>Illinois. I have installed OGR and I am able to see the information through >>ogrinfo. But, how to I write template file and .map file with layers ? I >>would greatly appreciate your help. >> >>Thanks >>Sathis >>At 11:34 PM 2/8/2002 -0500, Walt Lin wrote: >> >>>If you just want to draw the state outlines and labels, don't use >>>TIGER-- use files from nationalatlas.gov . If you need street level >>>data for the whole US, then tiger is the way to go. Nationalatlas >>>should have just one layer for states-- setup your .map file for just >>>one layer and off you go. >>> >>>On Fri, Feb 08, 2002 at 05:18:22PM -0600, Sathiskumar Govindasamy wrote: >>> >>>>Hello, >>>> >>>>I am new to Mapserver. I don't know where to start. I tried to go >>>>through tutorial I couldn't get much out of it. I wanted the mapserver >>>>to generate map of US with states marked. I was told to use Tiger Line >>>>data. I don't loaded tigerline files for Illinois and also boundary line >>>>shapefiles for all the state states. Can someone tell me how to start or >>>>point me to some site where they have explained how to use Tiger data ? >>>> >>>>Thanks >>>>Sathis >>>> >>>> >>>> From warmerdam at pobox.com Mon Feb 11 09:39:25 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 11 Feb 2002 12:39:25 -0500 Subject: [mapserver-users] Shape files and Raster data References: Message-ID: <3C6801CD.5060402@pobox.com> David McGaughey wrote: > Thank you for the fast reply! Here is my map file. You may download > my shape files and JPEGS here: > ... > > I'll try a TIFF, but may not can get to it until tonight. David, Your world files have rotational coefficients which I don't think are handled well by MapServer's built in JPEG support (or most other raster formats) support. It should be handled properly if you use the GDAL library in MapServer, though you will also have to ensure that PROJ.4 support is enabled - even if you don't use it directly. If the MapServer raster resampling logic (GDAL specific) is actually kicking in you should see a message about "msResampleGDALToMap() in effect" in your logs. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From teb at mallit.fr.umn.edu Mon Feb 11 09:43:49 2002 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 11 Feb 2002 11:43:49 -0600 (CST) Subject: [mapserver-users] Joining ShapeFiles (FWD) Message-ID: <200202111743.LAA20796@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: CoadyT at DFO-MPO.GC.CA To: mapserver-info at lists.gis.umn.edu Subject: Joining ShapeFiles Date: Mon, 11 Feb 2002 12:44:49 -0500 MIME-Version: 1.0 I am working with more than one area in my map file. I need to place all the land in one layer. I have 8 different shape files for different areas of the map. Is it possible to join them in one layer. If so can you give me some example code to combine them. I am trying to make my map open faster. Will this help or hurt? I just found out by reading off of your homepage that joins are only availabe in Queries. So is it possible to join these files using my .map file in a layer? Tony Coady Programmer Analyst Coroporate Services Information Management & Technology Services Branch St John's NF White Hills Building A1C 5X1 (709)772-6272 ------------- End Forwarded Message ------------- From woodbri at swoodbridge.com Mon Feb 11 10:10:26 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 11 Feb 2002 13:10:26 -0500 Subject: [mapserver-users] New to Mapserver References: <3C645CBE.3080407@yahoo.com> <3C645CBE.3080407@yahoo.com> <5.1.0.14.0.20020209065850.00b29610@10.10.10.9> <3C652F12.1029F4BC@swoodbridge.com> <3C67FBEC.9020104@yahoo.com> Message-ID: <3C680912.B24404E9@swoodbridge.com> Sathis, The EXTENT in the map file is wrong. The census data is in Decimal Degrees so it should look like EXTENT -180.0 -90.0 180.0 90.0 which will cover the whole globe, you can set these numbers smaller based on the real extents of you shapefile. -Steve W. Sathiskumar Govindasamy wrote: > > Steve, Thanks for your help. I have downloaded shapefiles from > http://www.census.gov/geo/www/cob/st2000.html which are state boundary > shape files. I tried to tweek the demo to work with that data. But I > don't see anything on the maparea. The shape files are like st01_d00.xxx > . There are three files per state. The following are my files. > > demo_init.html > > > Sathis, > > MapServer Demo Interface > > > > > >

MapServer Demo Interface

> >


> > Click on the initialize button to fire up the demo with 3 layers > > turned on will be accessible for browsing. The > > data are of Itasca County, MN and were derived, for the most part, > > from USGS 1:24,000 quadrangles. Some things to note are: > > > >

> > > > > > > > > > > > > > > > > > > >
> > > >
> > > >


> > > > > > ~ > > demo.html > > MapServer Demo Interface > > >

MapServer Demo Interface

>
>
> >
> > > > >
> > > > > > >
width=600 height=600 border=0>
  color="#FFFFFF">Powered by MapServer
>
> >
> Zoom In > Pan > Zoom Out >

> Zoom Size >

> >

> >
>
> > > > > > > > > > >
> >


> > > > demo.map > NAME EX2 > EXTENT 74000 4775000 798000 5500000 > SIZE 300 300 > SHAPEPATH "tigershpdata" > WEB > HEADER demo_header.html > TEMPLATE demo.html > FOOTER demo_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "set in demo_init.html" > IMAGEURL "set in demo_init.html" > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 255 255 255 > SIZE tiny > END > STYLE 1 > SIZE 80 2 > COLOR 255 255 255 > UNITS MILES > INTERVALS 1 > TRANSPARENT TRUE > STATUS TRUE > END > > # > # Start of layer definitions > # > > LAYER > NAME st01_d00 > TYPE POLYGON > STATUS DEFAULT > DATA st01_d00 > > CLASS # every other county in the state > EXPRESSION /./ > OUTLINECOLOR 128 128 128 > COLOR 49 117 185 > END > END > END > > Can some tell me what the problem may be ? > > > > > > > > > >If you expect to get more than a few token hits on your server for > >demonstration purposes, you need to seriously consider translating the > >tigerline data to shape files as you will have big performance problems > >otherwise. If you ever plan to expand your data beyond one state you > >will need to use shapefiles also. The Census offers a bunch of boundary > >shapefiles now on its website for download, I don't think they have the > >street level files. Here are two layer definitions I use in my map file > >that might help, but I use shapefiles not OGR: > > > >LAYER > > NAME county > > MAXSCALE 799999 > > TYPE POLYGON > > STATUS ON > > TILEINDEX "tgrindex" > > DATA county > > CLASS > > NAME "Counties" > > COLOR -1 -1 -1 > > OUTLINECOLOR 128 128 128 > > END > > > > METADATA > > "DESCRIPTION" "County" > > "RESULT_FIELDS" "COUNTY STATE SSCCC" > > END > > > > HEADER "html/cty_header.html" > > FOOTER "html/cty_footer.html" > > TEMPLATE "html/cty.html" > > > > TOLERANCE 3 > >END > > > >LAYER > > NAME streets > > MAXSCALE 59999 > > STATUS ON > > TILEINDEX "tgrindex" > > DATA minroads > > TYPE LINE > > LABELITEM "NAME" > > CLASS > > NAME "Streets" > > SYMBOL "circle" > > COLOR 0 0 0 > > SIZE 4 > > OVERLAYSYMBOL "circle" > > OVERLAYCOLOR 255 255 255 > > OVERLAYSIZE 2 > > LABEL > > ANGLE AUTO > > TYPE TRUETYPE > > ANTIALIAS TRUE > > FONT arial-bold > > MINFEATURESIZE 10 > > MINDISTANCE 300 > > POSITION UC > > BUFFER 4 > > SIZE 8 > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 204 > > END > > END > > > > METADATA > > "DESCRIPTION" "Surface Streets" > > "RESULT_FIELDS" "TLID NAME CFCC FRADDL TOADDL FRADDR TOADDR ZIPL > >ZIPR RTE_NUM" > > END > > > > HEADER "html/roads_header.html" > > FOOTER "html/roads_footer.html" > > TEMPLATE "html/roads.html" > > > > TOLERANCE 3 > >END # streets > > > > > >-Steve > > > >Sathiskumar Govindasamy wrote: > > > >>Hi, > >> > >>Thanks for your reply. Yes I wanted to go to street level mapping in the > >>coming days, but I wanted to start with atleast the US and state boundaries > >>with Interstates on it now. I have downloaded the Tiger Line 2000 data for > >>Illinois. I have installed OGR and I am able to see the information through > >>ogrinfo. But, how to I write template file and .map file with layers ? I > >>would greatly appreciate your help. > >> > >>Thanks > >>Sathis > >>At 11:34 PM 2/8/2002 -0500, Walt Lin wrote: > >> > >>>If you just want to draw the state outlines and labels, don't use > >>>TIGER-- use files from nationalatlas.gov . If you need street level > >>>data for the whole US, then tiger is the way to go. Nationalatlas > >>>should have just one layer for states-- setup your .map file for just > >>>one layer and off you go. > >>> > >>>On Fri, Feb 08, 2002 at 05:18:22PM -0600, Sathiskumar Govindasamy wrote: > >>> > >>>>Hello, > >>>> > >>>>I am new to Mapserver. I don't know where to start. I tried to go > >>>>through tutorial I couldn't get much out of it. I wanted the mapserver > >>>>to generate map of US with states marked. I was told to use Tiger Line > >>>>data. I don't loaded tigerline files for Illinois and also boundary line > >>>>shapefiles for all the state states. Can someone tell me how to start or > >>>>point me to some site where they have explained how to use Tiger data ? > >>>> > >>>>Thanks > >>>>Sathis > >>>> > >>>> > >>>> From lrn at zeppo.geosurv.gov.nf.ca Mon Feb 11 10:36:22 2002 From: lrn at zeppo.geosurv.gov.nf.ca (Larry Nolan) Date: Mon, 11 Feb 2002 15:06:22 -0330 Subject: [mapserver-users] moving from version 3.3 to 3.5 Message-ID: <00c501c1b32b$00f3d530$0a29070a@002412S> First, I am impressed with the WMS Client and Server capabilities, great Job. I have been attempting to move from mapserver version 3.3 to 3.5 and I am having some trouble with my map files. Some layers do not appear in v3.5 which work fine in 3.3 I have changed all the things I can find in the documentation but I must be missing something. FONTS: I have fixed Filled ==> Filled True Antialias ==> Antialias True SYMBOLS: - downloaded the 3.4 combined symbolset and removed the Shadeset/Markerset/Lineset definitions The 3.4 symbolset referenced in Mapserver FAQ at http://www2.dmsolutions.ca/mapserver/dl/symbols-for-ms34.sym caused more problems because the Filled parameter does not have the True qualifier. Fixed that. - In the symbol file the SYMBOL name need to be in quotes i.e. SYMBOL circle ==> SYMBOL 'circle' QUERIES: I moved my TEMPLATE 'URL query objects to the CLASS objects - All my queries seem to work fine. There is a new parameter in the LAYER object for gouping layers, which I had done in the past by reusing the layer name. I gave all unique names and used the GROUP parameter. This does not seem to make any difference because I have map files which use the multiple layers with the same name and map files which use unique layer names and the GROUP parameter and both work. How important is it that I follow the new GROUP parameter and use unique LAYER names? Projections: I am not setting any projection information yet so this should not affect my files. Are there other changes which I have missed? Is there a comprehensive list of the changes from version 3.3 to 3.4 to 3.5? ARCSDE Question: Does anyone have a win32 build of mapserver 3.5 for windows 2000 with: input support for shapefiles, TIFF/GeoTIFF, and JPEG and GIF output. input support for GDAL (and OGR) as well as WMS client (and server) compliance. and ARCSDE 8.1 this would be equivalent to the full meal deal. thanks Larry Nolan Project Geologist - GIS Geological Survey of Newfoundland lrn at zeppo.geosurv.gov.nf.ca 709-729-2168 -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Feb 11 10:38:16 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 11 Feb 2002 13:38:16 -0500 Subject: [mapserver-users] Joining ShapeFiles (FWD) References: <200202111743.LAA20796@mallit.fr.umn.edu> Message-ID: <3C680F98.CCBEA237@swoodbridge.com> Tony, You don't need to join them into one file, in fact is not the most efficent way to handle them. Put them all in a directory and run tile4ms utility on them to create a tileindex and then make a layer that uses the tileindex. If the shapefiles have a lot of data in them, you might also want to generate a spatial index for each shape file using the shptree utility. Hope this helps, -Steve W. teb wrote: > > ------------- Begin Forwarded Message ------------- > > From: CoadyT at DFO-MPO.GC.CA > To: mapserver-info at lists.gis.umn.edu > Subject: Joining ShapeFiles > Date: Mon, 11 Feb 2002 12:44:49 -0500 > MIME-Version: 1.0 > > I am working with more than one area in my map file. I need to place all the > land in one layer. I have 8 different shape files for different areas of the > map. Is it possible to join them in one layer. If so can you give me some > example code to combine them. I am trying to make my map open faster. Will > this help or hurt? I just found out by reading off of your homepage that > joins are only availabe in Queries. So is it possible to join these files > using my .map file in a layer? > > Tony Coady > Programmer Analyst > Coroporate Services > Information Management & Technology Services Branch > St John's NF > White Hills Building > A1C 5X1 > (709)772-6272 > > ------------- End Forwarded Message ------------- From gsathis at yahoo.com Mon Feb 11 11:11:01 2002 From: gsathis at yahoo.com (Sathiskumar Govindasamy) Date: Mon, 11 Feb 2002 13:11:01 -0600 Subject: [mapserver-users] New to Mapserver References: <3C645CBE.3080407@yahoo.com> <3C645CBE.3080407@yahoo.com> <5.1.0.14.0.20020209065850.00b29610@10.10.10.9> <3C652F12.1029F4BC@swoodbridge.com> <3C67FBEC.9020104@yahoo.com> <3C680912.B24404E9@swoodbridge.com> Message-ID: <3C681745.9030803@yahoo.com> Steve, Is there a way to look at the contents of shapefile or its realted file to know what is in it ? Sathis Stephen Woodbridge wrote: >Sathis, > >The EXTENT in the map file is wrong. The census data is in Decimal >Degrees so it should look like > >EXTENT -180.0 -90.0 180.0 90.0 > >which will cover the whole globe, you can set these numbers smaller >based on the real extents of you shapefile. > >-Steve W. > From woodbri at swoodbridge.com Mon Feb 11 11:17:45 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 11 Feb 2002 14:17:45 -0500 Subject: [mapserver-users] New to Mapserver References: <3C645CBE.3080407@yahoo.com> <3C645CBE.3080407@yahoo.com> <5.1.0.14.0.20020209065850.00b29610@10.10.10.9> <3C652F12.1029F4BC@swoodbridge.com> <3C67FBEC.9020104@yahoo.com> <3C680912.B24404E9@swoodbridge.com> <3C681745.9030803@yahoo.com> Message-ID: <3C6818D9.E1C187FB@swoodbridge.com> Yes, there are two utility programs the come with shapelib (dbfdump and shpdump) that are comand line utilities (on Windows you have to run them from a DOS window) dbfdump prints all the attributes from the .dbf file and shpdump prints the shapefile extents and then all the coordinate info for every shape in the shape file. -Steve W. Sathiskumar Govindasamy wrote: > > Steve, > > Is there a way to look at the contents of shapefile or its realted file > to know what is in it ? > > Sathis > > Stephen Woodbridge wrote: > > >Sathis, > > > >The EXTENT in the map file is wrong. The census data is in Decimal > >Degrees so it should look like > > > >EXTENT -180.0 -90.0 180.0 90.0 > > > >which will cover the whole globe, you can set these numbers smaller > >based on the real extents of you shapefile. > > > >-Steve W. > > From lrn at zeppo.geosurv.gov.nf.ca Mon Feb 11 11:53:33 2002 From: lrn at zeppo.geosurv.gov.nf.ca (Larry Nolan) Date: Mon, 11 Feb 2002 16:23:33 -0330 Subject: [mapserver-users] OGC web map service setup Message-ID: <015b01c1b335$c9955450$0a29070a@002412S> I am attempting to setup a OGC WMS server and when I test it with mapserver using http://gis.geosurv.gov.nf.ca/cgi-bin/mapservwms.exe?map=d:/data/wms/nfldgeol.map It works fine but when I try it using the CudeWerx server I get the layer information, the details about the layer and the available projection and image type but I do not get the map displayed. If anyone has experience with this type of problem I can send you my map file. The getcapabilities function appears to be correct. Thanks Larry Nolan Project Geologist - GIS Geological Survey of Newfoundland lrn at zeppo.geosurv.gov.nf.ca 709-729-2168 -------------- next part -------------- An HTML attachment was scrubbed... URL: From klehr1 at tampabay.rr.com Mon Feb 11 11:51:53 2002 From: klehr1 at tampabay.rr.com (klehr1 at tampabay.rr.com) Date: Mon, 11 Feb 2002 14:51:53 -0500 Subject: [mapserver-users] Shape file conversion question Message-ID: <018001c1b335$8e328a40$0300a8c0@p200> GIS 101 Question: I have a street layer shape file in decimal degrees and would like to overlay that on the parcel shapefile which is in feet. Parcel Layer: [steve at Miracle mapserv]$ ./showextent.pl /usr/maps/jbs.shp 2102351.89913092 394981.042580036 2250421.58049244 608454.114243081 2094948.41506284 384307.388996884 2257825.06456052 619127.767826233 Street Layer [steve at Miracle mapserv]$ ./showextent.pl /usr/maps/str12065.shp -84.076234 30.118074 -83.604398 30.671142 -84.0998258 30.0904206 -83.5808062 30.6987954 Question: What are options in making these two files work together in the same view? (i.e. convert the shape file, or add a world file, projection file?) If you could elaborate a little on the solutions that would be great (i.e. conversion suggestion, or world file conversion example). Thank you very much. Steve Lehr -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Feb 11 12:41:08 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 11 Feb 2002 15:41:08 -0500 Subject: [mapserver-users] Shape file conversion question References: <018001c1b335$8e328a40$0300a8c0@p200> Message-ID: <3C682C64.FB48C99E@swoodbridge.com> Steve, MapServer can already handle this situation without the need to convert your files if you have PROJ4 built into your mapserver which would be a good thing. In the mapfile there is a PROJECTION ... END section that can be added before the LAYER definition in which case it is interperted as the output project to use when you display your map. This is NOT the section you need for your problem. When you define a LAYER if you include a PROJECTION ... END section which defines the current projection of the data defined in the data files for this specific layer. So you would have to know (in any case) what the projection parameters are for the data in your shape file, then define layers like: LAYER NAME streets ... PROJECTION "proj=latlong" # you might optionally need to define the ellps and other params "ellps=grs80" END ... END LAYER NAME parcel ... PROJECTION "proj=utm" ... END ... END I hope this helps, -Steve W. > klehr1 at tampabay.rr.com wrote: > > GIS 101 Question: > > I have a street layer shape file in decimal degrees and would like to > overlay that on the parcel shapefile which is in feet. > > Parcel Layer: > [steve at Miracle mapserv]$ ./showextent.pl /usr/maps/jbs.shp > 2102351.89913092 394981.042580036 2250421.58049244 608454.114243081 > 2094948.41506284 384307.388996884 2257825.06456052 > 619127.767826233 > > Street Layer > [steve at Miracle mapserv]$ ./showextent.pl /usr/maps/str12065.shp > -84.076234 30.118074 -83.604398 30.671142 > -84.0998258 30.0904206 -83.5808062 30.6987954 > > Question: > > What are options in making these two files work together in the same > view? (i.e. convert the shape file, or add a world file, projection > file?) > > If you could elaborate a little on the solutions that would be great > (i.e. conversion suggestion, or world file conversion example). > > Thank you very much. > Steve Lehr > > From mca198 at ecs.soton.ac.uk Mon Feb 11 12:53:10 2002 From: mca198 at ecs.soton.ac.uk (Mark Cave-Ayland) Date: Mon, 11 Feb 2002 20:53:10 +0000 (GMT) Subject: [mapserver-users] Slow response time + Apache/IIS - newbie! In-Reply-To: <20020209051850.A22609@landsat.cprsig.cl> Message-ID: Hi there, Two questions which I feel are of a particularly newbie nature:- Firstly, I've been evaluating Mapserver 3.5 for a short time now, having managed to successfully install the itasca demo using Apache + the Win32 binaries available from the Mapserver homepage. Since then I've managed to compile my own Mapserver 3.5 under Cygwin, but the problem is that the response is really slow. When I exchange the Win32 precompiled binary with my Cygwin version, Mapserver takes about 15 secs to send back a new page! After clicking on the itasca map, the process seems to halt without sending back any headers or generating any PNG files in the temp directory for about 15s. Then suddenly it springs into life and returns the completed image. I have a feeling that I've done something wrong during the compilation stage but I don't know what - does anyone have any ideas??? Secondly, the precompiled Win32 binaries work under IIS whereas my Cygwin version only works under Apache. Does that mean to get Mapserver to work under IIS I need to recompile with MS VC++ instead? Cheers, Mark. From jimburnett at ntelos.net Mon Feb 11 13:42:57 2002 From: jimburnett at ntelos.net (Jim Burnett) Date: Mon, 11 Feb 2002 16:42:57 -0500 Subject: [mapserver-users] Site Message-ID: <010601c1b345$120976d0$6401a8c0@jburnett> I thought I would share my latest. Works best in IE 5.5 and up. ( for now ) http://gis.mcnairengineering.com/rock_demo/ -jim- -------------- next part -------------- An HTML attachment was scrubbed... URL: From TMitchell at lignum.com Mon Feb 11 14:40:10 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Mon, 11 Feb 2002 14:40:10 -0800 Subject: [mapserver-users] Shape file conversion question Message-ID: Is there an easy-to-understand list of the options for proj4? I couldn't seem to find anything that was really helpful. And what about th EPSG codes? Anyone have any good pointers. Tyler Stephen Woodbridge To: klehr1 at tampabay.rr.com Sent by: cc: Users owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: Re: [mapserver-users] Shape file conversion question 02/11/2002 12:41 PM Steve, MapServer can already handle this situation without the need to convert your files if you have PROJ4 built into your mapserver which would be a good thing. In the mapfile there is a PROJECTION ... END section that can be added before the LAYER definition in which case it is interperted as the output project to use when you display your map. This is NOT the section you need for your problem. When you define a LAYER if you include a PROJECTION ... END section which defines the current projection of the data defined in the data files for this specific layer. So you would have to know (in any case) what the projection parameters are for the data in your shape file, then define layers like: LAYER NAME streets ... PROJECTION "proj=latlong" # you might optionally need to define the ellps and other params "ellps=grs80" END ... END LAYER NAME parcel ... PROJECTION "proj=utm" ... END ... END I hope this helps, -Steve W. > klehr1 at tampabay.rr.com wrote: > > GIS 101 Question: > > I have a street layer shape file in decimal degrees and would like to > overlay that on the parcel shapefile which is in feet. > > Parcel Layer: > [steve at Miracle mapserv]$ ./showextent.pl /usr/maps/jbs.shp > 2102351.89913092 394981.042580036 2250421.58049244 608454.114243081 > 2094948.41506284 384307.388996884 2257825.06456052 > 619127.767826233 > > Street Layer > [steve at Miracle mapserv]$ ./showextent.pl /usr/maps/str12065.shp > -84.076234 30.118074 -83.604398 30.671142 > -84.0998258 30.0904206 -83.5808062 30.6987954 > > Question: > > What are options in making these two files work together in the same > view? (i.e. convert the shape file, or add a world file, projection > file?) > > If you could elaborate a little on the solutions that would be great > (i.e. conversion suggestion, or world file conversion example). > > Thank you very much. > Steve Lehr > > From TMitchell at lignum.com Mon Feb 11 14:42:22 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Mon, 11 Feb 2002 14:42:22 -0800 Subject: [mapserver-users] WMS Test Server Message-ID: Does anyone other than Cubewerx have a publically accessible server that could be used to test new WMS servers? I'm thinking of this because so many of us WMS newbies would like to try out our server but have had problems with cubewerx, it seems. Tyler From nhv at cape.com Mon Feb 11 15:05:49 2002 From: nhv at cape.com (Norman Vine) Date: Mon, 11 Feb 2002 18:05:49 -0500 Subject: [mapserver-users] Shape file conversion question In-Reply-To: Message-ID: <003c01c1b350$a63c2680$a300a8c0@nhv> Tyler Mitchell writes: > >Is there an easy-to-understand list of the options for proj4? >I couldn't >seem to find anything that was really helpful. And what about th EPSG >codes? > >Anyone have any good pointers. the manuals http://www.remotesensing.org/proj/ From gsathis at yahoo.com Mon Feb 11 15:27:42 2002 From: gsathis at yahoo.com (Sathiskumar Govindasamy) Date: Mon, 11 Feb 2002 17:27:42 -0600 Subject: [mapserver-users] New to Mapserver References: <3C645CBE.3080407@yahoo.com> <3C645CBE.3080407@yahoo.com> <5.1.0.14.0.20020209065850.00b29610@10.10.10.9> <3C652F12.1029F4BC@swoodbridge.com> <3C67FBEC.9020104@yahoo.com> <3C680912.B24404E9@swoodbridge.com> <3C681745.9030803@yahoo.com> <3C6818D9.E1C187FB@swoodbridge.com> Message-ID: <3C68536E.1060905@yahoo.com> Thanks guys it works great. Thanks for your help. Yet another question. I downloaded shapefiles from nationalatlas.gov. In the state boundaries map, it has all the states in one shapefile. Is there a way to ignore Alaska, U.S. Virgin Islands, Puerto Rico, etc keeping just the mainland US ? -Sathis Stephen Woodbridge wrote: >Yes, there are two utility programs the come with shapelib (dbfdump and >shpdump) that are comand line utilities (on Windows you have to run them >from a DOS window) dbfdump prints all the attributes from the .dbf file >and shpdump prints the shapefile extents and then all the coordinate >info for every shape in the shape file. > >-Steve W. > >Sathiskumar Govindasamy wrote: > >>Steve, >> >>Is there a way to look at the contents of shapefile or its realted file >>to know what is in it ? >> >>Sathis >> >>Stephen Woodbridge wrote: >> >>>Sathis, >>> >>>The EXTENT in the map file is wrong. The census data is in Decimal >>>Degrees so it should look like >>> >>>EXTENT -180.0 -90.0 180.0 90.0 >>> >>>which will cover the whole globe, you can set these numbers smaller >>>based on the real extents of you shapefile. >>> >>>-Steve W. >>> From pramsey at refractions.net Mon Feb 11 15:26:31 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 11 Feb 2002 15:26:31 -0800 Subject: [mapserver-users] Shape file conversion question References: Message-ID: <3C685327.9D5D74FF@refractions.net> No, sadly there is not a nice easy-to-read list of options. They seem to be sprinkled throughout the manual. EPSG codes are the easiest: if your projection is in the epsg list (12345, say), handing proj4 an "init=12345" will give you that EPSG projection. Tyler Mitchell wrote: > > Is there an easy-to-understand list of the options for proj4? I couldn't > seem to find anything that was really helpful. And what about th EPSG > codes? > > Anyone have any good pointers. > > Steve, > > MapServer can already handle this situation without the need to convert > your files if you have PROJ4 built into your mapserver which would be a > good thing. In the mapfile there is a PROJECTION ... END section that > can be added before the LAYER definition in which case it is interperted > as the output project to use when you display your map. This is NOT the > section you need for your problem. > > When you define a LAYER if you include a PROJECTION ... END section > which defines the current projection of the data defined in the data > files for this specific layer. So you would have to know (in any case) > what the projection parameters are for the data in your shape file, then > define layers like: > > LAYER > NAME streets > ... > PROJECTION > "proj=latlong" > # you might optionally need to define the ellps and other params > "ellps=grs80" > END > ... > END > > LAYER > NAME parcel > ... > PROJECTION > "proj=utm" > ... > END > ... > END > > I hope this helps, > -Steve W. > > > klehr1 at tampabay.rr.com wrote: > > > > GIS 101 Question: > > > > I have a street layer shape file in decimal degrees and would like to > > overlay that on the parcel shapefile which is in feet. > > > > Parcel Layer: > > [steve at Miracle mapserv]$ ./showextent.pl /usr/maps/jbs.shp > > 2102351.89913092 394981.042580036 2250421.58049244 608454.114243081 > > 2094948.41506284 384307.388996884 2257825.06456052 > > 619127.767826233 > > > > Street Layer > > [steve at Miracle mapserv]$ ./showextent.pl /usr/maps/str12065.shp > > -84.076234 30.118074 -83.604398 30.671142 > > -84.0998258 30.0904206 -83.5808062 30.6987954 > > > > Question: > > > > What are options in making these two files work together in the same > > view? (i.e. convert the shape file, or add a world file, projection > > file?) > > > > If you could elaborate a little on the solutions that would be great > > (i.e. conversion suggestion, or world file conversion example). > > > > Thank you very much. > > Steve Lehr > > > > From nhv at cape.com Mon Feb 11 15:53:55 2002 From: nhv at cape.com (Norman Vine) Date: Mon, 11 Feb 2002 18:53:55 -0500 Subject: [mapserver-users] Shape file conversion question In-Reply-To: <3C685327.9D5D74FF@refractions.net> Message-ID: <003f01c1b357$5e7d9660$a300a8c0@nhv> Paul Ramsey writes: > > >No, sadly there is not a nice easy-to-read list of options. >They seem to >be sprinkled throughout the manual. % man proj or % info proj but I still reccomend the manuals also don't forget % proj -l[p|P|=|e|u|d} id ie projections < short > -lp < long > -lP units -lu ellipse -le datum -ld Cheers Norman From woodbri at swoodbridge.com Mon Feb 11 15:47:48 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 11 Feb 2002 18:47:48 -0500 Subject: [mapserver-users] New to Mapserver References: <3C645CBE.3080407@yahoo.com> <3C645CBE.3080407@yahoo.com> <5.1.0.14.0.20020209065850.00b29610@10.10.10.9> <3C652F12.1029F4BC@swoodbridge.com> <3C67FBEC.9020104@yahoo.com> <3C680912.B24404E9@swoodbridge.com> <3C681745.9030803@yahoo.com> <3C6818D9.E1C187FB@swoodbridge.com> <3C68536E.1060905@yahoo.com> Message-ID: <3C685824.88474D56@swoodbridge.com> Yes, you can set you EXTENTS in the mapfile to just cover the mainland. -Steve Sathiskumar Govindasamy wrote: > > Thanks guys it works great. Thanks for your help. Yet another question. > I downloaded shapefiles from nationalatlas.gov. In the state boundaries > map, it has all the states in one shapefile. Is there a way to ignore > Alaska, U.S. Virgin Islands, Puerto Rico, etc keeping just the mainland > US ? > > -Sathis > > Stephen Woodbridge wrote: > > >Yes, there are two utility programs the come with shapelib (dbfdump and > >shpdump) that are comand line utilities (on Windows you have to run them > >from a DOS window) dbfdump prints all the attributes from the .dbf file > >and shpdump prints the shapefile extents and then all the coordinate > >info for every shape in the shape file. > > > >-Steve W. > > > >Sathiskumar Govindasamy wrote: > > > >>Steve, > >> > >>Is there a way to look at the contents of shapefile or its realted file > >>to know what is in it ? > >> > >>Sathis > >> > >>Stephen Woodbridge wrote: > >> > >>>Sathis, > >>> > >>>The EXTENT in the map file is wrong. The census data is in Decimal > >>>Degrees so it should look like > >>> > >>>EXTENT -180.0 -90.0 180.0 90.0 > >>> > >>>which will cover the whole globe, you can set these numbers smaller > >>>based on the real extents of you shapefile. > >>> > >>>-Steve W. > >>> From TMitchell at lignum.com Mon Feb 11 16:21:16 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Mon, 11 Feb 2002 16:21:16 -0800 Subject: [mapserver-users] Shape file conversion question Message-ID: There's a few options - thanks guys. I had problems loading the pdfs from the web page, but the unix >man proj -l options work great.. Just what I was looking for. Thank you. "Norman Vine" To: "'Paul Ramsey'" , "'Tyler Mitchell'" 02/11/2002 cc: 03:53 PM Fax to: Please respond Subject: RE: [mapserver-users] Shape file to nhv conversion question Paul Ramsey writes: > > >No, sadly there is not a nice easy-to-read list of options. >They seem to >be sprinkled throughout the manual. % man proj or % info proj but I still reccomend the manuals also don't forget % proj -l[p|P|=|e|u|d} id ie projections < short > -lp < long > -lP units -lu ellipse -le datum -ld Cheers Norman From fgclaram at alu-ab.uclm.es Tue Feb 12 01:02:37 2002 From: fgclaram at alu-ab.uclm.es (Francisco) Date: Tue, 12 Feb 2002 10:02:37 +0100 Subject: [mapserver-users] Queries to DBF from html Message-ID: <5.1.0.14.0.20020212094032.00b7de60@correo.alu-ab.uclm.es> Hello all. Thanks for your help. I would like to make queries to a DBF file from an input textbox in a html page. (). I have a points SHP file (with dbf). I want to put a name into the textbox, mapserv finds the point (in DBF file) and show it in a map. Is it possible with mapserver? I don't know. Someone has had the same problem?. Could you help me?. Thank you. Regards. Fran. From pcarrasco at iver.es Tue Feb 12 02:25:28 2002 From: pcarrasco at iver.es (Pedro A. Carrasco) Date: Tue, 12 Feb 2002 11:25:28 +0100 Subject: [mapserver-users] Image Size Message-ID: <011e01c1b3af$979c5be0$0f00a8c0@iver.es> Hi all, can someone tell me what's the max image size can I generate in mapserver (PNG)?. Is there any method to chage this? Thanks in advance. Regards. -- Pedro From malone at creedence.org Fri Feb 8 05:35:01 2002 From: malone at creedence.org (malone at creedence.org) Date: Fri, 08 Feb 2002 11:35:01 -0200 (BRST) Subject: [mapserver-users] Mapscript/PHP Message-ID: <1013175301.3c63d4051e4bb@creedence.org> Hello all, I implemented the example of mapscript/PHP in http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html and I saw how to do zoom in, zoom out, pan. Now , I don't know how to do queries in mapscript/PHP. I try de function queryByPoint but nothing happen. Somebody can help me ? []'s Michel M. dos Santos From blackmail at snafu.de Tue Feb 12 02:59:49 2002 From: blackmail at snafu.de (Peter) Date: Tue, 12 Feb 2002 11:59:49 +0100 Subject: [mapserver-users] Mapserver and .dxf files Message-ID: <3C68F5A5.2080100@snafu.de> Hi Listers, as I understand there's no way to display .dxf files in mapserver. So I have to transform them to shapfiles. As I have a lot of .dxf files, is there a way to make a tile database for shapefiles? Thanks Peter -------------------------- Original question: Hi Listers, I'm having hundred .dxf files which I need to diplay within a mapserver application. Is there a possibility? One more problem: The .dxf files need to be updated sometimes... Any help appreciated! Thanks a lot Peter From stepan.kafka at centrum.cz Tue Feb 12 05:39:08 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Tue, 12 Feb 2002 14:39:08 +0100 Subject: [mapserver-users] Image Size In-Reply-To: <011e01c1b3af$979c5be0$0f00a8c0@iver.es> Message-ID: <000b01c1b3ca$a5886670$7e3c2fc3@HSGIS> HI Pedro, max image size is 1024x1024 pixels. You may change this value (MS_MAXIMGSIZE) in map.h file and recompile the mapserver. Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Pedro A. > Carrasco > Odesl?no: 12. ?nora 2002 11:25 > Komu: Lista MapServer > P?edm?t: [mapserver-users] Image Size > > > Hi all, > can someone tell me what's the max image size can I generate in > mapserver (PNG)?. Is there any method to chage this? > Thanks in advance. > Regards. > > -- > Pedro > > > From Rich at GreenwoodMap.com Tue Feb 12 06:01:34 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Tue, 12 Feb 2002 07:01:34 -0700 Subject: [mapserver-users] ecw support Message-ID: <5.1.0.14.0.20020212065651.020c7a40@mail.GreenwoodMap.com> A couple people have asked for a compiled mapserver with ecw support. I've put one at: http://www.greenwoodmap.com/mapserver/ It contains the mapserver.exe and also the ecw dll's which should be copied to your \winnt\system32 directory. Ecw only works on windows. My experience is that it works great with grayscale imagery, but I found the colors in color imagery to be a little funky. Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From GrantM at ATSER.com Tue Feb 12 07:29:02 2002 From: GrantM at ATSER.com (Grant Marblestone) Date: Tue, 12 Feb 2002 09:29:02 -0600 Subject: [mapserver-users] Something crazy is going on please advise...... Message-ID: <002401c1b3da$0b14f5d0$7201010a@localhost.atser> Ok so hopefully the subject has MADE you want to know what is going on. READ ON>>>> Background information: I am creating a simple mapserver project with query and projection. My shp files are mostly nad27 and then i have a couple layers of wgs84. And the projection works fine. The main projection is nad27 and then on the layers that are wgs84 we project. Problem: I am trying to get my query to output information. Therefore i added the appropriate class and metadata to my layer. It was a wgs84 layer. I finish and then refresh the page and the query information shows up on bottom from the refresh of past click, HOWEVER all teh sudded all the points on the layer dissapear. I comment out the query class and then refresh the page with the same information and then the points are back, HOWEVER the query information is gone! Therfore i think it must be my map file and the query class. SO i mess with it for hours with no luck. THEN i think maybe i should try it on a nad27 layer as that is the "non projected" layer. I do this and it works fine!!!!!!!!!!! Proving that the map file is correct and perhaps something is wrong with mapserver??? Any clues on how i can get the wgs84 layer to display information and show up at the same time? Below is my non-functioning layer..... Thanks so much, Grant Marblestone ATSER systems ######################################################################## ##### # permits (WGS84) ######################################################################## ##### LAYER DATA permits NAME Permit STATUS ON TYPE POINT METADATA "DESCRIPTION" "Permits" "RESULT_FIELDS" "PermitID lat long" END PROJECTION proj=latlong datum=NAD83 ellips=WGS84 END #NEEDED FOR QUERY ! ! ! CLASS NAME "PermitClass" COLOR 200 255 0 OUTLINECOLOR 120 120 120 TEMPLATE "ttt_query.html" END CLASS BACKGROUNDCOLOR 128 128 128 NAME "permits" OUTLINECOLOR 0 255 0 SYMBOL "circle" COLOR 0 0 255 SIZE 10 END TOLERANCE 5 END# permits -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank.koormann at intevation.de Tue Feb 12 07:33:42 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 12 Feb 2002 16:33:42 +0100 Subject: [mapserver-users] MapServer Release Schedule Message-ID: <20020212153342.GA1613@intevation.de> Dear all, aside all the discussions about new forums I want to raise another point: MapServer release schedule and code stabilisation. With the release of version 3.5 a monthly schedule was announced to provide packages with ongoing bugfixes. As of today the 3.5 tarball is still from 18th December 2001. The nighly builds and the CVS content differ significantly from this version. Many files have been undergone substantial changes and seem to implement new features. So they again provide a development branch. I know that coding new features is always more fun than merging bug fixes into stable releases. Therefore I am asking for a commit list for the CVS: Distributing "commit messages" from the CVS system would give interested users the ability to follow the ongoing development of mapserver and the chance to track bugfixes to insert them into running systems. I would be glad to read others opinions. Kind regards, Frank Koormann -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 248 bytes Desc: not available URL: From nachobenito75 at hotmail.com Tue Feb 12 07:58:37 2002 From: nachobenito75 at hotmail.com (Nacho Benito) Date: Tue, 12 Feb 2002 16:58:37 +0100 Subject: [mapserver-users] mapserver object Message-ID: Hello I'm trying to call mapserver as an object in javascript but it doesn't work. I don 't know why Can anybody help me) The code I'm using is: function move (fx,fy){ s=document.mapserv.imgext.value; } and I call it: javascript: move(1,1) Is there anything I have to add to use mapserver as an object) thank's Nacho _________________________________________________________________ MSN Photos es la manera m?s sencilla de compartir, editar e imprimir sus fotos favoritas. http://photos.latam.msn.com/Support/WorldWide.aspx From frank.koormann at intevation.de Tue Feb 12 08:15:35 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 12 Feb 2002 17:15:35 +0100 Subject: [mapserver-users] Mapserver and .dxf files In-Reply-To: <3C68F5A5.2080100@snafu.de> References: <3C68F5A5.2080100@snafu.de> Message-ID: <20020212161535.GA1877@intevation.de> Peter, * Peter (blackmail at snafu.de) [020212 13:26]: > > Hi Listers, > > as I understand there's no way to display .dxf files in mapserver. So I > have to transform them to shapfiles. As I have a lot of .dxf files, is > there a way to make a tile database for shapefiles? > The tile4ms which comes with the mapserver was implemented for this task. See http://mapserver.gis.umn.edu/utils.html for more. You should also consider to build a shptree over both, tileindex and seperate shapefiles. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From gsathis at yahoo.com Tue Feb 12 08:35:57 2002 From: gsathis at yahoo.com (Sathiskumar Govindasamy) Date: Tue, 12 Feb 2002 10:35:57 -0600 Subject: [mapserver-users] Polygon and Line Size References: <3C645CBE.3080407@yahoo.com> <3C645CBE.3080407@yahoo.com> <5.1.0.14.0.20020209065850.00b29610@10.10.10.9> <3C652F12.1029F4BC@swoodbridge.com> <3C67FBEC.9020104@yahoo.com> <3C680912.B24404E9@swoodbridge.com> <3C681745.9030803@yahoo.com> <3C6818D9.E1C187FB@swoodbridge.com> <3C68536E.1060905@yahoo.com> <3C685824.88474D56@swoodbridge.com> Message-ID: <3C69446D.1000600@yahoo.com> Is there a way to control the size of the outerline of the polygon ? Default seems to be too thin !! Also, I have a bunch of Latitude and Longitude. Do I always need to have shapefiles to create a layer ? or is there a way to put symbols on that lat/long point ? Sathis Stephen Woodbridge wrote: >Yes, you can set you EXTENTS in the mapfile to just cover the mainland. > >-Steve > >Sathiskumar Govindasamy wrote: > >>Thanks guys it works great. Thanks for your help. Yet another question. >>I downloaded shapefiles from nationalatlas.gov. In the state boundaries >>map, it has all the states in one shapefile. Is there a way to ignore >>Alaska, U.S. Virgin Islands, Puerto Rico, etc keeping just the mainland >>US ? >> >>-Sathis >> >>Stephen Woodbridge wrote: >> >>>Yes, there are two utility programs the come with shapelib (dbfdump and >>>shpdump) that are comand line utilities (on Windows you have to run them >>> >>>from a DOS window) dbfdump prints all the attributes from the .dbf file >> >>>and shpdump prints the shapefile extents and then all the coordinate >>>info for every shape in the shape file. >>> >>>-Steve W. >>> >>>Sathiskumar Govindasamy wrote: >>> >>>>Steve, >>>> >>>>Is there a way to look at the contents of shapefile or its realted file >>>>to know what is in it ? >>>> >>>>Sathis >>>> >>>>Stephen Woodbridge wrote: >>>> >>>>>Sathis, >>>>> >>>>>The EXTENT in the map file is wrong. The census data is in Decimal >>>>>Degrees so it should look like >>>>> >>>>>EXTENT -180.0 -90.0 180.0 90.0 >>>>> >>>>>which will cover the whole globe, you can set these numbers smaller >>>>>based on the real extents of you shapefile. >>>>> >>>>>-Steve W. >>>>> From woodbri at swoodbridge.com Tue Feb 12 09:39:26 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 12 Feb 2002 12:39:26 -0500 Subject: [mapserver-users] Re: Polygon and Line Size References: <3C645CBE.3080407@yahoo.com> <3C645CBE.3080407@yahoo.com> <5.1.0.14.0.20020209065850.00b29610@10.10.10.9> <3C652F12.1029F4BC@swoodbridge.com> <3C67FBEC.9020104@yahoo.com> <3C680912.B24404E9@swoodbridge.com> <3C681745.9030803@yahoo.com> <3C6818D9.E1C187FB@swoodbridge.com> <3C68536E.1060905@yahoo.com> <3C685824.88474D56@swoodbridge.com> <3C69446D.1000600@yahoo.com> Message-ID: <3C69534E.DF1203AA@swoodbridge.com> See http://mapserver.gis.umn.edu/wilma/mapserver-users/0201/msg00422.html Sathiskumar Govindasamy wrote: > > Is there a way to control the size of the outerline of the polygon ? > Default seems to be too thin !! > > Also, I have a bunch of Latitude and Longitude. Do I always need to have > shapefiles to create a layer ? or is there a way to put symbols on that > lat/long point ? > > Sathis > > Stephen Woodbridge wrote: > > >Yes, you can set you EXTENTS in the mapfile to just cover the mainland. > > > >-Steve > > > >Sathiskumar Govindasamy wrote: > > > >>Thanks guys it works great. Thanks for your help. Yet another question. > >>I downloaded shapefiles from nationalatlas.gov. In the state boundaries > >>map, it has all the states in one shapefile. Is there a way to ignore > >>Alaska, U.S. Virgin Islands, Puerto Rico, etc keeping just the mainland > >>US ? > >> > >>-Sathis > >> > >>Stephen Woodbridge wrote: > >> > >>>Yes, there are two utility programs the come with shapelib (dbfdump and > >>>shpdump) that are comand line utilities (on Windows you have to run them > >>> > >>>from a DOS window) dbfdump prints all the attributes from the .dbf file > >> > >>>and shpdump prints the shapefile extents and then all the coordinate > >>>info for every shape in the shape file. > >>> > >>>-Steve W. > >>> > >>>Sathiskumar Govindasamy wrote: > >>> > >>>>Steve, > >>>> > >>>>Is there a way to look at the contents of shapefile or its realted file > >>>>to know what is in it ? > >>>> > >>>>Sathis > >>>> > >>>>Stephen Woodbridge wrote: > >>>> > >>>>>Sathis, > >>>>> > >>>>>The EXTENT in the map file is wrong. The census data is in Decimal > >>>>>Degrees so it should look like > >>>>> > >>>>>EXTENT -180.0 -90.0 180.0 90.0 > >>>>> > >>>>>which will cover the whole globe, you can set these numbers smaller > >>>>>based on the real extents of you shapefile. > >>>>> > >>>>>-Steve W. > >>>>> From bart at geodan.nl Tue Feb 12 09:50:08 2002 From: bart at geodan.nl (Bart van den Eijnden) Date: Tue, 12 Feb 2002 18:50:08 +0100 Subject: [mapserver-users] problem with oracle spatial layer not showing up Message-ID: <21PMRNB7CA31USDA3GB64LJ05B674GF.3c6955d0@bartsdt> Hi, I have a problem with an Oracle Spatial layer not showing up. Can anybody please help? Thanks in advance! EPSG:29112 is the Dutch system (Rijksdriehoek a.k.a RD) In the logfile I get this: Tue Feb 12 18:22:12 2002,2200,192.168.3.141,DEMO,0,18458.421916 323458.421916 346541.578084 651541.578084,182500.000000 487500.000000,oracle_test ,normal execution The mapfile looks like this # # Start of map file # NAME BART STATUS ON SIZE 600 600 EXTENT 0 275000 365000 700000 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "set in demo_init.html" IMAGEURL "set in demo_init.html" LOG "demo.log" METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://bartsdt/mapserver_demos/itasca/demo_init.html" WMS_SRS "EPSG:29112" END END # # Start of layer definitions # LAYER NAME oracle_test TYPE POINT CONNECTIONTYPE oraclespatial CONNECTION "robert/robert at des" DATA "POLYGOON FROM (SELECT POLYGOON FROM GGA_GEMEENTE_EFEMERIDEN)" STATUS ON #LABELITEM "PVE_CODE" #CLASSITEM "PVE_CODE" #LABELMAXSCALE 500000 #CLASS # EXPRESSION /./ # COLOR -1 -1 -1 # LABEL # COLOR 0 0 0 # SHADOWCOLOR 218 218 218 # SHADOWSIZE 2 2 # TYPE BITMAP # SIZE MEDIUM # POSITION CC # PARTIALS FALSE # BUFFER 2 END END METADATA WMS_TITLE "Minor Civil Divisions" WMS_ABSTRACT "Minor civil divisions for Itasca County. (annotation only)" WMS_SRS "EPSG:29112" END END -- Bart van den Eijnden Geodan IT BV Email: bart at geodan.nl Buitenhaven 27-A Telefoon: 073-6925151 5211 TP 's-Hertogenbosch From TMitchell at lignum.com Tue Feb 12 11:53:11 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 12 Feb 2002 11:53:11 -0800 Subject: [mapserver-users] Displaying data in kilometer units Message-ID: I have a layer that is stored in kilometer units and I want to display it on top of my other normal, UTM data. It is in the "projection" but essentially all the data comes out as being divided by 1000. Can I simply define the PROJECTION "units" to "km"? I'm trying but am not getting too far with proj/epsg settings as the moment. I'm accessing the data via OGR, perhaps there is an option I could use in my CONNECTION string? Tyler From shussain at atsincorp.com Tue Feb 12 12:30:16 2002 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Tue, 12 Feb 2002 15:30:16 -0500 Subject: [mapserver-users] query error Message-ID: <4D25CDA67110D3119FFB0008C707D7A7051F10@deathstar> Hi Friends, I am trying to display the map by query selection. I am gettting the following error. Does any one know how to fix this error. msQueryByAttributes(): General error message. No query layer defined. I am using mapserver 3.5, windows 2000, apache. Thanks, Anwar www.atsincorp.com here is my map file. # # Start of map file - created Thu Jan 24 11:36:43 2002 # NAME PAMS SIZE 585 295 EXTENT -252600 -148033.591 274400 165545.107 UNITS meters SHAPEPATH 'e:\pams\pamsdata/' SYMBOLSET "C:\Program Files\Apache Group\Apache\htdocs\Symbols\symbols.sym" # # Start of web interface definition # WEB TEMPLATE 'mapdisplay.html' IMAGEPATH 'C:\Program Files\Apache Group\Apache\htdocs\mapimages\' IMAGEURL '/mapimages/' LOG 'accessLog.txt' END #WEB # # Start of reference map # #QUERYMAP # STATUS ON # STYLE SELECTED #END # QUERYMAP REFERENCE SIZE 136 110 #IMAGE 'C:\Program Files\Apache Group\Apache\htdocs\pams1\ref_map.jpg' IMAGE 'C:\Program Files\Apache Group\Apache\htdocs\pams1\refmap1.jpg' EXTENT -255899 -190124 279677 210767 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END #REFERENCE # # Start of legend # LEGEND IMAGECOLOR 205 205 205 KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 POSITION UR END STATUS ON END #LEGEND # # Start of scalebar # SCALEBAR STATUS EMBED STYLE 0 IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END #LABEL SIZE 150 4 COLOR 245 245 245 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES POSITION LR INTERVALS 5 END #SCALEBAR # # Start of layer definitions # LAYER NAME "municipalities" TYPE Polygon STATUS default DATA 'mcd' HEADER 'municipalities_header.html' TEMPLATE "municipalities_query.html" CLASS Name 'Municipalities' COLOR -1 -1 -1 OUTLINECOLOR 206 213 224 END # CLASS END # LAYER LAYER NAME "district" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS default DATA 'district' HEADER 'district_header.html' TEMPLATE "district_query.html" CLASS Name 'District' COLOR -1 -1 -1 SYMBOL 'circle' SIZE 3 OUTLINECOLOR 0 0 255 END # CLASS END # LAYER LAYER NAME "county" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS default DATA 'county' LABELMINSCALE 70000 LABELITEM 'County__' HEADER 'county_header.html' TEMPLATE "county_query.html" CLASS LABEL COLOR 0 0 0 ANTIALIAS True END # LABEL Name 'County' COLOR -1 -1 -1 OUTLINECOLOR 0 0 255 END # CLASS END # LAYER LAYER NAME "stateroutes" STATUS default PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE line MAXSCALE 850000 #MINSCALE 1000 DATA 'stateroutes' HEADER 'stateroutes_header.html' TEMPLATE "stateroutes_query.html" CLASS Name 'Stateroutes' COLOR 232 155 143 OUTLINECOLOR 0 0 0 #SYMBOL 'circle' #SIZE 3 END # CLASS END # LAYER LAYER NAME "drgs" TYPE raster TILEINDEX "drgtile" TILEITEM "location" STATUS on MAXSCALE 150000 END # LAYER LAYER NAME "quads" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS on MINSCALE 150000 DATA 'quadsheets' HEADER 'quads_header.html' TEMPLATE "quads_query.html" CLASS Name 'Quads' COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER LAYER NAME "flightline" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE polygon STATUS off DATA 'ascot_lin' HEADER 'ascot_lin_header.html' TEMPLATE "ascot_lin_query.html" CLASS Name 'Flight Lines' #COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 2 END # CLASS END # LAYER LAYER NAME "block" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS off DATA 'ascot_prj' HEADER 'ascot_prj_header.html' TEMPLATE "ascot_prj_query.html" CLASS Name 'Blocks' #COLOR 152 50 32 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 4 END # CLASS END # LAYER LAYER NAME "photo" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Point STATUS off DATA 'ascot_pho' HEADER 'ascot_pho_header.html' TEMPLATE "ascot_pho_query.html" CLASS Name 'Photos' COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 6 END # CLASS END # LAYER END # MAPFILE From shussain at atsincorp.com Tue Feb 12 12:39:52 2002 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Tue, 12 Feb 2002 15:39:52 -0500 Subject: [mapserver-users] Query Error Message-ID: <4D25CDA67110D3119FFB0008C707D7A7051F11@deathstar> Hi Friends, I am trying to display the map by query selection. I am gettting the following error. Does any one can help me to fix this error. msQueryByAttributes(): General error message. No query layer defined. I am using mapserver 3.5, windows 2000, apache. Thanks, Anwar www.atsincorp.com here is my map file. # # Start of map file - created Thu Jan 24 11:36:43 2002 # NAME PAMS SIZE 585 295 EXTENT -252600 -148033.591 274400 165545.107 UNITS meters SHAPEPATH 'e:\pams\pamsdata/' SYMBOLSET "C:\Program Files\Apache Group\Apache\htdocs\Symbols\symbols.sym" # # Start of web interface definition # WEB TEMPLATE 'mapdisplay.html' IMAGEPATH 'C:\Program Files\Apache Group\Apache\htdocs\mapimages\' IMAGEURL '/mapimages/' LOG 'accessLog.txt' END #WEB # # Start of reference map # QUERYMAP STATUS ON STYLE SELECTED END # QUERYMAP REFERENCE SIZE 136 110 #IMAGE 'C:\Program Files\Apache Group\Apache\htdocs\pams1\ref_map.jpg' IMAGE 'C:\Program Files\Apache Group\Apache\htdocs\pams1\refmap1.jpg' EXTENT -255899 -190124 279677 210767 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END #REFERENCE # # Start of legend # LEGEND IMAGECOLOR 205 205 205 KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 POSITION UR END STATUS ON END #LEGEND # # Start of scalebar # SCALEBAR STATUS EMBED STYLE 0 IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END #LABEL SIZE 150 4 COLOR 245 245 245 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES POSITION LR INTERVALS 5 END #SCALEBAR # # Start of layer definitions # LAYER NAME "municipalities" TYPE Polygon STATUS default DATA 'mcd' HEADER 'municipalities_header.html' TEMPLATE "municipalities_query.html" CLASS Name 'Municipalities' COLOR -1 -1 -1 OUTLINECOLOR 206 213 224 END # CLASS END # LAYER LAYER NAME "district" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS default DATA 'district' HEADER 'district_header.html' TEMPLATE "district_query.html" CLASS Name 'District' COLOR -1 -1 -1 SYMBOL 'circle' SIZE 3 OUTLINECOLOR 0 0 255 END # CLASS END # LAYER LAYER NAME "county" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS default DATA 'county' LABELMINSCALE 70000 LABELITEM 'County__' HEADER 'county_header.html' TEMPLATE "county_query.html" CLASS LABEL COLOR 0 0 0 ANTIALIAS True END # LABEL Name 'County' COLOR -1 -1 -1 OUTLINECOLOR 0 0 255 END # CLASS END # LAYER LAYER NAME "stateroutes" STATUS default PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE line MAXSCALE 850000 #MINSCALE 1000 DATA 'stateroutes' HEADER 'stateroutes_header.html' TEMPLATE "stateroutes_query.html" CLASS Name 'Stateroutes' COLOR 232 155 143 OUTLINECOLOR 0 0 0 #SYMBOL 'circle' #SIZE 3 END # CLASS END # LAYER LAYER NAME "drgs" TYPE raster TILEINDEX "drgtile" TILEITEM "location" STATUS on MAXSCALE 150000 END # LAYER LAYER NAME "quads" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS on MINSCALE 150000 DATA 'quadsheets' HEADER 'quads_header.html' TEMPLATE "quads_query.html" CLASS Name 'Quads' COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER LAYER NAME "flightline" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE polygon STATUS off DATA 'ascot_lin' HEADER 'ascot_lin_header.html' TEMPLATE "ascot_lin_query.html" CLASS Name 'Flight Lines' #COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 2 END # CLASS END # LAYER LAYER NAME "block" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS off DATA 'ascot_prj' HEADER 'ascot_prj_header.html' TEMPLATE "ascot_prj_query.html" CLASS Name 'Blocks' #COLOR 152 50 32 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 4 END # CLASS END # LAYER LAYER NAME "photo" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Point STATUS off DATA 'ascot_pho' HEADER 'ascot_pho_header.html' TEMPLATE "ascot_pho_query.html" CLASS Name 'Photos' COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 6 END # CLASS END # LAYER END # MAPFILE From hunt at zedxinc.com Tue Feb 12 16:14:11 2002 From: hunt at zedxinc.com (Aaron Hunt) Date: Tue, 12 Feb 2002 16:14:11 -0800 Subject: [mapserver-users] rotate symbols ?? Message-ID: <032201c1b423$624f3e20$1805000a@helicity> Is there a way to rotate a symbol give data in by shape file? I have a symbol of a windbar for a weather plot and want to rotate it the direction of the wind. Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: From pushkar at ERC.MsState.Edu Tue Feb 12 13:10:55 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Tue, 12 Feb 2002 15:10:55 -0600 (CST) Subject: [mapserver-users] symbols indexed by an attribute Message-ID: Hi everyone, My team wants me to create markers, lines and shades depend. upon particular attribs. from the shapefile. Eg. they created an attr. Shade_sym which is a no., that no. should be used to fetch symbol from the map file e.g. if Shade_sym = 29, the 29th symbol from the map file must be used. I do the foll. to accomplish the task: CLASSITEM 'Shade_sym' CLASS NAME "sym = 29" EXPRESSION ([Shade_sym] EQ 29) SYMBOL 29 SIZE 2 COLOR 114 24 124 END Okay I think this is the optimal way, unless any body has other ideas. But they also want me to read COLOR AND/OR SIZE for the symbol from a file, e.g. the foll. is such a file, the first no. being the symbol no.: # value red green blue 1 255 250 250 2 248 248 255 3 245 245 245 4 220 220 220 5 255 250 240 Thus I should be able to use the attr. Shade_sym's value 29 to index into this file and assign the RGB values to COLOR? Is there a way to do this? I've tried to be very brief. Thanks, ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From woodbri at swoodbridge.com Tue Feb 12 14:41:20 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 12 Feb 2002 17:41:20 -0500 Subject: [mapserver-users] symbols indexed by an attribute References: Message-ID: <3C699A10.DAC6203E@swoodbridge.com> I think you need to use mapscript then it should not be a problem. Using mapscript implies that you build your web navigation tool using the Perl or PHP version of mapscript. -Steve Pushkar Pradhan wrote: > > Hi everyone, > My team wants me to create markers, lines and shades depend. upon > particular attribs. from the shapefile. > Eg. they created an attr. Shade_sym which is a no., that no. should be > used to fetch symbol from the map file e.g. if Shade_sym = 29, the 29th > symbol from the map file must be used. > I do the foll. to accomplish the task: > CLASSITEM 'Shade_sym' > CLASS > NAME "sym = 29" > EXPRESSION ([Shade_sym] EQ 29) > SYMBOL 29 > SIZE 2 > COLOR 114 24 124 > END > Okay I think this is the optimal way, unless any body has other ideas. > But they also want me to read COLOR AND/OR SIZE for the symbol from a > file, e.g. the foll. is such a file, the first no. being the symbol no.: > # value red green blue > > 1 255 250 250 > 2 248 248 255 > 3 245 245 245 > 4 220 220 220 > 5 255 250 240 > Thus I should be able to use the attr. Shade_sym's value 29 to index into > this file and assign the RGB values to COLOR? > Is there a way to do this? I've tried to be very brief. > Thanks, > ------------------------------------------------------------------------------ > PUSHKAR S. PRADHAN > Research Assistant > MISSISSIPPI STATE UNIVERSITY, > STARKVILLE, MS 39759. > > Engineering Research Center > Box 9627 > Mississippi State, MS 39762-9627 > ------------------------------------------------------------------------------ From woodbri at swoodbridge.com Tue Feb 12 14:46:23 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 12 Feb 2002 17:46:23 -0500 Subject: [mapserver-users] rotate symbols ?? References: <032201c1b423$624f3e20$1805000a@helicity> Message-ID: <3C699B3F.403FFDDB@swoodbridge.com> I would be interested in this features also. The best I have been able to come up with so far is to create 8 symbols based on N,S,E,W,NE,NW,SE,SW and then slot the direction into the closed fit. It would be nice to have a symbol and be able to specify a direction to rotate it to. -Steve > Aaron Hunt wrote: > > Is there a way to rotate a symbol give data in by shape file? I have a > symbol of a windbar for a weather plot and want to rotate it the > direction of the wind. > > Aaron From pushkar at ERC.MsState.Edu Tue Feb 12 15:33:08 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Tue, 12 Feb 2002 17:33:08 -0600 (CST) Subject: [mapserver-users] query error In-Reply-To: <4D25CDA67110D3119FFB0008C707D7A7051F10@deathstar> Message-ID: >From your map file - you have commented out the QUERYMAP section. No clue about _query.html file, but please try this. > Hi Friends, > I am trying to display the map by query selection. I am > gettting the following error. Does any one know how to fix this error. > msQueryByAttributes(): General error message. No query layer > defined. > > I am using mapserver 3.5, windows 2000, apache. > > Thanks, > Anwar > www.atsincorp.com > > here is my map file. > # > # Start of map file - created Thu Jan 24 11:36:43 2002 > # > NAME PAMS > SIZE 585 295 > EXTENT -252600 -148033.591 274400 165545.107 > UNITS meters > SHAPEPATH 'e:\pams\pamsdata/' > SYMBOLSET "C:\Program Files\Apache Group\Apache\htdocs\Symbols\symbols.sym" > > # > # Start of web interface definition > # > WEB > TEMPLATE 'mapdisplay.html' > IMAGEPATH 'C:\Program Files\Apache Group\Apache\htdocs\mapimages\' > IMAGEURL '/mapimages/' > LOG 'accessLog.txt' > END #WEB > # > # Start of reference map > # > > #QUERYMAP > # STATUS ON > # STYLE SELECTED > #END # QUERYMAP > > REFERENCE > SIZE 136 110 > #IMAGE 'C:\Program Files\Apache Group\Apache\htdocs\pams1\ref_map.jpg' > IMAGE 'C:\Program Files\Apache Group\Apache\htdocs\pams1\refmap1.jpg' > EXTENT -255899 -190124 279677 210767 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END #REFERENCE > # > # Start of legend > # > LEGEND > IMAGECOLOR 205 205 205 > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > POSITION UR > END > STATUS ON > END #LEGEND > # > # Start of scalebar > # > SCALEBAR > STATUS EMBED > STYLE 0 > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE TINY > END #LABEL > SIZE 150 4 > COLOR 245 245 245 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS MILES > POSITION LR > INTERVALS 5 > END #SCALEBAR > # > # Start of layer definitions > # > LAYER > NAME "municipalities" > TYPE Polygon > STATUS default > DATA 'mcd' > HEADER 'municipalities_header.html' > > TEMPLATE "municipalities_query.html" > > CLASS > Name 'Municipalities' > COLOR -1 -1 -1 > OUTLINECOLOR 206 213 224 > END # CLASS > END # LAYER > > > LAYER > NAME "district" > PROJECTION > "proj=poly" > "ellps=GRS80" > "lon_0=77.75w" > "lat_0=40.925n" > END > > TYPE Polygon > STATUS default > DATA 'district' > HEADER 'district_header.html' > > TEMPLATE "district_query.html" > > CLASS > Name 'District' > COLOR -1 -1 -1 > SYMBOL 'circle' > SIZE 3 > > OUTLINECOLOR 0 0 255 > > END # CLASS > END # LAYER > > > LAYER > NAME "county" > PROJECTION > "proj=poly" > "ellps=GRS80" > "lon_0=77.75w" > "lat_0=40.925n" > END > > TYPE Polygon > STATUS default > DATA 'county' > LABELMINSCALE 70000 > LABELITEM 'County__' > HEADER 'county_header.html' > > TEMPLATE "county_query.html" > > CLASS > LABEL > COLOR 0 0 0 > ANTIALIAS True > END # LABEL > Name 'County' > COLOR -1 -1 -1 > OUTLINECOLOR 0 0 255 > > END # CLASS > END # LAYER > > LAYER > NAME "stateroutes" > STATUS default > PROJECTION > "proj=poly" > "ellps=GRS80" > "lon_0=77.75w" > "lat_0=40.925n" > END > > TYPE line > MAXSCALE 850000 > #MINSCALE 1000 > DATA 'stateroutes' > HEADER 'stateroutes_header.html' > > TEMPLATE "stateroutes_query.html" > > CLASS > Name 'Stateroutes' > COLOR 232 155 143 > OUTLINECOLOR 0 0 0 > #SYMBOL 'circle' > #SIZE 3 > > END # CLASS > END # LAYER > > > LAYER > NAME "drgs" > TYPE raster > TILEINDEX "drgtile" > TILEITEM "location" > STATUS on > MAXSCALE 150000 > END # LAYER > > LAYER > NAME "quads" > PROJECTION > "proj=poly" > "ellps=GRS80" > "lon_0=77.75w" > "lat_0=40.925n" > END > TYPE Polygon > STATUS on > MINSCALE 150000 > DATA 'quadsheets' > HEADER 'quads_header.html' > > TEMPLATE "quads_query.html" > > CLASS > Name 'Quads' > COLOR -1 -1 -1 > OUTLINECOLOR 0 0 0 > END # CLASS > END # LAYER > > > > LAYER > NAME "flightline" > PROJECTION > "proj=poly" > "ellps=GRS80" > "lon_0=77.75w" > "lat_0=40.925n" > > END > TYPE polygon > STATUS off > DATA 'ascot_lin' > HEADER 'ascot_lin_header.html' > > TEMPLATE "ascot_lin_query.html" > > CLASS > Name 'Flight Lines' > #COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > SYMBOL 'circle' > SIZE 2 > > END # CLASS > END # LAYER > > LAYER > NAME "block" > PROJECTION > "proj=poly" > "ellps=GRS80" > "lon_0=77.75w" > "lat_0=40.925n" > END > > TYPE Polygon > STATUS off > DATA 'ascot_prj' > HEADER 'ascot_prj_header.html' > > TEMPLATE "ascot_prj_query.html" > > CLASS > Name 'Blocks' > #COLOR 152 50 32 > OUTLINECOLOR 255 0 0 > SYMBOL 'circle' > SIZE 4 > END # CLASS > END # LAYER > > LAYER > NAME "photo" > PROJECTION > "proj=poly" > "ellps=GRS80" > "lon_0=77.75w" > "lat_0=40.925n" > > END > TYPE Point > STATUS off > DATA 'ascot_pho' > HEADER 'ascot_pho_header.html' > > TEMPLATE "ascot_pho_query.html" > > CLASS > Name 'Photos' > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > SYMBOL 'circle' > SIZE 6 > > END # CLASS > END # LAYER > > > END # MAPFILE > > > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From joemayfair at usa.net Fri Feb 8 20:34:44 2002 From: joemayfair at usa.net (Walt Lin) Date: Fri, 8 Feb 2002 23:34:44 -0500 Subject: [mapserver-users] New to Mapserver In-Reply-To: <3C645CBE.3080407@yahoo.com> References: <3C645CBE.3080407@yahoo.com> Message-ID: <20020209043444.GA29209@eggbert> If you just want to draw the state outlines and labels, don't use TIGER-- use files from nationalatlas.gov . If you need street level data for the whole US, then tiger is the way to go. Nationalatlas should have just one layer for states-- setup your .map file for just one layer and off you go. On Fri, Feb 08, 2002 at 05:18:22PM -0600, Sathiskumar Govindasamy wrote: > Hello, > > I am new to Mapserver. I don't know where to start. I tried to go > through tutorial I couldn't get much out of it. I wanted the mapserver > to generate map of US with states marked. I was told to use Tiger Line > data. I don't loaded tigerline files for Illinois and also boundary line > shapefiles for all the state states. Can someone tell me how to start or > point me to some site where they have explained how to use Tiger data ? > > Thanks > Sathis > > > From morissette at dmsolutions.ca Tue Feb 12 17:19:44 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 12 Feb 2002 20:19:44 -0500 Subject: [mapserver-users] MapServer Release Schedule References: <20020212153342.GA1613@intevation.de> Message-ID: <3C69BF30.117ECCC1@dmsolutions.ca> Frank Koormann wrote: > > I know that coding new features is always more fun than merging bug > fixes into stable releases. Perhaps more fun, but mostly, the new features are required by other projects which are funding all the nice improvements that you see in MapServer. Unfortunately that's reality. This being said, if there was a group interested in supporting and applying patches (critical patches only IMHO) to the stable release while development is happening in the main trunk then that would be great... we've setup a rel-3-5-0 branch in CVS exactly for that... any volounteers? > Therefore I am asking for a commit list for > the CVS: Distributing "commit messages" from the CVS system would give > interested users the ability to follow the ongoing development of > mapserver and the chance to track bugfixes to insert them into running > systems. > Could be a nice thing to have, mostly interesting for the developers and less for the users I would think. But anyway, as an interim solution there is a ChangeLog file in our download site that is updated automagically every morning... you might want to have a look: http://www2.dmsolutions.ca/mapserver/dl/mapserver_ChangeLog.txt Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Tue Feb 12 17:55:39 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 12 Feb 2002 19:55:39 -0600 Subject: [mapserver-users] rotate symbols ?? Message-ID: This is possible with TrueType smybols. For example, you can actually use class labels and the text attribute for symbolization. Your text value would likely refer to a single symbol in a font. You can pull the angle then from an attribute using the labelangleitem parameter. Please add a feature request to Bugzilla for general symbol rotation. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 02/12/02 16:52 PM >>> I would be interested in this features also. The best I have been able to come up with so far is to create 8 symbols based on N,S,E,W,NE,NW,SE,SW and then slot the direction into the closed fit. It would be nice to have a symbol and be able to specify a direction to rotate it to. -Steve > Aaron Hunt wrote: > > Is there a way to rotate a symbol give data in by shape file? I have a > symbol of a windbar for a weather plot and want to rotate it the > direction of the wind. > > Aaron From steve.lime at dnr.state.mn.us Tue Feb 12 21:08:39 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 12 Feb 2002 23:08:39 -0600 Subject: [mapserver-users] MapServer Release Schedule Message-ID: Hey folks: Dan's correct. There was a branch created with the 3.5 release. Luckily there have been no *major* bugs reported/fixed that would warrant a maintanence release- yet. The nightly is supposed to be a development snapshot and not a maintenence release, especially given the pace of the new work as Daniel said. I guess the main branch should be listed as 3.6 development with any bugs for 3.5 appearing in the 3.5.0 branch. Frank's request is certainly valid. Dan, could you pass along your formula for building the change log to Jamie and the folks at the UMN? Seems that's where it should live. We should take a close look at the change log to make sure we haven't missed things that warrant a 3.5.1 maintanence release. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 02/12/02 19:27 PM >>> Frank Koormann wrote: > > I know that coding new features is always more fun than merging bug > fixes into stable releases. Perhaps more fun, but mostly, the new features are required by other projects which are funding all the nice improvements that you see in MapServer. Unfortunately that's reality. This being said, if there was a group interested in supporting and applying patches (critical patches only IMHO) to the stable release while development is happening in the main trunk then that would be great... we've setup a rel-3-5-0 branch in CVS exactly for that... any volounteers? > Therefore I am asking for a commit list for > the CVS: Distributing "commit messages" from the CVS system would give > interested users the ability to follow the ongoing development of > mapserver and the chance to track bugfixes to insert them into running > systems. > Could be a nice thing to have, mostly interesting for the developers and less for the users I would think. But anyway, as an interim solution there is a ChangeLog file in our download site that is updated automagically every morning... you might want to have a look: http://www2.dmsolutions.ca/mapserver/dl/mapserver_ChangeLog.txt Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Tue Feb 12 21:18:08 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 12 Feb 2002 23:18:08 -0600 Subject: [mapserver-users] Query Error Message-ID: It's not a mapfile problem, rather a problem with the CGI query. With attribute queries you set the qlayer variable so the server knows which layer to process. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Shaik Anwar Hussain 02/12/02 14:45 PM >>> Hi Friends, I am trying to display the map by query selection. I am gettting the following error. Does any one can help me to fix this error. msQueryByAttributes(): General error message. No query layer defined. I am using mapserver 3.5, windows 2000, apache. Thanks, Anwar www.atsincorp.com here is my map file. # # Start of map file - created Thu Jan 24 11:36:43 2002 # NAME PAMS SIZE 585 295 EXTENT -252600 -148033.591 274400 165545.107 UNITS meters SHAPEPATH 'e:\pams\pamsdata/' SYMBOLSET "C:\Program Files\Apache Group\Apache\htdocs\Symbols\symbols.sym" # # Start of web interface definition # WEB TEMPLATE 'mapdisplay.html' IMAGEPATH 'C:\Program Files\Apache Group\Apache\htdocs\mapimages\' IMAGEURL '/mapimages/' LOG 'accessLog.txt' END #WEB # # Start of reference map # QUERYMAP STATUS ON STYLE SELECTED END # QUERYMAP REFERENCE SIZE 136 110 #IMAGE 'C:\Program Files\Apache Group\Apache\htdocs\pams1\ref_map.jpg' IMAGE 'C:\Program Files\Apache Group\Apache\htdocs\pams1\refmap1.jpg' EXTENT -255899 -190124 279677 210767 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END #REFERENCE # # Start of legend # LEGEND IMAGECOLOR 205 205 205 KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 POSITION UR END STATUS ON END #LEGEND # # Start of scalebar # SCALEBAR STATUS EMBED STYLE 0 IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END #LABEL SIZE 150 4 COLOR 245 245 245 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES POSITION LR INTERVALS 5 END #SCALEBAR # # Start of layer definitions # LAYER NAME "municipalities" TYPE Polygon STATUS default DATA 'mcd' HEADER 'municipalities_header.html' TEMPLATE "municipalities_query.html" CLASS Name 'Municipalities' COLOR -1 -1 -1 OUTLINECOLOR 206 213 224 END # CLASS END # LAYER LAYER NAME "district" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS default DATA 'district' HEADER 'district_header.html' TEMPLATE "district_query.html" CLASS Name 'District' COLOR -1 -1 -1 SYMBOL 'circle' SIZE 3 OUTLINECOLOR 0 0 255 END # CLASS END # LAYER LAYER NAME "county" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS default DATA 'county' LABELMINSCALE 70000 LABELITEM 'County__' HEADER 'county_header.html' TEMPLATE "county_query.html" CLASS LABEL COLOR 0 0 0 ANTIALIAS True END # LABEL Name 'County' COLOR -1 -1 -1 OUTLINECOLOR 0 0 255 END # CLASS END # LAYER LAYER NAME "stateroutes" STATUS default PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE line MAXSCALE 850000 #MINSCALE 1000 DATA 'stateroutes' HEADER 'stateroutes_header.html' TEMPLATE "stateroutes_query.html" CLASS Name 'Stateroutes' COLOR 232 155 143 OUTLINECOLOR 0 0 0 #SYMBOL 'circle' #SIZE 3 END # CLASS END # LAYER LAYER NAME "drgs" TYPE raster TILEINDEX "drgtile" TILEITEM "location" STATUS on MAXSCALE 150000 END # LAYER LAYER NAME "quads" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS on MINSCALE 150000 DATA 'quadsheets' HEADER 'quads_header.html' TEMPLATE "quads_query.html" CLASS Name 'Quads' COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER LAYER NAME "flightline" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE polygon STATUS off DATA 'ascot_lin' HEADER 'ascot_lin_header.html' TEMPLATE "ascot_lin_query.html" CLASS Name 'Flight Lines' #COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 2 END # CLASS END # LAYER LAYER NAME "block" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS off DATA 'ascot_prj' HEADER 'ascot_prj_header.html' TEMPLATE "ascot_prj_query.html" CLASS Name 'Blocks' #COLOR 152 50 32 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 4 END # CLASS END # LAYER LAYER NAME "photo" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Point STATUS off DATA 'ascot_pho' HEADER 'ascot_pho_header.html' TEMPLATE "ascot_pho_query.html" CLASS Name 'Photos' COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 6 END # CLASS END # LAYER END # MAPFILE From steve.lime at dnr.state.mn.us Tue Feb 12 21:20:39 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 12 Feb 2002 23:20:39 -0600 Subject: [mapserver-users] Fwd: Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: CoadyT at DFO-MPO.GC.CA Subject: Date: Tue, 12 Feb 2002 13:12:34 -0500 Size: 1516 URL: From frank.koormann at intevation.de Wed Feb 13 03:17:03 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Wed, 13 Feb 2002 12:17:03 +0100 Subject: [mapserver-users] MapServer Release Schedule In-Reply-To: References: Message-ID: <20020213111702.GA7487@intevation.de> Daniel, Steve, * Steve Lime (steve.lime at dnr.state.mn.us) [020213 08:01]: > Hey folks: Dan's correct. There was a branch created with the 3.5 > release. Luckily there have been no *major* bugs reported/fixed that > would warrant a maintanence release- yet. [...] > Frank's request is certainly valid. Dan, could you pass along your > formula for building the change log to Jamie and the folks at the UMN? > Seems that's where it should live. We should take a close look at the > change log to make sure we haven't missed things that warrant a 3.5.1 > maintanence release. > > Steve > > > Daniel Morissette 02/12/02 19:27 PM >>> > > > Therefore I am asking for a commit list for > > > the CVS: Distributing "commit messages" from the CVS system would give > > > interested users the ability to follow the ongoing development of > > > mapserver and the chance to track bugfixes to insert them into running > > > systems. > > Could be a nice thing to have, mostly interesting for the developers and > less for the users I would think. But anyway, as an interim solution > there is a ChangeLog file in our download site that is updated > automagically every morning... you might want to have a look: > http://www2.dmsolutions.ca/mapserver/dl/mapserver_ChangeLog.txt > > Daniel Thanks for clarification. Making the ChangeLog available helps a lot and makes the progress of mapserver development more transparent. Kind regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 248 bytes Desc: not available URL: From bart at geodan.nl Wed Feb 13 03:27:24 2002 From: bart at geodan.nl (Bart van den Eijnden) Date: Wed, 13 Feb 2002 12:27:24 +0100 Subject: [mapserver-users] problem with oracle spatial layer not showing up In-Reply-To: <3C698178.8829946B@parvillers.com> Message-ID: Hi, no I downloaded the win32 binary from http://parvillers.homeip.net/mapserver/ Is there a way to get ORA error messages (or do they appear in the normal log file?)? And what is default colour for polygons? My data is in the selected window (extent). Thanks in advance, Bart 2/12/2002 9:56:24 PM, PARVILLERS wrote: >Hello bart, > >I suppose you build your own version of mapserver to use with Oracle Spatial. >Is it an unix one ? >What version of the spatial adaptor do you use ? > >Are your data in the selected window ? >Also it seems you don't set the output color for polygons ? > >Hugues >France > > > > > >Bart van den Eijnden a ?crit : > >> Hi, >> >> I have a problem with an Oracle Spatial layer not showing up. Can anybody please help? Thanks in advance! >> EPSG:29112 is the Dutch system (Rijksdriehoek a.k.a RD) >> >> In the logfile I get this: >> >> Tue Feb 12 18:22:12 2002,2200,192.168.3.141,DEMO,0,18458.421916 323458.421916 346541.578084 651541.578084,182500.000000 >> 487500.000000,oracle_test ,normal execution >> >> The mapfile looks like this >> >> # >> # Start of map file >> # >> NAME BART >> STATUS ON >> SIZE 600 600 >> EXTENT 0 275000 365000 700000 >> UNITS METERS >> SHAPEPATH "data" >> IMAGECOLOR 255 255 255 >> >> # >> # Start of web interface definition (including WMS enabling metadata) >> # >> WEB >> HEADER demo_header.html >> TEMPLATE demo.html >> FOOTER demo_footer.html >> MINSCALE 1000 >> MAXSCALE 1550000 >> IMAGEPATH "set in demo_init.html" >> IMAGEURL "set in demo_init.html" >> LOG "demo.log" >> METADATA >> WMS_TITLE "UMN MapServer Itasca Demo" >> WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." >> WMS_ACCESSCONSTRAINTS none >> >> # change this value to match your setup >> WMS_ONLINERESOURCE "http://bartsdt/mapserver_demos/itasca/demo_init.html" >> >> WMS_SRS "EPSG:29112" >> END >> END >> >> # >> # Start of layer definitions >> # >> >> LAYER >> NAME oracle_test >> TYPE POINT >> CONNECTIONTYPE oraclespatial >> CONNECTION "robert/robert at des" >> DATA "POLYGOON FROM (SELECT POLYGOON FROM GGA_GEMEENTE_EFEMERIDEN)" >> STATUS ON >> #LABELITEM "PVE_CODE" >> #CLASSITEM "PVE_CODE" >> #LABELMAXSCALE 500000 >> #CLASS >> # EXPRESSION /./ >> # COLOR -1 -1 -1 >> # LABEL >> # COLOR 0 0 0 >> # SHADOWCOLOR 218 218 218 >> # SHADOWSIZE 2 2 >> # TYPE BITMAP >> # SIZE MEDIUM >> # POSITION CC >> # PARTIALS FALSE >> # BUFFER 2 >> END >> END >> >> METADATA >> WMS_TITLE "Minor Civil Divisions" >> WMS_ABSTRACT "Minor civil divisions for Itasca County. (annotation only)" >> WMS_SRS "EPSG:29112" >> END >> END >> >> -- >> Bart van den Eijnden Geodan IT BV >> Email: bart at geodan.nl Buitenhaven 27-A >> Telefoon: 073-6925151 5211 TP 's-Hertogenbosch > > > -- Bart van den Eijnden Geodan IT BV Email: bart at geodan.nl Buitenhaven 27-A Telefoon: 073-6925151 5211 TP 's-Hertogenbosch From cabral at yadata.net Wed Feb 13 06:05:38 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Wed, 13 Feb 2002 11:05:38 -0300 Subject: [mapserver-users] problem with oracle spatial layer not showing up References: <21PMRNB7CA31USDA3GB64LJ05B674GF.3c6955d0@bartsdt> Message-ID: <006801c1b497$84289cc0$0207a8c0@naumaki> Dear Bart (and other Oracle Spatial - SDO - users), The syntax for the mapfile DATA statement has been updated in order to support SRID definitions (looks like you're using a workaround I posted in the list sometime ago). Check your maporaclespatial.c for revision 1.8. The syntax is: DATA "shape FROM table" (as before) DATA "shape FROM table USING SRID srid_number" (new) DATA "shape FROM (SELECT stmt)" (as before) Syntax 2 accepts a SDO SRID number, which must be exactly the same number used in the SDO_SRID attribute for 'shape' in 'table'. Old code assumed the srid to be NULL, causing a SDO SRID mismatch error when using syntax 1 - the workaround was to use syntax 3. However, syntax 3 is not recommended because it returns ALL shapes from the SELECT stmt, regardless of the current image extent (therefore, making mapserver to draw/work-with non-visible elements). Thus, Syntax 2 solves the mismatch error problem (performance-wise, syntax 1 & 2 are equal except that syntax 1 uses a NULL srid for the query statement, while syntax 2 has a defined srid). However, I don't think that is what is causing your problem. First of all, I believe I read somewhere that you must have a CLASS to be defined. Apparently you commented out the only class you had. So, try using simply (for polygons): CLASS COLOR 128 128 128 # gray-filled OUTLINECOLOR 0 0 0 # black contour END Secondly, there's the STATUS, which I believe should be DEFAULT to work. Not sure on that, but you should try anyway... STATUS DEFAULT Finally, check EXTENT to see if it conforms to the data stored in your shapefile column (POLYGOON). Run this select statement to count how many shapes you should see in the default view. SELECT count(A.polygoon) FROM GGA_GEMEENTE_EFEMERIDEN A WHERE SDO_FILTER( A.polygoon, MDSYS.SDO_GEOMETRY( 2003, , NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY( , , , )), 'querytype=window') = 'TRUE' where: - should be your srid (or A.SDO_SRID); - and come from your EXTENTS (i.e. with your extents it would be x1=0; y1=275000; x2=365000; y2=700000) Cheers, Rod. ----- Original Message ----- From: "Bart van den Eijnden" To: Cc: Sent: Tuesday, February 12, 2002 2:50 PM Subject: [mapserver-users] problem with oracle spatial layer not showing up Hi, I have a problem with an Oracle Spatial layer not showing up. Can anybody please help? Thanks in advance! EPSG:29112 is the Dutch system (Rijksdriehoek a.k.a RD) In the logfile I get this: Tue Feb 12 18:22:12 2002,2200,192.168.3.141,DEMO,0,18458.421916 323458.421916 346541.578084 651541.578084,182500.000000 487500.000000,oracle_test ,normal execution The mapfile looks like this # # Start of map file # NAME BART STATUS ON SIZE 600 600 EXTENT 0 275000 365000 700000 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "set in demo_init.html" IMAGEURL "set in demo_init.html" LOG "demo.log" METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://bartsdt/mapserver_demos/itasca/demo_init.html" WMS_SRS "EPSG:29112" END END # # Start of layer definitions # LAYER NAME oracle_test TYPE POINT CONNECTIONTYPE oraclespatial CONNECTION "robert/robert at des" DATA "POLYGOON FROM (SELECT POLYGOON FROM GGA_GEMEENTE_EFEMERIDEN)" STATUS ON #LABELITEM "PVE_CODE" #CLASSITEM "PVE_CODE" #LABELMAXSCALE 500000 #CLASS # EXPRESSION /./ # COLOR -1 -1 -1 # LABEL # COLOR 0 0 0 # SHADOWCOLOR 218 218 218 # SHADOWSIZE 2 2 # TYPE BITMAP # SIZE MEDIUM # POSITION CC # PARTIALS FALSE # BUFFER 2 END END METADATA WMS_TITLE "Minor Civil Divisions" WMS_ABSTRACT "Minor civil divisions for Itasca County. (annotation only)" WMS_SRS "EPSG:29112" END END -- Bart van den Eijnden Geodan IT BV Email: bart at geodan.nl Buitenhaven 27-A Telefoon: 073-6925151 5211 TP 's-Hertogenbosch From morissette at dmsolutions.ca Wed Feb 13 05:11:20 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 13 Feb 2002 08:11:20 -0500 Subject: [mapserver-users] MapServer Release Schedule References: Message-ID: <3C6A65F8.C3F55AE9@dmsolutions.ca> Steve Lime wrote: > > Frank's request is certainly valid. Dan, could you pass along your > formula for building the change log to Jamie and the folks at the UMN? > Seems that's where it should live. We should take a close look at the > change log to make sure we haven't missed things that warrant a 3.5.1 > maintanence release. > I'll reply to the list since this answer may be of interest to other CVS users... The ChangeLog file is built by a Perl script called cvs2cl.pl... you simply run it in the main mapserver directory and it fetches the cvs log information from the server and generates the ChangeLog file. I don't remember where I got that script, but in case anyone wants it, I made a copy available for download at http://www2.dmsolutions.ca/mapserver/dl/misc/cvs2cl.pl.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 bart at geodan.nl Wed Feb 13 05:18:51 2002 From: bart at geodan.nl (Bart van den Eijnden) Date: Wed, 13 Feb 2002 14:18:51 +0100 Subject: [mapserver-users] problem with oracle spatial layer not showing up In-Reply-To: <006801c1b497$84289cc0$0207a8c0@naumaki> Message-ID: <3W4W65ONNIFBATNYTIER84ONA9LF9.3c6a67bb@bartsdt> Hi Rodrigo, thanks, indeed it was the omission of a class which caused the problem. I have the map now showing, but performance is really poor (22 seconds for one map). Do you have an indication of how performance should be and how to increase performance? Thanks in advance, Bart 2/13/2002 3:05:38 PM, "Rodrigo Cabral" wrote: >Dear Bart (and other Oracle Spatial - SDO - users), > >The syntax for the mapfile DATA statement has been updated in order to >support SRID definitions (looks like you're using a workaround I posted in >the list sometime ago). Check your maporaclespatial.c for revision 1.8. The >syntax is: > >DATA "shape FROM table" (as before) >DATA "shape FROM table USING SRID srid_number" (new) >DATA "shape FROM (SELECT stmt)" (as before) > >Syntax 2 accepts a SDO SRID number, which must be exactly the same number >used in the SDO_SRID attribute for 'shape' in 'table'. Old code assumed the >srid to be NULL, causing a SDO SRID mismatch error when using syntax 1 - the >workaround was to use syntax 3. However, syntax 3 is not recommended because >it returns ALL shapes from the SELECT stmt, regardless of the current image >extent (therefore, making mapserver to draw/work-with non-visible elements). >Thus, Syntax 2 solves the mismatch error problem (performance-wise, syntax 1 >& 2 are equal except that syntax 1 uses a NULL srid for the query statement, >while syntax 2 has a defined srid). > >However, I don't think that is what is causing your problem. > >First of all, I believe I read somewhere that you must have a CLASS to be >defined. Apparently you commented out the only class you had. So, try >using simply (for polygons): > >CLASS > COLOR 128 128 128 # gray-filled > OUTLINECOLOR 0 0 0 # black contour >END > >Secondly, there's the STATUS, which I believe should be DEFAULT to work. Not >sure on that, but you should try anyway... > >STATUS DEFAULT > >Finally, check EXTENT to see if it conforms to the data stored in your >shapefile column (POLYGOON). Run this select statement to count how many >shapes you should see in the default view. > >SELECT count(A.polygoon) FROM GGA_GEMEENTE_EFEMERIDEN A >WHERE SDO_FILTER( A.polygoon, MDSYS.SDO_GEOMETRY( >2003, , NULL, >MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), >MDSYS.SDO_ORDINATE_ARRAY( , , , )), >'querytype=window') = 'TRUE' > >where: >- should be your srid (or A.SDO_SRID); >- and come from your EXTENTS (i.e. with your extents it would be >x1=0; y1=275000; x2=365000; y2=700000) > >Cheers, >Rod. > >----- Original Message ----- >From: "Bart van den Eijnden" >To: >Cc: >Sent: Tuesday, February 12, 2002 2:50 PM >Subject: [mapserver-users] problem with oracle spatial layer not showing up > > >Hi, > >I have a problem with an Oracle Spatial layer not showing up. Can anybody >please help? Thanks in advance! >EPSG:29112 is the Dutch system (Rijksdriehoek a.k.a RD) > >In the logfile I get this: > >Tue Feb 12 18:22:12 2002,2200,192.168.3.141,DEMO,0,18458.421916 >323458.421916 346541.578084 651541.578084,182500.000000 >487500.000000,oracle_test ,normal execution > >The mapfile looks like this > ># ># Start of map file ># >NAME BART >STATUS ON >SIZE 600 600 >EXTENT 0 275000 365000 700000 >UNITS METERS >SHAPEPATH "data" >IMAGECOLOR 255 255 255 > ># ># Start of web interface definition (including WMS enabling metadata) ># >WEB > HEADER demo_header.html > TEMPLATE demo.html > FOOTER demo_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "set in demo_init.html" > IMAGEURL "set in demo_init.html" > LOG "demo.log" > METADATA > WMS_TITLE "UMN MapServer Itasca Demo" > WMS_ABSTRACT "This is the UMN MapServer demonstration application for >Itasca County located in north central Minnesota." > WMS_ACCESSCONSTRAINTS none > > # change this value to match your setup > WMS_ONLINERESOURCE >"http://bartsdt/mapserver_demos/itasca/demo_init.html" > > WMS_SRS "EPSG:29112" > END >END > ># ># Start of layer definitions ># > >LAYER > NAME oracle_test > TYPE POINT > CONNECTIONTYPE oraclespatial > CONNECTION "robert/robert at des" > DATA "POLYGOON FROM (SELECT POLYGOON FROM GGA_GEMEENTE_EFEMERIDEN)" > STATUS ON > #LABELITEM "PVE_CODE" > #CLASSITEM "PVE_CODE" > #LABELMAXSCALE 500000 > #CLASS > # EXPRESSION /./ > # COLOR -1 -1 -1 > # LABEL > # COLOR 0 0 0 > # SHADOWCOLOR 218 218 218 > # SHADOWSIZE 2 2 > # TYPE BITMAP > # SIZE MEDIUM > # POSITION CC > # PARTIALS FALSE > # BUFFER 2 > END > END > > METADATA > WMS_TITLE "Minor Civil Divisions" > WMS_ABSTRACT "Minor civil divisions for Itasca County. (annotation >only)" > WMS_SRS "EPSG:29112" > END >END > > > >-- >Bart van den Eijnden Geodan IT BV >Email: bart at geodan.nl Buitenhaven 27-A >Telefoon: 073-6925151 5211 TP 's-Hertogenbosch > > > -- Bart van den Eijnden Geodan IT BV Email: bart at geodan.nl Buitenhaven 27-A Telefoon: 073-6925151 5211 TP 's-Hertogenbosch From rramuhn at chu-rouen.fr Wed Feb 13 07:10:29 2002 From: rramuhn at chu-rouen.fr (RRAMUHN,) Date: Wed, 13 Feb 2002 16:10:29 +0100 Subject: [mapserver-users] problem with oracle spatial layer not showi ng up Message-ID: <8CC51D30DA6FD311950B0000F6C74F130483FA44@primanet.chu-rouen.fr> Hello Bart, I use MapServer with OracleSpatial and many layers with many objects with a too high resolution (18 cm for half of France :-( ). Actually building a 15 layers map with more than 5000 objects in my shown window when the database contains more than 3.000.000 (either polygon, lines or points ) takes me 18 seconds on win32 with a PIII 800 Mhz / 512 Mo. I have plenty of idea to make it much faster. But at this time you should considerer if you do or not as many operations as I do on so many layers and objects ? How large is your table ? Do you have a rtree index on the geometry ? Rgds H/P -----Message d'origine----- De : Bart van den Eijnden [mailto:bart at geodan.nl] Envoy? : mercredi 13 f?vrier 2002 14:19 ? : mapserver-users at lists.gis.umn.edu; Rodrigo Cabral Objet : Re: [mapserver-users] problem with oracle spatial layer not showing up Hi Rodrigo, thanks, indeed it was the omission of a class which caused the problem. I have the map now showing, but performance is really poor (22 seconds for one map). Do you have an indication of how performance should be and how to increase performance? Thanks in advance, Bart 2/13/2002 3:05:38 PM, "Rodrigo Cabral" wrote: >Dear Bart (and other Oracle Spatial - SDO - users), > >The syntax for the mapfile DATA statement has been updated in order to >support SRID definitions (looks like you're using a workaround I posted in >the list sometime ago). Check your maporaclespatial.c for revision 1.8. The >syntax is: > >DATA "shape FROM table" (as before) >DATA "shape FROM table USING SRID srid_number" (new) >DATA "shape FROM (SELECT stmt)" (as before) > >Syntax 2 accepts a SDO SRID number, which must be exactly the same number >used in the SDO_SRID attribute for 'shape' in 'table'. Old code assumed the >srid to be NULL, causing a SDO SRID mismatch error when using syntax 1 - the >workaround was to use syntax 3. However, syntax 3 is not recommended because >it returns ALL shapes from the SELECT stmt, regardless of the current image >extent (therefore, making mapserver to draw/work-with non-visible elements). >Thus, Syntax 2 solves the mismatch error problem (performance-wise, syntax 1 >& 2 are equal except that syntax 1 uses a NULL srid for the query statement, >while syntax 2 has a defined srid). > >However, I don't think that is what is causing your problem. > >First of all, I believe I read somewhere that you must have a CLASS to be >defined. Apparently you commented out the only class you had. So, try >using simply (for polygons): > >CLASS > COLOR 128 128 128 # gray-filled > OUTLINECOLOR 0 0 0 # black contour >END > >Secondly, there's the STATUS, which I believe should be DEFAULT to work. Not >sure on that, but you should try anyway... > >STATUS DEFAULT > >Finally, check EXTENT to see if it conforms to the data stored in your >shapefile column (POLYGOON). Run this select statement to count how many >shapes you should see in the default view. > >SELECT count(A.polygoon) FROM GGA_GEMEENTE_EFEMERIDEN A >WHERE SDO_FILTER( A.polygoon, MDSYS.SDO_GEOMETRY( >2003, , NULL, >MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), >MDSYS.SDO_ORDINATE_ARRAY( , , , )), >'querytype=window') = 'TRUE' > >where: >- should be your srid (or A.SDO_SRID); >- and come from your EXTENTS (i.e. with your extents it would be >x1=0; y1=275000; x2=365000; y2=700000) > >Cheers, >Rod. > >----- Original Message ----- >From: "Bart van den Eijnden" >To: >Cc: >Sent: Tuesday, February 12, 2002 2:50 PM >Subject: [mapserver-users] problem with oracle spatial layer not showing up > > >Hi, > >I have a problem with an Oracle Spatial layer not showing up. Can anybody >please help? Thanks in advance! >EPSG:29112 is the Dutch system (Rijksdriehoek a.k.a RD) > >In the logfile I get this: > >Tue Feb 12 18:22:12 2002,2200,192.168.3.141,DEMO,0,18458.421916 >323458.421916 346541.578084 651541.578084,182500.000000 >487500.000000,oracle_test ,normal execution > >The mapfile looks like this > ># ># Start of map file ># >NAME BART >STATUS ON >SIZE 600 600 >EXTENT 0 275000 365000 700000 >UNITS METERS >SHAPEPATH "data" >IMAGECOLOR 255 255 255 > ># ># Start of web interface definition (including WMS enabling metadata) ># >WEB > HEADER demo_header.html > TEMPLATE demo.html > FOOTER demo_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "set in demo_init.html" > IMAGEURL "set in demo_init.html" > LOG "demo.log" > METADATA > WMS_TITLE "UMN MapServer Itasca Demo" > WMS_ABSTRACT "This is the UMN MapServer demonstration application for >Itasca County located in north central Minnesota." > WMS_ACCESSCONSTRAINTS none > > # change this value to match your setup > WMS_ONLINERESOURCE >"http://bartsdt/mapserver_demos/itasca/demo_init.html" > > WMS_SRS "EPSG:29112" > END >END > ># ># Start of layer definitions ># > >LAYER > NAME oracle_test > TYPE POINT > CONNECTIONTYPE oraclespatial > CONNECTION "robert/robert at des" > DATA "POLYGOON FROM (SELECT POLYGOON FROM GGA_GEMEENTE_EFEMERIDEN)" > STATUS ON > #LABELITEM "PVE_CODE" > #CLASSITEM "PVE_CODE" > #LABELMAXSCALE 500000 > #CLASS > # EXPRESSION /./ > # COLOR -1 -1 -1 > # LABEL > # COLOR 0 0 0 > # SHADOWCOLOR 218 218 218 > # SHADOWSIZE 2 2 > # TYPE BITMAP > # SIZE MEDIUM > # POSITION CC > # PARTIALS FALSE > # BUFFER 2 > END > END > > METADATA > WMS_TITLE "Minor Civil Divisions" > WMS_ABSTRACT "Minor civil divisions for Itasca County. (annotation >only)" > WMS_SRS "EPSG:29112" > END >END > > > >-- >Bart van den Eijnden Geodan IT BV >Email: bart at geodan.nl Buitenhaven 27-A >Telefoon: 073-6925151 5211 TP 's-Hertogenbosch > > > -- Bart van den Eijnden Geodan IT BV Email: bart at geodan.nl Buitenhaven 27-A Telefoon: 073-6925151 5211 TP 's-Hertogenbosch From teb at mallit.fr.umn.edu Wed Feb 13 07:22:32 2002 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 13 Feb 2002 09:22:32 -0600 (CST) Subject: [mapserver-users] PROJ / Help welcome ! (FWD) Message-ID: <200202131522.JAA22292@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "RRAMUHN," To: "'mapserver-info at lists.gis.umn.edu'" Subject: PROJ / Help welcome ! Date: Wed, 13 Feb 2002 13:23:29 +0100 MIME-Version: 1.0 Hello I don't understand how to configure my map file to get WGS 84 datas and show them into a Lambert II projection ? As i'm not from GIS domain the proj subdomain is not easy for me ! The area is North of France ! Tks for help Hugues PARVILLERS ------------- End Forwarded Message ------------- From stephane.morel at vanoise.com Wed Feb 13 09:15:29 2002 From: stephane.morel at vanoise.com (Stephane MOREL) Date: Wed, 13 Feb 2002 17:15:29 +0000 Subject: [mapserver-users] newbie question : References: <5.1.0.14.0.20011029122417.00b0f250@mail.GreenwoodMap.com> Message-ID: <3C6A9F31.25C753E9@vanoise.com> Hi I've installed mapserver 3.4 on linux machine running Suse 7.2 Every things works perfectly well. When I run http://myserver/cgi-bin/mapserv, I've got the following answer : No query information to decode. QUERY_STRING is set, but empty. If I understand well it means that mapserver is correctly installed Am I right ? I've downloaded the demo. When I run the demo_init.html I can see the fisrt window and when I click on the initialize button I can see the demo interface but not the map. When I look in the directory where I put the mapserver demo I can see that the DEMO1215465488.gif has been created. So why can I can't see the gif file in my browser ? My demo.map : # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 SYMBOLSET symbols/symbols.sym EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 # IMAGEPATH "/usr/local/apache/htdocs/tmp/" IMAGEPATH "/home/site_intranet/mapserver/ms_demo/" #IMAGEURL "/tmp/" #IMAGEURL "/ms_demo/" # LOG "demo.log" END and the rest of the file My demo_init.html : MapServer Demo Interface

MapServer Demo Interface


Click on the initialize button to fire up the demo with 3 layers turned on will be accessible for browsing. The data are of Itasca County, MN and were derived, for the most part, from USGS 1:24,000 quadrangles. Some things to note are:


Any suggestions ? TIA Stef From pushkar at ERC.MsState.Edu Wed Feb 13 09:07:10 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Wed, 13 Feb 2002 11:07:10 -0600 (CST) Subject: [mapserver-users] color. jpegs not showin up Message-ID: I am using gdal 1.1.5 to display 24, 8 bit TIFFs. As suggested by Frank Warmerdam I got my TIFFs to display after I compiled gdal after configuring it with internal tiff and geotiff libraries. However I still get an error when I try to display colored jpegs: drawJPEG(): Image handling error. JPEG support is not available. These are my configs: Banshee[20] pushkar$ mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=TTF INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE Banshee[99] pushkar$ gdal-config --formats gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 sdts raw dted mem jdem envisat elas fit gif jpeg png I have disabled jpeg support in mapserv, and my gdal is configured to handle it. Still doesn't work? If anyone has experience with this please help. Thanks, ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From pushkar at ERC.MsState.Edu Wed Feb 13 09:51:02 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Wed, 13 Feb 2002 11:51:02 -0600 (CST) Subject: [mapserver-users] symbols indexed by an attribute In-Reply-To: <3C699A10.DAC6203E@swoodbridge.com> Message-ID: Thanks Steve, I am now trying to built mapscript with perl, but there doesn't seem to be any documentation on that. Can anyone point me if there is docum. available on this, otherwise I will try to use php/mapscript? I welcome suggestions and your experience from everybody about perl vs. php with mapscript. On Tue, 12 Feb 2002, Stephen Woodbridge wrote: > I think you need to use mapscript then it should not be a problem. Using > mapscript implies that you build your web navigation tool using the Perl > or PHP version of mapscript. > > -Steve > > Pushkar Pradhan wrote: > > > > Hi everyone, > > My team wants me to create markers, lines and shades depend. upon > > particular attribs. from the shapefile. > > Eg. they created an attr. Shade_sym which is a no., that no. should be > > used to fetch symbol from the map file e.g. if Shade_sym = 29, the 29th > > symbol from the map file must be used. > > I do the foll. to accomplish the task: > > CLASSITEM 'Shade_sym' > > CLASS > > NAME "sym = 29" > > EXPRESSION ([Shade_sym] EQ 29) > > SYMBOL 29 > > SIZE 2 > > COLOR 114 24 124 > > END > > Okay I think this is the optimal way, unless any body has other ideas. > > But they also want me to read COLOR AND/OR SIZE for the symbol from a > > file, e.g. the foll. is such a file, the first no. being the symbol no.: > > # value red green blue > > > > 1 255 250 250 > > 2 248 248 255 > > 3 245 245 245 > > 4 220 220 220 > > 5 255 250 240 > > Thus I should be able to use the attr. Shade_sym's value 29 to index into > > this file and assign the RGB values to COLOR? > > Is there a way to do this? I've tried to be very brief. > > Thanks, > > ------------------------------------------------------------------------------ > > PUSHKAR S. PRADHAN > > Research Assistant > > MISSISSIPPI STATE UNIVERSITY, > > STARKVILLE, MS 39759. > > > > Engineering Research Center > > Box 9627 > > Mississippi State, MS 39762-9627 > > ------------------------------------------------------------------------------ > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From pushkar at ERC.MsState.Edu Wed Feb 13 10:06:54 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Wed, 13 Feb 2002 12:06:54 -0600 (CST) Subject: [mapserver-users] newbie question : In-Reply-To: <3C6A9F31.25C753E9@vanoise.com> Message-ID: You've commented out your image url path: > #IMAGEURL "/tmp/" > #IMAGEURL "/ms_demo/" You need to point to your directory containing the images, and the path is from the htdocs dir. (if it is apache). > Hi > > I've installed mapserver 3.4 on linux machine running Suse 7.2 > Every things works perfectly well. When I run http://myserver/cgi-bin/mapserv, > I've got the following answer : No query information to decode. QUERY_STRING is > set, but empty. > If I understand well it means that mapserver is correctly installed > Am I right ? > > I've downloaded the demo. When I run the demo_init.html I can see the fisrt > window and when I click on the initialize button I can see the demo interface > but not the map. > When I look in the directory where I put the mapserver demo I can see that the > DEMO1215465488.gif has been created. > So why can I can't see the gif file in my browser ? > > My demo.map : > # > # Start of map file > # > NAME DEMO > STATUS ON > SIZE 600 600 > SYMBOLSET symbols/symbols.sym > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > UNITS METERS > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > # > # Start of web interface definition > # > WEB > HEADER demo_header.html > TEMPLATE demo.html > FOOTER demo_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > # IMAGEPATH "/usr/local/apache/htdocs/tmp/" > IMAGEPATH "/home/site_intranet/mapserver/ms_demo/" > #IMAGEURL "/tmp/" > #IMAGEURL "/ms_demo/" > # LOG "demo.log" > END and the rest of the file > > My demo_init.html : > > > MapServer Demo Interface > >

MapServer Demo Interface

>


> Click on the initialize button to fire up the demo with 3 layers turned on will > be accessible for browsing. The > data are of Itasca County, MN and were derived, for the most part, from USGS > 1:24,000 quadrangles. Some things to note are: >

> value="/home/site_intranet/mapserver/ms_demo/demo.map"> > > > >
>
>


> > > Any suggestions ? > > TIA > > Stef > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From woodbri at swoodbridge.com Wed Feb 13 10:08:36 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 13 Feb 2002 13:08:36 -0500 Subject: [mapserver-users] symbols indexed by an attribute References: Message-ID: <3C6AABA4.8EE7C472@swoodbridge.com> http://mapserver.gis.umn.edu/mapscript.html Pushkar Pradhan wrote: > > Thanks Steve, > I am now trying to built mapscript with perl, but there doesn't seem to be > any documentation on that. Can anyone point me if there is docum. > available on this, otherwise I will try to use php/mapscript? > I welcome suggestions and your experience from everybody about perl vs. > php with mapscript. > > On Tue, 12 Feb 2002, Stephen Woodbridge wrote: > > > I think you need to use mapscript then it should not be a problem. Using > > mapscript implies that you build your web navigation tool using the Perl > > or PHP version of mapscript. > > > > -Steve > > > > Pushkar Pradhan wrote: > > > > > > Hi everyone, > > > My team wants me to create markers, lines and shades depend. upon > > > particular attribs. from the shapefile. > > > Eg. they created an attr. Shade_sym which is a no., that no. should be > > > used to fetch symbol from the map file e.g. if Shade_sym = 29, the 29th > > > symbol from the map file must be used. > > > I do the foll. to accomplish the task: > > > CLASSITEM 'Shade_sym' > > > CLASS > > > NAME "sym = 29" > > > EXPRESSION ([Shade_sym] EQ 29) > > > SYMBOL 29 > > > SIZE 2 > > > COLOR 114 24 124 > > > END > > > Okay I think this is the optimal way, unless any body has other ideas. > > > But they also want me to read COLOR AND/OR SIZE for the symbol from a > > > file, e.g. the foll. is such a file, the first no. being the symbol no.: > > > # value red green blue > > > > > > 1 255 250 250 > > > 2 248 248 255 > > > 3 245 245 245 > > > 4 220 220 220 > > > 5 255 250 240 > > > Thus I should be able to use the attr. Shade_sym's value 29 to index into > > > this file and assign the RGB values to COLOR? > > > Is there a way to do this? I've tried to be very brief. > > > Thanks, > > > ------------------------------------------------------------------------------ > > > PUSHKAR S. PRADHAN > > > Research Assistant > > > MISSISSIPPI STATE UNIVERSITY, > > > STARKVILLE, MS 39759. > > > > > > Engineering Research Center > > > Box 9627 > > > Mississippi State, MS 39762-9627 > > > ------------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------------ > PUSHKAR S. PRADHAN > Research Assistant > MISSISSIPPI STATE UNIVERSITY, > STARKVILLE, MS 39759. > > Engineering Research Center > Box 9627 > Mississippi State, MS 39762-9627 > ------------------------------------------------------------------------------ From TMitchell at lignum.com Wed Feb 13 10:07:23 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 13 Feb 2002 10:07:23 -0800 Subject: [mapserver-users] newbie question : Message-ID: Did you download the demo data for version 3.4 or 3.5? It sounds like you might have downloaded the latest (3.5) version and some of the settings are different and won't work the same with mapserver 3.4. Tyler Stephane MOREL To: mapserver-users at lists.gis.umn.edu Sent by: cc: owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: [mapserver-users] newbie question : 02/13/2002 09:15 AM Hi I've installed mapserver 3.4 on linux machine running Suse 7.2 Every things works perfectly well. When I run http://myserver/cgi-bin/mapserv, I've got the following answer : No query information to decode. QUERY_STRING is set, but empty. If I understand well it means that mapserver is correctly installed Am I right ? I've downloaded the demo. When I run the demo_init.html I can see the fisrt window and when I click on the initialize button I can see the demo interface but not the map. When I look in the directory where I put the mapserver demo I can see that the DEMO1215465488.gif has been created. So why can I can't see the gif file in my browser ? My demo.map : # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 SYMBOLSET symbols/symbols.sym EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 # IMAGEPATH "/usr/local/apache/htdocs/tmp/" IMAGEPATH "/home/site_intranet/mapserver/ms_demo/" #IMAGEURL "/tmp/" #IMAGEURL "/ms_demo/" # LOG "demo.log" END and the rest of the file My demo_init.html : MapServer Demo Interface

MapServer Demo Interface


Click on the initialize button to fire up the demo with 3 layers turned on will be accessible for browsing. The data are of Itasca County, MN and were derived, for the most part, from USGS 1:24,000 quadrangles. Some things to note are:


Any suggestions ? TIA Stef From TMitchell at lignum.com Wed Feb 13 10:51:48 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 13 Feb 2002 10:51:48 -0800 Subject: [mapserver-users] color. jpegs not showin up Message-ID: But your mapserver isn't configured to display jpeg support. When you do: > mapserv -v you need to have it saying OUTPUT=JPEG in order for mapserver to create images in that format. GDAL will allow you to READ JPEG images for mapserv to display them. But mapserver needs to be configured to display/output them. If you don't want to recompile mapserver, then switch to using PNG files instead since it is already supported in your mapserver program. I'm not sure what is involved, but there is an image type setting in your map file that specifies which format to use. I suspect it is set to JPEG right now - try changing it to PNG. Tyler Pushkar Pradhan To: mapserver-users at lists.gis.umn.edu Sent by: cc: owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: [mapserver-users] color. jpegs not showin up 02/13/2002 09:07 AM I am using gdal 1.1.5 to display 24, 8 bit TIFFs. As suggested by Frank Warmerdam I got my TIFFs to display after I compiled gdal after configuring it with internal tiff and geotiff libraries. However I still get an error when I try to display colored jpegs: drawJPEG(): Image handling error. JPEG support is not available. These are my configs: Banshee[20] pushkar$ mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=TTF INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE Banshee[99] pushkar$ gdal-config --formats gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 sdts raw dted mem jdem envisat elas fit gif jpeg png I have disabled jpeg support in mapserv, and my gdal is configured to handle it. Still doesn't work? If anyone has experience with this please help. Thanks, ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From f.mcdavid at tlogicgis.com Wed Feb 13 11:01:03 2002 From: f.mcdavid at tlogicgis.com (Fred McDavid) Date: 13 Feb 2002 14:01:03 -0500 Subject: [mapserver-users] build issue with 3.5 and nightly Message-ID: <1013626863.13610.12.camel@lilbit> Hi, I've been experiencing a problem with the configure routines. The only error I get in the configure process is sed: can't read ./gdft/Makefile.in: No such file or directory which happens at the very end of the configure output. Running make yields the following output: cc -c -march=pentium -O3 -Wall @DEBUG_FLAGS@ -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ @WMS_ENABLED@ @WMS_LYR_ENABLED@ @ORACLESPATIAL_ENABLED@ -DUSE_TIFF -DUSE_JPEG -DUSE_GD_1_8 @PDF_ENABLED@ -DUSE_OGR @GDAL_ENABLED@ @POSTGIS_ENABLED@ @THREAD_FLAG@ -I/usr/include @PDF_INC@ -I/usr/include -I/usr/local/src/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/src/gdal-1.1.5/ogr -I/usr/local/src/gdal-1.1.5/ogr/../port @GDAL_INC@ @POSTGIS_INC@ @WWW_INC@ @ORACLESPATIAL_INC@ maptemplate.c -o maptemplate.o cc: cannot specify -o with -c or -S and multiple compilations make: *** [maptemplate.o] Error 1 I've managed to get mapserver to compile by writing a script to "clean" the offending assignments in Makefile, but this yields a as-of-yet useless binary (can't load a reference image...seems to be due to -DUSE_GD_ not getting set at compile time. Would anyone have any useful info WRT tracking this down? --Fred From shussain at atsincorp.com Wed Feb 13 11:11:10 2002 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Wed, 13 Feb 2002 14:11:10 -0500 Subject: [mapserver-users] attribute query error Message-ID: <4D25CDA67110D3119FFB0008C707D7A7051F14@DEATHSTAR> Hi Friends, Thanks for your help, Here is the link i am passing to display the attribute queries. http://208.163.164.119:6500/cgi-bin/mapserv?map=../htdocs/pams1/pams.map&lay ers=flightline&mode=itemnquery&zoomdir=0&imgxy=585 295&imgext=300434 -148033 322234 1655445&zoomsize=2&mapext=-252600 -148033 274400 165545&qlayer=flightline&map_flightline_header=mapdisplay.html&map_flightlin e_template=zoomto.html&item=Pams_code&value=^204A$&item=Pams_code&value=^218 A$ Pams_code is the attribute in flightline shape file. msQueryByAttributes(): General error message. No query layer defined. I am using mapserver 3.5, windows 2000, apache. Can you tell me whats wrong in that link. Is there any examples in mapserver site for attribute queries?. where i can found these documentation. Thanks, Anwar -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Wednesday, February 13, 2002 12:18 AM To: shussain at atsincorp.com Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Query Error It's not a mapfile problem, rather a problem with the CGI query. With attribute queries you set the qlayer variable so the server knows which layer to process. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Shaik Anwar Hussain 02/12/02 14:45 PM >>> Hi Friends, I am trying to display the map by query selection. I am gettting the following error. Does any one can help me to fix this error. msQueryByAttributes(): General error message. No query layer defined. I am using mapserver 3.5, windows 2000, apache. Thanks, Anwar www.atsincorp.com here is my map file. # # Start of map file - created Thu Jan 24 11:36:43 2002 # NAME PAMS SIZE 585 295 EXTENT -252600 -148033.591 274400 165545.107 UNITS meters SHAPEPATH 'e:\pams\pamsdata/' SYMBOLSET "C:\Program Files\Apache Group\Apache\htdocs\Symbols\symbols.sym" # # Start of web interface definition # WEB TEMPLATE 'mapdisplay.html' IMAGEPATH 'C:\Program Files\Apache Group\Apache\htdocs\mapimages\' IMAGEURL '/mapimages/' LOG 'accessLog.txt' END #WEB # # Start of reference map # QUERYMAP STATUS ON STYLE SELECTED END # QUERYMAP REFERENCE SIZE 136 110 #IMAGE 'C:\Program Files\Apache Group\Apache\htdocs\pams1\ref_map.jpg' IMAGE 'C:\Program Files\Apache Group\Apache\htdocs\pams1\refmap1.jpg' EXTENT -255899 -190124 279677 210767 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END #REFERENCE # # Start of legend # LEGEND IMAGECOLOR 205 205 205 KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 POSITION UR END STATUS ON END #LEGEND # # Start of scalebar # SCALEBAR STATUS EMBED STYLE 0 IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE TINY END #LABEL SIZE 150 4 COLOR 245 245 245 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES POSITION LR INTERVALS 5 END #SCALEBAR # # Start of layer definitions # LAYER NAME "municipalities" TYPE Polygon STATUS default DATA 'mcd' HEADER 'municipalities_header.html' TEMPLATE "municipalities_query.html" CLASS Name 'Municipalities' COLOR -1 -1 -1 OUTLINECOLOR 206 213 224 END # CLASS END # LAYER LAYER NAME "district" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS default DATA 'district' HEADER 'district_header.html' TEMPLATE "district_query.html" CLASS Name 'District' COLOR -1 -1 -1 SYMBOL 'circle' SIZE 3 OUTLINECOLOR 0 0 255 END # CLASS END # LAYER LAYER NAME "county" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS default DATA 'county' LABELMINSCALE 70000 LABELITEM 'County__' HEADER 'county_header.html' TEMPLATE "county_query.html" CLASS LABEL COLOR 0 0 0 ANTIALIAS True END # LABEL Name 'County' COLOR -1 -1 -1 OUTLINECOLOR 0 0 255 END # CLASS END # LAYER LAYER NAME "stateroutes" STATUS default PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE line MAXSCALE 850000 #MINSCALE 1000 DATA 'stateroutes' HEADER 'stateroutes_header.html' TEMPLATE "stateroutes_query.html" CLASS Name 'Stateroutes' COLOR 232 155 143 OUTLINECOLOR 0 0 0 #SYMBOL 'circle' #SIZE 3 END # CLASS END # LAYER LAYER NAME "drgs" TYPE raster TILEINDEX "drgtile" TILEITEM "location" STATUS on MAXSCALE 150000 END # LAYER LAYER NAME "quads" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS on MINSCALE 150000 DATA 'quadsheets' HEADER 'quads_header.html' TEMPLATE "quads_query.html" CLASS Name 'Quads' COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER LAYER NAME "flightline" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE polygon STATUS off DATA 'ascot_lin' HEADER 'flightline_header.html' TEMPLATE "flightline_query.html" CLASS Name 'Flight Lines' #COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 2 END # CLASS END # LAYER LAYER NAME "block" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Polygon STATUS off DATA 'ascot_prj' HEADER 'block_header.html' TEMPLATE "block_query.html" CLASS Name 'Blocks' #COLOR 152 50 32 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 4 END # CLASS END # LAYER LAYER NAME "photo" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE Point STATUS off DATA 'ascot_pho' HEADER 'photo_header.html' TEMPLATE "photo_query.html" CLASS Name 'Photos' COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 6 END # CLASS END # LAYER END # MAPFILE From warmerdam at pobox.com Wed Feb 13 11:16:01 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 13 Feb 2002 14:16:01 -0500 Subject: [mapserver-users] color. jpegs not showin up References: Message-ID: <3C6ABB71.4060801@pobox.com> Pushkar Pradhan wrote: > I am using gdal 1.1.5 to display 24, 8 bit TIFFs. As suggested by Frank > Warmerdam I got my TIFFs to display after I compiled gdal after > configuring it with internal tiff and geotiff libraries. > However I still get an error when I try to display colored jpegs: > drawJPEG(): Image handling error. JPEG support is not available. > These are my configs: > Banshee[20] pushkar$ mapserv -v > MapServer version 3.5 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=TTF INPUT=EPPL7 > INPUT=GDAL INPUT=SHAPEFILE > Banshee[99] pushkar$ gdal-config --formats > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 sdts raw dted mem jdem > envisat elas fit gif jpeg png > I have disabled jpeg support in mapserv, and my gdal is configured > to handle it. Still doesn't work? > If anyone has experience with this please help. Thanks, Pushkar, The problem is that the internal MapServer drawRaster() code recognises this as a JPEG and calls drawJPEG() on it which reports that JPEG support is not available. I used to have the same problem with TIFF, but I modified mapraster.c to avoid trying drawTIFF() if tiff was not configured and gdal was. I have just committed a similar change for JPEG. Please get the latest mapraster.c from CVS and rebuild. It shouldn't be necessary to reconfigure. If you don't have ready access to CVS let me know and I will email it directly to you. Sorry for the confusion ... I forgot about this "issue". Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From f.mcdavid at tlogicgis.com Wed Feb 13 13:12:53 2002 From: f.mcdavid at tlogicgis.com (Fred McDavid) Date: 13 Feb 2002 16:12:53 -0500 Subject: [mapserver-users] build issue with 3.5 and nightly In-Reply-To: <1013626863.13610.12.camel@lilbit> References: <1013626863.13610.12.camel@lilbit> Message-ID: <1013634773.11234.17.camel@lilbit> Everyone, Please disregard my previous message. This was the result of cruft in my build scripts. The issue is resolved and was due to (somewhat frstrating and well hidden) carelessness. The nightly release built fine and, although I haven't tested it, I have an idea 3.5 would too since I was seeing the same problems with it. Regards, --Fred On Wed, 2002-02-13 at 14:01, Fred McDavid wrote: > Hi, > > I've been experiencing a problem with the configure routines. The only > error I get in the configure process is > > sed: can't read ./gdft/Makefile.in: No such file or directory > > which happens at the very end of the configure output. Running make > yields the following output: > > cc -c -march=pentium -O3 -Wall @DEBUG_FLAGS@ -DIGNORE_MISSING_DATA > -DUSE_EPPL -DUSE_PROJ @WMS_ENABLED@ @WMS_LYR_ENABLED@ > @ORACLESPATIAL_ENABLED@ -DUSE_TIFF -DUSE_JPEG -DUSE_GD_1_8 > @PDF_ENABLED@ -DUSE_OGR @GDAL_ENABLED@ @POSTGIS_ENABLED@ @THREAD_FLAG@ > -I/usr/include @PDF_INC@ -I/usr/include > -I/usr/local/src/gdal-1.1.5/ogr/ogrsf_frmts > -I/usr/local/src/gdal-1.1.5/ogr -I/usr/local/src/gdal-1.1.5/ogr/../port > @GDAL_INC@ @POSTGIS_INC@ @WWW_INC@ @ORACLESPATIAL_INC@ maptemplate.c -o > maptemplate.o > cc: cannot specify -o with -c or -S and multiple compilations > make: *** [maptemplate.o] Error 1 > > I've managed to get mapserver to compile by writing a script to "clean" > the offending assignments in Makefile, but this yields a as-of-yet > useless binary (can't load a reference image...seems to be due to > -DUSE_GD_ not getting set at compile time. > > Would anyone have any useful info WRT tracking this down? > > --Fred > From cabral at yadata.net Wed Feb 13 17:32:27 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Wed, 13 Feb 2002 22:32:27 -0300 Subject: [mapserver-users] problem with oracle spatial layer not showing up References: <3W4W65ONNIFBATNYTIER84ONA9LF9.3c6a67bb@bartsdt> Message-ID: <008c01c1b4f7$771a0400$0207a8c0@naumaki> First, make sure you are using syntax 2 for the DATA statement (previous email). Secondly, I'll let our friend Hughes Parvillers to help you optimize your access to SDO data. He has plenty more of experience than I have in this Oracle stuff, so you are in good hands =) Any comments H/P? Rod. ps: I have a mapfile that gets static data from shapefiles, and the dynamic data comes from an SDO database. It's a PII 933Mhz w/ 512mb (Linux), and the performance is less than 2 secs. Perhaps you could split your info like I did to improve performance. ----- Original Message ----- From: "Bart van den Eijnden" To: ; "Rodrigo Cabral" Sent: Wednesday, February 13, 2002 10:18 AM Subject: Re: [mapserver-users] problem with oracle spatial layer not showing up Hi Rodrigo, thanks, indeed it was the omission of a class which caused the problem. I have the map now showing, but performance is really poor (22 seconds for one map). Do you have an indication of how performance should be and how to increase performance? Thanks in advance, Bart 2/13/2002 3:05:38 PM, "Rodrigo Cabral" wrote: >Dear Bart (and other Oracle Spatial - SDO - users), > >The syntax for the mapfile DATA statement has been updated in order to >support SRID definitions (looks like you're using a workaround I posted in >the list sometime ago). Check your maporaclespatial.c for revision 1.8. The >syntax is: > >DATA "shape FROM table" (as before) >DATA "shape FROM table USING SRID srid_number" (new) >DATA "shape FROM (SELECT stmt)" (as before) > >Syntax 2 accepts a SDO SRID number, which must be exactly the same number >used in the SDO_SRID attribute for 'shape' in 'table'. Old code assumed the >srid to be NULL, causing a SDO SRID mismatch error when using syntax 1 - the >workaround was to use syntax 3. However, syntax 3 is not recommended because >it returns ALL shapes from the SELECT stmt, regardless of the current image >extent (therefore, making mapserver to draw/work-with non-visible elements). >Thus, Syntax 2 solves the mismatch error problem (performance-wise, syntax 1 >& 2 are equal except that syntax 1 uses a NULL srid for the query statement, >while syntax 2 has a defined srid). > >However, I don't think that is what is causing your problem. > >First of all, I believe I read somewhere that you must have a CLASS to be >defined. Apparently you commented out the only class you had. So, try >using simply (for polygons): > >CLASS > COLOR 128 128 128 # gray-filled > OUTLINECOLOR 0 0 0 # black contour >END > >Secondly, there's the STATUS, which I believe should be DEFAULT to work. Not >sure on that, but you should try anyway... > >STATUS DEFAULT > >Finally, check EXTENT to see if it conforms to the data stored in your >shapefile column (POLYGOON). Run this select statement to count how many >shapes you should see in the default view. > >SELECT count(A.polygoon) FROM GGA_GEMEENTE_EFEMERIDEN A >WHERE SDO_FILTER( A.polygoon, MDSYS.SDO_GEOMETRY( >2003, , NULL, >MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), >MDSYS.SDO_ORDINATE_ARRAY( , , , )), >'querytype=window') = 'TRUE' > >where: >- should be your srid (or A.SDO_SRID); >- and come from your EXTENTS (i.e. with your extents it would be >x1=0; y1=275000; x2=365000; y2=700000) > >Cheers, >Rod. > >----- Original Message ----- >From: "Bart van den Eijnden" >To: >Cc: >Sent: Tuesday, February 12, 2002 2:50 PM >Subject: [mapserver-users] problem with oracle spatial layer not showing up > > >Hi, > >I have a problem with an Oracle Spatial layer not showing up. Can anybody >please help? Thanks in advance! >EPSG:29112 is the Dutch system (Rijksdriehoek a.k.a RD) > >In the logfile I get this: > >Tue Feb 12 18:22:12 2002,2200,192.168.3.141,DEMO,0,18458.421916 >323458.421916 346541.578084 651541.578084,182500.000000 >487500.000000,oracle_test ,normal execution > >The mapfile looks like this > ># ># Start of map file ># >NAME BART >STATUS ON >SIZE 600 600 >EXTENT 0 275000 365000 700000 >UNITS METERS >SHAPEPATH "data" >IMAGECOLOR 255 255 255 > ># ># Start of web interface definition (including WMS enabling metadata) ># >WEB > HEADER demo_header.html > TEMPLATE demo.html > FOOTER demo_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "set in demo_init.html" > IMAGEURL "set in demo_init.html" > LOG "demo.log" > METADATA > WMS_TITLE "UMN MapServer Itasca Demo" > WMS_ABSTRACT "This is the UMN MapServer demonstration application for >Itasca County located in north central Minnesota." > WMS_ACCESSCONSTRAINTS none > > # change this value to match your setup > WMS_ONLINERESOURCE >"http://bartsdt/mapserver_demos/itasca/demo_init.html" > > WMS_SRS "EPSG:29112" > END >END > ># ># Start of layer definitions ># > >LAYER > NAME oracle_test > TYPE POINT > CONNECTIONTYPE oraclespatial > CONNECTION "robert/robert at des" > DATA "POLYGOON FROM (SELECT POLYGOON FROM GGA_GEMEENTE_EFEMERIDEN)" > STATUS ON > #LABELITEM "PVE_CODE" > #CLASSITEM "PVE_CODE" > #LABELMAXSCALE 500000 > #CLASS > # EXPRESSION /./ > # COLOR -1 -1 -1 > # LABEL > # COLOR 0 0 0 > # SHADOWCOLOR 218 218 218 > # SHADOWSIZE 2 2 > # TYPE BITMAP > # SIZE MEDIUM > # POSITION CC > # PARTIALS FALSE > # BUFFER 2 > END > END > > METADATA > WMS_TITLE "Minor Civil Divisions" > WMS_ABSTRACT "Minor civil divisions for Itasca County. (annotation >only)" > WMS_SRS "EPSG:29112" > END >END > > > >-- >Bart van den Eijnden Geodan IT BV >Email: bart at geodan.nl Buitenhaven 27-A >Telefoon: 073-6925151 5211 TP 's-Hertogenbosch > > > -- Bart van den Eijnden Geodan IT BV Email: bart at geodan.nl Buitenhaven 27-A Telefoon: 073-6925151 5211 TP 's-Hertogenbosch From matt at aruke.com Wed Feb 13 23:16:02 2002 From: matt at aruke.com (Matt Carlson) Date: Thu, 14 Feb 2002 16:16:02 +0900 Subject: [mapserver-users] thanks mapserver References: <1013626863.13610.12.camel@lilbit> <1013634773.11234.17.camel@lilbit> Message-ID: <000901c1b527$7677cfc0$0400a8c0@matt> a little late just wanted to post the site we did using mapserver technology back in december, thanks to mapserver and the list for help along the way. It works great with no problems so far! http://www.minato-ala.net/map/ please let me know if there is anything else outside of this notice I need to do. also, we are looking into an open source solution involving jpeg2000 to progressively show scalable satalite images over the net, any advice? thanks, matt Mapserver 3.3.011 TurboLinux 6.5 packages used: proj4 gd1.8.4 freetype2 zlib, jpeg, libpng source code was modified a little to support jpeg and gd1.8.4 From stephane.morel at vanoise.com Thu Feb 14 01:42:09 2002 From: stephane.morel at vanoise.com (Stephane MOREL) Date: Thu, 14 Feb 2002 09:42:09 +0000 Subject: [mapserver-users] newbie question : References: Message-ID: <3C6B8671.3E3767CB@vanoise.com> Thank you for all your answer : I guess several mistakes has been made : First, of course the line IMAGEURL was uncommented Second, I have downloaded mapserver 3.4 and the demo is version 3.3. I guess the best way is to reinstall all correctly Thanks again Pushkar Pradhan a ?crit : > You've commented out your image url path: > > #IMAGEURL "/tmp/" > > #IMAGEURL "/ms_demo/" > You need to point to your directory containing the images, and the path is > from the htdocs dir. (if it is apache). > > Hi > > > > I've installed mapserver 3.4 on linux machine running Suse 7.2 > > Every things works perfectly well. When I run http://myserver/cgi-bin/mapserv, > > I've got the following answer : No query information to decode. QUERY_STRING is > > set, but empty. > > If I understand well it means that mapserver is correctly installed > > Am I right ? > > > > I've downloaded the demo. When I run the demo_init.html I can see the fisrt > > window and when I click on the initialize button I can see the demo interface > > but not the map. > > When I look in the directory where I put the mapserver demo I can see that the > > DEMO1215465488.gif has been created. > > So why can I can't see the gif file in my browser ? > > > > My demo.map : > > # > > # Start of map file > > # > > NAME DEMO > > STATUS ON > > SIZE 600 600 > > SYMBOLSET symbols/symbols.sym > > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > > UNITS METERS > > SHAPEPATH "data" > > IMAGECOLOR 255 255 255 > > > > # > > # Start of web interface definition > > # > > WEB > > HEADER demo_header.html > > TEMPLATE demo.html > > FOOTER demo_footer.html > > MINSCALE 1000 > > MAXSCALE 1550000 > > # IMAGEPATH "/usr/local/apache/htdocs/tmp/" > > IMAGEPATH "/home/site_intranet/mapserver/ms_demo/" > > #IMAGEURL "/tmp/" > > #IMAGEURL "/ms_demo/" > > # LOG "demo.log" > > END and the rest of the file > > > > My demo_init.html : > > > > > > MapServer Demo Interface > > > >

MapServer Demo Interface

> >


> > Click on the initialize button to fire up the demo with 3 layers turned on will > > be accessible for browsing. The > > data are of Itasca County, MN and were derived, for the most part, from USGS > > 1:24,000 quadrangles. Some things to note are: > >

> > > value="/home/site_intranet/mapserver/ms_demo/demo.map"> > > > > > > > >
> >
> >


> > > > > > Any suggestions ? > > > > TIA > > > > Stef > > > > ------------------------------------------------------------------------------ > PUSHKAR S. PRADHAN > Research Assistant > MISSISSIPPI STATE UNIVERSITY, > STARKVILLE, MS 39759. > > Engineering Research Center > Box 9627 > Mississippi State, MS 39762-9627 > ------------------------------------------------------------------------------ -------------- next part -------------- A non-text attachment was scrubbed... Name: stephane.morel.vcf Type: text/x-vcard Size: 344 bytes Desc: Carte pour Stephane MOREL URL: From nachobenito75 at hotmail.com Thu Feb 14 02:01:06 2002 From: nachobenito75 at hotmail.com (Nacho Benito) Date: Thu, 14 Feb 2002 11:01:06 +0100 Subject: [mapserver-users] template files and php Message-ID: hello I'd like to know if it's possible to add php in template files without using mapscript (I would like to display some datas that are stored in mysql database) Can you help me) Thanks in advance Regards Nacho _________________________________________________________________ Hable con sus amigos en l?nea, pruebe MSN Messenger: http://messenger.msn.es From perik at azimuth.nl Thu Feb 14 02:05:57 2002 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Thu, 14 Feb 2002 11:05:57 +0100 Subject: [mapserver-users] Can i combine Rosa and USEMAP Message-ID: <5.1.0.14.2.20020214105917.00a2e5f0@localhost> Hi All, I created an image using a HTML USEMAP like following: info about the point .....repeated for every POINT in a shape //creating the image: echo"width HEIGHT=$gpoMap->height NAME=clickmap"; USEMAP=#points --> creates circle-references for every point. Circle (50 radius) around the coordinates of the point. When hovering with the mouse over the created circle-reference info is displayed using the HTML ALT option. 'Normally' an image would look something like: echo""; As it's all based on Gmap i have not found an option to add this to the Rosa applet. Is it possible to combine Rosa with the Usemap secribed above. Thanks, Erwin From stepan.kafka at centrum.cz Thu Feb 14 03:25:01 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Thu, 14 Feb 2002 12:25:01 +0100 Subject: [mapserver-users] template files and php In-Reply-To: Message-ID: <001701c1b54a$3df63ec0$7e3c2fc3@HSGIS> If you can only get data from your database during map query, you can use URL in your query template definition: TEMPLATE "httpd://url.of.your.php_script.php?id=[ID]" where [ID]... are the attribute names of your layer. Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Nacho > Benito > Odesl?no: 14. ?nora 2002 11:01 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] template files and php > > > hello > I'd like to know if it's possible to add php in template files > without using > mapscript (I would like to display some datas that are stored in mysql > database) > Can you help me) > Thanks in advance > Regards > Nacho > > _________________________________________________________________ > Hable con sus amigos en l?nea, pruebe MSN Messenger: > http://messenger.msn.es > > From Ulrich.Mueller at bd.so.ch Thu Feb 14 06:17:36 2002 From: Ulrich.Mueller at bd.so.ch (=?ISO-8859-1?Q?M=FCller_Ulrich?=) Date: Thu, 14 Feb 2002 15:17:36 +0100 Subject: [mapserver-users] Itemquery problem Message-ID: <5B025B1F39D6D4119F5700508BEEEC6633C807@srsofaioi4546.ktso.ch> Hi Listers This may be one of the most often asked questions: Why do I not get the correct result from ITEMQUERY? I have a polygon layer (Shape) named parznum. It has about 50000 records and a numeric field named sys_obid. Among those 50000 records there is exactly one with sys_obid=25489. Now I want to run an itemquery to find this record with sys_obid=25489. With JavaScript I create the following URL: ...&qlayer=parznum&mode=itemquery&item=sys_obid&value=25489&... I get no results. I also tried it with a regular expression: ...&qlayer=parznum&mode=itemquery&item=sys_obid&value=^25489$&... Again - no results. As a test I then used this url: ...&qlayer=parznum&mode=itemquery&item=sys_obid&value=489&... As result I get a record with sys_obid=48966. But that is not what I want. Any ideas? Uli LAYER NAME parznum STATUS ON DATA "kva/av93/liegentest" TYPE POINT CLASSITEM "sys_obid" QUERYITEM "sys_obid" CLASS END QUERY TEMPLATE "http://intraso.so.ch/sogis/adresse.php?applic_id=[applic_id]&shpmid=[shpmid ]" END END END # Map File -------------- next part -------------- A non-text attachment was scrubbed... Name: M?ller Ulrich.vcf Type: application/octet-stream Size: 367 bytes Desc: not available URL: From shussain at atsincorp.com Thu Feb 14 08:08:13 2002 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Thu, 14 Feb 2002 11:08:13 -0500 Subject: [mapserver-users] symbol definition error Message-ID: <4D25CDA67110D3119FFB0008C707D7A7051F16@DEATHSTAR> Hi Friends, Does any one can help me to fix this problem. getSymbol(): Symbol definition error. (204):(154) getSymbol(): Symbol definition error. (130):(154) getSymbol(): Symbol definition error. (210):(154) depends on the query selection. here i am attaching my symbol file. Can you please help me whats wrong in that. Thanks for your most valuable time, Anwar www.atsincorp.com <> -------------- next part -------------- A non-text attachment was scrubbed... Name: symbols.sym Type: application/octet-stream Size: 984 bytes Desc: not available URL: From Chip.Hankley at GASAI.Com Thu Feb 14 08:28:41 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 14 Feb 2002 10:28:41 -0600 Subject: [mapserver-users] PNG, which Netscape Version Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB8E5@postoffice.GASAI.Com> Can anyone tell me the minimum version of Netscape required to view the flavor of PNG images that MapServer produces? (I'm using PHP / Mapscript with the 10/10/2001 dll from DM Solutions). Thanks! Chip Hankley From gsathis at yahoo.com Thu Feb 14 08:39:49 2002 From: gsathis at yahoo.com (Sathiskumar Govindasamy) Date: Thu, 14 Feb 2002 10:39:49 -0600 Subject: [mapserver-users] Java Mapscript Message-ID: <3C6BE855.4090408@yahoo.com> Hi, Have anyone played with Java Mapscript ? I already have an existing Java servlets and I have to interface the mapserver with it. I wanted to know if there are any basic examples of how to use it. Sathis From williams at wildweb.org Thu Feb 14 09:41:57 2002 From: williams at wildweb.org (Doug Williams) Date: Thu, 14 Feb 2002 10:41:57 -0700 Subject: [mapserver-users] symbols indexed by an attribute In-Reply-To: <3C6AABA4.8EE7C472@swoodbridge.com> References: <3C6AABA4.8EE7C472@swoodbridge.com> Message-ID: <02021410415701.02829@grove.giantcedars.com> Beware: that documentation is for Version 3.3 perl mapscript. On Wednesday 13 February 2002 11:08, Stephen Woodbridge wrote: > http://mapserver.gis.umn.edu/mapscript.html > > Pushkar Pradhan wrote: > > Thanks Steve, > > I am now trying to built mapscript with perl, but there doesn't seem to > > be any documentation on that. Can anyone point me if there is docum. > > available on this, otherwise I will try to use php/mapscript? > > I welcome suggestions and your experience from everybody about perl vs. > > php with mapscript. > > > > On Tue, 12 Feb 2002, Stephen Woodbridge wrote: > > > I think you need to use mapscript then it should not be a problem. > > > Using mapscript implies that you build your web navigation tool using > > > the Perl or PHP version of mapscript. > > > > > > -Steve > > > > > > Pushkar Pradhan wrote: > > > > Hi everyone, > > > > My team wants me to create markers, lines and shades depend. upon > > > > particular attribs. from the shapefile. > > > > Eg. they created an attr. Shade_sym which is a no., that no. should > > > > be used to fetch symbol from the map file e.g. if Shade_sym = 29, the > > > > 29th symbol from the map file must be used. > > > > I do the foll. to accomplish the task: > > > > CLASSITEM 'Shade_sym' > > > > CLASS > > > > NAME "sym = 29" > > > > EXPRESSION ([Shade_sym] EQ 29) > > > > SYMBOL 29 > > > > SIZE 2 > > > > COLOR 114 24 124 > > > > END > > > > Okay I think this is the optimal way, unless any body has other > > > > ideas. But they also want me to read COLOR AND/OR SIZE for the symbol > > > > from a file, e.g. the foll. is such a file, the first no. being the > > > > symbol no.: # value red green blue > > > > > > > > 1 255 250 250 > > > > 2 248 248 255 > > > > 3 245 245 245 > > > > 4 220 220 220 > > > > 5 255 250 240 > > > > Thus I should be able to use the attr. Shade_sym's value 29 to index > > > > into this file and assign the RGB values to COLOR? > > > > Is there a way to do this? I've tried to be very brief. > > > > Thanks, > > > > --------------------------------------------------------------------- > > > >--------- PUSHKAR S. PRADHAN > > > > Research Assistant > > > > MISSISSIPPI STATE UNIVERSITY, > > > > STARKVILLE, MS 39759. > > > > > > > > Engineering Research Center > > > > Box 9627 > > > > Mississippi State, MS 39762-9627 > > > > --------------------------------------------------------------------- > > > >--------- > > > > ------------------------------------------------------------------------- > >----- PUSHKAR S. PRADHAN > > Research Assistant > > MISSISSIPPI STATE UNIVERSITY, > > STARKVILLE, MS 39759. > > > > Engineering Research Center > > Box 9627 > > Mississippi State, MS 39762-9627 > > ------------------------------------------------------------------------- > >----- From gabriel at ciasc.gov.br Thu Feb 14 14:36:20 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Thu, 14 Feb 2002 16:36:20 -0600 Subject: [mapserver-users] About Legend References: <5B025B1F39D6D4119F5700508BEEEC6633C807@srsofaioi4546.ktso.ch> Message-ID: <032d01c1b5a8$06467ae0$12d713ac@ciasc.gov.br> Is it possible to show a SYMBOL on the Legend from an ANNOTATION Layer ? Tanks. Ferrari, Gabriel From steve.lime at dnr.state.mn.us Thu Feb 14 10:47:33 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 14 Feb 2002 12:47:33 -0600 Subject: [mapserver-users] About Legend Message-ID: Yes, IF there is a symbol paired with the text. Otherwise no, what would you show? The only place I see a problem with that is when you're using LABELs as you would a normal symbol, usually from a TrueType font. If the latter is the case would you please file it in bugzilla as a feature request so we could add it later? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "gabriel" 02/14/02 04:36PM >>> Is it possible to show a SYMBOL on the Legend from an ANNOTATION Layer ? Tanks. Ferrari, Gabriel From jsmedsmo at gis.umn.edu Thu Feb 14 11:54:23 2002 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Thu, 14 Feb 2002 13:54:23 -0600 Subject: [mapserver-users] symbols indexed by an attribute References: <3C6AABA4.8EE7C472@swoodbridge.com> <02021410415701.02829@grove.giantcedars.com> Message-ID: <3C6C15EF.7070804@gis.umn.edu> We do have a per/mapscript document coming. Hopefully we'll have it online sometime next week. Jamie Doug Williams wrote: >Beware: that documentation is for Version 3.3 perl mapscript. > >On Wednesday 13 February 2002 11:08, Stephen Woodbridge wrote: > >>http://mapserver.gis.umn.edu/mapscript.html >> >>Pushkar Pradhan wrote: >> >>>Thanks Steve, >>>I am now trying to built mapscript with perl, but there doesn't seem to >>>be any documentation on that. Can anyone point me if there is docum. >>>available on this, otherwise I will try to use php/mapscript? >>>I welcome suggestions and your experience from everybody about perl vs. >>>php with mapscript. >>> >>>On Tue, 12 Feb 2002, Stephen Woodbridge wrote: >>> >>>>I think you need to use mapscript then it should not be a problem. >>>>Using mapscript implies that you build your web navigation tool using >>>>the Perl or PHP version of mapscript. >>>> >>>>-Steve >>>> >>>>Pushkar Pradhan wrote: >>>> >>>>>Hi everyone, >>>>>My team wants me to create markers, lines and shades depend. upon >>>>>particular attribs. from the shapefile. >>>>>Eg. they created an attr. Shade_sym which is a no., that no. should >>>>>be used to fetch symbol from the map file e.g. if Shade_sym = 29, the >>>>>29th symbol from the map file must be used. >>>>>I do the foll. to accomplish the task: >>>>> CLASSITEM 'Shade_sym' >>>>> CLASS >>>>> NAME "sym = 29" >>>>> EXPRESSION ([Shade_sym] EQ 29) >>>>> SYMBOL 29 >>>>> SIZE 2 >>>>> COLOR 114 24 124 >>>>> END >>>>>Okay I think this is the optimal way, unless any body has other >>>>>ideas. But they also want me to read COLOR AND/OR SIZE for the symbol >>>>>from a file, e.g. the foll. is such a file, the first no. being the >>>>>symbol no.: # value red green blue >>>>> >>>>>1 255 250 250 >>>>>2 248 248 255 >>>>>3 245 245 245 >>>>>4 220 220 220 >>>>>5 255 250 240 >>>>>Thus I should be able to use the attr. Shade_sym's value 29 to index >>>>>into this file and assign the RGB values to COLOR? >>>>>Is there a way to do this? I've tried to be very brief. >>>>>Thanks, >>>>>--------------------------------------------------------------------- >>>>>--------- PUSHKAR S. PRADHAN >>>>>Research Assistant >>>>>MISSISSIPPI STATE UNIVERSITY, >>>>>STARKVILLE, MS 39759. >>>>> >>>>>Engineering Research Center >>>>>Box 9627 >>>>>Mississippi State, MS 39762-9627 >>>>>--------------------------------------------------------------------- >>>>>--------- >>>>> >>>------------------------------------------------------------------------- >>>----- PUSHKAR S. PRADHAN >>>Research Assistant >>>MISSISSIPPI STATE UNIVERSITY, >>>STARKVILLE, MS 39759. >>> >>>Engineering Research Center >>>Box 9627 >>>Mississippi State, MS 39762-9627 >>>------------------------------------------------------------------------- >>>----- >>> > > From pushkar at ERC.MsState.Edu Thu Feb 14 11:51:44 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Thu, 14 Feb 2002 13:51:44 -0600 (CST) Subject: [mapserver-users] symbols indexed by an attribute In-Reply-To: <3C6C15EF.7070804@gis.umn.edu> Message-ID: Thank you everybody, I decided to go for PHP/Mapscript since it was well docum. and most of the people use that. This way I can search for examples/problems in the archives and get better support. On Thu, 14 Feb 2002, Jamie Smedsmo wrote: > We do have a per/mapscript document coming. Hopefully we'll have it > online sometime next week. > > Jamie > > Doug Williams wrote: > > >Beware: that documentation is for Version 3.3 perl mapscript. > > > >On Wednesday 13 February 2002 11:08, Stephen Woodbridge wrote: > > > >>http://mapserver.gis.umn.edu/mapscript.html > >> > >>Pushkar Pradhan wrote: > >> > >>>Thanks Steve, > >>>I am now trying to built mapscript with perl, but there doesn't seem to > >>>be any documentation on that. Can anyone point me if there is docum. > >>>available on this, otherwise I will try to use php/mapscript? > >>>I welcome suggestions and your experience from everybody about perl vs. > >>>php with mapscript. > >>> > >>>On Tue, 12 Feb 2002, Stephen Woodbridge wrote: > >>> > >>>>I think you need to use mapscript then it should not be a problem. > >>>>Using mapscript implies that you build your web navigation tool using > >>>>the Perl or PHP version of mapscript. > >>>> > >>>>-Steve > >>>> > >>>>Pushkar Pradhan wrote: > >>>> > >>>>>Hi everyone, > >>>>>My team wants me to create markers, lines and shades depend. upon > >>>>>particular attribs. from the shapefile. > >>>>>Eg. they created an attr. Shade_sym which is a no., that no. should > >>>>>be used to fetch symbol from the map file e.g. if Shade_sym = 29, the > >>>>>29th symbol from the map file must be used. > >>>>>I do the foll. to accomplish the task: > >>>>> CLASSITEM 'Shade_sym' > >>>>> CLASS > >>>>> NAME "sym = 29" > >>>>> EXPRESSION ([Shade_sym] EQ 29) > >>>>> SYMBOL 29 > >>>>> SIZE 2 > >>>>> COLOR 114 24 124 > >>>>> END > >>>>>Okay I think this is the optimal way, unless any body has other > >>>>>ideas. But they also want me to read COLOR AND/OR SIZE for the symbol > >>>>>from a file, e.g. the foll. is such a file, the first no. being the > >>>>>symbol no.: # value red green blue > >>>>> > >>>>>1 255 250 250 > >>>>>2 248 248 255 > >>>>>3 245 245 245 > >>>>>4 220 220 220 > >>>>>5 255 250 240 > >>>>>Thus I should be able to use the attr. Shade_sym's value 29 to index > >>>>>into this file and assign the RGB values to COLOR? > >>>>>Is there a way to do this? I've tried to be very brief. > >>>>>Thanks, > >>>>>--------------------------------------------------------------------- > >>>>>--------- PUSHKAR S. PRADHAN > >>>>>Research Assistant > >>>>>MISSISSIPPI STATE UNIVERSITY, > >>>>>STARKVILLE, MS 39759. > >>>>> > >>>>>Engineering Research Center > >>>>>Box 9627 > >>>>>Mississippi State, MS 39762-9627 > >>>>>--------------------------------------------------------------------- > >>>>>--------- > >>>>> > >>>------------------------------------------------------------------------- > >>>----- PUSHKAR S. PRADHAN > >>>Research Assistant > >>>MISSISSIPPI STATE UNIVERSITY, > >>>STARKVILLE, MS 39759. > >>> > >>>Engineering Research Center > >>>Box 9627 > >>>Mississippi State, MS 39762-9627 > >>>------------------------------------------------------------------------- > >>>----- > >>> > > > > > > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From imap at chesapeake.net Thu Feb 14 11:44:44 2002 From: imap at chesapeake.net (imap at chesapeake.net) Date: Thu, 14 Feb 2002 14:44:44 -0500 Subject: [mapserver-users] MS_ERRORFILE on Windows machine Message-ID: <3C6C13AC.22A779FD@chesapeake.net> Does anyone know how to set the environment variable MS_ERRORFILE on a WinNT/2k machine running IIS? Thanks, Chris Stuber (mapsurfer) From woodbri at swoodbridge.com Thu Feb 14 13:06:16 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Feb 2002 16:06:16 -0500 Subject: [mapserver-users] MS_ERRORFILE on Windows machine References: <3C6C13AC.22A779FD@chesapeake.net> Message-ID: <3C6C26C8.2EA443F1@swoodbridge.com> Chris, Right click on "My Computer" select "properties" click on the "Environment" tab set the System Variables (must be Administrator). I think you can also set it specificaly for IIS from "Control Panel" and using the IIS Manager icon, the name escapes me at the moment. Anyway, I think it has the ability to set Environment varibales from there. -Steve imap at chesapeake.net wrote: > > Does anyone know how to set the environment variable > MS_ERRORFILE on a WinNT/2k machine running IIS? > > Thanks, > > Chris Stuber (mapsurfer) From hugues at parvillers.com Thu Feb 14 13:06:30 2002 From: hugues at parvillers.com (PARVILLERS) Date: Thu, 14 Feb 2002 22:06:30 +0100 Subject: [mapserver-users] WIN32, 3.5 and PROJ ? Message-ID: <3C6C26D6.D6FEA93@parvillers.com> Hello, who can help me to understand what projection and mapserver on win32. Tks in advance Hugues P. From ed at topozone.com Thu Feb 14 13:23:01 2002 From: ed at topozone.com (Ed McNierney) Date: Thu, 14 Feb 2002 16:23:01 -0500 Subject: [mapserver-users] PNG, which Netscape Version Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7CBC@mercator.topozone.com> Chip - Generally, version 4.04 and above. For all the gory details (along with other PNG application support info) visit http://www.libpng.org/pub/png/pngapbr.html - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 11:29 AM To: MapServer List (E-mail) Subject: [mapserver-users] PNG, which Netscape Version Can anyone tell me the minimum version of Netscape required to view the flavor of PNG images that MapServer produces? (I'm using PHP / Mapscript with the 10/10/2001 dll from DM Solutions). Thanks! Chip Hankley From Chip.Hankley at GASAI.Com Thu Feb 14 13:35:30 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 14 Feb 2002 15:35:30 -0600 Subject: [mapserver-users] PNG, which Netscape Version Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB8E9@postoffice.GASAI.Com> Thanks Ed...I had read that, and couldn't figure out whay my images weren't working in Netscape (still can't for that matter). Probably should've offered up some more info from the beginning. After some experimentation, this seems to be an IIS (IIS 5 on Win2k). I'm trying to view some PNG images in NS. If I put a png file into an HTML document (using the IMG tag), I can open the file directly in NS, and it works fine (e.g. I open c:\myfiles\png_test.html in NS). If on the other hand, I try to bring up the file throught the web server (e.g. http://localhost/png_test.html) it comes up as a broken link in NS. Either way works fine in IE. I can view the PNG images through NS on the libpng test page as well... so, it seems fairly certain that this is a "feature" of IIS. I found something on libpng about fixing this (basically adding an entry for PNG to the MIME map in IIS), but this does not seem to have helped. Any ideas would be helpful... if I figure it out, I'll post. Chip -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:23 PM To: Hankley, Chip; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - Generally, version 4.04 and above. For all the gory details (along with other PNG application support info) visit http://www.libpng.org/pub/png/pngapbr.html - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 11:29 AM To: MapServer List (E-mail) Subject: [mapserver-users] PNG, which Netscape Version Can anyone tell me the minimum version of Netscape required to view the flavor of PNG images that MapServer produces? (I'm using PHP / Mapscript with the 10/10/2001 dll from DM Solutions). Thanks! Chip Hankley From ncowham at forumone.com Thu Feb 14 13:36:33 2002 From: ncowham at forumone.com (Nyk Cowham) Date: Thu, 14 Feb 2002 16:36:33 -0500 Subject: [mapserver-users] MS_ERRORFILE on Windows machine Message-ID: <167A8E86FDBBC543A6B88985A430D5F51B5663@pluto.forumone.com> > Does anyone know how to set the environment variable > MS_ERRORFILE on a WinNT/2k machine running IIS? As far as I am aware there is no equivalent of apache's setvar in the .htaccess file to set environment variables for specific web roots. You can probably get away with setting a global Windows environment variable with: SET MS_ERRORFILE='...' in your autoexec.bat file. If anyone knows how to make IIS set server environment variables that are scoped to particular virtual domains, without having to script the IIS object model I would love to know about it. Nyk Cowham From ed at topozone.com Thu Feb 14 13:40:27 2002 From: ed at topozone.com (Ed McNierney) Date: Thu, 14 Feb 2002 16:40:27 -0500 Subject: [mapserver-users] PNG, which Netscape Version Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7CBD@mercator.topozone.com> Chip - Can you put this up on a public server we could look at? I'm serving PNG images from an IIS/Win2K server to Netscape clients all the time... - Ed -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 4:35 PM To: Ed McNierney; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Thanks Ed...I had read that, and couldn't figure out whay my images weren't working in Netscape (still can't for that matter). Probably should've offered up some more info from the beginning. After some experimentation, this seems to be an IIS (IIS 5 on Win2k). I'm trying to view some PNG images in NS. If I put a png file into an HTML document (using the IMG tag), I can open the file directly in NS, and it works fine (e.g. I open c:\myfiles\png_test.html in NS). If on the other hand, I try to bring up the file throught the web server (e.g. http://localhost/png_test.html) it comes up as a broken link in NS. Either way works fine in IE. I can view the PNG images through NS on the libpng test page as well... so, it seems fairly certain that this is a "feature" of IIS. I found something on libpng about fixing this (basically adding an entry for PNG to the MIME map in IIS), but this does not seem to have helped. Any ideas would be helpful... if I figure it out, I'll post. Chip -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:23 PM To: Hankley, Chip; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - Generally, version 4.04 and above. For all the gory details (along with other PNG application support info) visit http://www.libpng.org/pub/png/pngapbr.html - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 11:29 AM To: MapServer List (E-mail) Subject: [mapserver-users] PNG, which Netscape Version Can anyone tell me the minimum version of Netscape required to view the flavor of PNG images that MapServer produces? (I'm using PHP / Mapscript with the 10/10/2001 dll from DM Solutions). Thanks! Chip Hankley From Chip.Hankley at GASAI.Com Thu Feb 14 13:46:06 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 14 Feb 2002 15:46:06 -0600 Subject: [mapserver-users] PNG, which Netscape Version Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB8EA@postoffice.GASAI.Com> Sure... the problem is on my test box (which is private), however, the issue seems to be the same on our public server as well. http://www.gasai.com/GISApps/png_test.html -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:40 PM To: Hankley, Chip; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - Can you put this up on a public server we could look at? I'm serving PNG images from an IIS/Win2K server to Netscape clients all the time... - Ed -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 4:35 PM To: Ed McNierney; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Thanks Ed...I had read that, and couldn't figure out whay my images weren't working in Netscape (still can't for that matter). Probably should've offered up some more info from the beginning. After some experimentation, this seems to be an IIS (IIS 5 on Win2k). I'm trying to view some PNG images in NS. If I put a png file into an HTML document (using the IMG tag), I can open the file directly in NS, and it works fine (e.g. I open c:\myfiles\png_test.html in NS). If on the other hand, I try to bring up the file throught the web server (e.g. http://localhost/png_test.html) it comes up as a broken link in NS. Either way works fine in IE. I can view the PNG images through NS on the libpng test page as well... so, it seems fairly certain that this is a "feature" of IIS. I found something on libpng about fixing this (basically adding an entry for PNG to the MIME map in IIS), but this does not seem to have helped. Any ideas would be helpful... if I figure it out, I'll post. Chip -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:23 PM To: Hankley, Chip; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - Generally, version 4.04 and above. For all the gory details (along with other PNG application support info) visit http://www.libpng.org/pub/png/pngapbr.html - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 11:29 AM To: MapServer List (E-mail) Subject: [mapserver-users] PNG, which Netscape Version Can anyone tell me the minimum version of Netscape required to view the flavor of PNG images that MapServer produces? (I'm using PHP / Mapscript with the 10/10/2001 dll from DM Solutions). Thanks! Chip Hankley From ed at topozone.com Thu Feb 14 13:49:59 2002 From: ed at topozone.com (Ed McNierney) Date: Thu, 14 Feb 2002 16:49:59 -0500 Subject: [mapserver-users] PNG, which Netscape Version Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7CBE@mercator.topozone.com> Chip - It looks fine on Netscape Communicator 4.78 on Windows 2000 Professional. What version of Netscape (and what OS) is giving you trouble? - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 4:46 PM To: Ed McNierney Cc: MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Sure... the problem is on my test box (which is private), however, the issue seems to be the same on our public server as well. http://www.gasai.com/GISApps/png_test.html -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:40 PM To: Hankley, Chip; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - Can you put this up on a public server we could look at? I'm serving PNG images from an IIS/Win2K server to Netscape clients all the time... - Ed -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 4:35 PM To: Ed McNierney; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Thanks Ed...I had read that, and couldn't figure out whay my images weren't working in Netscape (still can't for that matter). Probably should've offered up some more info from the beginning. After some experimentation, this seems to be an IIS (IIS 5 on Win2k). I'm trying to view some PNG images in NS. If I put a png file into an HTML document (using the IMG tag), I can open the file directly in NS, and it works fine (e.g. I open c:\myfiles\png_test.html in NS). If on the other hand, I try to bring up the file throught the web server (e.g. http://localhost/png_test.html) it comes up as a broken link in NS. Either way works fine in IE. I can view the PNG images through NS on the libpng test page as well... so, it seems fairly certain that this is a "feature" of IIS. I found something on libpng about fixing this (basically adding an entry for PNG to the MIME map in IIS), but this does not seem to have helped. Any ideas would be helpful... if I figure it out, I'll post. Chip -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:23 PM To: Hankley, Chip; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - Generally, version 4.04 and above. For all the gory details (along with other PNG application support info) visit http://www.libpng.org/pub/png/pngapbr.html - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 11:29 AM To: MapServer List (E-mail) Subject: [mapserver-users] PNG, which Netscape Version Can anyone tell me the minimum version of Netscape required to view the flavor of PNG images that MapServer produces? (I'm using PHP / Mapscript with the 10/10/2001 dll from DM Solutions). Thanks! Chip Hankley From Chip.Hankley at GASAI.Com Thu Feb 14 13:57:31 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 14 Feb 2002 15:57:31 -0600 Subject: [mapserver-users] PNG, which Netscape Version Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB8EB@postoffice.GASAI.Com> I'm testing 4.08 on Win 2K Pro. I'll upgrade a few versions and try that... thanks for your help. Interestingly, there are a number of articles about this: http://www.libpng.org/pub/png/png-iis-config.html although they seem to relate to IIS 4.0. Chip -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:50 PM To: Hankley, Chip Cc: MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - It looks fine on Netscape Communicator 4.78 on Windows 2000 Professional. What version of Netscape (and what OS) is giving you trouble? - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 4:46 PM To: Ed McNierney Cc: MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Sure... the problem is on my test box (which is private), however, the issue seems to be the same on our public server as well. http://www.gasai.com/GISApps/png_test.html -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:40 PM To: Hankley, Chip; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - Can you put this up on a public server we could look at? I'm serving PNG images from an IIS/Win2K server to Netscape clients all the time... - Ed -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 4:35 PM To: Ed McNierney; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Thanks Ed...I had read that, and couldn't figure out whay my images weren't working in Netscape (still can't for that matter). Probably should've offered up some more info from the beginning. After some experimentation, this seems to be an IIS (IIS 5 on Win2k). I'm trying to view some PNG images in NS. If I put a png file into an HTML document (using the IMG tag), I can open the file directly in NS, and it works fine (e.g. I open c:\myfiles\png_test.html in NS). If on the other hand, I try to bring up the file throught the web server (e.g. http://localhost/png_test.html) it comes up as a broken link in NS. Either way works fine in IE. I can view the PNG images through NS on the libpng test page as well... so, it seems fairly certain that this is a "feature" of IIS. I found something on libpng about fixing this (basically adding an entry for PNG to the MIME map in IIS), but this does not seem to have helped. Any ideas would be helpful... if I figure it out, I'll post. Chip -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:23 PM To: Hankley, Chip; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - Generally, version 4.04 and above. For all the gory details (along with other PNG application support info) visit http://www.libpng.org/pub/png/pngapbr.html - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 11:29 AM To: MapServer List (E-mail) Subject: [mapserver-users] PNG, which Netscape Version Can anyone tell me the minimum version of Netscape required to view the flavor of PNG images that MapServer produces? (I'm using PHP / Mapscript with the 10/10/2001 dll from DM Solutions). Thanks! Chip Hankley From Regina.Obe.PFD at ci.boston.ma.us Thu Feb 14 14:00:15 2002 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Thu, 14 Feb 2002 17:00:15 -0500 Subject: [mapserver-users] MS_ERRORFILE on Windows machine Message-ID: I know on Windows 2000 to set environment variables, you can go under Start --> settings --> control panel --> System --> Advanced Tab and click the button "Environment Variables" - you'll probably want to set it for "System Variables" I forget whether it is the same on NT 4 - don't have one handy at the moment. Hope that helps. Regina -----Original Message----- From: imap at chesapeake.net [mailto:imap at chesapeake.net] Sent: Thursday, February 14, 2002 2:45 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] MS_ERRORFILE on Windows machine Does anyone know how to set the environment variable MS_ERRORFILE on a WinNT/2k machine running IIS? Thanks, Chris Stuber (mapsurfer) From Chip.Hankley at GASAI.Com Thu Feb 14 14:11:36 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 14 Feb 2002 16:11:36 -0600 Subject: [mapserver-users] PNG, which Netscape Version Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010AB8EC@postoffice.GASAI.Com> OK, I downloaded 4.78, and it works fine. Weird. Thanks again. -----Original Message----- From: Hankley, Chip Sent: Thursday, February 14, 2002 3:58 PM To: 'Ed McNierney' Cc: MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version I'm testing 4.08 on Win 2K Pro. I'll upgrade a few versions and try that... thanks for your help. Interestingly, there are a number of articles about this: http://www.libpng.org/pub/png/png-iis-config.html although they seem to relate to IIS 4.0. Chip -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:50 PM To: Hankley, Chip Cc: MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - It looks fine on Netscape Communicator 4.78 on Windows 2000 Professional. What version of Netscape (and what OS) is giving you trouble? - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 4:46 PM To: Ed McNierney Cc: MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Sure... the problem is on my test box (which is private), however, the issue seems to be the same on our public server as well. http://www.gasai.com/GISApps/png_test.html -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:40 PM To: Hankley, Chip; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - Can you put this up on a public server we could look at? I'm serving PNG images from an IIS/Win2K server to Netscape clients all the time... - Ed -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 4:35 PM To: Ed McNierney; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Thanks Ed...I had read that, and couldn't figure out whay my images weren't working in Netscape (still can't for that matter). Probably should've offered up some more info from the beginning. After some experimentation, this seems to be an IIS (IIS 5 on Win2k). I'm trying to view some PNG images in NS. If I put a png file into an HTML document (using the IMG tag), I can open the file directly in NS, and it works fine (e.g. I open c:\myfiles\png_test.html in NS). If on the other hand, I try to bring up the file throught the web server (e.g. http://localhost/png_test.html) it comes up as a broken link in NS. Either way works fine in IE. I can view the PNG images through NS on the libpng test page as well... so, it seems fairly certain that this is a "feature" of IIS. I found something on libpng about fixing this (basically adding an entry for PNG to the MIME map in IIS), but this does not seem to have helped. Any ideas would be helpful... if I figure it out, I'll post. Chip -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:23 PM To: Hankley, Chip; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - Generally, version 4.04 and above. For all the gory details (along with other PNG application support info) visit http://www.libpng.org/pub/png/pngapbr.html - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 11:29 AM To: MapServer List (E-mail) Subject: [mapserver-users] PNG, which Netscape Version Can anyone tell me the minimum version of Netscape required to view the flavor of PNG images that MapServer produces? (I'm using PHP / Mapscript with the 10/10/2001 dll from DM Solutions). Thanks! Chip Hankley From eliotcline at hotmail.com Thu Feb 14 18:20:51 2002 From: eliotcline at hotmail.com (Eliot Cline) Date: Fri, 15 Feb 2002 02:20:51 +0000 Subject: [mapserver-users] PDF Output: How? Message-ID: Hello, I have been lurking on this list for a couple of years. Never had to post because I never had a question that wasn't asked and answered on the list. Now however I really need help. I downloaded and compiled mapserver 3.5 and managed to get pdf support compiled in as well. But I don't have a clue how to utilize the pdf functionality. Basically I just want to have a print to pdf button on my application much like the landview site. Could someone point me to some examples of how to do this, or give me some clues and I can go from there? I see the landview site is done with perl. Can the pdf functions be called from php/mapscript as well? Thanks in advance, Eliot Cline _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From JohnHockaday at auslig.gov.au Thu Feb 14 18:19:33 2002 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Fri, 15 Feb 2002 13:19:33 +1100 Subject: [mapserver-users] Compile error with mapserver 3.5 with php Message-ID: <53273E187450D311ACF6009027927B1202C7B065@smtpgate.auslig.gov.au> Hi, I am trying to compile mapserver 3.5 on a Sun Solaris 2.6 platform with gcc version 2.95.3 using the following configuration options: ./configure --prefix=/usr/local/ --exec-prefix=/usr/local --with-freetype --with-proj --with-gd=/usr/local --with-zlib --with-wmsclient --with-sde=/opt/local/esri/sdeexe81 --with-sde-version=81 --with-gdal --with-php=/opt/contrib/src/php-4.0.6 --with-apxs=/opt/apache/bin/apxs I have been able to compile mapserver 3.5 with all the options except --with-php=/opt/contrib/src/php-4.0.6 --with-apxs=/opt/apache/bin/apxs but when I compile with the php options I get the following error (what I think is the relevant part is in bold): make .......... .......... echo -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_SDE -DUSE_GDAL >> perlvars echo -I. -I/usr/local/include -I/opt/local/esri/sdeexe81/include -I/usr/local/include >> perlvars echo -L. -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/opt/local/esri/sdeexe81/lib -lsde81 -lpe81 -lsg81 -lpthread -lsocket -ldl -L/usr/local/lib -lgdal.1.1 -L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstr eam -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lnsl -lsocket -lm >>perlvars echo >> perlvars gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H-DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_SDE -DUSE_GDAL -I/usr/local/include -I/opt/local/esri/sdeexe81/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H tile4ms.c -o tile4ms.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_SDE -DUSE_GDAL -I/usr/local/include -I/opt/local/esri/sdeexe81/include -I/usr/local/inclu de -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H tile4ms.o -L. -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/opt/local/esri/sdeexe81/lib -lsde81 -lpe8 1 -lsg81 -lpthread -lsocket -ldl -L/usr/local/lib -lgdal.1.1 -L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstre am -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lnsl -lsocket -lm -o tile4ms ld: warning: symbol `png_libpng_ver' has differing sizes: (file /usr/local/lib/libpng.a(png.o) value=0x12; file /usr/local/lib/lib gdal.1.1.so value=0xc); /usr/local/lib/libpng.a(png.o) definition taken ld: warning: global symbol `_DYNAMIC' has non-global binding: (file /usr/local/lib/libgcc_s.so.1 value=LOCL); ld: warning: global symbol `_PROCEDURE_LINKAGE_TABLE_' has non-global binding: (file /usr/local/lib/libgcc_s.so.1 value=LOCL); ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding: (file /usr/local/lib/libgcc_s.so.1 value=LOCL); cd mapscript/php3; make; cd ../.. make[1]: Entering directory `/opt/contrib/src/mapserver_3.5/mapscript/php3' gcc gcc -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS_LYR -DUSE_WMS -DUSE_GDAL -DUSE_SDE -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_JPEG -I/opt/contrib/src/mapserver_3.5 -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H -I/usr/local/include -I/opt/local/esri/sdeexe81/include -I/usr/local/include -I/opt/contrib/src/php-4.0.6 -I/opt/contrib/src/php-4.0.6/dl -I/opt/contrib/src/php-4.0.6/main -I/opt/contrib/src/php -4.0.6/Zend -I/opt/contrib/src/php-4.0.6/include -I/opt/contrib/src/php-4.0.6/TSRM -I/opt/apache_1.3.12/include -c -o php_mapscript_util.o php_mapscript_util.c gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [php_mapscript_util.o] Error 1 make[1]: Leaving directory `/opt/contrib/src/mapserver_3.5/mapscript/php3' I compiled php 4.0.6 using the following configuration and it seems to work after I stop and start apache: ./configure --with-apxs=/opt/apache_1.3.12/bin/apxs --with-gnu-ld --with-oci8 =/u01/app/oracle/product/8.1.7 --with-regex=system The problem seems to be finding the "dl" directory which doesn't exist. Should I switch on some options when I compile php to create this directory? I've checked the archives but I can't see any email that have had the same problem. Can someone help please? John From ed at topozone.com Thu Feb 14 19:13:26 2002 From: ed at topozone.com (Ed McNierney) Date: Thu, 14 Feb 2002 22:13:26 -0500 Subject: [mapserver-users] PNG, which Netscape Version Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7CBF@mercator.topozone.com> Chip - I think it's probably just buggy PNG support in Netscape. The articles you mentioned are indeed for IIS 4 and are not relevant or necessary for IIS 5. I have found (in general) that Netscape versions 4.x up until 4.76 or so are full of various annoying bugs. - Ed -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 5:12 PM To: Ed McNierney Cc: 'MapServer List (E-mail)' Subject: RE: [mapserver-users] PNG, which Netscape Version OK, I downloaded 4.78, and it works fine. Weird. Thanks again. -----Original Message----- From: Hankley, Chip Sent: Thursday, February 14, 2002 3:58 PM To: 'Ed McNierney' Cc: MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version I'm testing 4.08 on Win 2K Pro. I'll upgrade a few versions and try that... thanks for your help. Interestingly, there are a number of articles about this: http://www.libpng.org/pub/png/png-iis-config.html although they seem to relate to IIS 4.0. Chip -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:50 PM To: Hankley, Chip Cc: MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - It looks fine on Netscape Communicator 4.78 on Windows 2000 Professional. What version of Netscape (and what OS) is giving you trouble? - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 4:46 PM To: Ed McNierney Cc: MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Sure... the problem is on my test box (which is private), however, the issue seems to be the same on our public server as well. http://www.gasai.com/GISApps/png_test.html -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:40 PM To: Hankley, Chip; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - Can you put this up on a public server we could look at? I'm serving PNG images from an IIS/Win2K server to Netscape clients all the time... - Ed -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 4:35 PM To: Ed McNierney; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Thanks Ed...I had read that, and couldn't figure out whay my images weren't working in Netscape (still can't for that matter). Probably should've offered up some more info from the beginning. After some experimentation, this seems to be an IIS (IIS 5 on Win2k). I'm trying to view some PNG images in NS. If I put a png file into an HTML document (using the IMG tag), I can open the file directly in NS, and it works fine (e.g. I open c:\myfiles\png_test.html in NS). If on the other hand, I try to bring up the file throught the web server (e.g. http://localhost/png_test.html) it comes up as a broken link in NS. Either way works fine in IE. I can view the PNG images through NS on the libpng test page as well... so, it seems fairly certain that this is a "feature" of IIS. I found something on libpng about fixing this (basically adding an entry for PNG to the MIME map in IIS), but this does not seem to have helped. Any ideas would be helpful... if I figure it out, I'll post. Chip -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 14, 2002 3:23 PM To: Hankley, Chip; MapServer List (E-mail) Subject: RE: [mapserver-users] PNG, which Netscape Version Chip - Generally, version 4.04 and above. For all the gory details (along with other PNG application support info) visit http://www.libpng.org/pub/png/pngapbr.html - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, February 14, 2002 11:29 AM To: MapServer List (E-mail) Subject: [mapserver-users] PNG, which Netscape Version Can anyone tell me the minimum version of Netscape required to view the flavor of PNG images that MapServer produces? (I'm using PHP / Mapscript with the 10/10/2001 dll from DM Solutions). Thanks! Chip Hankley From Antti.Roppola at brs.gov.au Thu Feb 14 19:27:38 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Fri, 15 Feb 2002 14:27:38 +1100 Subject: [mapserver-users] PDF Output: How? Message-ID: <595FE28AB1EBD111920F0060B06B3DD70730C63C@ACTMAIL2> Concidentally, Rasmus was here this week and talked about this. :o) Have a look at slide 51 onward at http://conf.php.net/oz2002/ (BTW, I couldn't get the slide browser to work under IE, only Netscape). Slide 57 has an example of placing an image into a PDF. Putting Mapserver stuff into a PDF this way looks to be easy (it's on my list of things to try). Keeping vector map layers as vectors using SVG or something would be cooler still. The Shockwave stuff is even more interesting, animated maps anyone? Cheers, Antti Eliot wrote: > Basically I just want to have a print to pdf button on my application much > like the landview site. Could someone point me to some examples of how to do > this, or give me some clues and I can go from there? > I see the landview site is done with perl. Can the pdf functions be called > from php/mapscript as well? From woodbri at swoodbridge.com Thu Feb 14 19:27:33 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Feb 2002 22:27:33 -0500 Subject: [mapserver-users] PHP/Mapscript Question Message-ID: <3C6C8025.F9384190@swoodbridge.com> Dan, et al, In PHP/Mapscript 3.5, I want to add a marker to my map. With the CGI interface I did something like: layer=marker&map_marker_feature=new&map_marker_feature_points={LON}+{LAT}&map_marker_feature_text={LABEL} The map file section for is below. I am correct that PHP/Mapscript does not have access to the FEATURE Objects? It seems that the way I should go about doing this using code based on gmap75 I would be something like this in GMapDrawMap(): $img = $gpoMap->draw(); if ($HTTP_FORM_VARS["mx"]) { $dfmx = doubleval($HTTP_FORM_VARS["mx"]); $dfmy = doubleval($HTTP_FORM_VARS["my"]); $sfmtxt = $HTTP_FORM_VARS["mtxt"]; $mlay = $gpoMap->getlayerbyname("marker"); $mlay->set("status", 1); $pnt = ms_newPointObj(); $pnt->setXY($dfmx, $dfmy); $pnt->draw($gpoMap, $mlay, $img, 0, $sftxt); } where layer marker in my map file would be defined like: LAYER NAME marker TYPE POINT STATUS OFF CLASS NAME "User Marker" #TEXT "HERE" SYMBOL 'marker' COLOR 0 0 0 LABEL TYPE TRUETYPE FONT arial-bold BUFFER 4 SIZE 8 POSITION AUTO COLOR 0 0 0 BACKGROUNDCOLOR 255 255 204 END END #FEATURE # POINTS x y #END END Does this make sense? Is there a better way to do this? Thanks, -Steve Woodbridge From woodbri at swoodbridge.com Thu Feb 14 20:07:37 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 14 Feb 2002 23:07:37 -0500 Subject: [mapserver-users] PHP/Mapscript Question References: <3C6C8025.F9384190@swoodbridge.com> Message-ID: <3C6C8989.55C16B38@swoodbridge.com> OK, here is an update. I can get the marker symbol to show up BUT not text label using the following code in my GMapDrawMap(). Does anyone have any ideas why? if ($gbShowQueryResults) $img = $gpoMap->drawQuery(); else $img = $gpoMap->draw(); if ($HTTP_FORM_VARS["mx"] && !$gbShowQueryResults) { $dfmx = doubleval($HTTP_FORM_VARS["mx"]); $dfmy = doubleval($HTTP_FORM_VARS["my"]); $sfmtxt = $HTTP_FORM_VARS["mtxt"]; $mlayer = $gpoMap->getlayerbyname("marker"); if (isset($mlayer)) { $mlayer->set("status", 1); $point = ms_newPointObj(); $point->setXY($dfmx, $dfmy); $point->draw($gpoMap, $mlayer, $img, 0, $sfmtxt); } } $url = $img->saveWebImage($gAppletImgFmt, 0, 0, -1); > where layer marker in my map file would be defined like: > > LAYER > NAME marker > TYPE POINT > STATUS OFF > CLASS > NAME "User Marker" > #TEXT "HERE" > SYMBOL 'marker' > COLOR 0 0 0 > LABEL > FORCE TRUE > TYPE TRUETYPE > FONT arial-bold > BUFFER 4 > SIZE 8 > POSITION AUTO > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 204 > END > END > #FEATURE > # POINTS x y > #END > END Thanks, -Steve Woodbridge From steve.lime at dnr.state.mn.us Thu Feb 14 20:21:29 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 14 Feb 2002 22:21:29 -0600 Subject: [mapserver-users] PDF Output: How? Message-ID: The landview piece simply embeds a image rendered in mapserver into a pdf. I can share code. However, there are opportunities to create vector PDFs with MapServer. The shp2pdf program is an example. You can easily wrap that with perl or whatever pretty easily. I'll add scripting access to that once a C wrapper to writing a PDF file is done. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 02/14/02 21:33 PM >>> Concidentally, Rasmus was here this week and talked about this. :o) Have a look at slide 51 onward at http://conf.php.net/oz2002/ (BTW, I couldn't get the slide browser to work under IE, only Netscape). Slide 57 has an example of placing an image into a PDF. Putting Mapserver stuff into a PDF this way looks to be easy (it's on my list of things to try). Keeping vector map layers as vectors using SVG or something would be cooler still. The Shockwave stuff is even more interesting, animated maps anyone? Cheers, Antti Eliot wrote: > Basically I just want to have a print to pdf button on my application much > like the landview site. Could someone point me to some examples of how to do > this, or give me some clues and I can go from there? > I see the landview site is done with perl. Can the pdf functions be called > from php/mapscript as well? From hwehr at hs-harz.de Thu Feb 14 22:55:59 2002 From: hwehr at hs-harz.de (Harald Wehr) Date: Fri, 15 Feb 2002 07:55:59 +0100 Subject: [mapserver-users] Mapscript: Java and missing imageObj-class Message-ID: <3C6CB0FF.5060407@hs-harz.de> I succesfully "swigged" the mapscript-interface to create a shared library to use mapscript within java. Swig also generated the java classes and everything is working fine but one thing is missing: I can't save the generated images to disk as the imageObj-class was not generated. When i look into the php-examples such a class exists there. Why does swig not generated this class in java? Can someone help me out of this problem? I use mapserver 3.5. I tried the swig-versions 1.3.9 and 1.3.11 Thanks Harald From fgclaram at alu-ab.uclm.es Fri Feb 15 02:55:43 2002 From: fgclaram at alu-ab.uclm.es (Francisco) Date: Fri, 15 Feb 2002 11:55:43 +0100 Subject: [mapserver-users] Raster Image Message-ID: <5.1.0.14.0.20020215115426.00b849c0@correo.alu-ab.uclm.es> Hello all, I'm trying to load a Raster image (jpg) into a map. this is a piece of my code: LAYER NAME "ab" DATA fotoab.jpg TYPE RASTER STATUS ON MAXSCALE 4000 CLASS COLOR 0 0 0 END END But it doesn't work. And I don't know why. There aren't any error message. What's the matter?. Could you help me? Thanks, From morissette at dmsolutions.ca Fri Feb 15 04:58:28 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 15 Feb 2002 07:58:28 -0500 Subject: [mapserver-users] PHP/Mapscript Question References: <3C6C8025.F9384190@swoodbridge.com> <3C6C8989.55C16B38@swoodbridge.com> Message-ID: <3C6D05F4.9492DF4A@dmsolutions.ca> Stephen Woodbridge wrote: > > OK, here is an update. I can get the marker symbol to show up BUT not > text label using the following code in my GMapDrawMap(). Does anyone > have any ideas why? > Try calling $map->DrawLabelCache() before saving the image, or setting labelcache = FALSE in your layer defn. -- ------------------------------------------------------------ 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 woodbri at swoodbridge.com Fri Feb 15 06:04:32 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 15 Feb 2002 09:04:32 -0500 Subject: [mapserver-users] Zooming Strangeness Message-ID: <3C6D1570.71B18BA2@swoodbridge.com> Hi all, I am using a modified version of GMap75 which is working great, but I have run into a strange problem related to zooming which may or may not be related to the GMap code. I am using EXTENT -180.0 -90.0 180.0 90.0 UNITS DD PROJECTION "proj=latlong" END and all my data is in lat/long coordinates. Here are two of the symptons: 1) I am zoom in to +-0.013 degrees (approx. 0.75 miles over 600 pix) with a marker in the center of the image. I zoom out using rosa and the GMap code and my marker is still at the same lat/long, the image zooms out but has shifted so that the marker is now center on the lower left quarter of the image like (M => marker position): +--------------------+ +--------------------+ + + + + + + + + + + + + + + < before + + + M + + + + + + + + + + + + + after > + M + + + + + +--------------------+ +--------------------+ If I recenter/pan (using rosa) and clicking on the marker it moves correctly to the center. 2) I am zoomed to the full extents of the map and I try to zoom in on roughly a 4 state area using rosa and the GMap code. I get the zoom but the rectangle that is zoomed to is positioned significantly below the rectangle I selected. For example, I zoom in on Massachussetts and I end up somewhere in the Carribean. Likewise, is I try to pan to the correct location using the reference map, I have to click up in Canada to end up in Mass. I think there is also a horizontal shift like in 1) above so these are both probably the same problem only magnified by scale. Anyone have any ideas? I this an artifact that GMap75 was designed around different assumptions regard the output projection? You can try it out at http://swoodbridge.com/cgi-bin/geo http://swoodbridge.com/web2/nmap I only have Tiger data loaded for the eastern half of the US. Thanks for the help, Stephen Woodbridge From blackmail at snafu.de Fri Feb 15 06:57:24 2002 From: blackmail at snafu.de (Peter) Date: Fri, 15 Feb 2002 15:57:24 +0100 Subject: [mapserver-users] Is there a free mapserver supporting .dxf files? Message-ID: <3C6D21D4.80405@snafu.de> From TMitchell at lignum.com Fri Feb 15 08:16:26 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 15 Feb 2002 08:16:26 -0800 Subject: [mapserver-users] Raster Image Message-ID: Hi Francisco, Are you trying to add it to an existing map that works? Do you have .jfw file to go along with the image? I mean, does the image have any coordinates associated with it? If not, then you will that the image falls outside of the map area. Someone else can probably give you direction around how to place an image at a specific location on the map viewing window. Is the image for the map or just a logo or something like that which you want added on top of the map? Tyler Francisco To: mapserver-users at lists.gis.umn.edu Sent by: cc: owner-mapserver-users at lists.g Fax to: is.umn.edu Subject: [mapserver-users] Raster Image 02/15/2002 02:55 AM Hello all, I'm trying to load a Raster image (jpg) into a map. this is a piece of my code: LAYER NAME "ab" DATA fotoab.jpg TYPE RASTER STATUS ON MAXSCALE 4000 CLASS COLOR 0 0 0 END END But it doesn't work. And I don't know why. There aren't any error message. What's the matter?. Could you help me? Thanks, From f.mcdavid at tlogicgis.com Fri Feb 15 10:49:29 2002 From: f.mcdavid at tlogicgis.com (Fred McDavid) Date: 15 Feb 2002 13:49:29 -0500 Subject: [mapserver-users] is this possible or does this need to be a feature request Message-ID: <1013798969.11160.4.camel@lilbit> What I'm wanting to do is: take a polygon from one layer, using that polygon and some function (in this case, one that would add a "buffer" to the original polygon) come up with a new polygon, then draw that polygon and/or use it to query layers. I'm wondering if there is presently a way to do this and, if not, what obstacles (WRT design issues) would I face if I tried to make mapserver and/or php-mapscript do this? Regards, Fred From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Fri Feb 15 11:26:50 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Fri, 15 Feb 2002 14:26:50 -0500 Subject: [mapserver-users] PHP/MapScript: mapObj->scale Message-ID: <7CDD7B94357FD5119E800002A537C46E22FEA1@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I'm trying to get the current scale of a map in PHP/Mapscript, but it allways returns -1 ! Here's the code: getLayerByName($layer); $layerobj->set('status',MS_ON); } $map->preparequery(); $scale = $map->scale; $image = $map->draw(); $image_url = $image->saveWebImage(MS_GIF,1,1,100); ?> I tried both with and without the preparequery(), and I allways get -1 ... What am I missing here? Thanks! Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From woodbri at swoodbridge.com Fri Feb 15 11:34:18 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 15 Feb 2002 14:34:18 -0500 Subject: [mapserver-users] is this possible or does this need to be a feature request References: <1013798969.11160.4.camel@lilbit> Message-ID: <3C6D62BA.8660054B@swoodbridge.com> Fred, Steve Lime may want to jump in on this to add or correct this. I see two issues here: 1) You have to construct and offset polygon (unless you are willing to accept the rectangular extents of the polygon). This is pretty straight forward: a) pick the first edge and determine which side is outside of the polygon b) construct an offset line on the outside of the first segment c) construct an offset line for each successive segment and intersect it with the previous segment and save the intersection point, you also have to check and handle concave angles where the offsets eliminate the edges totally. d) then build a new poygon form the intersection points. 2) currently (I believe) the query code ONLY works for points and rectangles. Modifing query code to do queries of arbitrary polygons would be possible but require some additional computations like: a) first check that the extents of the obj and the query polygon overlap. b) if point, see if it is inside the query polygon if line, see if it intersects the query polygon if polygon, polyline, see if extents are all inside or the extents intersect with the query polygon if extents intersect see if any edge intersects with the query polygon if not, see if all vertices are inside the query polygon You could do all of this in mapscript, but might be very slow if you have lots of polygons or the polygon have lots of points. Also you have to be able to deal with multipart objects. There may be some code already in mapserver that can be adapted to some parts of this as rotated label extents represent 5 node convex polygons. Anyway, I hope this helps, -Steve Woodbridge Fred McDavid wrote: > > What I'm wanting to do is: > > take a polygon from one layer, using that polygon and some function (in > this case, one that would add a "buffer" to the original polygon) come > up with a new polygon, then draw that polygon and/or use it to query > layers. > > I'm wondering if there is presently a way to do this and, if not, what > obstacles (WRT design issues) would I face if I tried to make mapserver > and/or php-mapscript do this? > > Regards, > > Fred From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Fri Feb 15 13:15:10 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Fri, 15 Feb 2002 16:15:10 -0500 Subject: [mapserver-users] PHP/Mapscript: Creating a "virtual" layer on the fly Message-ID: <7CDD7B94357FD5119E800002A537C46E22FEA6@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello ... Me again :) Now I want to create a lyer to add to a mapfile entirely on the fly, using point coordinates provided via the url: if ( isset($HTTP_GET_VARS['lat']) && isset($HTTP_GET_VARS['long']) ) { $pointobj = ms_newPointObj(); $pointobj->setXY($HTTP_GET_VARS['lat'],$HTTP_GET_VARS['long']); $projfrom = ms_newprojectionobj('proj=latlong'); $projto = ms_newprojectionobj('proj=lcc,ellps=GRS80,lat_0=49n,lon_0=95w,lat_1=49n,lat_ 2=77n'); $pointobj->project($projfrom,$projto); $lineobj = ms_newLineObj(); $lineobj->add($pointobj); $pointobj->free(); $shapeobj = ms_newShapeObj(MS_SHAPE_POINT); $shapeobj->add($lineobj); $lineobj->free(); $layerobj = ms_newLayerObj($map); $layerobj->set('type',MS_LAYER_POINT); $layerobj->set('status',MS_ON); $layerobj->addFeature($shapeobj); $classobj = ms_newClassObj($layerobj); $classobj->set('symbol',0); $classobj->set('size',20); $classobj->set('color','0 0 0'); } This doesn't draw however ... I don't get errors, I just don't see the point. a Symbol size 20 should make it visible enough, no ? I checked the addFeature, and returns 0 (NOT -1), so that works ok ... I also checked my projection parameters, and see nothing wrong with them. I checked the layer index and it says 60, which sounds about right, and means that the new layer WAS created on "top", so that shouldn't be the problem either ... Any ideas? Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From pushkar at ERC.MsState.Edu Fri Feb 15 13:15:53 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Fri, 15 Feb 2002 15:15:53 -0600 (CST) Subject: [mapserver-users] mapscript/perl install. Message-ID: Hi all, I am trying to install mapscript/perl and php both. Since I am not the root user I face many difficulties in install. Right now for the perl install. I am able to make (perl Makefile.PL, make). However I am unable to install it: Banshee[77] pushkar$ make install Warning: You do not have permissions to install into /usr/local/gnu/lib/perl5/site_perl/5.6.0/sun4-solaris at /usr/local/gnu/lib/perl5/5.6.0/ExtUtils/Install.pm line 62. mkdir /usr/local/gnu/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/mapscript: Permission denied at /usr/local/gnu/lib/perl5/5.6.0/ExtUtils/Install.pm line 112 *** Error code 255 make: Fatal error: Command failed for target `pure_site_install' In Makefile which is generated from Makefile.PL there is a section: INSTALLPRIVLIB = $(PREFIX)/lib/perl5/5.6.0 INSTALLARCHLIB = $(PREFIX)/lib/perl5/5.6.0/sun4-solaris INSTALLSITELIB = $(PREFIX)/lib/perl5/site_perl/5.6.0 INSTALLSITEARCH = $(PREFIX)/lib/perl5/site_perl/5.6.0/sun4-solaris where all the dirs. for install are specified, however this file should not be edited rather Makefile.PL must be edited but this file doesn't contain any code on this. Has anyone worked around this? ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From Jciavarelli at city.kamloops.bc.ca Fri Feb 15 13:19:52 2002 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Fri, 15 Feb 2002 13:19:52 -0800 Subject: [mapserver-users] Unsubscribe Message-ID: Sorry, I have lost the instructions on how to unsubscribe. How do I unsubscribe? Janet. From woodbri at swoodbridge.com Fri Feb 15 13:41:05 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 15 Feb 2002 16:41:05 -0500 Subject: [mapserver-users] is this possible or does this need to be a feature request References: <200202152116.g1FLG4s05677@philbert.dnr.state.mn.us> Message-ID: <3C6D8071.87874ACF@swoodbridge.com> Oops, Ken points out a big oversight on my part, looks-like you can ignore point 2 in my response as it looks like you can already do a querybyshape that is a polygon. Thanks, Ken. -Steve kenboss wrote: > > I can't speak to the buffering part (I will be interested to see what others > have to say on that), but the polygon query part is already available in > mapscript through the (either map or layer) queryByShape method. A quick look > at http://mapserver.gis.umn.edu/doc/cgi-reference.html seems to indicate that > this should be possible in the cgi version as well, using MAPSHAPE or IMGSHAPE > and with the NQUERY mode. > > --Ken Boss > > > Fred, > > > > Steve Lime may want to jump in on this to add or correct this. > > > > I see two issues here: > > > > 1) You have to construct and offset polygon (unless you are willing to > > accept the rectangular extents of the polygon). This is pretty straight > > forward: > > a) pick the first edge and determine which side is outside of the > > polygon > > b) construct an offset line on the outside of the first segment > > c) construct an offset line for each successive segment and intersect > > it with the previous segment and save the intersection point, you > > also have to check and handle concave angles where the offsets > > eliminate the edges totally. > > d) then build a new poygon form the intersection points. > > > > 2) currently (I believe) the query code ONLY works for points and > > rectangles. Modifing query code to do queries of arbitrary polygons > > would be possible but require some additional computations like: > > a) first check that the extents of the obj and the query polygon > > overlap. > > b) if point, see if it is inside the query polygon > > if line, see if it intersects the query polygon > > if polygon, polyline, see if extents are all inside or the extents > > intersect with the query polygon > > if extents intersect see if any edge intersects with the query > > polygon > > if not, see if all vertices are inside the query polygon > > > > You could do all of this in mapscript, but might be very slow if you > > have lots of polygons or the polygon have lots of points. Also you have > > to be able to deal with multipart objects. There may be some code > > already in mapserver that can be adapted to some parts of this as > > rotated label extents represent 5 node convex polygons. > > > > Anyway, I hope this helps, > > -Steve Woodbridge > > > > Fred McDavid wrote: > > > > > > What I'm wanting to do is: > > > > > > take a polygon from one layer, using that polygon and some function (in > > > this case, one that would add a "buffer" to the original polygon) come > > > up with a new polygon, then draw that polygon and/or use it to query > > > layers. > > > > > > I'm wondering if there is presently a way to do this and, if not, what > > > obstacles (WRT design issues) would I face if I tried to make mapserver > > > and/or php-mapscript do this? > > > > > > Regards, > > > > > > Fred From assefa at dmsolutions.ca Fri Feb 15 13:51:41 2002 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Fri, 15 Feb 2002 16:51:41 -0500 Subject: [mapserver-users] PHP/Mapscript: Creating a "virtual" layer on the fly References: <7CDD7B94357FD5119E800002A537C46E22FEA6@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <3C6D82EC.D85B8DC6@dmsolutions.ca> The only thing that I see is that the color setting is not correct. You should do something like : $colorId = $poMap->addColor(0,0,0); $class->set("color", $colorId); hope it helps. "Doyon, Jean-Francois" wrote: > Hello ... Me again :) > > Now I want to create a lyer to add to a mapfile entirely on the fly, using > point coordinates provided via the url: > > if ( isset($HTTP_GET_VARS['lat']) && isset($HTTP_GET_VARS['long']) ) { > $pointobj = ms_newPointObj(); > $pointobj->setXY($HTTP_GET_VARS['lat'],$HTTP_GET_VARS['long']); > $projfrom = ms_newprojectionobj('proj=latlong'); > $projto = > ms_newprojectionobj('proj=lcc,ellps=GRS80,lat_0=49n,lon_0=95w,lat_1=49n,lat_ > 2=77n'); > $pointobj->project($projfrom,$projto); > $lineobj = ms_newLineObj(); > $lineobj->add($pointobj); > $pointobj->free(); > $shapeobj = ms_newShapeObj(MS_SHAPE_POINT); > $shapeobj->add($lineobj); > $lineobj->free(); > $layerobj = ms_newLayerObj($map); > $layerobj->set('type',MS_LAYER_POINT); > $layerobj->set('status',MS_ON); > $layerobj->addFeature($shapeobj); > $classobj = ms_newClassObj($layerobj); > $classobj->set('symbol',0); > $classobj->set('size',20); > $classobj->set('color','0 0 0'); > } > > This doesn't draw however ... I don't get errors, I just don't see the > point. a Symbol size 20 should make it visible enough, no ? > > I checked the addFeature, and returns 0 (NOT -1), so that works ok ... I > also checked my projection parameters, and see nothing wrong with them. > > I checked the layer index and it says 60, which sounds about right, and > means that the new layer WAS created on "top", so that shouldn't be the > problem either ... > > Any ideas? > > Thanks, > > Jean-Fran?ois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Canadian Center for Remote Sensing > Natural Resources Canada > http://atlas.gc.ca > Phone: (613) 992-4902 > Fax: (613) 947-2410 -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Fri Feb 15 14:04:27 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Fri, 15 Feb 2002 17:04:27 -0500 Subject: [mapserver-users] PHP/Mapscript: Creating a "virtual" layer o n the fly Message-ID: <7CDD7B94357FD5119E800002A537C46E22FEA7@s5-ccr-r1.ccrs.nrcan.gc.ca> Assefa, Thanks, but that didn't do it either ... Do I really have to use a index value for the color? Maybe in that case I should read the index for that color instead of adding it , since it's allready in use (There allready is black on the map) ... I'll play with that, but any other ideas? Thanks, J.F. -----Original Message----- From: Assefa Yewondwossen [mailto:assefa at dmsolutions.ca] Sent: Friday, February 15, 2002 4:52 PM To: Doyon, Jean-Francois Cc: mapserver Subject: Re: [mapserver-users] PHP/Mapscript: Creating a "virtual" layer on the fly The only thing that I see is that the color setting is not correct. You should do something like : $colorId = $poMap->addColor(0,0,0); $class->set("color", $colorId); hope it helps. "Doyon, Jean-Francois" wrote: > Hello ... Me again :) > > Now I want to create a lyer to add to a mapfile entirely on the fly, using > point coordinates provided via the url: > > if ( isset($HTTP_GET_VARS['lat']) && isset($HTTP_GET_VARS['long']) ) { > $pointobj = ms_newPointObj(); > $pointobj->setXY($HTTP_GET_VARS['lat'],$HTTP_GET_VARS['long']); > $projfrom = ms_newprojectionobj('proj=latlong'); > $projto = > ms_newprojectionobj('proj=lcc,ellps=GRS80,lat_0=49n,lon_0=95w,lat_1=49n,lat_ > 2=77n'); > $pointobj->project($projfrom,$projto); > $lineobj = ms_newLineObj(); > $lineobj->add($pointobj); > $pointobj->free(); > $shapeobj = ms_newShapeObj(MS_SHAPE_POINT); > $shapeobj->add($lineobj); > $lineobj->free(); > $layerobj = ms_newLayerObj($map); > $layerobj->set('type',MS_LAYER_POINT); > $layerobj->set('status',MS_ON); > $layerobj->addFeature($shapeobj); > $classobj = ms_newClassObj($layerobj); > $classobj->set('symbol',0); > $classobj->set('size',20); > $classobj->set('color','0 0 0'); > } > > This doesn't draw however ... I don't get errors, I just don't see the > point. a Symbol size 20 should make it visible enough, no ? > > I checked the addFeature, and returns 0 (NOT -1), so that works ok ... I > also checked my projection parameters, and see nothing wrong with them. > > I checked the layer index and it says 60, which sounds about right, and > means that the new layer WAS created on "top", so that shouldn't be the > problem either ... > > Any ideas? > > Thanks, > > Jean-Fran?ois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Canadian Center for Remote Sensing > Natural Resources Canada > http://atlas.gc.ca > Phone: (613) 992-4902 > Fax: (613) 947-2410 -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- From janderson at PacificDataServices.com Fri Feb 15 15:08:26 2002 From: janderson at PacificDataServices.com (Jessica Anderson) Date: Fri, 15 Feb 2002 15:08:26 -0800 Subject: [mapserver-users] Install mapserver on Win2000 Message-ID: <000301c1b675$ad2cfc80$6501a8c0@janderson> Hello everyone, I am very interested in checking out mapserver however, I am some trouble installing the program. Is there anyone out there who can give me step by step instructions? Jessica Anderson Pacific Data Services PH. (209) 524-2479 FAX. (209) 524-0282 From janderson at PacificDataServices.com Fri Feb 15 15:38:06 2002 From: janderson at PacificDataServices.com (Jessica Anderson) Date: Fri, 15 Feb 2002 15:38:06 -0800 Subject: [mapserver-users] Programming Language to create Web Site... Message-ID: <000401c1b679$d227db50$6501a8c0@janderson> Can anyone reflect on their experiences with Cold Fusion using mapserver or asp? Jessica Anderson Pacific Data Services PH. (209) 524-2479 FAX. (209) 524-0282 From cabral at yadata.net Sat Feb 16 08:57:02 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Sat, 16 Feb 2002 13:57:02 -0300 Subject: [mapserver-users] is this possible or does this need to be a feature request References: <200202152116.g1FLG4s05677@philbert.dnr.state.mn.us> <3C6D8071.87874ACF@swoodbridge.com> Message-ID: <006301c1b70a$f63c7dc0$0207a8c0@naumaki> On the other hand, you could put your data in an Oracle SDO database, and define a LAYER to display the result of a SDO_GEOM.SDO_BUFFER function like in: LAYER CONNECTIONTYPE oraclespatial CONNECTION 'username/password at db' DATA "buffer FROM (SELECT sdo_geom.sdo_buffer( table.shape, , ) AS buffer FROM table)" STATUS default TYPE polygon # more layer stuff like classes, etc END There you have your buffer shapes on-the-fly! No PHP/MapScript needed, you can use the CGI version if you wish... Pretty cool isn't it? =) Cheers, Rod. ----- Original Message ----- From: "Stephen Woodbridge" To: "kenboss" ; "MapServer List" Sent: Friday, February 15, 2002 6:41 PM Subject: Re: [mapserver-users] is this possible or does this need to be a feature request Oops, Ken points out a big oversight on my part, looks-like you can ignore point 2 in my response as it looks like you can already do a querybyshape that is a polygon. Thanks, Ken. -Steve kenboss wrote: > > I can't speak to the buffering part (I will be interested to see what others > have to say on that), but the polygon query part is already available in > mapscript through the (either map or layer) queryByShape method. A quick look > at http://mapserver.gis.umn.edu/doc/cgi-reference.html seems to indicate that > this should be possible in the cgi version as well, using MAPSHAPE or IMGSHAPE > and with the NQUERY mode. > > --Ken Boss > > > Fred, > > > > Steve Lime may want to jump in on this to add or correct this. > > > > I see two issues here: > > > > 1) You have to construct and offset polygon (unless you are willing to > > accept the rectangular extents of the polygon). This is pretty straight > > forward: > > a) pick the first edge and determine which side is outside of the > > polygon > > b) construct an offset line on the outside of the first segment > > c) construct an offset line for each successive segment and intersect > > it with the previous segment and save the intersection point, you > > also have to check and handle concave angles where the offsets > > eliminate the edges totally. > > d) then build a new poygon form the intersection points. > > > > 2) currently (I believe) the query code ONLY works for points and > > rectangles. Modifing query code to do queries of arbitrary polygons > > would be possible but require some additional computations like: > > a) first check that the extents of the obj and the query polygon > > overlap. > > b) if point, see if it is inside the query polygon > > if line, see if it intersects the query polygon > > if polygon, polyline, see if extents are all inside or the extents > > intersect with the query polygon > > if extents intersect see if any edge intersects with the query > > polygon > > if not, see if all vertices are inside the query polygon > > > > You could do all of this in mapscript, but might be very slow if you > > have lots of polygons or the polygon have lots of points. Also you have > > to be able to deal with multipart objects. There may be some code > > already in mapserver that can be adapted to some parts of this as > > rotated label extents represent 5 node convex polygons. > > > > Anyway, I hope this helps, > > -Steve Woodbridge > > > > Fred McDavid wrote: > > > > > > What I'm wanting to do is: > > > > > > take a polygon from one layer, using that polygon and some function (in > > > this case, one that would add a "buffer" to the original polygon) come > > > up with a new polygon, then draw that polygon and/or use it to query > > > layers. > > > > > > I'm wondering if there is presently a way to do this and, if not, what > > > obstacles (WRT design issues) would I face if I tried to make mapserver > > > and/or php-mapscript do this? > > > > > > Regards, > > > > > > Fred From cabral at yadata.net Sat Feb 16 10:58:06 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Sat, 16 Feb 2002 15:58:06 -0300 Subject: [mapserver-users] PDF Output: How? References: Message-ID: <00c301c1b71b$ded84540$0207a8c0@naumaki> Apparently PDF support is drawing lots of interest recently =) I, for one, have also successfully drawn map images in PDF files to generate reports, although I haven't used MapServer's PDF extension for a few reasons. Using PHP/MapScript, I embeded a 1800x1800 image in the PDF report, which is generated using mapscript plus a different mapfile than the one used for web browsing (created specifically for printing). The image is big enough to avoid seeing pixel artifacts in the print out, and the result is quite pleasant. HOWEVER, this approach will never match the quality of vector images drawn directly in PDF, and also makes the PDF file larger (I think). So, what I'm doing right now is just waiting for the PDF+MapScript support to be written.... BUT.... I was thinking about the msDrawMapPDF(...) function arguments, and noticed that you cannot control the position (X,Y) of where the map is going to be drawn, it's always centered in the page and apparently the size of the map is defined with the mapfile SIZE statement. SO, I have a few suggestions to make, if ~frank~ (author of mappdf.c) would concur... Hope I'm not intruding about it. 1) Include X, Y coordinates in msDrawMapPDF function. So, in MapScript, one would simply do this: $pdf = pdf_new(); $map = ms_newMapObj( $pdf_mapfile ); // *** lots of processing here *** $map->drawMapPDF( $pdf_handler, $x, $y ); // *** now, simply return the created PDF report 2) Assume that the width and height of the map (as defined in the mapfile SIZE statement) is in the same metrics of the PDF file. Therefore, the actual place where the map should be drawn in the PDF page is: Left: $x Top: $y Right: ($x + $map->{width}) Bottom: ($y + $map->{height}) I trust that most people would have a different mapfile for printing (rather than using the same one for browsing), so it wouldn't be much of a problem to use the mapfile image SIZE to store PDF targeted values. In time, the other draw methods could also be implemented with the same assumptions. Thus, one would be able to create a report with georeferenced information right alongside report text, plus legend, scalebar, etc... Any comments? Rod. ----- Original Message ----- From: "Steve Lime" To: Cc: Sent: Friday, February 15, 2002 1:21 AM Subject: RE: [mapserver-users] PDF Output: How? The landview piece simply embeds a image rendered in mapserver into a pdf. I can share code. However, there are opportunities to create vector PDFs with MapServer. The shp2pdf program is an example. You can easily wrap that with perl or whatever pretty easily. I'll add scripting access to that once a C wrapper to writing a PDF file is done. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 02/14/02 21:33 PM >>> Concidentally, Rasmus was here this week and talked about this. :o) Have a look at slide 51 onward at http://conf.php.net/oz2002/ (BTW, I couldn't get the slide browser to work under IE, only Netscape). Slide 57 has an example of placing an image into a PDF. Putting Mapserver stuff into a PDF this way looks to be easy (it's on my list of things to try). Keeping vector map layers as vectors using SVG or something would be cooler still. The Shockwave stuff is even more interesting, animated maps anyone? Cheers, Antti Eliot wrote: > Basically I just want to have a print to pdf button on my application much > like the landview site. Could someone point me to some examples of how to do > this, or give me some clues and I can go from there? > I see the landview site is done with perl. Can the pdf functions be called > from php/mapscript as well? From pramsey at refractions.net Sat Feb 16 12:00:50 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Sat, 16 Feb 2002 12:00:50 -0800 Subject: [mapserver-users] PDF Output: How? References: <00c301c1b71b$ded84540$0207a8c0@naumaki> Message-ID: <3C6EBA72.3880C9B1@refractions.net> (a) You can use the PDF drawing routines in your PHP/MapScript applications right now, with just a little indirection. Use $map->save() to write out a mapfile which reflects the current state of your map objects (extents, layers, etc). Then use a php exec() call to run the shp2pdf program against that mapfile. Voila, instant gratification. We are using this right now, works great. (b) In terms of implementation of PDF support in PHP/Mapscript, my recommendation would be this: (1) that the existing PDF support in PHP be examined, and depended on, so that to create PDF version of a map you would first create a standard PHP PDF object, then pass that object to the mapscript PDF writing function. That would allow people to create more customized PDF output, by using the PHP PDF support to add useful things like titles, dates, disclaimers, etc etc, to their printable output, and just using the Mapscript support to render the actual map. (2) that the PDF writing function include parameters to control where on the page the map is written. Probably best done using page coordinates (since pages can be of different sizes). $map->drawpdf($pdfobj, $pagexmin, $pageymin, $pagexmax, $pageymax); My $0.02CA ($0.013US) Paul. Rodrigo Cabral wrote: > > Apparently PDF support is drawing lots of interest recently =) I, for one, > have also successfully drawn map images in PDF files to generate reports, > although I haven't used MapServer's PDF extension for a few reasons. Using > PHP/MapScript, I embeded a 1800x1800 image in the PDF report, which is > generated using mapscript plus a different mapfile than the one used for web > browsing (created specifically for printing). The image is big enough to > avoid seeing pixel artifacts in the print out, and the result is quite > pleasant. > > HOWEVER, this approach will never match the quality of vector > images drawn directly in PDF, and also makes the PDF file larger (I think). > So, what I'm doing right now is just waiting for the PDF+MapScript support > to be written.... > > BUT.... I was thinking about the msDrawMapPDF(...) function arguments, and > noticed that you cannot control the position (X,Y) of where the map is going > to be drawn, it's always centered in the page and apparently the size of the > map is defined with the mapfile SIZE statement. > > SO, I have a few suggestions to make, if ~frank~ (author of mappdf.c) would > concur... Hope I'm not intruding about it. > > 1) Include X, Y coordinates in msDrawMapPDF function. So, in MapScript, one > would simply do this: > > $pdf = pdf_new(); > $map = ms_newMapObj( $pdf_mapfile ); > // *** lots of processing here *** > $map->drawMapPDF( $pdf_handler, $x, $y ); > // *** now, simply return the created PDF report > > 2) Assume that the width and height of the map (as defined in the mapfile > SIZE statement) is in the same metrics of the PDF file. Therefore, the > actual place where the map should be drawn in the PDF page is: > Left: $x > Top: $y > Right: ($x + $map->{width}) > Bottom: ($y + $map->{height}) > I trust that most people would have a different mapfile for printing (rather > than using the same one for browsing), so it wouldn't be much of a problem > to use the mapfile image SIZE to store PDF targeted values. > > In time, the other draw methods could also be implemented with the same > assumptions. Thus, one would be able to create a report with georeferenced > information right alongside report text, plus legend, scalebar, etc... > > Any comments? > > Rod. > > ----- Original Message ----- > From: "Steve Lime" > To: > Cc: > Sent: Friday, February 15, 2002 1:21 AM > Subject: RE: [mapserver-users] PDF Output: How? > > The landview piece simply embeds a image rendered in mapserver into a pdf. I > can share code. > > However, there are opportunities to create vector PDFs with MapServer. The > shp2pdf program is an example. You can easily wrap that with perl or > whatever pretty easily. I'll add scripting access to that once a C wrapper > to writing a PDF file is done. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > >>> 02/14/02 21:33 PM >>> > Concidentally, Rasmus was here this week and talked about this. :o) > > Have a look at slide 51 onward at http://conf.php.net/oz2002/ > (BTW, I couldn't get the slide browser to work under IE, only Netscape). > > Slide 57 has an example of placing an image into a PDF. > Putting Mapserver stuff into a PDF this way looks to be easy (it's on my > list of things to try). Keeping vector map layers as vectors using > SVG or something would be cooler still. > > The Shockwave stuff is even more interesting, animated maps anyone? > > Cheers, > > Antti > > Eliot wrote: > > > Basically I just want to have a print to pdf button on my application much > > like the landview site. Could someone point me to some examples of how to > do > > this, or give me some clues and I can go from there? > > > I see the landview site is done with perl. Can the pdf functions be called > > from php/mapscript as well? From cabral at yadata.net Sat Feb 16 14:21:03 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Sat, 16 Feb 2002 19:21:03 -0300 Subject: [mapserver-users] PDF Output: How? References: <00c301c1b71b$ded84540$0207a8c0@naumaki> <3C6EBA72.3880C9B1@refractions.net> Message-ID: <000f01c1b738$38f4bf60$0207a8c0@naumaki> Ok, so now we're beginning to reach an ideal calling convention (i.e. arguments) for a drawMapPDF (or drawPDF) function... I agree that maybe passing $pagexmax and $pagexmin along with the origem (x,y) is a good idea, as opposed to let mapfile's SIZE statement to control this info. SIZE wouldn't need to be defined at all. So: $map->drawpdf( $pdfobj, $pagexmin, $pageymin, $pagexmax, $pageymax ); is okay for us users (at least for Paul and I), so far =) Hope the 'mappdf.c' author don't mind us playing around with the subject. Paul, a few comments on your email: (a) It's a good approach. but as you said in (b) you don't have much control on the PDF output. I couldn't go for that, that's why I'll keep with my raster image embeding. I need to put text along with the map image. It's a 5 pages report... (b.1) I guess your words are my words =) That's exacly what I said when I talked about X,Y coordinates (which you called pagexmin, pageymin). Maybe I wasn't clear enough, but hey, English is not my first language! (b.2) Same thing =) Check my code (btw Left,Top,Right,Bottom are calculated in page coordinates). My R$0.02 (US$0.008) Cheers, Rod. ----- Original Message ----- From: "Paul Ramsey" To: Cc: "Rodrigo Cabral" Sent: Saturday, February 16, 2002 5:00 PM Subject: Re: [mapserver-users] PDF Output: How? (a) You can use the PDF drawing routines in your PHP/MapScript applications right now, with just a little indirection. Use $map->save() to write out a mapfile which reflects the current state of your map objects (extents, layers, etc). Then use a php exec() call to run the shp2pdf program against that mapfile. Voila, instant gratification. We are using this right now, works great. (b) In terms of implementation of PDF support in PHP/Mapscript, my recommendation would be this: (1) that the existing PDF support in PHP be examined, and depended on, so that to create PDF version of a map you would first create a standard PHP PDF object, then pass that object to the mapscript PDF writing function. That would allow people to create more customized PDF output, by using the PHP PDF support to add useful things like titles, dates, disclaimers, etc etc, to their printable output, and just using the Mapscript support to render the actual map. (2) that the PDF writing function include parameters to control where on the page the map is written. Probably best done using page coordinates (since pages can be of different sizes). $map->drawpdf($pdfobj, $pagexmin, $pageymin, $pagexmax, $pageymax); My $0.02CA ($0.013US) Paul. Rodrigo Cabral wrote: > > Apparently PDF support is drawing lots of interest recently =) I, for one, > have also successfully drawn map images in PDF files to generate reports, > although I haven't used MapServer's PDF extension for a few reasons. Using > PHP/MapScript, I embeded a 1800x1800 image in the PDF report, which is > generated using mapscript plus a different mapfile than the one used for web > browsing (created specifically for printing). The image is big enough to > avoid seeing pixel artifacts in the print out, and the result is quite > pleasant. > > HOWEVER, this approach will never match the quality of vector > images drawn directly in PDF, and also makes the PDF file larger (I think). > So, what I'm doing right now is just waiting for the PDF+MapScript support > to be written.... > > BUT.... I was thinking about the msDrawMapPDF(...) function arguments, and > noticed that you cannot control the position (X,Y) of where the map is going > to be drawn, it's always centered in the page and apparently the size of the > map is defined with the mapfile SIZE statement. > > SO, I have a few suggestions to make, if ~frank~ (author of mappdf.c) would > concur... Hope I'm not intruding about it. > > 1) Include X, Y coordinates in msDrawMapPDF function. So, in MapScript, one > would simply do this: > > $pdf_handler = pdf_new(); > $map = ms_newMapObj( $pdf_mapfile ); > // *** lots of processing here *** > $map->drawMapPDF( $pdf_handler, $x, $y ); > // *** now, simply return the created PDF report > > 2) Assume that the width and height of the map (as defined in the mapfile > SIZE statement) is in the same metrics of the PDF file. Therefore, the > actual place where the map should be drawn in the PDF page is: > Left: $x > Top: $y > Right: ($x + $map->{width}) > Bottom: ($y + $map->{height}) > I trust that most people would have a different mapfile for printing (rather > than using the same one for browsing), so it wouldn't be much of a problem > to use the mapfile image SIZE to store PDF targeted values. > > In time, the other draw methods could also be implemented with the same > assumptions. Thus, one would be able to create a report with georeferenced > information right alongside report text, plus legend, scalebar, etc... > > Any comments? > > Rod. > > ----- Original Message ----- > From: "Steve Lime" > To: > Cc: > Sent: Friday, February 15, 2002 1:21 AM > Subject: RE: [mapserver-users] PDF Output: How? > > The landview piece simply embeds a image rendered in mapserver into a pdf. I > can share code. > > However, there are opportunities to create vector PDFs with MapServer. The > shp2pdf program is an example. You can easily wrap that with perl or > whatever pretty easily. I'll add scripting access to that once a C wrapper > to writing a PDF file is done. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > >>> 02/14/02 21:33 PM >>> > Concidentally, Rasmus was here this week and talked about this. :o) > > Have a look at slide 51 onward at http://conf.php.net/oz2002/ > (BTW, I couldn't get the slide browser to work under IE, only Netscape). > > Slide 57 has an example of placing an image into a PDF. > Putting Mapserver stuff into a PDF this way looks to be easy (it's on my > list of things to try). Keeping vector map layers as vectors using > SVG or something would be cooler still. > > The Shockwave stuff is even more interesting, animated maps anyone? > > Cheers, > > Antti > > Eliot wrote: > > > Basically I just want to have a print to pdf button on my application much > > like the landview site. Could someone point me to some examples of how to > do > > this, or give me some clues and I can go from there? > > > I see the landview site is done with perl. Can the pdf functions be called > > from php/mapscript as well? From morissette at dmsolutions.ca Sat Feb 16 14:19:31 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sat, 16 Feb 2002 17:19:31 -0500 Subject: [mapserver-users] PDF Output: How? References: <00c301c1b71b$ded84540$0207a8c0@naumaki> <3C6EBA72.3880C9B1@refractions.net> Message-ID: <3C6EDAF3.6275DF39@dmsolutions.ca> Paul Ramsey wrote: > > (b) In terms of implementation of PDF support in PHP/Mapscript, my > recommendation would be this: > > (1) that the existing PDF support in PHP be examined, and depended on, > so that to create PDF version of a map you would first create a standard > PHP PDF object, then pass that object to the mapscript PDF writing > function. Paul, Taking advantage of the existing PDF module in PHP would be great, and we've been thinking about doing the same with GD to use the PHP GD module to add annotations on top of a MapScript imageObj. The problem is that the PHP GD and PDF modules are separate modules and we don't have any control on them, each module uses its own data structures internally and I never saw anything in PHP that allowed modules to share resources even if they share the same C data structures at the lower level (a PDF or GD handle is a resource in PHP). This would be a nice thing to research (when time permits), but I'm suspecting that we would have to build some kind of bridge to export an imageObj into a PHP GD image object and vice-versa... and that we would have to maintain this bridge for every release of PHP... that's the main reason why we didn't do it yet: it's already hard enough to maintain the PHP module compatible between PHP versions without this kind of dependencies with external modules. BTW, I have created a bug in bugzilla about this... may I suggest that you both file your conclusions and suggestions in the bug report so that we have access to all the information if/when we work on this: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=110 Thanks, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pramsey at refractions.net Sat Feb 16 17:13:18 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Sat, 16 Feb 2002 17:13:18 -0800 Subject: [mapserver-users] PDF Output: How? References: <00c301c1b71b$ded84540$0207a8c0@naumaki> <3C6EBA72.3880C9B1@refractions.net> <3C6EDAF3.6275DF39@dmsolutions.ca> Message-ID: <3C6F03AE.7764DBE3@refractions.net> Daniel Morissette wrote: > > Paul Ramsey wrote: > > > > (b) In terms of implementation of PDF support in PHP/Mapscript, my > > recommendation would be this: > > > > (1) that the existing PDF support in PHP be examined, and depended on, > > so that to create PDF version of a map you would first create a standard > > PHP PDF object, then pass that object to the mapscript PDF writing > > function. > > Taking advantage of the existing PDF module in PHP would be great, and > we've been thinking about doing the same with GD to use the PHP GD > module to add annotations on top of a MapScript imageObj. > > The problem is that the PHP GD and PDF modules are separate modules and > we don't have any control on them, each module uses its own data > structures internally and I never saw anything in PHP that allowed > modules to share resources even if they share the same C data structures > at the lower level (a PDF or GD handle is a resource in PHP). I just had a quick read through the pdf module. The zend_get_parameters_ex() and ZEND_FETCH_RESOURCE() functions look pretty agnostic regarding what modules they are called from. The PDF module seems to use the Zend resource list to store its document object, but the document object it is using is not a custom structure, it is the usual PDFlib PDF struct, same one as the mappdf.c file uses. There sure seems to be alot of voodoo surrounding the Zend stuff. Just wave your magic wand. I am a babe in the woods. Is that Zend stuff subject to a pre-processor or something? It does not look syntactically correct as it stands. > This would be a nice thing to research (when time permits), but I'm > suspecting that we would have to build some kind of bridge to export an > imageObj into a PHP GD image object and vice-versa... I think that if the decision is made to bind into the other modules, it would be wise to give up all responsibility for instantiating and destroying objects. Take the reference created by the other module and use that. That way the bridge only has to be one way. Hopefully GD is as simpleminded as PDF in terms of just dumping the standard structure reference into Zend's object store. > and that we would > have to maintain this bridge for every release of PHP... that's the main > reason why we didn't do it yet: it's already hard enough to maintain the > PHP module compatible between PHP versions without this kind of > dependencies with external modules. > > BTW, I have created a bug in bugzilla about this... may I suggest that > you both file your conclusions and suggestions in the bug report so that > we have access to all the information if/when we work on this: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=110 Willdo. P. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From mi.ro at iol.it Sat Feb 16 20:54:31 2002 From: mi.ro at iol.it (Roberto Micarelli) Date: Sun, 17 Feb 2002 05:54:31 +0100 Subject: [mapserver-users] E00 to PostGIS Message-ID: <02021705543100.12461@imobile> Hi all. I've put at sourceforge a simple tool to import E00 into PostGIS (hope not too simple :) http://e00pg.sourceforge.net Regards. From pushkar at ERC.MsState.Edu Sun Feb 17 12:18:18 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Sun, 17 Feb 2002 14:18:18 -0600 (CST) Subject: [mapserver-users] php install. problem Message-ID: Hi all, Pardon me for asking php install. problem but I'm doing this since I didn't get an ans. on the php mail. list. I am using solaris sparc 10, I want to install php 4.0.6 on apache 1.3.22: My php config. is as follows: ./configure --prefix=/rstc/user1/erc/pushkar/php-4.0.6 --with-apxs=/rstc/user1/erc/pushkar/apache_1.3.22/bin/apxs It is a dynamic module and my apache config. is: ./configure \ "--with-layout=Apache" \ "--prefix=/rstc/user1/erc/pushkar/apache_1.3.22" \ "--enable-module=so" \ "--enable-shared=max" \ "--enable-rule=SHARED_CORE" \ During php install. it copies the libphp4.so to the libexec dir. of apache. I've added the foll. lines to httpd.conf as suggested: LoadModule php4_module libexec/libphp4.so AddModule php4_module mod_php4.c When I try to start apache I get the foll: Banshee[96] pushkar$ apachectl start Syntax error on line 206 of /rstc/user1/erc/pushkar/apache_1.3.22/conf/httpd.conf: Cannot add module via name 'php4_module': not in list of loaded modules ./apachectl start: httpd could not be started If anyone has experience with this please help. Thanks, ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From perik at azimuth.nl Mon Feb 18 00:26:35 2002 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Mon, 18 Feb 2002 09:26:35 +0100 Subject: [mapserver-users] How to get an array of all coordinates of a shape In-Reply-To: <3C6D05F4.9492DF4A@dmsolutions.ca> References: <3C6C8025.F9384190@swoodbridge.com> <3C6C8989.55C16B38@swoodbridge.com> Message-ID: <5.1.0.14.2.20020218091645.00a399c0@localhost> Hi All, is it possible to get all coordinates of a certain polygon-shape using mapscript? Maybe having the same output for a point or line would fine-tune it. Thinking that the object could be passed to a 'function' like GETCOORDS(object type); where type could be point/line/polygon. Any help is greatly appreciated, Erwin From perik at azimuth.nl Mon Feb 18 00:16:37 2002 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Mon, 18 Feb 2002 09:16:37 +0100 Subject: [mapserver-users] PHP show shape from it's dbf-file index(row) In-Reply-To: <3C6C8025.F9384190@swoodbridge.com> Message-ID: <5.1.0.14.2.20020218081251.00a0dd60@localhost> Hi All, Is there an option to show a shape when it's index (row) in the dbf is known? I would like to highlight only this shape. I made an extra layer for it with specific color (red) and "status OFF", so think this highlight-layer needs to be called. For making an overview with only defined layers, is it best to make an extra map-file and draw that one, or can i use the 'normal' map-file and turn on only layers which i want to show. I was thinking that i retreive all map-layers to an array and use something like (if On_layer = map_layer then,....). Right approach, or.... Also i would like to show the extents of the shape as a rectangle on the overview-map. Searching the above questions on the list-archives did get some examples, but all seemed to be slightly different or now working, but that's my lack of .... ;-) Thanks in advance, Erwin From perik at azimuth.nl Mon Feb 18 01:52:42 2002 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Mon, 18 Feb 2002 10:52:42 +0100 Subject: [mapserver-users] PHP show shape from it's dbf-file index(row) In-Reply-To: <5.1.0.14.2.20020218081251.00a0dd60@localhost> References: <3C6C8025.F9384190@swoodbridge.com> Message-ID: <5.1.0.14.2.20020218104519.00a36540@localhost> in addition to my mail,......... To show the setup i have now, use this url: http://trackitdirect.com/track4/track4.php This Gmap-based map has a list of all 'parks' in a list below the Rosa-map ("Select Item"). Select a 'park' and a popup will show the info regarding the selected park. The overview map (not in yet) should to have the highlighted shape (from .dbf row) and a rectangle from the extents of the query-image. (Getting extents of the queried-shape and resulting query-image is no problem) I plan to set up more things like this one including info as how to do it,...... My opinion regarding mapscript is that reading/writing how it's done solves most of my problems/wishes. Erwin From v at w.cl Mon Feb 18 09:47:55 2002 From: v at w.cl (Vinko Vrsalovic) Date: Mon, 18 Feb 2002 12:47:55 -0500 Subject: [mapserver-users] Length of a line calculation? Message-ID: <20020218124755.A12764@landsat.cprsig.cl> Hello, I'm wanting to do the following in MapScript, but don't know if it's possible. Suppose i have a LINE layer from a shapefile that only has one attribute in its DBF file. Then I select all the shapes from the shapefile that match a certain criteria in the attribute, now i want to know, for instance, how long are all the shapes i selected. Can I do that? (Obtain the length in ground units of a selected shape). How, if possible, can that be done? And last, but not least, is the procedure generalizable to polygons to obtain its area or perimeter? Thank you, -- V. From v at w.cl Mon Feb 18 10:01:51 2002 From: v at w.cl (Vinko Vrsalovic) Date: Mon, 18 Feb 2002 13:01:51 -0500 Subject: [mapserver-users] php install. problem In-Reply-To: References: Message-ID: <20020218130151.B12764@landsat.cprsig.cl> On Sun, Feb 17, 2002 at 02:18:18PM -0600, Pushkar Pradhan wrote: > During php install. it copies the libphp4.so to the libexec dir. of > apache. Then PHP compiles fine, am i wrong? (can you execute php console applications?) > I've added the foll. lines to httpd.conf as suggested: > LoadModule php4_module libexec/libphp4.so > AddModule php4_module mod_php4.c > When I try to start apache I get the foll: > Banshee[96] pushkar$ apachectl start > Syntax error on line 206 of > /rstc/user1/erc/pushkar/apache_1.3.22/conf/httpd.conf: > Cannot add module via name 'php4_module': not in list of loaded modules > ./apachectl start: httpd could not be started > If anyone has experience with this please help. Thanks, Has Solaris a ldconfig equivalent?, it seems that apache can't find the module, is in the right libexec directory? :-) Good luck, -- V. From GrantM at ATSER.com Mon Feb 18 08:10:25 2002 From: GrantM at ATSER.com (Grant Marblestone) Date: Mon, 18 Feb 2002 10:10:25 -0600 Subject: [mapserver-users] Question regarding rose and window.open(...) Message-ID: <001101c1b896$d1869d70$7201010a@localhost.atser> Howdy all, So continuing on my epic journey through mapserver and all its uses... i have another question..... I have used the rose applet in my project and i was interested in showing the query result set in a separate frame from the main applet so that there is no refresh needed. This presents a few problems asthetically so i wish to instead open the results in a new formatted frame. I was able to do the queryResults in a diff frame using jsaction and i can even get it into another frame by not specifying an existing frame... it opens in a new page. HOWEVER i want the new page to be a specific size... any clue on how to do this. Thanks in advance, Grant -------------- next part -------------- An HTML attachment was scrubbed... URL: From pushkar at ERC.MsState.Edu Mon Feb 18 08:56:48 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Mon, 18 Feb 2002 10:56:48 -0600 (CST) Subject: [mapserver-users] php install. problem In-Reply-To: <20020218130151.B12764@landsat.cprsig.cl> Message-ID: Vinko, That's right I executed the run-tests.php program from my command line. I don't think there is a utility ldconfig on solaris. Where does the php.ini file have to be put for apache, the docum. of php says it goes in /usr/local/lib? i.e. does it have to be in the apache dir? > On Sun, Feb 17, 2002 at 02:18:18PM -0600, Pushkar Pradhan wrote: > > During php install. it copies the libphp4.so to the libexec dir. of > > apache. > > Then PHP compiles fine, am i wrong? (can you execute php console > applications?) > > > I've added the foll. lines to httpd.conf as suggested: > > LoadModule php4_module libexec/libphp4.so > > AddModule php4_module mod_php4.c > > When I try to start apache I get the foll: > > Banshee[96] pushkar$ apachectl start > > Syntax error on line 206 of > > /rstc/user1/erc/pushkar/apache_1.3.22/conf/httpd.conf: > > Cannot add module via name 'php4_module': not in list of loaded modules > > ./apachectl start: httpd could not be started > > If anyone has experience with this please help. Thanks, > > Has Solaris a ldconfig equivalent?, it seems that apache can't find the > module, is in the right libexec directory? :-) > > Good luck, > -- > V. > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From v at w.cl Mon Feb 18 11:18:38 2002 From: v at w.cl (Vinko Vrsalovic) Date: Mon, 18 Feb 2002 14:18:38 -0500 Subject: [mapserver-users] php install. problem In-Reply-To: References: <20020218130151.B12764@landsat.cprsig.cl> Message-ID: <20020218141838.A12952@landsat.cprsig.cl> On Mon, Feb 18, 2002 at 10:56:48AM -0600, Pushkar Pradhan wrote: > Vinko, > That's right I executed the run-tests.php program from my command line. > I don't think there is a utility ldconfig on solaris. > Where does the php.ini file have to be put for apache, the docum. of php > says it goes in /usr/local/lib? > i.e. does it have to be in the apache dir? I think php.ini has nothing to do with this issue, it seems more like the module lib_php4.so is not readable/findable by apache. In any case, the location of the php.ini file is a compile-time option, you can check where it should be by running the phpinfo() php function. Maybe if you put the whole path to lib_php4.so in the LoadModule statement we could see if that's the problem. You should also check the permissions of the file and directories. -- V. From janderson at PacificDataServices.com Mon Feb 18 09:45:54 2002 From: janderson at PacificDataServices.com (Jessica Anderson) Date: Mon, 18 Feb 2002 09:45:54 -0800 Subject: [mapserver-users] permissions for MS IIS on windows 2000 Message-ID: <000101c1b8a4$1d835c60$6501a8c0@janderson> Are there certain permissions I need to set in IIS for it to run mapserver? Jessica Anderson Pacific Data Services PH. (209) 524-2479 FAX. (209) 524-0282 From gabriel at ciasc.gov.br Mon Feb 18 10:47:39 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Mon, 18 Feb 2002 15:47:39 -0300 Subject: [mapserver-users] About Legend References: <000b01c1b3ca$a5886670$7e3c2fc3@HSGIS> Message-ID: <00b301c1b8ac$be3c40b0$12d713ac@ciasc.gov.br> Is it possible to set font to the Legend Object ? How ? I would like to use words with portuguese character ("Inunda??o", "Sa?da", ...) at the Legend. If I use without do nothing the especial caracter is not show (disappear). Thanks. Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: From gsathis at yahoo.com Mon Feb 18 09:58:38 2002 From: gsathis at yahoo.com (Sathiskumar Govindasamy) Date: Mon, 18 Feb 2002 11:58:38 -0600 Subject: [mapserver-users] Java Wrapper for mapserver Message-ID: <3C7140CE.4070903@yahoo.com> Hello Dave, I am wondering whether you got this thing to work. I tried to create the Java Mapscript using swig, I still couldn't get it to work. It seems some objects are missing, particularly imageObj-class. I would greatly appreciate if you can share some info with couple of us in this group who are trying to get Java wrapper to work. Sathis Hello all: I just wanted to check if anyone had written a Java class wrapper for the mapserver cgi program. I am planning on using one to make mapserver the backend engine for a java servlet. I thought I should check to see if anyone had done this and is willing to share the code before I got started. Dave Graham information integration and imaging, LLC -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimburnett at ntelos.net Mon Feb 18 10:11:22 2002 From: jimburnett at ntelos.net (Jim Burnett) Date: Mon, 18 Feb 2002 13:11:22 -0500 Subject: [mapserver-users] php install. problem References: <20020218130151.B12764@landsat.cprsig.cl> Message-ID: <000e01c1b8a7$ac53b220$1e1f0cd8@jburnett> make sure you compile php as an apache module, or that the module is in the correct path for the apache modules. -jim ----- Original Message ----- From: "Vinko Vrsalovic" To: "Pushkar Pradhan" Cc: Sent: Monday, February 18, 2002 1:01 PM Subject: Re: [mapserver-users] php install. problem > On Sun, Feb 17, 2002 at 02:18:18PM -0600, Pushkar Pradhan wrote: > > During php install. it copies the libphp4.so to the libexec dir. of > > apache. > > Then PHP compiles fine, am i wrong? (can you execute php console > applications?) > > > I've added the foll. lines to httpd.conf as suggested: > > LoadModule php4_module libexec/libphp4.so > > AddModule php4_module mod_php4.c > > When I try to start apache I get the foll: > > Banshee[96] pushkar$ apachectl start > > Syntax error on line 206 of > > /rstc/user1/erc/pushkar/apache_1.3.22/conf/httpd.conf: > > Cannot add module via name 'php4_module': not in list of loaded modules > > ./apachectl start: httpd could not be started > > If anyone has experience with this please help. Thanks, > > Has Solaris a ldconfig equivalent?, it seems that apache can't find the > module, is in the right libexec directory? :-) > > Good luck, > -- > V. > > From teb at mallit.fr.umn.edu Mon Feb 18 10:44:27 2002 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 18 Feb 2002 12:44:27 -0600 (CST) Subject: [mapserver-users] itemquery problem (FWD) Message-ID: <200202181844.MAA25494@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Blaine Hackett" To: Subject: itemquery problem Date: Mon, 18 Feb 2002 10:27:07 -0600 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal All I am using itemquery for address searches on parcel data. It works fine however I have found some glitches. If I put in a number say 300 and select a street say University, if there is no "300 University Ave" it selects "8300 University Ave". Can anyone shed some light on this problem and how I might fix it? Thanks Blaine ***************************** Blaine Hackett GIS Project Manager PlanSight LLC 651.653.5141 blaine at plansight.com ------------- End Forwarded Message ------------- From pushkar at ERC.MsState.Edu Mon Feb 18 11:38:22 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Mon, 18 Feb 2002 13:38:22 -0600 (CST) Subject: [mapserver-users] php install. problem In-Reply-To: <000e01c1b8a7$ac53b220$1e1f0cd8@jburnett> Message-ID: My sincere thanks to all who contributed, Inspite of asking a non MS related ques. I got responses. Actually the first time things may go wrong but then you have to do a 'make clean' in both apache and php and then compile them. I got this from o'reilly's website by Darrell Brogdon (author of PHP Admin Basics). Thought this might be useful for others so posting it. On Mon, 18 Feb 2002, Jim Burnett wrote: > make sure you compile php as an apache module, or that the module is in the > correct path for the apache modules. > > -jim > > > > > ----- Original Message ----- > From: "Vinko Vrsalovic" > To: "Pushkar Pradhan" > Cc: > Sent: Monday, February 18, 2002 1:01 PM > Subject: Re: [mapserver-users] php install. problem > > > > On Sun, Feb 17, 2002 at 02:18:18PM -0600, Pushkar Pradhan wrote: > > > During php install. it copies the libphp4.so to the libexec dir. of > > > apache. > > > > Then PHP compiles fine, am i wrong? (can you execute php console > > applications?) > > > > > I've added the foll. lines to httpd.conf as suggested: > > > LoadModule php4_module libexec/libphp4.so > > > AddModule php4_module mod_php4.c > > > When I try to start apache I get the foll: > > > Banshee[96] pushkar$ apachectl start > > > Syntax error on line 206 of > > > /rstc/user1/erc/pushkar/apache_1.3.22/conf/httpd.conf: > > > Cannot add module via name 'php4_module': not in list of loaded modules > > > ./apachectl start: httpd could not be started > > > If anyone has experience with this please help. Thanks, > > > > Has Solaris a ldconfig equivalent?, it seems that apache can't find the > > module, is in the right libexec directory? :-) > > > > Good luck, > > -- > > V. > > > > > > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From TMitchell at lignum.com Mon Feb 18 13:50:20 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Mon, 18 Feb 2002 13:50:20 -0800 Subject: [mapserver-users] byacc error on make from CVS Message-ID: I'm trying to build mapserver from CVS and I get this error when I run make: >byacc -p msyy -d -omapparser.c mapparser.y >usage: byacc [-dlrtv] [-b file_prefix] [-p symbol_prefix] filename Can anyone comment on this for me - do I need to provide more information? Tyler From joemayfair at usa.net Mon Feb 18 13:35:20 2002 From: joemayfair at usa.net (Walt Lin) Date: Mon, 18 Feb 2002 16:35:20 -0500 Subject: [mapserver-users] Strategy for dealing with Census Data? In-Reply-To: <020e01c1b8c4$2c1ddd20$849b0044@VENTANAVISTA> References: <3BCC3A7F.6D47D3C3@mediaone.net> <20011018040119.A2803@eggbert> <020e01c1b8c4$2c1ddd20$849b0044@VENTANAVISTA> Message-ID: <20020218213520.GA29632@eggbert> > 1. Where is the "tgr2shp" binary/source? I don't seem to have > that utility in my collection. Please tell me it's not an Arcview > extension. ;^) It's a $99 program from www.gistools.com (it only runs on Windows and is slow, and can only process so many zip files at a time). > 2. Is it true Census 2000 data is freely available in .shp format? > I see tiger data for sale but haven't found FREE census 2000 > shapefiles. Back in June I could not find it anywhere in .shp format-- I don't know about know, but I doubt the entire set is freely available in shp anywhere (hence the need for a tgr2shp program). > 3. Finally, strategically, is there a performance trade-off by > using 1 large shapefile versus several shapefiles? For example, a Of course. Mapserver will have to load one huge file and look for intersecting points/lines/etc instead of loading smaller smaller smaller smaller smaller smaller smaller smaller smaller files. In fact, I even added another layer of abstraction by storing the paths to shp files in Postgres with an R-tree index-- to process a map request I query Postgres for files that intersect the box, and then tell mapserver to load only those files when drawing the map. It actually works very well, I think. You can also TILE your shapefiles. From pushkar at ERC.MsState.Edu Mon Feb 18 15:08:08 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Mon, 18 Feb 2002 17:08:08 -0600 (CST) Subject: [mapserver-users] php/mapscript problem Message-ID: Hi all, I've installed php and now trying to compile MS 3.5 with php-4.0.6, my configure script runs well, this is my config.: (I've compiled php with --with-system-regex option) ./configure --without-tiff --without-jpeg --with-gdal=/rstc/user1/erc/pushkar/gdal-1.1.5/apps/gdal-config --with-php=/rstc/user1/erc/pushkar/php-4.0.6 --with-apxs=/rstc/user1/erc/pushkar/apache_1.3.22/bin/apxs --without-ttf This creates the makefile but when I do a make I get the foll. error: cd mapscript/php3; make; cd ../.. make: Fatal error in reader: Makefile, line 69: Badly formed macro assignment Current working directory /rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3 *** Error code 1 make: Fatal error: Command failed for target `php3_mapscript' Actually the error occurs on line 69 of the Makefile in mapscript/php dir. This line is: CFLAGS := $(CFLAGS) $(MS_DEFINE) $(MS_INC) $(PHP_INC) The foll. are the values of these vars: CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 MS_DEFINE = -DUSE_GDAL -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_TTF MS_INC = -I/rstc/user1/erc/pushkar/mapserver_3.5 -I/rstc/user1/erc/pushkar/gdal-1.1.5/port -I/rstc/user1/erc/pushkar/gdal-1.1.5/core -I/rstc/user1/erc/pushkar/gdal-1.1.5/ogr -I/rstc/user1/erc/pushkar/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/include PHP_SRC_DIR = /rstc/user1/erc/pushkar/php-4.0.6 PHP_INC = -I$(PHP_SRC_DIR) -I$(PHP_SRC_DIR)/dl -I$(PHP_SRC_DIR)/main \ -I$(PHP_SRC_DIR)/Zend -I$(PHP_SRC_DIR)/include \ -I$(PHP_SRC_DIR)/TSRM -I/rstc/user1/erc/pushkar/apache_1.3.22/include Can anyone help me with this, I don't have experience in debugging make files. Thanks, ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From sutton_t at giug.net Mon Feb 18 15:41:18 2002 From: sutton_t at giug.net (Tim Sutton) Date: Mon, 18 Feb 2002 23:41:18 +0000 (GMT) Subject: [mapserver-users] PHP Mapserver demo available for download Message-ID: Hi First my apologies for the delay in making this available to everyone - the mapserver prototype app that I put together (based on a heavily modified version of gmap75 by DMSolutions) is now available for general download. The test site can be seen in operation at: http://www.wrcgis.co.uk/webmap/ms_teleco/ The download itself is available at: http://www.wrcgis.co.uk/software.php A couple of notes: The download requires a free registration on our web site - this is purely for our records and personal information will not be made available to 3rd parties. The application was built against a pre 3.5 cvs checkout and so there are a couple of modifications required to make it fully 3.5 compliant - I would appreciate it if anyone could contribute these mods back if they do them so that I can redistribute them to future users downloading it. The app uses dhtml and as such will need an up to date browser. Netscape 4.7 probably wont work too well. The sample data provided is purely fictitious. I would suggest running this against a CVS version of PHP 4.x as I had a lot of problems using the .so version. Comments, criticism and kudos to gis at wrcplc.co.uk Regards, -- ----------------------------------------------------- Tim Sutton WRc plc Consultant, GIS Solutions Group Frankland Road Direct line: +44 (0) 1793 865056 Blagrove Switchboard: +44 (0) 1793 865000 Swindon Fax: +44 (0) 1793 865001 Wiltshire SN5 8YF United Kingdom WRc - Solutions for Water, Waste and the Environment ----------------------------------------------------- From janderson at PacificDataServices.com Mon Feb 18 16:12:18 2002 From: janderson at PacificDataServices.com (Jessica Anderson) Date: Mon, 18 Feb 2002 16:12:18 -0800 Subject: [mapserver-users] is mapserver running correctly? Message-ID: <000001c1b8da$18609a50$6501a8c0@janderson> What would be a way to see if the mapserver that is working properly? Jessica Anderson Pacific Data Services PH. (209) 524-2479 FAX. (209) 524-0282 From janderson at PacificDataServices.com Mon Feb 18 16:17:24 2002 From: janderson at PacificDataServices.com (Jessica Anderson) Date: Mon, 18 Feb 2002 16:17:24 -0800 Subject: [mapserver-users] IIS and Apache.... Message-ID: <000101c1b8da$ce99c5d0$6501a8c0@janderson> I am running IIS on my windows 2000. I do not have a cgi-bin folder so do I create one or use the scripts folder under inetpub? Jessica Anderson Pacific Data Services PH. (209) 524-2479 FAX. (209) 524-0282 From ed at topozone.com Mon Feb 18 18:48:08 2002 From: ed at topozone.com (Ed McNierney) Date: Mon, 18 Feb 2002 21:48:08 -0500 Subject: [mapserver-users] IIS and Apache.... Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7CE7@mercator.topozone.com> Jessica - There's nothing magic about the folder name "cgi-bin". You simply need to have a folder to which the anonymous Web user account has Execute permission. You should create a dedicated folder (wherever you want, with whatever name you want) and only put executables in it to which you want to grant this access. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Jessica Anderson [mailto:janderson at PacificDataServices.com] Sent: Monday, February 18, 2002 7:17 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] IIS and Apache.... I am running IIS on my windows 2000. I do not have a cgi-bin folder so do I create one or use the scripts folder under inetpub? Jessica Anderson Pacific Data Services PH. (209) 524-2479 FAX. (209) 524-0282 From frank.koormann at intevation.de Tue Feb 19 02:08:34 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 19 Feb 2002 11:08:34 +0100 Subject: [mapserver-users] Strategy for dealing with Census Data? In-Reply-To: <20020218213520.GA29632@eggbert> References: <3BCC3A7F.6D47D3C3@mediaone.net> <20011018040119.A2803@eggbert> <020e01c1b8c4$2c1ddd20$849b0044@VENTANAVISTA> <20020218213520.GA29632@eggbert> Message-ID: <20020219100834.GA28021@intevation.de> * Walt Lin (joemayfair at usa.net) [020219 02:10]: > > 1. Where is the "tgr2shp" binary/source? I don't seem to have > > that utility in my collection. Please tell me it's not an Arcview > > extension. ;^) > > It's a $99 program from www.gistools.com (it only runs on Windows and is > slow, and can only process so many zip files at a time). > Wonder why not mentioned yet, but OGR can deal with TIGER/Line, so ogr2ogr might be an alternative: http://gdal.velocet.ca/projects/opengis/ Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From frank.koormann at intevation.de Tue Feb 19 02:26:27 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 19 Feb 2002 11:26:27 +0100 Subject: [mapserver-users] Question regarding rose and window.open(...) In-Reply-To: <001101c1b896$d1869d70$7201010a@localhost.atser> References: <001101c1b896$d1869d70$7201010a@localhost.atser> Message-ID: <20020219102627.GB28021@intevation.de> * Grant Marblestone (GrantM at ATSER.com) [020218 19:04]: > > Howdy all, > > > > So continuing on my epic journey through mapserver and all its uses... > i have another question..... > > > > I have used the rose applet in my project and i was interested in > showing the query result set in a separate frame from the main applet > so that there is no refresh needed. This presents a few problems > asthetically so i wish to instead open the results in a new formatted > frame. I was able to do the queryResults in a diff frame using > jsaction and i can even get it into another frame by not specifying an > existing frame... it opens in a new page. HOWEVER i want the new page > to be a specific size... any clue on how to do this. > The idea would be to do some more steps within a javascript bound to the query button by jsaction: - open a new window - direct target to this window - submit - reset some values The pilbara image processing interface http://www.agso.gov.au/map/pilbara/ applies such a concept Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From frank.koormann at intevation.de Tue Feb 19 02:38:20 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 19 Feb 2002 11:38:20 +0100 Subject: [mapserver-users] byacc error on make from CVS In-Reply-To: References: Message-ID: <20020219103820.GA28971@intevation.de> Tyler, * Tyler Mitchell (TMitchell at lignum.com) [020219 02:17]: > I'm trying to build mapserver from CVS and I get this error when I run > make: > > >byacc -p msyy -d -omapparser.c mapparser.y > >usage: byacc [-dlrtv] [-b file_prefix] [-p symbol_prefix] filename > > Can anyone comment on this for me - do I need to provide more information? looks as if your byacc does not support to "-o" option to specify an output file. AFAIR mapserver build process is relatively strict bound to the GNU version of yacc, bison. A try would be to indentify the line in the generated makefile and edit it to something like byacc -p msyy -d mapparser.y > mapparser.c Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From morissette at dmsolutions.ca Tue Feb 19 05:10:33 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 19 Feb 2002 08:10:33 -0500 Subject: [mapserver-users] php/mapscript problem References: Message-ID: <3C724EC9.D6B9F786@dmsolutions.ca> Pushkar Pradhan wrote: > > This creates the makefile but when I do a make I get the foll. error: > cd mapscript/php3; make; cd ../.. > make: Fatal error in reader: Makefile, line 69: Badly formed macro > assignment > Current working directory > /rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3 > *** Error code 1 > make: Fatal error: Command failed for target `php3_mapscript' > Actually the error occurs on line 69 of the Makefile in mapscript/php dir. > This line is: > CFLAGS := $(CFLAGS) $(MS_DEFINE) $(MS_INC) $(PHP_INC) If I remember well, ":=" is supported only by GNUMake... and changing the above statement to use "=" won't work because the old value of CFLAGS is reassigned to itself. I'll file a bug in bugzilla about fixing the makefiles so that they don't rely on GNUMake features, but in the meantime your can either install GNUmake or edit the statement above to be: CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 $(MS_DEFINE) $(MS_INC) \ $(PHP_INC) -- ------------------------------------------------------------ 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 blackmail at snafu.de Tue Feb 19 05:36:16 2002 From: blackmail at snafu.de (Peter) Date: Tue, 19 Feb 2002 14:36:16 +0100 Subject: [mapserver-users] .dxf2shp for mapserver Message-ID: <3C7254D0.2020106@snafu.de> Hi Listers, I have a project with many .dxf files which should be used as a castral map. Now I am having problems with the converting. The transition of the(.dxf-)textlayer is not satisfying. What are the possibilities. Which converter works best for annotation? Thanks a loz Peter From Regina.Obe.PFD at ci.boston.ma.us Tue Feb 19 06:52:44 2002 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Tue, 19 Feb 2002 09:52:44 -0500 Subject: [mapserver-users] permissions for MS IIS on windows 2000 Message-ID: The folder that contains mapserv.exe - the IUSR account has to have execute rights For the folder where the temp images will be installed, IUSR has to have write rights to that folder and the temp folder must also be accessible as a web URL. i.e. if you use c:/inetpub/wwwroot/tmp for example - that is usually already accessible as a web url of the form http://localhost/tmp But if you put the temp folder anywhere outside your web root path, you'll need to make it a virtual directory via IIS Manager. -----Original Message----- From: Jessica Anderson [mailto:janderson at PacificDataServices.com] Sent: Monday, February 18, 2002 12:46 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] permissions for MS IIS on windows 2000 Are there certain permissions I need to set in IIS for it to run mapserver? Jessica Anderson Pacific Data Services PH. (209) 524-2479 FAX. (209) 524-0282 From steve.lime at dnr.state.mn.us Tue Feb 19 07:22:10 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Feb 2002 09:22:10 -0600 Subject: [mapserver-users] is this possible or does this need to be a feature request Message-ID: Couple of things, this type of processing would have to be taken care of in C, just too slow to do elsewhere. Building a buffered polygon is not a trivial excercise. I've been looking for quite some time now for code to swipe. No luck so far. IF such a function could be written then I'd look at implementing it using something like a PROCESS block within a layer, for example PROCESS REMOVE 5000 # remove islands less than 5000 sq meters BUFFER 10 # then create a 10 m buffer END I'd look at this in a similar fashion to how projections work. You read the data, then do something to it before actually using it for rendering or query. Queries do support polygons, either those defined on an ad hoc basis (via a URL or scripting environment - MAP|IMGSHAPEQUERY) or those defined in another layer (FEATUREQUERY). These bother have been around for some time now... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 02/15/02 01:34PM >>> Fred, Steve Lime may want to jump in on this to add or correct this. I see two issues here: 1) You have to construct and offset polygon (unless you are willing to accept the rectangular extents of the polygon). This is pretty straight forward: a) pick the first edge and determine which side is outside of the polygon b) construct an offset line on the outside of the first segment c) construct an offset line for each successive segment and intersect it with the previous segment and save the intersection point, you also have to check and handle concave angles where the offsets eliminate the edges totally. d) then build a new poygon form the intersection points. 2) currently (I believe) the query code ONLY works for points and rectangles. Modifing query code to do queries of arbitrary polygons would be possible but require some additional computations like: a) first check that the extents of the obj and the query polygon overlap. b) if point, see if it is inside the query polygon if line, see if it intersects the query polygon if polygon, polyline, see if extents are all inside or the extents intersect with the query polygon if extents intersect see if any edge intersects with the query polygon if not, see if all vertices are inside the query polygon You could do all of this in mapscript, but might be very slow if you have lots of polygons or the polygon have lots of points. Also you have to be able to deal with multipart objects. There may be some code already in mapserver that can be adapted to some parts of this as rotated label extents represent 5 node convex polygons. Anyway, I hope this helps, -Steve Woodbridge Fred McDavid wrote: > > What I'm wanting to do is: > > take a polygon from one layer, using that polygon and some function (in > this case, one that would add a "buffer" to the original polygon) come > up with a new polygon, then draw that polygon and/or use it to query > layers. > > I'm wondering if there is presently a way to do this and, if not, what > obstacles (WRT design issues) would I face if I tried to make mapserver > and/or php-mapscript do this? > > Regards, > > Fred From TMitchell at lignum.com Tue Feb 19 08:00:14 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 19 Feb 2002 08:00:14 -0800 Subject: [mapserver-users] byacc error on make from CVS Message-ID: Hi Frank, thanks for your suggestion. I had found some other direction and was successful. FYI In my Makefile, I modified the line defining YACC and set it to bison instead of byacc. It now works fine. Frank Koormann > cc: mapserver-users at lists.gis.umn.edu Sent by: Fax to: owner-mapserver-users at lists.g Subject: Re: [mapserver-users] byacc error on make from CVS is.umn.edu 02/19/2002 02:38 AM Tyler, * Tyler Mitchell (TMitchell at lignum.com) [020219 02:17]: > I'm trying to build mapserver from CVS and I get this error when I run > make: > > >byacc -p msyy -d -omapparser.c mapparser.y > >usage: byacc [-dlrtv] [-b file_prefix] [-p symbol_prefix] filename > > Can anyone comment on this for me - do I need to provide more information? looks as if your byacc does not support to "-o" option to specify an output file. AFAIR mapserver build process is relatively strict bound to the GNU version of yacc, bison. A try would be to indentify the line in the generated makefile and edit it to something like byacc -p msyy -d mapparser.y > mapparser.c Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From michel at omnisystem.com.br Tue Feb 19 10:08:39 2002 From: michel at omnisystem.com.br (Michel M. dos Santos) Date: Tue, 19 Feb 2002 15:08:39 -0300 Subject: [mapserver-users] Query and template files Message-ID: <02021915083901.05429@cartman.omni> Hello , In the example of Itasca , with cgi mode the queries are done by templates files. With the example of gmap , with mapscript/php are done other way. I'm confused with this. Somebody can help me ? []'s Michel M. dos Santos From pushkar at ERC.MsState.Edu Tue Feb 19 10:48:04 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Tue, 19 Feb 2002 12:48:04 -0600 (CST) Subject: [mapserver-users] php/mapscript problem In-Reply-To: <3C724EC9.D6B9F786@dmsolutions.ca> Message-ID: Daniel, Thanks for the suggestion now I don't get an error on the CFLAGS line any more, but still it doesn't compile with the foll. error. It says -Wall is an illegal option. Please help. gmake[1]: *** [php_mapscript_util.o] Error 1 The whole detail is: (I tried both make and gnu make util.) Banshee[90] pushkar$ gmake cd mapscript/php3; gmake; cd ../.. gmake[1]: Entering directory `/rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3' cc -O -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.. -KPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_GDAL -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_TTF -I/rstc/user1/erc/pushkar/mapserver_3.5 -I/rstc/user1/erc/pushkar/gdal-1.1.5/port -I/rstc/user1/erc/pushkar/gdal-1.1.5/core -I/rstc/user1/erc/pushkar/gdal-1.1.5/ogr -I/rstc/user1/erc/pushkar/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/include -I/rstc/user1/erc/pushkar/php-4.0.6 -I/rstc/user1/erc/pushkar/php-4.0.6/dl -I/rstc/user1/erc/pushkar/php-4.0.6/main -I/rstc/user1/erc/pushkar/php-4.0.6/Zend -I/rstc/user1/erc/pushkar/php-4.0.6/include -I/rstc/user1/erc/pushkar/php-4.0.6/TSRM -I/rstc/user1/erc/pushkar/apache_1.3.22/include -c -o php_mapscript_util.o php_mapscript_util.c cc: Warning: option -2 passed to ld cc: illegal option -Wall gmake[1]: *** [php_mapscript_util.o] Error 1 gmake[1]: Leaving directory `/rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3' > Pushkar Pradhan wrote: > > > > This creates the makefile but when I do a make I get the foll. error: > > cd mapscript/php3; make; cd ../.. > > make: Fatal error in reader: Makefile, line 69: Badly formed macro > > assignment > > Current working directory > > /rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3 > > *** Error code 1 > > make: Fatal error: Command failed for target `php3_mapscript' > > Actually the error occurs on line 69 of the Makefile in mapscript/php dir. > > This line is: > > CFLAGS := $(CFLAGS) $(MS_DEFINE) $(MS_INC) $(PHP_INC) > > > If I remember well, ":=" is supported only by GNUMake... and changing > the above statement to use "=" won't work because the old value of > CFLAGS is reassigned to itself. I'll file a bug in bugzilla about > fixing the makefiles so that they don't rely on GNUMake features, but in > the meantime your can either install GNUmake or edit the statement above > to be: > > CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 $(MS_DEFINE) $(MS_INC) \ > $(PHP_INC) > > -- > ------------------------------------------------------------ > 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. > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From jsmedsmo at gis.umn.edu Tue Feb 19 12:23:17 2002 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Tue, 19 Feb 2002 14:23:17 -0600 Subject: [mapserver-users] Getting Started for Newbies Message-ID: <3C72B435.8050107@gis.umn.edu> Peter Schut and I put together a "Getting Started HOWTO" to give an overview of the components of a basic MapServer application. It's now linked on the documentation page at http://mapserver.gis.umn.edu/doc/getstarted-howto.html. Hopefully those just starting with MapServer. Jamie Smedsmo From shussain at atsincorp.com Tue Feb 19 12:48:18 2002 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Tue, 19 Feb 2002 14:48:18 -0600 (CST) Subject: [mapserver-users] Date: Tue, 19 Feb 2002 15:44:41 -0500 Message-ID: <4D25CDA67110D3119FFB0008C707D7A7051F2B@DEATHSTAR> Hi Friends, Thanks for your help, its working fine for filtering one layer. I changed my query like following and it working fine. http://208.163.164.119:6500/cgi-bin/mapserv?map=../htdocs/pams1/pams.map&lay ers=flightline&mode=itemnquery&zoomdir=0&imgxy=585 295&imgext=300434 -148033 322234 1655445&zoomsize=2&mapext=-252600 -148033 274400 165545 &qlayer=flightline&map_flightline_header=mapdisplay.html&map_flightline_temp late=zoomto.html&map_flightline_filter=%22204A%22%22218A%22 I want to do filtering multiple layers, i passed the url like http://208.163.164.119:6500/cgi-bin/mapserv?map=../htdocs/pams1/pams.map&lay ers=flightline&mode=itemnquery&zoomdir=0&imgxy=585 295&imgext=300434 -148033 322234 1655445&zoomsize=2&mapext=-252600 -148033 274400 165545 &qlayer=flightline photo &map_flightline_header=mapdisplay.html&map_flightline_template=zoomto.html&m ap_flightline_filter=%22204A%22%22218A%22 &map_photo_header=mapdisplay.html&map_photo_template=zoomto.html&map_photo_f ilter=%22204A%22%22218A%22 where flightline and photo are two layers. Do you think what i am passing the url is correct to do multiple filters. i am getting the error like msQueryByAttributes(): General error message. No query layer defined. i defined the filter item in my map file for the two layers. Can any one help me whats wrong in that url. Thanks, Anwar From Tom.Cadman at region.durham.on.ca Tue Feb 19 12:48:46 2002 From: Tom.Cadman at region.durham.on.ca (Tom Cadman) Date: Tue, 19 Feb 2002 15:48:46 -0500 Subject: [mapserver-users] Mapserver Test Suite in Gallery Message-ID: I've been trying to get Version 3.5 working with some of my apllications with liitle success. I decided to try the Test Suite with Mapserver 3.5 but had no luck. I do have a version of the Test Suite operational on my server using Version 3.4. As a result, I went to the version of the Test Suite on the Mapserver home page - in the Gallery, to see what I was doing wrong. It appears that this example is using Version 3.4. I accessed the directory and saw a 'Tests3.5' directory and thought this was exactly what I was after, so I tried the top level page. I got the same type of error messages here, as I get on my version on my server at home, when attempting to use Version 3.5. For example, for the first item - Automatic text rotation ... I get broken links to the images and a check of the info page gives a getSymbo() Symbol definition error (FONT):(19) , just like on my machine. When accessing ..'labeling of contours' I get the same result. The version I am using is a downloaded binary for 3.5 with gif and png support. (ascertained using mapserv -v). Could someone please explain to me why these files appear to work fine under version 3.4 but not version 3.5. In addition, a 'How To' document describing how to convert from one version to the other, would be very useful. It would also be very useful to have the Test Suite function under the latest version of MapServer. Anyway, as an avid fan of this software, I am extremely impressed with what has been achieved to date and the caliber of the people associated with this endeavor. I would like to congratulate all of you, particularly Steve Lime, on a job well done. I'm sure all of us lesser lights out here, look forward to seeing what the future holds for MapServer. From gsathis at yahoo.com Tue Feb 19 15:11:51 2002 From: gsathis at yahoo.com (Sathiskumar Govindasamy) Date: Tue, 19 Feb 2002 17:11:51 -0600 Subject: [mapserver-users] Java Wrapper for mapserver References: <3C7140CE.4070903@yahoo.com> <5.1.0.14.0.20020219071156.00b55068@10.10.10.9> <3C725513.8090202@hs-harz.de> <3C72680A.90204@yahoo.com> <3C726FC5.2040801@hs-harz.de> Message-ID: <3C72DBB7.60109@yahoo.com> Harald, One good thing. I found a native method in the big mapscript class msSaveImage(). It worked. It saved the image to the place I wanted. I have attached the modified version of your example file. Cool. Sathios Harald Wehr wrote: >> It created some java files. >> Then I did >> FLAGS="-DUSE_PROJ -DUSE_PROJ_API_H -DUSE_GD_PNG -DUSE_GD_JPEG >> -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_EPPL >> -DUSE_GDAL"gcc -fpic -c $FLAGS -I/usr/java/j2sdk1.4.0/include >> -I/usr/java/j2sdk1.4.0/include/linux mapscript_wrap.c >> gcc -fpic -shared -o libmapscript.so -L/usr/lib -lgd -ljpeg >> -lfreetype -lpng -lz -ltiff -L/usr/local/lib -lgdal.1.1 -lproj >> mapscript_wrap.o ../../libmap.a > > > > Looks good to me. Attached you find my compile-file. But I think it's > nearly the same. > > >> >> Java programs didn't compile right off the bat. I need to correct all >> those 'long' variable types and return types. Then it compiled. Also, >> I have a basic doubt. In that directory there are two library files. >> >> 1. libmapscript.so >> 2. mapscript_wrap.o >> >> Which one do I need to load with System.load ? > > > > In my opinion you only need the first one. Also attached, you find a > short java-program that works for me and writes the name of the > template file if there is one in you map-file. > > I use tomcat4 as the > >> servlet engine and I couldn't figure out where to put the files to >> use System.loadLibrary. It keeps complining that it could not find >> the library file in the library path. Do you happen to know where >> should I put the library file to use System.loadLibrary ? If I try to >> give full path in that it throws and exception that directory >> seperators should not be use. > > > > Hm, try to test my java-programm. I can move the java-prog, > libmapscript.so and the java-classes wherever i want on my system and > it works. The libmapscript.so is in the same directory as the > java-program. The java-classes are in the package mobiharz i send in > the last mail to you. > > Harald > > >------------------------------------------------------------------------ > >#!/bin/sh > >FLAGS="-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_TIFF -DUSE_JPEG -DUSE_GDAL -DUSE_EPPL -DUSE_PDF" > > >gcc -fpic -c $FLAGS -I/opt/java/jdk1.3.1_02/include -I/opt/java/jdk1.3.1_02/include/linux mapscript_wrap.c > >gcc -fpic -shared -o libmapscript.so -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -lpdf -L/usr/local/lib -lgdal.1.1 mapscript_wrap.o ../../libmap.a > > >#gcc -fpic -c $FLAGS -I/usr/java/jdk1.3.1_01/include >#-I/usr/java/jdk1.3.1_01/include/linux mapscript_wrap.c >#gcc -fpic -shared -o libmapscript.so -L/usr/lib -lgd -ljpeg -lfreetype -lpng >#-lz -ltiff -L/usr/local/lib -lgdal.1.1 -lproj mapscript_wrap.o > > > >------------------------------------------------------------------------ > >import mobiharz.*; > > >public class version { > static { > try { > System.loadLibrary("mapscript"); > } catch (UnsatisfiedLinkError e) { > System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e); > System.exit(1); > } > } > > public static void main(String argv[]) { > mapObj map = new mapObj("/home/hawe/public_html/lk/own.map"); > webObj web = map.getWeb(); > System.out.println(web.getTemplate()); > } >} > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: version.java URL: From lyndon.zimmermann at adelaide.edu.au Tue Feb 19 19:47:09 2002 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Wed, 20 Feb 2002 14:17:09 +1030 Subject: [mapserver-users] What's wrong with this string? References: Message-ID: <3C731C3D.B3BF981C@adelaide.edu.au> I'm reworking an enquiry front end, and currently generate an initiate string: http://sg211.gisca.adelaide.edu.au/cgi-bin/mapserv/mapserv?map=..%2Fhtdocs%2Fau_afs_mapserver%2Fau_afs_nojava.map&mode=browse&layer=state_boundaries&zoomsize=2&imgext=855342.0+-4343315.0+1458169.0+-3768371.0&resources=infield&pop=999&roads=999&elec=999 It appears to ignore the imgext, and just uses the defaults. Any clues? The values are an Albers projection, I obtained by zooming to my region of interest and copying the command string that produced it. Lyndon Zimmermann -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) LOW RAINFALL AGROFORESTRY RESEARCH UNIT Affiliated with the CRC for Plant Based Management of Dryland Salinity University of Adelaide Department of Agronomy and Farming Systems Physical address: Hannaford Building (via Gate 3) Waite Campus, South Australia Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au Bionergy Atlas Website: http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html Unless otherwise stated, the content of this message and attachments may be forwarded or quoted, with due acknowledgement. No representation is made that this email is free of viruses. Virus scanning is recommended and is the responsibility of the recipient. From perik at azimuth.nl Wed Feb 20 00:18:59 2002 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Wed, 20 Feb 2002 09:18:59 +0100 Subject: [mapserver-users] Query and template files In-Reply-To: <02021915083901.05429@cartman.omni> Message-ID: <5.1.0.14.2.20020220084807.00a38760@localhost> Hi Michel, In the GMAP version the query (by button) is retreiving information according to METADATA set in your layers. Basicly it goes like this: 1) GMap75CheckClick() --> checks user input on the rosa-map, eg zoom-in zoom-out, pan, query. 2) When query button is used and then user clicks on map it uses following: else if ($HTTP_FORM_VARS["CMD"] == "QUERY_POINT") a) here it checks if point or rectangle is used b) pixel-coords are then translated to geo-coords c) query: * @$gpoMap->queryByPoint($oClickGeo, MS_SINGLE, -1); <-- queries the map (single point) * @$gpoMap->queryByRect($oGeorefRect); <-- queries the map (rectangle) d) $gbShowQueryResults = TRUE; <-- query is used e) it now reloads gmap.php f) in gmap.php you see: g) this uses the function GMapDumpQueryResults() h) In your map-file, it checks for the following in every layer: METADATA "DESCRIPTION" "PrintedDescription" "RESULT_FIELDS" "FIELD ANOTHER_FILED" # Field names of you .dbf-file END i) if it finds metadata it passes it to the main file (gmap.php) j) also any found objects are now highlighted in the main map * Every time gmap.php is loaded it uses the function GMapDrawMap() : if ($gbShowQueryResults) // <-- found objects, so drawQuery, highlights the objects $img = $gpoMap->drawQuery(); else // <-- nothing found, draw normal map (nothing changes) $img = $gpoMap->draw(); k) General info: certain Variables (like $gpoMap) are set to global to use for other functions You now can add features like: NewExtent --> map zooms in to the rectangle you used for query based on the geo-coords of the rectangle I never got into the CGI stuff cause i loced the combination of Mapscript and Rosa, so sticking with that. Good luck, Erwin At 15:08 19-2-02 -0300, Michel M. dos Santos wrote: > Hello , > > In the example of Itasca , with cgi mode the queries are done by > templates >files. With the example of gmap , with mapscript/php are done other way. I'm >confused with this. > > Somebody can help me ? > >[]'s >Michel M. dos Santos ================= Azimuth Geodetic Koldingweg 8 9723 HK Groningen tel. 050-5493454 fax. 050-5497217 ================= www.azimuth.nl perik at azimuth.nl ================= From perik at azimuth.nl Wed Feb 20 00:47:23 2002 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Wed, 20 Feb 2002 09:47:23 +0100 Subject: [mapserver-users] What's wrong with this string? In-Reply-To: <3C731C3D.B3BF981C@adelaide.edu.au> References: Message-ID: <5.1.0.14.2.20020220092013.00a50120@localhost> Lyndon, i do not know what your defaults are, but check to see if something like following is used: Think you are missing the image x and y to use for the zoom. Use something like this to also pass the zoom value:

(BTW, negative coords are not the problem) Erwin At 14:17 20-2-02 +1030, Lyndon Zimmermann wrote: >I'm reworking an enquiry front end, and currently generate an initiate >string: > >http://sg211.gisca.adelaide.edu.au/cgi-bin/mapserv/mapserv?map=..%2Fhtdocs%2Fau_afs_mapserver%2Fau_afs_nojava.map&mode=browse&layer=state_boundaries&zoomsize=2&imgext=855342.0+-4343315.0+1458169.0+-3768371.0&resources=infield&pop=999&roads=999&elec=999 > >It appears to ignore the imgext, and just uses the defaults. Any >clues? The values are an Albers projection, I obtained by zooming to my >region of interest and copying the command string that produced it. > >Lyndon Zimmermann > >-- >Lyndon Zimmermann >BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > >LOW RAINFALL AGROFORESTRY RESEARCH UNIT >Affiliated with the CRC for Plant Based Management of Dryland Salinity > >University of Adelaide Department of Agronomy and Farming Systems >Physical address: Hannaford Building (via Gate 3) Waite Campus, South >Australia >Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia >Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 >Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au > >Bionergy Atlas Website: >http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html > >Unless otherwise stated, the content of this message and attachments may >be forwarded or quoted, with due acknowledgement. No representation is >made that this email is free of viruses. Virus scanning is recommended >and is the responsibility of the recipient. ================= Azimuth Geodetic Koldingweg 8 9723 HK Groningen tel. 050-5493454 fax. 050-5497217 ================= www.azimuth.nl perik at azimuth.nl ================= From Carine.Castillon at medias.cnes.fr Wed Feb 20 02:29:02 2002 From: Carine.Castillon at medias.cnes.fr (Carine Castillon) Date: Wed, 20 Feb 2002 11:29:02 +0100 Subject: [mapserver-users] fatal error : failed to open map file Message-ID: <200202200934.g1K9YWs28958@cnes.fr> Hi everybody, I have a problem. When I test mapscript, an error occurs : Warning: MapServer Error in msLoadMap(): ():(0) in /export/opt/www/sig/gmap/htdocs/catch.php on line 47 Fatal error: Failed to open map file catch.map in /export/opt/www/sig/gmap/htdocs/catch.php on line 47 Somebody can help me about this ? thx Carine From steve.lime at dnr.state.mn.us Wed Feb 20 05:46:24 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 20 Feb 2002 07:46:24 -0600 Subject: [mapserver-users] What's wrong with this string? Message-ID: Imgext is only used to describe an existing image displayed by mapserver and needs x,y coordinates (in image units) to be useful. I think what you want to use mapext instead. Mapext refers to the extent of the map to be created and is the standard way to initialize an application. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Lyndon Zimmermann 02/19/02 21:55 PM >>> I'm reworking an enquiry front end, and currently generate an initiate string: http://sg211.gisca.adelaide.edu.au/cgi-bin/mapserv/mapserv?map=..%2Fhtdocs%2Fau_afs_mapserver%2Fau_afs_nojava.map&mode=browse&layer=state_boundaries&zoomsize=2&imgext=855342.0+-4343315.0+1458169.0+-3768371.0&resources=infield&pop=999&roads=999&elec=999 It appears to ignore the imgext, and just uses the defaults. Any clues? The values are an Albers projection, I obtained by zooming to my region of interest and copying the command string that produced it. Lyndon Zimmermann -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) LOW RAINFALL AGROFORESTRY RESEARCH UNIT Affiliated with the CRC for Plant Based Management of Dryland Salinity University of Adelaide Department of Agronomy and Farming Systems Physical address: Hannaford Building (via Gate 3) Waite Campus, South Australia Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au Bionergy Atlas Website: http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html Unless otherwise stated, the content of this message and attachments may be forwarded or quoted, with due acknowledgement. No representation is made that this email is free of viruses. Virus scanning is recommended and is the responsibility of the recipient. From mschulz at webgis.de Wed Feb 20 06:04:40 2002 From: mschulz at webgis.de (Michael Schulz) Date: Wed, 20 Feb 2002 15:04:40 +0100 Subject: [mapserver-users] Combination of packages... Message-ID: <3C73ACF8.54FBD29F@webgis.de> Dear List, could someone please give me some advice on which current versions of mapserver, php/mapscript (python/mapscript) and postgis work well together. I would like to upgrade to 3.5. Currently we are using 3.4. For a new project i would like to set up a new environment, but i am not sure if all current releases of each package fit together. OS would be Linux. One other thing i would be interested in is if anybody has got some experiences using mapserver with teleatlas or navtech data (either propietary format or in shp-format)? TIA, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From steve.lime at dnr.state.mn.us Wed Feb 20 07:38:20 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 20 Feb 2002 09:38:20 -0600 Subject: [mapserver-users] Fwd: ellps = international ?? Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: orkun Subject: ellps = international ?? Date: Wed, 20 Feb 2002 09:30:05 +0200 Size: 2199 URL: From steve.lime at dnr.state.mn.us Wed Feb 20 07:46:46 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 20 Feb 2002 09:46:46 -0600 Subject: [mapserver-users] Date: Tue, 19 Feb 2002 15:44:41 -0500 Message-ID: At the moment you can't do an itemquery on more than one layer at a time. There is no workaround for this at the moment (other than using mapscript- sorry. It's not a limitation in the query code per se but rather a limitation in how the CGI program considers the qlayer parameter. There is already a feature request that has been filed in bugzilla requesting the ability to set multiple query layers and I hope to address this soon. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Shaik Anwar Hussain 02/19/02 02:48PM >>> Hi Friends, Thanks for your help, its working fine for filtering one layer. I changed my query like following and it working fine. http://208.163.164.119:6500/cgi-bin/mapserv?map=../htdocs/pams1/pams.map&lay ers=flightline&mode=itemnquery&zoomdir=0&imgxy=585 295&imgext=300434 -148033 322234 1655445&zoomsize=2&mapext=-252600 -148033 274400 165545 &qlayer=flightline&map_flightline_header=mapdisplay.html&map_flightline_temp late=zoomto.html&map_flightline_filter=%22204A%22%22218A%22 I want to do filtering multiple layers, i passed the url like http://208.163.164.119:6500/cgi-bin/mapserv?map=../htdocs/pams1/pams.map&lay ers=flightline&mode=itemnquery&zoomdir=0&imgxy=585 295&imgext=300434 -148033 322234 1655445&zoomsize=2&mapext=-252600 -148033 274400 165545 &qlayer=flightline photo &map_flightline_header=mapdisplay.html&map_flightline_template=zoomto.html&m ap_flightline_filter=%22204A%22%22218A%22 &map_photo_header=mapdisplay.html&map_photo_template=zoomto.html&map_photo_f ilter=%22204A%22%22218A%22 where flightline and photo are two layers. Do you think what i am passing the url is correct to do multiple filters. i am getting the error like msQueryByAttributes(): General error message. No query layer defined. i defined the filter item in my map file for the two layers. Can any one help me whats wrong in that url. Thanks, Anwar From valdambrini at pisa.intecs.it Wed Feb 20 07:47:03 2002 From: valdambrini at pisa.intecs.it (Nicola Valdambrini) Date: Wed, 20 Feb 2002 16:47:03 +0100 Subject: [mapserver-users] onMouseOver features highlighting Message-ID: <020d01c1ba25$d7868c40$e11fefd4@antares> Hi, I'm using the MapServer and I wish to build some advanced graphical interface functionalities. I'm interested on highlighting my maps features (e.g. rivers, communes, lakes, etc.) with a special color when the user passes over them with the mouse pointer. I would like to display some information tips too. Sometimes it would be interesting to me to highlight more than one feature (for example all the communes that are crossed by the river the user is pointing). Can someone help me? Conceiving the information tips that appear on different features, I thought about building image AREAs and using the ALT HTML keyword. Obviously the problem is: how can I get the features outlines coordinates from the MapServer? thank you Nicola From steve.lime at dnr.state.mn.us Wed Feb 20 09:04:51 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 20 Feb 2002 11:04:51 -0600 Subject: [mapserver-users] Fwd: php4, apache and mapserver3.5 Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: Patricio Gigoux Subject: php4, apache and mapserver3.5 Date: Wed, 20 Feb 2002 14:00:37 -0300 Size: 3242 URL: From morissette at dmsolutions.ca Wed Feb 20 09:22:47 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 20 Feb 2002 12:22:47 -0500 Subject: [mapserver-users] Fwd: php4, apache and mapserver3.5 References: Message-ID: <3C73DB67.CC58E99F@dmsolutions.ca> > From: Patricio Gigoux > To: mapserver-info at lists.gis.umn.edu > > 2) I am trying to configure mapserver with PHP support, > >./configure --with-proj=/usr/local/proj-4.4.3 > --with-php=/usr/local/php-4.1.1 --with-apache=/www > >make > PHP 4.1.1 is not supported by MapScript yet. See... http://mapserver.gis.umn.edu/wilma/mapserver-users/0201/msg00291.html And BTW, please also note that if you installed PROJ4 properly using 'make install' then you don't need to specify a path in the --with-proj configure argument. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Wed Feb 20 09:35:51 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 20 Feb 2002 12:35:51 -0500 Subject: [mapserver-users] Combination of packages... References: <3C73ACF8.54FBD29F@webgis.de> Message-ID: <3C73DE77.AEFA3240@dmsolutions.ca> Hi Michael, I can't speak for the postgis version, but for sure if you go with PHP then you'll get best results with MapServer 3.5 and PHP4.0.6 configured as a CGI. Note that there is at least one outstanding bug related to PostGIS and queries from MapScript (should apply to all flavours of MapScript): http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=103 Daniel Michael Schulz wrote: > > Dear List, > > could someone please give me some advice on which current versions of > mapserver, php/mapscript (python/mapscript) and postgis work well > together. I would like to upgrade to 3.5. Currently we are using 3.4. > For a new project i would like to set up a new environment, but i am not > sure if all current releases of each package fit together. OS would be > Linux. > > One other thing i would be interested in is if anybody has got some > experiences using mapserver with teleatlas or navtech data (either > propietary format or in shp-format)? > > TIA, Michael > > -- > ----------------------------------------------------------- > Michael Schulz in medias res > Dipl.-Geologe Gesellschaft f?r > Informationstechnologie mbH > Sautierstr. 38, 79104 Freiburg > 0761 55695-95 (Fax 96) > mschulz at webgis.de www.webgis.de From rramuhn at chu-rouen.fr Wed Feb 20 09:59:45 2002 From: rramuhn at chu-rouen.fr (RRAMUHN,) Date: Wed, 20 Feb 2002 18:59:45 +0100 Subject: [mapserver-users] Fwd: ellps = international ?? Message-ID: <8CC51D30DA6FD311950B0000F6C74F130483FA95@primanet.chu-rouen.fr> try "International 1924" rather than "international" only ? -----Message d'origine----- De : Steve Lime [mailto:steve.lime at dnr.state.mn.us] Envoy? : mercredi 20 f?vrier 2002 16:38 ? : mapserver-users at lists.gis.umn.edu Objet : [mapserver-users] Fwd: ellps = international ?? Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From pushkar at ERC.MsState.Edu Wed Feb 20 10:20:54 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Wed, 20 Feb 2002 12:20:54 -0600 (CST) Subject: [mapserver-users] query in ms 3.5 Message-ID: Can anybody send me an example of how to do a query in ms 3.5 or correct my map file, I tried putting TYPE query but didn't work. I am pasting below a portion of my .map file, the county_rds2001.html contains what used to be in the header, footer and the main files in ms 3.3 Besides I also want to show the layer as well as query it. What is QUERYITEM I didn't find any info on it? Thanks, LAYER NAME county_rds2001 TYPE LINE DATA county_rds2001 STATUS ON QUERYITEM "county roads" CLASS NAME "County Roads 2001" COLOR 200 125 25 END QUERY TEMPLATE "county_rds2001.html" END TOLERANCE 3 END # end of layer object - county roads (2001) ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From pramsey at refractions.net Wed Feb 20 10:36:51 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 20 Feb 2002 10:36:51 -0800 Subject: [mapserver-users] Combination of packages... References: <3C73ACF8.54FBD29F@webgis.de> <3C73DE77.AEFA3240@dmsolutions.ca> Message-ID: <3C73ECC3.CAFB4F17@refractions.net> ms3.5 and postgis 0.6.2 are known to work together Daniel Morissette wrote: > > Hi Michael, > > I can't speak for the postgis version, but for sure if you go with PHP > then you'll get best results with MapServer 3.5 and PHP4.0.6 configured > as a CGI. > > Note that there is at least one outstanding bug related to PostGIS and > queries from MapScript (should apply to all flavours of MapScript): > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=103 > > Daniel > > Michael Schulz wrote: > > > > Dear List, > > > > could someone please give me some advice on which current versions of > > mapserver, php/mapscript (python/mapscript) and postgis work well > > together. I would like to upgrade to 3.5. Currently we are using 3.4. > > For a new project i would like to set up a new environment, but i am not > > sure if all current releases of each package fit together. OS would be > > Linux. > > > > One other thing i would be interested in is if anybody has got some > > experiences using mapserver with teleatlas or navtech data (either > > propietary format or in shp-format)? > > > > TIA, Michael > > > > -- > > ----------------------------------------------------------- > > Michael Schulz in medias res > > Dipl.-Geologe Gesellschaft f?r > > Informationstechnologie mbH > > Sautierstr. 38, 79104 Freiburg > > 0761 55695-95 (Fax 96) > > mschulz at webgis.de www.webgis.de From teb at mallit.fr.umn.edu Wed Feb 20 11:45:58 2002 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 20 Feb 2002 13:45:58 -0600 (CST) Subject: [mapserver-users] php4, apache and mapserver3.5 (FWD) Message-ID: <200202201945.NAA27172@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-UIDL: -<]"!kg<"!jDH!!LM7!! From: Patricio Gigoux To: mapserver-info at lists.gis.umn.edu Subject: php4, apache and mapserver3.5 Date: Wed, 20 Feb 2002 14:00:37 -0300 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit I have followed the next step 1) I configured PHP and Apache >cd apache_1.3.23 >./configure >cd ../php-4.1.1 >./configure --with-mysql --with-dbase --with-pgsql --with-apache=../apache_1.3.23 --enable-track-vars --with-system-regex >make >make install >cd ../apache_1.3.23 >./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a >make >make install >cd ../php-4.1.1 >cp *.ini-dist /usr/local/lib/php.ini 2) I am trying to configure mapserver with PHP support, >./configure --with-proj=/usr/local/proj-4.4.3 --with-php=/usr/local/php-4.1.1 --with-apache=/www >make but, meke give me next gcc -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -I/usr/local/include -I. -I.. -f PIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS -DUSE_PROJ -DUSE_PROJ_API_H -DUSE _EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG -I/usr/local/mapserver_3.5 -I/usr/local/proj-4.4.3/src -I/usr/include -I/us r/local/php-4.1.1 -I/usr/local/php-4.1.1/dl -I/usr/local/php-4.1.1/main -I/usr/local /php-4.1.1/Zend -I/usr/local/php-4.1.1/include -I/usr/local/php-4.1.1/TSRM -I/www/in clude -c -o php_mapscript.o php_mapscript.c php_mapscript.c:434: warning: initialization makes integer from pointer without a ca st php_mapscript.c:434: initializer element is not computable at load time php_mapscript.c:434: (near initialization for `php3_ms_module_entry.size') php_mapscript.c:434: warning: initialization makes integer from pointer without a ca st php_mapscript.c:434: warning: initialization makes integer from pointer without a ca st php_mapscript.c:434: initializer element is not computable at load time php_mapscript.c:434: (near initialization for `php3_ms_module_entry.zend_debug') php_mapscript.c:434: warning: initialization makes integer from pointer without a ca st php_mapscript.c:434: initializer element is not computable at load time php_mapscript.c:434: (near initialization for `php3_ms_module_entry.zts') php_mapscript.c:437: warning: initialization from incompatible pointer type php_mapscript.c: In function `php3_ms_img_saveImage': php_mapscript.c:3917: warning: implicit declaration of function `php_header' make[1]: *** [php_mapscript.o] Error 1 make[1]: Saliendo directorio `/usr/local/mapserver_3.5/mapscript/php3' Then, php_mapscript.so is not create What is mistake? Thank you in advance ------------- End Forwarded Message ------------- From lyndon.zimmermann at adelaide.edu.au Wed Feb 20 14:24:58 2002 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Thu, 21 Feb 2002 08:54:58 +1030 Subject: [mapserver-users] What's wrong with this string? References: Message-ID: <3C74223A.52FEBA2@adelaide.edu.au> Steve, Bingo! Thanks. Thanks also Erwin, I had found that one () myself but otherwise it would have been a vital clue. Lyndon Z Steve Lime wrote: > > Imgext is only used to describe an existing image displayed by mapserver > and needs x,y coordinates (in image units) to be useful. I think what > you want to use mapext instead. Mapext refers to the extent of the map > to be created and is the standard way to initialize an application. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > >>> Lyndon Zimmermann 02/19/02 21:55 > PM >>> > I'm reworking an enquiry front end, and currently generate an initiate > string: > > http://sg211.gisca.adelaide.edu.au/cgi-bin/mapserv/mapserv?map=..%2Fhtdocs%2Fau_afs_mapserver%2Fau_afs_nojava.map&mode=browse&layer=state_boundaries&zoomsize=2&imgext=855342.0+-4343315.0+1458169.0+-3768371.0&resources=infield&pop=999&roads=999&elec=999 > > It appears to ignore the imgext, and just uses the defaults. Any > clues? The values are an Albers projection, I obtained by zooming to my > region of interest and copying the command string that produced it. > > Lyndon Zimmermann > > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > LOW RAINFALL AGROFORESTRY RESEARCH UNIT > Affiliated with the CRC for Plant Based Management of Dryland Salinity > > University of Adelaide Department of Agronomy and Farming Systems > Physical address: Hannaford Building (via Gate 3) Waite Campus, South > Australia > Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia > Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 > Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au > > Bionergy Atlas Website: > http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html > > Unless otherwise stated, the content of this message and attachments may > be forwarded or quoted, with due acknowledgement. No representation is > made that this email is free of viruses. Virus scanning is recommended > and is the responsibility of the recipient. -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) LOW RAINFALL AGROFORESTRY RESEARCH UNIT Affiliated with the CRC for Plant Based Management of Dryland Salinity University of Adelaide Department of Agronomy and Farming Systems Physical address: Hannaford Building (via Gate 3) Waite Campus, South Australia Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au Bionergy Atlas Website: http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html Unless otherwise stated, the content of this message and attachments may be forwarded or quoted, with due acknowledgement. No representation is made that this email is free of viruses. Virus scanning is recommended and is the responsibility of the recipient. From steve.lime at dnr.state.mn.us Wed Feb 20 20:28:17 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 20 Feb 2002 22:28:17 -0600 Subject: [mapserver-users] Java Wrapper for mapserver Message-ID: I've talked to the PHP folks and we will add an imageObj to the main mapscript to maintain compatability between them. One other thing, I've had no problem getting the shared library to compile but am having a heck of time compiling the java class files. With swig I do a: swig -java -shadow -package mapscript mapscript.i but when compiling even a simple class like colorObj.java javac whines about not being able to resolve mapscript.whatever. Seems to be hung on the package name. Anyway, I'm not a java guru and am trying to write a Makefile based procedure to add to the distribution. I realize there are other hacks that have to be made to the .java files (will try to script those) but obviously I'm doing something stupid if I can't even get the most simple file to build. Note that I'm moving all of the .java files into their own directory apart from the C stuff. Ideas? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Sathiskumar Govindasamy 02/19/02 17:18 PM >>> Harald, One good thing. I found a native method in the big mapscript class msSaveImage(). It worked. It saved the image to the place I wanted. I have attached the modified version of your example file. Cool. Sathios Harald Wehr wrote: >> It created some java files. >> Then I did >> FLAGS="-DUSE_PROJ -DUSE_PROJ_API_H -DUSE_GD_PNG -DUSE_GD_JPEG >> -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_EPPL >> -DUSE_GDAL"gcc -fpic -c $FLAGS -I/usr/java/j2sdk1.4.0/include >> -I/usr/java/j2sdk1.4.0/include/linux mapscript_wrap.c >> gcc -fpic -shared -o libmapscript.so -L/usr/lib -lgd -ljpeg >> -lfreetype -lpng -lz -ltiff -L/usr/local/lib -lgdal.1.1 -lproj >> mapscript_wrap.o ../../libmap.a > > > > Looks good to me. Attached you find my compile-file. But I think it's > nearly the same. > > >> >> Java programs didn't compile right off the bat. I need to correct all >> those 'long' variable types and return types. Then it compiled. Also, >> I have a basic doubt. In that directory there are two library files. >> >> 1. libmapscript.so >> 2. mapscript_wrap.o >> >> Which one do I need to load with System.load ? > > > > In my opinion you only need the first one. Also attached, you find a > short java-program that works for me and writes the name of the > template file if there is one in you map-file. > > I use tomcat4 as the > >> servlet engine and I couldn't figure out where to put the files to >> use System.loadLibrary. It keeps complining that it could not find >> the library file in the library path. Do you happen to know where >> should I put the library file to use System.loadLibrary ? If I try to >> give full path in that it throws and exception that directory >> seperators should not be use. > > > > Hm, try to test my java-programm. I can move the java-prog, > libmapscript.so and the java-classes wherever i want on my system and > it works. The libmapscript.so is in the same directory as the > java-program. The java-classes are in the package mobiharz i send in > the last mail to you. > > Harald > > >------------------------------------------------------------------------ > >#!/bin/sh > >FLAGS="-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_TIFF -DUSE_JPEG -DUSE_GDAL -DUSE_EPPL -DUSE_PDF" > > >gcc -fpic -c $FLAGS -I/opt/java/jdk1.3.1_02/include -I/opt/java/jdk1.3.1_02/include/linux mapscript_wrap.c > >gcc -fpic -shared -o libmapscript.so -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -lpdf -L/usr/local/lib -lgdal.1.1 mapscript_wrap.o ../../libmap.a > > >#gcc -fpic -c $FLAGS -I/usr/java/jdk1.3.1_01/include >#-I/usr/java/jdk1.3.1_01/include/linux mapscript_wrap.c >#gcc -fpic -shared -o libmapscript.so -L/usr/lib -lgd -ljpeg -lfreetype -lpng >#-lz -ltiff -L/usr/local/lib -lgdal.1.1 -lproj mapscript_wrap.o > > > >------------------------------------------------------------------------ > >import mobiharz.*; > > >public class version { > static { > try { > System.loadLibrary("mapscript"); > } catch (UnsatisfiedLinkError e) { > System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e); > System.exit(1); > } > } > > public static void main(String argv[]) { > mapObj map = new mapObj("/home/hawe/public_html/lk/own.map"); > webObj web = map.getWeb(); > System.out.println(web.getTemplate()); > } >} > From hwehr at hs-harz.de Wed Feb 20 22:49:28 2002 From: hwehr at hs-harz.de (Harald Wehr) Date: Thu, 21 Feb 2002 07:49:28 +0100 Subject: [mapserver-users] Java Wrapper for mapserver References: Message-ID: <3C749878.30100@hs-harz.de> Steve Lime wrote: > I've talked to the PHP folks and we will add an imageObj to the main mapscript to maintain compatability between them. > > One other thing, I've had no problem getting the shared library to compile but am having a heck of time compiling the java class files. With swig I do a: > > swig -java -shadow -package mapscript mapscript.i > > but when compiling even a simple class like colorObj.java javac whines about not being able to resolve mapscript.whatever. Seems to be hung on the package name. Anyway, I'm not a java guru and am trying to write a Makefile based procedure to add to the distribution. I realize there are other hacks that have to be made to the .java files (will try to script those) but obviously I'm doing something stupid if I can't even get the most simple file to build. Note that I'm moving all of the .java files into their own directory apart from the C stuff. Ideas? Hi Steve, can you give the exact error message? When you "swigg" mapscript to java-files as package "mapscript" they all must be in a directory called "mapscript". Then you compile with: javac mapscript/*.java and it should work. Harald From vogt at Hamburg.BAW.DE Thu Feb 21 03:39:54 2002 From: vogt at Hamburg.BAW.DE (Carsten Vogt) Date: Thu, 21 Feb 2002 12:39:54 +0100 Subject: [mapserver-users] compilation problem Message-ID: <4.3.2.7.0.20020221123539.00b6d640@uranos> Hello, (I hope that you don't get this message for the second time. I wasn't registered when I tried the first time. If so, I apologize for this extra mail!) I just tried to compile the actual mapserver (MapServer 3.5 (12/18/01), downloaded from Mapserver Website) on Solaris 8 (Sun OS 5.8, gcc 2.95.3) with all required libraries installed (at least I think so :-) and configure with --with-apxs --with-php=/path/to/php/source and get the following error: gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [php_mapscript_util.o] Error 1 make[1]: Leaving directory `/opt/src/mapserver_3.5/mapscript/php3' Any ideas? Regards, Carsten Vogt ----------------------------------------------------------- Dipl.-Geogr. Carsten Vogt Tel.: 040 - 81908 - 345 Fax: 040 - 81908 - 373 vogt at hamburg.baw.de http://nokis.baw.de/ Bundesanstalt fuer Wasserbau - Aussenstelle Kueste - Wedeler Landstrasse 157 DE - 22559 Hamburg ----------------------------------------------------------- From Carine.Castillon at medias.cnes.fr Thu Feb 21 06:08:53 2002 From: Carine.Castillon at medias.cnes.fr (Carine Castillon) Date: Thu, 21 Feb 2002 15:08:53 +0100 Subject: [mapserver-users] Filter problem Message-ID: <200202211544.g1LFi0s09334@cnes.fr> Hello, I tried to use "setfilter()" with my layer, but I get the following error : Warning: MapServer Error in msPOSTGISLayerWhichShapes(): prep_DB:Error executing POSTGIS DECLARE statement (0.6 failed - retried 0.5 and it failed too). in /export/opt/www/sig/gmap/htdocs/catch.inc.php on line 354 Fatal error: Call to a member function on a non-object in /export/opt/www/sig/gmap/htdocs/catch.inc.php on line 357 Somebody can help me ? thank you Carine From gsathis at yahoo.com Thu Feb 21 07:52:26 2002 From: gsathis at yahoo.com (Sathiskumar Govindasamy) Date: Thu, 21 Feb 2002 09:52:26 -0600 Subject: [mapserver-users] Java Wrapper for mapserver References: <3C749878.30100@hs-harz.de> Message-ID: <3C7517BA.3070702@yahoo.com> Steve, To my experience, You are right. Once you are done with swigging, the java code is not ready to compile rightway. I got some 70+ errors. But those are simple corrections. Few missing 'long's in parameter type of a function or return type of a function. In all the java programs check for variables "rect" & "img" which are missing its datatype which is long. Also, in couple of instances 'class' is defined as variable name and since it is reserved word, it will fail to compile. In two places a function is defined twice and you have to comment out one. I know Harald have done the same. If you want, I can send you the corrected java code. It would be great if there is a consistency between all the mapscript implementations. I looked into perl module, and it is very close to java's. I did not find the imageObj in that too. Instead it uses the same msSaveImage function from the native code. Good luck with your java trial. Sathis Harald Wehr wrote: > Steve Lime wrote: > >> I've talked to the PHP folks and we will add an imageObj to the main >> mapscript to maintain compatability between them. >> >> One other thing, I've had no problem getting the shared library to >> compile but am having a heck of time compiling the java class files. >> With swig I do a: >> >> swig -java -shadow -package mapscript mapscript.i >> >> but when compiling even a simple class like colorObj.java javac >> whines about not being able to resolve mapscript.whatever. Seems to >> be hung on the package name. Anyway, I'm not a java guru and am >> trying to write a Makefile based procedure to add to the >> distribution. I realize there are other hacks that have to be made to >> the .java files (will try to script those) but obviously I'm doing >> something stupid if I can't even get the most simple file to build. >> Note that I'm moving all of the .java files into their own directory >> apart from the C stuff. Ideas? > > > Hi Steve, > > can you give the exact error message? When you "swigg" mapscript to > java-files as package "mapscript" they all must be in a directory > called "mapscript". Then you compile with: > > javac mapscript/*.java > > and it should work. > > Harald From jsmedsmo at gis.umn.edu Thu Feb 21 08:35:30 2002 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Thu, 21 Feb 2002 10:35:30 -0600 Subject: [mapserver-users] Perl MapScript Documentation Message-ID: <3C7521D2.4070508@gis.umn.edu> Hello All, A reference document is now available for Perl/MapScript (Thanks Lowell). You can access it at http://mapserver.gis.umn.edu/doc/perlmapscript-reference.html. Hope this helps, Jamie Smedsmo From est-n-alves at ptinovacao.pt Thu Feb 21 09:45:19 2002 From: est-n-alves at ptinovacao.pt (Nuno Alves) Date: Thu, 21 Feb 2002 17:45:19 -0000 Subject: [mapserver-users] New perl mapscript doc Error? Message-ID: Hi all, We can see in the new mapscript documentation the following example, but i think it is wrong: the msSaveImage function has now new parameters (six), or am i wrong. This is the example of the perl mapscript 3.3. #!/usr/bin/perl use mapscript; $map = new mapObj('example.map) or die('Unable to open mapfile.'); $img = $map->draw() or die('Unable to draw map'); mapscript::msSaveImage($img, 'example.gif', $map->{interlace}, $map->{transparent}); I also would like to know if it will be posted a "perl mapscript by example how-to" like in php documentation. Thanks in advance, <<...OLE_Obj...>> Nuno Ricardo Ribeiro Alves PT Inova??o, S.A. Servi?os e Redes M?veis * R. Eng? Jos? Ferreira Pinto Basto - 3810 Aveiro * mailto:est-n-alves at ptinovacao.pt From pushkar at ERC.MsState.Edu Thu Feb 21 10:08:27 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Thu, 21 Feb 2002 12:08:27 -0600 (CST) Subject: [mapserver-users] gdal and imagine fmt Message-ID: Hi, I've compiled mapserver with gdal 1.1.5 my gdal config. supports hfa I've checked this. When I try to display ERDAS img files I get a blank img. Frank Warmerdam previously pointed out to include some debugg. info and this is what my apache error log says whenever I click on an img file for viewing: GTiff driver = 102d98, DS=0 GTiff driver = 1032a0, DS=0 He said a DS=0 is problem. By doing a gdalinfo on the img. I get foll info. about the bands: i.e. the color interp. is undefined so I have narrowed down the problem but what is the remedy? If anybody has worked around this please help me? Band 1 Block=64x64 Type=Byte, ColorInterp=Undefined Min=0.000/0, Max=255.000/0 Band 2 Block=64x64 Type=Byte, ColorInterp=Undefined Min=0.000/0, Max=255.000/0 Band 3 Block=64x64 Type=Byte, ColorInterp=Undefined Min=0.000/0, Max=255.000/0 ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From v at w.cl Thu Feb 21 13:40:47 2002 From: v at w.cl (Vinko Vrsalovic) Date: Thu, 21 Feb 2002 16:40:47 -0500 Subject: [mapserver-users] Length of a line calculation? In-Reply-To: <20020221182029.90441.qmail@web11305.mail.yahoo.com> References: <20020218124755.A12764@landsat.cprsig.cl> <20020221182029.90441.qmail@web11305.mail.yahoo.com> Message-ID: <20020221164047.A9549@landsat.cprsig.cl> On Thu, Feb 21, 2002 at 10:20:29AM -0800, Lowell Filak wrote: [...] > This can be done for each point of each line of each > shape and the distance calculated betwen points of > each line. You are absolutely right, thank you. I was hoping for a more automatic method, though :-). -- V. From michel at omnisystem.com.br Thu Feb 21 12:14:01 2002 From: michel at omnisystem.com.br (Michel M. dos Santos) Date: Thu, 21 Feb 2002 17:14:01 -0300 Subject: [mapserver-users] Query and template files In-Reply-To: <5.1.0.14.2.20020220084807.00a38760@localhost> References: <5.1.0.14.2.20020220084807.00a38760@localhost> Message-ID: <02022117140103.08147@cartman.omni> Thanks Erwin, I have another question: I want to do a search, for example, by name of the streets. In my html page I put a form for the user write the street he wants to search. The street is localized and displayed in the map. I need to search the record in dbf file and after in shape file ? I now the relation between dbf file and shape file are done by record number, correct ? []'s Michel M. dos Santos Em Qua 20 Fev 2002 05:18, Azimuth, Erwin Perik escreveu: > Hi Michel, > > In the GMAP version the query (by button) is retreiving information > according to METADATA set in your layers. > > Basicly it goes like this: > > > 1) GMap75CheckClick() --> checks user input on the rosa-map, eg zoom-in > zoom-out, pan, query. > 2) When query button is used and then user clicks on map it uses following: > > else if ($HTTP_FORM_VARS["CMD"] == "QUERY_POINT") > > a) here it checks if point or rectangle is used > b) pixel-coords are then translated to geo-coords > c) query: > * @$gpoMap->queryByPoint($oClickGeo, MS_SINGLE, -1); <-- > queries the map (single point) > * @$gpoMap->queryByRect($oGeorefRect); <-- queries the map > (rectangle) > d) $gbShowQueryResults = TRUE; <-- query is used > e) it now reloads gmap.php > f) in gmap.php you see: > g) this uses the function GMapDumpQueryResults() > h) In your map-file, it checks for the following in every layer: > METADATA > "DESCRIPTION" "PrintedDescription" > "RESULT_FIELDS" "FIELD ANOTHER_FILED" # Field names of you > .dbf-file > END > i) if it finds metadata it passes it to the main file (gmap.php) > j) also any found objects are now highlighted in the main map > * Every time gmap.php is loaded it uses the function GMapDrawMap() : > > if ($gbShowQueryResults) // <-- found objects, so drawQuery, > highlights the objects > $img = $gpoMap->drawQuery(); > else // <-- nothing found, draw normal map > (nothing changes) > $img = $gpoMap->draw(); > k) General info: certain Variables (like $gpoMap) are set to global to use > for other functions > > > You now can add features like: > NewExtent --> map zooms in to the rectangle you used for query based on the > geo-coords of the rectangle > > I never got into the CGI stuff cause i loced the combination of Mapscript > and Rosa, so sticking with that. > > Good luck, > > Erwin > > At 15:08 19-2-02 -0300, Michel M. dos Santos wrote: > > Hello , > > > > In the example of Itasca , with cgi mode the queries are done by > > templates > >files. With the example of gmap , with mapscript/php are done other way. > > I'm confused with this. > > > > Somebody can help me ? > > > >[]'s > >Michel M. dos Santos > > ================= > Azimuth Geodetic > Koldingweg 8 > 9723 HK Groningen > tel. 050-5493454 > fax. 050-5497217 > ================= > www.azimuth.nl > perik at azimuth.nl > ================= From vogt at Hamburg.BAW.DE Thu Feb 21 23:02:10 2002 From: vogt at Hamburg.BAW.DE (Carsten Vogt) Date: Fri, 22 Feb 2002 08:02:10 +0100 Subject: [mapserver-users] compilation problem In-Reply-To: <3C753F00.48B802F3@dmsolutions.ca> References: <4.3.2.7.0.20020221123539.00b6d640@uranos> Message-ID: <4.3.2.7.0.20020222075707.00b2cfd8@uranos> Oops, right! Here is the complete output: cd mapscript/php3; make; cd ../.. make[1]: Entering directory `/opt/src/mapserver_3.5/mapscript/php3' gcc gcc -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS -DUSE_PRO J -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_W BMP -DUSE_GD_TTF -DUSE_JPEG -I/opt/src/mapserver_3.5 -I/usr/local/inclu de -I/opt/src/php-4.1.0 -I/opt/src/php-4.1.0/dl -I/opt/src/php-4.1.0/main -I/o pt/src/php-4.1.0/Zend -I/opt/src/php-4.1.0/include -I/opt/src/php-4.1.0/TSRM -I/ usr/local/apache-1.3.22/include -c -o php_mapscript_util.o php_mapscript_util.c gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [php_mapscript_util.o] Error 1 make[1]: Leaving directory `/opt/src/mapserver_3.5/mapscript/php3' Regards, Carsten Vogt At 21.02.2002 13:40 -0500, you wrote: >Carsten Vogt wrote: > > > > I just tried to compile the actual mapserver (MapServer 3.5 (12/18/01), > > downloaded from Mapserver Website) on Solaris 8 (Sun OS 5.8, gcc 2.95.3) > > with all required libraries installed (at least I think so :-) and > > configure with --with-apxs --with-php=/path/to/php/source and get the > > following error: > > > > >This is probably due to a problem in the mapscript/php3/Makefile. But >in order to suggest a solution we need more information... we would need >to see the last command (starting with gcc) that got executed by the >Makefile before the error message. > > >-- >------------------------------------------------------------ > 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. ----------------------------------------------------------- Dipl.-Geogr. Carsten Vogt Tel.: 040 - 81908 - 345 Fax: 040 - 81908 - 373 vogt at hamburg.baw.de http://nokis.baw.de/ Bundesanstalt fuer Wasserbau - Aussenstelle Kueste - Wedeler Landstrasse 157 DE - 22559 Hamburg ----------------------------------------------------------- From perik at azimuth.nl Fri Feb 22 05:06:59 2002 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Fri, 22 Feb 2002 14:06:59 +0100 Subject: [mapserver-users] Query and template files In-Reply-To: <02022117140103.08147@cartman.omni> References: <5.1.0.14.2.20020220084807.00a38760@localhost> <5.1.0.14.2.20020220084807.00a38760@localhost> Message-ID: <5.1.0.14.2.20020222135154.00a187d0@localhost> Hi Michel, Mmm,... coinsidence,.... working on about the same idea as you described ;-) Relationship is ok. Once you have the correct row you can then use that one to search for the shape. Myself i use PHP mapscript,... where i do it like this: Search-Field ---> calls a javascript --> pass variables (like the search-field) to a popup window. This popup is a php file which uses the variables bassed by the javascript. In that popup-php it searches the dbf using standard PHP functions. It then returns both fields and values of the found row(s). These fields are then passed to the popup-page. It then is possible (you have it's index) to get the shape, create new extents, create the image and show it. Highlighting is still my problem,.... i can only get the complete layer to highlight, but as it's zoomed in (shape-extents) it is no real bother. I do however want to show only the found shape in an overview-map, but not found out how yet. Tried numerous, but all failed. Any help regarding this would be great ;-) Erwin At 17:14 21-2-02 -0300, Michel M. dos Santos wrote: > Thanks Erwin, > > I have another question: > > I want to do a search, for example, by name of the streets. In my > html page >I put a form for the user write the street he wants to search. The street is >localized and displayed in the map. I need to search the record in dbf file >and after in shape file ? I now the relation between dbf file and shape file >are done by record number, correct ? > >[]'s >Michel M. dos Santos > > > >Em Qua 20 Fev 2002 05:18, Azimuth, Erwin Perik escreveu: > > Hi Michel, > > > > In the GMAP version the query (by button) is retreiving information > > according to METADATA set in your layers. > > > > Basicly it goes like this: > > > > > > 1) GMap75CheckClick() --> checks user input on the rosa-map, eg zoom-in > > zoom-out, pan, query. > > 2) When query button is used and then user clicks on map it uses following: > > > > else if ($HTTP_FORM_VARS["CMD"] == "QUERY_POINT") > > > > a) here it checks if point or rectangle is used > > b) pixel-coords are then translated to geo-coords > > c) query: > > * @$gpoMap->queryByPoint($oClickGeo, MS_SINGLE, -1); <-- > > queries the map (single point) > > * @$gpoMap->queryByRect($oGeorefRect); <-- queries the map > > (rectangle) > > d) $gbShowQueryResults = TRUE; <-- query is used > > e) it now reloads gmap.php > > f) in gmap.php you see: > > g) this uses the function GMapDumpQueryResults() > > h) In your map-file, it checks for the following in every layer: > > METADATA > > "DESCRIPTION" "PrintedDescription" > > "RESULT_FIELDS" "FIELD ANOTHER_FILED" # Field names of you > > .dbf-file > > END > > i) if it finds metadata it passes it to the main file (gmap.php) > > j) also any found objects are now highlighted in the main map > > * Every time gmap.php is loaded it uses the function GMapDrawMap() : > > > > if ($gbShowQueryResults) // <-- found objects, so drawQuery, > > highlights the objects > > $img = $gpoMap->drawQuery(); > > else // <-- nothing found, draw normal map > > (nothing changes) > > $img = $gpoMap->draw(); > > k) General info: certain Variables (like $gpoMap) are set to global to use > > for other functions > > > > > > You now can add features like: > > NewExtent --> map zooms in to the rectangle you used for query based on the > > geo-coords of the rectangle > > > > I never got into the CGI stuff cause i loced the combination of Mapscript > > and Rosa, so sticking with that. > > > > Good luck, > > > > Erwin > > > > At 15:08 19-2-02 -0300, Michel M. dos Santos wrote: > > > Hello , > > > > > > In the example of Itasca , with cgi mode the queries are done by > > > templates > > >files. With the example of gmap , with mapscript/php are done other way. > > > I'm confused with this. > > > > > > Somebody can help me ? > > > > > >[]'s > > >Michel M. dos Santos > > > > ================= > > Azimuth Geodetic > > Koldingweg 8 > > 9723 HK Groningen > > tel. 050-5493454 > > fax. 050-5497217 > > ================= > > www.azimuth.nl > > perik at azimuth.nl > > ================= ================= Azimuth Geodetic Koldingweg 8 9723 HK Groningen tel. 050-5493454 fax. 050-5497217 ================= www.azimuth.nl perik at azimuth.nl ================= From perik at azimuth.nl Fri Feb 22 05:25:40 2002 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Fri, 22 Feb 2002 14:25:40 +0100 Subject: [mapserver-users] Length of a line calculation? In-Reply-To: <20020221164047.A9549@landsat.cprsig.cl> References: <20020221182029.90441.qmail@web11305.mail.yahoo.com> <20020218124755.A12764@landsat.cprsig.cl> <20020221182029.90441.qmail@web11305.mail.yahoo.com> Message-ID: <5.1.0.14.2.20020222141302.00a1cc50@localhost> Hi V, Had about the same question to the list a couple of days ago regarding getting the points of a shape. If you found a way to get every point of a shape i'd really appreceate it ;-) This i got from my Lowell F. : Perl Mapscript example: # # Create shapefile object of existing data. $shpfile = new shapefileObj("data", -1); # # Create shape object. $shp = new shapeObj(-1); # # Retrieve shape into shape object. $shpfile->get(1,$shp); # # Get first line. my $line = new lineObj(); $line = $shp>{line}; # # Get the first point of line. my $point = new pointObj(); $point = $line->{point}; $px = $point->{x}; $py = $point->{y}; print "
POINT X=$px Y=$py
"; Doing such for each line of a shape and each point of a line... At 16:40 21-2-02 -0500, Vinko Vrsalovic wrote: >On Thu, Feb 21, 2002 at 10:20:29AM -0800, Lowell Filak wrote: > >[...] > > > This can be done for each point of each line of each > > shape and the distance calculated betwen points of > > each line. > >You are absolutely right, thank you. I was hoping for a more automatic >method, though :-). > >-- >V. ================= Azimuth Geodetic Koldingweg 8 9723 HK Groningen tel. 050-5493454 fax. 050-5497217 ================= www.azimuth.nl perik at azimuth.nl ================= From morissette at dmsolutions.ca Fri Feb 22 05:23:06 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 22 Feb 2002 08:23:06 -0500 Subject: [mapserver-users] compilation problem References: <4.3.2.7.0.20020221123539.00b6d640@uranos> <4.3.2.7.0.20020222075707.00b2cfd8@uranos> Message-ID: <3C76463A.D810F639@dmsolutions.ca> Carsten Vogt wrote: > > Oops, right! > Here is the complete output: > > cd mapscript/php3; make; cd ../.. > make[1]: Entering directory `/opt/src/mapserver_3.5/mapscript/php3' > gcc gcc -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 > -DUSE_WMS -DUSE_PRO This error seems common on Solaris platforms... edit mapscript/php3/Makefile and remove the 'gcc' at the beginning of the CFLAGS value. -- ------------------------------------------------------------ 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 v at w.cl Fri Feb 22 08:38:14 2002 From: v at w.cl (Vinko Vrsalovic) Date: Fri, 22 Feb 2002 11:38:14 -0500 Subject: [mapserver-users] compilation problem In-Reply-To: <4.3.2.7.0.20020222075707.00b2cfd8@uranos> References: <4.3.2.7.0.20020221123539.00b6d640@uranos> <4.3.2.7.0.20020222075707.00b2cfd8@uranos> Message-ID: <20020222113814.A11094@landsat.cprsig.cl> PHP MapScript still does not support PHP 4.1. (Given all the times this problem has appeared on the list this last few days, I think it earned a place in a README.PLEASE inside the PHP Mapscript distribution and a FAQ entry too) > Oops, right! > Here is the complete output: > > cd mapscript/php3; make; cd ../.. > make[1]: Entering directory `/opt/src/mapserver_3.5/mapscript/php3' > gcc gcc -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 > -DUSE_WMS -DUSE_PRO > J -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG > -DUSE_GD_W > BMP -DUSE_GD_TTF > -DUSE_JPEG -I/opt/src/mapserver_3.5 -I/usr/local/inclu > de -I/opt/src/php-4.1.0 -I/opt/src/php-4.1.0/dl -I/opt/src/php-4.1.0/main > -I/o > pt/src/php-4.1.0/Zend -I/opt/src/php-4.1.0/include > -I/opt/src/php-4.1.0/TSRM -I/ > usr/local/apache-1.3.22/include -c -o php_mapscript_util.o > php_mapscript_util.c > gcc: cannot specify -o with -c or -S and multiple compilations > make[1]: *** [php_mapscript_util.o] Error 1 > make[1]: Leaving directory `/opt/src/mapserver_3.5/mapscript/php3' > > Regards, > Carsten Vogt > > At 21.02.2002 13:40 -0500, you wrote: > >Carsten Vogt wrote: > >> > >> I just tried to compile the actual mapserver (MapServer 3.5 (12/18/01), > >> downloaded from Mapserver Website) on Solaris 8 (Sun OS 5.8, gcc 2.95.3) > >> with all required libraries installed (at least I think so :-) and > >> configure with --with-apxs --with-php=/path/to/php/source and get the > >> following error: > >> > > > > > >This is probably due to a problem in the mapscript/php3/Makefile. But > >in order to suggest a solution we need more information... we would need > >to see the last command (starting with gcc) that got executed by the > >Makefile before the error message. > > > > > >-- > >------------------------------------------------------------ > > 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. > > ----------------------------------------------------------- > Dipl.-Geogr. Carsten Vogt > Tel.: 040 - 81908 - 345 > Fax: 040 - 81908 - 373 > vogt at hamburg.baw.de > http://nokis.baw.de/ > > Bundesanstalt fuer Wasserbau > - Aussenstelle Kueste - > Wedeler Landstrasse 157 > DE - 22559 Hamburg > ----------------------------------------------------------- -- V. From lfilak at medinaco.org Fri Feb 22 08:33:42 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 22 Feb 2002 11:33:42 -0500 Subject: [mapserver-users] Query and template files Message-ID: <200202221626.g1MGQkM28314@yogi.medinaco.net> I can't give a PHP example but: Once you have the shape: make sure there is a place-holder layer in your mapfile set to off. create a new shapfile object. add the shape(s) to the shapefile object. (don't forget to do a system level equivalent of "touch .dbf"). get a new layer object (the place-holder layer). turn the layer on. set the layer "data" to the name of the new shapefile. draw the map. Lowell F. The following message was sent by "Azimuth, Erwin Perik" on Fri, 22 Feb 2002 14:06:59 +0100. > Hi Michel, > > Mmm,... coinsidence,.... working on about the same idea as you described ;-) > > Relationship is ok. Once you have the correct row you can then use that one > to search for the shape. > > Myself i use PHP mapscript,... where i do it like this: > > Search-Field ---> calls a javascript --> pass variables (like the > search-field) to a popup window. > This popup is a php file which uses the variables bassed by the javascript. > > In that popup-php it searches the dbf using standard PHP functions. It then > returns both fields and values of the found row(s). > These fields are then passed to the popup-page. > > It then is possible (you have it's index) to get the shape, create new > extents, create the image and show it. > Highlighting is still my problem,.... i can only get the complete layer to > highlight, but as it's zoomed in (shape-extents) it is no real bother. > > I do however want to show only the found shape in an overview-map, but not > found out how yet. Tried numerous, but all failed. > Any help regarding this would be great ;-) > > Erwin > > > At 17:14 21-2-02 -0300, Michel M. dos Santos wrote: > > > > Thanks Erwin, > > > > I have another question: > > > > I want to do a search, for example, by name of the streets. In my > > html page > >I put a form for the user write the street he wants to search. The street is > >localized and displayed in the map. I need to search the record in dbf file > >and after in shape file ? I now the relation between dbf file and shape file > >are done by record number, correct ? > > > >[]'s > >Michel M. dos Santos > > > > > > > >Em Qua 20 Fev 2002 05:18, Azimuth, Erwin Perik escreveu: > > > Hi Michel, > > > > > > In the GMAP version the query (by button) is retreiving information > > > according to METADATA set in your layers. > > > > > > Basicly it goes like this: > > > > > > > > > 1) GMap75CheckClick() --> checks user input on the rosa-map, eg zoom-in > > > zoom-out, pan, query. > > > 2) When query button is used and then user clicks on map it uses following: > > > > > > else if ($HTTP_FORM_VARS["CMD"] == "QUERY_POINT") > > > > > > a) here it checks if point or rectangle is used > > > b) pixel-coords are then translated to geo-coords > > > c) query: > > > * @$gpoMap->queryByPoint($oClickGeo, MS_SINGLE, -1); <-- > > > queries the map (single point) > > > * @$gpoMap->queryByRect($oGeorefRect); <-- queries the map > > > (rectangle) > > > d) $gbShowQueryResults = TRUE; <-- query is used > > > e) it now reloads gmap.php > > > f) in gmap.php you see: > > > g) this uses the function GMapDumpQueryResults() > > > h) In your map-file, it checks for the following in every layer: > > > METADATA > > > "DESCRIPTION" "PrintedDescription" > > > "RESULT_FIELDS" "FIELD ANOTHER_FILED" # Field names of you > > > .dbf-file > > > END > > > i) if it finds metadata it passes it to the main file (gmap.php) > > > j) also any found objects are now highlighted in the main map > > > * Every time gmap.php is loaded it uses the function GMapDrawMap() : > > > > > > if ($gbShowQueryResults) // <-- found objects, so drawQuery, > > > highlights the objects > > > $img = $gpoMap->drawQuery(); > > > else // <-- nothing found, draw normal map > > > (nothing changes) > > > $img = $gpoMap->draw(); > > > k) General info: certain Variables (like $gpoMap) are set to global to use > > > for other functions > > > > > > > > > You now can add features like: > > > NewExtent --> map zooms in to the rectangle you used for query based on the > > > geo-coords of the rectangle > > > > > > I never got into the CGI stuff cause i loced the combination of Mapscript > > > and Rosa, so sticking with that. > > > > > > Good luck, > > > > > > Erwin > > > > > > At 15:08 19-2-02 -0300, Michel M. dos Santos wrote: > > > > Hello , > > > > > > > > In the example of Itasca , with cgi mode the queries are done by > > > > templates > > > >files. With the example of gmap , with mapscript/php are done other way. > > > > I'm confused with this. > > > > > > > > Somebody can help me ? > > > > > > > >[]'s > > > >Michel M. dos Santos > > > > > > ================= > > > Azimuth Geodetic > > > Koldingweg 8 > > > 9723 HK Groningen > > > tel. 050-5493454 > > > fax. 050-5497217 > > > ================= > > > www.azimuth.nl > > > perik at azimuth.nl > > > ================= > > > ================= > Azimuth Geodetic > Koldingweg 8 > 9723 HK Groningen > tel. 050-5493454 > fax. 050-5497217 > ================= > www.azimuth.nl > perik at azimuth.nl > ================= From lfilak at medinaco.org Fri Feb 22 09:14:44 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 22 Feb 2002 12:14:44 -0500 Subject: [mapserver-users] Length of a line calculation? Message-ID: <200202221707.g1MH7mM28718@yogi.medinaco.net> Perl MapScript example: # # Create shapefile object of existing data. $shpfile = new shapefileObj("data", -1); # # Create shape object. $shp = new shapeObj(-1); # # Retrieve shape into shape object. $shpfile->get(1,$shp); ############################################## # # How many lines in shape. my $num_lines = $ishp->{numlines}; # # Loop through each line. for ( $line_num=0; $line_num<$num_lines; $line_num++ ) { # # Get line. my $line = new lineObj(); $line = $ishp->get($line_num); print "
Got Line #$line_num"; # # How many point in line. my $num_points = $line->{numpoints}; # # Loop through each point. for ( $point_num=0; $point_num<$num_points; $point_num++ ) { # # Get the point. my $point = new pointObj(); $point = $line->get($point_num); print "
Got Point #$point_num"; $px = $point->{x}; $py = $point->{y}; print " X=$px Y=$py"; } } print "
"; ####################################################### Lowell F. The following message was sent by "Azimuth, Erwin Perik" on Fri, 22 Feb 2002 14:25:40 +0100. > Hi V, > > Had about the same question to the list a couple of days ago regarding > getting the points of a shape. > > If you found a way to get every point of a shape i'd really appreceate it ;-) > > This i got from my Lowell F. : > > Perl Mapscript example: > # > # Create shapefile object of existing data. > $shpfile = new shapefileObj("data", -1); > # > # Create shape object. > $shp = new shapeObj(-1); > # > # Retrieve shape into shape object. > $shpfile->get(1,$shp); > # > # Get first line. > my $line = new lineObj(); > $line = $shp>{line}; > # > # Get the first point of line. > my $point = new pointObj(); > $point = $line->{point}; > $px = $point->{x}; > $py = $point->{y}; > print "
POINT X=$px Y=$py
"; > Doing such for each line of a shape and each point of > a line... > > > > > At 16:40 21-2-02 -0500, Vinko Vrsalovic wrote: > >On Thu, Feb 21, 2002 at 10:20:29AM -0800, Lowell Filak wrote: > > > >[...] > > > > > This can be done for each point of each line of each > > > shape and the distance calculated betwen points of > > > each line. > > > >You are absolutely right, thank you. I was hoping for a more automatic > >method, though :-). > > > >-- > >V. > > > ================= > Azimuth Geodetic > Koldingweg 8 > 9723 HK Groningen > tel. 050-5493454 > fax. 050-5497217 > ================= > www.azimuth.nl > perik at azimuth.nl > ================= From vguzman at bigfoot.com Fri Feb 22 10:09:23 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Fri, 22 Feb 2002 13:09:23 -0500 Subject: [mapserver-users] Compilation problem References: <4.3.2.7.0.20020221123539.00b6d640@uranos> <4.3.2.7.0.20020222075707.00b2cfd8@uranos> <20020222113814.A11094@landsat.cprsig.cl> Message-ID: <3C768953.8080309@bigfoot.com> Hello list. Please, I have installed apache with this configure: ./configure --enable-module=so php 4.06 with: ./configure --with-dbase=yes --with-system-regex --with-png=yes --without-ttf --with-apxs=/usr/local/apache/bin/apxs --with-mysql --with-pgsql --with-config-file-path=/etc Mapserver 4.05 with: ./configure --with-gd --with-php=/programas/php-4.0.6 --with-apxs --with-sde --with-ttf Everything works fine, the configure and the make, but when I try to load the module, the page in the browser says: * Warning*: Unable to load dynamic library '/usr/local/lib/php/extensions/php_mapscript.so' - php_mapscript_util.o: cannot open shared object file: No such file or directory in */usr/local/apache/htdocs/prueba.php* on line *2* Am I missing something? I've searched on the list, but it points to re-compile apache. I'm using Suse 7.3 Thanks a lot, -- Vladimir Guzm?n R. ----------------- www.main-task.com From pushkar at ERC.MsState.Edu Fri Feb 22 10:39:18 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Fri, 22 Feb 2002 12:39:18 -0600 (CST) Subject: [mapserver-users] compilation problem In-Reply-To: <3C76463A.D810F639@dmsolutions.ca> Message-ID: I'm having a little diff. problem, after using gmake I get the foll. error. I don't have much experience of make files so can anybody help me with this: cd mapscript/php3; gmake; cd ../.. gmake[1]: Entering directory `/rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3' cc -O -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.. -KPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_GDAL -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_TTF -I/rstc/user1/erc/pushkar/mapserver_3.5 -I/rstc/user1/erc/pushkar/gdal-1.1.5/port -I/rstc/user1/erc/pushkar/gdal-1.1.5/core -I/rstc/user1/erc/pushkar/gdal-1.1.5/ogr -I/rstc/user1/erc/pushkar/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/include -I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6 -I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/dl -I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/main -I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/Zend -I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/include -I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/TSRM -I/rstc/user1/erc/pushkar/apache_1.3.22/include -c -o php_mapscript_util.o php_mapscript_util.c cc: Warning: option -2 passed to ld cc: illegal option -Wall gmake[1]: *** [php_mapscript_util.o] Error 1 gmake[1]: Leaving directory `/rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3' > Carsten Vogt wrote: > > > > Oops, right! > > Here is the complete output: > > > > cd mapscript/php3; make; cd ../.. > > make[1]: Entering directory `/opt/src/mapserver_3.5/mapscript/php3' > > gcc gcc -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 > > -DUSE_WMS -DUSE_PRO > > > This error seems common on Solaris platforms... edit > mapscript/php3/Makefile and remove the 'gcc' at the beginning of the > CFLAGS value. > > -- > ------------------------------------------------------------ > 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. > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From ychen at yorktel.com Fri Feb 22 11:01:01 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Fri, 22 Feb 2002 14:01:01 -0500 Subject: [mapserver-users] oraclespatial connect error Message-ID: <05D31DD35285D4488610D8C0C08F5962090B90@ytcmail.yorktel.com> I've compiled mapserver 3.5 with oraclespatial option on my Mandrake Linux 8.0 with Oracle 8.1.7i. When I run sqlplus at Linux prompt I can get to the database with un/pw at bis login. However, when I tried it from a map file I get "msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error. Error while trying to retrieve text for error ORA-12541" in my browser. ORA-12541 is "TNS:could not resolve service name". My map file looks like this: LAYER NAME "oracle" CONNECTIONTYPE oraclespatial CONNECTION 'un/pw at bis' DATA "circle from (select room_id, longitude, latitude from room_geoloc)" TYPE POINT STATUS ON ... ... END From ychen at yorktel.com Fri Feb 22 11:04:53 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Fri, 22 Feb 2002 14:04:53 -0500 Subject: [mapserver-users] oraclespatial connect error Message-ID: <05D31DD35285D4488610D8C0C08F596206ED0A@ytcmail.yorktel.com> I've compiled mapserver 3.5 with oraclespatial option on my Mandrake Linux 8.0 with Oracle 8.1.7i. When I run sqlplus at Linux prompt I can get to the database with un/pw at bis login. However, when I tried it from a map file I get "msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error. Error while trying to retrieve text for error ORA-12541" in my browser. ORA-12541 is "TNS:could not resolve service name". My map file looks like this: LAYER NAME "oracle" CONNECTIONTYPE oraclespatial CONNECTION 'un/pw at bis' DATA "circle from (select room_id, longitude, latitude from room_geoloc)" TYPE POINT STATUS ON ... ... END Thanks in advance to whoever can help me. Yu-Hsin Chen From rburghol at vt.edu Fri Feb 22 11:24:38 2002 From: rburghol at vt.edu (Robert W. Burgholzer) Date: Fri, 22 Feb 2002 14:24:38 -0500 Subject: [mapserver-users] utility for demo.html Message-ID: <3C7B9CAA@zathras> Hey, I'm new to all of this stuff, but figured maybe I could save someone some time. I am using mapserver with the basic demo templates provided in the itasca demo (which comes with the install package). Anyhow, I wrote a routine in perl to generate header, footer and base files for that format. It takes a .csv as an input and outputs the associated html files. The link is here: http://www.soulswimmer.net/gis/layer.tar.gz Also, if anyone has a site with php related mapserver help (I saw a perl docs site put up a couple days ago), I would appreciate. rob Robert W. Burgholzer rburghol at vt.edu http://www.soulswimmer.net/ From vguzman at bigfoot.com Fri Feb 22 12:12:19 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Fri, 22 Feb 2002 15:12:19 -0500 Subject: [mapserver-users] Compilation problem References: <4.3.2.7.0.20020221123539.00b6d640@uranos> <4.3.2.7.0.20020222075707.00b2cfd8@uranos> <20020222113814.A11094@landsat.cprsig.cl> <3C768953.8080309@bigfoot.com> Message-ID: <3C76A623.3030509@bigfoot.com> I'm sorry about that. I was missing the complete path in --with-apxs Now it works fine. Thank you. Vladimir Guzm?n wrote: > Hello list. > Please, I have installed apache with this configure: > ./configure --enable-module=so > php 4.06 with: > ./configure --with-dbase=yes > --with-system-regex > --with-png=yes > --without-ttf > --with-apxs=/usr/local/apache/bin/apxs > --with-mysql > --with-pgsql > --with-config-file-path=/etc > Mapserver 4.05 with: > ./configure --with-gd --with-php=/programas/php-4.0.6 --with-apxs > --with-sde --with-ttf ^^^^^^ ./configure --with-gd --with-php=/programas/php-4.0.6 --with-apxs =/usr/local/apache/bin/apxs --with-sde --with-ttf > > > Everything works fine, the configure and the make, but when I try to > load the module, the page in the browser says: > * > Warning*: Unable to load dynamic library > '/usr/local/lib/php/extensions/php_mapscript.so' - > php_mapscript_util.o: cannot open shared object file: No such file or > directory in */usr/local/apache/htdocs/prueba.php* on line *2* > > Am I missing something? > I've searched on the list, but it points to re-compile apache. > I'm using Suse 7.3 > > Thanks a lot, > > -- Vladimir Guzm?n R. ----------------- www.main-task.com From pushkar at ERC.MsState.Edu Fri Feb 22 13:23:52 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Fri, 22 Feb 2002 15:23:52 -0600 (CST) Subject: [mapserver-users] Compilation problem In-Reply-To: <3C768953.8080309@bigfoot.com> Message-ID: Try recompiling apache with the foll. options: configure --enable-module=so --enable-rule=SHARED_CORE --enable-shared=max > Hello list. > Please, I have installed apache with this configure: > ./configure --enable-module=so > php 4.06 with: > ./configure --with-dbase=yes > --with-system-regex > --with-png=yes > --without-ttf > --with-apxs=/usr/local/apache/bin/apxs > --with-mysql > --with-pgsql > --with-config-file-path=/etc > Mapserver 4.05 with: > ./configure --with-gd --with-php=/programas/php-4.0.6 --with-apxs > --with-sde --with-ttf > > Everything works fine, the configure and the make, but when I try to > load the module, the page in the browser says: > * > Warning*: Unable to load dynamic library > '/usr/local/lib/php/extensions/php_mapscript.so' - php_mapscript_util.o: > cannot open shared object file: No such file or directory in > */usr/local/apache/htdocs/prueba.php* on line *2* > > Am I missing something? > I've searched on the list, but it points to re-compile apache. > I'm using Suse 7.3 > > Thanks a lot, > > > -- > Vladimir Guzm?n R. > ----------------- > www.main-task.com > > > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From gabriel at ciasc.gov.br Fri Feb 22 13:54:43 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Fri, 22 Feb 2002 18:54:43 -0300 Subject: [mapserver-users] MapServer Test Suite problem References: Message-ID: <001201c1bbeb$89478940$12d713ac@ciasc.gov.br> This addres has any trouble. MapServer Test Suite (http://maps.dnr.state.mn.us/mapserver_demos/tests3.5/) Dynamic queries. http://maps.dnr.state.mn.us/cgi-bin/mapserv?map=/usr/local/apache/mapserver_ demos/tests/expressions/test.map msLoadMap(): Unable to access file. (/usr/local/apache/mapserver_demos/tests/expressions/test.map) Ferrari, Gabriel Fpolis,SC,Brasil From cabral at yadata.net Fri Feb 22 16:32:12 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Fri, 22 Feb 2002 21:32:12 -0300 Subject: [mapserver-users] oraclespatial connect error References: <05D31DD35285D4488610D8C0C08F596206ED0A@ytcmail.yorktel.com> Message-ID: <007801c1bc01$8a6a5c60$0207a8c0@naumaki> Your error means that the Oracle client cannot find the database (service) to connect. Try using simply 'username/password' for CONNECTION to see if the default service works. Also, your DATA statement is not going to work. 'circle' must be in the select list. Like "circle from (select circle...)". BUT, why are you doing that? Try this: DATA "circle FROM room_geoloc" or DATA "circle FROM room_geoloc USING SRID " if you have an srid number defined. Rod. ----- Original Message ----- From: "Yu-Hsin Chen" To: Sent: Friday, February 22, 2002 4:04 PM Subject: [mapserver-users] oraclespatial connect error I've compiled mapserver 3.5 with oraclespatial option on my Mandrake Linux 8.0 with Oracle 8.1.7i. When I run sqlplus at Linux prompt I can get to the database with un/pw at bis login. However, when I tried it from a map file I get "msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error. Error while trying to retrieve text for error ORA-12541" in my browser. ORA-12541 is "TNS:could not resolve service name". My map file looks like this: LAYER NAME "oracle" CONNECTIONTYPE oraclespatial CONNECTION 'un/pw at bis' DATA "circle from (select room_id, longitude, latitude from room_geoloc)" TYPE POINT STATUS ON ... ... END Thanks in advance to whoever can help me. Yu-Hsin Chen From ychen at yorktel.com Fri Feb 22 18:08:49 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Fri, 22 Feb 2002 21:08:49 -0500 Subject: [mapserver-users] oraclespatial connect error Message-ID: <05D31DD35285D4488610D8C0C08F5962090B91@ytcmail.yorktel.com> Well, my problem is that the database is not on the local machine. I guess I could create the local database and test it out. If that is successful I can always create database link in Oracle to access the real data. Thanks for the tip on DATA. I will have more questions back on this item. Yu-Hsin -----Original Message----- From: Rodrigo Cabral Sent: Fri 2/22/2002 7:32 PM To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu Cc: Subject: Re: [mapserver-users] oraclespatial connect error Your error means that the Oracle client cannot find the database (service) to connect. Try using simply 'username/password' for CONNECTION to see if the default service works. Also, your DATA statement is not going to work. 'circle' must be in the select list. Like "circle from (select circle...)". BUT, why are you doing that? Try this: DATA "circle FROM room_geoloc" or DATA "circle FROM room_geoloc USING SRID " if you have an srid number defined. Rod. ----- Original Message ----- From: "Yu-Hsin Chen" To: Sent: Friday, February 22, 2002 4:04 PM Subject: [mapserver-users] oraclespatial connect error I've compiled mapserver 3.5 with oraclespatial option on my Mandrake Linux 8.0 with Oracle 8.1.7i. When I run sqlplus at Linux prompt I can get to the database with un/pw at bis login. However, when I tried it from a map file I get "msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error. Error while trying to retrieve text for error ORA-12541" in my browser. ORA-12541 is "TNS:could not resolve service name". My map file looks like this: LAYER NAME "oracle" CONNECTIONTYPE oraclespatial CONNECTION 'un/pw at bis' DATA "circle from (select room_id, longitude, latitude from room_geoloc)" TYPE POINT STATUS ON ... ... END Thanks in advance to whoever can help me. Yu-Hsin Chen -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3446 bytes Desc: not available URL: From hugues at parvillers.com Fri Feb 22 23:40:16 2002 From: hugues at parvillers.com (PARVILLERS) Date: Sat, 23 Feb 2002 08:40:16 +0100 Subject: [mapserver-users] oraclespatial connect error References: <05D31DD35285D4488610D8C0C08F5962090B91@ytcmail.yorktel.com> Message-ID: <3C774760.F38BE850@parvillers.com> Hello, don't you have more than one Oracle install on your local server ? May be the Oci don't look in the right tnsnames.ora file ? Yu-Hsin Chen a ?crit : > Well, my problem is that the database is not on the local machine. I > guess I could create the local database and test it out. If that is > successful I can always create database link in Oracle to access the > real data. > > Thanks for the tip on DATA. I will have more questions back on this > item. > > Yu-Hsin > > -----Original Message----- > From: Rodrigo Cabral > Sent: Fri 2/22/2002 7:32 PM > To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu > Cc: > Subject: Re: [mapserver-users] oraclespatial connect error > > Your error means that the Oracle client cannot find the database > (service) > to connect. Try using simply 'username/password' for CONNECTION to see > if > the default service works. > > Also, your DATA statement is not going to work. 'circle' must be in the > select list. Like "circle from (select circle...)". BUT, why are you > doing > that? Try this: > > DATA "circle FROM room_geoloc" > or > DATA "circle FROM room_geoloc USING SRID " if you have an srid > number > defined. > > Rod. > > ----- Original Message ----- > From: "Yu-Hsin Chen" > To: > Sent: Friday, February 22, 2002 4:04 PM > Subject: [mapserver-users] oraclespatial connect error > > I've compiled mapserver 3.5 with oraclespatial option on my Mandrake > Linux 8.0 with Oracle 8.1.7i. When I run sqlplus at Linux prompt I can > get to the database with un/pw at bis login. However, when I tried it from > a map file I get "msOCIConnect() in msOracleSpatialLayerOpen(): > OracleSpatial error. Error while trying to retrieve text for error > ORA-12541" in my browser. ORA-12541 is "TNS:could not resolve service > name". > > My map file looks like this: > > LAYER > NAME "oracle" > CONNECTIONTYPE oraclespatial > CONNECTION 'un/pw at bis' > DATA "circle from (select room_id, longitude, latitude from > room_geoloc)" > TYPE POINT > STATUS ON > ... > ... > END > > Thanks in advance to whoever can help me. > > Yu-Hsin Chen > > ------------------------------------------------------------------------ > Name: winmail.dat > winmail.dat Type: application/ms-tnef > Encoding: base64 From DebasishS at riskinc.com Sat Feb 23 00:25:47 2002 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Sat, 23 Feb 2002 13:55:47 +0530 Subject: [mapserver-users] Map File in XML Format Message-ID: Hi, Does the latest Mapserver 3.5 supports Map File in XML format . In the source distribution there's a dtd for the same . thanks Debasish. From letourne at mercator.ens.fr Sat Feb 23 04:56:07 2002 From: letourne at mercator.ens.fr (Francois Michel Le Tourneau) Date: Sat, 23 Feb 2002 13:56:07 +0100 (MET) Subject: [mapserver-users] help with raster Message-ID: Hello ! I am trying to use raster data within mapserver, which does not work. I have atempted to use various version of mapserver, compiled with or without gdal support. My data is geotiff, with the following indications extracted by gdalinfo : Driver: GTiff/GeoTIFF Size is 5441, 4851 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223562997]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] Origin = (-65.030748,3.840657) Pixel Size = (0.000400,-0.000400) Corner Coordinates: Upper Left ( -65.0307480, 3.8406570) ( 65d 1'50.69"W, 3d50'26.37"N) Lower Left ( -65.0307480, 1.9002570) ( 65d 1'50.69"W, 1d54'0.93"N) Upper Right ( -62.8543481, 3.8406570) ( 62d51'15.65"W, 3d50'26.37"N) Lower Right ( -62.8543481, 1.9002570) ( 62d51'15.65"W, 1d54'0.93"N) Center ( -63.9425480, 2.8704570) ( 63d56'33.17"W, 2d52'13.65"N) My mapfile is the simplest ever : NAME mymap SIZE 500 500 EXTENT -65 2 -63 4 SHAPEPATH "data1" SYMBOLSET marker.sym WEB TEMPLATE dessine_carte.html EMPTY /cartes/empty.html IMAGEPATH "/usr/local/httpd/htdocs/tmp/" IMAGEURL "/tmp/" LOG "/tmp/log.log" END LAYER NAME "Im" DATA "Landsat2.tif" TYPE RASTER STATUS ON END END # end of map file In the log file, I can see : Sat Feb 23 12:41:32 2002,22416,195.132.244.162,mymap,0,-65.498000 2.000000 -63 4.000000,-1.000000 -1.000000,,normal execution The result is a blank image of 500x500 pixels. I would like to know : 1. how to understand every statement of the log file 2. how to test simply the raster capability of my mapserver 3. how i can understand what is going on with the raster data for it not being displayed Thanks in advance for any answer Fran?ois-Michel Le Tourneau *********************************************************************** Francois-Michel Le Tourneau Charg? de Recherches au CNRS Centre de Recherche et de Documentation sur l'Am?rique Latine (UMR 7530) Tel. 01 44 39 86 85 Fax. 01 45 48 79 58 E-mail : Francois.Michel.Le.Tourneau at ens.fr *********************************************************************** From cabral at yadata.net Sat Feb 23 05:20:12 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Sat, 23 Feb 2002 10:20:12 -0300 Subject: [mapserver-users] oraclespatial connect error References: <05D31DD35285D4488610D8C0C08F5962090B91@ytcmail.yorktel.com> <3C774760.F38BE850@parvillers.com> Message-ID: <001f01c1bc6c$d3b18180$0207a8c0@naumaki> Which binary of mapserver are you using? Windows or Unix? -- just for curiosity Also, you could try to track the error by running sqlplus and trying to connect to the database. You should get the same TNS error when you try to connect. Rod. ----- Original Message ----- From: "PARVILLERS" Sent: Saturday, February 23, 2002 4:40 AM Subject: Re: [mapserver-users] oraclespatial connect error Hello, don't you have more than one Oracle install on your local server ? May be the Oci don't look in the right tnsnames.ora file ? Yu-Hsin Chen a ?crit : > Well, my problem is that the database is not on the local machine. I > guess I could create the local database and test it out. If that is > successful I can always create database link in Oracle to access the > real data. > > Thanks for the tip on DATA. I will have more questions back on this > item. > > Yu-Hsin > > -----Original Message----- > From: Rodrigo Cabral > Sent: Fri 2/22/2002 7:32 PM > To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu > Cc: > Subject: Re: [mapserver-users] oraclespatial connect error > > Your error means that the Oracle client cannot find the database > (service) > to connect. Try using simply 'username/password' for CONNECTION to see > if > the default service works. > > Also, your DATA statement is not going to work. 'circle' must be in the > select list. Like "circle from (select circle...)". BUT, why are you > doing > that? Try this: > > DATA "circle FROM room_geoloc" > or > DATA "circle FROM room_geoloc USING SRID " if you have an srid > number > defined. > > Rod. > > ----- Original Message ----- > From: "Yu-Hsin Chen" > To: > Sent: Friday, February 22, 2002 4:04 PM > Subject: [mapserver-users] oraclespatial connect error > > I've compiled mapserver 3.5 with oraclespatial option on my Mandrake > Linux 8.0 with Oracle 8.1.7i. When I run sqlplus at Linux prompt I can > get to the database with un/pw at bis login. However, when I tried it from > a map file I get "msOCIConnect() in msOracleSpatialLayerOpen(): > OracleSpatial error. Error while trying to retrieve text for error > ORA-12541" in my browser. ORA-12541 is "TNS:could not resolve service > name". > > My map file looks like this: > > LAYER > NAME "oracle" > CONNECTIONTYPE oraclespatial > CONNECTION 'un/pw at bis' > DATA "circle from (select room_id, longitude, latitude from > room_geoloc)" > TYPE POINT > STATUS ON > ... > ... > END > > Thanks in advance to whoever can help me. > > Yu-Hsin Chen > > ------------------------------------------------------------------------ > Name: winmail.dat > winmail.dat Type: application/ms-tnef > Encoding: base64 From ychen at yorktel.com Sat Feb 23 07:16:14 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Sat, 23 Feb 2002 10:16:14 -0500 Subject: [mapserver-users] oraclespatial connect error Message-ID: <05D31DD35285D4488610D8C0C08F5962090B92@ytcmail.yorktel.com> I'm on Mandrake Linux ProSuite 8.0. Oracle is 8i 8.1.7 for Linux. I can access my remote database through sqlplus or a perl cgi program without problems. Mapserver was compiled with oraclespatial and the path was pointing to the correct $ORACLE_HOME path. I won't be able to try anything until Monday. So I will create a local database to see if I at least can conquer the connect problem. After that I'd have to work with the spatial issues. I'm not familiar with Oracle spatial implementation. My need is simple: I'd like to be able to retrieve locations from the database based on certain criteria and plot them on the map. That's why in my original message I put the 'DATA' statement that way. I thought I could pull the latitude and longitude data and plot them as circles (that's how I understood the Mapserver reference manual) with that statement. If that's not the case, Rod, I think I'll need assistance later. Thanks. Yu-Hsin -----Original Message----- From: Rodrigo Cabral Sent: Sat 2/23/2002 8:20 AM To: PARVILLERS; Yu-Hsin Chen Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oraclespatial connect error Which binary of mapserver are you using? Windows or Unix? -- just for curiosity Also, you could try to track the error by running sqlplus and trying to connect to the database. You should get the same TNS error when you try to connect. Rod. ----- Original Message ----- From: "PARVILLERS" Sent: Saturday, February 23, 2002 4:40 AM Subject: Re: [mapserver-users] oraclespatial connect error Hello, don't you have more than one Oracle install on your local server ? May be the Oci don't look in the right tnsnames.ora file ? Yu-Hsin Chen a ?crit : > Well, my problem is that the database is not on the local machine. I > guess I could create the local database and test it out. If that is > successful I can always create database link in Oracle to access the > real data. > > Thanks for the tip on DATA. I will have more questions back on this > item. > > Yu-Hsin > > -----Original Message----- > From: Rodrigo Cabral > Sent: Fri 2/22/2002 7:32 PM > To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu > Cc: > Subject: Re: [mapserver-users] oraclespatial connect error > > Your error means that the Oracle client cannot find the database > (service) > to connect. Try using simply 'username/password' for CONNECTION to see > if > the default service works. > > Also, your DATA statement is not going to work. 'circle' must be in the > select list. Like "circle from (select circle...)". BUT, why are you > doing > that? Try this: > > DATA "circle FROM room_geoloc" > or > DATA "circle FROM room_geoloc USING SRID " if you have an srid > number > defined. > > Rod. > > ----- Original Message ----- > From: "Yu-Hsin Chen" > To: > Sent: Friday, February 22, 2002 4:04 PM > Subject: [mapserver-users] oraclespatial connect error > > I've compiled mapserver 3.5 with oraclespatial option on my Mandrake > Linux 8.0 with Oracle 8.1.7i. When I run sqlplus at Linux prompt I can > get to the database with un/pw at bis login. However, when I tried it from > a map file I get "msOCIConnect() in msOracleSpatialLayerOpen(): > OracleSpatial error. Error while trying to retrieve text for error > ORA-12541" in my browser. ORA-12541 is "TNS:could not resolve service > name". > > My map file looks like this: > > LAYER > NAME "oracle" > CONNECTIONTYPE oraclespatial > CONNECTION 'un/pw at bis' > DATA "circle from (select room_id, longitude, latitude from > room_geoloc)" > TYPE POINT > STATUS ON > ... > ... > END > > Thanks in advance to whoever can help me. > > Yu-Hsin Chen > > ------------------------------------------------------------------------ > Name: winmail.dat > winmail.dat Type: application/ms-tnef > Encoding: base64 -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4482 bytes Desc: not available URL: From cabral at yadata.net Sat Feb 23 09:16:12 2002 From: cabral at yadata.net (Rodrigo Cabral) Date: Sat, 23 Feb 2002 14:16:12 -0300 Subject: [mapserver-users] oraclespatial connect error References: <05D31DD35285D4488610D8C0C08F5962090B92@ytcmail.yorktel.com> Message-ID: <001e01c1bc8d$cb7d9460$0207a8c0@naumaki> Okay, we can sort your application out later on. Let's first make things work. Not sure if you're using MapServer CGI or MapScript... But either tnsnames.ora doesn't have your database address defined (but you can use sqlplus in your clientside, which is strange); or the ORACLE_HOME environment variable is not defined in the runtime shell mapserver is executing (but you can access oracle through a CGI program, which is also strange). However, the 2nd option is my best guess. My hint comes from the error message itself -- Error while trying to retrieve text for error ORA-12541 -- which means the client doesn't have access to the error string table which probably stays in the client within of ORACLE_HOME. Briefly: no ORACLE_HOME defined, no error message can be retrieved (let alone connecting to the database). I'm also running SDO in a Red Hat Linux environment. Becase httpd daemons usually run in their own shell, we had to setup Apache with an extra section defining ORACLE variables. This is it: (in httpd.conf) SetEnv ORACLE_SID g10 SetEnv ORACLE_BASE /u01/app/oracle SetEnv ORACLE_HOME /u01/app/oracle/product/8.1.7 SetEnv ORA_NLS33 /u01/app/oracle/product/8.1.7/ocommon/nls/admin/data SetEnv NLS_LANG "brazilian portuguese" Cheers, Rod. ----- Original Message ----- From: "Yu-Hsin Chen" To: "Rodrigo Cabral" ; "PARVILLERS" Cc: Sent: Saturday, February 23, 2002 12:16 PM Subject: RE: [mapserver-users] oraclespatial connect error I'm on Mandrake Linux ProSuite 8.0. Oracle is 8i 8.1.7 for Linux. I can access my remote database through sqlplus or a perl cgi program without problems. Mapserver was compiled with oraclespatial and the path was pointing to the correct $ORACLE_HOME path. I won't be able to try anything until Monday. So I will create a local database to see if I at least can conquer the connect problem. After that I'd have to work with the spatial issues. I'm not familiar with Oracle spatial implementation. My need is simple: I'd like to be able to retrieve locations from the database based on certain criteria and plot them on the map. That's why in my original message I put the 'DATA' statement that way. I thought I could pull the latitude and longitude data and plot them as circles (that's how I understood the Mapserver reference manual) with that statement. If that's not the case, Rod, I think I'll need assistance later. Thanks. Yu-Hsin -----Original Message----- From: Rodrigo Cabral Sent: Sat 2/23/2002 8:20 AM To: PARVILLERS; Yu-Hsin Chen Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oraclespatial connect error Which binary of mapserver are you using? Windows or Unix? -- just for curiosity Also, you could try to track the error by running sqlplus and trying to connect to the database. You should get the same TNS error when you try to connect. Rod. ----- Original Message ----- From: "PARVILLERS" Sent: Saturday, February 23, 2002 4:40 AM Subject: Re: [mapserver-users] oraclespatial connect error Hello, don't you have more than one Oracle install on your local server ? May be the Oci don't look in the right tnsnames.ora file ? Yu-Hsin Chen a ?crit : > Well, my problem is that the database is not on the local machine. I > guess I could create the local database and test it out. If that is > successful I can always create database link in Oracle to access the > real data. > > Thanks for the tip on DATA. I will have more questions back on this > item. > > Yu-Hsin > > -----Original Message----- > From: Rodrigo Cabral > Sent: Fri 2/22/2002 7:32 PM > To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu > Cc: > Subject: Re: [mapserver-users] oraclespatial connect error > > Your error means that the Oracle client cannot find the database > (service) > to connect. Try using simply 'username/password' for CONNECTION to see > if > the default service works. > > Also, your DATA statement is not going to work. 'circle' must be in the > select list. Like "circle from (select circle...)". BUT, why are you > doing > that? Try this: > > DATA "circle FROM room_geoloc" > or > DATA "circle FROM room_geoloc USING SRID " if you have an srid > number > defined. > > Rod. > > ----- Original Message ----- > From: "Yu-Hsin Chen" > To: > Sent: Friday, February 22, 2002 4:04 PM > Subject: [mapserver-users] oraclespatial connect error > > I've compiled mapserver 3.5 with oraclespatial option on my Mandrake > Linux 8.0 with Oracle 8.1.7i. When I run sqlplus at Linux prompt I can > get to the database with un/pw at bis login. However, when I tried it from > a map file I get "msOCIConnect() in msOracleSpatialLayerOpen(): > OracleSpatial error. Error while trying to retrieve text for error > ORA-12541" in my browser. ORA-12541 is "TNS:could not resolve service > name". > > My map file looks like this: > > LAYER > NAME "oracle" > CONNECTIONTYPE oraclespatial > CONNECTION 'un/pw at bis' > DATA "circle from (select room_id, longitude, latitude from > room_geoloc)" > TYPE POINT > STATUS ON > ... > ... > END > > Thanks in advance to whoever can help me. > > Yu-Hsin Chen > > ------------------------------------------------------------------------ > Name: winmail.dat > winmail.dat Type: application/ms-tnef > Encoding: base64 From vguzman at bigfoot.com Sat Feb 23 10:25:44 2002 From: vguzman at bigfoot.com (Vladimir Guzmán) Date: Sat, 23 Feb 2002 13:25:44 -0500 Subject: [mapserver-users] Raster reprojection Message-ID: <20020223132544.A30077@bigfoot.com> Hello. I'm having a problem with ms. >From time to time, I get an error: Warning: MapServer Error in msDrawRasterLayer( TIFF ): Raster reprojection supported only with the GDAL library. in /usr/local/apache/htdocs/sig/templates/mapa_form.php on line 234 I've read in the mail-list, and Frank Warmerdam says that it is necessary to reconfigure without tiff support. Reconfigure what? GD? MS? PHP? My configure options: PHP: ./configure --with-dbase=yes --with-system-regex --with-png=yes --without-ttf --with-apxs=/usr/local/apache/bin/apxs --with-mysql --with-pgsql --with-config-file-path=/etc MS: ./configure --with-gd=/programas/gd-1.8.4 --with-php=/programas/php-4.0.6 --with-apxs=/usr/local/apache/bin/apxs --with-sde --with-ttf Thanks a lot, -- Vladimir Guzm?n www.main-task.com From hugues at parvillers.com Sat Feb 23 11:12:47 2002 From: hugues at parvillers.com (PARVILLERS) Date: Sat, 23 Feb 2002 20:12:47 +0100 Subject: [mapserver-users] oraclespatial connect error References: <05D31DD35285D4488610D8C0C08F5962090B92@ytcmail.yorktel.com> <001e01c1bc8d$cb7d9460$0207a8c0@naumaki> Message-ID: <3C77E9AF.2481AB4A@parvillers.com> Sure about that, your exe environment don't see the tnsnames, your test with sqlplus see. H/P Rodrigo Cabral a ?crit : > Okay, we can sort your application out later on. Let's first make things > work. Not sure if you're using MapServer CGI or MapScript... But either > tnsnames.ora doesn't have your database address defined (but you can use > sqlplus in your clientside, which is strange); or the ORACLE_HOME > environment variable is not defined in the runtime shell mapserver is > executing (but you can access oracle through a CGI program, which is also > strange). > > However, the 2nd option is my best guess. My hint comes from the error > message itself -- Error while trying to retrieve text for error ORA-12541 -- > which means the client doesn't have access to the error string table which > probably stays in the client within of ORACLE_HOME. Briefly: no ORACLE_HOME > defined, no error message can be retrieved (let alone connecting to the > database). > > I'm also running SDO in a Red Hat Linux environment. Becase httpd daemons > usually run in their own shell, we had to setup Apache with an extra section > defining ORACLE variables. This is it: > > (in httpd.conf) > > SetEnv ORACLE_SID g10 > SetEnv ORACLE_BASE /u01/app/oracle > SetEnv ORACLE_HOME /u01/app/oracle/product/8.1.7 > SetEnv ORA_NLS33 /u01/app/oracle/product/8.1.7/ocommon/nls/admin/data > SetEnv NLS_LANG "brazilian portuguese" > > > Cheers, > Rod. > > ----- Original Message ----- > From: "Yu-Hsin Chen" > To: "Rodrigo Cabral" ; "PARVILLERS" > > Cc: > Sent: Saturday, February 23, 2002 12:16 PM > Subject: RE: [mapserver-users] oraclespatial connect error > > I'm on Mandrake Linux ProSuite 8.0. Oracle is 8i 8.1.7 for Linux. I > can access my remote database through sqlplus or a perl cgi program > without problems. Mapserver was compiled with oraclespatial and the > path was pointing to the correct $ORACLE_HOME path. > > I won't be able to try anything until Monday. So I will create a local > database to see if I at least can conquer the connect problem. > > After that I'd have to work with the spatial issues. I'm not familiar > with Oracle spatial implementation. My need is simple: I'd like to be > able to retrieve locations from the database based on certain criteria > and plot them on the map. That's why in my original message I put the > 'DATA' statement that way. I thought I could pull the latitude and > longitude data and plot them as circles (that's how I understood the > Mapserver reference manual) with that statement. If that's not the > case, Rod, I think I'll need assistance later. > > Thanks. > > Yu-Hsin > > -----Original Message----- > From: Rodrigo Cabral > Sent: Sat 2/23/2002 8:20 AM > To: PARVILLERS; Yu-Hsin Chen > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] oraclespatial connect error > > Which binary of mapserver are you using? Windows or Unix? -- just for > curiosity > > Also, you could try to track the error by running sqlplus and trying to > connect to the database. You should get the same TNS error when you try > to > connect. > > Rod. > > ----- Original Message ----- > From: "PARVILLERS" > Sent: Saturday, February 23, 2002 4:40 AM > Subject: Re: [mapserver-users] oraclespatial connect error > > Hello, > > don't you have more than one Oracle install on your local server ? May > be > the > Oci don't look in the right tnsnames.ora file ? > > Yu-Hsin Chen a ?crit : > > > Well, my problem is that the database is not on the local machine. I > > guess I could create the local database and test it out. If that is > > successful I can always create database link in Oracle to access the > > real data. > > > > Thanks for the tip on DATA. I will have more questions back on this > > item. > > > > Yu-Hsin > > > > -----Original Message----- > > From: Rodrigo Cabral > > Sent: Fri 2/22/2002 7:32 PM > > To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu > > Cc: > > Subject: Re: [mapserver-users] oraclespatial connect error > > > > Your error means that the Oracle client cannot find the database > > (service) > > to connect. Try using simply 'username/password' for CONNECTION to see > > if > > the default service works. > > > > Also, your DATA statement is not going to work. 'circle' must be in > the > > select list. Like "circle from (select circle...)". BUT, why are you > > doing > > that? Try this: > > > > DATA "circle FROM room_geoloc" > > or > > DATA "circle FROM room_geoloc USING SRID " if you have an srid > > number > > defined. > > > > Rod. > > > > ----- Original Message ----- > > From: "Yu-Hsin Chen" > > To: > > Sent: Friday, February 22, 2002 4:04 PM > > Subject: [mapserver-users] oraclespatial connect error > > > > I've compiled mapserver 3.5 with oraclespatial option on my Mandrake > > Linux 8.0 with Oracle 8.1.7i. When I run sqlplus at Linux prompt I > can > > get to the database with un/pw at bis login. However, when I tried it > from > > a map file I get "msOCIConnect() in msOracleSpatialLayerOpen(): > > OracleSpatial error. Error while trying to retrieve text for error > > ORA-12541" in my browser. ORA-12541 is "TNS:could not resolve service > > name". > > > > My map file looks like this: > > > > LAYER > > NAME "oracle" > > CONNECTIONTYPE oraclespatial > > CONNECTION 'un/pw at bis' > > DATA "circle from (select room_id, longitude, latitude from > > room_geoloc)" > > TYPE POINT > > STATUS ON > > ... > > ... > > END > > > > Thanks in advance to whoever can help me. > > > > Yu-Hsin Chen > > > > > ------------------------------------------------------------------------ > > Name: winmail.dat > > winmail.dat Type: application/ms-tnef > > Encoding: base64 From ychen at yorktel.com Sat Feb 23 16:12:19 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Sat, 23 Feb 2002 19:12:19 -0500 Subject: [mapserver-users] oraclespatial connect error Message-ID: <05D31DD35285D4488610D8C0C08F5962090B96@ytcmail.yorktel.com> Thanks, Rod. Looks like that was it. I'm using MapServer CGI and after I modified the httpd conf file now I'm getting "msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error. ORA-04043: object MDSYS.SDO_GEOMETRY does not exist". I think I'm in the database and now I'm dealing with spatial cartridge. It appears that I have to deal with SDO schemas, right? I was hoping I can avoid it with my simple need. My application have many rooms which belong to different customers. I'd like to display different service status using maps. I don't have the Oracle Spatial user's guide with me right now so I don't know what question to ask. My original thinking was that I have a table storing the latitude and longitude data for the rooms and if I join that table with my service table based on room_id I'll have all the service data and geographic data I need. Now I'm not sure I have to go to the office on Monday read the SDO guide and work on it. Thanks for your help. Yu-Hsin -----Original Message----- From: Rodrigo Cabral Sent: Sat 2/23/2002 12:16 PM To: Yu-Hsin Chen; PARVILLERS Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oraclespatial connect error Okay, we can sort your application out later on. Let's first make things work. Not sure if you're using MapServer CGI or MapScript... But either tnsnames.ora doesn't have your database address defined (but you can use sqlplus in your clientside, which is strange); or the ORACLE_HOME environment variable is not defined in the runtime shell mapserver is executing (but you can access oracle through a CGI program, which is also strange). However, the 2nd option is my best guess. My hint comes from the error message itself -- Error while trying to retrieve text for error ORA-12541 -- which means the client doesn't have access to the error string table which probably stays in the client within of ORACLE_HOME. Briefly: no ORACLE_HOME defined, no error message can be retrieved (let alone connecting to the database). I'm also running SDO in a Red Hat Linux environment. Becase httpd daemons usually run in their own shell, we had to setup Apache with an extra section defining ORACLE variables. This is it: (in httpd.conf) SetEnv ORACLE_SID g10 SetEnv ORACLE_BASE /u01/app/oracle SetEnv ORACLE_HOME /u01/app/oracle/product/8.1.7 SetEnv ORA_NLS33 /u01/app/oracle/product/8.1.7/ocommon/nls/admin/data SetEnv NLS_LANG "brazilian portuguese" Cheers, Rod. ----- Original Message ----- From: "Yu-Hsin Chen" To: "Rodrigo Cabral" ; "PARVILLERS" Cc: Sent: Saturday, February 23, 2002 12:16 PM Subject: RE: [mapserver-users] oraclespatial connect error I'm on Mandrake Linux ProSuite 8.0. Oracle is 8i 8.1.7 for Linux. I can access my remote database through sqlplus or a perl cgi program without problems. Mapserver was compiled with oraclespatial and the path was pointing to the correct $ORACLE_HOME path. I won't be able to try anything until Monday. So I will create a local database to see if I at least can conquer the connect problem. After that I'd have to work with the spatial issues. I'm not familiar with Oracle spatial implementation. My need is simple: I'd like to be able to retrieve locations from the database based on certain criteria and plot them on the map. That's why in my original message I put the 'DATA' statement that way. I thought I could pull the latitude and longitude data and plot them as circles (that's how I understood the Mapserver reference manual) with that statement. If that's not the case, Rod, I think I'll need assistance later. Thanks. Yu-Hsin -----Original Message----- From: Rodrigo Cabral Sent: Sat 2/23/2002 8:20 AM To: PARVILLERS; Yu-Hsin Chen Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oraclespatial connect error Which binary of mapserver are you using? Windows or Unix? -- just for curiosity Also, you could try to track the error by running sqlplus and trying to connect to the database. You should get the same TNS error when you try to connect. Rod. ----- Original Message ----- From: "PARVILLERS" Sent: Saturday, February 23, 2002 4:40 AM Subject: Re: [mapserver-users] oraclespatial connect error Hello, don't you have more than one Oracle install on your local server ? May be the Oci don't look in the right tnsnames.ora file ? Yu-Hsin Chen a ?crit : > Well, my problem is that the database is not on the local machine. I > guess I could create the local database and test it out. If that is > successful I can always create database link in Oracle to access the > real data. > > Thanks for the tip on DATA. I will have more questions back on this > item. > > Yu-Hsin > > -----Original Message----- > From: Rodrigo Cabral > Sent: Fri 2/22/2002 7:32 PM > To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu > Cc: > Subject: Re: [mapserver-users] oraclespatial connect error > > Your error means that the Oracle client cannot find the database > (service) > to connect. Try using simply 'username/password' for CONNECTION to see > if > the default service works. > > Also, your DATA statement is not going to work. 'circle' must be in the > select list. Like "circle from (select circle...)". BUT, why are you > doing > that? Try this: > > DATA "circle FROM room_geoloc" > or > DATA "circle FROM room_geoloc USING SRID " if you have an srid > number > defined. > > Rod. > > ----- Original Message ----- > From: "Yu-Hsin Chen" > To: > Sent: Friday, February 22, 2002 4:04 PM > Subject: [mapserver-users] oraclespatial connect error > > I've compiled mapserver 3.5 with oraclespatial option on my Mandrake > Linux 8.0 with Oracle 8.1.7i. When I run sqlplus at Linux prompt I can > get to the database with un/pw at bis login. However, when I tried it from > a map file I get "msOCIConnect() in msOracleSpatialLayerOpen(): > OracleSpatial error. Error while trying to retrieve text for error > ORA-12541" in my browser. ORA-12541 is "TNS:could not resolve service > name". > > My map file looks like this: > > LAYER > NAME "oracle" > CONNECTIONTYPE oraclespatial > CONNECTION 'un/pw at bis' > DATA "circle from (select room_id, longitude, latitude from > room_geoloc)" > TYPE POINT > STATUS ON > ... > ... > END > > Thanks in advance to whoever can help me. > > Yu-Hsin Chen > > ------------------------------------------------------------------------ > Name: winmail.dat > winmail.dat Type: application/ms-tnef > Encoding: base64 -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 5850 bytes Desc: not available URL: From pushkar at ERC.MsState.Edu Sat Feb 23 22:42:51 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Sun, 24 Feb 2002 00:42:51 -0600 (CST) Subject: [mapserver-users] help with raster In-Reply-To: Message-ID: Francois, I had the same trouble some time ago. First of all your mapserver looks for the tif file in the dir. specified by the SHAPEPATH var. Look at your server error log (apache or whatever) not just MS log. This gives more information. If your imgs. are 24 bit you need gdal and if they are 8 bit MS can handle it. Do mapserv -v and check if you have gdal or TIFF support showing up, maybe you forgot to put the new compiled mapserv exe. in your server. Try removing the " " around the file name. > > Hello ! > I am trying to use raster data within mapserver, which does not work. > I have atempted to use various version of mapserver, compiled > with or without gdal support. My data is geotiff, with the following > indications extracted by gdalinfo : > > Driver: GTiff/GeoTIFF > Size is 5441, 4851 > Coordinate System is: > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223562997]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433]] > Origin = (-65.030748,3.840657) > Pixel Size = (0.000400,-0.000400) > Corner Coordinates: > Upper Left ( -65.0307480, 3.8406570) ( 65d 1'50.69"W, 3d50'26.37"N) > Lower Left ( -65.0307480, 1.9002570) ( 65d 1'50.69"W, 1d54'0.93"N) > Upper Right ( -62.8543481, 3.8406570) ( 62d51'15.65"W, 3d50'26.37"N) > Lower Right ( -62.8543481, 1.9002570) ( 62d51'15.65"W, 1d54'0.93"N) > Center ( -63.9425480, 2.8704570) ( 63d56'33.17"W, 2d52'13.65"N) > My mapfile is the simplest ever : > > NAME mymap > SIZE 500 500 > EXTENT -65 2 -63 4 > SHAPEPATH "data1" > SYMBOLSET marker.sym > > WEB > TEMPLATE dessine_carte.html > EMPTY /cartes/empty.html > IMAGEPATH "/usr/local/httpd/htdocs/tmp/" > IMAGEURL "/tmp/" > LOG "/tmp/log.log" > END > > LAYER > NAME "Im" > DATA "Landsat2.tif" > TYPE RASTER > STATUS ON > END > END # end of map file > > In the log file, I can see : > Sat Feb 23 12:41:32 2002,22416,195.132.244.162,mymap,0,-65.498000 2.000000 > -63 4.000000,-1.000000 -1.000000,,normal execution > > The result is a blank image of 500x500 pixels. > > I would like to know : > 1. how to understand every statement of the log file > 2. how to test simply the raster capability of my mapserver > 3. how i can understand what is going on with the raster > data for it not being displayed > > Thanks in advance for any answer > Fran?ois-Michel Le Tourneau > > *********************************************************************** > Francois-Michel Le Tourneau > Charg? de Recherches au CNRS > Centre de Recherche et de Documentation sur l'Am?rique Latine (UMR 7530) > Tel. 01 44 39 86 85 Fax. 01 45 48 79 58 > E-mail : Francois.Michel.Le.Tourneau at ens.fr > *********************************************************************** > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From pushkar at ERC.MsState.Edu Sat Feb 23 22:47:50 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Sun, 24 Feb 2002 00:47:50 -0600 (CST) Subject: [mapserver-users] Raster reprojection In-Reply-To: <20020223132544.A30077@bigfoot.com> Message-ID: You should have to recompile mapserver with the --without-tiff option and --with-gdal=/path/to/gdal-config Otherwise what happens is that when MS comes across the TIFF img. it calls the TIFF libs. and GDAL libs. will never be called. > Hello. > I'm having a problem with ms. > >From time to time, I get an error: > > Warning: MapServer Error in msDrawRasterLayer( TIFF ): Raster reprojection > supported only with the GDAL library. in > /usr/local/apache/htdocs/sig/templates/mapa_form.php on line 234 > > I've read in the mail-list, and Frank Warmerdam says that it is necessary to > reconfigure without tiff support. > Reconfigure what? GD? MS? PHP? > > My configure options: > PHP: > ./configure --with-dbase=yes --with-system-regex --with-png=yes --without-ttf > --with-apxs=/usr/local/apache/bin/apxs --with-mysql --with-pgsql > --with-config-file-path=/etc > MS: > ./configure --with-gd=/programas/gd-1.8.4 --with-php=/programas/php-4.0.6 > --with-apxs=/usr/local/apache/bin/apxs --with-sde --with-ttf > > Thanks a lot, > > > -- > Vladimir Guzm?n > www.main-task.com > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From hugues at parvillers.com Sun Feb 24 02:45:44 2002 From: hugues at parvillers.com (PARVILLERS) Date: Sun, 24 Feb 2002 11:45:44 +0100 Subject: [mapserver-users] oraclespatial connect error References: <05D31DD35285D4488610D8C0C08F5962090B96@ytcmail.yorktel.com> Message-ID: <3C78C458.9A882B88@parvillers.com> Hello You could send us a "describe" over the table/view where you do the select ?! This could be also done out of the forum as looking especially as an oracle spatial problem ? Rgds H/P Yu-Hsin Chen a ?crit : > Thanks, Rod. Looks like that was it. I'm using MapServer CGI and after > I modified the httpd conf file now I'm getting "msOCIConnect() in > msOracleSpatialLayerOpen(): OracleSpatial error. ORA-04043: object > MDSYS.SDO_GEOMETRY does not exist". I think I'm in the database and now > I'm dealing with spatial cartridge. > > It appears that I have to deal with SDO schemas, right? I was hoping I > can avoid it with my simple need. My application have many rooms which > belong to different customers. I'd like to display different service > status using maps. I don't have the Oracle Spatial user's guide with me > right now so I don't know what question to ask. My original thinking > was that I have a table storing the latitude and longitude data for the > rooms and if I join that table with my service table based on room_id > I'll have all the service data and geographic data I need. Now I'm not > sure I have to go to the office on Monday read the SDO guide and work on > it. > > Thanks for your help. > > Yu-Hsin > > -----Original Message----- > From: Rodrigo Cabral > Sent: Sat 2/23/2002 12:16 PM > To: Yu-Hsin Chen; PARVILLERS > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] oraclespatial connect error > > Okay, we can sort your application out later on. Let's first make things > work. Not sure if you're using MapServer CGI or MapScript... But either > tnsnames.ora doesn't have your database address defined (but you can use > sqlplus in your clientside, which is strange); or the ORACLE_HOME > environment variable is not defined in the runtime shell mapserver is > executing (but you can access oracle through a CGI program, which is > also > strange). > > However, the 2nd option is my best guess. My hint comes from the error > message itself -- Error while trying to retrieve text for error > ORA-12541 -- > which means the client doesn't have access to the error string table > which > probably stays in the client within of ORACLE_HOME. Briefly: no > ORACLE_HOME > defined, no error message can be retrieved (let alone connecting to the > database). > > I'm also running SDO in a Red Hat Linux environment. Becase httpd > daemons > usually run in their own shell, we had to setup Apache with an extra > section > defining ORACLE variables. This is it: > > (in httpd.conf) > > SetEnv ORACLE_SID g10 > SetEnv ORACLE_BASE /u01/app/oracle > SetEnv ORACLE_HOME /u01/app/oracle/product/8.1.7 > SetEnv ORA_NLS33 /u01/app/oracle/product/8.1.7/ocommon/nls/admin/data > SetEnv NLS_LANG "brazilian portuguese" > > > Cheers, > Rod. > > ----- Original Message ----- > From: "Yu-Hsin Chen" > To: "Rodrigo Cabral" ; "PARVILLERS" > > Cc: > Sent: Saturday, February 23, 2002 12:16 PM > Subject: RE: [mapserver-users] oraclespatial connect error > > I'm on Mandrake Linux ProSuite 8.0. Oracle is 8i 8.1.7 for Linux. I > can access my remote database through sqlplus or a perl cgi program > without problems. Mapserver was compiled with oraclespatial and the > path was pointing to the correct $ORACLE_HOME path. > > I won't be able to try anything until Monday. So I will create a local > database to see if I at least can conquer the connect problem. > > After that I'd have to work with the spatial issues. I'm not familiar > with Oracle spatial implementation. My need is simple: I'd like to be > able to retrieve locations from the database based on certain criteria > and plot them on the map. That's why in my original message I put the > 'DATA' statement that way. I thought I could pull the latitude and > longitude data and plot them as circles (that's how I understood the > Mapserver reference manual) with that statement. If that's not the > case, Rod, I think I'll need assistance later. > > Thanks. > > Yu-Hsin > > -----Original Message----- > From: Rodrigo Cabral > Sent: Sat 2/23/2002 8:20 AM > To: PARVILLERS; Yu-Hsin Chen > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] oraclespatial connect error > > Which binary of mapserver are you using? Windows or Unix? -- just for > curiosity > > Also, you could try to track the error by running sqlplus and trying to > connect to the database. You should get the same TNS error when you try > to > connect. > > Rod. > > ----- Original Message ----- > From: "PARVILLERS" > Sent: Saturday, February 23, 2002 4:40 AM > Subject: Re: [mapserver-users] oraclespatial connect error > > Hello, > > don't you have more than one Oracle install on your local server ? May > be > the > Oci don't look in the right tnsnames.ora file ? > > Yu-Hsin Chen a ?crit : > > > Well, my problem is that the database is not on the local machine. I > > guess I could create the local database and test it out. If that is > > successful I can always create database link in Oracle to access the > > real data. > > > > Thanks for the tip on DATA. I will have more questions back on this > > item. > > > > Yu-Hsin > > > > -----Original Message----- > > From: Rodrigo Cabral > > Sent: Fri 2/22/2002 7:32 PM > > To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu > > Cc: > > Subject: Re: [mapserver-users] oraclespatial connect error > > > > Your error means that the Oracle client cannot find the database > > (service) > > to connect. Try using simply 'username/password' for CONNECTION to see > > if > > the default service works. > > > > Also, your DATA statement is not going to work. 'circle' must be in > the > > select list. Like "circle from (select circle...)". BUT, why are you > > doing > > that? Try this: > > > > DATA "circle FROM room_geoloc" > > or > > DATA "circle FROM room_geoloc USING SRID " if you have an srid > > number > > defined. > > > > Rod. > > > > ----- Original Message ----- > > From: "Yu-Hsin Chen" > > To: > > Sent: Friday, February 22, 2002 4:04 PM > > Subject: [mapserver-users] oraclespatial connect error > > > > I've compiled mapserver 3.5 with oraclespatial option on my Mandrake > > Linux 8.0 with Oracle 8.1.7i. When I run sqlplus at Linux prompt I > can > > get to the database with un/pw at bis login. However, when I tried it > from > > a map file I get "msOCIConnect() in msOracleSpatialLayerOpen(): > > OracleSpatial error. Error while trying to retrieve text for error > > ORA-12541" in my browser. ORA-12541 is "TNS:could not resolve service > > name". > > > > My map file looks like this: > > > > LAYER > > NAME "oracle" > > CONNECTIONTYPE oraclespatial > > CONNECTION 'un/pw at bis' > > DATA "circle from (select room_id, longitude, latitude from > > room_geoloc)" > > TYPE POINT > > STATUS ON > > ... > > ... > > END > > > > Thanks in advance to whoever can help me. > > > > Yu-Hsin Chen > > > > > ------------------------------------------------------------------------ > > Name: winmail.dat > > winmail.dat Type: application/ms-tnef > > Encoding: base64 > > ------------------------------------------------------------------------ > Name: winmail.dat > winmail.dat Type: application/ms-tnef > Encoding: base64 From letourne at mercator.ens.fr Sun Feb 24 05:05:02 2002 From: letourne at mercator.ens.fr (Francois Michel Le Tourneau) Date: Sun, 24 Feb 2002 14:05:02 +0100 (MET) Subject: [mapserver-users] help with raster Message-ID: I made a few more tests : - shp2img does produce exactly the right result - i have compiled mapserver with gdal support and disabled internal tiff support. - the server log does not give any clue (neither Apache or MS log) The problem seems to be within mapserver... any clue ? Thanks in advance FMLT *********************************************************************** Francois-Michel Le Tourneau Charg? de Recherches au CNRS Centre de Recherche et de Documentation sur l'Am?rique Latine (UMR 7530) Tel. 01 44 39 86 85 Fax. 01 45 48 79 58 E-mail : Francois.Michel.Le.Tourneau at ens.fr *********************************************************************** From DebasishS at riskinc.com Sun Feb 24 06:28:16 2002 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Sun, 24 Feb 2002 19:58:16 +0530 Subject: [mapserver-users] MapScript Java and MapScript Wrapper DLL Message-ID: Hi, Has anybody tried MapScript with java using SWIG on NT environment . If yes could you please provide me with the make file to help me get started. I had managed to generate the java files from mapscript.i and the wrapper C Code but am unable to compile it into a Windows DLL. thanks Debasish Sahu. From mapserverjohn at hotmail.com Sun Feb 24 10:49:00 2002 From: mapserverjohn at hotmail.com (J-mac) Date: Sun, 24 Feb 2002 10:49:00 -0800 Subject: [mapserver-users] re-classification on the fly References: Message-ID: Hello everyone, I am new to this list and if i am asking an old or improper question I apologize now. I created a mapping system to let public health officials map census, health and pollution data for Hamilton, Ontario. Lately I have ben asked if it is possible to take that information and allow the user to map the data cholopleth map using however many classification fields they want? Is this even possible with mapserver? I have seen it done with MapInfo IMS. Thanks. John Maclachlan M.A. Candidate McMaster University Hamilton, Ontario, Canada ----- Original Message ----- From: To: Sent: Sunday, February 24, 2002 6:28 AM Subject: [mapserver-users] MapScript Java and MapScript Wrapper DLL > Hi, > > Has anybody tried MapScript with java using SWIG on NT environment . If > yes could you please provide me with the make file to help > me get started. I had managed to generate the java files from mapscript.i > and the wrapper C Code but am unable to compile it into > a Windows DLL. > > thanks > Debasish Sahu. > > > From pushkar at ERC.MsState.Edu Sun Feb 24 20:47:55 2002 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Sun, 24 Feb 2002 22:47:55 -0600 (CST) Subject: [mapserver-users] php/mapscript problem In-Reply-To: <3C724EC9.D6B9F786@dmsolutions.ca> Message-ID: Daniel, Thanks for your suggestion, I used the CFLAGS defn. below that you suggested and still use make. I got rid of the earlier error but now I get the foll. error: I've compiled php with system regex and as a DSO successfully. I am compiling mapserver --without-ttf. I am using SUN Solaris. Please tell me if you have any soln. Thanks, Titan[65] pushkar$ make cd mapscript/php3; make; cd ../.. cc -O -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.. -KPIC -02 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_GDAL -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_TTF -I/rstc/user1/erc/pushkar/mapserver_3.5 -I/rstc/user1/erc/pushkar/gdal-1.1.5/port -I/rstc/user1/erc/pushkar/gdal-1.1.5/core -I/rstc/user1/erc/pushkar/gdal-1.1.5/ogr -I/rstc/user1/erc/pushkar/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/include -I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6 -I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/dl -I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/main -I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/Zend -I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/include -I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/TSRM -I/rstc/user1/erc/pushkar/apache_1.3.22/include -c -o php_mapscript_util.o php_mapscript_util.c cc: Warning: option -0 passed to ld cc: Warning: option -2 passed to ld cc: illegal option -Wall *** Error code 1 make: Fatal error: Command failed for target `php_mapscript_util.o' Current working directory /rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3 *** Error code 1 make: Fatal error: Command failed for target `php3_mapscript' > Pushkar Pradhan wrote: > > > > This creates the makefile but when I do a make I get the foll. error: > > cd mapscript/php3; make; cd ../.. > > make: Fatal error in reader: Makefile, line 69: Badly formed macro > > assignment > > Current working directory > > /rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3 > > *** Error code 1 > > make: Fatal error: Command failed for target `php3_mapscript' > > Actually the error occurs on line 69 of the Makefile in mapscript/php dir. > > This line is: > > CFLAGS := $(CFLAGS) $(MS_DEFINE) $(MS_INC) $(PHP_INC) > > > If I remember well, ":=" is supported only by GNUMake... and changing > the above statement to use "=" won't work because the old value of > CFLAGS is reassigned to itself. I'll file a bug in bugzilla about > fixing the makefiles so that they don't rely on GNUMake features, but in > the meantime your can either install GNUmake or edit the statement above > to be: > > CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 $(MS_DEFINE) $(MS_INC) \ > $(PHP_INC) > > -- > ------------------------------------------------------------ > 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. > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Research Assistant MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From Antti.Roppola at brs.gov.au Sun Feb 24 22:18:22 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Mon, 25 Feb 2002 17:18:22 +1100 Subject: [mapserver-users] raster datatypes and modelling Message-ID: <595FE28AB1EBD111920F0060B06B3DD70730C67B@ACTMAIL2> Hello all, I want to be able to implement raster models like ArcInfo GRID. To do this I would need to be able to create new rasters based on existing rasters. For example, "rain_yr = sum(rain_01 -> rain12)". Has anyone got any suggestions on a raster GIS backend for Mapserver? Something like PostGIS, but for raster woiuld be great. TIA, Antti From vogt at Hamburg.BAW.DE Mon Feb 25 00:43:05 2002 From: vogt at Hamburg.BAW.DE (Carsten Vogt) Date: Mon, 25 Feb 2002 09:43:05 +0100 Subject: [mapserver-users] php/mapscript problem In-Reply-To: References: <3C724EC9.D6B9F786@dmsolutions.ca> Message-ID: <4.3.2.7.0.20020225093650.00b26428@uranos> Hi, At 24.02.2002 22:47 -0600, Pushkar Pradhan wrote: >Daniel, >Thanks for your suggestion, I used the CFLAGS defn. below that you >suggested and still use make. I got rid of the earlier error but now I get >the foll. error: >I am using SUN Solaris. >cc: Warning: option -0 passed to ld >cc: Warning: option -2 passed to ld >cc: illegal option -Wall >*** Error code 1 >make: Fatal error: Command failed for target `php_mapscript_util.o' >Current working directory >/rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3 >*** Error code 1 >make: Fatal error: Command failed for target `php3_mapscript' it seems to me that you are using the Sun C-Compiler. I observed an irregular behaviour trying to compile OSS. Maybe you should look for gcc and, if it exists (otherwise let your admin install gcc), change the following: # # Pick a compiler, etc. Flex and bison are only required if you need to modify the mapserver lexer (maplexer.l) or expression parser (mapparser.y). # CXX= c++ CC= gcc This should be CC= gcc Maybe this helps... Regards, Carsten ----------------------------------------------------------- Dipl.-Geogr. Carsten Vogt Tel.: 040 - 81908 - 345 Fax: 040 - 81908 - 373 vogt at hamburg.baw.de http://nokis.baw.de/ Bundesanstalt fuer Wasserbau - Aussenstelle Kueste - Wedeler Landstrasse 157 DE - 22559 Hamburg ----------------------------------------------------------- From perik at azimuth.nl Mon Feb 25 03:40:29 2002 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Mon, 25 Feb 2002 12:40:29 +0100 Subject: [mapserver-users] Highlighting a found shape through it's index Message-ID: <5.1.0.14.2.20020225121153.00a3f010@localhost> Hi All, i'm still having difficulties showing only the queryd object (highlighted). From a database-search i have the index of the shape. Creating new extents so new created image is zoomed in to the object is no problem, but i do not seem to see the logic of the mapscript objects. Now i have the following: = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = /* This is supposed to be showing a map with the queried object highlighted. In the map file (see below) i have a dummy layer which should be used for the highlight Input (GLOBAL) is: --> qlayer (name = park) --> index (the dbf-file index of the queried object) */ // Start with default map $NewMap = ms_newMapObj("track4.map"); // Create shapefile object. $shapeFileObj = ms_newShapeFileObj($ShapefileName, -1 ); // Create shape object $oShape = ms_newShapeObj(-1); // Show the queried object, by turning ON a dummy layer: // Default layername for this is --> layer + 'Query' --> eg. parkQuery $QueryLayerName = $qlayer . 'Query'; $poLayer = $NewMap->getlayerbyname($QueryLayerName); // Retrieve shape into shape object. $oShape = $shapeFileObj->getShape($value -1); // index from dbf-file (-1 !) // Add shape $shapeFileObj->addShape($oShape); // Turn dummy layer on $poLayer->set("status", 1); // Draw the queried object $Newimg = $NewMap->drawQuery(); $Newurl = $Newimg->saveWebImage($Newimg, 0, 0, -1); echo"width HEIGTH=$NewMap->height>\n"; = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = MAP FILE: Dummy-layer = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = LAYER NAME "parkQuery" # This layer is to Highlight the queried object! TYPE POLYGON STATUS OFF DATA park CLASS NAME "parkQuery" COLOR 0 0 255 OUTLINECOLOR 120 120 120 TEMPLATE "ttt_query.html" END END # Layer = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = In the list and in the original Gmap example i have not found a way to get the wanted result. Maybe the outcome (hopefull ;-) ) could be interesting for the HOW-TO section of mapscript. Thanks in advance for any input, Erwin From DebasishS at riskinc.com Mon Feb 25 04:41:32 2002 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Mon, 25 Feb 2002 18:11:32 +0530 Subject: [mapserver-users] MapServer License Message-ID: Hi, Can MapServer be used for commercial projects ? regards Debasish Sahu. Senior Software Engineer From lfilak at medinaco.org Mon Feb 25 05:44:30 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 25 Feb 2002 08:44:30 -0500 Subject: [mapserver-users] re-classification on the fly Message-ID: <200202251337.g1PDbSM11568@yogi.medinaco.net> A lot of what your asking depends on what the data looks like that is going into MapServer. The toughest part is doing unions, clips, & etc. between seperate layers in order to determine results. That will take quite a bit of customization (see http://mapserver.gis.umn.edu/ 4th paragraph ), however all the geographic feature information is available so it's possible. Or if all the layers that were to be used for analysis were preprocessed into a single layer so the classifications could be done using attribute queries only it would require less customizing. Hope that helps. Lowell F. The following message was sent by "J-mac" on Sun, 24 Feb 2002 10:49:00 -0800. > Hello everyone, > > I am new to this list and if i am asking an old or improper question I > apologize now. > > I created a mapping system to let public health officials map census, health > and pollution data for Hamilton, Ontario. Lately I have ben asked if it is > possible to take that information and allow the user to map the data > cholopleth map using however many classification fields they want? Is this > even possible with mapserver? I have seen it done with MapInfo IMS. > > Thanks. > > John Maclachlan > M.A. Candidate > McMaster University > Hamilton, Ontario, Canada > ----- Original Message ----- > From: > To: > Sent: Sunday, February 24, 2002 6:28 AM > Subject: [mapserver-users] MapScript Java and MapScript Wrapper DLL > > > > Hi, > > > > Has anybody tried MapScript with java using SWIG on NT environment . If > > yes could you please provide me with the make file to help > > me get started. I had managed to generate the java files from mapscript.i > > and the wrapper C Code but am unable to compile it into > > a Windows DLL. > > > > thanks > > Debasish Sahu. > > > > > > From jwolfe at sdimaps.com Mon Feb 25 07:35:09 2002 From: jwolfe at sdimaps.com (Jason Wolfe) Date: Mon, 25 Feb 2002 10:35:09 -0500 Subject: [mapserver-users] displaying tif images.. Message-ID: <3C7A59AD.AFAE8B58@sdimaps.com> I am trying to use raster data within mapserver, .tif image with a .tfw. gdal support is compiled within mapserver. My mapfile looks like this. ************************************** Map name drgviewer extent -110 30 -108 32 size 400 400 shapepath "../downloads/drgs/24k/clipped" units meters Web imagpath "/var/www/html/tmp/" imageurl "/tmp" End Layer name "drg_c1" data "31109c1c.tif" type raster status on End End ********************************************** But all I get is a blank image? Is there anyone that can help me with this problem? What am I doing wrong? Thanks, Jason From frank.koormann at intevation.de Mon Feb 25 07:50:48 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Mon, 25 Feb 2002 16:50:48 +0100 Subject: [mapserver-users] Filter problem In-Reply-To: <200202211544.g1LFi0s09334@cnes.fr> References: <200202211544.g1LFi0s09334@cnes.fr> Message-ID: <20020225155048.GA27408@intevation.de> Carine, * Carine Castillon (Carine.Castillon at medias.cnes.fr) [020221 18:46]: > Hello, > > I tried to use "setfilter()" with my layer, but I get the following > error : > > Warning: MapServer Error in msPOSTGISLayerWhichShapes(): prep_DB:Error > executing POSTGIS DECLARE statement (0.6 failed - retried 0.5 and it > failed too). in /export/opt/www/sig/gmap/htdocs/catch.inc.php on line > 354 Wich version of postgis are you running? I encoutered the same error when trying to connect to a CVS-Snapshot of PostGIS (the comming 0.7). According to the source code (mappostgis.c) 0.7 calling convention is not implemented yet. Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From frank.koormann at intevation.de Mon Feb 25 07:57:10 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Mon, 25 Feb 2002 16:57:10 +0100 Subject: [mapserver-users] query in ms 3.5 In-Reply-To: References: Message-ID: <20020225155710.GB27408@intevation.de> Pushkar, * Pushkar Pradhan (pushkar at ERC.MsState.Edu) [020220 21:01]: > Can anybody send me an example of how to do a query in ms 3.5 or correct > my map file, I tried putting TYPE query but didn't work. I am pasting below a > portion of my .map file, the county_rds2001.html contains what used to be in > the header, footer and the main files in ms 3.3 > Besides I also want to show the layer as well as query it. > What is QUERYITEM I didn't find any info on it? Thanks, > LAYER > NAME county_rds2001 > TYPE LINE > DATA county_rds2001 > STATUS ON > QUERYITEM "county roads" > > CLASS > NAME "County Roads 2001" > COLOR 200 125 25 > END > > QUERY > TEMPLATE "county_rds2001.html" > END > > TOLERANCE 3 > > END # end of layer object - county roads (2001) With the step from 3.4 to 3.5 the query concept has changed. The TEMPLATE tag has moved from the QUERY to the CLASS object (http://mapserver.gis.umn.edu/doc/mapserver-FAQ.html#d41e38) QUERYITEM is a tag from 3.3, not used any more. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From steve.lime at dnr.state.mn.us Mon Feb 25 08:10:30 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 25 Feb 2002 10:10:30 -0600 Subject: [mapserver-users] Fwd: Manipulation of demo.map file Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: "Ariadna Cecilia Ruiz Gurrola (Tesista)" Subject: Manipulation of demo.map file Date: Mon, 25 Feb 2002 09:40:06 -0600 (CST) Size: 1236 URL: From ed at topozone.com Mon Feb 25 08:11:57 2002 From: ed at topozone.com (Ed McNierney) Date: Mon, 25 Feb 2002 11:11:57 -0500 Subject: [mapserver-users] displaying tif images.. Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7D23@mercator.topozone.com> Jason - If you're using USGS DRGs, as you appear to be, those DRGs come in the UTM projection. Have you reprojected those images to a "geographic" or lat/lon type of image? Your "extent" line indicates extents in decimal degrees, but that's not how the DRGs usually come. You should look at either the ESRI world file (.TFW) or the GeoTIFF tags in your TIFF image to check the spatial extents of the image. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Jason Wolfe [mailto:jwolfe at sdimaps.com] Sent: Monday, February 25, 2002 10:35 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] displaying tif images.. I am trying to use raster data within mapserver, .tif image with a .tfw. gdal support is compiled within mapserver. My mapfile looks like this. ************************************** Map name drgviewer extent -110 30 -108 32 size 400 400 shapepath "../downloads/drgs/24k/clipped" units meters Web imagpath "/var/www/html/tmp/" imageurl "/tmp" End Layer name "drg_c1" data "31109c1c.tif" type raster status on End End ********************************************** But all I get is a blank image? Is there anyone that can help me with this problem? What am I doing wrong? Thanks, Jason From steve.lime at dnr.state.mn.us Mon Feb 25 08:18:03 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 25 Feb 2002 10:18:03 -0600 Subject: [mapserver-users] Re: Map File in XML Format Message-ID: No it doesn't, I was just screwing around with the DTD and left it in the dist so I don't loose it. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 02/23/02 02:25AM >>> Hi, Does the latest Mapserver 3.5 supports Map File in XML format . In the source distribution there's a dtd for the same . thanks Debasish. From vguzman at bigfoot.com Mon Feb 25 09:21:04 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Mon, 25 Feb 2002 12:21:04 -0500 Subject: [mapserver-users] displaying tif images.. References: <3C7A59AD.AFAE8B58@sdimaps.com> Message-ID: <3C7A7280.2030009@bigfoot.com> Jason: I think your problem could be in the shapepath, maybe it has to be absolute. Jason Wolfe wrote: >I am trying to use raster data within mapserver, .tif image with a >.tfw. gdal support is compiled within mapserver. >My mapfile looks like this. >************************************** >Map > name drgviewer > extent -110 30 -108 32 > size 400 400 > shapepath "../downloads/drgs/24k/clipped" > units meters > >Web > imagpath "/var/www/html/tmp/" > imageurl "/tmp" > End > >Layer > name "drg_c1" > data "31109c1c.tif" > type raster > status on >End >End >********************************************** >But all I get is a blank image? Is there anyone that can help me with >this problem? >What am I doing wrong? > >Thanks, >Jason > > -- Vladimir Guzm?n R. ----------------- www.main-task.com From teb at mallit.fr.umn.edu Mon Feb 25 09:10:20 2002 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 25 Feb 2002 11:10:20 -0600 (CST) Subject: [mapserver-users] Legend Columns (FWD) Message-ID: <200202251710.LAA29747@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: CoadyT at DFO-MPO.GC.CA To: mapserver-info at lists.gis.umn.edu Subject: Legend Columns Date: Mon, 25 Feb 2002 08:47:45 -0500 MIME-Version: 1.0 Wondering if you guys had any code for spliting the legend.into more than one column?? Tony Coady Programmer Analyst Coroporate Services Information Management & Technology Services Branch St John's NF White Hills Building P.O.Box 5667 A1C 5X1 (709)772-6272 ------------- End Forwarded Message ------------- From ychen at yorktel.com Mon Feb 25 10:13:58 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Mon, 25 Feb 2002 13:13:58 -0500 Subject: [mapserver-users] query in ms 3.5 Message-ID: <05D31DD35285D4488610D8C0C08F5962090B9A@ytcmail.yorktel.com> Frank: Looks like you're experiencing the 3.3->3.5 syndrome I had before. 'QUERY' object no longer exists in 3.5. Instead, you'd put your TEMPLATE statement in your CLASS object. So the block of code in your .map file changes from: CLASS NAME "County Roads 2001" COLOR 200 125 25 END QUERY TEMPLATE "county_rds2001.html" END to: CLASS NAME "County Roads 2001" COLOR 200 125 25 TEMPLATE "county_rds2001.html" END If you had HEADER and FOOTER tags they can stay where they are. You shouldn't need the line for 'QUERYITEM'. Yu-Hsin -----Original Message----- From: Frank Koormann [mailto:frank.koormann at intevation.de] Sent: Monday, February 25, 2002 10:57 AM To: Pushkar Pradhan Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] query in ms 3.5 Pushkar, * Pushkar Pradhan (pushkar at ERC.MsState.Edu) [020220 21:01]: > Can anybody send me an example of how to do a query in ms 3.5 or correct > my map file, I tried putting TYPE query but didn't work. I am pasting below a > portion of my .map file, the county_rds2001.html contains what used to be in > the header, footer and the main files in ms 3.3 > Besides I also want to show the layer as well as query it. > What is QUERYITEM I didn't find any info on it? Thanks, > LAYER > NAME county_rds2001 > TYPE LINE > DATA county_rds2001 > STATUS ON > QUERYITEM "county roads" > > CLASS > NAME "County Roads 2001" > COLOR 200 125 25 > END > > QUERY > TEMPLATE "county_rds2001.html" > END > > TOLERANCE 3 > > END # end of layer object - county roads (2001) With the step from 3.4 to 3.5 the query concept has changed. The TEMPLATE tag has moved from the QUERY to the CLASS object (http://mapserver.gis.umn.edu/doc/mapserver-FAQ.html#d41e38) QUERYITEM is a tag from 3.3, not used any more. Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From teb at mallit.fr.umn.edu Mon Feb 25 10:20:20 2002 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 25 Feb 2002 12:20:20 -0600 (CST) Subject: [mapserver-users] printing client maps (FWD) Message-ID: <200202251820.MAA29818@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Kevin Flanders" To: Subject: printing client maps Date: Mon, 25 Feb 2002 13:24:44 -0500 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 I am wondering if anyone out there is aware of any utilities which enable client-side map printing of the "current view".....I envision the ability to print portrait or landscape maps with north arrow, accurate scalebar, title, date, and legend. Any ideas/solutions? Kevin Flanders ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rich at GreenwoodMap.com Mon Feb 25 15:39:28 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Mon, 25 Feb 2002 16:39:28 -0700 Subject: [mapserver-users] reference map - points & polygons Message-ID: <5.1.0.14.0.20020225163541.021a7d80@mail.GreenwoodMap.com> I think this question has gone around before, but I struck out in my search of the archive, so here goes - How can you switch between having the reference map show points instead of polygons? With a reference map that shows a large area, the rectangle can pretty well disappear when the user zooms in a lot. Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From MeganWatson at auslig.gov.au Mon Feb 25 17:57:13 2002 From: MeganWatson at auslig.gov.au (Watson, Megan) Date: Tue, 26 Feb 2002 12:57:13 +1100 Subject: [mapserver-users] savequery and queryfile question Message-ID: <53273E187450D311ACF6009027927B12023388B6@smtpgate.auslig.gov.au> I'm wondering if someone can guide me in the right direction as to how to use the queryfile and savequery cgi variables in Mapserver 3.5 Currently I am displaying the query results in the main template using a header and footer. I would like to then display the query results along with the map and some other info (logo and some text) in another page that is laid out in a printable format. I am at the point where i can open this new window and display the map, logo etc but not the query results. Reading through the documentation it looks like I should be able to do this using the queryfile and savequery cgi variables but am not sure how they work. I've managed to set these variables to save the query and can see the .qy file it creates but not sure what to do with it after that. Here are extracts of my map file and templates: ## map file ## NAME Scar STATUS ON INTERLACE ON SIZE 380 380 #size in pixels of image# #UNITS dd #units of map coordinates# EXTENT -4919749.993861 -4877184.442175 5080250.006139 5122815.557825 IMAGETYPE gif SYMBOLSET "symbol/symbolsms35.sym" #FONTSET "/public/drivers/Hp1055/mscdrom/extras/en/ps105x/fonts/truetype/arial.ttf" SHAPEPATH "/www/mapdata/data/" #location of shapefiles IMAGECOLOR 204 244 255 #background colour of map displayed #LABELOVERLAP false WEB HEADER "scar_header.htm" TEMPLATE "scar_template.htm" FOOTER "scar_footer.htm" IMAGEPATH "/www/cgi-data/wwwtest/tmp/" IMAGEURL "/cgi-data/tmp/" #LOG "dev.log" #MINSCALE 60000000 #MINSCALE 420000 END QUERYMAP STATUS ON STYLE HILITE COLOR 255 255 0 OUTLINECOLOR 255 255 255 END --------------------------- ## template ##
--------------------- in the template i have a button that calls a javascript to pop the new window, and radio buttons that allow the user to browse or query (using nquery) thanks Megan Watson Web Developer Geoscience Australia, National Mapping Division ph: 02 6201 4298 From williams at wildweb.org Mon Feb 25 22:30:31 2002 From: williams at wildweb.org (Doug Williams) Date: Mon, 25 Feb 2002 23:30:31 -0700 Subject: [mapserver-users] New perl mapscript doc Error? In-Reply-To: References: Message-ID: <02022523303101.01303@grove.giantcedars.com> Nuno, Indeed, the new perl documentation needs some miscellaneous fixes... The proper way to save an image does utilize 6 parameters, as you indicate. Try: $legend = $map->drawLegend() or die('Unable to draw map'); $legendfile = "/path/to/web/imagedir/legendexample.png"; $legendurl = "/web/imagedir/legendexample.png"; mapscript::msSaveImage($legend, $legendfile, 2, 1, 1, 95); The new parameters are for type of image (png, etc) and image quality (ignored unless jpg) - I think. The order is (image, image_file, image_type, transparent, interlace, quality) I'm guessing at the value 2 for image type. I'm making PNGs. The value 1 worked also. 0 and 4 did not work for png, did not try jpg. The PHP documentation has mapserver constants that define the image types. You might find somethng useful there. I found the parameters for the above msSaveImage() listed in my web server error log when using the incorrectly listed paprameters. Note: interlace and transparent are listed backwards in the 3.3 documentation. Good Luck. On Thursday 21 February 2002 10:45, Nuno Alves wrote: > Hi all, > > We can see in the new mapscript documentation the following example, but i > think it is wrong: > the msSaveImage function has now new parameters (six), or am i wrong. This > is the example of > the perl mapscript 3.3. > > #!/usr/bin/perl > use mapscript; > $map = new mapObj('example.map) or die('Unable to open mapfile.'); > $img = $map->draw() or die('Unable to draw map'); > mapscript::msSaveImage($img, 'example.gif', $map->{interlace}, > $map->{transparent}); > > I also would like to know if it will be posted a "perl mapscript by example > how-to" like in php documentation. > > Thanks in advance, > > <<...OLE_Obj...>> > > Nuno Ricardo Ribeiro Alves > PT Inova??o, S.A. > Servi?os e Redes M?veis > * R. Eng? Jos? Ferreira Pinto Basto - 3810 Aveiro > * mailto:est-n-alves at ptinovacao.pt From ashleyjoyce at hotmail.com Mon Feb 25 23:22:40 2002 From: ashleyjoyce at hotmail.com (Ashley Joyce) Date: Tue, 26 Feb 2002 18:22:40 +1100 Subject: [mapserver-users] Mysql support for mapserver References: <02022523303101.01303@grove.giantcedars.com> Message-ID: When installing mapserver to work with Mysql as the data source - what special configuration should be performed during installation. I saw mention of special compile calls for different spatial warehousing e.g oracle in the readme files - is there something I should know abouot configuring my mapserver to work with Mysql before installing. Kind Regards, Ashley Joyce From ashleyjoyce at hotmail.com Tue Feb 26 01:33:24 2002 From: ashleyjoyce at hotmail.com (Ashley Joyce) Date: Tue, 26 Feb 2002 20:33:24 +1100 Subject: [mapserver-users] Installation problem References: <02022523303101.01303@grove.giantcedars.com> Message-ID: I am new to mapserver and have just tried to install it for the first time. I installed all the required modules. After installation..... after typing ./mapserv - to check my installation I get the following error. - error while loading shared libraries: libproj.so cannot share object file: no such file or directory. Is this because I haven't configured PROJ.4 probably. Can someone help! Thanks, Ashley Joyce From stepan.kafka at centrum.cz Tue Feb 26 02:53:43 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Tue, 26 Feb 2002 11:53:43 +0100 Subject: [mapserver-users] Installation problem In-Reply-To: Message-ID: <000301c1beb3$db63d1a0$7e3c2fc3@HSGIS> It is known problem with proj library path. Please, see the discussion on http://mapserver.gis.umn.edu/wilma/mapserver-users/0108/msg00084.html Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Ashley > Joyce > Odesl?no: 26. ?nora 2002 10:33 > Komu: Doug Williams; Nuno Alves; MAPSERVER (E-mail) > P?edm?t: [mapserver-users] Installation problem > > > I am new to mapserver and have just tried to install it for the > first time. > I installed all the required modules. > > After installation..... after typing ./mapserv - to check my > installation > I get the following error. > > - error while loading shared libraries: libproj.so cannot share object > file: no such file or directory. > > Is this because I haven't configured PROJ.4 probably. Can someone help! > > Thanks, > > Ashley Joyce > > From rburghol at vt.edu Tue Feb 26 04:29:32 2002 From: rburghol at vt.edu (Robert Burgholzer) Date: Tue, 26 Feb 2002 07:29:32 -0500 Subject: [mapserver-users] Mysql support for mapserver References: <02022523303101.01303@grove.giantcedars.com> Message-ID: <3C7B7FAB.1BECDE86@vt.edu> Someone please correct me if I'm wrong, but I don;t believe there is any support within Mapserver to directly employ mySQL. If I understand the documentation, postgres and oracle are supported, but not mysql. This is, I gather, due to the fact that these two databases somehow support shape or image data columns. The documentation seems vague on this (I have set up a search engine to search the docs [http://128.173.218.154/search/prog_lang.html] and a search for POSTGIS turns up only four hits, one a comment in the faq asking for information on postgis). However, I managed to locate a link on a linked page to the following: http://postgis.refractions.net/ It looks as if these folks are in the know. I am going to explore this myself, and see if I can't make the switch from mysql to postgres. hope this helps, Rob -- Robert Burgholzer rburghol at vt.edu http://www.soulswimmer.net/ From teb at mallit.fr.umn.edu Tue Feb 26 06:19:25 2002 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 26 Feb 2002 08:19:25 -0600 (CST) Subject: [mapserver-users] Mapserver using a Mysql data source (FWD) Message-ID: <200202261419.IAA00371@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Originating-IP: [203.30.248.30] From: "Ashley Joyce" To: Subject: Mapserver using a Mysql data source Date: Tue, 26 Feb 2002 11:19:11 +1100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-OriginalArrivalTime: 26 Feb 2002 00:19:18.0042 (UTC) FILETIME=[3AC5AFA0:01C1BE5B] Mapserver Support I want to use mapserver with mysql and the perl DBI:DBD module. Recently I setup a nearest locator system using this model on my webserver and it works fine. I want to now take it a step further by using mapserver with GIS datasets to offer maps of the US. What configuration is necessary to use mysql as the spatial warehousing when installing Mapserver? In the documentation you had special configuration for oracle i.e --with-oraclespatial, is there are similar call for Mysql. Is there any documentation or support available for structuring the datasets in mysql etc.?? Any advice would be much appreciated. Kind Regards, Ashley Joyce ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From vguzman at bigfoot.com Tue Feb 26 06:35:08 2002 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Tue, 26 Feb 2002 09:35:08 -0500 Subject: [mapserver-users] Raster reprojection References: Message-ID: <3C7B9D1C.5060709@bigfoot.com> I'm sorry to disturb you again with the same problem, but I can not figure out why do I have to install gdal library, if I didn't need it with MS 3.4. The error appears when I use a tiff image as background map, so I decided to use a png, with the same result: *Warning*: MapServer Error in msDrawRasterLayer( PNG ): Raster reprojection supported only with the GDAL library. in */usr/local/apache/htdocs/sig/admin/templates/mapa_form.php* on line *246* *Fatal error*: Call to a member function on a non-object in */usr/local/apache/htdocs/sig/admin/templates/mapa_form.php* on line *247* But the error doesn't appear every time, only in some zooms. Do I have to install gdal anyway? Why? Thanks a lot, -- Vladimir Guzm?n R. ----------------- www.main-task.com Pushkar Pradhan wrote: >You should have to recompile mapserver with the --without-tiff option >and --with-gdal=/path/to/gdal-config >Otherwise what happens is that when MS comes across the TIFF img. it calls >the TIFF libs. and GDAL libs. will never be called. > >>Hello. >>I'm having a problem with ms. >>>From time to time, I get an error: >> >>Warning: MapServer Error in msDrawRasterLayer( TIFF ): Raster reprojection >>supported only with the GDAL library. in >>/usr/local/apache/htdocs/sig/templates/mapa_form.php on line 234 >> >>I've read in the mail-list, and Frank Warmerdam says that it is necessary to >>reconfigure without tiff support. >>Reconfigure what? GD? MS? PHP? >> >>My configure options: >>PHP: >>./configure --with-dbase=yes --with-system-regex --with-png=yes --without-ttf >>--with-apxs=/usr/local/apache/bin/apxs --with-mysql --with-pgsql >>--with-config-file-path=/etc >>MS: >>./configure --with-gd=/programas/gd-1.8.4 --with-php=/programas/php-4.0.6 >>--with-apxs=/usr/local/apache/bin/apxs --with-sde --with-ttf >> >>Thanks a lot, >> >> >>-- >>Vladimir Guzm?n >>www.main-task.com >> > >------------------------------------------------------------------------------ >PUSHKAR S. PRADHAN >Research Assistant >MISSISSIPPI STATE UNIVERSITY, >STARKVILLE, MS 39759. > >Engineering Research Center >Box 9627 >Mississippi State, MS 39762-9627 >------------------------------------------------------------------------------ > > From pkishor at GeoAnalytics.com Tue Feb 26 07:24:31 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 26 Feb 2002 09:24:31 -0600 Subject: [mapserver-users] Mysql support for mapserver Message-ID: > Someone please correct me if I'm wrong, but I don;t believe > there is any > support within Mapserver to directly employ mySQL. If I understand the > documentation, postgres and oracle are supported, but not mysql. This > is, I gather, due to the fact that these two databases somehow support > shape or image data columns. you are correct. > on a linked page to the following: http://postgis.refractions.net/ > It looks as if these folks are in the know. I am going to explore this > myself, and see if I can't make the switch from mysql to postgres. > postgis && oracle :: sde mysql has nothing to do with storing geographic data. mysql is simply a popular choice of database for non-spatial attribute data. hth. From steve.lime at dnr.state.mn.us Mon Feb 25 21:07:17 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 25 Feb 2002 23:07:17 -0600 Subject: [mapserver-users] reference map - points & polygons Message-ID: I do this on our recreation compass application by using a bit of javascript to trigger reference map creation. You probably could avoid the javascript entirely by using minscale/maxscale appropriately. The important thing is that I don't use a reference map object at all, rather a special mapfile for just the reference map. I'll pass along my setup if interested. Let me check out the scale issue (removing javascript) to simplify matters first though. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Richard Greenwood 02/25/02 17:56 PM >>> I think this question has gone around before, but I struck out in my search of the archive, so here goes - How can you switch between having the reference map show points instead of polygons? With a reference map that shows a large area, the rectangle can pretty well disappear when the user zooms in a lot. Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From vieglais at ku.edu Tue Feb 26 08:50:32 2002 From: vieglais at ku.edu (Dave Vieglais) Date: Tue, 26 Feb 2002 10:50:32 -0600 Subject: [mapserver-users] Simple WMS client script In-Reply-To: Message-ID: <000c01c1bee5$b46b3e80$2b69fea9@DV2> Dear MapServer users, What started with some messing around with some simple interfaces for rendering OGC WMS content, ended up as a simple, generic map interface that can be inserted into almost any HTML document to produce a dynamic map. The script does not perform any resource discovery and at this stage does not support feature query of features. Note that this script is not intended to provide a full featured map interface, but it is still fun to use where a static picture doesn't provide the information needed and all that's needed is a simple, minimal effort spatial viewer. All the data sources for the examples are from WMS compliant mapserver installations, hence the relevance to this list. The documentation and code can be found at: http://tsadev.speciesanalyst.net/documentation/ow.asp?InlineWMSMap I also took the liberty of inserting a demo in the Mapserver wiki. See http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?JavaScriptMapServer regards, Dave V. =================== David A. Vieglais University of Kansas Natural History Museum & Biodiversity Research Center http://www.nhm.ku.edu From v at w.cl Tue Feb 26 12:23:58 2002 From: v at w.cl (Vinko Vrsalovic) Date: Tue, 26 Feb 2002 15:23:58 -0500 Subject: [mapserver-users] printing client maps (FWD) In-Reply-To: <200202251820.MAA29818@mallit.fr.umn.edu> References: <200202251820.MAA29818@mallit.fr.umn.edu> Message-ID: <20020226152358.A24833@landsat.cprsig.cl> > I am wondering if anyone out there is aware of any utilities > which enable client-side map printing of the "current view".....I > envision the ability to print portrait or landscape maps with > north arrow, accurate scalebar, title, date, and legend. > > Any ideas/solutions? OnClick='javascript:print();' is not enough? -- V. From janderson at PacificDataServices.com Tue Feb 26 10:34:04 2002 From: janderson at PacificDataServices.com (Jessica Anderson) Date: Tue, 26 Feb 2002 10:34:04 -0800 Subject: [mapserver-users] Example of Cold Fusion.... Message-ID: <000501c1bef4$2b615020$6501a8c0@janderson> Hello everyone, I am new to using mapserver; however, experienced in cold fusion and was wondering if anyone could send me an example exactly how you can integrate this tool with cold fusion? Jessica Anderson Pacific Data Services PH. (209) 524-2479 FAX. (209) 524-0282 From mike at mikee.de Tue Feb 26 11:33:00 2002 From: mike at mikee.de (mikee) Date: Tue, 26 Feb 2002 20:33:00 +0100 Subject: [mapserver-users] esri-sde & mapserver 3.5 ??? Message-ID: <001301c1befc$6766a220$02ffa8c0@mikee> please help me, who can me tell, how i can work with esri-sde and mapserver 3.5? give me please an example-map-file. ---> mfg mikeE. :-) ---> mail: mike at mikee.de ---> @web: http://www.mikee.de ---> @wap: http://www.mikee.de/wap (dinge, die die welt nicht braucht!) ---> icq: 129278959 ---> siehe auch: ---> www.hallelinks.de ---> www.rettet-die-berliner-bruecke.de ---> www.buergerforum-halle.de ---> www.ohnesocken.de ---> www.elstermanns.de ---> www.tonart-halle.de From mike at mikee.de Tue Feb 26 11:52:27 2002 From: mike at mikee.de (mikee) Date: Tue, 26 Feb 2002 20:52:27 +0100 Subject: [mapserver-users] x Message-ID: <003701c1beff$1ea8c740$02ffa8c0@mikee> test From pkishor at GeoAnalytics.com Tue Feb 26 12:20:45 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 26 Feb 2002 14:20:45 -0600 Subject: [mapserver-users] Example of Cold Fusion.... Message-ID: > I am new to using mapserver; however, experienced in cold > fusion and was > wondering if anyone could send me an example exactly how you > can integrate > this tool with cold fusion? can't really, in the mapscript kind-of way, at least not yet. However, you can do something like this... works quite well. #cfhttp.FileContent# hth. pk/ From vieglais at ku.edu Tue Feb 26 15:54:53 2002 From: vieglais at ku.edu (Dave Vieglais) Date: Tue, 26 Feb 2002 17:54:53 -0600 Subject: [mapserver-users] Simple WMS client script update In-Reply-To: <000c01c1bee5$b46b3e80$2b69fea9@DV2> Message-ID: <000601c1bf20$fcffb640$15c9ed81@DV2> For the one or two of you that might be interested, the simple WMS client reported earlier now supports rudimentary feature query. For example, go to http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?JavaScriptMapServer and CTRL+SHIFT+CLICK on a country (in the map on top) to retrieve some basic unformatted text in a pop-up window. Cheers, Dave V. From ashleyjoyce at hotmail.com Tue Feb 26 16:34:20 2002 From: ashleyjoyce at hotmail.com (Ashley Joyce) Date: Wed, 27 Feb 2002 11:34:20 +1100 Subject: [mapserver-users] Problem running demo References: <000501c1bef4$2b615020$6501a8c0@janderson> Message-ID: I'm trying to run the demo included with the installation. After submittting the demo_init.html form I get the following error message. msLoadMap() : Unable to access file /usr/local/apache/htdocs/mapserver-demos/itasca/demo.map My path to htdocs resides in another directory on my system. How do you configure the direction location in mapserv. I've already added the complete paths to my dem_init.html form.... however it seems to ignore these paths. Is the path definition configured within the mapserv cgi file. If so how do you reconfig the htdocs path. Kind Regards, Ashley Joyce From ashleyjoyce at hotmail.com Tue Feb 26 17:41:08 2002 From: ashleyjoyce at hotmail.com (Ashley Joyce) Date: Wed, 27 Feb 2002 12:41:08 +1100 Subject: [mapserver-users] Problem with Demo Message-ID: Please ignore my last email as I have sort the problem out, however, I am now getting this error when running demo_init.html error msLoadMap(): General error message. Undefined symbol "symbols/ctyhwy.gif" in class 0 of layer ctyrdln3_anno. This probably relates to the new version not having support for gif files. Can I change each gif image to say jpg in the demo.map file as I don't want to comment out all the symbols in the demo. Can someone give me some advice on setting up the demo to use with jpeg images for symbols??? Kind Regards, Ashley Joyce -------------- next part -------------- An HTML attachment was scrubbed... URL: From bertha_bonita at yahoo.com Tue Feb 26 18:20:51 2002 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Wed, 27 Feb 2002 03:20:51 +0100 (CET) Subject: [mapserver-users] problem with projection Message-ID: <20020227022051.21946.qmail@web14102.mail.yahoo.com> hi list i compiled mapserv 3.5 with proj-4.4.5. i want to run the file demo.map so, we have: PROJECTION "proj=utm" "ellps=GRS80" "zone=15" "north" "no_defs" # OR: # # "init=epsg:26915" END but i dont know why appear this error MapServer MessageloadProjection(): Projection library error. Projection support is not available. when i compiled MapServer ./configure --with-proj=My_path_proj-4.4.5 dont send me any errors somebody can say me what did wrong? ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- LCC.Bertha A. Serrato bserrato at cicese.mx Laboratorio de Percepci?n Remota y S.I.G. CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger Comunicaci?n instant?nea gratis con tu gente. http://messenger.yahoo.es From ychen at yorktel.com Tue Feb 26 19:02:15 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Tue, 26 Feb 2002 22:02:15 -0500 Subject: [mapserver-users] Problem running demo Message-ID: <05D31DD35285D4488610D8C0C08F5962090B9C@ytcmail.yorktel.com> What kind of system are you on? If you're on a Linux or Unix use vi or emacs or any file editor program to edit your demo_init file. Somewhere around the 12th line it has a value with the full path to the map file. Just modify the path. If you're not familiar with html file format, tags, be careful with the syntax. If you're on Windows then use notepad to modify the demo_init file. Also, if you haven't done so the map file itself might need some modifications. If you run into problems just post the symptom here and you'll get help. Yu-Hsin -----Original Message----- From: Ashley Joyce Sent: Tue 2/26/2002 7:34 PM To: mapserver-users at lists.gis.umn.edu Cc: Subject: [mapserver-users] Problem running demo I'm trying to run the demo included with the installation. After submittting the demo_init.html form I get the following error message. msLoadMap() : Unable to access file /usr/local/apache/htdocs/mapserver-demos/itasca/demo.map My path to htdocs resides in another directory on my system. How do you configure the direction location in mapserv. I've already added the complete paths to my dem_init.html form.... however it seems to ignore these paths. Is the path definition configured within the mapserv cgi file. If so how do you reconfig the htdocs path. Kind Regards, Ashley Joyce -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3115 bytes Desc: not available URL: From lyndon.zimmermann at adelaide.edu.au Tue Feb 26 19:59:27 2002 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Wed, 27 Feb 2002 14:29:27 +1030 Subject: [mapserver-users] Sequence of layers References: <000601c1bf20$fcffb640$15c9ed81@DV2> Message-ID: <3C7C599F.FA1057E5@adelaide.edu.au> Greetings all, We're running straight Mapserver for the Bioenergy Atlas for Australia and one of the limitations I see is the inability (I presume I'm right here) to control the sequence of presentation of layers, aside from the mapfile. Aside from multiple .map files, what options exist for altering this sequence? Ditto theme colours and hash. Regards, Lyndon Z -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) LOW RAINFALL AGROFORESTRY RESEARCH UNIT Affiliated with the CRC for Plant Based Management of Dryland Salinity University of Adelaide Department of Agronomy and Farming Systems Physical address: Hannaford Building (via Gate 3) Waite Campus, South Australia Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au Bionergy Atlas Website: http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html Unless otherwise stated, the content of this message and attachments may be forwarded or quoted, with due acknowledgement. No representation is made that this email is free of viruses. Virus scanning is recommended and is the responsibility of the recipient. From david.armstrong at ntlworld.com Wed Feb 27 01:33:41 2002 From: david.armstrong at ntlworld.com (David Armstrong) Date: Wed, 27 Feb 2002 09:33:41 -0000 Subject: [mapserver-users] highlight of query ? using php Message-ID: <006301c1bf71$d83b7730$727ba8c0@davidpc> I am trying to query then highlight the given object using php under windows, but i just cannot get the highlight to work ! . below is the snipp of code thats's bugging me ! the application can be seen here Based on DM Solutions Excellent Demo GMAP75 http://trackitdirect.com/track4/track4.php my logic is as follows I have a map-file with 2 layers. The first is the 'park' layer with status as ON, and the other is 'parklight' with status set to OFF. From a database-query using PHP the row of the object is found. Zooming into the extents of the found shape works fine. Maybe the logic of creating the highlight should be something like: 1) Create new MapObject 2) Find index of shape (works fine here, no problem) 3) Copy that shape to a new ShapeFileObject ( i think this is where i screwd up ! ) 4) Add this ShapeFileObject to an empty/dummy layer ( here also ) 5) Change status of that dummy layer to ON 6) Show new created map Like the option QueryPoint there does not seem to be an option/function to show the object in highlight using only it's index.( would be nice to have i think ) ( or at least i can't find one ) here's the offending code ! $TESTMap = ms_newMapObj("track4.map"); $TESTshapeFileObj = ms_newShapeFileObj($ShapefileName, -1 ); // Show the queried object, by turning ON a dummy layer: // Default layername for this is --> layer + 'Query' --> eg. parkQuery //$QueryLayerName = $qlayer . 'Query'; //$poLayer = $TESTMap->getlayerbyname($QueryLayerName); // Create shape object. $oShape = ms_newShapeObj(-1); // Retrieve shape into shape object. $oShape = $TESTshapeFileObj->getShape($value -1); // Add shape $TESTshapeFileObj->addShape($oShape); //$poLayer = $TESTMap->GetLayer($qlayer); //$oRes = $poLayer->getResult(1); //$oShape = $poLayer->getShape($oRes->tileindex,$oRes->shapeindex); $poLayer->set("status", 1); //$poLayer = $map->getLayerByName('park'); # Turn it on. //$sellayer->{status} = $mapscript::MS_ON; $poLayer->set("status", 1); # # Set the data path to the new shapefile. $poLayer->data = "C:\\phpdev\\www\\aweb\\track4\\data\\park"; // Draw the queried object $imgXX = $TESTMap->drawQuery(); $urlXX = $imgXX->saveWebImage($imgXX, 0, 0, -1); echo"width HEIGTH=$QueryMap->height>\n"; //end of code From letourne at mercator.ens.fr Wed Feb 27 02:04:16 2002 From: letourne at mercator.ens.fr (Francois Michel Le Tourneau) Date: Wed, 27 Feb 2002 11:04:16 +0100 (MET) Subject: [mapserver-users] diff between shp2img and mapserv Message-ID: Hi ! I have made a few experiments and confirmed that shp2img does what I want whereas mapserv does not... Have nayone experienced that and could anyone give me some hints to know what i should look after in order to understand the problem ??? Thanks in advance FMLT *********************************************************************** Francois-Michel Le Tourneau Charg? de Recherches au CNRS Centre de Recherche et de Documentation sur l'Am?rique Latine (UMR 7530) Tel. 01 44 39 86 85 Fax. 01 45 48 79 58 E-mail : Francois.Michel.Le.Tourneau at ens.fr *********************************************************************** From DebasishS at riskinc.com Wed Feb 27 03:44:40 2002 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Wed, 27 Feb 2002 17:14:40 +0530 Subject: [mapserver-users] diff between shp2img and mapserv Message-ID: Could you just elaborate a bit . regards Debasish Sahu. Francois Michel Le Tourneau To: mapserver-users at lists.gis.umn.edu Sent by: cc: owner-mapserver-users at lists.g Subject: [mapserver-users] diff between shp2img and mapserv is.umn.edu 02/27/02 03:34 PM Hi ! I have made a few experiments and confirmed that shp2img does what I want whereas mapserv does not... Have nayone experienced that and could anyone give me some hints to know what i should look after in order to understand the problem ??? Thanks in advance FMLT *********************************************************************** Francois-Michel Le Tourneau Charg? de Recherches au CNRS Centre de Recherche et de Documentation sur l'Am?rique Latine (UMR 7530) Tel. 01 44 39 86 85 Fax. 01 45 48 79 58 E-mail : Francois.Michel.Le.Tourneau at ens.fr *********************************************************************** From letourne at mercator.ens.fr Wed Feb 27 04:29:51 2002 From: letourne at mercator.ens.fr (Francois Michel Le Tourneau) Date: Wed, 27 Feb 2002 13:29:51 +0100 (MET) Subject: [mapserver-users] diff between mapserv and shp2img Message-ID: Here is a complete description of the bug : mapserver 3.5 (with proj and gdal) linux redhat 7 I have a map file pointing to several layers (vector and raster). Mpaserv only accepts to display one of the layers (which is a world map). The two others (local maps with the same characteristics as the larger one) are not rendered, either with the large one, either alone (with the same EXTENT, i.E. a zone of 2?x2?). I followed the advice of F. Wamerdam and i used shp2img in order to understand what was going on. To my surprise the image produced was exactly the result i was looking for... So I am trying to understand why mapserv does not understand my mapfile whereas shp2img does. Needless to say, the logs of mapserv do not report anything. Besides, it does not seem to be a problem of path since mapserv does not report missing files. Thanks for any help FMLT *********************************************************************** Francois-Michel Le Tourneau Charg? de Recherches au CNRS Centre de Recherche et de Documentation sur l'Am?rique Latine (UMR 7530) Tel. 01 44 39 86 85 Fax. 01 45 48 79 58 E-mail : Francois.Michel.Le.Tourneau at ens.fr *********************************************************************** From ychen at yorktel.com Wed Feb 27 05:06:29 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Wed, 27 Feb 2002 08:06:29 -0500 Subject: [mapserver-users] Problem with Demo Message-ID: <05D31DD35285D4488610D8C0C08F5962090B9E@ytcmail.yorktel.com> To the rescue there is a conversion program - gif2png. You can download the source tar file (for UNIX compilation) or RPM (for Linux with RPM) from http://tuxedo.org/~esr/gif2png/index.html. Yu-Hsin -----Original Message----- From: Ashley Joyce [mailto:ashleyjoyce at hotmail.com] Sent: Tuesday, February 26, 2002 8:41 PM To: MAPSERVER (E-mail) Subject: [mapserver-users] Problem with Demo Please ignore my last email as I have sort the problem out, however, I am now getting this error when running demo_init.html error msLoadMap(): General error message. Undefined symbol "symbols/ctyhwy.gif" in class 0 of layer ctyrdln3_anno. This probably relates to the new version not having support for gif files. Can I change each gif image to say jpg in the demo.map file as I don't want to comment out all the symbols in the demo. Can someone give me some advice on setting up the demo to use with jpeg images for symbols??? Kind Regards, Ashley Joyce -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank.koormann at intevation.de Wed Feb 27 06:03:11 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Wed, 27 Feb 2002 15:03:11 +0100 Subject: [mapserver-users] savequery and queryfile question In-Reply-To: <53273E187450D311ACF6009027927B12023388B6@smtpgate.auslig.gov.au> References: <53273E187450D311ACF6009027927B12023388B6@smtpgate.auslig.gov.au> Message-ID: <20020227140311.GB29577@intevation.de> Megan, * Watson, Megan (MeganWatson at auslig.gov.au) [020226 04:29]: > I'm wondering if someone can guide me in the right direction as to how to > use the queryfile and savequery cgi variables in Mapserver 3.5 > [...] > > Reading through the documentation it looks like I should be able to do this > using the queryfile and savequery cgi variables but am not sure how they > work. I've managed to set these variables to save the query and can see the > .qy file it creates but not sure what to do with it after that. > The itasca demo gives you an example of using query files. have a look in the demo_footer.html. The second image demonstrates the use of a query file. Note that the build of the file name (queryfile=[map_web_imagepath]DEMO[id].qy) can be shortend by queryfile=[queryfile] Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From morissette at dmsolutions.ca Wed Feb 27 06:07:05 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 27 Feb 2002 09:07:05 -0500 Subject: [mapserver-users] Sequence of layers References: <000601c1bf20$fcffb640$15c9ed81@DV2> <3C7C599F.FA1057E5@adelaide.edu.au> Message-ID: <3C7CE809.CDF84522@dmsolutions.ca> Lyndon Zimmermann wrote: > > We're running straight Mapserver for the Bioenergy Atlas for Australia > and one of the limitations I see is the inability (I presume I'm right > here) to control the sequence of presentation of layers, aside from the > mapfile. Aside from multiple .map files, what options exist for > altering this sequence? > The ability to control layer order has been added recently (in CVS) to the WMS interface and is also available in MapScript (in PHP at least). However this isn't available via the mapserv CGI yet. Perhaps you could file an 'enhancement' bug in bugzilla about this. -- ------------------------------------------------------------ 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 rburghol at vt.edu Wed Feb 27 06:29:57 2002 From: rburghol at vt.edu (Robert W. Burgholzer) Date: Wed, 27 Feb 2002 09:29:57 -0500 Subject: [mapserver-users] Problem with Demo Message-ID: <3C7EB2F0@zathras> >This probably relates to the new version not having support for gif files. I have dealt with this by converting some of the demo images and setup files to png format. The following URL contains a tar file which if unpacked in the map server demo directory will overwrite demo.map (so save a copy if you have made substantive changes) and place the new graphic files in the appropriate sub-directories. It is meant to funciton as a patch to the unmodified itasca demo. http://128.173.218.154/gis/utilities/nogif.tar.gz good luck, rob Robert W. Burgholzer rburghol at vt.edu http://www.soulswimmer.net/ From rburghol at vt.edu Wed Feb 27 06:36:27 2002 From: rburghol at vt.edu (Robert W. Burgholzer) Date: Wed, 27 Feb 2002 09:36:27 -0500 Subject: [mapserver-users] diff between shp2img and mapserv Message-ID: <3C7ECB1C@zathras> If you are using the stock "demo_init.html" format for your maps, there needs to be a seperate entry for each layer in this form. Look at the original file "demo_init.html" and it will be clear. Robert W. Burgholzer rburghol at vt.edu http://www.soulswimmer.net/ From lfilak at medinaco.org Wed Feb 27 07:13:12 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 27 Feb 2002 10:13:12 -0500 Subject: [mapserver-users] Sequence of layers Message-ID: <200202271506.g1RF67M02293@yogi.medinaco.net> Being that a mapfile is just text, couldn't you dynamically create a map file with the layers you want in the order you want them and use that map file as the basis for a $map=new mapObj('temp_name.map'); call? Lowell F. The following message was sent by Lyndon Zimmermann on Wed, 27 Feb 2002 14:29:27 +1030. > Greetings all, > > We're running straight Mapserver for the Bioenergy Atlas for Australia > and one of the limitations I see is the inability (I presume I'm right > here) to control the sequence of presentation of layers, aside from the > mapfile. Aside from multiple .map files, what options exist for > altering this sequence? > > Ditto theme colours and hash. > > Regards, > > Lyndon Z > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > LOW RAINFALL AGROFORESTRY RESEARCH UNIT > Affiliated with the CRC for Plant Based Management of Dryland Salinity > > University of Adelaide Department of Agronomy and Farming Systems > Physical address: Hannaford Building (via Gate 3) Waite Campus, South > Australia > Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia > Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 > Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au > > Bionergy Atlas Website: > http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html > > Unless otherwise stated, the content of this message and attachments may > be forwarded or quoted, with due acknowledgement. No representation is > made that this email is free of viruses. Virus scanning is recommended > and is the responsibility of the recipient. From lfilak at medinaco.org Wed Feb 27 08:51:56 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 27 Feb 2002 11:51:56 -0500 Subject: [mapserver-users] Sequence of layers Message-ID: <200202271644.g1RGipM04206@yogi.medinaco.net> Alternate solution:? http://mapserver.gis.umn.edu/wilma/mapserver-users/0102/msg00010.html Lowell F. The following message was sent by Lyndon Zimmermann on Wed, 27 Feb 2002 14:29:27 +1030. > Greetings all, > > We're running straight Mapserver for the Bioenergy Atlas for Australia > and one of the limitations I see is the inability (I presume I'm right > here) to control the sequence of presentation of layers, aside from the > mapfile. Aside from multiple .map files, what options exist for > altering this sequence? > > Ditto theme colours and hash. > > Regards, > > Lyndon Z > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > LOW RAINFALL AGROFORESTRY RESEARCH UNIT > Affiliated with the CRC for Plant Based Management of Dryland Salinity > > University of Adelaide Department of Agronomy and Farming Systems > Physical address: Hannaford Building (via Gate 3) Waite Campus, South > Australia > Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia > Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 > Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au > > Bionergy Atlas Website: > http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html > > Unless otherwise stated, the content of this message and attachments may > be forwarded or quoted, with due acknowledgement. No representation is > made that this email is free of viruses. Virus scanning is recommended > and is the responsibility of the recipient. From pkishor at GeoAnalytics.com Wed Feb 27 08:50:51 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Feb 2002 10:50:51 -0600 Subject: [mapserver-users] PROJ.4 compile errors Message-ID: Frank, others, yesterday I tried to compile PROJ.4 on my MacOS X iBook using gcc... I was not successful. I am reproducing the few lines of seemingly error messages from the terminal buffer... any guidance would be much appreciated. tia. pk ====================== nad2bin.c nad2bin.c: In function `main': nad2bin.c:13: warning: return type of `main' is not `int' /bin/sh ../libtool --mode=link cc -g -O2 -o nad2bin nad2bin.o libproj.la -lm cc -g -O2 -o nad2bin nad2bin.o .libs/libproj.a -lm -lm cc -DHAVE_CONFIG_H -I. -I. -I. -DPROJ_LIB=\"/usr/local/share/proj\" -g -O2 -c geod.c /usr/include/ctype.h:128: syntax error, found `.' /usr/include/ctype.h:128: illegal function definition, found `)' /usr/include/ctype.h:130: illegal method selector, found `1' /usr/include/ctype.h:131: illegal method definition, missing `{' after `)' /usr/include/ctype.h:135: syntax error, found `.' /usr/include/ctype.h:135: illegal function definition, found `)' /usr/include/ctype.h:137: illegal method selector, found `1' /usr/include/ctype.h:138: illegal method definition, missing `{' after `)' cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode In file included from geod.c:9: /usr/include/ctype.h:128: parse error before `.' /usr/include/ctype.h: In function `__istype': /usr/include/ctype.h:130: `c' undeclared (first use in this function) /usr/include/ctype.h:130: (Each undeclared identifier is reported only once /usr/include/ctype.h:130: for each function it appears in.) /usr/include/ctype.h: At top level: /usr/include/ctype.h:135: parse error before `.' /usr/include/ctype.h: In function `__isctype': /usr/include/ctype.h:137: `c' undeclared (first use in this function) geod.c: In function `main': geod.c:133: warning: return type of `main' is not `int' make[1]: *** [geod.o] Error 1 make: *** [all-recursive] Error 1 From pkishor at GeoAnalytics.com Wed Feb 27 08:51:58 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Feb 2002 10:51:58 -0600 Subject: [mapserver-users] GDAL compile errors Message-ID: Frank, others, yesterday I tried to compile GDAL on my MacOS X iBook using gcc... I was not successful. I am reproducing the few lines of seemingly error messages from the terminal buffer... any guidance would be much appreciated. tia. pk ====================== ranlib ./gdal.a ranlib: file: ./gdal.a(pnggccrd.o) has no symbols ranlib: file: ./gdal.a(pngvcrd.o) has no symbols ranlib: file: ./gdal.a(tif_pixarlog.o) has no symbols ranlib: file: ./gdal.a(cpl_vsil_unix_stdio_64.o) has no symbols cc -dynamiclib ./frmts/o/*.o ./core/*.o ./port/*.o ./alg/*.o ./ogr/ogrct.o ./ogr/ogr_opt.o ./ogr/ogr_fromepsg.o ./ogr/ogrutils.o ./ogr/ogr_srs_proj4.o ./ogr/ogrsf_frmts/generic/ogrregisterall.o ./ogr/ogrfeaturestyle.o ./ogr/ogrsf_frmts/ogrsf_frmts.a ./gdal.a ./ogr/ogr.a ./gdal.a ./port/cpl.a -lz -lm -L/usr/local/lib -lm -o ./libgdal.1.1.dylib ld: common symbols not allowed with MH_DYLIB output format ./ogr/ogr.a(swq.o) definition of common _swq_error (size 1024) /usr/bin/libtool: internal link edit command failed make: *** [force-lib] Error 1 From pkishor at GeoAnalytics.com Wed Feb 27 08:53:50 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Feb 2002 10:53:50 -0600 Subject: [mapserver-users] Re: Map File in XML Format Message-ID: Steve, others, yesterday I tried to compile Perl/Mapscript on my MacOS X iBook using gcc... I was not successful. After producing the message shown below, the compiler just hung... for what seemed forever. I would have to kill it. Any guidance would be much appreciated. tia. pk ====================== [localhost:mapserver_3.5/mapscript/perl] pkishor% make cp mapscript.pm blib/lib/mapscript.pm cc -c -I/Users/pkishor/Projects/mapserver/mapserver_3.5 -I/usr/local/include -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -I/System/Library/Perl/darwin/CORE -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT mapscript_wrap.c From pkishor at GeoAnalytics.com Wed Feb 27 08:54:48 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Feb 2002 10:54:48 -0600 Subject: [mapserver-users] Perl/Mapscript compile hangs (was wrong subject in earlier email. .. sorry) Message-ID: Steve, others, yesterday I tried to compile Perl/Mapscript on my MacOS X iBook using gcc... I was not successful. After producing the message shown below, the compiler just hung... for what seemed forever. I would have to kill it. Any guidance would be much appreciated. tia. pk ====================== [localhost:mapserver_3.5/mapscript/perl] pkishor% make cp mapscript.pm blib/lib/mapscript.pm cc -c -I/Users/pkishor/Projects/mapserver/mapserver_3.5 -I/usr/local/include -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -I/System/Library/Perl/darwin/CORE -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT mapscript_wrap.c From pkishor at GeoAnalytics.com Wed Feb 27 09:01:16 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Feb 2002 11:01:16 -0600 Subject: [mapserver-users] Mapserver binary for MacOS X Message-ID: I successfully compiled a basic build of Mapserver 3.5 on MacOS X 10.1.3. It has png, jpeg, bmp, ttf support... I tested the binary on my daughter's iMac which has no dev tools or other libraries, and Mapserver works just fine... hums along. That means, I can give out the binary without having to have the user worry about gd or libpng, etc. If anyone is interested, please email me and I will mail you the file. It is about 650 kb. In any case, I would be very interested in knowing the count of MacOS X users on the Mapserver list. I am trying to build a more comprehensive version with the kitchen sink in it (gdal, proj, postgis, etc.). Once I am successful I will build an install package using PackageMaker. That way the end-user will be able to double-click install the binary, any needed dependencies, as well as the itasca demo in the correct places (assuming the standard OS X layout). pk/ From steve.lime at dnr.state.mn.us Wed Feb 27 09:19:50 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 27 Feb 2002 11:19:50 -0600 Subject: [mapserver-users] diff between shp2img and mapserv Message-ID: The biggest difference between the programs is in how layer STATUS is interpreted. Shp2img takes what's in the mapfile at face value. That is, if the STATUS is ON/DEFAULT the layer is drawn, if OFF it is not. Mapserv by default assumes a layer is OFF unless explicitly requested by the user (DEFAULT layers are always on). Shp2img also ignores anything in the WEB section. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Francois Michel Le Tourneau 02/27/02 04:04AM >>> Hi ! I have made a few experiments and confirmed that shp2img does what I want whereas mapserv does not... Have nayone experienced that and could anyone give me some hints to know what i should look after in order to understand the problem ??? Thanks in advance FMLT *********************************************************************** Francois-Michel Le Tourneau Charg? de Recherches au CNRS Centre de Recherche et de Documentation sur l'Am?rique Latine (UMR 7530) Tel. 01 44 39 86 85 Fax. 01 45 48 79 58 E-mail : Francois.Michel.Le.Tourneau at ens.fr *********************************************************************** From pkishor at GeoAnalytics.com Wed Feb 27 09:32:03 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Feb 2002 11:32:03 -0600 Subject: [mapserver-users] Example of Cold Fusion.... Message-ID: Jessica, > Could you explain to me really what the usage of using cold > fusion with > mapserver? Is it so that we can intergrate database from > databases to the > map files? I would really appreciate your input. > I guess I am not sure what you are asking? If you want to know what the advantage of using CF with Mapserver would be as opposed to some other solution... well, then I would have to do some CF proselytizing here... this is not the forum for that. That said, CF allows you to build web applications as well as provide easy database connectivity. For example, if you wanted to build an application where your users would log on, be authenticated, then be able to retrieve and save their preferences as they create custom maps using Mapserver and getting attribute data to display from your database-du-jour... well, you could use CF to do that. If CF integrated with Mapserver seamlessly, then that would be even better, howver, that is not possible as of yet. In the meantime you could use the CFHTTP method I wrote below to accomplish the map-drawing part. If, for some reason, you didn't want to use or couldn't use CF, PHP or Perl would be your other options within the limitations they impose. In short... CF is to Mapserver as PHP or Perl is to Mapserver. Hth. Please let me know if you need further clarification, and I would be happy to help. Also, pl. reply directly to the forum so others might benefit from the discussion. Thanks, pk'/ > > -----Original Message----- > From: Puneet Kishor [mailto:pkishor at geoanalytics.com] > Sent: Tuesday, February 26, 2002 12:21 PM > To: 'janderson at PacificDataServices.com'; > mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Example of Cold Fusion.... > > > > I am new to using mapserver; however, experienced in cold > > fusion and was > > wondering if anyone could send me an example exactly how you > > can integrate > > this tool with cold fusion? > > > can't really, in the mapscript kind-of way, at least not yet. > However, you > can do something like this... works quite well. > > > > > > > > > > > url="http://server/cgi-bin/mapserv.exe?map=#map#&layer=#layer# > &zoomsize=#zoo > msize#&mode=#mode#&zoomdir=#zoomdir#&mapext=shapes" > method="get" > resolveurl="true"> > > > > > #cfhttp.FileContent# > > > > > > > hth. > > pk/ > From steve.lime at dnr.state.mn.us Wed Feb 27 10:40:32 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 27 Feb 2002 12:40:32 -0600 Subject: [mapserver-users] Sequence of layers Message-ID: That's one way. There is a mechanism in the mapserver structures for doing this but I don't think it's been exposed through any of the scripting languages. I'll let the folks at DMSolutions expand on that if they care to. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Lowell Filak" 02/27/02 10:51AM >>> Alternate solution:? http://mapserver.gis.umn.edu/wilma/mapserver-users/0102/msg00010.html Lowell F. The following message was sent by Lyndon Zimmermann on Wed, 27 Feb 2002 14:29:27 +1030. > Greetings all, > > We're running straight Mapserver for the Bioenergy Atlas for Australia > and one of the limitations I see is the inability (I presume I'm right > here) to control the sequence of presentation of layers, aside from the > mapfile. Aside from multiple .map files, what options exist for > altering this sequence? > > Ditto theme colours and hash. > > Regards, > > Lyndon Z > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > LOW RAINFALL AGROFORESTRY RESEARCH UNIT > Affiliated with the CRC for Plant Based Management of Dryland Salinity > > University of Adelaide Department of Agronomy and Farming Systems > Physical address: Hannaford Building (via Gate 3) Waite Campus, South > Australia > Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia > Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 > Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au > > Bionergy Atlas Website: > http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html > > Unless otherwise stated, the content of this message and attachments may > be forwarded or quoted, with due acknowledgement. No representation is > made that this email is free of viruses. Virus scanning is recommended > and is the responsibility of the recipient. From assefa at dmsolutions.ca Wed Feb 27 11:06:36 2002 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Wed, 27 Feb 2002 14:06:36 -0500 Subject: [mapserver-users] Sequence of layers References: Message-ID: <3C7D2E3C.E3A4BDB7@dmsolutions.ca> Hi there, There has been an addition recently to php/mapscript of two sets of functions relative to layer's sequence : (these functions applies on the map object) - boolean setlayersdrawingorder(array layeryindex) Set the layer's order array. The argument passed must be a valid array with all the layer's index. Return TRUE on success or else FALSE. - array getlayersdrawingorder() Return an array containing layer's index in the order which they are drawn. and boolean moveLayerUp(int layerindex) Move layer up in the hierarcy of drawing. boolean moveLayerDown(int layerindex) Move layer down in the hierarcy of drawing. The idea is to change the layer's order when the map is drawn or saved. Later, Steve Lime wrote: > That's one way. There is a mechanism in the mapserver structures for > doing this but I don't > think it's been exposed through any of the scripting languages. I'll > let the folks at DMSolutions > expand on that if they care to. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Lowell Filak" 02/27/02 10:51AM >>> > Alternate solution:? > http://mapserver.gis.umn.edu/wilma/mapserver-users/0102/msg00010.html > Lowell F. > > The following message was sent by Lyndon Zimmermann > on Wed, 27 Feb 2002 14:29:27 > +1030. > > > Greetings all, > > > > We're running straight Mapserver for the Bioenergy Atlas for > Australia > > and one of the limitations I see is the inability (I presume I'm > right > > here) to control the sequence of presentation of layers, aside from > the > > mapfile. Aside from multiple .map files, what options exist for > > altering this sequence? > > > > Ditto theme colours and hash. > > > > Regards, > > > > Lyndon Z > > -- > > Lyndon Zimmermann > > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > > > LOW RAINFALL AGROFORESTRY RESEARCH UNIT > > Affiliated with the CRC for Plant Based Management of Dryland > Salinity > > > > University of Adelaide Department of Agronomy and Farming Systems > > Physical address: Hannaford Building (via Gate 3) Waite Campus, > South > > Australia > > Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia > > Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 > > Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au > > > > Bionergy Atlas Website: > > > http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html > > > > > Unless otherwise stated, the content of this message and attachments > may > > be forwarded or quoted, with due acknowledgement. No representation > is > > made that this email is free of viruses. Virus scanning is > recommended > > and is the responsibility of the recipient. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- From lfilak at medinaco.org Wed Feb 27 11:29:03 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 27 Feb 2002 14:29:03 -0500 Subject: [mapserver-users] Sequence of layers Message-ID: <200202271921.g1RJLvM06352@yogi.medinaco.net> And for Perl? The following message was sent by Assefa Yewondwossen on Wed, 27 Feb 2002 14:06:36 -0500. > Hi there, > > There has been an addition recently to php/mapscript of two sets of functions > relative to layer's sequence : (these functions applies on the map object) > > - boolean setlayersdrawingorder(array layeryindex) > Set the layer's order array. The argument passed must be a valid array > with all the layer's index. > Return TRUE on success or else FALSE. > > - array getlayersdrawingorder() > Return an array containing layer's index in the order which they are > drawn. > > and > > boolean moveLayerUp(int layerindex) > Move layer up in the hierarcy of drawing. > > boolean moveLayerDown(int layerindex) > Move layer down in the hierarcy of drawing. > > > The idea is to change the layer's order when the map is drawn or saved. > > Later, > > Steve Lime wrote: > > > That's one way. There is a mechanism in the mapserver structures for > > doing this but I don't > > think it's been exposed through any of the scripting languages. I'll > > let the folks at DMSolutions > > expand on that if they care to. > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> "Lowell Filak" 02/27/02 10:51AM >>> > > Alternate solution:? > > http://mapserver.gis.umn.edu/wilma/mapserver-users/0102/msg00010.html > > Lowell F. > > > > The following message was sent by Lyndon Zimmermann > > on Wed, 27 Feb 2002 14:29:27 > > +1030. > > > > > Greetings all, > > > > > > We're running straight Mapserver for the Bioenergy Atlas for > > Australia > > > and one of the limitations I see is the inability (I presume I'm > > right > > > here) to control the sequence of presentation of layers, aside from > > the > > > mapfile. Aside from multiple .map files, what options exist for > > > altering this sequence? > > > > > > Ditto theme colours and hash. > > > > > > Regards, > > > > > > Lyndon Z > > > -- > > > Lyndon Zimmermann > > > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > > > > > LOW RAINFALL AGROFORESTRY RESEARCH UNIT > > > Affiliated with the CRC for Plant Based Management of Dryland > > Salinity > > > > > > University of Adelaide Department of Agronomy and Farming Systems > > > Physical address: Hannaford Building (via Gate 3) Waite Campus, > > South > > > Australia > > > Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia > > > Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 > > > Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au > > > > > > Bionergy Atlas Website: > > > > > http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html > > > > > > > > Unless otherwise stated, the content of this message and attachments > > may > > > be forwarded or quoted, with due acknowledgement. No representation > > is > > > made that this email is free of viruses. Virus scanning is > > recommended > > > and is the responsibility of the recipient. > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 > Fax: (613) 565-0925 > ---------------------------------------------------------------- > From michel at omnisystem.com.br Wed Feb 27 11:32:15 2002 From: michel at omnisystem.com.br (Michel M. dos Santos) Date: Wed, 27 Feb 2002 16:32:15 -0300 Subject: [mapserver-users] ShapefileObj without write in file Message-ID: <02022716321502.03188@cartman.omni> Hello all, 2 questions : a) Is it possible to create with mapscript/php a new object ShapefileObj without write any file in disk ? b) I want to show one or more points in my map, is possible to do it without a layer with these points ? thanks, -- []'s Michel M. dos Santos From steve.lime at dnr.state.mn.us Wed Feb 27 10:52:43 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 27 Feb 2002 12:52:43 -0600 Subject: [mapserver-users] Problem with Demo Message-ID: If I get a chance tonite I'll dump a new version of the demo out of CVS (which has the pdf files included). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Robert W. Burgholzer" 02/27/02 08:29AM >>> >This probably relates to the new version not having support for gif files. I have dealt with this by converting some of the demo images and setup files to png format. The following URL contains a tar file which if unpacked in the map server demo directory will overwrite demo.map (so save a copy if you have made substantive changes) and place the new graphic files in the appropriate sub-directories. It is meant to funciton as a patch to the unmodified itasca demo. http://128.173.218.154/gis/utilities/nogif.tar.gz good luck, rob Robert W. Burgholzer rburghol at vt.edu http://www.soulswimmer.net/ From steve.lime at dnr.state.mn.us Wed Feb 27 11:04:46 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 27 Feb 2002 13:04:46 -0600 Subject: [mapserver-users] esri-sde & mapserver 3.5 ??? Message-ID: See attached mapfile. This is also online at: http://www.dnr.state.mn.us/cgi-bin/mapserv_sde?map=/export/stlime/public_html/sde/test.map Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "mikee" 02/26/02 01:33PM >>> please help me, who can me tell, how i can work with esri-sde and mapserver 3.5? give me please an example-map-file. ---> mfg mikeE. :-) ---> mail: mike at mikee.de ---> @web: http://www.mikee.de ---> @wap: http://www.mikee.de/wap (dinge, die die welt nicht braucht!) ---> icq: 129278959 ---> siehe auch: ---> www.hallelinks.de ---> www.rettet-die-berliner-bruecke.de ---> www.buergerforum-halle.de ---> www.ohnesocken.de ---> www.elstermanns.de ---> www.tonart-halle.de -------------- next part -------------- A non-text attachment was scrubbed... Name: test_sde.map Type: application/octet-stream Size: 2657 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Wed Feb 27 14:26:30 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 27 Feb 2002 16:26:30 -0600 Subject: [mapserver-users] ShapefileObj without write in file Message-ID: You don't have to use a shapefile. You can use inline features, I think there's an addFeature method for layers. Or you can draw them directly using the shapeObj/pointObj draw method. Either way you don't write anything to disk. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Michel M. dos Santos" 02/27/02 01:32PM >>> Hello all, 2 questions : a) Is it possible to create with mapscript/php a new object ShapefileObj without write any file in disk ? b) I want to show one or more points in my map, is possible to do it without a layer with these points ? thanks, -- []'s Michel M. dos Santos From ashleyjoyce at hotmail.com Wed Feb 27 15:23:21 2002 From: ashleyjoyce at hotmail.com (Ashley Joyce) Date: Thu, 28 Feb 2002 10:23:21 +1100 Subject: [mapserver-users] Tigerline Message-ID: I have the mapserver demo version working properly and would like to use data from the tigerline site for the USA. I will start with one state at a time.... its heavy on space at around 3 -4 Gig. Can anyone give me some advice on where to get some help or point to some documentation for structuring the data files so it will work with mapserver.... I'm still new to this product and haven't quite got my head around all of it yet. I'm not very familiar with the GIS structure. I'm running on a linux machine with apache. Thanks, Ashley Joyce -------------- next part -------------- An HTML attachment was scrubbed... URL: From Antti.Roppola at brs.gov.au Wed Feb 27 15:44:01 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Thu, 28 Feb 2002 10:44:01 +1100 Subject: [mapserver-users] Sequence of layers Message-ID: <595FE28AB1EBD111920F0060B06B3DD70730C69C@ACTMAIL2> Another option would be to keep .map file fragments of each layer and use CGI to assemble a map file in the desired order. I was going to do this, but Mapscript was a much neater way of doing it. :o) Antti -----Original Message----- The following message was sent by Lyndon Zimmermann on Wed, 27 Feb 2002 14:29:27 +1030. > Greetings all, > > We're running straight Mapserver for the Bioenergy Atlas for Australia > and one of the limitations I see is the inability (I presume I'm right > here) to control the sequence of presentation of layers, aside from the > mapfile. Aside from multiple .map files, what options exist for > altering this sequence? > > Ditto theme colours and hash. > > Regards, > > Lyndon Z From woodbri at swoodbridge.com Wed Feb 27 17:56:10 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 27 Feb 2002 20:56:10 -0500 Subject: [mapserver-users] Tigerline References: Message-ID: <3C7D8E3A.1F64CCB0@swoodbridge.com> Ashley, Structure your data like this: /mapdata/tiger2k/{SS}/{SS}{CCC}/{files} where {SS} is the state fips code {CCC} is the fips county code {files} are all the files for that state+county I would also put boundary files that are larger than a county and other datasets that cover the whole US in something like: /mapdata/us /mapdata/canada /mapdata/mexico /mapdata/oceans etc then create a tileindex for all the files under tiger2k and create shptree indexes for the tileindex and the files in the other directories. That should get you up and running! You can see my version running with only the eastern half the US loaded at http://swoodbridge.com/web2/nmap it is using 9 GIGS -Steve W. > Ashley Joyce wrote: > > I have the mapserver demo version working properly and would like to > use data from the tigerline site for the USA. I will start with one > state at a time.... its heavy on space at around 3 -4 Gig. Can anyone > give me some advice on where to get some help or point to some > documentation for structuring the data files so it will work with > mapserver.... I'm still new to this product and haven't quite got my > head around all of it yet. I'm not very familiar with the GIS > structure. I'm running on a linux machine with apache. > > Thanks, > > Ashley Joyce From woodbri at swoodbridge.com Wed Feb 27 18:27:22 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 27 Feb 2002 21:27:22 -0500 Subject: [mapserver-users] Zooming Strangeness References: <3C6D1570.71B18BA2@swoodbridge.com> Message-ID: <3C7D958A.943576D3@swoodbridge.com> I never saw any response to this post, I am somewhat at a loss on this. Does anyone have any ideas. DM Solutions guys, Does the code in GMap that maps from pixel to map units work if I am using lat/long data instead of meters like the original app was using? Would it account for the symptoms I am seeing? Any help would be appreaciated, -Steve W. Stephen Woodbridge wrote: > > Hi all, > > I am using a modified version of GMap75 which is working great, but I > have run into a strange problem related to zooming which may or may not > be related to the GMap code. I am using > > EXTENT -180.0 -90.0 180.0 90.0 > UNITS DD > > PROJECTION > "proj=latlong" > END > > and all my data is in lat/long coordinates. > > Here are two of the symptons: > > 1) I am zoom in to +-0.013 degrees (approx. 0.75 miles over 600 pix) > with a marker in the center of the image. I zoom out using rosa and the > GMap code and my marker is still at the same lat/long, the image zooms > out but has shifted so that the marker is now center on the lower left > quarter of the image like (M => marker position): > > +--------------------+ +--------------------+ > + + + + > + + + + > + + + + > + + < before + + > + M + + + > + + + + > + + + + > + + after > + M + > + + + + > +--------------------+ +--------------------+ > > If I recenter/pan (using rosa) and clicking on the marker it moves > correctly to the center. > > 2) I am zoomed to the full extents of the map and I try to zoom in on > roughly a 4 state area using rosa and the GMap code. I get the zoom but > the rectangle that is zoomed to is positioned significantly below the > rectangle I selected. For example, I zoom in on Massachussetts and I end > up somewhere in the Carribean. Likewise, is I try to pan to the correct > location using the reference map, I have to click up in Canada to end up > in Mass. I think there is also a horizontal shift like in 1) above so > these are both probably the same problem only magnified by scale. > > Anyone have any ideas? I this an artifact that GMap75 was designed > around different assumptions regard the output projection? > > You can try it out at > > http://swoodbridge.com/cgi-bin/geo > http://swoodbridge.com/web2/nmap > > I only have Tiger data loaded for the eastern half of the US. > > Thanks for the help, > Stephen Woodbridge From brucesaunders at maximus.com Thu Feb 28 06:17:39 2002 From: brucesaunders at maximus.com (Bruce W Saunders/SDC/Systems/HSAS/MAXIMUS) Date: Thu, 28 Feb 2002 09:17:39 -0500 Subject: [mapserver-users] Tigerline Message-ID: An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Feb 28 07:43:14 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 28 Feb 2002 10:43:14 -0500 Subject: [mapserver-users] Tigerline References: Message-ID: <3C7E5012.6B43F4FD@swoodbridge.com> Bruce, Ashley, I haven't tried GDAL because my understanding was that using it to access TIGER source data was pretty inefficent relative to shape files. Especially if you plan to do more than one state. I use shape files. I don't think you can use shptree since it only works with shape files. tile4ms also reads a bunch of shape files and builds a tileindex. You could in write your own utility to read the tiger source files and build an equivalent tileindex but I don't think there is a utility already available - you might want to check with Frank Koormann or scan his posts in the list archive. Bruce W Saunders/SDC/Systems/HSAS/MAXIMUS wrote: > > I've been working with the tiger files and mapserver for a few months > now (though I haven't made the indexes (but that certainly sounds like > a good idea)). I've noticed an odd behavior for some fields with > leading zeros (particularly zip codes and (I think) fips codes). I > think the problem is that the GDAL library treats these as integer and > while parsing the file, drops leading zeros. Thanks to the clarity of > open source, I changed the fields to character, rebuilt GDAL and > mapserver and things seemed to work fine. The problem surfaced while > I was trying to shade by zip code using an EXPRESSION in the mapfile. > > -Bruce Saunders > > Stephen Woodbridge > Sent by: owner-mapserver-users at lists.gis.umn.edu > 02/27/2002 08:56 PM > > To: Ashley Joyce > cc: "MAPSERVER (E-mail)" > bcc: > Subject: Re: [mapserver-users] Tigerline > > Ashley, > > Structure your data like this: > > /mapdata/tiger2k/{SS}/{SS}{CCC}/{files} > > where {SS} is the state fips code > {CCC} is the fips county code > {files} are all the files for that state+county > > I would also put boundary files that are larger than a county and > other > datasets that cover the whole US in something like: > > /mapdata/us > /mapdata/canada > /mapdata/mexico > /mapdata/oceans > etc > > then create a tileindex for all the files under tiger2k and create > shptree indexes for the tileindex and the files in the other > directories. That should get you up and running! > > You can see my version running with only the eastern half the US > loaded > at http://swoodbridge.com/web2/nmap it is using 9 GIGS > > -Steve W. > > > Ashley Joyce wrote: > > > > I have the mapserver demo version working properly and would like to > > use data from the tigerline site for the USA. I will start with one > > state at a time.... its heavy on space at around 3 -4 Gig. Can > anyone > > give me some advice on where to get some help or point to some > > documentation for structuring the data files so it will work with > > mapserver.... I'm still new to this product and haven't quite got my > > head around all of it yet. I'm not very familiar with the GIS > > structure. I'm running on a linux machine with apache. > > > > Thanks, > > > > Ashley Joyce From assefa at dmsolutions.ca Thu Feb 28 07:55:07 2002 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Thu, 28 Feb 2002 10:55:07 -0500 Subject: [mapserver-users] Zooming Strangeness References: <3C6D1570.71B18BA2@swoodbridge.com> <3C7D958A.943576D3@swoodbridge.com> Message-ID: <3C7E52DB.6920086E@dmsolutions.ca> Hi there, I am not sure what the problem is but I am going to look at it this afternoon. Stephen, is it possible for you to send me the necessary files (map, phpcode, data ...) so I can try to reprodue the problem here. Later, Stephen Woodbridge wrote: > I never saw any response to this post, I am somewhat at a loss on this. > Does anyone have any ideas. > > DM Solutions guys, > > Does the code in GMap that maps from pixel to map units work if I am > using lat/long data instead of meters like the original app was using? > > Would it account for the symptoms I am seeing? > > Any help would be appreaciated, > -Steve W. > > Stephen Woodbridge wrote: > > > > Hi all, > > > > I am using a modified version of GMap75 which is working great, but I > > have run into a strange problem related to zooming which may or may not > > be related to the GMap code. I am using > > > > EXTENT -180.0 -90.0 180.0 90.0 > > UNITS DD > > > > PROJECTION > > "proj=latlong" > > END > > > > and all my data is in lat/long coordinates. > > > > Here are two of the symptons: > > > > 1) I am zoom in to +-0.013 degrees (approx. 0.75 miles over 600 pix) > > with a marker in the center of the image. I zoom out using rosa and the > > GMap code and my marker is still at the same lat/long, the image zooms > > out but has shifted so that the marker is now center on the lower left > > quarter of the image like (M => marker position): > > > > +--------------------+ +--------------------+ > > + + + + > > + + + + > > + + + + > > + + < before + + > > + M + + + > > + + + + > > + + + + > > + + after > + M + > > + + + + > > +--------------------+ +--------------------+ > > > > If I recenter/pan (using rosa) and clicking on the marker it moves > > correctly to the center. > > > > 2) I am zoomed to the full extents of the map and I try to zoom in on > > roughly a 4 state area using rosa and the GMap code. I get the zoom but > > the rectangle that is zoomed to is positioned significantly below the > > rectangle I selected. For example, I zoom in on Massachussetts and I end > > up somewhere in the Carribean. Likewise, is I try to pan to the correct > > location using the reference map, I have to click up in Canada to end up > > in Mass. I think there is also a horizontal shift like in 1) above so > > these are both probably the same problem only magnified by scale. > > > > Anyone have any ideas? I this an artifact that GMap75 was designed > > around different assumptions regard the output projection? > > > > You can try it out at > > > > http://swoodbridge.com/cgi-bin/geo > > http://swoodbridge.com/web2/nmap > > > > I only have Tiger data loaded for the eastern half of the US. > > > > Thanks for the help, > > Stephen Woodbridge -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- From SDunning at nephrology.org Thu Feb 28 08:42:43 2002 From: SDunning at nephrology.org (Stephan Dunning) Date: Thu, 28 Feb 2002 10:42:43 -0600 Subject: [mapserver-users] Zooming Strangeness Message-ID: Stephen, I had what could have been a similar issue not too long ago. Here's the message I posted. ******************** I could be wrong or this may have already been discovered, but I think I found a slight bug in the gmap75.php file that affects the zoom and query rectangles. The GMap75CheckClick() function includes the following code: if ($oPixelRect->minx > $oPixelRect->maxx) { // Use intval() to avoid dfTmp becoming a reference // to $oPixelRect->minx with PHP4 !?!?!? $dfTmp = intval($oPixelRect->minx); $oPixelRect->set("minx",$oPixelRect->maxx); $oPixelRect->set("maxx",$dfTmp); } **line of code in question** if ($oPixelRect->miny < $oPixelRect->maxy) **line of code in question** { $dfTmp = intval($oPixelRect->miny); $oPixelRect->set("miny", $oPixelRect->maxy); $oPixelRect->set("maxy", $dfTmp); } } Should this - "if ($oPixelRect->miny < $oPixelRect->maxy)" be this - "if ($oPixelRect->miny > $oPixelRect->maxy)" instead? Thanks, Stephan ******************** Maybe this will help. -----Original Message----- From: Assefa Yewondwossen [mailto:assefa at dmsolutions.ca] Sent: Thursday, February 28, 2002 9:55 AM To: Stephen Woodbridge Cc: MapServer List Subject: Re: [mapserver-users] Zooming Strangeness Hi there, I am not sure what the problem is but I am going to look at it this afternoon. Stephen, is it possible for you to send me the necessary files (map, phpcode, data ...) so I can try to reprodue the problem here. Later, Stephen Woodbridge wrote: > I never saw any response to this post, I am somewhat at a loss on this. > Does anyone have any ideas. > > DM Solutions guys, > > Does the code in GMap that maps from pixel to map units work if I am > using lat/long data instead of meters like the original app was using? > > Would it account for the symptoms I am seeing? > > Any help would be appreaciated, > -Steve W. > > Stephen Woodbridge wrote: > > > > Hi all, > > > > I am using a modified version of GMap75 which is working great, but I > > have run into a strange problem related to zooming which may or may not > > be related to the GMap code. I am using > > > > EXTENT -180.0 -90.0 180.0 90.0 > > UNITS DD > > > > PROJECTION > > "proj=latlong" > > END > > > > and all my data is in lat/long coordinates. > > > > Here are two of the symptons: > > > > 1) I am zoom in to +-0.013 degrees (approx. 0.75 miles over 600 pix) > > with a marker in the center of the image. I zoom out using rosa and the > > GMap code and my marker is still at the same lat/long, the image zooms > > out but has shifted so that the marker is now center on the lower left > > quarter of the image like (M => marker position): > > > > +--------------------+ +--------------------+ > > + + + + > > + + + + > > + + + + > > + + < before + + > > + M + + + > > + + + + > > + + + + > > + + after > + M + > > + + + + > > +--------------------+ +--------------------+ > > > > If I recenter/pan (using rosa) and clicking on the marker it moves > > correctly to the center. > > > > 2) I am zoomed to the full extents of the map and I try to zoom in on > > roughly a 4 state area using rosa and the GMap code. I get the zoom but > > the rectangle that is zoomed to is positioned significantly below the > > rectangle I selected. For example, I zoom in on Massachussetts and I end > > up somewhere in the Carribean. Likewise, is I try to pan to the correct > > location using the reference map, I have to click up in Canada to end up > > in Mass. I think there is also a horizontal shift like in 1) above so > > these are both probably the same problem only magnified by scale. > > > > Anyone have any ideas? I this an artifact that GMap75 was designed > > around different assumptions regard the output projection? > > > > You can try it out at > > > > http://swoodbridge.com/cgi-bin/geo > > http://swoodbridge.com/web2/nmap > > > > I only have Tiger data loaded for the eastern half of the US. > > > > Thanks for the help, > > Stephen Woodbridge -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- From pkishor at GeoAnalytics.com Thu Feb 28 09:12:23 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 28 Feb 2002 11:12:23 -0600 Subject: [mapserver-users] compiling Perl/Mapscript takes time Message-ID: Steve, You were right... I was too impatient. I successfully compiled Perl/Mapscript yesterday. It took about 9 mins... no activity at all, and then, pow! It works sweet. Thanks. Are any of your Perl/Mapscript example source files available for download? That would really help, combined with Lowell's docs. (Now, there is that matter of GDAL, Proj.4, etc. that I have to tackle. Hoping to hear from Frank, or someone else.) Btw, could you (or someone else... Lowell, perhaps) explain to me what "make install" does? The reason I ask is... how could I move the mapscript.pm module to another computer (same OS, of course) without having to recompile it? It is not just a matter of copying the .pm file to the Perl modules library, is it? Tia, pk/ From woodbri at swoodbridge.com Thu Feb 28 09:48:10 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 28 Feb 2002 12:48:10 -0500 Subject: [mapserver-users] Zooming Strangeness References: Message-ID: <3C7E6D5A.83CD24CF@swoodbridge.com> OK, a little debugging and some good guessing and things are looking much better for me anyway. I had two separate problems that were thankfully uncoupled :) 1) The ZOOM OUT problem. This require the follow change to be made to gmap75.php3, search for ZOOM_OUT and change the if condition to: /* ----------------------------------------------------------------- */ /* Check for zoom out (auto-submit) button. */ /* ----------------------------------------------------------------- */ else if ($HTTP_FORM_VARS["CMD"] == "ZOOM_OUT" && ($HTTP_FORM_VARS["INPUT_COORD"] == "0,0;0,0" || $HTTP_FORM_VARS["INPUT_COORD"] == "") && !$HTTP_FORM_VARS["mainmap_x"]) { This was required because INPUT_COORD was equally to "" or "0,0;0,0" depending on diferent conditions. This might be because of changes I made to gmap75 but it should be a safe change for everyone. 2) Zoom way in This turned out to be a problem where the extents of my map file had a different aspect ratio the the image size. >> problematic: SIZE 600 600 EXTENTS -180 -90 180 90 >> no problem: SIZE 600 600 EXTENTS -180 -180 -180 180 180 I have asked Assefa to see if it is possible to make gmap detect this and make appropriate ajustments so it will be more robust. Otherwise, if you had image sizes that did not ALL have the same aspect ratio them you would run into this problem just by changing the image size. I want to thank everyone that responded to my request for help both on and off the list. It seems that at least two other people were having zoom problems. Also major thanks to DM Solutions for their offer to help solve this problem. -Steve From steve.lime at dnr.state.mn.us Thu Feb 28 10:16:00 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 28 Feb 2002 12:16:00 -0600 Subject: [mapserver-users] Fwd: A question Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: "Ariadna Cecilia Ruiz Gurrola (Tesista)" Subject: A question Date: Thu, 28 Feb 2002 10:33:22 -0600 (CST) Size: 2105 URL: From woodbri at swoodbridge.com Thu Feb 28 11:03:34 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 28 Feb 2002 14:03:34 -0500 Subject: [mapserver-users] Fwd: A question References: Message-ID: <3C7E7F06.FD68DA4B@swoodbridge.com> > 1.- We can view our layers without troubles but our?s proyect aim is to > add new layers to the application in a dinamically way, so we don?t know > how can we pass parameters to the mapfile or if this is the right file to do this. What do you mean by this? Could you give a more detailed explaination of the interaction between the user and the displayed results that you are trying to acheive. For example, when you add a new layer is it like 2. below? Where does the data come from? How much data do you expect to add over time? Is the data added by one user visible by all users? > 2.- Also, we would like to add to MapServer the hability to allow the user > draw some points, lines or polygons (obviously in a dinamically way) and > save the generated layer. We don?t really know how and where to start, we > would be too thankful if you could help us, Please. Both 1 and 2 suggest that you will need to write an application in Perl or PHP or Java that will handle the interface with the user to collect the data, let the user correct mistakes, display it and save it on the server. Mapserver is a rendering engine and while it has some the basic ability to create shape files, and add features to a map, the most flexible of these are via MapScript. Both Perl and PHP MapScript are suitable languages for developing an application that would allow your users to add layers and drawings to your maps. I hope this helps you to get started. -Steve W From tpoindex at nyx.net Thu Feb 28 12:30:19 2002 From: tpoindex at nyx.net (Tom Poindexter) Date: Thu, 28 Feb 2002 13:30:19 -0700 Subject: [mapserver-users] Re: [Fwd: Re: tcl / mapserver] In-Reply-To: <3C7E87ED.9090807@no6.com>; from drew@no6.com on Thu, Feb 28, 2002 at 11:41:33AM -0800 References: <3C7E87ED.9090807@no6.com> Message-ID: <20020228133019.A20028@nyx10.nyx.net> The best examples I have are in MapServer Workbench (msworkbench.sf.net). I haven't had time to fully update this code for MapServer 3.5 yet, but it's high on my todo list. The code that's available is for MapServer 3.4. Of the four programs in the Workbench, msexplorer.tcl probably does the most - it opens a mapfile, renders images, queries points; msshapex.tcl does some manipulation with shapefiles. Review the source code to these programs for ideas on how to program Mapscript/Tcl. The tiny example Tcl program in mapserver_3.5/mapscript/tcl/examples/shpinfo.tcl illustrates how the Mapscript objects are used: mapscript::shapefileObj shp1 $file -1 ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^ object constructor object constructor name arguments # shp1 will be a Mapscript shapefile object then, invoke methods on the object: puts "\tnumber of features: [shp1 cget -numshapes]" ^^^^ ^^^^ ^^^^^^^^^^ obj method arguments In this case, the 'cget' method returns object member data. Some return values you would get are pointers to other objects. I build some 'helper' procs to easily deal with them (in effect, it's like 'casting' the pointer to a certain object type): set rectPtr [shp1 cget -bounds] #rectPtr is a pointer to an object puts "\tbounds: ([mapscript::rectObjRef $rectPtr cget -minx] ...." # 'cast' the pointer as a rectObj, and invoke the cget method SWIG actually provides a constructor to turn an object pointer (like rectPtr) into a bona-fide object, but in many cases you just want access to the object in order to access some memeber data, so why bother. Plus if you do instantiate an object reference, you'll need to manually delete it after you're finished with it. The SWIG generated doc file is fairly terse, but does give an idea of what methods and member data is available for each mapfile object. Good luck, Tom On Thu, Feb 28, 2002 at 11:41:33AM -0800, Drew wrote: > > > -------- Original Message -------- > Subject: Re: tcl / mapserver > Date: Thu, 28 Feb 2002 13:22:17 -0600 > From: "Steve Lime" > To: > > > > Tom Poindexter, the author of the MapServer Workbench is the local TCL > guru. You might try posting > to the main list and see if he bites... > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Drew 02/28/02 01:13PM >>> > I'm wondering if you know of anyone using TCL scripting for mapserver, > > and if so, are there examples / code I can borrow / steal? ;) > > thx > Drew > > > -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From TMitchell at lignum.com Thu Feb 28 13:09:46 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Thu, 28 Feb 2002 13:09:46 -0800 Subject: [mapserver-users] Sorta Off Topic - Putting PHP code in a CGI script? Message-ID: Hi guys, I'm new to both CGI and PHP, but saw an example somewhere in a CGI script that allowed you to enter in raw HTML instead of putting in a separate PRINT command for it. I cannot, for the life of me, find this example again though. I though it would allow me to easy put in PHP stuff into my CGI script. I thought it went something like this: ....... $query->start_html; print "bleh bleh"; ECHO END >>>> This is bold END <<<< $query->end_html; Know what I mean? I don't know what you call this and have searched and searched the docs with no avail :( From TMitchell at lignum.com Thu Feb 28 13:18:14 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Thu, 28 Feb 2002 13:18:14 -0800 Subject: [mapserver-users] Fwd: A question Message-ID: >> 1.- We can view our layers without troubles but our?s proyect aim is to >> add new layers to the application in a dinamically way, so we don?t know >> how can we pass parameters to the mapfile or if this is the right file to do this. >What do you mean by this? Could you give a more detailed explaination of >the interaction between the user and the displayed results that you are >trying to acheive. One type of application I'm hoping to get to is being able to interactively upload a shape file and then view it on your map. Now that would be "dynamic" eh? Anyone playing around with this? From pkishor at GeoAnalytics.com Thu Feb 28 13:12:34 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 28 Feb 2002 15:12:34 -0600 Subject: [mapserver-users] compiling Perl/Mapscript takes time Message-ID: Charles, > I was wondering if you happened to have the Mapscript > related DLL's for > perl Please note that as far as I am aware no one has found much success with Perl/Mapscript on Windows. Note to SDL and other Perl/Mapscript users: I know we have visited this issue in the past... could someone with a Windoze box and Perl inclination want to establish definitively whether or not this is possible. While I have a Windoze box here at work, I do not have the C compiler. Additionally, while I am very keenly inclined toward Perl, I usually let Indigostar's gpm manage the packages on my Win box. On my MacOS X computer at home I use CPAN. Yesterday's "perl Makefile.pl" adventure was virgin territory for me. That I came out fairly unscathed is nice. > or for Mapscript PHP 4.1.1 > for the Windows Nt operating system. The PHP/Mapscript module does not work with PHP 4.1.1 as of yet. As of now it requires PHP 4.0.6 or less. Daniel and friends are the conclusive authority on this. Additionally, there are some hassles in running the PHP/Mapscript module on Windows with Apache. I was unsuccessful in making this work on my Windoze box. Note to the scripting gurus: It would be really nice if installing the Mapscripting modules, both Perl and PHP, became simpler than it is. I know behind that simple statement is a fairly tall order, but it _has_ to be accomplished to make things easier for those who might know the scripting languages, but otherwise might not be compiler-savvy. If there is anything I could do here to contribute I would... unfortunately, I am still one of the unwashed masses. Someday I will pick up the Kernighan-Ritchie book, but until then... Sorry Charles, pk/ > I an a Newbie, and I have been trying unsuccessfully > to build the Perl Mapscript module, and the PHP4.1.1 > Mapscript module. > > Thanks > Charles James Hall > JGPSCE SRC Legacy Products Manager > Url: http://www.jte.osd.mil/jgpsce/ > Local Url: http://hq_cn_46 > Phone: 505 853-2536 ( DSN: 263-2536 ) > Email: Charles.Hall at afotec.af.mil > Office @ Lat: 35.0555458 N > ?????????????? Lon: 106.5511093 W > > > -----Original Message----- > From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] > Sent: Thursday, February 28, 2002 10:12 AM > To: 'Steve Lime'; mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] compiling Perl/Mapscript takes time > > > Steve, > > You were right... I was too impatient. I successfully compiled > Perl/Mapscript yesterday. It took about 9 mins... no activity > at all, and > then, pow! > > It works sweet. Thanks. Are any of your Perl/Mapscript > example source files > available for download? That would really help, combined with > Lowell's docs. > > (Now, there is that matter of GDAL, Proj.4, etc. that I have > to tackle. > Hoping to hear from Frank, or someone else.) > > Btw, could you (or someone else... Lowell, perhaps) explain > to me what "make > install" does? The reason I ask is... how could I move the > mapscript.pm > module to another computer (same OS, of course) without > having to recompile > it? It is not just a matter of copying the .pm file to the > Perl modules > library, is it? > > Tia, > > pk/ > From woodbri at swoodbridge.com Thu Feb 28 14:17:48 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 28 Feb 2002 17:17:48 -0500 Subject: [mapserver-users] Sorta Off Topic - Putting PHP code in a CGI script? References: Message-ID: <3C7EAC8C.1E65D85E@swoodbridge.com> This doesn't make to much sense based on the way things work in a webserver regarding cgi or php. Basically php is a cgi like thing and typically the way cgi-ish things work is they execute a script (be it perl, php, tcl, and executable or whatever) and the output of the process is sent back to the browser. So the problem you would have with your example below is that you could output php code, but it would NOT get executed because it would be default be sent to the browser and php has to be executed on the server. SOoooo, why don't you tell us what you are trying to accomplish from an application point of view and we or I might be more helpful :) I am not say that you can't get a cgi script to write a php script and then trick the broswer into executing it, but this is very convoluted when probably anything you can do in php you could also do in another cgi language directly without all the convultions. -Steve Tyler Mitchell wrote: > > Hi guys, I'm new to both CGI and PHP, but saw an example somewhere in a CGI > script that allowed you to enter in raw HTML instead of putting in a > separate PRINT command for it. I cannot, for the life of me, find this > example again though. I though it would allow me to easy put in PHP stuff > into my CGI script. > I thought it went something like this: > > ....... > $query->start_html; > print "bleh bleh"; > ECHO END >>>> > This is bold > > END <<<< > $query->end_html; > > Know what I mean? I don't know what you call this and have searched and > searched the docs with no avail :( From TMitchell at lignum.com Thu Feb 28 14:26:02 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Thu, 28 Feb 2002 14:26:02 -0800 Subject: [mapserver-users] Sorta Off Topic - Putting PHP code in a CGI script? Message-ID: Ugh...very good point. No wonder I couldn't find any docs on it! :) (duh) Now that I think about it, the examples I saw were for javascript - not php - so it would make sense if javascript was sent to the browser via CGI - but I had forgot about the need to interpret php before sending to the browser. I'm just working on a basic php database application which is currently written in CGI. I was hoping to slowly move chunks of it over - but I guess I don't have that luxury. I'm not using it for anything related to mapserver, though I hope to delve into mapscript sometime in the future with another project. Thank you Stephen, for clearing that up for me. But do you know what function I was looking for? (i.e. that echo >>> junk in my example) Stephen Woodbridge To: Tyler Mitchell Fax to: Subject: Re: [mapserver-users] Sorta Off Topic - Putting PHP code in a 02/28/2002 CGI script? 02:17 PM This doesn't make to much sense based on the way things work in a webserver regarding cgi or php. Basically php is a cgi like thing and typically the way cgi-ish things work is they execute a script (be it perl, php, tcl, and executable or whatever) and the output of the process is sent back to the browser. So the problem you would have with your example below is that you could output php code, but it would NOT get executed because it would be default be sent to the browser and php has to be executed on the server. SOoooo, why don't you tell us what you are trying to accomplish from an application point of view and we or I might be more helpful :) I am not say that you can't get a cgi script to write a php script and then trick the broswer into executing it, but this is very convoluted when probably anything you can do in php you could also do in another cgi language directly without all the convultions. -Steve Tyler Mitchell wrote: > > Hi guys, I'm new to both CGI and PHP, but saw an example somewhere in a CGI > script that allowed you to enter in raw HTML instead of putting in a > separate PRINT command for it. I cannot, for the life of me, find this > example again though. I though it would allow me to easy put in PHP stuff > into my CGI script. > I thought it went something like this: > > ....... > $query->start_html; > print "bleh bleh"; > ECHO END >>>> > This is bold > > END <<<< > $query->end_html; > > Know what I mean? I don't know what you call this and have searched and > searched the docs with no avail :( From ncowham at forumone.com Thu Feb 28 14:34:56 2002 From: ncowham at forumone.com (Nyk Cowham) Date: Thu, 28 Feb 2002 17:34:56 -0500 Subject: [mapserver-users] Sorta Off Topic - Putting PHP code in a CGI script? Message-ID: <167A8E86FDBBC543A6B88985A430D5F51B812C@pluto.forumone.com> > Hi guys, I'm new to both CGI and PHP, but saw an example > somewhere in a CGI > script that allowed you to enter in raw HTML instead of putting in a > separate PRINT command for it. I cannot, for the life of me, > find this > example again though. I though it would allow me to easy put > in PHP stuff > into my CGI script. > I thought it went something like this: > > ....... > $query->start_html; > print "bleh bleh"; > ECHO END >>>> > This is bold > > END <<<< > $query->end_html; You are referring to the CGI.pm module by Lincoln Stein. It is actually part of the core module library that comes with all distributions of Perl. run 'perldoc CGI' to get the man page. However, this is not going to help you integrate PHP scripts into your CGI application. To do that you need to make a call to the web server so it can compile the PHP code. This can be done fairly easily in situations where you need to include a standard header that includes PHP code. You can do this using the LWP module (part of lib-www). I also have some modules for making Perl aware of PHP sessions. However, there is much room for improvement for integrating PHP and Perl. Nyk Cowham Forum One Communications http://www.forumone.com/ Communicate Collaborate Change the world From pkishor at GeoAnalytics.com Thu Feb 28 15:07:08 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 28 Feb 2002 17:07:08 -0600 Subject: [mapserver-users] Sorta Off Topic - Putting PHP code in a CGI script? Message-ID: > Hi guys, I'm new to both CGI and PHP, but saw an example > somewhere in a CGI > script that allowed you to enter in raw HTML instead of putting in a > separate PRINT command for it. I cannot, for the life of me, > find this > example again though. I though it would allow me to easy put > in PHP stuff > into my CGI script. first, PHP is kinda CGI... usually two CGIs don't co-exist. One is more than enough to do the job, and they get in each other's ways. > I thought it went something like this: > > ....... > $query->start_html; > print "bleh bleh"; in the case of the above two statements, you have a PHP block, and these are PHP commands. For example, the print function is writing out "bleh bleh". > ECHO END >>>> > This is bold > > END <<<< in the above 3 statements you are using the Perl-kinda heredoc method of writing a block of text (I don't know PHP well enough... didn't know you could do this in PHP as well). Then, within the block of text that you have escaped from the PHP block by using ECHO END >>>> you are once again escaping back to PHP using . This is a bit convoluted. Do one or the other, unless you have good reason to. In Perl you can use embperl to make it behave PHP/ASP like so you can embed Perl code in arbitrarily inside text. Hope the above doesn't confuse you even more. Other's on the list might be able to explain better, or perhaps you might want to elaborate what you actually want to do. pk/ From Antti.Roppola at brs.gov.au Thu Feb 28 15:20:01 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Fri, 1 Mar 2002 10:20:01 +1100 Subject: [mapserver-users] Sorta Off Topic - Putting PHP code in a CGI script? Message-ID: <595FE28AB1EBD111920F0060B06B3DD70730C6A8@ACTMAIL2> You'd be better off calling your code from inside PHP if you really needed it. PHP is usually set up as a module in your server, so it's probably going to be respond faster than a CGI. As for the database, you could excise the CGI specifics in your database and call them from inside PHP as functions. Later on, you could re-write each function as native PHP. I do this to keep all database specific stuff out of my apps: function select_old ($sql) { system(myoldcgoappmodified "$sql"); ... stuff happens... return $result; } function select($sql, $link) { if (!($result = mysql_query($sql,$link))) { echo("SQL query failed: $sql from $link
\n"); } return $result; } Antti -----Original Message----- From: Tyler Mitchell [mailto:TMitchell at lignum.com] Sent: Friday, 1 March 2002 8:10 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Sorta Off Topic - Putting PHP code in a CGI script? Hi guys, I'm new to both CGI and PHP, but saw an example somewhere in a CGI script that allowed you to enter in raw HTML instead of putting in a separate PRINT command for it. I cannot, for the life of me, find this example again though. I though it would allow me to easy put in PHP stuff into my CGI script. I thought it went something like this: ....... $query->start_html; print "bleh bleh"; ECHO END >>>> This is bold END <<<< $query->end_html; Know what I mean? I don't know what you call this and have searched and searched the docs with no avail :( From Antti.Roppola at brs.gov.au Thu Feb 28 17:36:40 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Fri, 1 Mar 2002 12:36:40 +1100 Subject: [mapserver-users] PHP security advisory Message-ID: <595FE28AB1EBD111920F0060B06B3DD70730C6B1@ACTMAIL2> There is a patch for PHP on http://www.php.net that PHP users should investigate. >From my reading, file upload functions can be used to execute arbitrary code. If you are installing PHP on an external box, you should be switching off functions you are not using, things like system and file functions. There's a lot of good material on the PHP site. Antti From pagameba at magma.ca Thu Feb 28 18:04:33 2002 From: pagameba at magma.ca (Paul Spencer) Date: Thu, 28 Feb 2002 21:04:33 -0500 Subject: [mapserver-users] Sorta Off Topic - Putting PHP code in a CGI script? In-Reply-To: <595FE28AB1EBD111920F0060B06B3DD70730C6A8@ACTMAIL2> Message-ID: <008401c1c0c5$6ed1d460$a302a8c0@wizard> Keep in mind that if you plan on using PHP/MapScript you will need to use PHP 4.0.6 and configure it as a CGI rather than a loaded module. Paul Spencer -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Antti.Roppola at brs.gov.au Sent: Thursday, February 28, 2002 6:20 PM To: TMitchell at lignum.com; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Sorta Off Topic - Putting PHP code in a CGI script? You'd be better off calling your code from inside PHP if you really needed it. PHP is usually set up as a module in your server, so it's probably going to be respond faster than a CGI. As for the database, you could excise the CGI specifics in your database and call them from inside PHP as functions. Later on, you could re-write each function as native PHP. I do this to keep all database specific stuff out of my apps: function select_old ($sql) { system(myoldcgoappmodified "$sql"); ... stuff happens... return $result; } function select($sql, $link) { if (!($result = mysql_query($sql,$link))) { echo("SQL query failed: $sql from $link
\n"); } return $result; } Antti -----Original Message----- From: Tyler Mitchell [mailto:TMitchell at lignum.com] Sent: Friday, 1 March 2002 8:10 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Sorta Off Topic - Putting PHP code in a CGI script? Hi guys, I'm new to both CGI and PHP, but saw an example somewhere in a CGI script that allowed you to enter in raw HTML instead of putting in a separate PRINT command for it. I cannot, for the life of me, find this example again though. I though it would allow me to easy put in PHP stuff into my CGI script. I thought it went something like this: ....... $query->start_html; print "bleh bleh"; ECHO END >>>> This is bold END <<<< $query->end_html; Know what I mean? I don't know what you call this and have searched and searched the docs with no avail :( From pkishor at GeoAnalytics.com Thu Feb 28 21:55:47 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 28 Feb 2002 23:55:47 -0600 Subject: [mapserver-users] small Perl mapscript example correction In-Reply-To: <4.3.2.7.0.20020222075707.00b2cfd8@uranos> Message-ID: if some green-behind-the-ears Perl jockey like me is trying out the examples that come with ms3.5, please note the syntax of the Xbase package has changed. I have made the corrections to the shpinfo.pl script so it works correctly. Here is the modified version with the corrections commented. Hope it saves someone some time -- ====== #!/usr/bin/perl use Xbase; # was: use XBase; # changed all instances of XBase to Xbase use mapscript; use Getopt::Long; %types = ( '1' => 'point', '3' => 'arc', '5' => 'polygon', '8' => 'multipoint' ); &GetOptions("file=s", \$file); if(!$file) { print "Syntax: shpinfo.pl -file=[filename]\n"; exit 0; } $shapefile = new shapefileObj($file, -1) or die "Unable to open shapefile $file."; print "Shapefile $file:\n\n"; print "\ttype: ". $types{$shapefile->{type}} ."\n"; print "\tnumber of features: ". $shapefile->{numshapes} ."\n"; printf "\tbounds: (%f,%f) (%f,%f)\n", $shapefile->{bounds}->{minx}, $shapefile->{bounds}->{miny}, $shapefile->{bounds}->{maxx}, $shapefile->{bounds}->{maxy}; $table = new Xbase; # was: $table = new Xbase $file.'.dbf' or die Xbase->errstr; # added the following $table->open_dbf($file.'.dbf') or die Xbase->errstr; print "\nXbase table $file.dbf:\n\n"; print "\tnumber of records: ". ($table->lastrec+1) ."\n\n"; # was: $table->last_record # the following lines are not needed. See note below. #print "\tnumber of fields: ". ($table->last_field+1) ."\n\n"; #print "\tName Type Length Decimals\n"; #print "\t---------------- ---- ------ --------\n"; #foreach ($table->field_names) { # printf "\t%-16s %4s %6d %8d\n", $_, $table->field_type($_), $table->field_length($_), $table->field_decimal($_) #} # all of the above replaced by $table->dbf_stat; # added the following $table->close_dbf; From pkishor at GeoAnalytics.com Thu Feb 28 21:59:56 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 28 Feb 2002 23:59:56 -0600 Subject: [mapserver-users] mapserver on MacOS X with gdal and proj... YES! In-Reply-To: <3C7F0048.3040403@pobox.com> Message-ID: <8EA9FABA-2CD9-11D6-89E5-0003936306C2@geoanalytics.com> [localhost:~/Projects/mapserver/mapserver_3.5] pkishor% ./mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE thanks Frank! next stop... PostGIS and the PHP beast. From stepan.kafka at centrum.cz Tue Feb 26 02:53:43 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Tue, 26 Feb 2002 11:53:43 +0100 Subject: [mapserver-users] Installation problem In-Reply-To: Message-ID: <000301c1beb3$db63d1a0$7e3c2fc3@HSGIS> It is known problem with proj library path. Please, see the discussion on http://mapserver.gis.umn.edu/wilma/mapserver-users/0108/msg00084.html Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Ashley > Joyce > Odesl?no: 26. ?nora 2002 10:33 > Komu: Doug Williams; Nuno Alves; MAPSERVER (E-mail) > P?edm?t: [mapserver-users] Installation problem > > > I am new to mapserver and have just tried to install it for the > first time. > I installed all the required modules. > > After installation..... after typing ./mapserv - to check my > installation > I get the following error. > > - error while loading shared libraries: libproj.so cannot share object > file: no such file or directory. > > Is this because I haven't configured PROJ.4 probably. Can someone help! > > Thanks, > > Ashley Joyce > > From pkishor at GeoAnalytics.com Wed Feb 27 08:51:58 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Feb 2002 10:51:58 -0600 Subject: [mapserver-users] GDAL compile errors Message-ID: Frank, others, yesterday I tried to compile GDAL on my MacOS X iBook using gcc... I was not successful. I am reproducing the few lines of seemingly error messages from the terminal buffer... any guidance would be much appreciated. tia. pk ====================== ranlib ./gdal.a ranlib: file: ./gdal.a(pnggccrd.o) has no symbols ranlib: file: ./gdal.a(pngvcrd.o) has no symbols ranlib: file: ./gdal.a(tif_pixarlog.o) has no symbols ranlib: file: ./gdal.a(cpl_vsil_unix_stdio_64.o) has no symbols cc -dynamiclib ./frmts/o/*.o ./core/*.o ./port/*.o ./alg/*.o ./ogr/ogrct.o ./ogr/ogr_opt.o ./ogr/ogr_fromepsg.o ./ogr/ogrutils.o ./ogr/ogr_srs_proj4.o ./ogr/ogrsf_frmts/generic/ogrregisterall.o ./ogr/ogrfeaturestyle.o ./ogr/ogrsf_frmts/ogrsf_frmts.a ./gdal.a ./ogr/ogr.a ./gdal.a ./port/cpl.a -lz -lm -L/usr/local/lib -lm -o ./libgdal.1.1.dylib ld: common symbols not allowed with MH_DYLIB output format ./ogr/ogr.a(swq.o) definition of common _swq_error (size 1024) /usr/bin/libtool: internal link edit command failed make: *** [force-lib] Error 1 From pkishor at GeoAnalytics.com Wed Feb 27 08:50:51 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Feb 2002 10:50:51 -0600 Subject: [mapserver-users] PROJ.4 compile errors Message-ID: Frank, others, yesterday I tried to compile PROJ.4 on my MacOS X iBook using gcc... I was not successful. I am reproducing the few lines of seemingly error messages from the terminal buffer... any guidance would be much appreciated. tia. pk ====================== nad2bin.c nad2bin.c: In function `main': nad2bin.c:13: warning: return type of `main' is not `int' /bin/sh ../libtool --mode=link cc -g -O2 -o nad2bin nad2bin.o libproj.la -lm cc -g -O2 -o nad2bin nad2bin.o .libs/libproj.a -lm -lm cc -DHAVE_CONFIG_H -I. -I. -I. -DPROJ_LIB=\"/usr/local/share/proj\" -g -O2 -c geod.c /usr/include/ctype.h:128: syntax error, found `.' /usr/include/ctype.h:128: illegal function definition, found `)' /usr/include/ctype.h:130: illegal method selector, found `1' /usr/include/ctype.h:131: illegal method definition, missing `{' after `)' /usr/include/ctype.h:135: syntax error, found `.' /usr/include/ctype.h:135: illegal function definition, found `)' /usr/include/ctype.h:137: illegal method selector, found `1' /usr/include/ctype.h:138: illegal method definition, missing `{' after `)' cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode In file included from geod.c:9: /usr/include/ctype.h:128: parse error before `.' /usr/include/ctype.h: In function `__istype': /usr/include/ctype.h:130: `c' undeclared (first use in this function) /usr/include/ctype.h:130: (Each undeclared identifier is reported only once /usr/include/ctype.h:130: for each function it appears in.) /usr/include/ctype.h: At top level: /usr/include/ctype.h:135: parse error before `.' /usr/include/ctype.h: In function `__isctype': /usr/include/ctype.h:137: `c' undeclared (first use in this function) geod.c: In function `main': geod.c:133: warning: return type of `main' is not `int' make[1]: *** [geod.o] Error 1 make: *** [all-recursive] Error 1 From pkishor at GeoAnalytics.com Wed Feb 27 08:54:48 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Feb 2002 10:54:48 -0600 Subject: [mapserver-users] Perl/Mapscript compile hangs (was wrong subject in earlier email. .. sorry) Message-ID: Steve, others, yesterday I tried to compile Perl/Mapscript on my MacOS X iBook using gcc... I was not successful. After producing the message shown below, the compiler just hung... for what seemed forever. I would have to kill it. Any guidance would be much appreciated. tia. pk ====================== [localhost:mapserver_3.5/mapscript/perl] pkishor% make cp mapscript.pm blib/lib/mapscript.pm cc -c -I/Users/pkishor/Projects/mapserver/mapserver_3.5 -I/usr/local/include -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -I/System/Library/Perl/darwin/CORE -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT mapscript_wrap.c From pkishor at GeoAnalytics.com Wed Feb 27 09:01:16 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Feb 2002 11:01:16 -0600 Subject: [mapserver-users] Mapserver binary for MacOS X Message-ID: I successfully compiled a basic build of Mapserver 3.5 on MacOS X 10.1.3. It has png, jpeg, bmp, ttf support... I tested the binary on my daughter's iMac which has no dev tools or other libraries, and Mapserver works just fine... hums along. That means, I can give out the binary without having to have the user worry about gd or libpng, etc. If anyone is interested, please email me and I will mail you the file. It is about 650 kb. In any case, I would be very interested in knowing the count of MacOS X users on the Mapserver list. I am trying to build a more comprehensive version with the kitchen sink in it (gdal, proj, postgis, etc.). Once I am successful I will build an install package using PackageMaker. That way the end-user will be able to double-click install the binary, any needed dependencies, as well as the itasca demo in the correct places (assuming the standard OS X layout). pk/ From pkishor at GeoAnalytics.com Wed Feb 27 08:53:50 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Feb 2002 10:53:50 -0600 Subject: [mapserver-users] Re: Map File in XML Format Message-ID: Steve, others, yesterday I tried to compile Perl/Mapscript on my MacOS X iBook using gcc... I was not successful. After producing the message shown below, the compiler just hung... for what seemed forever. I would have to kill it. Any guidance would be much appreciated. tia. pk ====================== [localhost:mapserver_3.5/mapscript/perl] pkishor% make cp mapscript.pm blib/lib/mapscript.pm cc -c -I/Users/pkishor/Projects/mapserver/mapserver_3.5 -I/usr/local/include -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -I/System/Library/Perl/darwin/CORE -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT mapscript_wrap.c From lfilak at medinaco.org Wed Feb 27 08:51:56 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 27 Feb 2002 11:51:56 -0500 Subject: [mapserver-users] Sequence of layers Message-ID: <200202271644.g1RGipM04206@yogi.medinaco.net> Alternate solution:? http://mapserver.gis.umn.edu/wilma/mapserver-users/0102/msg00010.html Lowell F. The following message was sent by Lyndon Zimmermann on Wed, 27 Feb 2002 14:29:27 +1030. > Greetings all, > > We're running straight Mapserver for the Bioenergy Atlas for Australia > and one of the limitations I see is the inability (I presume I'm right > here) to control the sequence of presentation of layers, aside from the > mapfile. Aside from multiple .map files, what options exist for > altering this sequence? > > Ditto theme colours and hash. > > Regards, > > Lyndon Z > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > LOW RAINFALL AGROFORESTRY RESEARCH UNIT > Affiliated with the CRC for Plant Based Management of Dryland Salinity > > University of Adelaide Department of Agronomy and Farming Systems > Physical address: Hannaford Building (via Gate 3) Waite Campus, South > Australia > Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia > Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 > Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au > > Bionergy Atlas Website: > http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html > > Unless otherwise stated, the content of this message and attachments may > be forwarded or quoted, with due acknowledgement. No representation is > made that this email is free of viruses. Virus scanning is recommended > and is the responsibility of the recipient. From steve.lime at dnr.state.mn.us Wed Feb 27 09:19:50 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 27 Feb 2002 11:19:50 -0600 Subject: [mapserver-users] diff between shp2img and mapserv Message-ID: The biggest difference between the programs is in how layer STATUS is interpreted. Shp2img takes what's in the mapfile at face value. That is, if the STATUS is ON/DEFAULT the layer is drawn, if OFF it is not. Mapserv by default assumes a layer is OFF unless explicitly requested by the user (DEFAULT layers are always on). Shp2img also ignores anything in the WEB section. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Francois Michel Le Tourneau 02/27/02 04:04AM >>> Hi ! I have made a few experiments and confirmed that shp2img does what I want whereas mapserv does not... Have nayone experienced that and could anyone give me some hints to know what i should look after in order to understand the problem ??? Thanks in advance FMLT *********************************************************************** Francois-Michel Le Tourneau Charg? de Recherches au CNRS Centre de Recherche et de Documentation sur l'Am?rique Latine (UMR 7530) Tel. 01 44 39 86 85 Fax. 01 45 48 79 58 E-mail : Francois.Michel.Le.Tourneau at ens.fr *********************************************************************** From pkishor at GeoAnalytics.com Wed Feb 27 09:32:03 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Feb 2002 11:32:03 -0600 Subject: [mapserver-users] Example of Cold Fusion.... Message-ID: Jessica, > Could you explain to me really what the usage of using cold > fusion with > mapserver? Is it so that we can intergrate database from > databases to the > map files? I would really appreciate your input. > I guess I am not sure what you are asking? If you want to know what the advantage of using CF with Mapserver would be as opposed to some other solution... well, then I would have to do some CF proselytizing here... this is not the forum for that. That said, CF allows you to build web applications as well as provide easy database connectivity. For example, if you wanted to build an application where your users would log on, be authenticated, then be able to retrieve and save their preferences as they create custom maps using Mapserver and getting attribute data to display from your database-du-jour... well, you could use CF to do that. If CF integrated with Mapserver seamlessly, then that would be even better, howver, that is not possible as of yet. In the meantime you could use the CFHTTP method I wrote below to accomplish the map-drawing part. If, for some reason, you didn't want to use or couldn't use CF, PHP or Perl would be your other options within the limitations they impose. In short... CF is to Mapserver as PHP or Perl is to Mapserver. Hth. Please let me know if you need further clarification, and I would be happy to help. Also, pl. reply directly to the forum so others might benefit from the discussion. Thanks, pk'/ > > -----Original Message----- > From: Puneet Kishor [mailto:pkishor at geoanalytics.com] > Sent: Tuesday, February 26, 2002 12:21 PM > To: 'janderson at PacificDataServices.com'; > mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Example of Cold Fusion.... > > > > I am new to using mapserver; however, experienced in cold > > fusion and was > > wondering if anyone could send me an example exactly how you > > can integrate > > this tool with cold fusion? > > > can't really, in the mapscript kind-of way, at least not yet. > However, you > can do something like this... works quite well. > > > > > > > > > > > url="http://server/cgi-bin/mapserv.exe?map=#map#&layer=#layer# > &zoomsize=#zoo > msize#&mode=#mode#&zoomdir=#zoomdir#&mapext=shapes" > method="get" > resolveurl="true"> > > > > > #cfhttp.FileContent# > > > > > > > hth. > > pk/ > From steve.lime at dnr.state.mn.us Wed Feb 27 10:40:32 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 27 Feb 2002 12:40:32 -0600 Subject: [mapserver-users] Sequence of layers Message-ID: That's one way. There is a mechanism in the mapserver structures for doing this but I don't think it's been exposed through any of the scripting languages. I'll let the folks at DMSolutions expand on that if they care to. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Lowell Filak" 02/27/02 10:51AM >>> Alternate solution:? http://mapserver.gis.umn.edu/wilma/mapserver-users/0102/msg00010.html Lowell F. The following message was sent by Lyndon Zimmermann on Wed, 27 Feb 2002 14:29:27 +1030. > Greetings all, > > We're running straight Mapserver for the Bioenergy Atlas for Australia > and one of the limitations I see is the inability (I presume I'm right > here) to control the sequence of presentation of layers, aside from the > mapfile. Aside from multiple .map files, what options exist for > altering this sequence? > > Ditto theme colours and hash. > > Regards, > > Lyndon Z > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > LOW RAINFALL AGROFORESTRY RESEARCH UNIT > Affiliated with the CRC for Plant Based Management of Dryland Salinity > > University of Adelaide Department of Agronomy and Farming Systems > Physical address: Hannaford Building (via Gate 3) Waite Campus, South > Australia > Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia > Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 > Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au > > Bionergy Atlas Website: > http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html > > Unless otherwise stated, the content of this message and attachments may > be forwarded or quoted, with due acknowledgement. No representation is > made that this email is free of viruses. Virus scanning is recommended > and is the responsibility of the recipient. From assefa at dmsolutions.ca Wed Feb 27 11:06:36 2002 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Wed, 27 Feb 2002 14:06:36 -0500 Subject: [mapserver-users] Sequence of layers References: Message-ID: <3C7D2E3C.E3A4BDB7@dmsolutions.ca> Hi there, There has been an addition recently to php/mapscript of two sets of functions relative to layer's sequence : (these functions applies on the map object) - boolean setlayersdrawingorder(array layeryindex) Set the layer's order array. The argument passed must be a valid array with all the layer's index. Return TRUE on success or else FALSE. - array getlayersdrawingorder() Return an array containing layer's index in the order which they are drawn. and boolean moveLayerUp(int layerindex) Move layer up in the hierarcy of drawing. boolean moveLayerDown(int layerindex) Move layer down in the hierarcy of drawing. The idea is to change the layer's order when the map is drawn or saved. Later, Steve Lime wrote: > That's one way. There is a mechanism in the mapserver structures for > doing this but I don't > think it's been exposed through any of the scripting languages. I'll > let the folks at DMSolutions > expand on that if they care to. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Lowell Filak" 02/27/02 10:51AM >>> > Alternate solution:? > http://mapserver.gis.umn.edu/wilma/mapserver-users/0102/msg00010.html > Lowell F. > > The following message was sent by Lyndon Zimmermann > on Wed, 27 Feb 2002 14:29:27 > +1030. > > > Greetings all, > > > > We're running straight Mapserver for the Bioenergy Atlas for > Australia > > and one of the limitations I see is the inability (I presume I'm > right > > here) to control the sequence of presentation of layers, aside from > the > > mapfile. Aside from multiple .map files, what options exist for > > altering this sequence? > > > > Ditto theme colours and hash. > > > > Regards, > > > > Lyndon Z > > -- > > Lyndon Zimmermann > > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > > > LOW RAINFALL AGROFORESTRY RESEARCH UNIT > > Affiliated with the CRC for Plant Based Management of Dryland > Salinity > > > > University of Adelaide Department of Agronomy and Farming Systems > > Physical address: Hannaford Building (via Gate 3) Waite Campus, > South > > Australia > > Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia > > Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577 > > Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au > > > > Bionergy Atlas Website: > > > http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html > > > > > Unless otherwise stated, the content of this message and attachments > may > > be forwarded or quoted, with due acknowledgement. No representation > is > > made that this email is free of viruses. Virus scanning is > recommended > > and is the responsibility of the recipient. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- From michel at omnisystem.com.br Wed Feb 27 11:32:15 2002 From: michel at omnisystem.com.br (Michel M. dos Santos) Date: Wed, 27 Feb 2002 16:32:15 -0300 Subject: [mapserver-users] ShapefileObj without write in file Message-ID: <02022716321502.03188@cartman.omni> Hello all, 2 questions : a) Is it possible to create with mapscript/php a new object ShapefileObj without write any file in disk ? b) I want to show one or more points in my map, is possible to do it without a layer with these points ? thanks, -- []'s Michel M. dos Santos From steve.lime at dnr.state.mn.us Wed Feb 27 11:04:46 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 27 Feb 2002 13:04:46 -0600 Subject: [mapserver-users] esri-sde & mapserver 3.5 ??? Message-ID: See attached mapfile. This is also online at: http://www.dnr.state.mn.us/cgi-bin/mapserv_sde?map=/export/stlime/public_html/sde/test.map Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "mikee" 02/26/02 01:33PM >>> please help me, who can me tell, how i can work with esri-sde and mapserver 3.5? give me please an example-map-file. ---> mfg mikeE. :-) ---> mail: mike at mikee.de ---> @web: http://www.mikee.de ---> @wap: http://www.mikee.de/wap (dinge, die die welt nicht braucht!) ---> icq: 129278959 ---> siehe auch: ---> www.hallelinks.de ---> www.rettet-die-berliner-bruecke.de ---> www.buergerforum-halle.de ---> www.ohnesocken.de ---> www.elstermanns.de ---> www.tonart-halle.de -------------- next part -------------- A non-text attachment was scrubbed... Name: test_sde.map Type: application/octet-stream Size: 2657 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Wed Feb 27 14:26:30 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 27 Feb 2002 16:26:30 -0600 Subject: [mapserver-users] ShapefileObj without write in file Message-ID: You don't have to use a shapefile. You can use inline features, I think there's an addFeature method for layers. Or you can draw them directly using the shapeObj/pointObj draw method. Either way you don't write anything to disk. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Michel M. dos Santos" 02/27/02 01:32PM >>> Hello all, 2 questions : a) Is it possible to create with mapscript/php a new object ShapefileObj without write any file in disk ? b) I want to show one or more points in my map, is possible to do it without a layer with these points ? thanks, -- []'s Michel M. dos Santos From Antti.Roppola at brs.gov.au Wed Feb 27 15:44:01 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Thu, 28 Feb 2002 10:44:01 +1100 Subject: [mapserver-users] Sequence of layers Message-ID: <595FE28AB1EBD111920F0060B06B3DD70730C69C@ACTMAIL2> Another option would be to keep .map file fragments of each layer and use CGI to assemble a map file in the desired order. I was going to do this, but Mapscript was a much neater way of doing it. :o) Antti -----Original Message----- The following message was sent by Lyndon Zimmermann on Wed, 27 Feb 2002 14:29:27 +1030. > Greetings all, > > We're running straight Mapserver for the Bioenergy Atlas for Australia > and one of the limitations I see is the inability (I presume I'm right > here) to control the sequence of presentation of layers, aside from the > mapfile. Aside from multiple .map files, what options exist for > altering this sequence? > > Ditto theme colours and hash. > > Regards, > > Lyndon Z From woodbri at swoodbridge.com Wed Feb 27 17:56:10 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 27 Feb 2002 20:56:10 -0500 Subject: [mapserver-users] Tigerline References: Message-ID: <3C7D8E3A.1F64CCB0@swoodbridge.com> Ashley, Structure your data like this: /mapdata/tiger2k/{SS}/{SS}{CCC}/{files} where {SS} is the state fips code {CCC} is the fips county code {files} are all the files for that state+county I would also put boundary files that are larger than a county and other datasets that cover the whole US in something like: /mapdata/us /mapdata/canada /mapdata/mexico /mapdata/oceans etc then create a tileindex for all the files under tiger2k and create shptree indexes for the tileindex and the files in the other directories. That should get you up and running! You can see my version running with only the eastern half the US loaded at http://swoodbridge.com/web2/nmap it is using 9 GIGS -Steve W. > Ashley Joyce wrote: > > I have the mapserver demo version working properly and would like to > use data from the tigerline site for the USA. I will start with one > state at a time.... its heavy on space at around 3 -4 Gig. Can anyone > give me some advice on where to get some help or point to some > documentation for structuring the data files so it will work with > mapserver.... I'm still new to this product and haven't quite got my > head around all of it yet. I'm not very familiar with the GIS > structure. I'm running on a linux machine with apache. > > Thanks, > > Ashley Joyce From woodbri at swoodbridge.com Wed Feb 27 18:27:22 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 27 Feb 2002 21:27:22 -0500 Subject: [mapserver-users] Zooming Strangeness References: <3C6D1570.71B18BA2@swoodbridge.com> Message-ID: <3C7D958A.943576D3@swoodbridge.com> I never saw any response to this post, I am somewhat at a loss on this. Does anyone have any ideas. DM Solutions guys, Does the code in GMap that maps from pixel to map units work if I am using lat/long data instead of meters like the original app was using? Would it account for the symptoms I am seeing? Any help would be appreaciated, -Steve W. Stephen Woodbridge wrote: > > Hi all, > > I am using a modified version of GMap75 which is working great, but I > have run into a strange problem related to zooming which may or may not > be related to the GMap code. I am using > > EXTENT -180.0 -90.0 180.0 90.0 > UNITS DD > > PROJECTION > "proj=latlong" > END > > and all my data is in lat/long coordinates. > > Here are two of the symptons: > > 1) I am zoom in to +-0.013 degrees (approx. 0.75 miles over 600 pix) > with a marker in the center of the image. I zoom out using rosa and the > GMap code and my marker is still at the same lat/long, the image zooms > out but has shifted so that the marker is now center on the lower left > quarter of the image like (M => marker position): > > +--------------------+ +--------------------+ > + + + + > + + + + > + + + + > + + < before + + > + M + + + > + + + + > + + + + > + + after > + M + > + + + + > +--------------------+ +--------------------+ > > If I recenter/pan (using rosa) and clicking on the marker it moves > correctly to the center. > > 2) I am zoomed to the full extents of the map and I try to zoom in on > roughly a 4 state area using rosa and the GMap code. I get the zoom but > the rectangle that is zoomed to is positioned significantly below the > rectangle I selected. For example, I zoom in on Massachussetts and I end > up somewhere in the Carribean. Likewise, is I try to pan to the correct > location using the reference map, I have to click up in Canada to end up > in Mass. I think there is also a horizontal shift like in 1) above so > these are both probably the same problem only magnified by scale. > > Anyone have any ideas? I this an artifact that GMap75 was designed > around different assumptions regard the output projection? > > You can try it out at > > http://swoodbridge.com/cgi-bin/geo > http://swoodbridge.com/web2/nmap > > I only have Tiger data loaded for the eastern half of the US. > > Thanks for the help, > Stephen Woodbridge From SDunning at nephrology.org Thu Feb 28 08:42:43 2002 From: SDunning at nephrology.org (Stephan Dunning) Date: Thu, 28 Feb 2002 10:42:43 -0600 Subject: [mapserver-users] Zooming Strangeness Message-ID: Stephen, I had what could have been a similar issue not too long ago. Here's the message I posted. ******************** I could be wrong or this may have already been discovered, but I think I found a slight bug in the gmap75.php file that affects the zoom and query rectangles. The GMap75CheckClick() function includes the following code: if ($oPixelRect->minx > $oPixelRect->maxx) { // Use intval() to avoid dfTmp becoming a reference // to $oPixelRect->minx with PHP4 !?!?!? $dfTmp = intval($oPixelRect->minx); $oPixelRect->set("minx",$oPixelRect->maxx); $oPixelRect->set("maxx",$dfTmp); } **line of code in question** if ($oPixelRect->miny < $oPixelRect->maxy) **line of code in question** { $dfTmp = intval($oPixelRect->miny); $oPixelRect->set("miny", $oPixelRect->maxy); $oPixelRect->set("maxy", $dfTmp); } } Should this - "if ($oPixelRect->miny < $oPixelRect->maxy)" be this - "if ($oPixelRect->miny > $oPixelRect->maxy)" instead? Thanks, Stephan ******************** Maybe this will help. -----Original Message----- From: Assefa Yewondwossen [mailto:assefa at dmsolutions.ca] Sent: Thursday, February 28, 2002 9:55 AM To: Stephen Woodbridge Cc: MapServer List Subject: Re: [mapserver-users] Zooming Strangeness Hi there, I am not sure what the problem is but I am going to look at it this afternoon. Stephen, is it possible for you to send me the necessary files (map, phpcode, data ...) so I can try to reprodue the problem here. Later, Stephen Woodbridge wrote: > I never saw any response to this post, I am somewhat at a loss on this. > Does anyone have any ideas. > > DM Solutions guys, > > Does the code in GMap that maps from pixel to map units work if I am > using lat/long data instead of meters like the original app was using? > > Would it account for the symptoms I am seeing? > > Any help would be appreaciated, > -Steve W. > > Stephen Woodbridge wrote: > > > > Hi all, > > > > I am using a modified version of GMap75 which is working great, but I > > have run into a strange problem related to zooming which may or may not > > be related to the GMap code. I am using > > > > EXTENT -180.0 -90.0 180.0 90.0 > > UNITS DD > > > > PROJECTION > > "proj=latlong" > > END > > > > and all my data is in lat/long coordinates. > > > > Here are two of the symptons: > > > > 1) I am zoom in to +-0.013 degrees (approx. 0.75 miles over 600 pix) > > with a marker in the center of the image. I zoom out using rosa and the > > GMap code and my marker is still at the same lat/long, the image zooms > > out but has shifted so that the marker is now center on the lower left > > quarter of the image like (M => marker position): > > > > +--------------------+ +--------------------+ > > + + + + > > + + + + > > + + + + > > + + < before + + > > + M + + + > > + + + + > > + + + + > > + + after > + M + > > + + + + > > +--------------------+ +--------------------+ > > > > If I recenter/pan (using rosa) and clicking on the marker it moves > > correctly to the center. > > > > 2) I am zoomed to the full extents of the map and I try to zoom in on > > roughly a 4 state area using rosa and the GMap code. I get the zoom but > > the rectangle that is zoomed to is positioned significantly below the > > rectangle I selected. For example, I zoom in on Massachussetts and I end > > up somewhere in the Carribean. Likewise, is I try to pan to the correct > > location using the reference map, I have to click up in Canada to end up > > in Mass. I think there is also a horizontal shift like in 1) above so > > these are both probably the same problem only magnified by scale. > > > > Anyone have any ideas? I this an artifact that GMap75 was designed > > around different assumptions regard the output projection? > > > > You can try it out at > > > > http://swoodbridge.com/cgi-bin/geo > > http://swoodbridge.com/web2/nmap > > > > I only have Tiger data loaded for the eastern half of the US. > > > > Thanks for the help, > > Stephen Woodbridge -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- From steve.lime at dnr.state.mn.us Wed Feb 27 09:19:50 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 27 Feb 2002 11:19:50 -0600 Subject: [mapserver-users] diff between shp2img and mapserv Message-ID: The biggest difference between the programs is in how layer STATUS is interpreted. Shp2img takes what's in the mapfile at face value. That is, if the STATUS is ON/DEFAULT the layer is drawn, if OFF it is not. Mapserv by default assumes a layer is OFF unless explicitly requested by the user (DEFAULT layers are always on). Shp2img also ignores anything in the WEB section. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Francois Michel Le Tourneau 02/27/02 04:04AM >>> Hi ! I have made a few experiments and confirmed that shp2img does what I want whereas mapserv does not... Have nayone experienced that and could anyone give me some hints to know what i should look after in order to understand the problem ??? Thanks in advance FMLT *********************************************************************** Francois-Michel Le Tourneau Charg? de Recherches au CNRS Centre de Recherche et de Documentation sur l'Am?rique Latine (UMR 7530) Tel. 01 44 39 86 85 Fax. 01 45 48 79 58 E-mail : Francois.Michel.Le.Tourneau at ens.fr ***********************************************************************