From pkishor at GeoAnalytics.com Sun Sep 1 14:28:46 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sun, 1 Sep 2002 16:28:46 -0500 Subject: [mapserver-users] map scale questions In-Reply-To: <001b01c2506a$23809520$12d713ac@ciasc.gov.br> Message-ID: Did I answer this earlier? I forget... On Friday, August 30, 2002, at 04:13 PM, gabriel wrote: > Dear Listers. > > I have some images on JPG - Bitmaps JPEG format: > > width 500 pixels, height 400 pixels, dpi X: 72, dpi Y: 72, compataction: > JPEG, type: RGB 24 bits. > > .. > > What is the best format (full information) to display the images on MS ? the best format really is mostly PNG. It is opensource, it is better quality than jpegs, at least for mapping purposes, and supports transpencies if you ever were to need 'em. > > I have Corel Photo-Paint or Photoshop to convert the format ? > > I'd like to display them with full color. > convert them using any program. PNG supports 24-bit color... everything that is good about gif and jpeg, and nothing that is bad. More info at http://www.libpng.org/pub/png/ hth. pk/ From pkishor at GeoAnalytics.com Sun Sep 1 14:25:29 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sun, 1 Sep 2002 16:25:29 -0500 Subject: [mapserver-users] legend "feature"? In-Reply-To: <200208301753.AA1992032316@cshore.com> Message-ID: <57107B6C-BDF1-11D6-BBC6-0003936306C2@geoanalytics.com> On Friday, August 30, 2002, at 04:53 PM, TCHaddad wrote: > Hello, > > I just inserted a whole bunch of scale dependant classes into the > layers in my mapfile, so that the symbology in my maps will change as > the user zooms in and out. works very well visually. > > However, I noticed that now if I generate a legend at a particular zoom > level, I get all the symbols associated with every layer displayed in > the map. For example, I get 3 legend entries with 3 different symbols > when I turn on the layer defined below: > > LAYER > NAME ushighway > GROUP Roads > STATUS OFF > TYPE LINE > DATA "D:/gis/ushwy" > #MINSCALE > MAXSCALE 3000000 > CLASS > MAXSCALE 100000 > NAME "US Highway" > TEMPLATE "ttf.htm" > SYMBOL 'circle1' > COLOR 54 54 54 > SIZE 3 > OVERLAYSYMBOL 'circle1' > OVERLAYCOLOR 25 25 112 > OVERLAYSIZE 1 > END > CLASS > MAXSCALE 700000 > MINSCALE 100001 > NAME "US Highway" > SYMBOL 'circle1' > COLOR 25 25 112 > SIZE 2 > END > CLASS > MINSCALE 700001 > NAME "US Highway" > TEMPLATE "ttf.htm" > SYMBOL 'circle1' > COLOR 130 130 130 > SIZE 1 > END > END > > I understand if I take out the NAME item from 2 of the Classes, that I > will only get one legend entry per layer, but then nothing garuntees > that my legend will have the correct symbol according to my zoom level. > > Is there something I am missing in my definition of the Layer, or is > this a "feature" of how legends work? > well, first of all... afaik, this is a "feature" of how at least _this_ legend works. You have a name, it will display (subject to scale conditions, of course). You don't have a name, it won't display. If you take NAME from 2 of your classes, those classes will be drawn in the map, but they will never show up in the legend. Only the class with the NAME still in the map file will show up in the legend when it lights up in the map because of its scale becoming active. That said, don't you want the legend to display the layer that is in the map "now"? If not, then you have to find different ways to legend... one option would be to use HTML Legends for which you will need at least mapserver version > 3.5 (check the docs... I know html leg don't work with 3.5 because I have that; might be 3.6.1). With html leg (again afaik), you can control each layer separately, hence you can logic it out (or in) with mapscript. Alternatively, you can paint a static legend that you can make in a graphics program and save. someone, correct me if I am wrong. pk/ From pkishor at GeoAnalytics.com Sun Sep 1 23:04:11 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 2 Sep 2002 01:04:11 -0500 Subject: [mapserver-users] distance search in PLSS In-Reply-To: Message-ID: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex12 I have posted a perl script called plsscalc.pl at the above wiki. Given a township, range, section, quarter-section, and a search radius in miles, this script will spit out all the quarter-sections within the search radius of the origin. Assumes regular and continuous coverage of PLSS. Hope this helps someone. pk/ On Thursday, August 29, 2002, at 09:52 AM, Puneet Kishor wrote: > Thanks for the advice Ed. I thought of generating a table, but I really > want to do this with a script so I can specify the distance. Anyway... > all this discussion has got me thinking and I am putting together a > Perl script that might be able to do what I want. When I get it working > right I will post it here for others. > > Many thanks, > > pk/ > > > On Wednesday, August 28, 2002, at 11:44 AM, Ed McNierney wrote: > >> Puneet - >> >> For the quarter-mile radius case, I would simply generate a 8 x 4 x >> 36 = 1152-element table. Each quarter-section has eight neighbors >> within a quarter-mile, in the compass directions N, NE, E, SE, S, SW, >> W, and NW. Each row of the table is: >> .. From jimmy at deefa.com Sun Sep 1 23:23:19 2002 From: jimmy at deefa.com (jimmy at deefa.com) Date: Mon, 2 Sep 2002 02:23:19 -0400 Subject: [mapserver-users] more on projections Message-ID: <128590-2200291262319115@M2W041.mail2web.com> Thanks for the advice about projections with the funny coords system guys.. next question.. - I know that projections are related to "flattening" a map of the earth and the different systems used to do this, but do they also make it possible to say, have all our geographic data using eastings and northings, and some custom data layers with latlong coords? thanks James -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From j.macgill at geography.leeds.ac.uk Mon Sep 2 03:58:42 2002 From: j.macgill at geography.leeds.ac.uk (James Macgill) Date: Mon, 02 Sep 2002 11:58:42 +0100 Subject: [mapserver-users] Java - Mapserver Message-ID: <5.1.0.14.0.20020902115814.02d20c78@geog.leeds.ac.uk> At 14:16 30/08/2002 -0400, Dave McIlhagga wrote: Hi, first off I should say that as one of the lead developers on GeoTools my opinions may be biased ;-) >I'm not sure that GeoTools can quite replace everything that MapServer has >to offer. For one thing, there is a heavy reliance on client-side java >which is not an option for many (if not most?) MapServer users/developers. What you say is absolutely right for the first version of GeoTools (now known as GT1) which used Java1.1 only code and was targeted directly at clients. However, for the last 8 months or so we have started from a clean slate and developed a new version of GeoTools (GT2) using Java1.4 which is aimed far more at the server side than the old code base. GT2 follows the OGC specs where possible and builds on the excellent Java Topology Suite. In fact, we have just put up a first implementation of the WMS spec with support for the new Styled Layer Descriptors from the OGC. It's still a little slow at the moment but SLD does allow for very good control over the appearance of map features. The WMS currently supports Shapefiles and PostGIS (MIF/MID and GML should be easy to add as there are datasource implementations in GT2). Right now we are working on improving performance, checking conformance (it works ok with the cubewerx client) and developing a configuration script (something like the map files in mapserver but in XML) If you're interested, I can send you the .war file to play with or provide details for obtaining the whole GT2 codebase. All the best James -- James Macgill Center for Computational Geography Spell Checker (c) Creative Spelling inc (aka my dyslexic brain) http://www.geotools.org the open source java mapping toolkit. From bpicinbono at esquirolcad.fr Mon Sep 2 02:25:49 2002 From: bpicinbono at esquirolcad.fr (Blaise Picinbono) Date: Mon, 2 Sep 2002 11:25:49 +0200 Subject: [mapserver-users] how to make the mapserv cgi work Message-ID: <000001c25262$c35ab6d0$0f01a8c0@internet.net> Hi the list help wanted I'm fine with mapserver cgi working on my local server (windows and linux). Now, Iwant to make it work on my internet site. As the web server is running under Linux, I compile mapserver_361 (I tried also with mapserver_362) (./configure, make) and I put the result mapserv to my cgi-bin directory. When I hit the cgi (http://www.mydomain/cgi-bin/mapserv), I've got a window telling me if I want to open or download the file. I think it is because without any extension, the server doesn't understand the script tobe an executable. So I change the name to mapserv.cgi; and now the sever answer me "The server encountered an internal error or misconfiguration and was unable to complete your request". I made sure that the cgi-bin repertory isreadable and executable for everybody, as well as my mapserv (or mapserv.cgi) file. I'm wondering if the trouble come from the fact my server only work with perl script and mapserv is not written in perl. Is it true ? Is mapserv a perl script ? If not, in which langage is it written ? Do you have any information about installing mapserver on remote internet sever ? thanks in advance Blaise ------------------------------------------------- bpicinbono at esquirolcad.fr ------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail2stern at gmx.net Mon Sep 2 07:49:52 2002 From: mail2stern at gmx.net (Stefan Stern) Date: Mon, 02 Sep 2002 15:49:52 +0100 Subject: [mapserver-users] mapfile correction Message-ID: <3D737A90.4020504@gmx.net> Hi all, I want to display a shapefile, but I don't receive an image output in mapserver. The template file turns up in the browser and there are no error messages in the apache logfile. Filepath and mapextent are correct too. Is there an error in my mapfile?: ##################################### NAME Test #complete extend EXTENT 264539.5 191653.5 269773.5 199848.5 SIZE 400 400 SHAPEPATH "data" WEB TEMPLATE "28aug.html" IMAGEPATH "/home/userdirk/public_html/tmp/" IMAGEURL "/~userdirk/tmp/" MAXSCALE 50000 MINSCALE 4000 END SYMBOL # define symbols NAME "circle" TYPE ELLIPSE POINTS 2 2 END FILLED TRUE END LAYER # start of the gps layer object NAME "gps" DATA gps STATUS ON TYPE POINT CLASS # gps points class NAME "Gps" COLOR 128 255 164 SYMBOL 'circle' SIZE 6 END # end of gpsp class object END # GPS Layer End LAYER # Shaded Relief Raster NAME "casi" DATA "raster/valley.tif" STATUS OFF TYPE RASTER #OFFSITE 0 END END # end of map file ################################## Thank's and Regards, Stefan From toni at giscampus.udg.es Mon Sep 2 08:53:12 2002 From: toni at giscampus.udg.es (=?iso-8859-1?Q?Toni_Hern=E1ndez?=) Date: Mon, 2 Sep 2002 17:53:12 +0200 Subject: [mapserver-users] what version of mapserver is installed? References: <5.1.0.14.0.20020902115814.02d20c78@geog.leeds.ac.uk> Message-ID: <008501c25298$d7981490$0e2fce82@udg.es> hello everybody!!! Is there anyway to know what version of mapserver is installed in one computer? Thanks in advance ----- Original Message ----- From: "James Macgill" To: Sent: Monday, September 02, 2002 12:58 PM Subject: Re: [mapserver-users] Java - Mapserver > At 14:16 30/08/2002 -0400, Dave McIlhagga wrote: > Hi, first off I should say that as one of the lead developers on GeoTools > my opinions may be biased ;-) > > >I'm not sure that GeoTools can quite replace everything that MapServer has > >to offer. For one thing, there is a heavy reliance on client-side java > >which is not an option for many (if not most?) MapServer users/developers. > > What you say is absolutely right for the first version of GeoTools (now > known as GT1) which used Java1.1 only code and was targeted directly at > clients. However, for the last 8 months or so we have started from a clean > slate and developed a new version of GeoTools (GT2) using Java1.4 which is > aimed far more at the server side than the old code base. GT2 follows the > OGC specs where possible and builds on the excellent Java Topology Suite. > > In fact, we have just put up a first implementation of the WMS spec with > support for the new Styled Layer Descriptors from the OGC. It's still a > little slow at the moment but SLD does allow for very good control over the > appearance of map features. > > The WMS currently supports Shapefiles and PostGIS (MIF/MID and GML should > be easy to add as there are datasource implementations in GT2). Right now > we are working on improving performance, checking conformance (it works ok > with the cubewerx client) and developing a configuration script (something > like the map files in mapserver but in XML) > > If you're interested, I can send you the .war file to play with or provide > details for obtaining the whole GT2 codebase. > > All the best > > James > > -- > James Macgill > Center for Computational Geography > Spell Checker (c) Creative Spelling inc (aka my dyslexic brain) > http://www.geotools.org the open source java mapping toolkit. > > > From morissette at dmsolutions.ca Mon Sep 2 10:23:08 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 02 Sep 2002 13:23:08 -0400 Subject: [mapserver-users] what version of mapserver is installed? References: <5.1.0.14.0.20020902115814.02d20c78@geog.leeds.ac.uk> <008501c25298$d7981490$0e2fce82@udg.es> Message-ID: <3D739E7C.7862DEA9@dmsolutions.ca> Toni Hern?ndez wrote: > > hello everybody!!! > Is there anyway to know what version of mapserver is installed in one > computer? > There are a few ways: 1- If you have an application running with the 'mapserv' CGI, then you can look at the HTML source of a page produced by MapServer and at the top you'll find a HTML comment with the version information. This works with any version of MapServer back to at least 3.3 and probably even older versions. e.g. 2- Starting around version 3.4, you can execute "mapserv -v" at a command prompt and get the equivalent of #1 above. 3- If using PHP MapScript then you can call ms_getVersion() With Perl or other MapScript, it should be msGetVersion() 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 morissette at dmsolutions.ca Mon Sep 2 10:27:03 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 02 Sep 2002 13:27:03 -0400 Subject: [mapserver-users] mapfile correction References: <3D737A90.4020504@gmx.net> Message-ID: <3D739F67.D11B1402@dmsolutions.ca> Did you try setting STATUS DEFAULT in your layers and removing the MINSCALE/MAXSCALE settings? Also, did you check that your IMAGEPATH directory exists and is writable by the web user, and is accessible at the specified IMAGEURL via the web server? Daniel Stefan Stern wrote: > > Hi all, > > I want to display a shapefile, but I don't receive an image output in > mapserver. > > The template file turns up in the browser and there are no error > messages in the apache logfile. > Filepath and mapextent are correct too. > > Is there an error in my mapfile?: > ##################################### > NAME Test > > #complete extend > EXTENT 264539.5 191653.5 269773.5 199848.5 > > SIZE 400 400 > SHAPEPATH "data" > > WEB > TEMPLATE "28aug.html" > IMAGEPATH "/home/userdirk/public_html/tmp/" > IMAGEURL "/~userdirk/tmp/" > MAXSCALE 50000 > MINSCALE 4000 > END > > SYMBOL # define symbols > NAME "circle" > TYPE ELLIPSE > POINTS 2 2 END > FILLED TRUE > END > > LAYER # start of the gps layer object > NAME "gps" > DATA gps > STATUS ON > TYPE POINT > > CLASS # gps points class > NAME "Gps" > COLOR 128 255 164 > SYMBOL 'circle' > SIZE 6 > END # end of gpsp class object > > END # GPS Layer End > > LAYER # Shaded Relief Raster > NAME "casi" > DATA "raster/valley.tif" > STATUS OFF > TYPE RASTER > #OFFSITE 0 > END > > END # end of map file > ################################## > > Thank's and Regards, > Stefan From ed at topozone.com Mon Sep 2 10:41:30 2002 From: ed at topozone.com (Ed McNierney) Date: Mon, 2 Sep 2002 13:41:30 -0400 Subject: [mapserver-users] what version of mapserver is installed? Message-ID: <13858AA1A74F30419F319ACB66A9D1220E85B2@mercator.topozone.com> Toni - >From a command shell or prompt, type mapserv -v And you'll get complete version and configuration info. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Toni Hern?ndez [mailto:toni at giscampus.udg.es] Sent: Monday, September 02, 2002 11:53 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] what version of mapserver is installed? hello everybody!!! Is there anyway to know what version of mapserver is installed in one computer? Thanks in advance ----- Original Message ----- From: "James Macgill" To: Sent: Monday, September 02, 2002 12:58 PM Subject: Re: [mapserver-users] Java - Mapserver > At 14:16 30/08/2002 -0400, Dave McIlhagga wrote: > Hi, first off I should say that as one of the lead developers on > GeoTools my opinions may be biased ;-) > > >I'm not sure that GeoTools can quite replace everything that > >MapServer has > >to offer. For one thing, there is a heavy reliance on client-side > >java which is not an option for many (if not most?) MapServer users/developers. > > What you say is absolutely right for the first version of GeoTools > (now known as GT1) which used Java1.1 only code and was targeted > directly at clients. However, for the last 8 months or so we have > started from a clean > slate and developed a new version of GeoTools (GT2) using Java1.4 > which is aimed far more at the server side than the old code base. > GT2 follows the OGC specs where possible and builds on the excellent > Java Topology Suite. > > In fact, we have just put up a first implementation of the WMS spec > with support for the new Styled Layer Descriptors from the OGC. It's > still a little slow at the moment but SLD does allow for very good > control over the > appearance of map features. > > The WMS currently supports Shapefiles and PostGIS (MIF/MID and GML > should be easy to add as there are datasource implementations in GT2). > Right now we are working on improving performance, checking > conformance (it works ok with the cubewerx client) and developing a > configuration script (something like the map files in mapserver but in > XML) > > If you're interested, I can send you the .war file to play with or > provide details for obtaining the whole GT2 codebase. > > All the best > > James > > -- > James Macgill > Center for Computational Geography > Spell Checker (c) Creative Spelling inc (aka my dyslexic brain) > http://www.geotools.org the open source java mapping toolkit. > > > From dumper at mailz.nl Mon Sep 2 11:03:50 2002 From: dumper at mailz.nl (Peter Bruijnen) Date: Mon, 2 Sep 2002 20:03:50 +0200 Subject: [mapserver-users] how to find queryresult from external db in the map Message-ID: <002601c252ab$18411980$dada4bd5@default> I'm using mapserver (version 3.6) to query a cadastre map. When clicking on a parcel i get (via an asp-script) the users from that parcel. A parcel can have more then one user. Because of this one to many relationship it's not possible to include the users directly in de shape dbf. Otherwise this should be the easiest way i presume. Now the cadastre number selected in the shape is the link to an external access database with that same cadastre number. Al the corresponding records wil be shown (via asp-script). So far everything works (perfect) ... But i also want to search the other way around. Select a user from the access database (via another asp-script?) and highlight the corresponding parcels in de cadastre map. How can i do this. I'm quite new with Mapserver so any help is welcome. Thanks in advance, Peter Bruijnen -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Mon Sep 2 10:45:05 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 02 Sep 2002 13:45:05 -0400 Subject: [mapserver-users] mapfile correction References: <3D737A90.4020504@gmx.net> <3D739F67.D11B1402@dmsolutions.ca> <3D73A122.7070904@gmx.net> Message-ID: <3D73A3A1.35195CD@dmsolutions.ca> Stefan Stern wrote: > > you are right! STATUS DEFAULT is the key. > > But why doesn't "STATUS ON" work as well????? > The exact reasons behind this I'm not exactly sure... perhaps there is an historical reason? Having a distinction between DEFAULT, ON and OFF is definitely useful in MapScript, but the behavior with the mapserv CGI is a bit different: STATUS DEFAULT layers are ALWAYS visible STATUS ON is the same as OFF for the mapserv CGI... the layer is not displayed unless explicitly requested using the LAYER= CGI parameter. (In MapScript, layers with STATUS ON will show up on the map) -- ------------------------------------------------------------ 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 pgigoux at munistgo.cl Mon Sep 2 12:23:16 2002 From: pgigoux at munistgo.cl (Patricio Gigoux) Date: Mon, 2 Sep 2002 15:23:16 -0400 Subject: [mapserver-users] thanks In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220E85B2@mercator.topozone.com> References: <13858AA1A74F30419F319ACB66A9D1220E85B2@mercator.topozone.com> Message-ID: <200209021923.g82JNPs02214@shadow.munistgo.cl> thanks everybody I invite you to visit sig.munisto.cl/comuna/plano_regulador.php Patricio From Rich at GreenwoodMap.com Mon Sep 2 13:59:55 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Mon, 02 Sep 2002 14:59:55 -0600 Subject: [mapserver-users] distance search in PLSS In-Reply-To: References: Message-ID: <5.1.0.14.0.20020902144733.00a7f478@mail.GreenwoodMap.com> Puneet, et al, I followed this thread and I know that Puneet?s assumption is a ?regular and continuous coverage of PLSS?, but as a land surveyor, I have to throw on here. I do not mean to question Puneet?s application of his algorithm, but just for the record, I wanted to clarify what the PLSS is and is not. The PLSS is not, and was never intended to be ?regular? grid anything like a map projection system. The PLSS is not a mapping system that can be treated like a UTM or State Plane zone. It is a means for describing and conveying real property. Where a mapping system maintains rectangularity throughout a zone, the PLSS only attempted to maintain rectangularity within a single township, and even there it is not particularly rectangular. The east line of a township was to be geodetic north, with the rest of the lines parallel. The west line, being the east line of the next township, was also geodetic north, so obviously not parallel with the other lines in the township due to convergence. Similarly, the east-west lines were adjusted for convergence every four townships (depending on region) causing large east-west shifts every 24 miles as you go north or south. (Nearly ? mile at my latitude, 43N) In addition to the lack of rectangularity beyond the township, there are an endless array of other things that preclude a ?regular? coverage, such as water bodies and senior rights or surveys. Senior rights or surveys include things like Homestead Entry Surveys, Indian and Military Reservations, and state lines. Independent resurvey, which are quite common in some areas of the western states due to fraudulent original surveys, completely muck up the works. Sorry if I sound like I?m ranting. I don?t mean to be critical of anyone. The PLSS is a truly remarkable system that has served us well for nearly 225 years. I have a great respect for the PLSS, and I am just trying to share a bit of that. Rich At 01:04 AM 9/2/2002 -0500, you wrote: >I have posted a perl script called plsscalc.pl at the above wiki. Given a >township, range, section, quarter-section, and a search radius in miles, >this script will spit out all the quarter-sections within the search >radius of the origin. Assumes regular and continuous coverage of PLSS. > >Hope this helps someone. > >pk/ > > > >On Thursday, August 29, 2002, at 09:52 AM, Puneet Kishor wrote: > >>Thanks for the advice Ed. I thought of generating a table, but I really >>want to do this with a script so I can specify the distance. Anyway... >>all this discussion has got me thinking and I am putting together a Perl >>script that might be able to do what I want. When I get it working right >>I will post it here for others. > > >Richard W. Greenwood, PLS >Greenwood Mapping, Inc. >Rich at GreenwoodMap.com >(307) 733-0203 >http://www.GreenwoodMap.com From pkishor at GeoAnalytics.com Mon Sep 2 14:31:30 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 2 Sep 2002 16:31:30 -0500 Subject: [mapserver-users] distance search in PLSS In-Reply-To: <5.1.0.14.0.20020902144733.00a7f478@mail.GreenwoodMap.com> Message-ID: <586B42CB-BEBB-11D6-AF10-0003936306C2@geoanalytics.com> Rich, Thanks for the insight... just as valuable as what Chip (Hankley) provided to me earlier, and what I learned in my "Intro to GIS" class 15 years ago. What you guys say re PLSS is very true, and impt. to understand for anyone dealing with it. My assumption that it is a "regular and continuous coverage" is _only_ for the sake of using the perl script... nothing more. I can't predict irregularities, and have no confusion with convergence, etc. My problem was thus... given a piece of land that I happen to know has continuous coverage, I needed to identify all the qs within a given distance of a given qs. That is all. I need that to then further query a sql database to retrieve records that have been encoded with dtrsq. At this point I was not able to use a spatial approach to solving this, hence had to write the script. It was fun doing it (it is always fun writing arrays of hashes ). You are not ranting at all... thanks for a valuable reminder about a useful system. Besides, anything that is described as being "boustrophedonic" can't be all that bad . pk/ On Monday, September 2, 2002, at 03:59 PM, Richard Greenwood wrote: > Puneet, et al, > > I followed this thread and I know that Puneet?s assumption is a > ?regular and continuous coverage of PLSS?, but as a land surveyor, I > have to throw on here. I do not mean to question Puneet?s application > of his algorithm, but just for the record, I wanted to clarify what the > PLSS is and is not. > > The PLSS is not, and was never intended to be ?regular? grid anything > like a map projection system. The PLSS is not a mapping system that can > be treated like a UTM or State Plane zone. It is a means for > describing and conveying real property. > > Where a mapping system maintains rectangularity throughout a zone, the > PLSS only attempted to maintain rectangularity within a single > township, and even there it is not particularly rectangular. The east > line of a township was to be geodetic north, with the rest of the lines > parallel. The west line, being the east line of the next township, was > also geodetic north, so obviously not parallel with the other lines in > the township due to convergence. Similarly, the east-west lines were > adjusted for convergence every four townships (depending on region) > causing large east-west shifts every 24 miles as you go north or south. > (Nearly ? mile at my latitude, 43N) > > In addition to the lack of rectangularity beyond the township, there > are an endless array of other things that preclude a ?regular? > coverage, such as water bodies and senior rights or surveys. Senior > rights or surveys include things like Homestead Entry Surveys, Indian > and Military Reservations, and state lines. Independent resurvey, which > are quite common in some areas of the western states due to fraudulent > original surveys, completely muck up the works. > > Sorry if I sound like I?m ranting. I don?t mean to be critical of > anyone. The PLSS is a truly remarkable system that has served us well > for nearly 225 years. I have a great respect for the PLSS, and I am > just trying to share a bit of that. > > Rich > > At 01:04 AM 9/2/2002 -0500, you wrote: >> I have posted a perl script called plsscalc.pl at the above wiki. >> Given a township, range, section, quarter-section, and a search radius >> in miles, this script will spit out all the quarter-sections within >> the search radius of the origin. Assumes regular and continuous >> coverage of PLSS. >> >> Hope this helps someone. >> >> pk/ >> >> >> >> On Thursday, August 29, 2002, at 09:52 AM, Puneet Kishor wrote: >> >>> Thanks for the advice Ed. I thought of generating a table, but I >>> really want to do this with a script so I can specify the distance. >>> Anyway... all this discussion has got me thinking and I am putting >>> together a Perl script that might be able to do what I want. When I >>> get it working right I will post it here for others. >> >> >> Richard W. Greenwood, PLS >> Greenwood Mapping, Inc. >> Rich at GreenwoodMap.com >> (307) 733-0203 >> http://www.GreenwoodMap.com From rburghol at vt.edu Mon Sep 2 15:18:07 2002 From: rburghol at vt.edu (Robert W. Burgholzer) Date: Mon, 02 Sep 2002 18:18:07 -0400 Subject: [mapserver-users] thanks References: <13858AA1A74F30419F319ACB66A9D1220E85B2@mercator.topozone.com> <200209021923.g82JNPs02214@shadow.munistgo.cl> Message-ID: <3D73E39F.E169DD1@vt.edu> I believe there was an error in Patricio's URL. http://sig.munistgo.cl/comuna/plano_regulador.php -- Robert Burgholzer al?go?rithm n. A step-by-step problem-solving procedure, especially an established, recursive computational procedure for solving a problem in a finite number of steps. Invented by Al Gore. rburghol at vt.edu http://www.soulswimmer.net/ From woodbri at swoodbridge.com Mon Sep 2 16:14:03 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 2 Sep 2002 19:14:03 -0400 Subject: [mapserver-users] Mapserver and Spatial Extent In-Reply-To: <009c01c24ffb$a188adf0$0b220a0a@beast> Message-ID: <3D73B87B.1171.13BF14@localhost> James, The extents of a shapefile are stored in the file. Use shpdump and read the first few lines to get the extents. -Steve On 30 Aug 2002 at 10:02, James Anderson wrote: > > Hi, > > I need to know more about the EXTENT command in a Mapserver map file. I > have a shape file layer of Kampala. The shapefile is in WGS 84 projection. > The center of the Shapefile is lat=32.5747819077374 and > lon=0.320786584028765 I need to know how to work out the Extent values > from the lat and lon. My map file looks like this > > NAME EX1 > EXTENT ???? ???? ???? ???? > SIZE 600 600 > SHAPEPATH "C:\Documents and Settings\Steed\My Documents\mapping\kampala\shp" > PROJECTION > "proj=longlat" > "ellps=WGS84" > "datum=WGS84" > "no_defs" > END > LAYER > NAME "Kampala" > DATA kampala > STATUS DEFAULT > TYPE LINE > CLASS > COLOR 250 175 25 > END # end of class object > END # end of layer object > END # end of map file > > > If need to work out the values to put in by the ????s. I need some > formulas. When I put some random values in the extent, the mapserver > produces an image, yet it is plain white. I believe that this is because I > have the extent set to where there is no mapping data. I am still very new > to using this mapserver. I may have other errors in my map file. I need to > get this mapping to work. Can anyone help ?? > > Thanks, > > James. > > > > From woodbri at swoodbridge.com Mon Sep 2 18:24:38 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 2 Sep 2002 21:24:38 -0400 Subject: [mapserver-users] TRUETYPE not work In-Reply-To: <68107A9AF023EA439FF7CC2AD02D8FE503A506@pltnpo1.c-cor.com> Message-ID: <3D73D716.14575.8B4B70@localhost> William, Did you get this to work yet? Looks like you need to specify a font size. There are no defaults for any of this stuff. -Steve On 30 Aug 2002 at 16:12, Zhang, William wrote: > Steve, > > Yes, I have the MapFile Reference document. I did not specify font in my map > file just for simplifying the test. I thought that some default font would > be used by mapserver if no font is specified by user. Is this true? Anyway > now I add font related lines in the map file below. It still does not work. > > NAME alm > EXTENT -122.0837 37.6683 -122.1104 37.6885 > SIZE 800 600 > SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" > FONTSET "C:\Inetpub\wwwroot\itasca\test\fonts\fonts.list" > LAYER > TYPE LINE > STATUS DEFAULT > DATA alm > LABELITEM "FENAME" > CLASS > COLOR 255 0 0 > LABEL > TYPE TRUETYPE > ANTIALIAS > FONT arial > COLOR 0 0 0 > ANGLE AUTO > POSITION UC > END > END > END > END # end of map file > > I have one line in the fonts.list file > arial arial.ttf > > I also copy the arial.ttf file to the same directory as fonts.list located. > > Do I miss something else? > > Thank you for the help. > > > William > > > > -----Original Message----- > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > Sent: Thursday, August 29, 2002 7:32 PM > To: Zhang, William; mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] TRUETYPE not work > > > William, > > Do you have a Map file Reference document? > You need to look at the LABEL section, you will see that it mentions > a FONT tag which references an item in a FONTSET. The document will > also tell you how to set up the FONTSET file which will need to point > to the the fonts on your system. > > The documentation page can be found off the Mapserver home page. > > -Steve > > On 29 Aug 2002 at 22:04, Zhang, William wrote: > > > Hi, > > > > I got error in the map file below. If I comment out TRUETYPE releated > lines, > > the map file works. I downloaded the mapserv.exe from Windows Binary > > Download page, so it should be TRUETYPE enabled. Could somebody give me > help > > on this one? > > > > > > NAME alm > > EXTENT -122.0837 37.6683 -122.1104 37.6885 > > SIZE 800 600 > > SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" > > LAYER > > TYPE LINE > > STATUS DEFAULT > > DATA alm > > LABELITEM "FENAME" > > CLASS > > COLOR 255 0 0 > > LABEL > > TYPE TRUETYPE > > ANTIALIAS > > COLOR 0 0 0 > > ANGLE AUTO > > POSITION UC > > END > > END > > END > > END # end of map file > > > > > > Thanks, > > > > William Zhang > > > > Software Engineer > > C-Cor.net > > Phone: (925) 251-3019 > > Fax: (925) 467-0600 > > E-Mail: wzhang at c-cor.net > > > > > > From ycnyon at pd.jaring.my Mon Sep 2 21:43:04 2002 From: ycnyon at pd.jaring.my (YC Nyon) Date: Tue, 3 Sep 2002 12:43:04 +0800 Subject: [mapserver-users] RE: Advice Needed on Online Geoprocessing Message-ID: <002901c25304$85842600$28c897ca@domain> This is a follow-up post from my earlier question. Here's what I want to do 1. Users can enter a comma-delimited file or a shape file to a page (PHP or Cold Fusion) 2. The parameters they have to specify is the input and output projections and also the output format (shape, text, mapinfo) 3. Once submitted, the server will process and send the files or a link to the user e-mail. I'm sure that this can be done. currently i weighing the following options. 1. Use PHP-MS to create and reproject the shape files. Outputs to Mapinfo is using command line OGR2OGR 2. Use OGR2OGR only. Not sure if OGR can create shape files from comma delimited text. 3. Use PostGIS to reproject and OGR2OGR to convert to MapInfo. Basically the underlying process on all the options uses shplib and ogr but i need to know which is the best method. Currently i am in favour of option 3 since it's db-driven. management of the entire process would be easier. On this note, is PostGIS on windows via cywin stable? OS is Windows. comments are welcomed. nyon From Horst.Duester at bd.so.ch Tue Sep 3 02:42:51 2002 From: Horst.Duester at bd.so.ch (=?ISO-8859-1?Q?D=FCster_Horst?=) Date: Tue, 3 Sep 2002 10:42:51 +0100 Subject: [mapserver-users] MS_MAXSYMBOLS Message-ID: <5B025B1F39D6D4119F5700508BEEEC662DFC0A@srsofaioi4546.ktso.ch> Hi Is it possible to increase the max number of symbols from 64 to p.e. 200. What is the reason of the restriction to maximum 64 symbols?? Horst From Guenther_Jens at gmx.de Tue Sep 3 02:45:36 2002 From: Guenther_Jens at gmx.de (Guenther_Jens at gmx.de) Date: Tue, 3 Sep 2002 11:45:36 +0200 (MEST) Subject: [mapserver-users] php-Mapscript with Postgis-Support on Windows2k Message-ID: <12904.1031046336@www9.gmx.net> Hi! Did anybody allready compile php-mapscript with Postgis-Suppport on a Windows system? I'm really interested in getting the binaries. The available ones (dmsolutions) are build without postgis-support. In time we are trying to build it, but it stops again and again. :-( Thanks Jens -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net From wesp at gdv.com Tue Sep 3 04:08:51 2002 From: wesp at gdv.com (Oliver Wesp) Date: Tue, 3 Sep 2002 13:08:51 +0200 Subject: AW: [mapserver-users] MS_MAXSYMBOLS In-Reply-To: <5B025B1F39D6D4119F5700508BEEEC662DFC0A@srsofaioi4546.ktso.ch> Message-ID: <000e01c2533a$492ba1c0$1501a8c0@else> Yes. Change the value for MS_MAXSYMBOLS in mapsymbol.h and recompile mapserver. > Hi > Is it possible to increase the max number of symbols from 64 > to p.e. 200. > > From klauzier at NRCan.gc.ca Tue Sep 3 06:13:15 2002 From: klauzier at NRCan.gc.ca (=?iso-8859-1?Q?=22Lauzi=E8re=2C_Kathleen=22?=) Date: Tue, 3 Sep 2002 08:13:15 -0500 (CDT) Subject: [mapserver-users] Date: Tue, 3 Sep 2002 09:12:27 -0400 Message-ID: <06B403677C41D51194550002A55107D20EF1D3@s5-stf1-r1.nrn.nrcan.gc.ca> unsuscribe Kathleen Lauzi?re 880 Chemin Ste-Foy, Qc C.P. 7500, Ste-Foy, Qu?bec, G1V 4C7 klauzier at nrcan.gc.ca www.cgq.qgc.ca From TMitchell at lignum.com Tue Sep 3 09:04:47 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 3 Sep 2002 09:04:47 -0700 Subject: [mapserver-users] how to make the mapserv cgi work Message-ID: Are you able to telnet into the site and try running: >./mapserv to see what it tells? "Blaise Picinbono" To: Sent by: cc: owner-mapserver-users at lists. Fax to: gis.umn.edu Subject: [mapserver-users] how to make the mapserv cgi work 09/02/2002 02:25 AM Hi the list help wanted I'm fine with mapserver cgi working on my local server (windows and linux). Now, Iwant to make it work on my internet site. As the web server is running under Linux, I compile mapserver_361 (I tried also with mapserver_362) (./configure, make) and I put the result mapserv to my cgi-bin directory. When I hit the cgi (http://www.mydomain/cgi-bin/mapserv), I've got a window telling me if I want to open or download the file. I think it is because without any extension, the server doesn't understand the script tobe an executable. So I change the name to mapserv.cgi; and now the sever answer me "The server encountered an internal error or misconfiguration and was unable to complete your request". I made sure that the cgi-bin repertory isreadable and executable for everybody, as well as my mapserv (or mapserv.cgi) file. I'm wondering if the trouble come from the fact my server only work with perl script and mapserv is not written in perl. Is it true ? Is mapserv a perl script ? If not, in which langage is it written ? Do you have any information about installing mapserver on remote internet sever ? thanks in advance Blaise ------------------------------------------------- bpicinbono at esquirolcad.fr ------------------------------------------------- From lfilak at medinaco.org Tue Sep 3 10:34:37 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 3 Sep 2002 13:34:37 -0400 (EDT) Subject: [mapserver-users] PerlMapscript Reference FYI Message-ID: The latest version of the PerlMapscript Reference for 3.6 is temporarily available at: http://www.highwayengineer.co.medina.oh.us/mapserver/docs/perlmapscript-reference-3.6.1.html It should be moved into place in the main documentation path sometime soon. Lowell F. From saengpole at excite.com Tue Sep 3 11:00:04 2002 From: saengpole at excite.com (Krung Saengpole) Date: Tue, 3 Sep 2002 14:00:04 -0400 (EDT) Subject: [mapserver-users] gdXXX function not found. Message-ID: <20020903180004.A614BB77C@xmxpita.excite.com> Hi, I have trouble about functions in gd package. In gd.h, there are function prototypes, eg. gdImageCreateFromPng, but not found function definitions in gd.c. When I compiled this package, some errors occured. How to do with this trouble? I use regex-0.12 downloaded from www.boutell.com and patched version from www.rime.com.au/gd/. Thank you in advance.Krung ------------------------------------------------ Changed your e-mail? Keep your contacts! Use this free e-mail change of address service from Return Path. Register now! -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists.ahaigh at dsl.pipex.com Tue Sep 3 11:07:43 2002 From: lists.ahaigh at dsl.pipex.com (Andrew Haigh) Date: Tue, 03 Sep 2002 19:07:43 +0100 Subject: [mapserver-users] php-Mapscript with Postgis-Support on Windows2k References: <12904.1031046336@www9.gmx.net> Message-ID: <3D74FA6F.6060508@dsl.pipex.com> I attempted to find one a while back but so far I've had no joy. The only one someone provided was a broken archive. If you find one can you drop me a line. Thanks Andrew Guenther_Jens at gmx.de wrote: >Hi! > >Did anybody allready compile php-mapscript with Postgis-Suppport on a >Windows system? >I'm really interested in getting the binaries. The available ones >(dmsolutions) are build without postgis-support. > >In time we are trying to build it, but it stops again and again. :-( > >Thanks > Jens > > > > -- "Imagination is more important than knowledge." From saengpole at excite.com Tue Sep 3 11:12:58 2002 From: saengpole at excite.com (Krung Saengpole) Date: Tue, 3 Sep 2002 14:12:58 -0400 (EDT) Subject: [mapserver-users] gdXXX function not found. (correction) Message-ID: <20020903181258.E76A03E38@xmxpita.excite.com> Hi, Apologize me for the last message. I mistyped gd-1.8.4 not regex-0.12. Krung ------------------------------------------------ Changed your e-mail? Keep your contacts! Use this free e-mail change of address service from Return Path. Register now! -------------- next part -------------- An HTML attachment was scrubbed... URL: From sctweedy at NRCan.gc.ca Tue Sep 3 11:28:50 2002 From: sctweedy at NRCan.gc.ca (Tweedy, Scott) Date: Tue, 3 Sep 2002 14:28:50 -0400 Subject: [mapserver-users] Rosa query question Message-ID: <5ACEEE96F4F9D41190790002A528B51E027407AF@s0-ott-x11.nrn.nrcan.gc.ca> question about using the rosa applet to query the map. I have to zoom in to see the points I wish to query. When I zoom in and query the point using the TB_BUT_pquery_ parameter I get the right results for my query, but the map refreshes to its original view. Is there something special I have to set so that the map maintains its zoom level after querying the DBF file? Thanks in advance. st From steve.lime at dnr.state.mn.us Tue Sep 3 13:30:39 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 03 Sep 2002 15:30:39 -0500 Subject: [mapserver-users] Java - Mapserver Message-ID: I'd be interested in seeing the new code base. I think it's critical that MapServer have capabilities in the Java world. A SWIG-based version of java MapScript is one way to get there but we've been hearing about the limitations, primarily issues with threading. There are other options, perhaps the most intruiging would be leveraging GeoTools. There's no way, unless a bounty of developers appears, that MapServer will be re-written in Java. I'm not even sure that it's a good idea. What about the possibility of writing a set of classes on top of GeoTools to mimic MapScript? Sure, some things would have to be written from scratch, but I would imagine (having not seen the GT2 APIs) that much of the core functionality already exists in GeoTools (graphics creation/query). That would give you a pure Java version of MapServer/MapScript. The advantage of mimicing MapScript is that there's already a user/documentation/application base to draw from. You'd probably also have classes available to use the MapServer style of application development (for better or worse) with regular GeoTools components, thus extending MapScript and GeoTools. Thoughts? Steve >>> James Macgill 09/02/02 05:58AM >>> At 14:16 30/08/2002 -0400, Dave McIlhagga wrote: Hi, first off I should say that as one of the lead developers on GeoTools my opinions may be biased ;-) >I'm not sure that GeoTools can quite replace everything that MapServer has >to offer. For one thing, there is a heavy reliance on client-side java >which is not an option for many (if not most?) MapServer users/developers. What you say is absolutely right for the first version of GeoTools (now known as GT1) which used Java1.1 only code and was targeted directly at clients. However, for the last 8 months or so we have started from a clean slate and developed a new version of GeoTools (GT2) using Java1.4 which is aimed far more at the server side than the old code base. GT2 follows the OGC specs where possible and builds on the excellent Java Topology Suite. In fact, we have just put up a first implementation of the WMS spec with support for the new Styled Layer Descriptors from the OGC. It's still a little slow at the moment but SLD does allow for very good control over the appearance of map features. The WMS currently supports Shapefiles and PostGIS (MIF/MID and GML should be easy to add as there are datasource implementations in GT2). Right now we are working on improving performance, checking conformance (it works ok with the cubewerx client) and developing a configuration script (something like the map files in mapserver but in XML) If you're interested, I can send you the .war file to play with or provide details for obtaining the whole GT2 codebase. All the best James -- James Macgill Center for Computational Geography Spell Checker (c) Creative Spelling inc (aka my dyslexic brain) http://www.geotools.org the open source java mapping toolkit. From steve.lime at dnr.state.mn.us Tue Sep 3 14:44:12 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 03 Sep 2002 16:44:12 -0500 Subject: [mapserver-users] Java - Mapserver Message-ID: Aside from new development of an entire MapServer java base... One way I've done some integration is by using a java bean that acts to wrap a CGI instance of the mapserver. See the attached source code for a first attempt. This was written to allow a java developer to embed maps with dynamically generated points (on his side, in java) into to his application. On the MapServer side you just have a basic template that allows for the return of MapServer variables in a java collection (hash). Simple, but effective in some instances. I've included a sample template file as well... Remember, just a first attempt at doing something like this. Steve >>> Giri Palanisamy 08/30/02 07:56AM >>> HI, I have just installed a mapserver and the demo is working ok for me. I would like to use Java, JSP with mapserver to generate maps. I have windows 2000 server, also with Tomcat. Is there any "How to do" information available? or can I have some sample demo projects?. I don't know how I can proceed. Any help inthis regard is greatly appreciated. Giri -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MapServerBean.java Type: application/octet-stream Size: 3993 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PointFeature.java Type: application/octet-stream Size: 261 bytes Desc: not available URL: From wzhang at c-cor.net Tue Sep 3 15:07:03 2002 From: wzhang at c-cor.net (Zhang, William) Date: Tue, 3 Sep 2002 18:07:03 -0400 Subject: [mapserver-users] TRUETYPE not work Message-ID: <68107A9AF023EA439FF7CC2AD02D8FE503A509@pltnpo1.c-cor.com> Steve, After adding the font size, it works now. You are right. If using truetype, user needs to specify all necessary parameters. Thank you very much for the help. William -----Original Message----- From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] Sent: Monday, September 02, 2002 6:25 PM To: Zhang, William; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] TRUETYPE not work William, Did you get this to work yet? Looks like you need to specify a font size. There are no defaults for any of this stuff. -Steve On 30 Aug 2002 at 16:12, Zhang, William wrote: > Steve, > > Yes, I have the MapFile Reference document. I did not specify font in my map > file just for simplifying the test. I thought that some default font would > be used by mapserver if no font is specified by user. Is this true? Anyway > now I add font related lines in the map file below. It still does not work. > > NAME alm > EXTENT -122.0837 37.6683 -122.1104 37.6885 > SIZE 800 600 > SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" > FONTSET "C:\Inetpub\wwwroot\itasca\test\fonts\fonts.list" > LAYER > TYPE LINE > STATUS DEFAULT > DATA alm > LABELITEM "FENAME" > CLASS > COLOR 255 0 0 > LABEL > TYPE TRUETYPE > ANTIALIAS > FONT arial > COLOR 0 0 0 > ANGLE AUTO > POSITION UC > END > END > END > END # end of map file > > I have one line in the fonts.list file > arial arial.ttf > > I also copy the arial.ttf file to the same directory as fonts.list located. > > Do I miss something else? > > Thank you for the help. > > > William > > > > -----Original Message----- > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > Sent: Thursday, August 29, 2002 7:32 PM > To: Zhang, William; mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] TRUETYPE not work > > > William, > > Do you have a Map file Reference document? > You need to look at the LABEL section, you will see that it mentions > a FONT tag which references an item in a FONTSET. The document will > also tell you how to set up the FONTSET file which will need to point > to the the fonts on your system. > > The documentation page can be found off the Mapserver home page. > > -Steve > > On 29 Aug 2002 at 22:04, Zhang, William wrote: > > > Hi, > > > > I got error in the map file below. If I comment out TRUETYPE releated > lines, > > the map file works. I downloaded the mapserv.exe from Windows Binary > > Download page, so it should be TRUETYPE enabled. Could somebody give me > help > > on this one? > > > > > > NAME alm > > EXTENT -122.0837 37.6683 -122.1104 37.6885 > > SIZE 800 600 > > SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" > > LAYER > > TYPE LINE > > STATUS DEFAULT > > DATA alm > > LABELITEM "FENAME" > > CLASS > > COLOR 255 0 0 > > LABEL > > TYPE TRUETYPE > > ANTIALIAS > > COLOR 0 0 0 > > ANGLE AUTO > > POSITION UC > > END > > END > > END > > END # end of map file > > > > > > Thanks, > > > > William Zhang > > > > Software Engineer > > C-Cor.net > > Phone: (925) 251-3019 > > Fax: (925) 467-0600 > > E-Mail: wzhang at c-cor.net > > > > > > From johnhagstrand at interageresearch.com Tue Sep 3 18:41:15 2002 From: johnhagstrand at interageresearch.com (John Hagstrand) Date: Tue, 03 Sep 2002 20:41:15 -0500 Subject: [mapserver-users] wms - unable to access map file Message-ID: <4.3.2.7.0.20020903203842.02650638@pop.registeredsite.com> Hello, I'm trying to use the WMS interface to mapserver. Here is my test URL: http://www.saveantioch.com/saveantioch/map/bin/mapserv.exe?map=sa.map&VERSION=1.1.0&REQUEST=GetMap In response I get this message: msLoadMap(): Unable to access file. (sa.map) My sa.map file is in the same directory as the mapserv.exe. Can you help? Thanks John ------------------------------------------------- John Hagstrand Interage Research, Inc. 847 838 5371 Software Development Consulting for Internet Content Management We make knowledge accessible, useful, and relevant for everyone. http://www.interageresearch.com From woodbri at swoodbridge.com Tue Sep 3 19:17:30 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 3 Sep 2002 22:17:30 -0400 Subject: [mapserver-users] wms - unable to access map file In-Reply-To: <4.3.2.7.0.20020903203842.02650638@pop.registeredsite.com> Message-ID: <3D7534FA.30051.5E207FE@localhost> John, The generic things I would check are: 1) file permissions - does the webserver/cgi process have access to the file 2) what is the current working directory for a cgi process? it may not be the bin directory. Try enter the whole path to the sa.map file in the url you might need to try both "/" or "\" for path separators. -Steve On 3 Sep 2002 at 20:41, John Hagstrand wrote: > Hello, > > I'm trying to use the WMS interface to mapserver. Here is my test URL: > http://www.saveantioch.com/saveantioch/map/bin/mapserv.exe?map=sa.map&VERSION=1.1.0&REQUEST=GetMap > > In response I get this message: > msLoadMap(): Unable to access file. (sa.map) > > My sa.map file is in the same directory as the mapserv.exe. > > Can you help? > Thanks > John > > ------------------------------------------------- > John Hagstrand > Interage Research, Inc. > 847 838 5371 > Software Development Consulting for Internet Content Management > We make knowledge accessible, useful, and relevant for everyone. > http://www.interageresearch.com > > > From mail2stern at gmx.net Wed Sep 4 02:37:27 2002 From: mail2stern at gmx.net (Stefan Stern) Date: Wed, 04 Sep 2002 10:37:27 +0100 Subject: [mapserver-users] external links in a map Message-ID: <3D75D457.3040002@gmx.net> Hi all, Is there a way to include URL's / links into a map? For example: the user clicks on an object, symbol or label and the click triggers the link. Thanks for all suggestions, Stefan From thfischer at mapmedia.de Wed Sep 4 07:09:37 2002 From: thfischer at mapmedia.de (Thorsten Fischer) Date: 04 Sep 2002 16:09:37 +0200 Subject: [mapserver-users] MS_MAXSYMBOLS In-Reply-To: <5B025B1F39D6D4119F5700508BEEEC662DFC0A@srsofaioi4546.ktso.ch> References: <5B025B1F39D6D4119F5700508BEEEC662DFC0A@srsofaioi4546.ktso.ch> Message-ID: <1031148580.817.5.camel@grobi> Am Die, 2002-09-03 um 11.42 schrieb D?ster Horst: > Hi > Is it possible to increase the max number of symbols from 64 to p.e. 200. Change MS_MAXSYMBOLS in mapsymbol.h and recompile the beast. > What is the reason of the restriction to maximum 64 symbols?? Because it's good programming style to use limits. 64 is ... uhm. Well it's 2^6. Nothing special about it, but if you introduce the concept of limits in your software you have to set them to _something_. hth, thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From thfischer at mapmedia.de Wed Sep 4 07:12:26 2002 From: thfischer at mapmedia.de (Thorsten Fischer) Date: 04 Sep 2002 16:12:26 +0200 Subject: [mapserver-users] wms - unable to access map file In-Reply-To: <4.3.2.7.0.20020903203842.02650638@pop.registeredsite.com> References: <4.3.2.7.0.20020903203842.02650638@pop.registeredsite.com> Message-ID: <1031148748.804.8.camel@grobi> Am Mit, 2002-09-04 um 03.41 schrieb John Hagstrand: > Hello, > > I'm trying to use the WMS interface to mapserver. Here is my test URL: [snip] > In response I get this message: > msLoadMap(): Unable to access file. (sa.map) > My sa.map file is in the same directory as the mapserv.exe. Set an absolute path for your mapfile, i.e. c:\where\your\stuff\is\sa.map Very likely, the working directory of your CGIs is not the cgi-bin directory. hth, thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From alainferriol at data-mobiles.com Wed Sep 4 04:48:26 2002 From: alainferriol at data-mobiles.com (Alain FERRIOL) Date: Wed, 4 Sep 2002 13:48:26 +0200 Subject: [mapserver-users] Problem with INC (perl) Message-ID: <008d01c25409$109c1ae0$0300000a@oleane.com> Hi all Please excuse my poor english ;-) I'm on Linux SuSE 7.0 I try to execute a script perl in a shell started by a script php. All is correct when I execute the shell at command line But, when I use my php script, I get an error with XBase.pm : This error is in error_log in apache/logs Can't locate XBase.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i586-linux /u sr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i586-linux /usr/lib/perl5/site _perl/5.6.0 /usr/lib/perl5/site_perl .) at /usr/local/httpd/htdocs/cartotest/dat a/creeshp.pl line 4. But XBase.pm is : /usr/lib/perl5/site_perl/5.6.0 : ll /usr/lib/perl5/site_perl/5.6.0/XBase.pm -r--r--r-- 1 root root 37159 May 20 2000 /usr/lib/perl5/site_perl/5.6.0/XBase.pm In the list @INC i can see the folder for XBase.pm What may I add to make it working ? If someone has a little idea .... Thank's a lot Alain Ferriol From wesp at gdv.com Wed Sep 4 04:52:54 2002 From: wesp at gdv.com (Oliver Wesp) Date: Wed, 4 Sep 2002 13:52:54 +0200 Subject: AW: [mapserver-users] external links in a map In-Reply-To: <3D75D457.3040002@gmx.net> Message-ID: <001501c25409$9aa8d570$1501a8c0@else> Just put the Links in the attribute table of your layer, a click on the map triggers a query and you can use - for example a javascript-statement to open the link you retrieve from the query. What you need in the query-template should look something like this: LinkWin = open([LINKFIELD],"TITLE","WIDTH=200, height=200"); > -----Urspr?ngliche Nachricht----- > Von: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] Im Auftrag > von Stefan Stern > Gesendet: Mittwoch, 4. September 2002 11:37 > An: MAPSERVER > Betreff: [mapserver-users] external links in a map > > > Hi all, > > Is there a way to include URL's / links into a map? > For example: the user clicks on an object, symbol or label > and the click > triggers the link. > > Thanks for all suggestions, > > Stefan > > > > > > From Chip.Hankley at GASAI.Com Wed Sep 4 06:37:05 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 4 Sep 2002 08:37:05 -0500 Subject: [mapserver-users] Rosa query question Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD53@postoffice.GASAI.Com> Scott - Are you using MapScript? If so, look at the logic of your code. You (presumably) have some type of switch statement that decides what to do based on what button is pushed. My hunch is that your query branch of the code does not have any section that tells MS to maintain the same extent on refresh. You need this, otherwise MS will revert to the extents specified in the Mapfile. -Chip -----Original Message----- From: Tweedy, Scott [mailto:sctweedy at NRCan.gc.ca] Sent: Tuesday, September 03, 2002 1:29 PM To: MapServer Users (E-mail) Subject: [mapserver-users] Rosa query question question about using the rosa applet to query the map. I have to zoom in to see the points I wish to query. When I zoom in and query the point using the TB_BUT_pquery_ parameter I get the right results for my query, but the map refreshes to its original view. Is there something special I have to set so that the map maintains its zoom level after querying the DBF file? Thanks in advance. st From pkishor at GeoAnalytics.com Wed Sep 4 06:37:33 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 4 Sep 2002 08:37:33 -0500 Subject: [mapserver-users] Problem with INC (perl) In-Reply-To: <008d01c25409$109c1ae0$0300000a@oleane.com> Message-ID: <778A6674-C00B-11D6-AD86-0003936306C2@geoanalytics.com> Hi Alain, I am treading on thin ground here, but may I ask... On Wednesday, September 4, 2002, at 06:48 AM, Alain FERRIOL wrote: > I'm on Linux SuSE 7.0 > I try to execute a script perl in a shell started by a script php. why are you trying to execute a perl script from a php script? Use one or the other. PHP has built in dbase functions (well, provided you compiled PHP --with-dbase, etc.) and they work quite well. You can use Xbase.pm if using Perl, and that too works quite well. Of course, that is not working for you. Did you install Xbase.pm yourself? Did it pass all the tests as it was installed, perhaps via CPAN? How about writing just a small, simple perl script that uses Xbase and see if that works by itself? pk/ > > All is correct when I execute the shell at command line > > But, when I use my php script, I get an error with XBase.pm : > This error is in error_log in apache/logs > > Can't locate XBase.pm in @INC (@INC contains: > /usr/lib/perl5/5.6.0/i586-linux /u > sr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i586-linux > /usr/lib/perl5/site > _perl/5.6.0 /usr/lib/perl5/site_perl .) at > /usr/local/httpd/htdocs/cartotest/dat > a/creeshp.pl line 4. > > But XBase.pm is : > /usr/lib/perl5/site_perl/5.6.0 : > > ll /usr/lib/perl5/site_perl/5.6.0/XBase.pm > -r--r--r-- 1 root root 37159 May 20 2000 > /usr/lib/perl5/site_perl/5.6.0/XBase.pm > > In the list @INC i can see the folder for XBase.pm > > What may I add to make it working ? > > If someone has a little idea .... > > Thank's a lot > Alain Ferriol From ian at geography.leeds.ac.uk Wed Sep 4 05:53:36 2002 From: ian at geography.leeds.ac.uk (Ian Turton) Date: Wed, 04 Sep 2002 13:53:36 +0100 Subject: [mapserver-users] external links in a map In-Reply-To: <3D75D457.3040002@gmx.net> Message-ID: <5.1.0.14.0.20020904135048.05600470@geog.leeds.ac.uk> At 10:37 04/09/02, Stefan Stern wrote: >Hi all, > >Is there a way to include URL's / links into a map? >For example: the user clicks on an object, symbol or label and the click >triggers the link. We have a client that builds on WMS and cvs files to do what you want. Have a look at http://www.geotools.org/modules.php?op=modload&name=News&file=article&sid=20&mode=thread&order=0&thold=0 to see a report and links to the demo. >Thanks for all suggestions, > >Stefan Ian From mbp at geomtech.com Wed Sep 4 06:55:52 2002 From: mbp at geomtech.com (Mark Phillips) Date: Wed, 4 Sep 2002 08:55:52 -0500 Subject: [mapserver-users] external links in a map In-Reply-To: <3D75D457.3040002@gmx.net> (message from Stefan Stern on Wed, 04 Sep 2002 10:37:27 +0100) References: <3D75D457.3040002@gmx.net> Message-ID: <200209041355.IAA01101@wisdom.geomtech.com> > Is there a way to include URL's / links into a map? > For example: the user clicks on an object, symbol or label and the click > triggers the link. It should be possible to do this in a mapscript script (php, perl, ...) by detecting the click in the script, and having the script send an http "Location:" header back to the browser to cause it to go to whatever URL you want the clicked-on object to correspond to. I'm not sure about with the cgi version of mapserver; I'm not as familiar with it as I am with mapscript. --Mark Mark Phillips @ Geometry Technologies, LLC P.O. Box 1170, Black Mountain, NC 28711 Phone: 828-664-1748 mbp at geomtech.com http://www.geomtech.com From pkishor at GeoAnalytics.com Wed Sep 4 07:19:10 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 4 Sep 2002 09:19:10 -0500 Subject: [mapserver-users] Problem with INC (perl) In-Reply-To: <00c201c2541b$fda081c0$0300000a@oleane.com> Message-ID: <47C78830-C011-11D6-AD86-0003936306C2@geoanalytics.com> On Wednesday, September 4, 2002, at 09:03 AM, Alain FERRIOL wrote: > Hi all > > Thank's for your answer > > > Puneet Kishor wrote: > > :: why are you trying to execute a perl script from a php script? Use > :: one or the other. > > It seems i need to explain our choices. > Maybe they are false .... > > We have an application (WAN) wich receive some GSM informations from > trucks. > > We have another site using mapserver with a little map . > > The first site send informations to our map server using a form in php. > > Our .map file contains informations about 3 layers to display our trucs > with > different symbols and fonts depending on activity. Very cool sounding application! > > The php script receive the different latitudes and longitudes and others > informations. > It uses proj4 to compute the X Y coordinate and create a plain text > file. > Then it generates the perl script required for creating the dbf, shp > and shx > file this is what I don't understand... why not just use PHP to do all this work... I haven't used PHP's dbase functions extensively, so am not sure if it can create dbf files directly or not, but PHP/Mapscript certainly has functions for creating a shape file... hence it also creates it associated dbf and index files. {Or, alternatively, use Perl all the way, even on the first site} > > It's here where I have my problem : the perl script has'nt the correct > rights when started by php.... > When I execute it manually, all is correct and my map is ok. > Again, I am not very conversant with the ins and outs of PHP, but does it not have the facility to execute system commands... hence, you could use PHP to chmod and chown on the generated perl scrit appropriately. pk/ From woodbri at swoodbridge.com Wed Sep 4 05:49:52 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 4 Sep 2002 08:49:52 -0400 Subject: [mapserver-users] Geocoding the Net Message-ID: <3D75C930.7277.824F9C9@localhost> Hi, I found the following links that some of you might be interested in. The first is a PHP class that renders a map with a "You are Here" marker on it based on your IP address. It uses the 2nd to do the geocoding of the IP address. http://phpspain.hexoplastia.com/projects/worldlocator/ http://www.caida.org/tools/utilities/netgeo/ While it placed me in Spain instead of the US :(, there have been posts in the past about people wanting to show where there web site visitor are located and this might supply a simple starting point or you might want to take apart the PHP class and integrate it with a PHP/Mapscript app. Have fun with it, -Steve From david.fawcett at moea.state.mn.us Wed Sep 4 08:13:04 2002 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Wed, 4 Sep 2002 10:13:04 -0500 Subject: [mapserver-users] Geocoding the Net Message-ID: It banished me to Kamchatka! David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 > ---------- > From: woodbri at swoodbridge.com[SMTP:woodbri at swoodbridge.com] > Reply To: woodbri at swoodbridge.com > Sent: Wednesday, September 04, 2002 7:49 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Geocoding the Net > > Hi, > > I found the following links that some of you might be interested in. > The first is a PHP class that renders a map with a "You are Here" > marker on it based on your IP address. It uses the 2nd to do the > geocoding of the IP address. > > http://phpspain.hexoplastia.com/projects/worldlocator/ > http://www.caida.org/tools/utilities/netgeo/ > > While it placed me in Spain instead of the US :(, there have been > posts in the past about people wanting to show where there web site > visitor are located and this might supply a simple starting point or > you might want to take apart the PHP class and integrate it with a > PHP/Mapscript app. > > Have fun with it, > -Steve > From alexb at entelchile.net Wed Sep 4 08:15:07 2002 From: alexb at entelchile.net (alexb at entelchile.net) Date: Wed, 4 Sep 2002 11:15:07 -0400 Subject: [mapserver-users] Unsuscribe Message-ID: <20020904151640.XTSM163.mta3@mta3.real.mail.entelchile.net> How do i unsuscribe from list? Thanks! Alex From TMitchell at lignum.com Wed Sep 4 08:24:18 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 4 Sep 2002 08:24:18 -0700 Subject: [mapserver-users] SOT: domain Worldlocator Message-ID: FYI This world locator php apps is an interesting application. I thought you might find it interesting too: http://phpspain.hexoplastia.com/projects/worldlocator/index.php ----- Forwarded by Tyler Mitchell/Lignum on 09/04/2002 08:23 AM ----- PHP Classes lasses.org> cc: Fax to: 09/03/2002 09:31 PM Subject: [PHP Classes] Added a new class: worldlocator Hello, If you do not want to receive more alert messages like this, see the instructions at the bottom of this message. --------------------------------------------------------------------------- A new class was added to "PHP Classes" repository. Name: worldlocator Author: Lloren? Herrera Description: Given an IP or a Hostname, it returns information about the country, latitude and longitude of the geographic location of the host on the world. It also shows a map image marking the location. This map can ve viewed perfectly even if your server doesn't have GD. URL: http://www.phpclasses.org/browse.html/package/693.html --------------------------------------------------------------------------- If you do not want to receive any more alert messages like this one or want to receive a weekly or daily digest newsletter instead, go to the User Options page of the site "PHP Classes" located at http://www.phpclasses.org/user_options.html and change the respective e-mail notification options. From GrantM at ATSER.com Wed Sep 4 08:36:29 2002 From: GrantM at ATSER.com (Grant Marblestone) Date: Wed, 4 Sep 2002 10:36:29 -0500 Subject: [mapserver-users] question regarding postgis References: <001501c25409$9aa8d570$1501a8c0@else> Message-ID: <000f01c25428$d9758d60$7201010a@localhost.atser> Howdy all, so i have installed postgres 7.2 on my windows box and a linux box... no big deal.... now i am thinking about using postgis. I read thru the documentation and how to add a layer and i understand that completly. The problem i have is the database structure itself. Can somoene explain to me what the database has to have in it to create a layer with x,y,z etc? an example .sql file would eb most excellent.! Thanks, Grant From Rich at GreenwoodMap.com Wed Sep 4 09:00:25 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Wed, 04 Sep 2002 10:00:25 -0600 Subject: [mapserver-users] external links in a map In-Reply-To: <3D75D457.3040002@gmx.net> Message-ID: <5.1.0.14.0.20020904095527.00a877b8@mail.GreenwoodMap.com> At 10:37 AM 9/4/2002 +0100, you wrote: >Hi all, > >Is there a way to include URL's / links into a map? >For example: the user clicks on an object, symbol or label and the click >triggers the link. > >Thanks for all suggestions, > >Stefan Put the URL in your TEMPLATE definition. Here's something I posted a year or so ago: A TEMPLATE can be either a File or a URL. MapServer examines a template definition, decides whether you have specified a File or a URL, and responds accordingly. For example; "Display_Results.html" looks like a file and so will be processed as a file, but "http://www.some_domain.com/Index.html" looks like a URL and so will be processed as a URL, which is quite a bit different than how a File is processed. If MapServer decides that it has a file template, it goes through the file and replaces stuff within [] with appropriate data. If the template is a URL, however, MapServer redirects to that URL. The URL might be on the same server, or another server. Although MapServer can not process the file pointed to by a URL, it does process the URL string itself. For example: http://www.tetonwyo.org/clerk/query/default.asp?pidn=[PIDN] MapServer will replace [PIDN] with an appropriate value before redirecting to the new location. Note also that you can go to an Active Server Page, or other not-purely HTML type location. (To me, this is really sweet, because it allows you to easily mix CGI MapServer with other web technologies.) Okay, so you read this far and I still haven't told you anything that you didn't already know, but here's what had me flailing. A template can only reference a URL in a SINGLE query mode. So if you are in a MULTIPLE query mode, e.g. nquery, MapServer only attempts to processes the template as a file. Not a good thing if you specified a URL, but still entirely logical. A URL is intrinsically a single thing, and you can't simultaneously redirect a browser to multiple locations. In other words, MapServer assumes that if your query could potentially return more than one result, that you would have specified a File for the template, not a URL. Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkishor at GeoAnalytics.com Wed Sep 4 09:24:34 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 4 Sep 2002 11:24:34 -0500 Subject: [mapserver-users] external links in a map Message-ID: well, it may be a bit more complicated than that... > -----Original Message----- > From: Mark Phillips [mailto:mbp at geomtech.com] > Sent: Wednesday, September 04, 2002 8:56 AM > To: mail2stern at gmx.net > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] external links in a map > > > > > Is there a way to include URL's / links into a map? > > For example: the user clicks on an object, symbol or label > and the click > > triggers the link. > > It should be possible to do this in a mapscript script (php, > perl, ...) > by detecting the click in the script, and having the script send > an http "Location:" header back to the browser to cause it to go to > whatever URL you want the clicked-on object to correspond to. > let's say I am mapping houses... and I want the resulting map to have an embedded imagemap so that when I click (or, better yet, hover) on a house a window pops up with some attributes for that house... in other words, I have streamed the attributes along with the map all of it to the client. Since I don't know where each house is going to be, I can't really construct an imagemap. I mean, it can be done... its just not easy... I would have to preprocess all the features in a result set, get their bounding boxes, and then generate an imagemap from those boxes before sending all of it to the client... someone correct me if I am wrong. pk/ From pkishor at GeoAnalytics.com Wed Sep 4 09:28:34 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 4 Sep 2002 11:28:34 -0500 Subject: [mapserver-users] Geocoding the Net Message-ID: actually works quite well... the key is not use "Find me" but select the "Another internet address" option. That way it queries the actual ip address or domain name. would be cool to pipe in my apache access log and light up the world... or pipe in the mapserver.umn.gis.edu apache access log to see where the users are coming from... pk/ > -----Original Message----- > From: Fawcett, David [mailto:david.fawcett at moea.state.mn.us] > Sent: Wednesday, September 04, 2002 10:13 AM > To: mapserver-users at lists.gis.umn.edu; 'woodbri at swoodbridge.com' > Subject: RE: [mapserver-users] Geocoding the Net > > > It banished me to Kamchatka! > > David J. Fawcett > GIS / Databases > > MN Office of Environmental Assistance > 520 Lafayette Rd N > St. Paul, MN 55155 > 651.215.0200 > > > > ---------- > > From: woodbri at swoodbridge.com[SMTP:woodbri at swoodbridge.com] > > Reply To: woodbri at swoodbridge.com > > Sent: Wednesday, September 04, 2002 7:49 AM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] Geocoding the Net > > > > Hi, > > > > I found the following links that some of you might be > interested in. > > The first is a PHP class that renders a map with a "You are Here" > > marker on it based on your IP address. It uses the 2nd to do the > > geocoding of the IP address. > > > > http://phpspain.hexoplastia.com/projects/worldlocator/ > > http://www.caida.org/tools/utilities/netgeo/ > > > > While it placed me in Spain instead of the US :(, there have been > > posts in the past about people wanting to show where there web site > > visitor are located and this might supply a simple starting > point or > > you might want to take apart the PHP class and integrate it with a > > PHP/Mapscript app. > > > > Have fun with it, > > -Steve > > > From TMitchell at lignum.com Wed Sep 4 09:46:06 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 4 Sep 2002 09:46:06 -0700 Subject: [mapserver-users] question regarding postgis Message-ID: Hi Grant, The easiest thing to do would be to use the shp2pgsql program which converts a shapefile into SQL commands to create a layer/table with a specific name. I will send you a sample shapefile if you would like one. run "shp2pgsql --help" to see the syntax. You can pipe the output to a text file and look at it there (i.e. "shp2pgsql myshp.shp newtable testdb > mysql.sql") or pipe it directly to pgsql to load it into the database (i.e. "shp2pgsql myshp.shp newtable testdb | pgsql testdb"). Let me know if you need more help. Tyler p.s. you can also use the "ogr2ogr" tool (part of the gdal/ogr package) to convert other formats directly to postgis. Grant Marblestone To: MapServer List Sent by: owner-mapserver-users at lists. cc: gis.umn.edu Fax to: Subject: [mapserver-users] question regarding postgis 09/04/2002 08:36 AM Please respond to Grant Marblestone Howdy all, so i have installed postgres 7.2 on my windows box and a linux box... no big deal.... now i am thinking about using postgis. I read thru the documentation and how to add a layer and i understand that completly. The problem i have is the database structure itself. Can somoene explain to me what the database has to have in it to create a layer with x,y,z etc? an example .sql file would eb most excellent.! Thanks, Grant From ian at geography.leeds.ac.uk Wed Sep 4 11:22:05 2002 From: ian at geography.leeds.ac.uk (Ian Turton) Date: Wed, 04 Sep 2002 19:22:05 +0100 Subject: [mapserver-users] external links in a map In-Reply-To: Message-ID: <5.1.0.14.0.20020904191627.0559b210@geog.leeds.ac.uk> At 17:24 04/09/02, Puneet Kishor wrote: >well, it may be a bit more complicated than that... > > > > From: Mark Phillips [mailto:mbp at geomtech.com] > > > Is there a way to include URL's / links into a map? > > > For example: the user clicks on an object, symbol or label > > and the click > > > triggers the link. > > > > It should be possible to do this in a mapscript script (php, > > perl, ...) > > by detecting the click in the script, and having the script send > > an http "Location:" header back to the browser to cause it to go to > > whatever URL you want the clicked-on object to correspond to. > > > > >let's say I am mapping houses... and I want the resulting map to have an >embedded imagemap so that when I click (or, better yet, hover) on a house a >window pops up with some attributes for that house... in other words, I have >streamed the attributes along with the map all of it to the client. Since I >don't know where each house is going to be, I can't really construct an >imagemap. I mean, it can be done... its just not easy... I would have to >preprocess all the features in a result set, get their bounding boxes, and >then generate an imagemap from those boxes before sending all of it to the >client... I think you're really looking for a smart client to be able to do that for you. I don't want people to think I only ever post to this list to say look at GeoTools (www.geotools.org) as I think mapserver is an excellent piece of software and we use it every day in our work in the Centre for Computational Geography. But I really think some of the people on this list are trying to push it way beyond its limits. Maybe this is just because I'm a sad old unix hacker and I like one tool to do one job and do it well rather than bloating a tool so it becomes jack of all trades and master of none. Simply put if your problem needs a smart client then that's the way to go rather than trying to push your server into contortions to do it. Ian >someone correct me if I am wrong. > >pk/ From pkishor at GeoAnalytics.com Wed Sep 4 11:30:53 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 4 Sep 2002 13:30:53 -0500 Subject: [mapserver-users] external links in a map Message-ID: Hi Ian, Now that you have told us so many times to look at geotools, I gave it a look. ;-) Seems nice, but I personally don't want to download it, learn it, exploit it for now. Maybe when I get some time I will give it a whirl, but if it involves learning Java it will get behind in my priority list very rapidly. I am not a big fan of Java. That said, a few responses to your comments... while I am asking for a "smart-ish" client, I am not asking to push Mapserver beyond any limits. I think Steve Lime has emphasized several times that he wants to keep Mapserver lean and mean, which, I think is a most excellent idea. I think this "smart-ish" client can be built with clever use of mapscript and/or some other add-ons. And, of course, there has to be some limit to the smarts that one may want to embed in a browser-based client... otherwise just go and use Arcview or GeoMedia... why bother with Mapserver anyway. Btw, don't call Unix hackers "sad and old" (including yourself)... this list is probably full of Unix-heads who would violently disagree. Cheers, pk/ > -----Original Message----- > From: Ian Turton [mailto:ian at geography.leeds.ac.uk] > Sent: Wednesday, September 04, 2002 1:22 PM > To: Puneet Kishor > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] external links in a map > > > At 17:24 04/09/02, Puneet Kishor wrote: > >well, it may be a bit more complicated than that... > > > > > > > From: Mark Phillips [mailto:mbp at geomtech.com] > > > > Is there a way to include URL's / links into a map? > > > > For example: the user clicks on an object, symbol or label > > > and the click > > > > triggers the link. > > > > > > It should be possible to do this in a mapscript script (php, > > > perl, ...) > > > by detecting the click in the script, and having the script send > > > an http "Location:" header back to the browser to cause > it to go to > > > whatever URL you want the clicked-on object to correspond to. > > > > > > > > >let's say I am mapping houses... and I want the resulting > map to have an > >embedded imagemap so that when I click (or, better yet, > hover) on a house a > >window pops up with some attributes for that house... in > other words, I have > >streamed the attributes along with the map all of it to the > client. Since I > >don't know where each house is going to be, I can't really > construct an > >imagemap. I mean, it can be done... its just not easy... I > would have to > >preprocess all the features in a result set, get their > bounding boxes, and > >then generate an imagemap from those boxes before sending > all of it to the > >client... > > I think you're really looking for a smart client to be able > to do that for > you. I don't want people to think I only ever post to this > list to say look > at GeoTools (www.geotools.org) as I think mapserver is an > excellent piece > of software and we use it every day in our work in the Centre for > Computational Geography. But I really think some of the > people on this list > are trying to push it way beyond its limits. Maybe this is > just because I'm > a sad old unix hacker and I like one tool to do one job and > do it well > rather than bloating a tool so it becomes jack of all trades > and master of > none. > Simply put if your problem needs a smart client then that's > the way to go > rather than trying to push your server into contortions to do it. > > Ian > > >someone correct me if I am wrong. > > > >pk/ > From ed at topozone.com Wed Sep 4 11:56:33 2002 From: ed at topozone.com (Ed McNierney) Date: Wed, 4 Sep 2002 14:56:33 -0400 Subject: [mapserver-users] external links in a map Message-ID: <13858AA1A74F30419F319ACB66A9D12201940D@mercator.topozone.com> Ian - While I don't disagree with your general approach, I think this is a very reasonable feature for MapServer, and I've been looking at it a bit myself. If it's reasonable to let MapServer generate point symbols or polygons on a map image, and it's reasonable for MapServer to have a "query" mode in which you click on those things to produce querymaps of that feature, then I think it's equally reasonable for that server to generate flyover labels, etc. for the same feature. It happens that HTML requires a completely different set of tags (imagemap) to do such a thing, but that's not MapServer's fault nor is it a good reason to not want MapServer to generate them. What I do not particularly want is two SEPARATE tools traversing the same data set to generate two related outputs unless there's a deterministic way to ensure they are consistent. If GeoTools and MapServer don't render a polygon feature exactly the same way, my imagemap won't agree with my image. That may or may not be important to my application. GeoTools is CERTAINLY worth investigating for this particular problem, but do think that it's a reasonable thing to want MapServer to do. Another good tool philosophy is that if you've got one tool that already knows how to do 90% of the job, it might be helpful to add the other 10%. I think they're both useful ways of looking at a problem. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Ian Turton [mailto:ian at geography.leeds.ac.uk] Sent: Wednesday, September 04, 2002 2:22 PM To: Puneet Kishor Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] external links in a map At 17:24 04/09/02, Puneet Kishor wrote: >well, it may be a bit more complicated than that... > > > > From: Mark Phillips [mailto:mbp at geomtech.com] > > > Is there a way to include URL's / links into a map? > > > For example: the user clicks on an object, symbol or label > > and the click > > > triggers the link. > > > > It should be possible to do this in a mapscript script (php, > > perl, ...) > > by detecting the click in the script, and having the script send > > an http "Location:" header back to the browser to cause it to go to > > whatever URL you want the clicked-on object to correspond to. > > > > >let's say I am mapping houses... and I want the resulting map to have an >embedded imagemap so that when I click (or, better yet, hover) on a house a >window pops up with some attributes for that house... in other words, I have >streamed the attributes along with the map all of it to the client. Since I >don't know where each house is going to be, I can't really construct an >imagemap. I mean, it can be done... its just not easy... I would have to >preprocess all the features in a result set, get their bounding boxes, and >then generate an imagemap from those boxes before sending all of it to the >client... I think you're really looking for a smart client to be able to do that for you. I don't want people to think I only ever post to this list to say look at GeoTools (www.geotools.org) as I think mapserver is an excellent piece of software and we use it every day in our work in the Centre for Computational Geography. But I really think some of the people on this list are trying to push it way beyond its limits. Maybe this is just because I'm a sad old unix hacker and I like one tool to do one job and do it well rather than bloating a tool so it becomes jack of all trades and master of none. Simply put if your problem needs a smart client then that's the way to go rather than trying to push your server into contortions to do it. Ian >someone correct me if I am wrong. > >pk/ From GrantM at ATSER.com Wed Sep 4 12:23:00 2002 From: GrantM at ATSER.com (Grant Marblestone) Date: Wed, 4 Sep 2002 14:23:00 -0500 Subject: [mapserver-users] question regarding postgis References: Message-ID: <001501c25448$7e859f60$7201010a@localhost.atser> so more questions.... I have installed postgis and supposedly it works? but do i need to have a special mapserv.exe file or what? i use mapserv 3.5 | not up to date with 3.6 yet.... here is my error? i use gmap Warning: MapServer Error in msPOSTGISLayerOpen(): msPOSTGISLayerOpen called but unimplemented! in c:\phpdev\www\aweb\gmap\htdocs\gmap75.php3 on line 483 Fatal error: Call to a member function on a non-object in c:\phpdev\www\aweb\gmap\htdocs\gmap75.php3 on line 484 any suggestions? thanks in advance, Grant From steve.lime at dnr.state.mn.us Wed Sep 4 12:17:58 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 04 Sep 2002 14:17:58 -0500 Subject: [mapserver-users] Fwd: full extent Message-ID: An embedded message was scrubbed... From: Rob Holloway Subject: full extent Date: Wed, 4 Sep 2002 11:14:46 -0700 (PDT) Size: 1231 URL: From TMitchell at lignum.com Wed Sep 4 13:22:20 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 4 Sep 2002 13:22:20 -0700 Subject: [mapserver-users] question regarding postgis Message-ID: It looks like you are running it on windows. It doesn't look like you are compiling your own exe, right? Can someone give Grant a pointer to either the DM Solutions mapserver download site or another. It also looks like he needs PHP and PostGIS support, right? Grant Marblestone To: MapServer List Sent by: owner-mapserver-users at lists. cc: gis.umn.edu Fax to: Subject: Re: [mapserver-users] question regarding postgis 09/04/2002 12:23 PM Please respond to Grant Marblestone so more questions.... I have installed postgis and supposedly it works? but do i need to have a special mapserv.exe file or what? i use mapserv 3.5 | not up to date with 3.6 yet.... here is my error? i use gmap Warning: MapServer Error in msPOSTGISLayerOpen(): msPOSTGISLayerOpen called but unimplemented! in c:\phpdev\www\aweb\gmap\htdocs\gmap75.php3 on line 483 Fatal error: Call to a member function on a non-object in c:\phpdev\www\aweb\gmap\htdocs\gmap75.php3 on line 484 any suggestions? thanks in advance, Grant From Chip.Hankley at GASAI.Com Wed Sep 4 13:59:56 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 4 Sep 2002 15:59:56 -0500 Subject: [mapserver-users] question regarding postgis Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD5E@postoffice.GASAI.Com> I'm pretty sure that there is NOT a pre-compiled binary (for windows) that has PostGIS support on the DMSolutions site. I think that you'll have to use the CGI mapserver for now... (if you want to do PostGIS). Chip -----Original Message----- From: Tyler Mitchell [mailto:TMitchell at lignum.com] Sent: Wednesday, September 04, 2002 3:22 PM To: Grant Marblestone Cc: MapServer List Subject: Re: [mapserver-users] question regarding postgis It looks like you are running it on windows. It doesn't look like you are compiling your own exe, right? Can someone give Grant a pointer to either the DM Solutions mapserver download site or another. It also looks like he needs PHP and PostGIS support, right? Grant Marblestone To: MapServer List Sent by: owner-mapserver-users at lists. cc: gis.umn.edu Fax to: Subject: Re: [mapserver-users] question regarding postgis 09/04/2002 12:23 PM Please respond to Grant Marblestone so more questions.... I have installed postgis and supposedly it works? but do i need to have a special mapserv.exe file or what? i use mapserv 3.5 | not up to date with 3.6 yet.... here is my error? i use gmap Warning: MapServer Error in msPOSTGISLayerOpen(): msPOSTGISLayerOpen called but unimplemented! in c:\phpdev\www\aweb\gmap\htdocs\gmap75.php3 on line 483 Fatal error: Call to a member function on a non-object in c:\phpdev\www\aweb\gmap\htdocs\gmap75.php3 on line 484 any suggestions? thanks in advance, Grant From wzhang at c-cor.net Wed Sep 4 14:53:06 2002 From: wzhang at c-cor.net (Zhang, William) Date: Wed, 4 Sep 2002 17:53:06 -0400 Subject: [mapserver-users] add nodefaultlib into makefile Message-ID: <68107A9AF023EA439FF7CC2AD02D8FE503A50B@pltnpo1.c-cor.com> Hi, I am trying to compile gd.lib on Win2000 machine. I got error message showing MSVCRT.lib conflicts with LIBC.lib. I think I should add /nodefaultlib:"MSVCRT.lib" into the Makefile.nt file of gd-1.8.4. But I don't know how to do that. Could somebody give me a help on this? Thanks, William From nospam at cnrit.tamu.edu Wed Sep 4 15:04:56 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Wed, 04 Sep 2002 17:04:56 -0500 Subject: [mapserver-users] Fwd: full extent References: Message-ID: <3D768388.60606@cnrit.tamu.edu> I borrowed this javascript function from the mapserver mail archive and it works for me. Just put this code in the head block of your HTML page: then call the function from any image (for example) using the "onClick" action like this: Hope this helps, Mike Smith Steve Lime wrote: > > ------------------------------------------------------------------------ > > Subject: > > full extent > From: > > Rob Holloway > Date: > > Wed, 4 Sep 2002 11:14:46 -0700 (PDT) > To: > > mapserver-info at lists.gis.umn.edu > > >Hi > >I'm trying to create a zoom to full extent button >without much success. Does anyone have any >suggestions/code to offer. Thanks! > >Rob > >__________________________________________________ >Do You Yahoo!? >Yahoo! Finance - Get real-time stock quotes >http://finance.yahoo.com > > From paul at cnt.org Wed Sep 4 16:05:47 2002 From: paul at cnt.org (Paul Smith) Date: Wed, 4 Sep 2002 18:05:47 -0500 Subject: [mapserver-users] PHP and Mapscript: .map file needed Message-ID: Hi, I'm new to the list and fairly new to MapServer. I've just started running MapScript with PHP, and I'm wondering, since all of the objects of the .map file are accessible via the various classes, what is the need of the .map file at all in a MapScript environment? I'm asking out of a bit of willful ignorance, in that I haven't actually tried it without a .map file, but maybe I would like to know more generally its importance in this situation. Paul -- Paul Smith Center for Neighborhood Technology Chicago, IL USA From jrpatton at northcoast.com Wed Sep 4 16:45:52 2002 From: jrpatton at northcoast.com (jason r patton) Date: Wed, 04 Sep 2002 16:45:52 -0700 Subject: [mapserver-users] javascript mapserver: ZOOMIN ZOOMOUT Message-ID: greetings jonathan, i noticed an archived mapserver note.you gave advice on using zoomin/out gifs without javascript. i am interested in using buttons with javascript. do you have any javascripts that perform these two tasks? i am also looking for javascripts to launch a new window with (a) a legend, and (b) a "hot to" page. i hope you can help, or send me in the right direction. thanks, Jay PS, i also sent this to the mapserver list From Antti.Roppola at brs.gov.au Wed Sep 4 16:55:06 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Thu, 5 Sep 2002 09:55:06 +1000 Subject: [mapserver-users] PHP and Mapscript: .map file needed Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D9953CA@ACTMAIL2> I use a .map file as an easy way of initialising and/or testing my app. In the longer term, I'm thinking about putting the layer definitions ito a DB with the data and using that to create map objects. Antti -----Original Message----- From: Paul Smith [mailto:paul at cnt.org] Sent: Thursday, 5 September 2002 9:06 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] PHP and Mapscript: .map file needed Hi, I'm new to the list and fairly new to MapServer. I've just started running MapScript with PHP, and I'm wondering, since all of the objects of the .map file are accessible via the various classes, what is the need of the .map file at all in a MapScript environment? I'm asking out of a bit of willful ignorance, in that I haven't actually tried it without a .map file, but maybe I would like to know more generally its importance in this situation. Paul -- Paul Smith Center for Neighborhood Technology Chicago, IL USA From morissette at dmsolutions.ca Wed Sep 4 18:46:57 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 04 Sep 2002 21:46:57 -0400 Subject: [mapserver-users] question regarding postgis References: <3DFF131E4E6D2D4198CDD758F35A5353010ABD5E@postoffice.GASAI.Com> Message-ID: <3D76B791.32CEEF4D@dmsolutions.ca> "Hankley, Chip" wrote: > > I'm pretty sure that there is NOT a pre-compiled binary (for windows) that > has PostGIS support on the DMSolutions site. I think that you'll have to use > the CGI mapserver for now... (if you want to do PostGIS). > You're correct that there is no win32 build with PostGIS on our site. (It's on our list of things to do when time permits, but still a lower priority.) -- ------------------------------------------------------------ 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 Antti.Roppola at brs.gov.au Wed Sep 4 21:37:15 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Thu, 5 Sep 2002 14:37:15 +1000 Subject: [mapserver-users] Querying PostGIS layer attributes -> error Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D9953D0@ACTMAIL2> Hi all, I have PostGIS 0.7.1 built into Postgres 7.2.1 and it works as a data source for generating maps. However, running any queries against a PostGIS layer gives me an error (see below). Is this a know issue, or am I doing something wrong? I have the same data and layer entry as a shape and it works fine. Cheers, Antti Fatal error: MapServer Error in msPOSTGISLayerGetShape(): Error executing POSTGIS SQL statement: DECLARE mycursor BINARY CURSOR FOR SELECT gid::text,fnode_::text,tnode_::text,lpoly_::text,rpoly_::text,length::text,xyc00002_::text,xyc00002_i::text,id::text,f_code::text,f_code_des::text,acc::text,acc_descri::text,exs::text,exs_descri::text,med::text,med_descri::text,rst::text,rst_descri::text,rsu::text,rsu_descri::text,rtt::text,rtt_descri::text,soc::text,tile_id::text,edg_id::text,asbinary(force_collection(force_2d(the_geom)),'NDR') from roads WHERE OID = 35115 in /home/www2/mapserv/sde_demo/functions.inc on line 105 From hdi12 at it.canterbury.ac.nz Wed Sep 4 21:54:53 2002 From: hdi12 at it.canterbury.ac.nz (Hao Ding) Date: Thu, 05 Sep 2002 16:54:53 +1200 Subject: [mapserver-users] WMS bounding box Message-ID: <3D76E39D.6030308@student.canterbury.ac.nz> Hello, The WMS capabilities file created from MapServer mapfile contains two elements in a layer: Bounding Box and LatLon Bounding Box. Which one should I use in the GetMap request? Cheers, Hao From pramsey at refractions.net Wed Sep 4 22:15:58 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 04 Sep 2002 22:15:58 -0700 Subject: [mapserver-users] Querying PostGIS layer attributes -> error References: <595FE28AB1EBD111920F0060B06B3DD70D9953D0@ACTMAIL2> Message-ID: <3D76E88E.9090500@refractions.net> There might be a nasty with respect to PHP. I know we have queries working fine in other contexts. Can you do a query using the normal mapserver cgi? Also, how old/new is your mapserver codebase? Antti.Roppola at brs.gov.au wrote: > Hi all, > > I have PostGIS 0.7.1 built into Postgres 7.2.1 and it works > as a data source for generating maps. However, running any > queries against a PostGIS layer gives me an error (see below). > > Is this a know issue, or am I doing something wrong? I have the > same data and layer entry as a shape and it works fine. > > Cheers, > > Antti > > > Fatal error: MapServer Error in msPOSTGISLayerGetShape(): Error executing POSTGIS SQL statement: DECLARE mycursor BINARY CURSOR FOR SELECT gid::text,fnode_::text,tnode_::text,lpoly_::text,rpoly_::text,length::text,xyc00002_::text,xyc00002_i::text,id::text,f_code::text,f_code_des::text,acc::text,acc_descri::text,exs::text,exs_descri::text,med::text,med_descri::text,rst::text,rst_descri::text,rsu::text,rsu_descri::text,rtt::text,rtt_descri::text,soc::text,tile_id::text,edg_id::text,asbinary(force_collection(force_2d(the_geom)),'NDR') from roads WHERE OID = 35115 in /home/www2/mapserv/sde_demo/functions.inc on line 105 > > From mschulz at webgis.de Thu Sep 5 00:12:11 2002 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 05 Sep 2002 09:12:11 +0200 Subject: [mapserver-users] add nodefaultlib into makefile References: <68107A9AF023EA439FF7CC2AD02D8FE503A50B@pltnpo1.c-cor.com> Message-ID: <3D7703CB.75EB7382@webgis.de> Hi, hmm, i had a similar problem. Did you compile gd.lib with the target 'gd.lib' or with target 'all'? Since my compilation target 'all' would throw errors in some test programs but the gd.lib was built fine. Another possibilty could be that you compiled freetype with a wrong runtime c library. Did you use a project in vc++ studio? If so, you can change the runtime library that it is linked against in the project menu -> settings -> c/c++ -> code generation. Use single-threaded option instead of multi-threaded. This worked for me. HTH, Michael "Zhang, William" schrieb: > Hi, > > I am trying to compile gd.lib on Win2000 machine. I got error message > showing MSVCRT.lib conflicts with LIBC.lib. I think I should add > /nodefaultlib:"MSVCRT.lib" into the Makefile.nt file of gd-1.8.4. But I > don't know how to do that. Could somebody give me a help on this? > > Thanks, > > William -- ----------------------------------------------------------- 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 m.spring at gmx.de Wed Sep 4 23:45:26 2002 From: m.spring at gmx.de (m.spring at gmx.de) Date: Thu, 05 Sep 2002 08:45:26 +0200 Subject: [mapserver-users] MS_MAXSYMBOLS In-Reply-To: <1031148580.817.5.camel@grobi> (Thorsten Fischer's message of "04 Sep 2002 16:09:37 +0200") References: <5B025B1F39D6D4119F5700508BEEEC662DFC0A@srsofaioi4546.ktso.ch> <1031148580.817.5.camel@grobi> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thorsten Fischer writes: > Change MS_MAXSYMBOLS in mapsymbol.h and recompile th You can do this with a simple perl-oneliner (I include this in my buildscript) # set number of symbols to 128 perl -p -i'.orig' -e 's/#define MS_MAXSYMBOLS \d+/#define MS_MAXSYMBOLS 128/' mapsymbol.h Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard iD8DBQE9dv2GxxUzQSse11ARAlDNAJ98RLpt8LVzRwY5tVQnZtwMZRnbHACfQvuA rC4gAN+QxL0vopBok6i9W6A= =+5JR -----END PGP SIGNATURE----- From m.spring at gmx.de Wed Sep 4 23:41:27 2002 From: m.spring at gmx.de (m.spring at gmx.de) Date: Thu, 05 Sep 2002 08:41:27 +0200 Subject: [mapserver-users] Problem with INC (perl) In-Reply-To: <47C78830-C011-11D6-AD86-0003936306C2@geoanalytics.com> (Puneet Kishor's message of "Wed, 4 Sep 2002 09:19:10 -0500") References: <47C78830-C011-11D6-AD86-0003936306C2@geoanalytics.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Puneet Kishor writes: > > You can use Xbase.pm if using Perl, and that too works quite well. Of > course, that is not working for you. Did you install Xbase.pm >> >> Can't locate XBase.pm in @INC (@INC contains: Please keep in mind that there are two similar sounding perl modules: Xbase.pm and XBase.pm The latter comes from DBD-XBase, and it has a completely different interface. (I ran into this trouble a year ago) Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard iD8DBQE9dvyWxxUzQSse11ARAsnTAJ97MH+xalt4y5sP194S1sKxirjmuwCfckGx QOS0Eim6hCVxpJoyn6c3B/U= =w/c7 -----END PGP SIGNATURE----- From oskhom at yahoo.com Thu Sep 5 00:42:00 2002 From: oskhom at yahoo.com (ALI OSKUE) Date: Thu, 5 Sep 2002 00:42:00 -0700 (PDT) Subject: [mapserver-users] unsubscribe Message-ID: <20020905074200.81636.qmail@web10402.mail.yahoo.com> unsubscribe mapserver-dev your_emailid __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From ian at geography.leeds.ac.uk Thu Sep 5 02:24:20 2002 From: ian at geography.leeds.ac.uk (Ian Turton) Date: Thu, 05 Sep 2002 10:24:20 +0100 Subject: [mapserver-users] external links in a map In-Reply-To: <13858AA1A74F30419F319ACB66A9D12201940D@mercator.topozone.c om> Message-ID: <5.1.0.14.0.20020905101913.00a5b010@geog.leeds.ac.uk> At 19:56 04/09/02, Ed McNierney wrote: >Ian - > >While I don't disagree with your general approach, I think this is a very >reasonable feature for MapServer, and I've been looking at it a bit >myself. If it's reasonable to let MapServer generate point symbols or >polygons on a map image, and it's reasonable for MapServer to have a >"query" mode in which you click on those things to produce querymaps of >that feature, then I think it's equally reasonable for that server to >generate flyover labels, etc. for the same feature. It happens that HTML >requires a completely different set of tags (imagemap) to do such a thing, >but that's not MapServer's fault nor is it a good reason to not want >MapServer to generate them. > >What I do not particularly want is two SEPARATE tools traversing the same >data set to generate two related outputs unless there's a deterministic >way to ensure they are consistent. If GeoTools and MapServer don't render >a polygon feature exactly the same way, my imagemap won't agree with my >image. That may or may not be important to my application. I fact I was proposing using MapServer should generate the image (preferably in WMS mode) while the client handles the pop ups or hovers based on info from the server (possibly acting as a Web Feature Server WFS). Certainly for hover/flyover labels you'd want to avoid the over head of a HTTP call each time, it's hard to optimize that stuff in a single program with out latency in too. >GeoTools is CERTAINLY worth investigating for this particular problem, but >do think that it's a reasonable thing to want MapServer to do. Another >good tool philosophy is that if you've got one tool that already knows how >to do 90% of the job, it might be helpful to add the other 10%. I think >they're both useful ways of looking at a problem. In fact someone else suggested how to do some of it in existing mapscript so I'm off to read up on that as I'd previously overlooked templates in that regard. > - Ed > >Ed McNierney Ian Ian Turton, Centre for Computational Geography, School of Geography, University of Leeds, Leeds, LS2 9JT. ***0113 3433392 - New Phone No*** URL: http://www.geog.leeds.ac.uk/staff/i.turton/ From j.macgill at geography.leeds.ac.uk Thu Sep 5 02:46:58 2002 From: j.macgill at geography.leeds.ac.uk (James Macgill) Date: Thu, 05 Sep 2002 10:46:58 +0100 Subject: [mapserver-users] Java - Mapserver In-Reply-To: Message-ID: <5.1.1.6.0.20020905102355.025a5fd0@geog.leeds.ac.uk> At 21:30 03/09/2002, Steve Lime wrote: >I'd be interested in seeing the new code base. I've made a snapshot available for people not able to use CVS, its not a formal release but a handy stopgap. > I think it's critical >that MapServer have capabilities in the Java world. There are other >options, perhaps the most intruiging would be leveraging GeoTools. >There's no way, unless a bounty of developers appears, that MapServer >will be re-written in Java. I'm not even sure that it's a good idea. >What about the possibility of writing a set of classes on top of >GeoTools to mimic MapScript? I have to confess that, whilst we use MapServer a lot, its tends to be as a wms and not in conjunction with MapScript so I'm not yet familiar with it or how much would be involved. >Sure, some things would have to be written >from scratch, but I would imagine (having not seen the GT2 APIs) that >much of the core functionality already exists in GeoTools (graphics >creation/query). GT2 is still quite new, graphics creation with good control over style is defiantly there, the exact nature of the query mechanism is being worked on. (Though, all base code for processing a query is in place) > That would give you a pure Java version of >MapServer/MapScript. The advantage of mimicing MapScript is that there's >already a user/documentation/application base to draw from. That does sound like a very useful option providing the two api's could be kept close enough together. > You'd >probably also have classes available to use the MapServer style of >application development (for better or worse) with regular GeoTools >components, thus extending MapScript and GeoTools. GT2 has a modular architecture, so adding additional functionality like this would not bloat the core API. (For example, the wmsserver is implemented as a separate module) >Thoughts? I'd be more than happy to assist in the creation of an API to mimic MapScript, especially as doing so would ensure that GT2 supported a good key functionality set. I think development would be iterative, with more of the MapScript API being available as the capabilities of GT2 expanded. My own time for such a project would be limited as I have to focus on the main development of GT2, however I could assist in explaining the GT2 architecture, and extending the capabilities of GT2 when they fell behind what was needed to support MapScript. All the best James -- James Macgill Center for Computational Geography http://www.ccg.leeds.ac.uk Spell Checker (c) Creative Spelling inc (aka my dyslexic brain) http://www.geotools.org a client side java mapping toolkit. From tom at internetgids.be Thu Sep 5 03:10:39 2002 From: tom at internetgids.be (Tom Myny) Date: Thu, 5 Sep 2002 12:10:39 +0200 Subject: [mapserver-users] setsymbolset() in mapserver 3.6.1 Message-ID: <003b01c254c4$7c712bf0$0100a8c0@cpi.local> PHP Fatal error: Call to undefined function: setsymbolset() in /web/internetgids/maps/aalter/aalter.php on line 414 Is it possible that this function still doesn't work in mapservers 3.6.1 ? Greetings, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhart at frw.uva.nl Thu Sep 5 04:48:27 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 05 Sep 2002 13:48:27 +0200 Subject: [mapserver-users] question regarding postgis References: <3DFF131E4E6D2D4198CDD758F35A5353010ABD5E@postoffice.GASAI.Com> Message-ID: <3D77448B.5040803@frw.uva.nl> Hankley, Chip wrote: >I'm pretty sure that there is NOT a pre-compiled binary (for windows) that >has PostGIS support on the DMSolutions site. I think that you'll have to use >the CGI mapserver for now... (if you want to do PostGIS). > >Chip > > I compiled PostGIS support into my Windows MapServer sourcetree half a year ago. At that time I needed to add two #defines for BIG_ENDIAN and LITTLE_ENDIAN in mappostgis.c (added in the regular distribution since then, I think), and add compile and link directives both in the main Makefile.vc and in the PHP-Mapscript Makefile.vc: -DUSE _POSTGIS and the paths to libpqdll.lib and the libpq include directory in the Makefile variables POSTGIS_LIB and POSTGIS_INC. The required PostgreSQL libraries are available for Windows, although the complete PostgreSQL database system is not (as yet). This means that with some minor patches it is possible to access layers from a PostGIS server with both CGI and PHP Mapserver. However, PostGIS cannot be running on the same server as the (Windows) MapServer, as PostgreSQL cannot be compiled for native Windows (yet). This leads to severe performance problems, as a MapServer request for a PostGIS layer will cause the complete vector layer to be transported over the net. Only then it can be rendered by MapServer. For that reason I completely switched over to Linux, and can't produce the binaries any more,. It shouldn't be too difficult to add those directives in the regular MapServer distribution. As a general rule MapServer support for MS-Windows compilation is excellent, so I don't understand why PostGIS isn't taken in as an option for compilation or in the binary distributions. Am I overlooking some difficulties here? Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From nhv at cape.com Thu Sep 5 05:16:13 2002 From: nhv at cape.com (Norman Vine) Date: Thu, 5 Sep 2002 08:16:13 -0400 Subject: [mapserver-users] question regarding postgis References: <3DFF131E4E6D2D4198CDD758F35A5353010ABD5E@postoffice.GASAI.Com> <3D77448B.5040803@frw.uva.nl> Message-ID: <02ec01c254d6$07cc9de0$0100a8c0@sfdev3> Jan Hartmann writes: > . However, > PostGIS cannot be running on the same server as the (Windows) > MapServer, as PostgreSQL cannot be compiled for native Windows (yet). FYI PostgreSQL is distributed as part of Cygwin and I have placed a compiled Cygwin PostGIS extension module at http://www.vso.cape.com/~nhv/files/cygwin/postgis.tgz There is also a beta Native Win32 PostgreSQL distribution Cheers Norman < following is a repost from the postgis-users list > From: Norman Vine [nhv at cape.com] Sent: Tuesday, August 20, 2002 4:01 PM To: 'postgis-users at postgis.refractions.net' Subject: RE: [postgis-users] [Fwd: New Beta Release of Windows] Tyler Mitchell writes: > >Can anyone give some guidance on running pgsql2shp/shp2pgsql >in windows? >Anyone else getting consistent results with those tools? I have placed native WIN32 versions of pgsql2shp / shp2pgsql @ http://www.vso.cape.com/~nhv/files/postgres/loaders_win32.tgz these seem to work fine for me in conjunction with the following http://dcwaterdesign.sourceforge.net/postgis.zip ftp://209.61.187.152/multera/postgres_beta2.zip < snip > From alainferriol at data-mobiles.com Thu Sep 5 05:22:31 2002 From: alainferriol at data-mobiles.com (Alain FERRIOL) Date: Thu, 5 Sep 2002 14:22:31 +0200 Subject: [mapserver-users] Line with many colors Message-ID: <005301c254d7$08b3d420$0300000a@oleane.com> Hi all, I'd like to figure my highways with a composite line. Example : inside green and borderline red. But it seems to me, that borderline are not used wtih lines. Is there a solution to do that ? Thank's a lot Alain Ferriol -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhart at frw.uva.nl Thu Sep 5 05:32:57 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 05 Sep 2002 14:32:57 +0200 Subject: [mapserver-users] external links in a map References: <5.1.0.14.0.20020904191627.0559b210@geog.leeds.ac.uk> Message-ID: <3D774EF9.7070400@frw.uva.nl> Ian Turton wrote: > I think you're really looking for a smart client to be able to do that > for you. Perhaps slightly off-topic, but isn't that just what we are all looking for? MapServer really is a great Open Source product (I don't find it bloated at all, did you ever look at ArcInfo?), but its main strength, like so many OS programs, lies in server side processing. I haven't worked as much with GeoTools as with MapServer, but every time I see it I think, Gee, I would like to use this client interface with MapServer. I think Steve Lime meant something like that too in his reaction. If you are working on server side processing in GeoTools 2, why not add some kind of bridge to MapServer? The CGI interface is essentially quite simple, so adding functionality for it alongside your Java server-processing shouldn't be too much of a problem. Both products working together would certainly be a more powerful combination than the sum of the two of them in isolation. Just my 2 eurocent of opinion > Maybe this is just because I'm a sad old unix hacker .... Cheer up Ian. Remember Coleridge's Ancient Mariner, who woke up not only a sadder, but also a wiser man. Jan Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From stepan.kafka at centrum.cz Thu Sep 5 06:06:48 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Thu, 5 Sep 2002 15:06:48 +0200 Subject: [mapserver-users] Line with many colors In-Reply-To: <005301c254d7$08b3d420$0300000a@oleane.com> Message-ID: <001901c254dd$181414b0$7e3c2fc3@HSGIS> In this stage you have to use two (duplicate) layers and group them to switch together. (You are able use OVERLAYSYMBOL, OVERLAY COLOR etc. but for centerline you need new layer defined in your mapfile.) Stepan Kafka -----Puvodn? zpr?va----- Od: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Alain FERRIOL Odesl?no: 5. z?r? 2002 14:23 Komu: mapserver-users at lists.gis.umn.edu Predmet: [mapserver-users] Line with many colors Hi all, I'd like to figure my highways with a composite line. Example : inside green and borderline red. But it seems to me, that borderline are not used wtih lines. Is there a solution to do that ? Thank's a lot Alain Ferriol -------------- next part -------------- An HTML attachment was scrubbed... URL: From rholloway_1999 at yahoo.com Thu Sep 5 06:03:17 2002 From: rholloway_1999 at yahoo.com (Rob Holloway) Date: Thu, 5 Sep 2002 06:03:17 -0700 (PDT) Subject: [mapserver-users] Fwd: full extent In-Reply-To: <3D768388.60606@cnrit.tamu.edu> Message-ID: <20020905130317.15649.qmail@web12505.mail.yahoo.com> Hi I tried the code you supplied but I'm still having some problems. The button only works after I have manually selected my pan radio button - for some reason the document.mapserv.zoomdir.value = 1; doesn't seem to work. Have any ideas? Cheers Rob --- Mike Smith wrote: > I borrowed this javascript function from the > mapserver mail archive and > it works for me. Just put this code in the head > block of your HTML page: > > > > then call the function from any image (for example) > using the "onClick" > action like this: > > > > Hope this helps, > > Mike Smith > > Steve Lime wrote: > > > > > > ------------------------------------------------------------------------ > > > > Subject: > > > > full extent > > From: > > > > Rob Holloway > > Date: > > > > Wed, 4 Sep 2002 11:14:46 -0700 (PDT) > > To: > > > > mapserver-info at lists.gis.umn.edu > > > > > >Hi > > > >I'm trying to create a zoom to full extent button > >without much success. Does anyone have any > >suggestions/code to offer. Thanks! > > > >Rob > > > >__________________________________________________ > >Do You Yahoo!? > >Yahoo! Finance - Get real-time stock quotes > >http://finance.yahoo.com > > > > > > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From jimmy at deefa.com Thu Sep 5 06:20:29 2002 From: jimmy at deefa.com (James Healy) Date: 05 Sep 2002 23:20:29 +1000 Subject: [mapserver-users] Pulling data from a shp file In-Reply-To: <003b01c254c4$7c712bf0$0100a8c0@cpi.local> References: <003b01c254c4$7c712bf0$0100a8c0@cpi.local> Message-ID: <1031232031.3111.2.camel@jimmy> Okay, I finally work projections out, thanks heaps for all your help... I had an idea on how to plan our data structure today, but have to ask a question before i can follow the idea through... is it possible to only display certain data from a shp file based on one of the fields in the dbf file? ie. show all lines from this file where [status] = "active"?, where status is a field in the dbf file?? thanks James -- ****************************************************** "Before you criticise someone, you should walk a mile in their shoes. That way, when you criticise them, you're a mile away and you have their shoes. " work: worker at aycs.org.au / personal: jimmy at deefa.com msn: jimmy at deefa.com / ICQ: 6370237 web: www.deefa.com ****************************************************** From jhart at frw.uva.nl Thu Sep 5 06:48:19 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 05 Sep 2002 15:48:19 +0200 Subject: [mapserver-users] question regarding postgis References: <3DFF131E4E6D2D4198CDD758F35A5353010ABD5E@postoffice.GASAI.Com> <3D77448B.5040803@frw.uva.nl> <02ec01c254d6$07cc9de0$0100a8c0@sfdev3> Message-ID: <3D7760A3.4030107@frw.uva.nl> Norman Vine wrote: >Jan Hartmann writes: > > >>. However, >>PostGIS cannot be running on the same server as the (Windows) >>MapServer, as PostgreSQL cannot be compiled for native Windows (yet). >> >> > >FYI >PostgreSQL is distributed as part of Cygwin and I have placed a >compiled Cygwin PostGIS extension module at >http://www.vso.cape.com/~nhv/files/cygwin/postgis.tgz > >There is also a beta Native Win32 PostgreSQL distribution > >Cheers > >Norman > > > > Thanks Norman. Two questions: - Do you have any experience in running MapServer CGI (native Windows) alongside PostGIS (cygwin), or should both be compiled under Cygwin? - Do you have pointers to the Native Win32 distribution? I thougt it was still experimental. Jan From nospam at cnrit.tamu.edu Thu Sep 5 06:49:40 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Thu, 05 Sep 2002 08:49:40 -0500 Subject: [mapserver-users] Fwd: full extent References: <20020905130317.15649.qmail@web12505.mail.yahoo.com> Message-ID: <3D7760F4.2060008@cnrit.tamu.edu> I actually had to play with it a while to get it working also. As you can see the comment line right above that line where I'm setting the zoomdir says that we must "select the Pan option", but a zoomdir value of "1" is really zoom in. Selecting Pan didn't work in my web page, so I started manually setting the zoomdir value to 1 (zoom in) and it worked. Couple of notes here. You will probably be able to nail down exactly what your problem is by watching the "Javascript Console" that comes with your web browser. Under Netscape I find this console by pulling down the "Tasks" menu in my browser and going to the "Tools" option and then selecting "Javascript Console". I see exactly which line of my code is crapping out by watching the errors that appear on that console when I load my page. Also, I went ahead and put a couple of lines into my init HTML page to manually set the initial values of a couple of variables...like this: Then in my main HTML page I put these two lines: I did this just to avoid getting any "document.mapserv.zoomdir.value has no properties" errors. Please also note that you must have named your HTML form "mapserv" in order to use my code word-for-word, for example, my HTML FORM tag looks like this:
If the word after the "name=" in your form tag looks any different, then you need to substitute all the "mapserv" words in my javascript code with whatever you have named your form. Hope this helps, Mike Rob Holloway wrote: >Hi > >I tried the code you supplied but I'm still having >some problems. The button only works after I have >manually selected my pan radio button - for some >reason the document.mapserv.zoomdir.value = 1; >doesn't seem to work. Have any ideas? > >Cheers > >Rob > >--- Mike Smith wrote: > >>I borrowed this javascript function from the >>mapserver mail archive and >>it works for me. Just put this code in the head >>block of your HTML page: >> >> >> >>then call the function from any image (for example) >>using the "onClick" >>action like this: >> >> >> >>Hope this helps, >> >>Mike Smith >> >>Steve Lime wrote: >> >>> >------------------------------------------------------------------------ > >>>Subject: >>> >>>full extent >>>From: >>> >>>Rob Holloway >>>Date: >>> >>>Wed, 4 Sep 2002 11:14:46 -0700 (PDT) >>>To: >>> >>>mapserver-info at lists.gis.umn.edu >>> >>> >>>Hi >>> >>>I'm trying to create a zoom to full extent button >>>without much success. Does anyone have any >>>suggestions/code to offer. Thanks! >>> >>>Rob >>> >>>__________________________________________________ >>>Do You Yahoo!? >>>Yahoo! Finance - Get real-time stock quotes >>>http://finance.yahoo.com >>> >>> >> > > >__________________________________________________ >Do You Yahoo!? >Yahoo! Finance - Get real-time stock quotes >http://finance.yahoo.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Hankley at GASAI.Com Thu Sep 5 06:59:24 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 5 Sep 2002 08:59:24 -0500 Subject: [mapserver-users] Pulling data from a shp file Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD60@postoffice.GASAI.Com> James... Check out EXPRESSION in the map file reference... I think that's what you're looking for. Chip -----Original Message----- From: James Healy [mailto:jimmy at deefa.com] Sent: Thursday, September 05, 2002 8:20 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Pulling data from a shp file Okay, I finally work projections out, thanks heaps for all your help... I had an idea on how to plan our data structure today, but have to ask a question before i can follow the idea through... is it possible to only display certain data from a shp file based on one of the fields in the dbf file? ie. show all lines from this file where [status] = "active"?, where status is a field in the dbf file?? thanks James -- ****************************************************** "Before you criticise someone, you should walk a mile in their shoes. That way, when you criticise them, you're a mile away and you have their shoes. " work: worker at aycs.org.au / personal: jimmy at deefa.com msn: jimmy at deefa.com / ICQ: 6370237 web: www.deefa.com ****************************************************** From nhv at cape.com Thu Sep 5 07:24:14 2002 From: nhv at cape.com (Norman Vine) Date: Thu, 5 Sep 2002 10:24:14 -0400 Subject: [mapserver-users] question regarding postgis References: <3DFF131E4E6D2D4198CDD758F35A5353010ABD5E@postoffice.GASAI.Com> <3D77448B.5040803@frw.uva.nl> <02ec01c254d6$07cc9de0$0100a8c0@sfdev3> <3D7760A3.4030107@frw.uva.nl> Message-ID: <042f01c254e7$e9dcb790$0100a8c0@sfdev3> Jan Hartmann writes: > Norman Vine wrote: > > >Jan Hartmann writes: > > > >>. However, > >>PostGIS cannot be running on the same server as the (Windows) > >>MapServer, as PostgreSQL cannot be compiled for native Windows (yet). > >> > > > >FYI > >PostgreSQL is distributed as part of Cygwin and I have placed a > >compiled Cygwin PostGIS extension module at > >http://www.vso.cape.com/~nhv/files/cygwin/postgis.tgz > > > >There is also a beta Native Win32 PostgreSQL distribution >> > > > Thanks Norman. Two questions: > > - Do you have any experience in running MapServer CGI (native Windows) > alongside PostGIS (cygwin), or should both be compiled under Cygwin? This should work fine although I haven't tried it I am currently running a Cygwin compiled MapServer and Python MapScript against the Native Win32 PostgreSQL > - Do you have pointers to the Native Win32 distribution? I thougt it was > still experimental. The Native version is 'beta' but seems to work. My concern now is 'learning' how to compile the extension modules FWIW I find http://phppgadmin.sourceforge.net/ quite useful Cheers Norman From LLO at carlbro.dk Thu Sep 5 08:25:07 2002 From: LLO at carlbro.dk (Lars Holm Loldrup) Date: Thu, 5 Sep 2002 16:25:07 +0100 Subject: [mapserver-users] OpenSource mapEditor Message-ID: <02Sep5.162507cest.119058@gateway1.carlbro.dk> We are pleased to announce the release of our mapEditor for mapserver mapfiles. The editor works with mapfiles in XML format. Get it here: http://software-dkplan.carlbro.dk/mapEditor/index.html Please note that the server-alias software-dkplan.carlbro.dk has been created today, so it may NOT exist in your DNS-server at this moment. Regards Lars Loldrup From nospam at cnrit.tamu.edu Thu Sep 5 08:00:44 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Thu, 05 Sep 2002 10:00:44 -0500 Subject: [mapserver-users] How to keep map from zooming/panning when I refresh? Message-ID: <3D77719C.4040503@cnrit.tamu.edu> Hello, I've got my page working pretty well now thanks to lots of Javascript code I borrowed from this mailing list, but I've still got one problem that I can't seem to find a solution for in the archives. I've got my page set up so that the various layers that are available to view are in a list on the right-hand side of the page with checkboxes next to them. And since I wanted the behavior of the page to imitate ArcView as much as possible (because most of my users are used to that interface) I put in a little javascript function that automatically reloads the page whenever they check or uncheck a layer (without having to click a "refresh" button). My problem is that the layer loads or unloads fine, but my image also pans or zooms at the same time depending on what function they have checked. How can I make my page reload without changing the current view at all? Even if they have the "Zoom In" button clicked and the zoomsize is set to "2" I don't want the page to zoom in when they just add a new layer. Is there a value that I can set "zoomdir" to besides 1, 0, or -1 that basically disables panning and zooming altogether? Thanks in advance, Mike Smith P.S. - Here's my javascript code that automatically loads/unloads layers: function UpdateMap() { document.mapserv.submit(); //Note that my form name is "mapserv" } Then I add this to my checkbox tag: onClick="UpdateMap();" From alainferriol at data-mobiles.com Thu Sep 5 08:17:13 2002 From: alainferriol at data-mobiles.com (Alain FERRIOL) Date: Thu, 5 Sep 2002 17:17:13 +0200 Subject: [mapserver-users] shp file variable name Message-ID: <009c01c254ef$6f1bb940$0300000a@oleane.com> Hi all, Thank's a lot for yours answers about my previous question concerning lines with many colors, it work's perfectly now using overlay. Another little question ;-)) We'll have many customers connected to our mapserver and asking for localisation of they trucks. Actually, our php script generate an shp file (ie truck.shp) with all the trucks of our customer. But there is a risk that 2 customers are asking at the same time for 2 differents trucks and I don't want to see the informations for the first displayed to the second one ;-))) But how to specify a shp file name, for example with a timestamp and process number, in the layer ? All the best Alain Ferriol -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Thu Sep 5 08:17:22 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 05 Sep 2002 11:17:22 -0400 Subject: [mapserver-users] setsymbolset() in mapserver 3.6.1 References: <003b01c254c4$7c712bf0$0100a8c0@cpi.local> Message-ID: <3D777582.ECF6A790@dmsolutions.ca> > Tom Myny wrote: > > PHP Fatal error: Call to undefined function: setsymbolset() in > /web/internetgids/maps/aalter/aalter.php on line 414 > Is it possible that this function still doesn't work in mapservers > 3.6.1 ? > $map->setSymbolSet() was added during the 3.6 development... so it should have been there and working in 3.6.1. Don't forget that it is a method of the mapObj. Are you sure that you are calling it on a valid mapObj? -- ------------------------------------------------------------ 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 Tom.Kralidis at ccrs.nrcan.gc.ca Thu Sep 5 08:58:21 2002 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Tom.Kralidis at ccrs.nrcan.gc.ca) Date: Thu, 5 Sep 2002 11:58:21 -0400 Subject: [mapserver-users] WMS bounding box Message-ID: <7CDD7B94357FD5119E800002A537C46E226E1D@s5-ccr-r1.ccrs.nrcan.gc.ca> Hi, The difference between the two are LatLonBoundingBox gives the coverage in EPSG:4326, whereas BoundingBox gives the coverage in the native SRS (which may or may not be EPSG:4326). Which to use depends on the SRS used in the GetMap request of the WMS client. ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= > -----Original Message----- > From: Hao Ding [mailto:hdi12 at it.canterbury.ac.nz] > Sent: Thursday, September 05, 2002 12:55 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] WMS bounding box > > > Hello, > > The WMS capabilities file created from MapServer mapfile contains two > elements in a layer: Bounding Box and LatLon Bounding Box. Which one > should I use in the GetMap request? > > Cheers, > Hao > From DMartin at erac.com Thu Sep 5 09:46:31 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 5 Sep 2002 11:46:31 -0500 Subject: [mapserver-users] How to keep map from zooming/panning when I refresh? Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B20@STL-EXBE-I03.corp.erac.com> I think this will work: function UpdateMap() { document.forms.mapserv.zoomdir = ""; document.mapserv.submit(); } Or perhaps I'm missing something. I do exactly what you say in my client, but I use Rosa to control zooming and panning, so it is a bit different. -Dan -----Original Message----- From: Mike Smith [mailto:nospam at cnrit.tamu.edu] Sent: Thursday, September 05, 2002 10:01 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] How to keep map from zooming/panning when I refresh? Hello, I've got my page working pretty well now thanks to lots of Javascript code I borrowed from this mailing list, but I've still got one problem that I can't seem to find a solution for in the archives. I've got my page set up so that the various layers that are available to view are in a list on the right-hand side of the page with checkboxes next to them. And since I wanted the behavior of the page to imitate ArcView as much as possible (because most of my users are used to that interface) I put in a little javascript function that automatically reloads the page whenever they check or uncheck a layer (without having to click a "refresh" button). My problem is that the layer loads or unloads fine, but my image also pans or zooms at the same time depending on what function they have checked. How can I make my page reload without changing the current view at all? Even if they have the "Zoom In" button clicked and the zoomsize is set to "2" I don't want the page to zoom in when they just add a new layer. Is there a value that I can set "zoomdir" to besides 1, 0, or -1 that basically disables panning and zooming altogether? Thanks in advance, Mike Smith P.S. - Here's my javascript code that automatically loads/unloads layers: function UpdateMap() { document.mapserv.submit(); //Note that my form name is "mapserv" } Then I add this to my checkbox tag: onClick="UpdateMap();" From pkishor at GeoAnalytics.com Thu Sep 5 10:22:12 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 5 Sep 2002 12:22:12 -0500 Subject: [mapserver-users] How to keep map from zooming/panning when I refresh? Message-ID: Mike, Just add a 'redraw' button and on the server side check if the pan/zoom button exists or not... if it doesn't, don't redo any mapextent calculations. pk/ > -----Original Message----- > From: Mike Smith [mailto:nospam at cnrit.tamu.edu] > Sent: Thursday, September 05, 2002 10:01 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] How to keep map from zooming/panning when I > refresh? > > > Hello, > > I've got my page working pretty well now thanks to lots of > Javascript code I borrowed from this mailing list, but I've still got > one problem that I can't seem to find a solution for in the archives. > I've got my page set up so that the various layers that are > available > to view are in a list on the right-hand side of the page with > checkboxes > next to them. And since I wanted the behavior of the page to imitate > ArcView as much as possible (because most of my users are > used to that > interface) I put in a little javascript function that automatically > reloads the page whenever they check or uncheck a layer > (without having > to click a "refresh" button). My problem is that the layer loads or > unloads fine, but my image also pans or zooms at the same > time depending > on what function they have checked. How can I make my page reload > without changing the current view at all? Even if they have > the "Zoom > In" button clicked and the zoomsize is set to "2" I don't > want the page > to zoom in when they just add a new layer. Is there a value > that I can > set "zoomdir" to besides 1, 0, or -1 that basically disables > panning and > zooming altogether? > > Thanks in advance, > > Mike Smith > > P.S. - Here's my javascript code that automatically > loads/unloads layers: > > function UpdateMap() { > document.mapserv.submit(); //Note that my form name is "mapserv" > } > > Then I add this to my checkbox tag: > > onClick="UpdateMap();" > From WILLIC10 at mail.northgrum.com Thu Sep 5 11:33:06 2002 From: WILLIC10 at mail.northgrum.com (Williams, Chris D.) Date: Thu, 5 Sep 2002 11:33:06 -0700 Subject: [mapserver-users] Getting a lat/lon value from a map. Message-ID: I am trying to figure out how to setup my map file with the correct projection and a way to get lat/lon points from my map using the mapplet api. I currently have the projection set to the following: PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" "no_defs" END When I try to print out the CGI variables maplon, maplat, minlat, maxlat, or any of the others, they are never populated like they aren't defined. What am I missing in my config or is there a concept here that I am missing? Thanks Chris From DMartin at erac.com Thu Sep 5 11:51:19 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 5 Sep 2002 13:51:19 -0500 Subject: [mapserver-users] How to keep map from zooming/panning when I refresh? Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F2E7@STL-EXBE-I03.corp.erac.com> Whoops, I messed up the JavaScript. This is a correction, note ".value" is added: function UpdateMap() { document.forms.mapserv.zoomdir.value = ""; document.mapserv.submit(); } -----Original Message----- From: Martin, Daniel Sent: Thursday, September 05, 2002 11:47 AM To: 'Mike Smith'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] How to keep map from zooming/panning when I refresh? I think this will work: function UpdateMap() { document.forms.mapserv.zoomdir = ""; document.mapserv.submit(); } Or perhaps I'm missing something. I do exactly what you say in my client, but I use Rosa to control zooming and panning, so it is a bit different. -Dan -----Original Message----- From: Mike Smith [mailto:nospam at cnrit.tamu.edu] Sent: Thursday, September 05, 2002 10:01 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] How to keep map from zooming/panning when I refresh? Hello, I've got my page working pretty well now thanks to lots of Javascript code I borrowed from this mailing list, but I've still got one problem that I can't seem to find a solution for in the archives. I've got my page set up so that the various layers that are available to view are in a list on the right-hand side of the page with checkboxes next to them. And since I wanted the behavior of the page to imitate ArcView as much as possible (because most of my users are used to that interface) I put in a little javascript function that automatically reloads the page whenever they check or uncheck a layer (without having to click a "refresh" button). My problem is that the layer loads or unloads fine, but my image also pans or zooms at the same time depending on what function they have checked. How can I make my page reload without changing the current view at all? Even if they have the "Zoom In" button clicked and the zoomsize is set to "2" I don't want the page to zoom in when they just add a new layer. Is there a value that I can set "zoomdir" to besides 1, 0, or -1 that basically disables panning and zooming altogether? Thanks in advance, Mike Smith P.S. - Here's my javascript code that automatically loads/unloads layers: function UpdateMap() { document.mapserv.submit(); //Note that my form name is "mapserv" } Then I add this to my checkbox tag: onClick="UpdateMap();" From Bjarni.Pjetursson at tietoenator.com Thu Sep 5 12:55:29 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Thu, 5 Sep 2002 21:55:29 +0200 Subject: [mapserver-users] Line label in the edge of the map Message-ID: <18E0CC75605BD411907800508B8BB8D00165EFFD@odin.enator.dk> Hi, I've added latlong lines to my map and would like to place labels at the edges of the map (atlas style). When I try to use upper-left etc. for the labels, it only moves the labels a few pixels away from the center of the line. Is it possible to make the labels appear at the beginning or end of the line - that is, at the edge of the map? Regards Bjarni Thor Pjetursson From woodbri at swoodbridge.com Thu Sep 5 12:35:18 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 5 Sep 2002 15:35:18 -0400 Subject: [mapserver-users] HELP mapserver webserver seems to be down! Message-ID: <3D7779B6.26549.EBE7E66@localhost> It looks like mapserver.gis.umn.edu is off line! can somebody check into it if they aren't already. Thanks, -Steve From woodbri at swoodbridge.com Thu Sep 5 13:30:52 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 5 Sep 2002 16:30:52 -0400 Subject: [mapserver-users] Line label in the edge of the map In-Reply-To: <18E0CC75605BD411907800508B8BB8D00165EFFD@odin.enator.dk> Message-ID: <3D7786BC.10924.EF15F6B@localhost> You can position labels untransformed on the image but you would have to know where the line crosses the image in pixel space. Or if you can calculate the lat/long of where you want your label placed by say intersecting the lat or long line with the edge (extents) of you map you can get the lat/long, then position it at UL and you can give additional OFFSETs in X and Y to get it positioned nicely. -Steve On 5 Sep 2002 at 21:55, Bjarni Pjetursson wrote: > Hi, > > I've added latlong lines to my map and would like to place labels at > the edges of the map (atlas style). > > When I try to use upper-left etc. for the labels, it only moves the > labels a few pixels away from the center of the line. > > Is it possible to make the labels appear at the beginning or end of > the line - that is, at the edge of the map? > > Regards > Bjarni Thor Pjetursson > From david.fawcett at moea.state.mn.us Thu Sep 5 13:57:15 2002 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Thu, 5 Sep 2002 15:57:15 -0500 Subject: [mapserver-users] Status of JOIN Functionality 3.6? Message-ID: What is the status of the JOIN object in version 3.6? Has the simple join functionality present in 3.11 been revived in 3.6? Using CGI on Win32, I would like to do one to many joins with a .dbf file. I would prefer to not have to use Postgresql, MySQL, etc. I searched the listserv archive, but didn't see any info on the subject. Thanks, David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 From steve.lime at dnr.state.mn.us Thu Sep 5 14:28:11 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 05 Sep 2002 16:28:11 -0500 Subject: [mapserver-users] Status of JOIN Functionality 3.6? Message-ID: Joins will be in place in 3.7 but probably not for any subsequent 3.6 releases. I've not looked closely at the code to know for sure though. Steve >>> "Fawcett, David" 09/05/02 03:57PM >>> What is the status of the JOIN object in version 3.6? Has the simple join functionality present in 3.11 been revived in 3.6? Using CGI on Win32, I would like to do one to many joins with a .dbf file. I would prefer to not have to use Postgresql, MySQL, etc. I searched the listserv archive, but didn't see any info on the subject. Thanks, David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 From Antti.Roppola at brs.gov.au Thu Sep 5 19:56:47 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Fri, 6 Sep 2002 12:56:47 +1000 Subject: [mapserver-users] RE: Querying PostGIS layer attributes -> error Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D9953DC@ACTMAIL2> Hello all, I generated a point layer and that works OK. Since the release notes for PostGIS 0.7.2 and 0.7.3 mention fixes to shp2pgsql, I am guessing that may have something to do with it. Thanks, Antti -----Original Message----- From: Roppola, Antti - BRS Sent: Thursday, 5 September 2002 2:37 PM To: mapserver-users at lists.gis.umn.edu Subject: Querying PostGIS layer attributes -> error Hi all, I have PostGIS 0.7.1 built into Postgres 7.2.1 and it works as a data source for generating maps. However, running any queries against a PostGIS layer gives me an error (see below). Is this a know issue, or am I doing something wrong? I have the same data and layer entry as a shape and it works fine. Cheers, Antti Fatal error: MapServer Error in msPOSTGISLayerGetShape(): Error executing POSTGIS SQL statement: DECLARE mycursor BINARY CURSOR FOR SELECT gid::text,fnode_::text,tnode_::text,lpoly_::text,rpoly_::text,length::text,xyc00002_::text,xyc00002_i::text,id::text,f_code::text,f_code_des::text,acc::text,acc_descri::text,exs::text,exs_descri::text,med::text,med_descri::text,rst::text,rst_descri::text,rsu::text,rsu_descri::text,rtt::text,rtt_descri::text,soc::text,tile_id::text,edg_id::text,asbinary(force_collection(force_2d(the_geom)),'NDR') from roads WHERE OID = 35115 in /home/www2/mapserv/sde_demo/functions.inc on line 105 From eichin at thok.org Fri Sep 6 00:00:41 2002 From: eichin at thok.org (Mark Eichin) Date: 06 Sep 2002 03:00:41 -0400 Subject: [mapserver-users] MS_MAXSYMBOLS In-Reply-To: Thorsten Fischer's message of "04 Sep 2002 16:09:37 +0200" References: <5B025B1F39D6D4119F5700508BEEEC662DFC0A@srsofaioi4546.ktso.ch> <1031148580.817.5.camel@grobi> Message-ID: > Because it's good programming style to use limits. 64 is ... uhm. Well Not to be harsh, but, ummm.... "how 1970's" :-) The only thing limits like this gets you is the need to edit and recompile things to fix them. If you're not doing hard real-time programming (and indeed, you're not) or the limit corresponds to something physical (interface packet size limit, physical number of ports, that kind of thing) dynamic allocation is a win, really. Out of curiosity, from where (and when) did this code evolve? I've never run across an error-handling API quite like msSetError before, and given that there's code in the mapserver release tree that misuses it[1] it would be nice to have more background from which to guess. _Mark_ [1] the shptree tools, at least in 3.6.1, don't report *any* errors, even "permission denied", and are prone to generating corrupt .qix files, and I can't even tell if that's due to unreported errors or other bugs without massaging some of the code... I'll send in patches once I figure out what's wrong, in the short term the hack of noticing that shptreetst dumps core on the corrupt ones leads to an sh one-liner to delete them... of course, the shptree tools are in a different code style than the rest of the tree, likely contributed from the Windows side of things, given the use of Hungarian notation. From nicolasb at maich.gr Fri Sep 6 00:07:41 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Fri, 06 Sep 2002 10:07:41 +0300 Subject: [mapserver-users] question regarding postgis References: <3DFF131E4E6D2D4198CDD758F35A5353010ABD5E@postoffice.GASAI.Com> <3D77448B.5040803@frw.uva.nl> <02ec01c254d6$07cc9de0$0100a8c0@sfdev3> <3D7760A3.4030107@frw.uva.nl> Message-ID: <3D78543D.10308@maich.gr> >> > Thanks Norman. Two questions: > > - Do you have any experience in running MapServer CGI (native Windows) > alongside PostGIS (cygwin), or should both be compiled under Cygwin? > > - Do you have pointers to the Native Win32 distribution? I thougt it was > still experimental. > > > Jan Hi, FWIW, postgis/native 2in32 pgsql seem initially not to have any problem in the basic testing that I am now doing; meaning no crashes and such. While feature display works without a problem (Itasca demo), what I did notice though was an "pg_recv buff" error when trying to download a GML from the results of a query. It seems that this might be a problem only when using Tcl with the above, as some similar report has been filed on the pgsql lists. Does GML work ok with postgis in other applications? regards, nicolas boretos From hi-ono at mn.xdsl.ne.jp Fri Sep 6 02:20:21 2002 From: hi-ono at mn.xdsl.ne.jp (Hisaji ONO) Date: Fri, 6 Sep 2002 18:20:21 +0900 Subject: [mapserver-users] Any example using MapScript on XOOPS Message-ID: <00c301c25586$a00a3f80$650202c0@vip> Hello. I recently knew "XOOPS." Does anyone know any example using MapScript on this or any example of XOOPS module using MapScript? Best Regards. From jhart at frw.uva.nl Fri Sep 6 02:29:52 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Fri, 06 Sep 2002 11:29:52 +0200 Subject: [mapserver-users] question regarding postgis References: <3DFF131E4E6D2D4198CDD758F35A5353010ABD5E@postoffice.GASAI.Com> <3D77448B.5040803@frw.uva.nl> <02ec01c254d6$07cc9de0$0100a8c0@sfdev3> <3D7760A3.4030107@frw.uva.nl> <01a401c2557f$32052240$0500a8c0@jghome1> Message-ID: <3D787590.6020104@frw.uva.nl> Jens G?nther wrote: > Hi! > > In time i'm using the "Mapserver nativ, PostGIS cygwin"-Configuration (but > only for testing!). > It works! In two weeks we'll switch to productive! > > The only point is, that we still didn't get a stable Version of mapscript > dealing with postgis!:-( > Jens, this is surely a problem on your side. I have run Native Windows MapServer CGI and PHP with PostGIS extensions on a Linux PostGIS database without any trouble. Perhaps you could give some details on your MapScript problems? Jan From EDUARDOPK at vcp.com.br Fri Sep 6 04:26:43 2002 From: EDUARDOPK at vcp.com.br (EDUARDO PATTO KANEGAE) Date: Fri, 6 Sep 2002 08:26:43 -0300 Subject: [mapserver-users] mdb2shapefile - Access ==> ShapeFile exporting tool ! Message-ID: <0066FEFC20B1D411AB4600805F8540C403EE8214@la02vcp.vcp.com.br> Hi Fellows ! I've created a little tool for helping gis-users to export data of an access table to a shapefile-table. It's easy to use it... Check it at my site: http://www.scopotecnologia.com.br/download.php?file=17 I have not created its instalation, because "VB instalations" it's too large... so, the only thing that its zip file contains is: 1. the executable file 2. the README file Sorry for this and feel free to ask me anything about it or about other programs at the site. that's it! regards Eduardo Patto Kanegae http://www.scopotecnologia.com.br eduardo at scopotecnologia.com.br eduardopk at vcp.com.br From EDUARDOPK at vcp.com.br Fri Sep 6 04:15:52 2002 From: EDUARDOPK at vcp.com.br (EDUARDO PATTO KANEGAE) Date: Fri, 6 Sep 2002 08:15:52 -0300 Subject: [mapserver-users] mdb2shapefile - Access ==> ShapeFile exporting tool ! Message-ID: <0066FEFC20B1D411AB4600805F8540C403EE8210@la02vcp.vcp.com.br> Hi Fellows ! I've created a little tool for helping gis-users to export data of an access table to a shapefile-table. It's easy to use it... Check it at my site: http://www.scopotecnologia.com.br/download.php?file=17 I have not created its instalation, because "VB instalations" it's too large... so, the only thing that its zip file contains is: 1. the executable file 2. the README file Sorry for this and feel free to ask me anything about it or about other programs at the site. that's it! regards Eduardo Patto Kanegae http://www.scopotecnologia.com.br eduardo at scopotecnologia.com.br eduardopk at vcp.com.br From thfischer at mapmedia.de Fri Sep 6 09:10:54 2002 From: thfischer at mapmedia.de (Thorsten Fischer) Date: 06 Sep 2002 18:10:54 +0200 Subject: [mapserver-users] Fwd: full extent In-Reply-To: <3D768388.60606@cnrit.tamu.edu> References: <3D768388.60606@cnrit.tamu.edu> Message-ID: <1031328659.804.41.camel@grobi> > I borrowed this javascript function from the mapserver mail archive and > it works for me. Just put this code in the head block of your HTML page: [javascript snipped] As an enemy of anything javascript (and I am not to start an OT discussion here) I am just wondering: if you are hardcoding the extent etc. anyway, why not just build a simple link? Zoom to full extent Works with images as buttons too. I am sorry if I missed something dynamic here, but if it's hardcoded you do not need javascript. If your dynamic parts are mapserver-related (e.g. like the cgi program used) you can put mapserver cgi tags into your template, like [program]. hth, thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From nospam at cnrit.tamu.edu Fri Sep 6 06:53:04 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Fri, 06 Sep 2002 08:53:04 -0500 Subject: [mapserver-users] How to keep map from zooming/panning when I refresh? References: <4ACBA1414DD9EE418CC250E4AAA9035A16F2E7@STL-EXBE-I03.corp.erac.com> Message-ID: <3D78B340.20601@cnrit.tamu.edu> Thanks for this. This sorta worked...it kept my image from zooming in, but then it panned to the right for some reason?! I'm not sure what's up with that, but the other problem is that I've got to keep the "zoomdir" variable set because I keep the state of my "Zoom In", "Zoom Out", and "Pan" buttons based on the value of this variable, so setting it to null resets all my buttons. Regardless of my implementation, though, I even had this problem with the Itasca Demo... I'm just wondering if anybody else figured out a way to alter the image without the Mapserver CGI program reading and executing your zoomdir variable. Thanks for the help, though...anybody else have any ideas? MIke Martin, Daniel wrote: >Whoops, I messed up the JavaScript. This is a correction, note ".value" is >added: > >function UpdateMap() { > document.forms.mapserv.zoomdir.value = ""; > document.mapserv.submit(); >} > > >-----Original Message----- >From: Martin, Daniel >Sent: Thursday, September 05, 2002 11:47 AM >To: 'Mike Smith'; mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] How to keep map from zooming/panning when >I refresh? > > >I think this will work: > >function UpdateMap() { > document.forms.mapserv.zoomdir = ""; > document.mapserv.submit(); >} > >Or perhaps I'm missing something. I do exactly what you say in my client, >but I use Rosa to control zooming and panning, so it is a bit different. > >-Dan > >-----Original Message----- >From: Mike Smith [mailto:nospam at cnrit.tamu.edu] >Sent: Thursday, September 05, 2002 10:01 AM >To: mapserver-users at lists.gis.umn.edu >Subject: [mapserver-users] How to keep map from zooming/panning when I >refresh? > > >Hello, > > I've got my page working pretty well now thanks to lots of >Javascript code I borrowed from this mailing list, but I've still got >one problem that I can't seem to find a solution for in the archives. > I've got my page set up so that the various layers that are available >to view are in a list on the right-hand side of the page with checkboxes >next to them. And since I wanted the behavior of the page to imitate >ArcView as much as possible (because most of my users are used to that >interface) I put in a little javascript function that automatically >reloads the page whenever they check or uncheck a layer (without having >to click a "refresh" button). My problem is that the layer loads or >unloads fine, but my image also pans or zooms at the same time depending >on what function they have checked. How can I make my page reload >without changing the current view at all? Even if they have the "Zoom >In" button clicked and the zoomsize is set to "2" I don't want the page >to zoom in when they just add a new layer. Is there a value that I can >set "zoomdir" to besides 1, 0, or -1 that basically disables panning and >zooming altogether? > >Thanks in advance, > >Mike Smith > >P.S. - Here's my javascript code that automatically loads/unloads layers: > >function UpdateMap() { > document.mapserv.submit(); //Note that my form name is "mapserv" >} > >Then I add this to my checkbox tag: > >onClick="UpdateMap();" > > From root at shadow.munistgo.cl Fri Sep 6 07:10:03 2002 From: root at shadow.munistgo.cl (root) Date: Fri, 6 Sep 2002 10:10:03 -0400 Subject: [mapserver-users] php Message-ID: <200209061410.g86EA3f03884@shadow.munistgo.cl> i installed apache_1.3.26, php_4.1.1 y mapserver_3.6.1. PHP was installed as CGI MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I copy php_mapscript.so to /usr/local/lib as nobody user but phpinfo say me: Warning: Unable to load dynamic library './php_mapscript.so' - ./php_mapscript.so: cannot open shared object file: No such file or directory in /www/htdocs/phpinfo_mapscript.phtml on line 21 extension_dir ./ Regex Library System library enabled Dynamic Library Support enabled Thank in advance Patricio From steve.lime at dnr.state.mn.us Fri Sep 6 12:21:58 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 06 Sep 2002 14:21:58 -0500 Subject: [mapserver-users] MS_MAXSYMBOLS Message-ID: Actually it's "how 1990's"... Remember that portions of this code were written circa 1995, perhaps even earlier, initially as part of a pet project at the University of Minnesota, Department of Forest Resources. Not exactly of hotbed of advanced programming techniques, but then again the focus was on functionality and usability at that stage. Layers and such are dynamically allocated but based upon a limit. Haven't had time to go back and monkey with that. The limits become an issue for maybe one user a year, there is a workaround and there are always more pressing needs. If someone would like to help in converting arrays to lists (layers/symbols/styles and so on) it would be welcomed. The error handling is actually quite old. After all when you're developing for an audience of 1 who cares. Perhaps a re-write for 4.0... Shptree is also quite old. Originally written by Frank, but with no IO component. I added an initial version years ago and another developer built on that with the new style indexes, byte ordering and so on. I myself have not run into the index issues so pass along what you find, or at least shapefiles that are capable of generating the bad indexes. The other shapetools were actually part of the shapelib distribution, so blame them... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Mark Eichin 09/06/02 02:00AM >>> > Because it's good programming style to use limits. 64 is ... uhm. Well Not to be harsh, but, ummm.... "how 1970's" :-) The only thing limits like this gets you is the need to edit and recompile things to fix them. If you're not doing hard real-time programming (and indeed, you're not) or the limit corresponds to something physical (interface packet size limit, physical number of ports, that kind of thing) dynamic allocation is a win, really. Out of curiosity, from where (and when) did this code evolve? I've never run across an error-handling API quite like msSetError before, and given that there's code in the mapserver release tree that misuses it[1] it would be nice to have more background from which to guess. _Mark_ [1] the shptree tools, at least in 3.6.1, don't report *any* errors, even "permission denied", and are prone to generating corrupt .qix files, and I can't even tell if that's due to unreported errors or other bugs without massaging some of the code... I'll send in patches once I figure out what's wrong, in the short term the hack of noticing that shptreetst dumps core on the corrupt ones leads to an sh one-liner to delete them... of course, the shptree tools are in a different code style than the rest of the tree, likely contributed from the Windows side of things, given the use of Hungarian notation. From woodbri at swoodbridge.com Fri Sep 6 12:32:36 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 6 Sep 2002 15:32:36 -0400 Subject: [mapserver-users] Class Expressions Message-ID: <3D78CA94.30275.13E260A9@localhost> Hi all, In an annotation layer I have a bunch of records the I want to ignore. So I'm wondering if simple class expressions have a NOT operator? I can't find it in the doc. CLASS NAME "Label these" EXPRESSION ([TEXT] != /^UNK|^N.A/) LABEL ... END END The other alternative I thought of was to create a do nothing class like the following where the items to ignore are caught by the first class, but nothing is then done with the item, but if it fails the first CLASS the second is a default catch all for the rest. CLASS NAME "Ignore These" EXPRESSION /^UNK|^N.A/ END CLASS NAME "Label These" LABEL ... END END Does this work? -Steve From woodbri at swoodbridge.com Fri Sep 6 13:40:20 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 6 Sep 2002 16:40:20 -0400 Subject: [mapserver-users] Error messages (again) Message-ID: <3D78DA74.12525.14206226@localhost> I just got this error message: Warning: MapServer Error in msDrawShape(): Only polygon shapes can be drawn using a POLYGON layer definition. in /home/httpd/html/maplab-2.0rc3/htdocs/common/wrapper/drawmap.php on line 292 OK, it make perfect sense, but it is almost total useless toward solving the problem. Would it be so hard to add the shapefile name? and possible the object index. I have 3.2 GB of data to look through to find this problem!!!! Any ideas how to go about it? Thanks, -Steve W. From pkishor at GeoAnalytics.com Fri Sep 6 14:30:30 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 6 Sep 2002 16:30:30 -0500 Subject: [mapserver-users] Error messages (again) Message-ID: > -----Original Message----- > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > Sent: Friday, September 06, 2002 3:40 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Error messages (again) > > > I just got this error message: > > Warning: MapServer Error in msDrawShape(): Only polygon shapes can be > drawn using a POLYGON layer definition. in > /home/httpd/html/maplab-2.0rc3/htdocs/common/wrapper/drawmap.php on > line 292 > > OK, it make perfect sense, but it is almost total useless toward > solving the problem. Would it be so hard to add the shapefile name? heh heh heh... as Lowell said, error messages are terrible things to not have. I raised the same issue recently. I guess better messages are in store for the new versions, but at the time this was programmed it used to make sense to sdl. > and possible the object index. I have 3.2 GB of data to look through > to find this problem!!!! > > Any ideas how to go about it? > here's what I did... first, I figured out the guilty layer by commenting out layers in the map file one by one. Then I got an Arcview-conversant colleague to write me an Avenue script that went through record by record in that layer and found polys with null or zero area. Deleted those records (probably slivers from shoddy or tired digitizing, or result of multiple cleans), and all was well. If you are interested in that script, I can dig it out and email it to you "under separate cover" so to say. pk/ From joe at otsys.com Fri Sep 6 15:04:38 2002 From: joe at otsys.com (Joe Bussell) Date: Fri, 6 Sep 2002 15:04:38 -0700 Subject: [mapserver-users] TrafficDodger alpha site release Message-ID: <20020906220438.GA22892@extempore.otsys.com> You are invited to take part in the Alpha Test of the new TrafficDodger web site. This site is designed to provide driving directions based on current traffic conditions. Please come to www.TrafficDodger.com and see what we have done. The map user interface is designed using MapServer. The raw data is provided by California Department of Transportation through PATH. Map images, underlying map data and geographic information are owned and licensed by Tele Atlas North America, Inc. Cordially, Joe Bussell On Time Systems From marce002 at yahoo.com.ar Fri Sep 6 17:27:36 2002 From: marce002 at yahoo.com.ar (Marceyahoo) Date: Fri, 6 Sep 2002 21:27:36 -0300 Subject: [mapserver-users] Example applet tool tips, annimated gif, NOT refresh all page Message-ID: <1dac01c25605$645fa450$0100a8c0@bq7u6m> Hello, I'm in Argentine, and would like to present this example at: http://www.netmapas.com.ar/inmob/ it has interesting features like applet tool tips, annimated gif, NOT refreshing all page, lat-lon status bar display. Please see in 1024x768 using IE 6.0. If you like to contact me please do it at , marce002 at yahoo.com.ar Thanks a lot! Ahora pod?s usar Yahoo! Messenger desde tu celular. Aprend? c?mo hacerlo en Yahoo! M?vil: http://ar.mobile.yahoo.com/sms.html From wzhang at c-cor.net Fri Sep 6 18:01:16 2002 From: wzhang at c-cor.net (Zhang, William) Date: Fri, 6 Sep 2002 21:01:16 -0400 Subject: [mapserver-users] add nodefaultlib into makefile Message-ID: <68107A9AF023EA439FF7CC2AD02D8FE503A511@pltnpo1.c-cor.com> Michael, Thank you for the help. After recompiling the freetype.lib (v 2.1.2) with single-threaded option, I could build gd.lib without error. But that gd.lib still did not work. So according to the message you wrote on August 29, I moved back to FreeType v1.3.1. Although I could compiled gd.lib (v 1.8.4) with FreeType (v 1.3.1), but when using gdtestft.c to test gd.lib, gdImageStringFT function returned error message: "libgd was not build with FreeType font support". Do you have some suggestion on this problem? Thank you again. William Here is the build message Deleting intermediate files and output files for project 'Makefile1 - Win32 Debug'. --------------------Configuration: Makefile1 - Win32 Debug-------------------- Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cl -I C:\MapServer\SourceCode\zlib -I C:\MapServer\SourceCode\pnglib\lpng124 -I C:\MapServer\SourceCode\JPEG\jpeg6b -I C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib -O -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c gd.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. gd.c ........ cl -I C:\MapServer\SourceCode\zlib -I C:\MapServer\SourceCode\pnglib\lpng124 -I C:\MapServer\SourceCode\JPEG\jpeg6b -I C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib -O -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c gdfontt.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. gdfontt.c cl -I C:\MapServer\SourceCode\zlib -I C:\MapServer\SourceCode\pnglib\lpng124 -I C:\MapServer\SourceCode\JPEG\jpeg6b -I C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib -O -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c gdfonts.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. gdfonts.c ....... cl -I C:\MapServer\SourceCode\zlib -I C:\MapServer\SourceCode\pnglib\lpng124 -I C:\MapServer\SourceCode\JPEG\jpeg6b -I C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib -O -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c gdttf.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. gdttf.c cl -I C:\MapServer\SourceCode\zlib -I C:\MapServer\SourceCode\pnglib\lpng124 -I C:\MapServer\SourceCode\JPEG\jpeg6b -I C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib -O -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c gdft.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. gdft.c ...... LIB gd.obj gdhelpers.obj gd_gd.obj gd_gd2.obj gd_io.obj gd_io_dp.obj gd_io_file.obj gd_ss.obj gd_io_ss.obj gd_png.obj gdxpm.obj gdfontt.obj gdfonts.obj gdfontmb.obj gdfontl.obj gdfontg.obj gdtables.obj gdttf.obj gdft.obj gdcache.obj gdkanji.obj g d_jpeg.obj gd_wbmp.obj wbmp.obj libpng.lib zlib.lib libjpeg.lib freetype.lib Microsoft (R) Library Manager Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. zlib.lib(adler32.obj) : warning LNK4006: _adler32 already defined in libpng.lib(adler32.obj); second definition ignored zlib.lib(compress.obj) : warning LNK4006: _compress2 already defined in libpng.lib(compress.obj); second definition ignored ............ zlib.lib(zutil.obj) : warning LNK4006: _zcfree already defined in libpng.lib(zutil.obj); second definition ignored zlib.lib(zutil.obj) : warning LNK4006: _z_errmsg already defined in libpng.lib(zutil.obj); second definition ignored cl -I C:\MapServer\SourceCode\zlib -I C:\MapServer\SourceCode\pnglib\lpng124 -I C:\MapServer\SourceCode\JPEG\jpeg6b -I C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib pngtogd.c gd.lib libpng.lib zlib.lib libjpeg.lib Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. pngtogd.c Microsoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. /out:pngtogd.exe pngtogd.obj gd.lib libpng.lib zlib.lib libjpeg.lib .......... cl -I C:\MapServer\SourceCode\zlib -I C:\MapServer\SourceCode\pnglib\lpng124 -I C:\MapServer\SourceCode\JPEG\jpeg6b -I C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib gdtestttf.c gd.lib libpng.lib zlib.lib libjpeg.lib Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. gdtestttf.c Microsoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. /out:gdtestttf.exe gdtestttf.obj gd.lib libpng.lib zlib.lib libjpeg.lib cl -I C:\MapServer\SourceCode\zlib -I C:\MapServer\SourceCode\pnglib\lpng124 -I C:\MapServer\SourceCode\JPEG\jpeg6b -I C:\MapServer\SourceCode\FreeType\freetype-1.3.1\freetype\lib gdtestft.c gd.lib libpng.lib zlib.lib libjpeg.lib Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. gdtestft.c Microsoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. /out:gdtestft.exe gdtestft.obj gd.lib libpng.lib zlib.lib libjpeg.lib Makefile1.exe - 0 error(s), 70 warning(s) From dholeman1 at cox.net Fri Sep 6 17:16:02 2002 From: dholeman1 at cox.net (Don Holeman) Date: Fri, 6 Sep 2002 20:16:02 -0400 Subject: [mapserver-users] TrafficDodger alpha site release References: <20020906220438.GA22892@extempore.otsys.com> Message-ID: <000001c25613$b6891640$97f90044@ri.cox.net> Great idea, one of the best mapserver apps I've seen. Did you have much trouble dealing with the Caltran agency? I'm in the northeast corridor where there are four states - NJ, NY, MA and CT - that have dominion over metro data and these tend to be pretty parochial. I'm not sure about the others but CT has a traffic control center where it collects realtime flows, I imagine the others do too. Are you planning to expand it to other areas? How did you do the little 'post the flags' for start/finish, excellent idea. You mention pda etc on the website, but how about integrating it with things like my Honda's CD-based mapping system? I would imagine the auto manufacturers would be interested in partnering. Anyway, way cool. Best, Don Holeman ----- Original Message ----- From: "Joe Bussell" To: "MapServer Users" Sent: Friday, September 06, 2002 6:04 PM Subject: [mapserver-users] TrafficDodger alpha site release You are invited to take part in the Alpha Test of the new TrafficDodger web site. This site is designed to provide driving directions based on current traffic conditions. Please come to www.TrafficDodger.com and see what we have done. The map user interface is designed using MapServer. The raw data is provided by California Department of Transportation through PATH. Map images, underlying map data and geographic information are owned and licensed by Tele Atlas North America, Inc. Cordially, Joe Bussell On Time Systems --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/02 From steve.lime at dnr.state.mn.us Fri Sep 6 21:23:50 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 06 Sep 2002 23:23:50 -0500 Subject: [mapserver-users] Error messages (again) Message-ID: The shape drawing function is really independent of an actual dataset and at the moment there are no pointers from a shapeObj back to any particular datasource parameters. In MapScript, for example, a shape can exist without any parent datasource. That said, the best you could probably expect is a layer name, which I agree should be there. I'll check to code to see if there's more available. If the problem is in one tile amongst thousands than finding the offending data may be tedious. It has not been a design goal to date for MapServer to resolve inconsistencies in data, rather simply print a simple error message and not crash when running into them. Obviously that's changing as more users are pushing to software. On the otherhand there are 1000's of error points and not every one has been revisited for clarity. Steve >>> 09/06/02 15:45 PM >>> I just got this error message: Warning: MapServer Error in msDrawShape(): Only polygon shapes can be drawn using a POLYGON layer definition. in /home/httpd/html/maplab-2.0rc3/htdocs/common/wrapper/drawmap.php on line 292 OK, it make perfect sense, but it is almost total useless toward solving the problem. Would it be so hard to add the shapefile name? and possible the object index. I have 3.2 GB of data to look through to find this problem!!!! Any ideas how to go about it? Thanks, -Steve W. From steve.lime at dnr.state.mn.us Fri Sep 6 21:35:22 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 06 Sep 2002 23:35:22 -0500 Subject: [mapserver-users] Class Expressions Message-ID: Funny you should ask. I committed a new version of the expression parser to the 3.7 and 3.6 CVS trees last night. One of the additions is a not operator. I've tested it mostly in conjuction with the REQUIRES and LABELREQUIRES context expressions but it should work fine otherwise. You can write things like: EXPRESSION (!('[TEXT]' =~ /^UNK|^N.A/)) There is no negation operator outside of logical expressions (yet) although there may be something built into regex. I think (try it to be sure) that your last idea may work. If a CLASS does not have a COLOR or OUTLINECOLOR then it is skipped. If so, then that would be faster than the combination of logical and regular expressions. BTW To get at the 3.6 CVS version use: cvs -Q checkout -r rel-3-6-0-beta1 mapserver The branch name is confusing but refers to the current 3.6 source. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 09/06/02 14:35 PM >>> Hi all, In an annotation layer I have a bunch of records the I want to ignore. So I'm wondering if simple class expressions have a NOT operator? I can't find it in the doc. CLASS NAME "Label these" EXPRESSION ([TEXT] != /^UNK|^N.A/) LABEL ... END END The other alternative I thought of was to create a do nothing class like the following where the items to ignore are caught by the first class, but nothing is then done with the item, but if it fails the first CLASS the second is a default catch all for the rest. CLASS NAME "Ignore These" EXPRESSION /^UNK|^N.A/ END CLASS NAME "Label These" LABEL ... END END Does this work? -Steve From woodbri at swoodbridge.com Fri Sep 6 21:56:58 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Sat, 7 Sep 2002 00:56:58 -0400 Subject: [mapserver-users] Class Expressions In-Reply-To: Message-ID: <3D794EDA.20506.15E70D68@localhost> On 6 Sep 2002 at 23:35, Steve Lime wrote: > Funny you should ask. I committed a new version of the expression > parser to the 3.7 and 3.6 CVS trees last night. One of the additions > is a not operator. I've tested it mostly in conjuction with the > REQUIRES and LABELREQUIRES context expressions but it should work fine > otherwise. You can write things like: > > EXPRESSION (!('[TEXT]' =~ /^UNK|^N.A/)) Did you really mean to write "=~" like in perl? I do not think that is documented. Did you implement != for not equal to? > > There is no negation operator outside of logical expressions (yet) > although there may be something built into regex. > > I think (try it to be sure) that your last idea may work. If a CLASS > does not have a COLOR or OUTLINECOLOR then it is skipped. If so, then > that would be faster than the combination of logical and regular > expressions. I think this is working fine, at least the records I don't want are not on the map. I wasted about 2 hours trying to get anything to show up on the map because I set CLASSITEM but forgot to set LABELITEM Boy does that make me feel dumb! -Steve W. From woodbri at swoodbridge.com Fri Sep 6 21:59:35 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Sat, 7 Sep 2002 00:59:35 -0400 Subject: [mapserver-users] (Fwd) [maplab-users] This is a weird one Message-ID: <3D794F77.1585.15E970EA@localhost> I sent this to the maplab list, but it might be a mapserver issue. Steve L, do you have any ideas? -Steve W. ------- Forwarded message follows ------- I'm not sure if this is a maplab or mapserver issue, but here goes. This is Linux RH 6.2, MS 3.6.2 from DMS site, maplab-2.0rc3 built as requested, CGI and with the options per directions. MS is built with -DIGNORE_MISSING_DATA I build the vmap0 app that uses uses a tileindex with 4 directories. I found out that one of the files CROPA_area.shp was bad because I couldn't get it to generate an image - The php was generating an error in $map->draw(), so I deleted the files once I found out they were bad. The strange thing is that the maplab preview then started to work, the gmapfactory app still failed to generate an image! So I created an empty CROPA_area.shp fileset for the two directories that where missing it and the problem went away. I know it was that layer because it worked it I toggled it off and failed when it was on. So the questions are: 1) Why did I get the error if -DIGNORE_MISSING_DATA is set 2) Why did preview work but not the gmap app Any ideas on this? -Steve _______________________________________________ Maplab-users mailing list Maplab-users at dmsolutions.ca http://lists.dmsolutions.ca/mailman/listinfo/maplab-users ------- End of forwarded message ------- From dendi_rm at hmgf.geoph.itb.ac.id Sat Sep 7 18:25:19 2002 From: dendi_rm at hmgf.geoph.itb.ac.id (Dani 97) Date: Sun, 8 Sep 2002 08:25:19 +0700 (JAVT) Subject: [mapserver-users] ask error Message-ID: hi ... i can't open picture with this message : "msDrawReferenceMap():General error message. Unable to Load GIF reference image." how to fix it ? thanks regards dendi From dendi_rm at hmgf.geoph.itb.ac.id Sat Sep 7 18:54:07 2002 From: dendi_rm at hmgf.geoph.itb.ac.id (Dani 97) Date: Sun, 8 Sep 2002 08:54:07 +0700 (JAVT) Subject: [mapserver-users] ask error Message-ID: hi... there's error with this message : "msLoadMap():General error message. Undefined "symbols/ctyhwy.gif" in class 0 of layer ctyrdln3_anno." how to fix it ? thanks regards dendi From hdi12 at it.canterbury.ac.nz Sat Sep 7 18:50:28 2002 From: hdi12 at it.canterbury.ac.nz (Hao Ding) Date: Sun, 08 Sep 2002 13:50:28 +1200 Subject: [mapserver-users] problems when requesting for feature info in gml format Message-ID: <3D7AACE4.1070805@student.canterbury.ac.nz> Hello, I got some problems when request GetFeatureInfo to the MapServer for GML response. I used itasca demo data as the sample dataset. When requesting the lake feature using default INFO_FORMAT with the URL below, I can get the results. http://localhost:8080/cgi-bin/mapserv?VERSION=1.1.0&REQUEST=GetFeatureInfo&SRS=EPSG:4326&BBOX=388014.0,5200400.0,500802.0,5313160.0&WIDTH=800&HEIGHT=400&FORMAT=image/gif&LAYERS=lakespy2&STYLES=default&TRANSPARENT=TRUE&QUERY_LAYERS=lakespy2&X=274&Y=192 GetFeatureInfo results: Layer 'lakespy2' Feature 23043: gid = '844' area = '407475.09544' perimeter = '2302.07951' usclass = '421' dowlknum = '31081700' dow_verif = '0' lake_name = '' lake_class = '0' elevation = '1296' acres = '100.687' perfeet = '7553.123' If I add the parameter INFO_FORMAT=application/vnd.ogc.gml, the body of the gml file I got was empty I just wonder if I need to do something in the mapfile for gml export? I also don't know what the object "dump" in the mapfile is used for.(I saw the sentence "DUMP true" in some Layers). Thanks very much for any help!!! Hao From woodbri at swoodbridge.com Sat Sep 7 19:51:03 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Sat, 7 Sep 2002 22:51:03 -0400 Subject: [mapserver-users] ask error In-Reply-To: Message-ID: <3D7A82D7.19637.1A9A2055@localhost> Is your version of mapserver built with GIF support in to GD library. If not then you need to convert your GIF files to PNG files. -Steve On 8 Sep 2002 at 8:25, Dani 97 wrote: > hi ... > > i can't open picture with this message : "msDrawReferenceMap():General > error message. Unable to Load GIF reference image." > > how to fix it ? > > thanks > > regards > dendi > > From woodbri at swoodbridge.com Sat Sep 7 19:51:04 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Sat, 7 Sep 2002 22:51:04 -0400 Subject: [mapserver-users] ask error In-Reply-To: Message-ID: <3D7A82D8.12647.1A9A21D2@localhost> Look in your map file, you have a layer "ctyrdln3_anno" that uses symbols/ctyhwy.gif which does not exist on your system. Do you have a version of this file as a png? If so change it to point the the png. >From you other message, you will need to convert all your gif to png files if you mapserver does not support gif files. Find your mapserv executable and type mapserv -v to see what formats it supports. -Steve On 8 Sep 2002 at 8:54, Dani 97 wrote: > hi... > > there's error with this message : "msLoadMap():General > error message. Undefined "symbols/ctyhwy.gif" in class 0 of layer > ctyrdln3_anno." > > how to fix it ? > > thanks > > regards > dendi > > > From lfilak at medinaco.org Sun Sep 8 20:39:33 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Sun, 08 Sep 2002 23:39:33 -0400 Subject: [mapserver-users] PHP and Mapscript: .map file needed Message-ID: <200209090326.g893QI811122@yogi.medinaco.net> Good lead-in. I was just going to pose a question to the list regarding either strange behavior on mapservers part or normal behavior in my own strange brain. If we declare at least some of a layers information in the mapfile (name, data, type, status) the rendering of the labels for the layer are mapserver's usual FAST. However if the layer is created completely within mapscript the rendering of the labels can take much longer (60x's). I can't seem to track down if I am missing some combination necessary for proper labelcache or such. If this doesn't have a simple answer it may have a bearing on why you may want to keep some sort of mapfile. Lowell F. The following message was sent by Antti.Roppola at brs.gov.au on Thu, 5 Sep 2002 09:55:06 +1000 . > I use a .map file as an easy way of initialising and/or testing my app. > In the longer term, I'm thinking about putting the layer definitions > ito a DB with the data and using that to create map objects. > > Antti > > -----Original Message----- > From: Paul Smith [mailto:paul at cnt.org] > Sent: Thursday, 5 September 2002 9:06 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] PHP and Mapscript: .map file needed > > > Hi, I'm new to the list and fairly new to MapServer. I've just started > running MapScript with PHP, and I'm wondering, since all of the objects > of the .map file are accessible via the various classes, what is the > need of the .map file at all in a MapScript environment? I'm asking out > of a bit of willful ignorance, in that I haven't actually tried it > without a .map file, but maybe I would like to know more generally its > importance in this situation. > > Paul > > -- > Paul Smith > Center for Neighborhood Technology > Chicago, IL USA > From vinko at cprsig.cl Sun Sep 8 22:01:08 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Mon, 9 Sep 2002 01:01:08 -0400 Subject: [mapserver-users] php In-Reply-To: <200209061410.g86EA3f03884@shadow.munistgo.cl> References: <200209061410.g86EA3f03884@shadow.munistgo.cl> Message-ID: <20020909050108.GA31524@landsat.cprsig.cl> On Fri, Sep 06, 2002 at 10:10:03AM -0400, root wrote: > i installed apache_1.3.26, php_4.1.1 y mapserver_3.6.1. > PHP was installed as CGI > > MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > I copy php_mapscript.so to /usr/local/lib as nobody user > > but phpinfo say me: > > Warning: Unable to load dynamic library './php_mapscript.so' - > ./php_mapscript.so: cannot open shared object file: No such file or directory > in > /www/htdocs/phpinfo_mapscript.phtml on line 21 > > extension_dir ./ > Regex Library System library enabled > Dynamic Library Support enabled > > Thank in advance > Patricio is /usr/local/lib the extensions dir? it's usually something like /usr/local/lib/php/extensions in phpinfo is detailed what is the extensions dir. -- Vinko Vrsalovic http://www.cprsig.cl From MJHatcher at space.qinetiq.com Mon Sep 9 00:52:37 2002 From: MJHatcher at space.qinetiq.com (Matthew Hatcher) Date: Mon, 9 Sep 2002 08:52:37 +0100 Subject: [mapserver-users] How to keep map from zooming/panning when I refresh? Message-ID: Here is the Javascript function that I use. I think the problem is that the values for your map click location are kept from the last pan or zoom, so that when the map refreshes it thinks you have clicked off-centre. (this is just my laymans interpretation of it, so don't flame me if that's wrong!) Anyway, this little script works for me: // update the map without panning or zooming function updateMap() { document.mapserv.mode.value = "browse"; document.mapserv.target = "_self"; document.mapserv.zoomdir.value = "0"; document.mapserv.imgext.value = "[minx] [miny] [maxx] [maxy]"; document.mapserv.imgxy.value = "299.5 215.5"; document.mapserv.submit(); } I have attached this function to all the checkboxes I use to turn layers on/off, so when the user clicks on one it automatically updates, and seems to work nicely without panning or zooming. You'll need to change the values in imgxy to reflect your half-image width/height, and also may need to change the document.mapserv if you've called your settings form something different. Good luck! Matt. -----Original Message----- From: Mike Smith [mailto:nospam at cnrit.tamu.edu] Sent: 06 September 2002 14:53 To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] How to keep map from zooming/panning when I refresh? Thanks for this. This sorta worked...it kept my image from zooming in, but then it panned to the right for some reason?! I'm not sure what's up with that, but the other problem is that I've got to keep the "zoomdir" variable set because I keep the state of my "Zoom In", "Zoom Out", and "Pan" buttons based on the value of this variable, so setting it to null resets all my buttons. Regardless of my implementation, though, I even had this problem with the Itasca Demo... I'm just wondering if anybody else figured out a way to alter the image without the Mapserver CGI program reading and executing your zoomdir variable. Thanks for the help, though...anybody else have any ideas? MIke Martin, Daniel wrote: >Whoops, I messed up the JavaScript. This is a correction, note ".value" is >added: > >function UpdateMap() { > document.forms.mapserv.zoomdir.value = ""; > document.mapserv.submit(); >} > > >-----Original Message----- >From: Martin, Daniel >Sent: Thursday, September 05, 2002 11:47 AM >To: 'Mike Smith'; mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] How to keep map from zooming/panning when >I refresh? > > >I think this will work: > >function UpdateMap() { > document.forms.mapserv.zoomdir = ""; > document.mapserv.submit(); >} > >Or perhaps I'm missing something. I do exactly what you say in my client, >but I use Rosa to control zooming and panning, so it is a bit different. > >-Dan > >-----Original Message----- >From: Mike Smith [mailto:nospam at cnrit.tamu.edu] >Sent: Thursday, September 05, 2002 10:01 AM >To: mapserver-users at lists.gis.umn.edu >Subject: [mapserver-users] How to keep map from zooming/panning when I >refresh? > > >Hello, > > I've got my page working pretty well now thanks to lots of >Javascript code I borrowed from this mailing list, but I've still got >one problem that I can't seem to find a solution for in the archives. > I've got my page set up so that the various layers that are available >to view are in a list on the right-hand side of the page with checkboxes >next to them. And since I wanted the behavior of the page to imitate >ArcView as much as possible (because most of my users are used to that >interface) I put in a little javascript function that automatically >reloads the page whenever they check or uncheck a layer (without having >to click a "refresh" button). My problem is that the layer loads or >unloads fine, but my image also pans or zooms at the same time depending >on what function they have checked. How can I make my page reload >without changing the current view at all? Even if they have the "Zoom >In" button clicked and the zoomsize is set to "2" I don't want the page >to zoom in when they just add a new layer. Is there a value that I can >set "zoomdir" to besides 1, 0, or -1 that basically disables panning and >zooming altogether? > >Thanks in advance, > >Mike Smith > >P.S. - Here's my javascript code that automatically loads/unloads layers: > >function UpdateMap() { > document.mapserv.submit(); //Note that my form name is "mapserv" >} > >Then I add this to my checkbox tag: > >onClick="UpdateMap();" > > ********************************************************************** The information contained in this email and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the intended recipient(s) any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From MJHatcher at space.qinetiq.com Mon Sep 9 00:56:46 2002 From: MJHatcher at space.qinetiq.com (Matthew Hatcher) Date: Mon, 9 Sep 2002 08:56:46 +0100 Subject: [mapserver-users] Query error messages Message-ID: Hi everyone. This is probably a really optimistic question, but is there any way to customise the error messages you get from a query without using MapScript? What I want to do is have a query that yields no results go to a custom page of my choice, rather than simply show the "Search returned no results" message. Is this possible? Cheers, Matt Hatcher ********************************************************************** The information contained in this email and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the intended recipient(s) any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From pradeepkumar at infotech.stph.net Mon Sep 9 04:36:47 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Mon, 9 Sep 2002 17:06:47 +0530 Subject: [mapserver-users] Mapserver Performance Statistics Message-ID: Hello, We are evaluating the performance of Mapserver to go ahead with plans of developing a product based on the MapServer core, and we are looking for statistics on the performance issues listed such as The No of requests per second, the success rate, the HTTP errors, the amount of processor overhead, the memory bloat...etc etc.. Can some one be kind enough to shed more light on any previous work already done on any performance issues of MapServer.... I would be glad to see figures related to performance, and a comparitive study of MapServer vis-a-vis any other similar product/tool available in the market. PS: One moot question I would like to ask the folks all around is "What are the pros and cons of MapServer being a CGI Exe, is it an Ideal choice for a Web Application, as we know generally that all CGI apps have an inherent issue of getting loaded in to the memory for each request". Regards, Pradeep. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhart at frw.uva.nl Mon Sep 9 04:55:42 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Mon, 09 Sep 2002 13:55:42 +0200 Subject: [mapserver-users] MS_MAXSYMBOLS References: Message-ID: <3D7C8C3E.7000907@frw.uva.nl> > Not exactly of hotbed of advanced programming techniques, but then again > Layers and > such are dynamically allocated but based upon a limit. Haven't had time > to go back and monkey with that. The limits become an issue for maybe > one user a year, there is a workaround and there are always more > pressing needs. If someone would like to help in converting arrays to > lists (layers/symbols/styles and so on) it would be welcomed. > Steve, does it really have to be that complex? Couldn't you just reallocate a bigger bunch of memory when the maximum is reached? Something like extern int MS_MAXSYMBOLS; // in the header files symbolObj *symbol; int MS_MAXSYMBOLS = 64; // in the c-file where you initialize things symbol = malloc(MS_MAXSYMBOLS * sizeof (symbolObj)); if (numsymbols == MS_MAXSYMBOLS) { // in mapsymbol.c MS_MAXSYMBOLS += 64; symbol = realloc(symbol,MS_MAXSYMBOLS*sizeof(symbolObj)); .... nothing to be changed further on ... } Realloc allocates a new block of memory and copies the contents of the old one to it. Same would go for all MS_MAX... defines in map.h. Wouldn't this solve a lot of problems without extensive rewriting? I hate doing lists in C. Jan Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From jhart at frw.uva.nl Mon Sep 9 04:59:37 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Mon, 09 Sep 2002 13:59:37 +0200 Subject: [mapserver-users] question regarding postgis References: <200209090833.g898XtX21792@mailgate5.cinetic.de> Message-ID: <3D7C8D29.1030803@frw.uva.nl> Hello Jens (hope this also answers Nyon's question), Let's clear some possible confusion at first: there are two versions of MapServer for Windows: native and cygwin, and one version of PostGis for Windows: cygwin. I haven't been able to find a working version of PostgreSQL for native Windows, which is under development (can anyone give me some pointers to non-Cygwin PostgreSQL for Windows)? If you use Cygwin for both, you shouldn't have any problem; Cygwin installation is just a variant of Unix, and is well documented and supported. For MapServer see the docs at http://mapserver.gis.umn.edu/doc36/mapserver-Cygwin-howto.html, and for PostGreSQL Norman Vine's posting at http://mapserver.gis.umn.edu/wilma/mapserver-users/0209/msg00078.html and the PG-Cygwin mailing list (http://archives.postgresql.org/pgsql-cygwin/). In Cygwin-MapServer, PostGis is just another option to add in the standard configure script. I haven't use either of them. I use Cygwin all the time on my Windows box, but not for server applications, as I find this easier and more stable on a regular Linux machine. If you prefer a Windows environment for your server (or are bound to it), Cygwin seems to be mature enough according to several postings on this list. Native Windows is another matter. MapServer is very well supported on Windows. Compilation is relatively straightforward, with most configurations available as options in the Makefile, and binaries can be downloaded for four different configurations. PostGis however has not yet been added to the configuration options in the Makefiles, although everything you need is in place. Also, there are no precompiled binaries available (yet) with PostGis support. Daniel Morissette has put it on the todo list "as time permits", so probably it won't be done tomorrow or perhaps even this week. There are not many changes required in the Makefiles however. I posted a few lines on this in http://mapserver.gis.umn.edu/wilma/mapserver-users/0209/msg00077.html You wrote that you were able to compile MapServer CGI with PostGIS support, but were unable to get the PHP version running. Perhaps you forgot to adapt the Makefile in the PHP directory also (at least that was my error at first). You need to put in -DUSE_POSTGIS and the paths to the pgsql libraries there too, else you will end up with an error-free compilation, a PostGis enabled MapServer CGI and no PHP-PostGIS functionality. I stopped my own Windows development half a year ago, so I cannot produce recent binaries. However, if you are really stuck and Daniel can't find time in the foreseeable future, drop me a mail and I'll see what I can do. With this PostGIS enabled MapServer you can access any PostGIS database, whether on different machines or on the same, Linux, Cygwin, native or whatever. I just tested it against a database on a a remote Linux machine within our very fast University network. This was not fast enough for productivity purposes (as you say, the whole vector layer has to be transported over the net), so I switched MapServer to the same Linux machine, where it ran only slightly slower with PostGis than when using shapefiles. I didn't try the other way round (switching PostGIS to Windows), as I had read this was not stable yet. According to several postings on this list, this already seems to be a viable solution at this time. I would like to point out however a very important way of use of PostGis on remote servers: you can create maps from layers on different computers. Say, you have a mapfile like: LAYER CONNECTIONTYPE POSTGIS CONNECTION "my first postgis server" DATA "some sql" etc.. END LAYER CONNECTIONTYPE POSTGIS CONNECTION "My second postgis server" DATA "some more sql" etc ... END LAYER DATA "my local shapefile etc ... END You effectively create a map from a combination of local data and data from two different mapping servers. This is OpenGis with a vengeance! It works just like a WMS application, only with far much more functionality in retrieving and displaying layers. Moreover, the retrieving language is standard SQL, which can build very powerful mapping queries, and will be expanded shortly by a set of OGR topology operators. This is ways and ways ahead of anything the OpenGis Consortium has reached till now. (As an addendum, you can also put the DATA-query outside the mapfile in the parameter-string of the calling web page. This makes it even more like an immensely more powerful WMS call). I am trying this out on our Beowulf cluster with some dozens of nodes and it looks very promising indeed! I can't put it up for public use as yet, for the cluster is being mostly used for things like cracking the genetic code and searching for black holes at the other end of the universe, so people won't like you guys prying in to get a map of Itasca, Minnesota (say). As soon as the results are less shaky I'll try to reserve some parts of it for public display. Jan Jens G?nther wrote: The problem is : what run's where! We are running all (the cgi and the mapscript and postgis/gresql) on the same windows machine. The compilation process of mapscript on windows (necessary for postgis-support) is a "little bit" dirty (you have to change a lot of makefiles). We mailed this problem (and asked for binaries) one week before. Do you have mapscript binaries with postgis support for windows? The point with the two servers sounds interesting to me. What about the performance? How fast is it (all the necessary geometries are fetched over the network)? We are planning, to implement a solution with some more machines. It would be great, to know about other users experience with it. Regards Jens G?nther Jens G?nther wrote: > > The problem is : what run's where! > > We are running all (the cgi and the mapscript and postgis/gresql) on the same windows machine. The compilation process of mapscript on windows (necessary for postgis-support) is a "little bit" dirty (you have to change a lot of makefiles). We mailed this problem (and asked for binaries) one week before. Do you have mapscript binaries with postgis support for windows? > > The point with the two servers sounds interesting to me. What about the performance? How fast is it (all the necessary geometries are fetched over the network)? > > We are planning, to implement a solution with some more machines. It would be great, to know about other users experience with it. > > Regards > Jens G?nther > guenther_jens at web.de > ______________________________________________________________________________ > Die clevere Geldreserve: der DiBa-Privatkredit. Funktioniert wie ein Dispo, > ist aber viel gunstiger! Alle Infos: http://diba.web.de/?mc=021104 > > From jacquin at geosys-inc.com Mon Sep 9 05:04:35 2002 From: jacquin at geosys-inc.com (Marc Jacquin) Date: Mon, 9 Sep 2002 14:04:35 +0200 Subject: [mapserver-users] Query error messages In-Reply-To: Message-ID: Matt, Check the ERROR [url] keyword in the Web object. Marc -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Matthew Hatcher Sent: lundi 9 septembre 2002 09:57 To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Query error messages Hi everyone. This is probably a really optimistic question, but is there any way to customise the error messages you get from a query without using MapScript? What I want to do is have a query that yields no results go to a custom page of my choice, rather than simply show the "Search returned no results" message. Is this possible? Cheers, Matt Hatcher ********************************************************************** The information contained in this email and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the intended recipient(s) any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Sep 9 05:21:43 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 9 Sep 2002 08:21:43 -0400 Subject: [mapserver-users] Mapserver Performance Statistics In-Reply-To: Message-ID: <3D7C5A17.19227.21CAECD2@localhost> Pradeep, Much of the testing results and stats you are asking for will be highly related to the specific hardware setup the was tested and probably can not be translated to a different hardware configuration. I did some stress testing a while back on a mapserver configuration using something called siege. The most recent released version of siege is available by anonymous ftp from ftp.armstrong.com in the directory pub/siege. The thinks that determine mapservers ability to handle requests are the same things for any other hardware, like number of cpus, amount of memory, speed of disk, load balancing across multiple systems. What your disk cache hit ratio is. Things like its a CGI app don't enter the picture because that is what mapserver IS, sure if it could be a module it might run a little faster, but it isn't right now. But probably the BIGGEST performance problem I have seen repeatedly with mapserver is that people that have not work extensively with do not know how to optimize the map file, tileindexes, spatial indexes, etc to make mapserver fast. I was able to get the system I ran siege on to render consistently at 8-10 secs for out of cache queries and 2-3 secs for cache hit queries. Is this good? Well that was down from 45+ sec per render before I started working with is. But is this good? It was as good as the piece of hardware could do, but it was not a server class machine, it was a desktop system with very slow IDE drives, no raid, single cpu, 1 GHz processor, 1 GB of memory, but I was able to get similar performance from my 450 Mhz, 128 MB box because it was equally I/O bound. If you want to collect stats on your CGI hits, write a script called something like php2 and place in it: time -o /tmp/time-stats.log --append /path/to/php $* and place it in your cgi-bin directory and have your webserver execute it instead of php, or do something similar for mapserv and then run siege and you can compare the siege stats along with the cpu and i/o performance numbers. Hope this helps, -Steve On 9 Sep 2002 at 17:06, Pradeep wrote: > > Hello, > We are evaluating the performance of Mapserver to go ahead > with plans of developing a product based on the MapServer core, and we > are looking for statistics on the performance issues listed such as > The No of requests per second, the success rate, the HTTP errors, the > amount of processor overhead, the memory bloat...etc etc.. > > Can some one be kind enough to shed more light on any previous work > already done on any performance issues of MapServer.... I would be > glad to see figures related to performance, and a comparitive study of > MapServer vis-a-vis any other similar product/tool available in the > market. > > PS: One moot question I would like to ask the folks all around is > "What are the pros and cons of MapServer being a CGI Exe, is it an > Ideal choice for a Web Application, as we know generally that all CGI > apps have an inherent issue of getting loaded in to the memory for > each request". > > Regards, > Pradeep. From geosys at iafrica.com Mon Sep 9 05:55:04 2002 From: geosys at iafrica.com (Robert Stanton) Date: Mon, 9 Sep 2002 14:55:04 +0200 Subject: [mapserver-users] Map extent error Message-ID: <000701c25800$54082760$0101a8c0@geonet.co.za> Hi everyone I'm using version 3.6.2 as a cgi and I'm getting this error message: Web application error. No way to generate a valid map extent from selected shapes when I query a point layer. The main map works ok but the query template is not produced. The exact same data and templates worked in version 3.3 so this must be a syntax problem. I would appreciate any suggestions as I have been fiddling with this for hours. My query template is listed below. Many thanks in advance Robert Stanton
Name
[NAME]

Type [SUBCATEGOR]
Contact [CONTACT]
Phone [TELDIALCOD] [TELEPHONE]
Email [EMAILADDRE]


[DESCRIPTIO]
From nicolasb at maich.gr Mon Sep 9 06:39:32 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Mon, 09 Sep 2002 16:39:32 +0300 Subject: [mapserver-users] question regarding postgis References: <200209090833.g898XtX21792@mailgate5.cinetic.de> <3D7C8D29.1030803@frw.uva.nl> Message-ID: <3D7CA494.20501@maich.gr> Hi, I dont know if this helps, but this was posted a bit back on th ms list. I am using the stuff below, and it seems to work along with the winbinaries at the mapserver site. I dont know about php I dont know if it might be possible to mingw the postgis dll..? Anyway, regards, nicolas boretos ---snip--- Jan Hartmann writes: > . However, > PostGIS cannot be running on the same server as the (Windows) > MapServer, as PostgreSQL cannot be compiled for native Windows (yet). FYI PostgreSQL is distributed as part of Cygwin and I have placed a compiled Cygwin PostGIS extension module at http://www.vso.cape.com/~nhv/files/cygwin/postgis.tgz There is also a beta Native Win32 PostgreSQL distribution Cheers Norman < following is a repost from the postgis-users list > From: Norman Vine [nhv at cape.com] Sent: Tuesday, August 20, 2002 4:01 PM To: 'postgis-users at postgis.refractions.net' Subject: RE: [postgis-users] [Fwd: New Beta Release of Windows] Tyler Mitchell writes: > >Can anyone give some guidance on running pgsql2shp/shp2pgsql >in windows? >Anyone else getting consistent results with those tools? I have placed native WIN32 versions of pgsql2shp / shp2pgsql @ http://www.vso.cape.com/~nhv/files/postgres/loaders_win32.tgz these seem to work fine for me in conjunction with the following http://dcwaterdesign.sourceforge.net/postgis.zip ftp://209.61.187.152/multera/postgres_beta2.zip < snip > From MJHatcher at space.qinetiq.com Mon Sep 9 06:59:52 2002 From: MJHatcher at space.qinetiq.com (Matthew Hatcher) Date: Mon, 9 Sep 2002 14:59:52 +0100 Subject: [mapserver-users] Query error messages Message-ID: Thanks. Can't believe I missed something that obvious! But I'm now going to make it a little harder for you all! Assuming that an error occurs and the page is diverted to the url specified, is there any way to find out what the error was? I presume (haven't checked the code) that MapServer does a simple redirect to the page specified, rather than using it as a template, so it wouldn't be possible to use a template variable or would it? Matt. -----Original Message----- From: Marc Jacquin [mailto:jacquin at geosys-inc.com] Sent: 09 September 2002 13:05 To: Matthew Hatcher; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Query error messages Matt, Check the ERROR [url] keyword in the Web object. Marc -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Matthew Hatcher Sent: lundi 9 septembre 2002 09:57 To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Query error messages Hi everyone. This is probably a really optimistic question, but is there any way to customise the error messages you get from a query without using MapScript? What I want to do is have a query that yields no results go to a custom page of my choice, rather than simply show the "Search returned no results" message. Is this possible? Cheers, Matt Hatcher ********************************************************************** The information contained in this email and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the intended recipient(s) any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From TMitchell at lignum.com Mon Sep 9 08:35:42 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Mon, 9 Sep 2002 08:35:42 -0700 Subject: [mapserver-users] question regarding postgis Message-ID: I'm running a windows version of mapserver that has postgis installed. You are too aren't you Nicolas? I certainly didn't compile it either! Search the mapserver list and I'll bet you'll find someone (Norman/woodbridge?) that has it packaged up nicely. Tyler Nicolas Boretos To: Jan Hartmann Sent by: cc: mapserver-users at lists.gis.umn.edu owner-mapserver-users at lists. Fax to: gis.umn.edu Subject: Re: [mapserver-users] question regarding postgis 09/09/2002 06:39 AM Hi, I dont know if this helps, but this was posted a bit back on th ms list. I am using the stuff below, and it seems to work along with the winbinaries at the mapserver site. I dont know about php I dont know if it might be possible to mingw the postgis dll..? Anyway, regards, nicolas boretos ---snip--- Jan Hartmann writes: > . However, > PostGIS cannot be running on the same server as the (Windows) > MapServer, as PostgreSQL cannot be compiled for native Windows (yet). FYI PostgreSQL is distributed as part of Cygwin and I have placed a compiled Cygwin PostGIS extension module at http://www.vso.cape.com/~nhv/files/cygwin/postgis.tgz There is also a beta Native Win32 PostgreSQL distribution Cheers Norman < following is a repost from the postgis-users list > From: Norman Vine [nhv at cape.com] Sent: Tuesday, August 20, 2002 4:01 PM To: 'postgis-users at postgis.refractions.net' Subject: RE: [postgis-users] [Fwd: New Beta Release of Windows] Tyler Mitchell writes: > >Can anyone give some guidance on running pgsql2shp/shp2pgsql >in windows? >Anyone else getting consistent results with those tools? I have placed native WIN32 versions of pgsql2shp / shp2pgsql @ http://www.vso.cape.com/~nhv/files/postgres/loaders_win32.tgz these seem to work fine for me in conjunction with the following http://dcwaterdesign.sourceforge.net/postgis.zip ftp://209.61.187.152/multera/postgres_beta2.zip < snip > From adams at terrestris.de Mon Sep 9 09:43:27 2002 From: adams at terrestris.de (Till Adams) Date: Mon, 09 Sep 2002 18:43:27 +0200 Subject: [mapserver-users] Mapserver on Mandrake-Server Message-ID: <3D7CCFAF.70801@terrestris.de> Dear list, I'm running mapserver on a Mandrake 8.2 Linux with Apache 1.3.x My httpd.conf file says the document root directory is /var/www/html/ but when I point to that directory as Imagepath, nothing happens - that means my map, legend, scale etc, keep being red crosses. I even searched for temporary png-files, but I didn't find any, so I guess Mapserver doesn't produce them. Mapserver itsself is working, because when I query the map (I can't see, but I can click "Query" and then redraw the map) Mapserver returns results in my templates and also the test worked well (local-host/cgi-bin/mapserv). I really have no ideas any more what went wrong, because also my configuration went well - Mapserver.config finds gd files and also proj. Any help? Many thanks! :-) Till -- -- -- terrestris jetzt online! www.terrestris.de -- -- -- ----- Dipl. Geogr. Till Adams terrstris, Paulsen&Adams GbR Meckenheimer Allee 166 * 53115 Bonn Tel.: 0228 73 9647 * Fax.: 0228 73 6538 info at terrestris.de * www.terrestris.de From pkishor at GeoAnalytics.com Mon Sep 9 10:27:12 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 9 Sep 2002 12:27:12 -0500 Subject: [mapserver-users] Mapserver on Mandrake-Server Message-ID: > -----Original Message----- > From: Till Adams [mailto:adams at terrestris.de] > Sent: Monday, September 09, 2002 11:43 AM > To: mapserverlist > Subject: [mapserver-users] Mapserver on Mandrake-Server > > > > Dear list, > > I'm running mapserver on a Mandrake 8.2 Linux with Apache 1.3.x > > My httpd.conf file says the document root directory is > /var/www/html/ > but when I point to that directory as Imagepath, nothing happens - > that means my map, legend, scale etc, keep being red crosses. > I even searched for temporary png-files, but I didn't find any, so > I guess Mapserver doesn't produce them. well, the imagepath is exactly that. It is the path to the directory where you want mapserver to write out the temporary images. Typically you want these images to be dumped in a tmp directory so you can clean the directory from time to time. Additionally, you need to set this tmp directory with permissions to mapserver can write to it. Mapserver (actually your webserver) runs under a specific account (www or apache or nobody). The tmp directory should be writeable by this account. /var/www/html is your document root directory which has nothing to do with mapserver. That is the docs root for Apache... ostensibly you have many other websites in this docs root besides mapserver. Do the following... 1. find out what Apache is running as (look it up in httpd.conf) 2. create a tmp directory under your mapserver application root. for example, /var/www/html/tilladamsniftymapapplcation/tmp assuming that all your mapserver website htmls are sitting under tilladamsniftymapapplcation 3. chown/chgrp/chmod tmp so it can be written to by the account you discovered in #1 above. 4. change the values accordingly in your map file. 5. write a little crontab entry that cleans out the png files created under tmp every n mins or so > > Mapserver itsself is working, because when I query the map (I > can't see, > but I can click "Query" and then redraw the map) Mapserver > returns results > in my templates and also the test worked well > (local-host/cgi-bin/mapserv). > I really have no ideas any more what went wrong, because also > my configuration > went well - Mapserver.config finds gd files and also proj. > > Any help? > Many thanks! :-) > Till > > > > -- -- -- terrestris jetzt online! www.terrestris.de -- -- -- > > ----- > > Dipl. Geogr. Till Adams > terrstris, Paulsen&Adams GbR > Meckenheimer Allee 166 * 53115 Bonn > Tel.: 0228 73 9647 * Fax.: 0228 73 6538 > info at terrestris.de * www.terrestris.de > > From steve.lime at dnr.state.mn.us Mon Sep 9 10:35:44 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 09 Sep 2002 12:35:44 -0500 Subject: [mapserver-users] MS_MAXSYMBOLS Message-ID: No, it doesn't have to be that complex (i.e. lists) and what you suggest is what we use in several instances where hard limits are particularly useless. However, with things like classes/styles/layers it would be nice to be able do things like changing order (insterting in the middle) and actually deleting objects and lists are much better than arrays for those types of operations. Seems like if you're going to cross that bridge then might as well go all the way. I'm not keen on adding global variables again so we'd need object specifc counters to store allocated spaces. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Jan Hartmann 09/09/02 06:55AM >>> > Not exactly of hotbed of advanced programming techniques, but then again > Layers and > such are dynamically allocated but based upon a limit. Haven't had time > to go back and monkey with that. The limits become an issue for maybe > one user a year, there is a workaround and there are always more > pressing needs. If someone would like to help in converting arrays to > lists (layers/symbols/styles and so on) it would be welcomed. > Steve, does it really have to be that complex? Couldn't you just reallocate a bigger bunch of memory when the maximum is reached? Something like extern int MS_MAXSYMBOLS; // in the header files symbolObj *symbol; int MS_MAXSYMBOLS = 64; // in the c-file where you initialize things symbol = malloc(MS_MAXSYMBOLS * sizeof (symbolObj)); if (numsymbols == MS_MAXSYMBOLS) { // in mapsymbol.c MS_MAXSYMBOLS += 64; symbol = realloc(symbol,MS_MAXSYMBOLS*sizeof(symbolObj)); .... nothing to be changed further on ... } Realloc allocates a new block of memory and copies the contents of the old one to it. Same would go for all MS_MAX... defines in map.h. Wouldn't this solve a lot of problems without extensive rewriting? I hate doing lists in C. Jan Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From TMitchell at lignum.com Mon Sep 9 11:06:43 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Mon, 9 Sep 2002 11:06:43 -0700 Subject: [mapserver-users] Mapserver on Mandrake-Server Message-ID: Ewww..probably NOT the best place to put your temporary image files! The web/mapserver needs to be able to write files in that folder and, I assume, is not able to. I suggest creating a folder i.e. /var/www/html/tmp and making it owned by the apache (or nobody) user. Others can comment on whether this is the best way to do it or not. (Or else point your imagepath to something like /tmp perhaps?) 1) Have you changed the settings in httpd.conf so that your alias "your.website/tmp" points to the same folder as the imagepath. 2) Where are you defining the imagepath and imageurl? In the .map file? In the .html template file? Or both? If both, then you better make sure they match! Let's know how it goes. tyler Till Adams To: mapserverlist Sent by: owner-mapserver-users at lists. cc: gis.umn.edu Fax to: Subject: [mapserver-users] Mapserver on Mandrake-Server 09/09/2002 09:43 AM Dear list, I'm running mapserver on a Mandrake 8.2 Linux with Apache 1.3.x My httpd.conf file says the document root directory is /var/www/html/ but when I point to that directory as Imagepath, nothing happens - that means my map, legend, scale etc, keep being red crosses. I even searched for temporary png-files, but I didn't find any, so I guess Mapserver doesn't produce them. Mapserver itsself is working, because when I query the map (I can't see, but I can click "Query" and then redraw the map) Mapserver returns results in my templates and also the test worked well (local-host/cgi-bin/mapserv). I really have no ideas any more what went wrong, because also my configuration went well - Mapserver.config finds gd files and also proj. Any help? Many thanks! :-) Till -- -- -- terrestris jetzt online! www.terrestris.de -- -- -- ----- Dipl. Geogr. Till Adams terrstris, Paulsen&Adams GbR Meckenheimer Allee 166 * 53115 Bonn Tel.: 0228 73 9647 * Fax.: 0228 73 6538 info at terrestris.de * www.terrestris.de From eichin at thok.org Mon Sep 9 11:10:07 2002 From: eichin at thok.org (Mark Eichin) Date: 09 Sep 2002 14:10:07 -0400 Subject: [mapserver-users] Mapserver Performance Statistics In-Reply-To: "Pradeep"'s message of "Mon, 9 Sep 2002 17:06:47 +0530" References: Message-ID: I run the mapserver as fastcgi -- makes a big difference for little effort in terms of general thrashing of the machine. Once you do that, you start getting more *reliable* performance measurements out of your tests (ie. lower standard deviation), and then you find you need to look at your choices of layer detail (minscale/maxscale) and shape file slicing. Also labelling: on a current project, I'm finding that in some combinations, far more time than I'd expect is being spent rendering text (based on some strace -r probes and noting which files are opened when.) From m.spring at gmx.de Mon Sep 9 11:43:28 2002 From: m.spring at gmx.de (m.spring at gmx.de) Date: Mon, 09 Sep 2002 20:43:28 +0200 Subject: [mapserver-users] MS_MAXSYMBOLS In-Reply-To: ("Steve Lime"'s message of "Mon, 09 Sep 2002 12:35:44 -0500") References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry, I don't see big difficulties with compile-time limits. Maybe this just came up because 3.5 (I think) has line, marker and poly symbols in one symbolset file, and then it happened to me too that I had to increase the limit. "Steve Lime" writes: > bridge then might as well go all the way. I'm not keen on adding global > variables > again so we'd need object specifc counters to store allocated spaces. I think the primary objective should be a fast and ressource-savvy application, which mapserver was and is. Sure, it needs knowledge, documentation and helpful partners like on this list, and maybe it's not that suitable for a shrink wrap, but I think mapserver technology never will be like 'wordpad'. Just my 0.02 ?. Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard iD8DBQE9fOvQxxUzQSse11ARAvvAAJ9bTCCbSZCK8T6z8F+MkQGP1csvTwCeLPsS t1WhVQfjVRrCtssoioynLgk= =XV3D -----END PGP SIGNATURE----- From david.armstrong at ntlworld.com Mon Sep 9 13:01:04 2002 From: david.armstrong at ntlworld.com (David Armstrong) Date: Mon, 9 Sep 2002 21:01:04 +0100 Subject: [mapserver-users] request help configuring php mapscript as cgi within apache redhat 7.3 Message-ID: <006a01c2583b$a112e500$727ba8c0@davidpc> Help! could someone please cast an eye over my attempted setup configuring for mapscript i have followed the notes on the Wiki regarding setting up but to no avail. all help and guidance appriciated Thanks Richard Armstrong Using: Redhat 7.3 PHP 4.1.2 ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Original part in the httpd.conf: AddType application/x-httpd-php .php .php4 .php3 AddType application/x-httpd-php-source .phps Revised section: ## removed .phtml AddType application/x-httpd-php .php .php4 .php3 AddType application/x-httpd-php-source .phps Action phtml-script /cgi/php AddHandler phtml-script .phtml Options ExecCGI FollowSymLinks ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - set up the cgi folder and permissions in /var/www/html/mapscript set as: mkdir cgi chgrp apache ./cgi (some distributions call the 'apache' group 'nobody') chmod 750 ./cgi created the link: ln -s /usr/bin/php /var/www/html/mapscript/cgi/php ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - the php exectuable is in /usr/bin/php using a test.phtml in /var/www/html/mapscript/ still gives 404 error like: The requested URL /cgi-bin/php/cgi/php/mapscript/test.phtml was not found on this server. or The requested URL /cgi-bin/php/mapscript/test.phtml was not found on this server. From bbaily at CEMML.ColoState.EDU Mon Sep 9 13:19:17 2002 From: bbaily at CEMML.ColoState.EDU (Beth Baily) Date: Mon, 09 Sep 2002 14:19:17 -0600 Subject: [mapserver-users] Map panning after query Message-ID: <3D7D0245.C9B9EB5B@CEMML.ColoState.EDU> I'm confused. I'm using mapplet in my map and trying to do zoom in, zoom out, pan and query. Everything works as expected except for the query. I'm expecting it to use the template I have provided to show me information for the selected feature. Instead, it just redraws my map with the selected feature centered. When I click on query, I'm setting "mapserv.mode=query". I'm using mapplet with the cgi version 3.5. What am I doing wrong? -- ------------------------------------- Beth Baily Center for Environmental Management of Military Lands Colorado State University Fort Collins, CO 80523 Ph#:970/491-3814 FAX#:970/491-2713 E-mail: bbaily at cemml.colostate.edu ------------------------------------- From john.bennett at noetix.on.ca Mon Sep 9 13:55:58 2002 From: john.bennett at noetix.on.ca (John Bennett) Date: Mon, 9 Sep 2002 16:55:58 -0400 Subject: [mapserver-users] Get demo started on Windows 2000. Message-ID: I've got the demo "itasca" to work on my windows NT, but I really want it to work on my windows 2000. I've installed everything in the correct places as described in 'readme.gif.wms.html' when installing the binary (pre-compiled) MApserver version 3.6.1. I changed my demo.map file and demo_init.html file to work with my windows IIS. When I load demo_init.html in IE and click 'Initialize' the MapServer Demo Interface pops up, but no images are show. There are no Images that are created in the "tmp" directory. It worked on my Windows nt, same setup. THe following is my demo_init.html file: 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 help would be much appreciated. Thanks John From eichin at thok.org Mon Sep 9 14:20:53 2002 From: eichin at thok.org (Mark Eichin) Date: 09 Sep 2002 17:20:53 -0400 Subject: [mapserver-users] Mapserver Performance Statistics In-Reply-To: Mark Eichin's message of "09 Sep 2002 14:10:07 -0400" References: Message-ID: Oops, just realized that the mapserver you're talking about is probably the basic mapserv.c one; my results were with a mapserver written using the perl "use mapscript" interface, and some application specific map creation code around that... so fastcgi makes a bigger difference (though it'll still save you a lot of churn if you use it, it'll take some code modifications, albeit simple ones.) From woodbri at swoodbridge.com Mon Sep 9 14:23:23 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 9 Sep 2002 17:23:23 -0400 Subject: [mapserver-users] Get demo started on Windows 2000. In-Reply-To: Message-ID: <3D7CD90B.12741.23BAA189@localhost> Check the permissions on the tmp directory and make sure the IIS user has rw permissions. Also make sure that you drive:\paths are the same between the two configs -Steve On 9 Sep 2002 at 16:55, John Bennett wrote: > I've got the demo "itasca" to work on my windows NT, but I really want > it to work on my windows 2000. I've installed everything in the > correct places as described in 'readme.gif.wms.html' when installing > the binary (pre-compiled) MApserver version 3.6.1. I changed my > demo.map file and demo_init.html file to work with my windows IIS. > When I load demo_init.html in IE and click 'Initialize' the MapServer > Demo Interface pops up, but no images are show. There are no Images > that are created in the "tmp" directory. It worked on my Windows nt, > same setup. > > THe following is my demo_init.html file: > > 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="c:\Inetpub\wwwroot\itasca\demo.map"> name="layer" value="lakespy2"> value="dlgstln2"> > > > value="c:\inetpub\wwwroot\tmp\"> name="map_web_imageurl" value="\tmp\"> > >
> >
> >


> > > > Any help would be much appreciated. > Thanks > John > > > From jaroslaw.kowalczyk at ekoprojekt.pl Mon Sep 9 14:22:19 2002 From: jaroslaw.kowalczyk at ekoprojekt.pl (EKOPROJEKT) Date: Mon, 9 Sep 2002 23:22:19 +0200 Subject: [mapserver-users] QUERY & QUERYITME Message-ID: Hello, I am using mapserver to present results of noise measurements in my hometown online. I created several static maps, but now I would like to add some more advanced features to my presentation. I have already read archives and found several interesting examples. However I have small problem. I have found something like "QUERY" and "QUERYITEM" keywords in *.map file. This mapfile comes form archives also. But I cannot find those keywords in MapFile Reference. Where can I find explanation of those keywords? Than you for help. --------------------------------------- Jaros?aw Kowalczyk EKOPROJEKT jaroslaw.kowalczyk at ekoprojekt.pl www.ekoprojekt.pl From imap at chesapeake.net Mon Sep 9 14:59:40 2002 From: imap at chesapeake.net (Chris Stuber) Date: Mon, 9 Sep 2002 17:59:40 -0400 (EDT) Subject: [mapserver-users] bug with 3.6.1 perl mapscript $map->{shapepath} Message-ID: <20020909175826.C22271-100000@mail.chesapeake.net> I ran across this bug with perl mapscript where I access this variable (in a read-only capacity): my $myshapepath = $map->{shapepath}; print "shapepath= $myshapepath\n"; $myshapepath = $map->{shapepath}; print "shapepath= $myshapepath\n"; Initially, it returns the correct value (defined in my mapfile) but afterwards, the $map->{shapepath} becomes corrupt, and all subsequent mapscript operations fail. shapepath= /data <-- after first variable is set perl in free(): warning: chunk is already free. <-- error shapepath= shapepath <-- after second variable is set For the time being, I have hardcoded my shapepath in my mapscript, but needs a fix. Thanks, Chris From Joan.Waters at gov.ab.ca Mon Sep 9 16:48:15 2002 From: Joan.Waters at gov.ab.ca (Joan Waters) Date: Mon, 9 Sep 2002 17:48:15 -0600 Subject: [mapserver-users] msLoadMap(): Unable to access file. Message-ID: <32DC0D0B2E51C745BE6CBA087011DAE80E9F99@ems-ags-01.eub.gov.ab.ca> Hello MapServer listers; I recently downloaded and successfully installed the MapServer Itasca demo (itasca3.5.tar.gz), but have since been unable to get the application going using my own data. (We're running IIS 5.0 on Windows 2000, and I'm using the pre-compiled MapServer exe found in ms36gif_wms.zip.) I - naively - edited the mapfile in the demo data to reflect shapefiles I placed in the "data" folder, and updated the layer names in the demo_init.html file, thinking it might work. Alas, no luck. I get the error message: msLoadMap(): Unable to access file. (c:\inetpub\wwwroot\mapserver\map236.map). Much hacking, template and map file references in hand, has not helped. Then I tried constructing a very simple map file, with a very simple template; still no luck: same message. I know the demo works, so the IIS permissions etc. should be OK. Can anyone give me a clue why else I might be receiving this error message? Alternatively, does anyone have a drop-dead simple set of initialization, map and template files for displaying one shapefile from which I could start building a working app? (The on-line tutorial doesn't seem to show all the files needed to construct a browsable map, just the mapfile listing.) Thanks in advance for any help. The template file: MapServer Map 236 Demo

MapServer Map 236 Demo


 Powered by MapServer
The map file: WEB TEMPLATE map236.html END NAME MAP236 EXTENT 150000 5400000 875000 6650000 SIZE 600 600 SHAPEPATH "data" LAYER NAME "MAP236" DATA geol_py STATUS ON TYPE POLYGON CLASS COLOR 220 220 220 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object END # end of map file I'm testing these with the following URL: http://mywebserver/cgi-bin/mapserv.exe?map=c%3A%5Cinetpub%5Cwwwroot%5Cmapser ver%5Cmap236.map&layer=geol_py&zoomsize=2&program=%5Ccgi-bin%5Cmapserv.exe&m ap_web_imagepath=c%3A%5Cinetpub%5Cwwwroot%5Ctmp%5C&map_web_imageurl=%5Ctmp%5 C Joan Waters, P.Geol. Alberta Geological Survey, Alberta Energy and Utilities Board joan.waters at gov.ab.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. From hdi12 at it.canterbury.ac.nz Mon Sep 9 17:47:43 2002 From: hdi12 at it.canterbury.ac.nz (Hao Ding) Date: Tue, 10 Sep 2002 12:47:43 +1200 Subject: [mapserver-users] problems when requesting for feature info in gml format References: Message-ID: <3D7D412F.3040607@student.canterbury.ac.nz> Thanks, Steve. I've tried set DUMP to TRUE, but unfortunately I got "Internal Server Error". If I comment the sentence "DUMP true", I can get a gml response but no content as I said last time. Do I have to do some setting on the apache http server? Thanks, Hao Steve Lime wrote: > You must set DUMP to TRUE for any layer you want GML output for. That's > there as a basic security feature. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>>>Hao Ding 09/07/02 08:50PM >>> >>>> > Hello, > > I got some problems when request GetFeatureInfo to the MapServer for > GML > response. > > I used itasca demo data as the sample dataset. When requesting the lake > > feature using default INFO_FORMAT with the URL below, I can get the > results. > > http://localhost:8080/cgi-bin/mapserv?VERSION=1.1.0&REQUEST=GetFeatureInfo&SRS=EPSG:4326&BBOX=388014.0,5200400.0,500802.0,5313160.0&WIDTH=800&HEIGHT=400&FORMAT=image/gif&LAYERS=lakespy2&STYLES=default&TRANSPARENT=TRUE&QUERY_LAYERS=lakespy2&X=274&Y=192 > > > GetFeatureInfo results: > > Layer 'lakespy2' > Feature 23043: > gid = '844' > area = '407475.09544' > perimeter = '2302.07951' > usclass = '421' > dowlknum = '31081700' > dow_verif = '0' > lake_name = '' > lake_class = '0' > elevation = '1296' > acres = '100.687' > perfeet = '7553.123' > > If I add the parameter INFO_FORMAT=application/vnd.ogc.gml, the body of > > the gml file I got was empty > > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"> > > > I just wonder if I need to do something in the mapfile for gml export? > I > also don't know what the object "dump" in the mapfile is used for.(I > > saw the sentence "DUMP true" in some Layers). > > Thanks very much for any help!!! > Hao > > From Tom.Kralidis at ccrs.nrcan.gc.ca Mon Sep 9 19:08:42 2002 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Tom.Kralidis at ccrs.nrcan.gc.ca) Date: Mon, 9 Sep 2002 22:08:42 -0400 Subject: [mapserver-users] problems when requesting for feature info i n gml format Message-ID: <7CDD7B94357FD5119E800002A537C46E226E4F@s5-ccr-r1.ccrs.nrcan.gc.ca> Steve / MapServer developers, w.r.t. this thread, should we start thinking MapServer support for publishing schemas for features in GML.2 (or DTDs for GML.1)? Especially useful for the forthcoming WFS support in MapServer. Perhaps: - a 'shpschema' and / or 'shpdtd' tool which generates an XML schema file - then, in the .map file, a directive DTDPATH=/path/to/dtd/dir # for GML.1 SCHEMAPATH=/path/to/schema/dir # for GML.2 ..so when a WMS GetFeatureInfo is called, a valid GML document is published. Thoughts? ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= > -----Original Message----- > From: Hao Ding [mailto:hdi12 at it.canterbury.ac.nz] > Sent: Monday, September 09, 2002 8:48 PM > To: Steve Lime > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] problems when requesting for > feature info > in gml format > > > Thanks, Steve. I've tried set DUMP to TRUE, but unfortunately I got > "Internal Server Error". If I comment the sentence "DUMP true", I can > get a gml response but no content as I said last time. Do I > have to do > some setting on the apache http server? > > Thanks, > Hao > > Steve Lime wrote: > > > You must set DUMP to TRUE for any layer you want GML output > for. That's > > there as a basic security feature. > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > > >>>>Hao Ding 09/07/02 08:50PM >>> > >>>> > > Hello, > > > > I got some problems when request GetFeatureInfo to the MapServer for > > GML > > response. > > > > I used itasca demo data as the sample dataset. When > requesting the lake > > > > feature using default INFO_FORMAT with the URL below, I can get the > > results. > > > > > http://localhost:8080/cgi-bin/mapserv?VERSION=1.1.0&REQUEST=Ge tFeatureInfo&SRS=EPSG:4326&BBOX=388014.0,5200400.0,500802.0,5313160.0&WIDTH= 800&HEIGHT=400&FORMAT=image/gif&LAYERS=lakespy2&STYLES=default&TRANSPARENT=T RUE&QUERY_LAYERS=lakespy2&X=274&Y=192 > > > GetFeatureInfo results: > > Layer 'lakespy2' > Feature 23043: > gid = '844' > area = '407475.09544' > perimeter = '2302.07951' > usclass = '421' > dowlknum = '31081700' > dow_verif = '0' > lake_name = '' > lake_class = '0' > elevation = '1296' > acres = '100.687' > perfeet = '7553.123' > > If I add the parameter INFO_FORMAT=application/vnd.ogc.gml, the body of > > the gml file I got was empty > > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"> > > > I just wonder if I need to do something in the mapfile for gml export? > I > also don't know what the object "dump" in the mapfile is used for.(I > > saw the sentence "DUMP true" in some Layers). > > Thanks very much for any help!!! > Hao > > From silke at intevation.de Tue Sep 10 00:42:07 2002 From: silke at intevation.de (Silke Reimer) Date: Tue, 10 Sep 2002 09:42:07 +0200 Subject: [mapserver-users] Query error messages In-Reply-To: References: Message-ID: <20020910074207.GB13382@intevation.de> On Mon, Sep 09, 2002 at 02:59:52PM +0100, Matthew Hatcher wrote: > Thanks. > > Can't believe I missed something that obvious! But I'm now going to make it > a little harder for you all! Assuming that an error occurs and the page is > diverted to the url specified, is there any way to find out what the error > was? I presume (haven't checked the code) that MapServer does a simple > redirect to the page specified, rather than using it as a template, so it > wouldn't be possible to use a template variable or would it? If you interested to use a template you can apply the patch which you find at the end of the mail. Afterwards you can use the keyword ERROR_TEMPLATE in the Web object to specify a template which should be used when the query was empty. Please note that the patch was written for mapserver 3.5 and has been adapted to the mapserver 3.6. So there will appear some warnings when you apply the patch by the 'patch' command. You can ignore them. By the way: It could be interesting to incorporate the patch in the current mapserver code. Silke > > Matt. > > -----Original Message----- > From: Marc Jacquin [mailto:jacquin at geosys-inc.com] > Sent: 09 September 2002 13:05 > To: Matthew Hatcher; mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Query error messages > > > Matt, > > Check the ERROR [url] keyword in the Web object. > > Marc > -- Silke Reimer Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ ----------- here comes the patch -------------------------- diff -uNr mapserver/map.h mapserver-3.5-dev/map.h --- mapserver/map.h Fri Oct 5 05:44:57 2001 +++ mapserver-3.5-dev/map.h Wed Oct 10 11:20:06 2001 @@ -326,6 +326,8 @@ #endif char *header, *footer; char *empty, *error; /* error handling */ + char *empty_template; /* show error message with a template */ + rectObj extent; /* clipping extent */ double minscale, maxscale; char *mintemplate, *maxtemplate; diff -uNr mapserver/mapfile.c mapserver-3.5-dev/mapfile.c --- mapserver/mapfile.c Wed Oct 3 05:33:13 2001 +++ mapserver-3.5-dev/mapfile.c Wed Oct 10 11:33:30 2001 @@ -2791,7 +2791,7 @@ web->extent.minx = web->extent.miny = web->extent.maxx = web->extent.maxy = -1.0; web->template = NULL; web->header = web->footer = NULL; - web->error = web->empty = NULL; + web->error = web->empty = web->empty_template = NULL; web->mintemplate = web->maxtemplate = NULL; web->minscale = web->maxscale = -1; web->log = NULL; @@ -2807,6 +2807,7 @@ msFree(web->footer); msFree(web->error); msFree(web->empty); + msFree(web->empty_template); msFree(web->maxtemplate); msFree(web->mintemplate); msFree(web->log); @@ -2819,6 +2819,8 @@ { fprintf(stream, " WEB\n"); if(web->empty) fprintf(stream, " EMPTY \"%s\"\n", web->empty); + if(web->empty_template) fprintf(stream, " EMPTY_TEMPLATE \"%s\"\n", + web->empty); if(web->error) fprintf(stream, " ERROR \"%s\"\n", web->error); if(web->footer) fprintf(stream, " FOOTER \"%s\"\n", web->footer); if(web->header) fprintf(stream, " HEADER \"%s\"\n", web->header); @@ -2841,6 +2841,9 @@ case(EMPTY): if((web->empty = getString()) == NULL) return(-1); break; + case(EMPTY_TEMPLATE): + if((web->empty_template = getString()) == NULL) return(-1); + break; case(EOF): msSetError(MS_EOFERR, NULL, "loadWeb()"); return(-1); @@ -2904,6 +2904,10 @@ case(EMPTY): msFree(web->empty); web->empty = strdup(value); + break; + case(EMPTY_TEMPLATE): + if(web->empty_template) msFree(web->empty); + web->empty_template = strdup(value); break; case(ERROR): msFree(web->error); diff -uNr mapserver/mapfile.h mapserver-3.5-dev/mapfile.h --- mapserver/mapfile.h Fri Sep 21 05:50:42 2001 +++ mapserver-3.5-dev/mapfile.h Wed Oct 10 11:48:44 2001 @@ -158,4 +158,6 @@ #define DUMP 1125 +#define EMPTY_TEMPLATE 1130 + #endif /* MAPFILE_H */ diff -uNr mapserver/maplexer.l mapserver-3.5-dev/maplexer.l --- mapserver/maplexer.l Fri Sep 21 05:50:42 2001 +++ mapserver-3.5-dev/maplexer.l Wed Oct 10 11:20:06 2001 @@ -110,6 +110,7 @@ data { return(DATA); } dump { return(DUMP); } empty { return(EMPTY); } +empty_template { return(EMPTY_TEMPLATE); } end { return(END); } error { return(ERROR); } expression { return(EXPRESSION); } diff -uNr mapserver/mapserv.c mapserver-3.5-dev/mapserv.c --- mapserver/mapserv.c Wed Oct 10 11:49:44 2001 +++ mapserver-3.5-dev/mapserv.c Wed Oct 10 11:38:48 2001 @@ -83,8 +83,17 @@ exit(0); } - if((ms_error->code == MS_NOTFOUND) && (msObj->Map->web.empty)) { - msRedirect(msObj->Map->web.empty); + if((ms_error->code == MS_NOTFOUND) + && (msObj->Map->web.empty || msObj->Map->web.empty_template)) { + if (msObj->Map->web.empty_template) { + /* set to mode to something other than QUERY so that writeError + * is not called recursively. */ + msObj->Mode = BROWSE; + printf("Content-type: text/html%c%c", 10, 10); + msReturnPage(msObj, msObj->Map->web.empty_template, BROWSE, NULL); + } else { + msRedirect(msObj->Map->web.empty); + } } else { if(msObj->Map->web.error) { msRedirect(msObj->Map->web.error); -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From thaechl at geo.unizh.ch Tue Sep 10 02:53:22 2002 From: thaechl at geo.unizh.ch (Thomas Haechler) Date: 10 Sep 2002 11:53:22 +0200 Subject: [mapserver-users] request help configuring php mapscript as cgi within apache redhat 7.3 References: <006a01c2583b$a112e500$727ba8c0@davidpc> Message-ID: <3D7DC112.100BF03D@geo.unizh.ch> hi, this looks different from what I posted at http://mapserver.gis.umn.edu/wilma/mapserver-users/0208/msg00487.html but anyway, you create a link from /var/www/html/mapscript/cgi/php to usr/bin/ where your php executable lies. Shouldn't the executable be in /path/to/apache/cgi-bin/ ? Or, at least, ln -s /usr/bin/php /path/to/apache/cgi-bin/php ? hth, thomy David Armstrong wrote: > > Help! > could someone please cast an eye over my attempted setup configuring for > mapscript > i have followed the notes on the Wiki regarding setting up but to no avail. > > all help and guidance appriciated > > Thanks > Richard Armstrong > > Using: > Redhat 7.3 > PHP 4.1.2 > > ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > Original part in the httpd.conf: > > > AddType application/x-httpd-php .php .php4 .php3 > AddType application/x-httpd-php-source .phps > > > Revised section: > > ## removed .phtml > > AddType application/x-httpd-php .php .php4 .php3 > AddType application/x-httpd-php-source .phps > > > Action phtml-script /cgi/php > AddHandler phtml-script .phtml > > > Options ExecCGI FollowSymLinks > > > ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > set up the cgi folder and permissions in /var/www/html/mapscript set as: > > mkdir cgi > chgrp apache ./cgi (some distributions call the 'apache' group 'nobody') > chmod 750 ./cgi > > created the link: > > ln -s /usr/bin/php /var/www/html/mapscript/cgi/php > > ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > the php exectuable is in /usr/bin/php > using a test.phtml in /var/www/html/mapscript/ still gives 404 error like: > > The requested URL /cgi-bin/php/cgi/php/mapscript/test.phtml was not > found on this server. > or > The requested URL /cgi-bin/php/mapscript/test.phtml was not found on > this server. -- THOMAS HAECHLER Geographic Information Systems Division Institute of Geography University of Zurich Switzerland thomas.haechler at geo.unizh.ch From root at shadow.munistgo.cl Tue Sep 10 06:42:49 2002 From: root at shadow.munistgo.cl (root) Date: Tue, 10 Sep 2002 09:42:49 -0400 Subject: [mapserver-users] php In-Reply-To: <20020909050108.GA31524@landsat.cprsig.cl> References: <200209061410.g86EA3f03884@shadow.munistgo.cl> <20020909050108.GA31524@landsat.cprsig.cl> Message-ID: <200209101342.g8ADgn414036@shadow.munistgo.cl> El Lun 09 Sep 2002 01:01, Vinko Vrsalovic escribi?: > On Fri, Sep 06, 2002 at 10:10:03AM -0400, root wrote: > > i installed apache_1.3.26, php_4.1.1 y mapserver_3.6.1. > > PHP was installed as CGI > > > > MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > I copy php_mapscript.so to /usr/local/lib as nobody user > > > > but phpinfo say me: > > > > Warning: Unable to load dynamic library './php_mapscript.so' - > > ./php_mapscript.so: cannot open shared object file: No such file or > > directory in > > /www/htdocs/phpinfo_mapscript.phtml on line 21 > > > > extension_dir ./ > > Regex Library System library enabled > > Dynamic Library Support enabled > > > > Thank in advance > > Patricio > > is /usr/local/lib the extensions dir? it's usually something like > /usr/local/lib/php/extensions > > in phpinfo is detailed what is the extensions dir. I have installed and working mapserver3.5 like DSO and php_mapscript.so is in /usr/local/lib As say over extension_dir is ./ I have tried copy it in /usr/local/lib/php/extensions, but nothing the user for it is nobody I don't know, what i have to do Thanks From EDUARDOPK at vcp.com.br Tue Sep 10 08:42:06 2002 From: EDUARDOPK at vcp.com.br (EDUARDO PATTO KANEGAE) Date: Tue, 10 Sep 2002 12:42:06 -0300 Subject: [mapserver-users] [OFF-TOPIC]FreeGIS like ArcFamily Message-ID: <0066FEFC20B1D411AB4600805F8540C403EE823C@la02vcp.vcp.com.br> is there any software or set of software, under the free-software, that would be possible to: - import data from CAD files( dxf, dgn) - work on .SHAPEFILE format - generates TIN/DTM - generates 3D Visualization of DTM surfaces - interpolation of point values well, i think the right question may be: is there a way of using free-software for making the same results( or nearest) that ESRI Arc* does? regards Eduardo Patto Kanegae eduardopk at vcp.com.br Time Planejamento - UNIDADE LA - Ramal 9126 eduardo at scopotecnologia.com.br http://www.scopotecnologia.com.br From TMitchell at lignum.com Tue Sep 10 10:08:08 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 10 Sep 2002 10:08:08 -0700 Subject: [mapserver-users] [OFF-TOPIC]FreeGIS like ArcFamily Message-ID: -The GDAL/OGR package can read numerous raster and vector formats and write some of them as well. (http://www.remotesensing.org/gdal). -OpenEV can by default edit/create shapefiles and view data using the above mentioned libraries. It can also create 3d views (simple drapes) over elevation rasters! -I'd love to learn more about TIN/DTM options you find -I don't have any ideas around interpolation of point values except to check out GRASS GIS which, I believe can do most of what you are looking for. Tyler EDUARDO PATTO KANEGAE To: MapServer USERS (Correio eletr?nico) Sent by: owner-mapserver-users at lists. cc: gis.umn.edu Fax to: Subject: [mapserver-users] [OFF-TOPIC]FreeGIS like ArcFamily 09/10/2002 12:42 PM is there any software or set of software, under the free-software, that would be possible to: - import data from CAD files( dxf, dgn) - work on .SHAPEFILE format - generates TIN/DTM - generates 3D Visualization of DTM surfaces - interpolation of point values well, i think the right question may be: is there a way of using free-software for making the same results( or nearest) that ESRI Arc* does? regards Eduardo Patto Kanegae eduardopk at vcp.com.br Time Planejamento - UNIDADE LA - Ramal 9126 eduardo at scopotecnologia.com.br http://www.scopotecnologia.com.br From pkishor at GeoAnalytics.com Tue Sep 10 10:28:39 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 10 Sep 2002 12:28:39 -0500 Subject: [mapserver-users] [OFF-TOPIC]FreeGIS like ArcFamily Message-ID: > -----Original Message----- > From: EDUARDO PATTO KANEGAE [mailto:EDUARDOPK at vcp.com.br] > Sent: Tuesday, September 10, 2002 10:42 AM > To: MapServer USERS (Correio eletr?nico) > Subject: [mapserver-users] [OFF-TOPIC]FreeGIS like ArcFamily > > > is there any software or set of software, under the > free-software, that > would be possible to: > > - import data from CAD files( dxf, dgn) > - work on .SHAPEFILE format > - generates TIN/DTM > - generates 3D Visualization of DTM surfaces > - interpolation of point values > > well, i think the right question may be: is there a way of > using free-software for making the same results( or > nearest) that ESRI > Arc* does? you wish, eh! ;-). I mean Arc* is a very large set... how about Arc?\? seriously, some of it could be done. - visualization could be achieved with Grass. so could tin/dtm, etc. - dunno what you mean by 'work on .SHAPEFILE format' I mean, mapserver works on shapefiles there is whole bunch listed at http://opensourcegis.org/ you might want to give it a gander. pk/ From steve.lime at dnr.state.mn.us Tue Sep 10 10:40:21 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 10 Sep 2002 12:40:21 -0500 Subject: [mapserver-users] Proj.dll Message-ID: Afternoon folks. Does anyone have a compiled version of proj.4 laying around that could be shared? Thanks!- Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From steve.lime at dnr.state.mn.us Tue Sep 10 10:43:27 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 10 Sep 2002 12:43:27 -0500 Subject: [mapserver-users] bug with 3.6.1 perl mapscript $map->{shapepath} Message-ID: I ran into this a couple of months ago and have already debugged and fixed it. The fix should be present in the 3.7 branch for sure, but probably didn't make it to the 3.6 branch. I'll have to check to be sure. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Chris Stuber 09/09/02 04:59PM >>> I ran across this bug with perl mapscript where I access this variable (in a read-only capacity): my $myshapepath = $map->{shapepath}; print "shapepath= $myshapepath\n"; $myshapepath = $map->{shapepath}; print "shapepath= $myshapepath\n"; Initially, it returns the correct value (defined in my mapfile) but afterwards, the $map->{shapepath} becomes corrupt, and all subsequent mapscript operations fail. shapepath= /data <-- after first variable is set perl in free(): warning: chunk is already free. <-- error shapepath= shapepath <-- after second variable is set For the time being, I have hardcoded my shapepath in my mapscript, but needs a fix. Thanks, Chris From steve.lime at dnr.state.mn.us Tue Sep 10 10:57:26 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 10 Sep 2002 12:57:26 -0500 Subject: [mapserver-users] ask error Message-ID: Please not that I will be releasing a new version of the demo shortly (later this week). It does away with this problem by using png instead of gif initially since png is more likely to be supported. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 09/07/02 09:51PM >>> Look in your map file, you have a layer "ctyrdln3_anno" that uses symbols/ctyhwy.gif which does not exist on your system. Do you have a version of this file as a png? If so change it to point the the png. >From you other message, you will need to convert all your gif to png files if you mapserver does not support gif files. Find your mapserv executable and type mapserv -v to see what formats it supports. -Steve On 8 Sep 2002 at 8:54, Dani 97 wrote: > hi... > > there's error with this message : "msLoadMap():General > error message. Undefined "symbols/ctyhwy.gif" in class 0 of layer > ctyrdln3_anno." > > how to fix it ? > > thanks > > regards > dendi > > > From steve.lime at dnr.state.mn.us Tue Sep 10 11:02:41 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 10 Sep 2002 13:02:41 -0500 Subject: [mapserver-users] Class Expressions Message-ID: Yes, I meant =~, although now as I think about it we probably don't need it and could just use =/eq or !=/ne. For now though you need to use =~ for a regex comparison. I'll fix the parser to allow the other operators for 3.7. != has always been available. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 09/06/02 11:56PM >>> On 6 Sep 2002 at 23:35, Steve Lime wrote: > Funny you should ask. I committed a new version of the expression > parser to the 3.7 and 3.6 CVS trees last night. One of the additions > is a not operator. I've tested it mostly in conjuction with the > REQUIRES and LABELREQUIRES context expressions but it should work fine > otherwise. You can write things like: > > EXPRESSION (!('[TEXT]' =~ /^UNK|^N.A/)) Did you really mean to write "=~" like in perl? I do not think that is documented. Did you implement != for not equal to? > > There is no negation operator outside of logical expressions (yet) > although there may be something built into regex. > > I think (try it to be sure) that your last idea may work. If a CLASS > does not have a COLOR or OUTLINECOLOR then it is skipped. If so, then > that would be faster than the combination of logical and regular > expressions. I think this is working fine, at least the records I don't want are not on the map. I wasted about 2 hours trying to get anything to show up on the map because I set CLASSITEM but forgot to set LABELITEM Boy does that make me feel dumb! -Steve W. From m.spring at gmx.de Tue Sep 10 11:34:57 2002 From: m.spring at gmx.de (m.spring at gmx.de) Date: Tue, 10 Sep 2002 20:34:57 +0200 Subject: [mapserver-users] [OFF-TOPIC]FreeGIS like ArcFamily In-Reply-To: <0066FEFC20B1D411AB4600805F8540C403EE823C@la02vcp.vcp.com.br> (EDUARDO PATTO KANEGAE's message of "Tue, 10 Sep 2002 12:42:06 -0300") References: <0066FEFC20B1D411AB4600805F8540C403EE823C@la02vcp.vcp.com.br> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You should have a look at http://www.freegis.org Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard iD8DBQE9fjtRxxUzQSse11ARAudKAJ4xU8ysqOpJBpg3zAOEvaHFAg1StQCfXoWQ Cc003WSkDjOcr9jTZSXGkvM= =bBoL -----END PGP SIGNATURE----- From steve.lime at dnr.state.mn.us Tue Sep 10 11:46:50 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 10 Sep 2002 13:46:50 -0500 Subject: [mapserver-users] Perl Mapscript issue (was: Tried to send message to the list..) Message-ID: An embedded message was scrubbed... From: "Brian Tomaszewski" Subject: Tried to send message to the list.. Date: Tue, 10 Sep 2002 09:19:21 -0400 Size: 2189 URL: From tesimap at hotmail.com Tue Sep 10 11:56:00 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Tue, 10 Sep 2002 20:56:00 +0200 Subject: [mapserver-users] HELP!!! GD compiling error Message-ID: Hi, I have a problem in compiling gd-1.8.4 package with Visual C++ 6.0 on Windows XP. --------------------------------------------------------------- ERROR: LIB gd.obj gd_gd.obj gd_gd2.obj gd_io.obj gd_io_dp.obj gd_io_file.obj gd_ss.obj gd_io_ss.obj gd_png.obj gdxpm.obj gdfontt.obj gdfonts.obj gdfontmb.obj gdfontl.obj gd_gif_in.obj gd_gif_out.obj gd_biggif_out.obj gd_lzw_out.obj gdfontg.obj gdtables.obj gdttf.obj gdft.c gdcache.obj gdkanji.obj gd_jpeg.obj libpng.lib zlib.lib libttf.lib libjpeg.lib Microsoft (R) Library Manager Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. gdft.c : fatal error LNK1136: invalid or corrupt file NMAKE : fatal error U1077: 'LIB' : return code '0x470' Stop. ----------------------------------------------------------------- Any idea? Regards! Ivan _________________________________________________________________ Chiacchiera con gli amici online, prova MSN Messenger: http://messenger.msn.it From steve.lime at dnr.state.mn.us Tue Sep 10 11:58:55 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 10 Sep 2002 13:58:55 -0500 Subject: [mapserver-users] Proj.dll Message-ID: What a great list! Ask and ye shall receive, must've have been 10 responses. Thanks folks! Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Sean Gillies 09/10/02 01:50PM >>> Steve, Here you go: proj-4.4.5 compiled with MSVC 6.0 using the standard makefile.vc. I'm sure you'll have plenty more coming! S. Steve Lime wrote: > Afternoon folks. Does anyone have a compiled version of proj.4 laying > around that could be shared? > > Thanks!- Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > -- Sean Gillies Applications Developer i-cubed : information integration & imaging LLC 970-482-4400 voice 970-482-4499 fax http://www.i3.com From ed at topozone.com Tue Sep 10 12:18:40 2002 From: ed at topozone.com (Ed McNierney) Date: Tue, 10 Sep 2002 15:18:40 -0400 Subject: [mapserver-users] HELP!!! GD compiling error Message-ID: <13858AA1A74F30419F319ACB66A9D1220E8634@mercator.topozone.com> Ivan - The build is trying to put a C source file into a library. Note that the long list of files all end in either .obj or .lib EXCEPT gdft.c. This is a makefile error - you should change it to read gdft.obj instead of gdft.c. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Ivan Paoluzzi [mailto:tesimap at hotmail.com] Sent: Tuesday, September 10, 2002 2:56 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] HELP!!! GD compiling error Hi, I have a problem in compiling gd-1.8.4 package with Visual C++ 6.0 on Windows XP. --------------------------------------------------------------- ERROR: LIB gd.obj gd_gd.obj gd_gd2.obj gd_io.obj gd_io_dp.obj gd_io_file.obj gd_ss.obj gd_io_ss.obj gd_png.obj gdxpm.obj gdfontt.obj gdfonts.obj gdfontmb.obj gdfontl.obj gd_gif_in.obj gd_gif_out.obj gd_biggif_out.obj gd_lzw_out.obj gdfontg.obj gdtables.obj gdttf.obj gdft.c gdcache.obj gdkanji.obj gd_jpeg.obj libpng.lib zlib.lib libttf.lib libjpeg.lib Microsoft (R) Library Manager Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. gdft.c : fatal error LNK1136: invalid or corrupt file NMAKE : fatal error U1077: 'LIB' : return code '0x470' Stop. ----------------------------------------------------------------- Any idea? Regards! Ivan _________________________________________________________________ Chiacchiera con gli amici online, prova MSN Messenger: http://messenger.msn.it From Chip.Hankley at GASAI.Com Tue Sep 10 13:11:52 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Tue, 10 Sep 2002 15:11:52 -0500 Subject: [mapserver-users] PHP MapScript and HTML legends Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD8A@postoffice.GASAI.Com> I just started working with HTML legends. Is there / how can I incorporate this feature into a PHP MapScript app? TIA Chip Hankley From lfilak at medinaco.org Tue Sep 10 14:12:20 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Tue, 10 Sep 2002 17:12:20 -0400 Subject: [mapserver-users] Perl Mapscript issue (was: Tried to send message to thelist..) Message-ID: <200209102058.g8AKwt802553@yogi.medinaco.net> Do you have RASTER layers in your mapfile? If you comment that layer(s) out does the cgi work? Lowell F. > I tried to send a message to the MS list, but it didn't seem to go through.. > However, nothing was sent back to me (wrong email). > > Here is my message: > > ********************************************************************* > > Hi List > > I am trying to run a very basic mapscript cgi. Here is the code: > > #!/usr/local/bin/perl > > use mapscript; > > my $map = new mapObj('/usr/local/apache/htdocs/liv_ms/liv.map') or > die('Unable to open mapfile'); > my $image = $map->draw() or die('Unable to draw map'); > > > When I try to run, I get a 500 Internal server error in my browser and the > following is in the apache error log: > > [Mon Sep 9 21:25:25 2002] [error] [client 192.168.1.1] Premature end of > script headers: /usr/local/apache/cgi-bin/ms.cgi > libpng warning: Incomplete compressed datastream in iCCP chunk > > I have already checked: > > -perl is in /usr/local/bin/ > -there is a map file at the location > > Any help or ideas would be appreciated > > Thank you in advance > > Brian Tomaszewski From root at shadow.munistgo.cl Tue Sep 10 14:08:28 2002 From: root at shadow.munistgo.cl (root) Date: Tue, 10 Sep 2002 17:08:28 -0400 Subject: [mapserver-users] php In-Reply-To: <02091012483200.06854@123rutas.vianauta.com> References: <200209061410.g86EA3f03884@shadow.munistgo.cl> <200209101342.g8ADgn414036@shadow.munistgo.cl> <02091012483200.06854@123rutas.vianauta.com> Message-ID: <200209102108.g8AL8SA01965@shadow.munistgo.cl> Thanks a lot I am working now Patricio El Mar 10 Sep 2002 12:48, Daniel Lagos escribi?: > Change the path extension_dir to /usr/lib/[php_version] on php.ini and > restart apache. > > On Tuesday 10 September 2002 09:42 am, you wrote: > > El Lun 09 Sep 2002 01:01, Vinko Vrsalovic escribi?: > > > On Fri, Sep 06, 2002 at 10:10:03AM -0400, root wrote: > > > > i installed apache_1.3.26, php_4.1.1 y mapserver_3.6.1. > > > > PHP was installed as CGI > > > > > > > > MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > > > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 > > > > INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > > > > > I copy php_mapscript.so to /usr/local/lib as nobody user > > > > > > > > but phpinfo say me: > > > > > > > > Warning: Unable to load dynamic library './php_mapscript.so' - > > > > ./php_mapscript.so: cannot open shared object file: No such file or > > > > directory in > > > > /www/htdocs/phpinfo_mapscript.phtml on line 21 > > > > > > > > extension_dir ./ > > > > Regex Library System library enabled > > > > Dynamic Library Support enabled > > > > > > > > Thank in advance > > > > Patricio > > > > > > is /usr/local/lib the extensions dir? it's usually something like > > > /usr/local/lib/php/extensions > > > > > > in phpinfo is detailed what is the extensions dir. > > > > I have installed and working mapserver3.5 like DSO and php_mapscript.so > > is in /usr/local/lib > > > > As say over extension_dir is ./ > > > > I have tried copy it in /usr/local/lib/php/extensions, but nothing > > the user for it is nobody > > > > I don't know, what i have to do > > > > Thanks > > D. Lagos H. From sgillies at i3.com Tue Sep 10 14:39:08 2002 From: sgillies at i3.com (Sean Gillies) Date: Tue, 10 Sep 2002 15:39:08 -0600 Subject: [mapserver-users] bug with 3.6.1 perl mapscript $map->{shapepath} References: Message-ID: <3D7E667B.1000005@i3.com> Steve Lime wrote: > I ran into this a couple of months ago and have already debugged and > fixed it. The fix should be present > in the 3.7 branch for sure, but probably didn't make it to the 3.6 > branch. I'll have to check to be sure. > FWIW, I'll confirm that I'm having no problems with shapepath in the 3.7 mapscript (Python). -- Sean Gillies Applications Developer i-cubed : information integration & imaging LLC 970-482-4400 voice 970-482-4499 fax http://www.i3.com From eblevins at insight.rr.com Tue Sep 10 15:33:27 2002 From: eblevins at insight.rr.com (Eric L. Blevins) Date: Tue, 10 Sep 2002 18:33:27 -0400 Subject: [mapserver-users] PHPMapscript example? Message-ID: <01bc01c2591a$2f0e8e20$6406a8c0@Gateway> I am looking for some good examples to solve this problem. I'm new to PHP and PHPMapscript. I have my map file all layed out you can take a look at it here www.wifimaps.com/eblevins/ The triangles and circles on the map are currently in .shp files. They are just points in the .shp files I want to store the triangles and circles in a MySQL database. Using PHPMapscript how would I display them using the info in the MySQL database? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcilhagga at dmsolutions.ca Tue Sep 10 15:52:38 2002 From: mcilhagga at dmsolutions.ca (Dave McIlhagga) Date: Tue, 10 Sep 2002 18:52:38 -0400 Subject: [mapserver-users] [OFF-TOPIC]FreeGIS like ArcFamily References: Message-ID: <3D7E77B6.4050806@dmsolutions.ca> OpenEV can also do interpolations + you don't necessarily have to translate your DGN to Shapes - they can be read directly by OpenEV via OGR and rendered in 3D. Dave Tyler Mitchell wrote: > -The GDAL/OGR package can read numerous raster and vector formats and write > some of them as well. (http://www.remotesensing.org/gdal). > -OpenEV can by default edit/create shapefiles and view data using the above > mentioned libraries. It can also create 3d views (simple drapes) over > elevation rasters! > -I'd love to learn more about TIN/DTM options you find > -I don't have any ideas around interpolation of point values except to > check out GRASS GIS which, I believe can do most of what you are looking > for. > > Tyler > > > > EDUARDO PATTO KANEGAE > To: MapServer USERS (Correio eletr?nico) > Sent by: > owner-mapserver-users at lists. cc: > gis.umn.edu Fax to: > Subject: [mapserver-users] [OFF-TOPIC]FreeGIS like > ArcFamily > 09/10/2002 12:42 PM > > > > > > > is there any software or set of software, under the free-software, that > would be possible to: > > - import data from CAD files( dxf, dgn) > - work on .SHAPEFILE format > - generates TIN/DTM > - generates 3D Visualization of DTM surfaces > - interpolation of point values > > well, i think the right question may be: is there a way of > using free-software for making the same results( or nearest) that ESRI > Arc* does? > > regards > > > Eduardo Patto Kanegae > eduardopk at vcp.com.br > Time Planejamento - UNIDADE LA - Ramal 9126 > eduardo at scopotecnologia.com.br > http://www.scopotecnologia.com.br > > > > > > > -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca EMail : mcilhagga at dmsolutions.ca Phone : 613-565-5056 x15 Fax : 613-565-0925 From theflan at gofree.indigo.ie Tue Sep 10 16:05:38 2002 From: theflan at gofree.indigo.ie (Marie Flanagan) Date: Wed, 11 Sep 2002 00:05:38 +0100 Subject: [mapserver-users] Building Mapserver with Ming support - problem Message-ID: <02c801c2591e$94522ea0$2842a8c0@marie> Hello Mapserver Users, I have been using Mapserver 3.5 on (Solaris/Apache web server). To introduce more flexibility at the front end I have been using our own middleware and perl scripts to produce dynamic HTML - to provide additional information on mouseover. BUT it's not enough..... .... we want to be able to turn on/off layers, mouse over to provide extra information and links to images or other pages, use nice icons dynamically at the front end. Flash might be the way to go to provide snazzy maps. I know nothing about it at the moment though. I've downloaded Mapserver 3.6.1 and the ming library. When I try to compile Mapserver with the --with-ming=yes/usr/src/ming-0.2a nothing seems to happen..... i.e. the configure seems to ignore the fact that I've asked for ming support. Do I need PHP to use ming?? Could someone give a bit of direction here ? TIA. Regards, Marie Flanagan -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkishor at GeoAnalytics.com Tue Sep 10 16:36:27 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 10 Sep 2002 18:36:27 -0500 Subject: [mapserver-users] Building Mapserver with Ming support - prob lem Message-ID: >-----Original Message----- >From: Marie Flanagan [mailto:theflan at gofree.indigo.ie] >Sent: Tuesday, September 10, 2002 6:06 PM >To: mapserver-users at lists.gis.umn.edu >Subject: [mapserver-users] Building Mapserver with Ming support - problem > > >Hello Mapserver Users, > >I have been using Mapserver 3.5 on (Solaris/Apache web server). To >introduce more flexibility at the front end I have been using our >own middleware and perl scripts to produce dynamic HTML - to >provide additional information on mouseover. BUT it's not >enough..... > >.... we want to be able to turn on/off layers, >use nice icons dynamically at the front end both can be done with Perl/Mapscript as is. >mouse over to provide extra information and links to images >or other pages, . there was tiny little discussion on this about 3 days ago. This starts to get more complicated. >Flash might be the way to go to provide snazzy maps. some work has been done on this, methinks. Search for Flash or swf on wilma, the list archives server. pk/ From assefa at dmsolutions.ca Tue Sep 10 17:15:46 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 10 Sep 2002 20:15:46 -0400 Subject: [mapserver-users] Building Mapserver with Ming support - problem References: <02c801c2591e$94522ea0$2842a8c0@marie> Message-ID: <3D7E8B32.4CB0AC48@dmsolutions.ca> You need the latest development version of mapserver . You can get it from the CVS at the UMN site. The SWF support was not introduced in mapserver 3.6.x and will be available only in 3.7. Marie Flanagan wrote: > Hello Mapserver Users, I have been using Mapserver 3.5 on > (Solaris/Apache web server). To introduce more flexibility at the > front end I have been using our own middleware and perl scripts to > produce dynamic HTML - to provide additional information on > mouseover. BUT it's not enough..... .... we want to be able to turn > on/off layers, mouse over to provide extra information and links to > images or other pages, use nice icons dynamically at the front end. > Flash might be the way to go to provide snazzy maps. I know nothing > about it at the moment though. I've downloaded Mapserver 3.6.1 and > the ming library. When I try to compile Mapserver with the > --with-ming=yes/usr/src/ming-0.2a nothing seems to happen..... i.e. > the configure seems to ignore the fact that I've asked for ming > support. Do I need PHP to use ming?? Could someone give a bit of > direction here ? TIA. Regards, Marie Flanagan -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From btski at rochester.rr.com Tue Sep 10 18:33:38 2002 From: btski at rochester.rr.com (Brian Tomaszewski) Date: Tue, 10 Sep 2002 21:33:38 -0400 Subject: [mapserver-users] Perl Mapscript issue (was: Tried to send messageto thelist..) In-Reply-To: <200209102058.g8AKwt802553@yogi.medinaco.net> Message-ID: Thank you for the reply Lowel I modfied the map file and took out RASTER and postGIS references, and now the error is just [Tue Sep 10 21:45:56 2002] [error] [client 192.168.1.1] Premature end of script headers: /usr/local/apache/cgi-bin/ms.cgi Questions: I am learning PERL as I learn mapscript, so could there be something with my PERL installation? In general, can you not use raster layers with mapscript ? Any more ideas on things to look for? Thank you Brian -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Lowell Filak Sent: Tuesday, September 10, 2002 5:12 PM To: mapserver-users at lists.gis.umn.edu; btski at rochester.rr.com Subject: Re: [mapserver-users] Perl Mapscript issue (was: Tried to send messageto thelist..) Do you have RASTER layers in your mapfile? If you comment that layer(s) out does the cgi work? Lowell F. > I tried to send a message to the MS list, but it didn't seem to go through.. > However, nothing was sent back to me (wrong email). > > Here is my message: > > ********************************************************************* > > Hi List > > I am trying to run a very basic mapscript cgi. Here is the code: > > #!/usr/local/bin/perl > > use mapscript; > > my $map = new mapObj('/usr/local/apache/htdocs/liv_ms/liv.map') or > die('Unable to open mapfile'); > my $image = $map->draw() or die('Unable to draw map'); > > > When I try to run, I get a 500 Internal server error in my browser and the > following is in the apache error log: > > [Mon Sep 9 21:25:25 2002] [error] [client 192.168.1.1] Premature end of > script headers: /usr/local/apache/cgi-bin/ms.cgi > libpng warning: Incomplete compressed datastream in iCCP chunk > > I have already checked: > > -perl is in /usr/local/bin/ > -there is a map file at the location > > Any help or ideas would be appreciated > > Thank you in advance > > Brian Tomaszewski From ahallam at digitalearth.com.au Tue Sep 10 18:52:37 2002 From: ahallam at digitalearth.com.au (Andrew Hallam) Date: Wed, 11 Sep 2002 11:52:37 +1000 Subject: [mapserver-users] Nightly 3.7 (Win) - Not Retuning JPEG Format Message-ID: <9909875.1031745157@[192.168.0.11]> Hi List, ms37png_gdal_pg_wms_nightly.zip is giving a "cannot initialise image" error when I ask for JPEG format (image/jpeg). PNG works fine (image/png). Regards Andrew Hallam Digital Earth Pty Ltd http://www.digitalearth.com.au From ahallam at digitalearth.com.au Tue Sep 10 18:54:33 2002 From: ahallam at digitalearth.com.au (Andrew Hallam) Date: Wed, 11 Sep 2002 11:54:33 +1000 Subject: [mapserver-users] WMS Server - Problem Returning v1.1.0 Capabilities In-Reply-To: References: Message-ID: <10025453.1031745273@[192.168.0.11]> Hi List, I have MapServer 3.6.1 installed on a Win2k box (ms36png_gdal_pg_wms.zip). My map file is set up for WMS serving and it returns map images as desired. However, I cannot get it to return the capabilities file in anything but WMS 1.0.0 format. How do I get it to return a WMS 1.1.0 compliant capabilities document? What am I missing? returns WMS 1.0.0 capabilities. also returns WMS 1.0.0 capabilities. I also tried the nightly 3.7 Windows build and got the same results. TIA. Regards Andrew Hallam Digital Earth Pty Ltd http://www.digitalearth.com.au From pkishor at GeoAnalytics.com Tue Sep 10 19:46:52 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 10 Sep 2002 21:46:52 -0500 Subject: [mapserver-users] Perl Mapscript issue In-Reply-To: Message-ID: On Tuesday, September 10, 2002, at 08:33 PM, Brian Tomaszewski wrote: > Thank you for the reply Lowel > > I modfied the map file and took out RASTER and postGIS references, and > now > the error is just > > [Tue Sep 10 21:45:56 2002] [error] [client 192.168.1.1] Premature end of > script headers: /usr/local/apache/cgi-bin/ms.cgi > > Questions: > > I am learning PERL as I learn mapscript, so could there be something > with my > PERL installation? likely not. Most likely your mapscript is simply not producing correct headers or a complete html file. Why don't you start with a simple page... just pop in the commands for starting and ending the html and start by adding a few basic mapscript commands (comment out the rest). Take it step by step and see if there is any specific command that is choking. Also, make sure your directory where you are writing temporary images is writeable by your webserver. pk/ > > In general, can you not use raster layers with mapscript ? > > Any more ideas on things to look for? > > Thank you > > Brian > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Lowell > Filak > Sent: Tuesday, September 10, 2002 5:12 PM > To: mapserver-users at lists.gis.umn.edu; btski at rochester.rr.com > Subject: Re: [mapserver-users] Perl Mapscript issue (was: Tried to send > messageto thelist..) > > > Do you have RASTER layers in your mapfile? If you comment that layer(s) > out > does the cgi work? > Lowell F. > > >> I tried to send a message to the MS list, but it didn't seem to go > through.. >> However, nothing was sent back to me (wrong email). >> >> Here is my message: >> >> ********************************************************************* >> >> Hi List >> >> I am trying to run a very basic mapscript cgi. Here is the code: >> >> #!/usr/local/bin/perl >> >> use mapscript; >> >> my $map = new mapObj('/usr/local/apache/htdocs/liv_ms/liv.map') or >> die('Unable to open mapfile'); >> my $image = $map->draw() or die('Unable to draw map'); >> >> >> When I try to run, I get a 500 Internal server error in my browser and > the >> following is in the apache error log: >> >> [Mon Sep 9 21:25:25 2002] [error] [client 192.168.1.1] Premature end >> of >> script headers: /usr/local/apache/cgi-bin/ms.cgi >> libpng warning: Incomplete compressed datastream in iCCP chunk >> >> I have already checked: >> >> -perl is in /usr/local/bin/ >> -there is a map file at the location >> >> Any help or ideas would be appreciated >> >> Thank you in advance >> >> Brian Tomaszewski >> -- Puneet Kishor pkishor at eidesis.org From guillaume.sueur at khi2.fr Wed Sep 11 00:05:24 2002 From: guillaume.sueur at khi2.fr (Guillaume Sueur) Date: Wed, 11 Sep 2002 09:05:24 +0200 Subject: [mapserver-users] Nightly 3.7 (Win) References: <9909875.1031745157@[192.168.0.11]> Message-ID: <001601c25961$9cb9d780$1820a8c0@sig.fr> Hi there, I've looked at the description of nightly 3.7 briefly this morning. No word about Flash generation. Will MS 3.7 able to generate Flash then ? Thanks Guillaume SUEUR From marco at mediaeval.nl Wed Sep 11 00:14:48 2002 From: marco at mediaeval.nl (Marco) Date: Wed, 11 Sep 2002 09:14:48 +0200 Subject: [mapserver-users] projections [shpmidx] [shpmidy] Message-ID: <003401c25962$ec3bbc00$0804000a@mediaeval.nl> Hi list, If the next question is a stupid one, excuse me. I am newbe. context: I use mapserv CGI (no mapscript) and a Apache webserver with PHP (on a windows machine for testing). I am building a web-application with dynamic maps. problem: I use a template file to get information about the map-features on the current map. The tags [shpmidx] and [shpmidy] provides information on the exact position of a feature (see http://mapserver.gis.umn.edu/doc36/template-reference.html ). With simple lineair algebra it is possible to calculate the xy-position of this feature on the actual generated image. (a lineair transformation from "real world" lat-lon coordinates to "image" x-y pixelcoordinates). I use these information to create some kind of javascript rollover interface; if the mouse hovers a feature, the webapplication respons immediately, without the need of connecting to the server. So far so good. Everything works fine. So now for the problem. If I deploy a projection ("proj=stere") Nothing works anymore. That is because [shpmidx] and [shpmidy] gives the lon-lat stuff, but i need the xy coordanates on the generated image of the map. Sure it should be possible to write transformations for projected maps (a lot of sinus and cosinus, arctangens etcetera i suppose) but i believe that's a ticket to the nearest snake pit. Is there a solution for this (withhout the need of writing my own transformation formulas) Or, if I have to write transformation, does anybody now the formulas for this projection: PROJECTION "proj=stere" "lat_0=52.156160556" "lon_0=5.387638889" "k=0.0000999908" "x_0=0.000" "y_0=0.000" "ellps=bessel" END Cheers, Marco Marco Pieck, marco at mediaeval.nl Mediaeval Vorm & Visie http://www.mediaeval.nl/ postbus 1050, 6501 BB Nijmegen, the Netherlands tel: ++ 31 24-3818196, fax: ++ 31 24-3818183 -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at medinaco.org Wed Sep 11 05:44:10 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 11 Sep 2002 08:44:10 -0400 Subject: [mapserver-users] Perl Mapscript issue (was: Tried to send messageto thelist..) Message-ID: <200209111230.g8BCUt809347@yogi.medinaco.net> There is no problem using raster layers. The png error that popped up in the log file indicated that there was a png file used as a layer and that libpng could not successfully read it. Please put this line right after the 'use mapscript;' line in your script: $ENV{MS_ERRORFILE} = "../html/tmp/mapserver.log"; Please change the path '../html/tmp/mapserver.log' to the same as your IMAGEPATH and then run the script. After it chokes 'cat ../html/tmp/mapserver.log' and you should see where/why it stopped. HTH Lowell F. > The following message was sent by "Brian Tomaszewski" on Tue, 10 Sep 2002 21:33:38 -0400. > > > Thank you for the reply Lowel > > > > I modfied the map file and took out RASTER and postGIS references, and now > > the error is just > > > > [Tue Sep 10 21:45:56 2002] [error] [client 192.168.1.1] Premature end of > > script headers: /usr/local/apache/cgi-bin/ms.cgi > > > > Questions: > > > > I am learning PERL as I learn mapscript, so could there be something with my > > PERL installation? > > > > In general, can you not use raster layers with mapscript ? > > > > Any more ideas on things to look for? > > > > Thank you > > > > Brian > > > > -----Original Message----- > > From: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Lowell > > Filak > > Sent: Tuesday, September 10, 2002 5:12 PM > > To: mapserver-users at lists.gis.umn.edu; btski at rochester.rr.com > > Subject: Re: [mapserver-users] Perl Mapscript issue (was: Tried to send > > messageto thelist..) > > > > > > Do you have RASTER layers in your mapfile? If you comment that layer(s) out > > does the cgi work? > > Lowell F. > > > > > > > I tried to send a message to the MS list, but it didn't seem to go > > through.. > > > However, nothing was sent back to me (wrong email). > > > > > > Here is my message: > > > > > > ********************************************************************* > > > > > > Hi List > > > > > > I am trying to run a very basic mapscript cgi. Here is the code: > > > > > > #!/usr/local/bin/perl > > > > > > use mapscript; > > > > > > my $map = new mapObj('/usr/local/apache/htdocs/liv_ms/liv.map') or > > > die('Unable to open mapfile'); > > > my $image = $map->draw() or die('Unable to draw map'); > > > > > > > > > When I try to run, I get a 500 Internal server error in my browser and > > the > > > following is in the apache error log: > > > > > > [Mon Sep 9 21:25:25 2002] [error] [client 192.168.1.1] Premature end of > > > script headers: /usr/local/apache/cgi-bin/ms.cgi > > > libpng warning: Incomplete compressed datastream in iCCP chunk > > > > > > I have already checked: > > > > > > -perl is in /usr/local/bin/ > > > -there is a map file at the location > > > > > > Any help or ideas would be appreciated > > > > > > Thank you in advance > > > > > > Brian Tomaszewski From rholloway_1999 at yahoo.com Wed Sep 11 08:34:15 2002 From: rholloway_1999 at yahoo.com (Rob Holloway) Date: Wed, 11 Sep 2002 08:34:15 -0700 (PDT) Subject: [mapserver-users] scale dependent layers Message-ID: <20020911153415.65038.qmail@web12507.mail.yahoo.com> Hi Does anyone know how to keep scale dependent layers (i.e layers with a maxscale set) from displaying on the template/html form until the specified scale has been reached? For example, in my application a buildings layer has a maxscale factor of 100 000 but it still shows up in the list of layers that can be displayed at full extent. This would probably be confusing to users trying to select that layer at large scale. Any suggestions? Cheers Rob __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute From nospam at cnrit.tamu.edu Wed Sep 11 08:45:48 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Wed, 11 Sep 2002 10:45:48 -0500 Subject: [mapserver-users] How to keep map from zooming/panning when I refresh? References: Message-ID: <3D7F652C.7040900@cnrit.tamu.edu> Thanks! I ended up trying the same exact thing this morning, before I even read this email...I guess I finally saw the light...and it's working now! My javascript function looks almost identical to yours, thanks for the help! Matthew Hatcher wrote: > Here is the Javascript function that I use. I think the problem is > that the values for your map click location are kept from the last pan > or zoom, so that when the map refreshes it thinks you have clicked > off-centre. (this is just my laymans interpretation of it, so don't > flame me if that's wrong!) > > Anyway, this little script works for me: > > // update the map without panning or zooming > function updateMap() { > document.mapserv.mode.value = "browse"; > document.mapserv.target = "_self"; > document.mapserv.zoomdir.value = "0"; > document.mapserv.imgext.value = "[minx] [miny] [maxx] > [maxy]"; > document.mapserv.imgxy.value = "299.5 215.5"; > document.mapserv.submit(); > } > > I have attached this function to all the checkboxes I use to turn > layers on/off, so when the user clicks on one it automatically > updates, and seems to work nicely without panning or zooming. > > You'll need to change the values in imgxy to reflect your half-image > width/height, and also may need to change the document.mapserv if > you've called your settings form something different. > > Good luck! > Matt. > > -----Original Message----- > From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] > Sent: 06 September 2002 14:53 > To: Martin, Daniel > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] How to keep map from zooming/panning when > I refresh? > > > Thanks for this. This sorta worked...it kept my image from zooming in, > but then it panned to the right for some reason?! I'm not sure what's > up with that, but the other problem is that I've got to keep the > "zoomdir" variable set because I keep the state of my "Zoom In", "Zoom > Out", and "Pan" buttons based on the value of this variable, so setting > it to null resets all my buttons. Regardless of my implementation, > though, I even had this problem with the Itasca Demo... I'm just > wondering if anybody else figured out a way to alter the image without > the Mapserver CGI program reading and executing your zoomdir variable. > > Thanks for the help, though...anybody else have any ideas? > > MIke > > Martin, Daniel wrote: > > >Whoops, I messed up the JavaScript. This is a correction, note > ".value" is > >added: > > > >function UpdateMap() { > > document.forms.mapserv.zoomdir.value = ""; > > document.mapserv.submit(); > >} > > > > > >-----Original Message----- > >From: Martin, Daniel > >Sent: Thursday, September 05, 2002 11:47 AM > >To: 'Mike Smith'; mapserver-users at lists.gis.umn.edu > >Subject: RE: [mapserver-users] How to keep map from zooming/panning when > >I refresh? > > > > > >I think this will work: > > > >function UpdateMap() { > > document.forms.mapserv.zoomdir = ""; > > document.mapserv.submit(); > >} > > > >Or perhaps I'm missing something. I do exactly what you say in my > client, > >but I use Rosa to control zooming and panning, so it is a bit different. > > > >-Dan > > > >-----Original Message----- > >From: Mike Smith [ mailto:nospam at cnrit.tamu.edu ] > >Sent: Thursday, September 05, 2002 10:01 AM > >To: mapserver-users at lists.gis.umn.edu > >Subject: [mapserver-users] How to keep map from zooming/panning when I > >refresh? > > > > > >Hello, > > > > I've got my page working pretty well now thanks to lots of > >Javascript code I borrowed from this mailing list, but I've still got > >one problem that I can't seem to find a solution for in the archives. > > I've got my page set up so that the various layers that are available > >to view are in a list on the right-hand side of the page with checkboxes > >next to them. And since I wanted the behavior of the page to imitate > >ArcView as much as possible (because most of my users are used to that > >interface) I put in a little javascript function that automatically > >reloads the page whenever they check or uncheck a layer (without having > >to click a "refresh" button). My problem is that the layer loads or > >unloads fine, but my image also pans or zooms at the same time depending > >on what function they have checked. How can I make my page reload > >without changing the current view at all? Even if they have the "Zoom > >In" button clicked and the zoomsize is set to "2" I don't want the page > >to zoom in when they just add a new layer. Is there a value that I can > >set "zoomdir" to besides 1, 0, or -1 that basically disables panning and > >zooming altogether? > > > >Thanks in advance, > > > >Mike Smith > > > >P.S. - Here's my javascript code that automatically loads/unloads layers: > > > >function UpdateMap() { > > document.mapserv.submit(); //Note that my form name is "mapserv" > >} > > > >Then I add this to my checkbox tag: > > > >onClick="UpdateMap();" > > > > > > > > ********************************************************************** > The information contained in this email and any subsequent > correspondence is private and is intended solely for the > intended recipient(s). For those other than the intended > recipient(s) any disclosure, copying, distribution, or any > action taken or omitted to be taken in reliance on such > information is prohibited and may be unlawful. > ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Wed Sep 11 09:04:00 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 11 Sep 2002 11:04:00 -0500 Subject: [mapserver-users] scale dependent layers Message-ID: If I read you right your interested in the layer controls as opposed to the legend (which already respects scale). Well, there's no super easy way to do that. You could use javscript to check the map scale (using [scale]) against the layer scale and based on that write the control. That would work but would require you to have the layer scale information in 2 places (in the template and in the mapfile). You could of course store the layer scales only in the HTML file and pass them to the mapserver (i.e. map_layername_maxscale, map_layername_minscale). I think ideally you'd rather gain access to the values as stored in the mapfile. There's some real value in that so I would propose adding substitutions like [layername_maxscale/minscale] and then you could use those in combination with [scale] and javascript. Thoughts folks? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Rob Holloway 09/11/02 10:34AM >>> Hi Does anyone know how to keep scale dependent layers (i.e layers with a maxscale set) from displaying on the template/html form until the specified scale has been reached? For example, in my application a buildings layer has a maxscale factor of 100 000 but it still shows up in the list of layers that can be displayed at full extent. This would probably be confusing to users trying to select that layer at large scale. Any suggestions? Cheers Rob __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute From Chip.Hankley at GASAI.Com Wed Sep 11 09:29:44 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 11 Sep 2002 11:29:44 -0500 Subject: [mapserver-users] scale dependent layers Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD94@postoffice.GASAI.Com> Rob... What about using JavaScript and DHTML to hide / show a DIV element? Basically, you could capture scale as a JS variable: and put your legend entries in separate DIVs:
Roads Layer
If you play around, you can probably figure out a way to do that...You could also (conceivably) generate your legend / layer list using JS to write out the HTML dynamically. The downside to this, of course, is that the JS / DOM implementation across browsers is very inconsistent (MHO). FWIW, this is what makes MapScript nice. Since you are dynamically generating content, you can simply choose not to write out that part of your legend / layer list: if (scale > layer_max_scale) { don't put this line in } else { make an entry } chip -----Original Message----- From: Rob Holloway [mailto:rholloway_1999 at yahoo.com] Sent: Wednesday, September 11, 2002 10:34 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] scale dependent layers Hi Does anyone know how to keep scale dependent layers (i.e layers with a maxscale set) from displaying on the template/html form until the specified scale has been reached? For example, in my application a buildings layer has a maxscale factor of 100 000 but it still shows up in the list of layers that can be displayed at full extent. This would probably be confusing to users trying to select that layer at large scale. Any suggestions? Cheers Rob __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Wed Sep 11 09:39:27 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Wed, 11 Sep 2002 12:39:27 -0400 Subject: [mapserver-users] scale dependent layers Message-ID: <7CDD7B94357FD5119E800002A537C46E230301@s5-ccr-r1.ccrs.nrcan.gc.ca> Rob, Well one idea comes to mind, and that would be to write some javascript in your template that looks at the status of the layers and then generates some output based on that condition. This should be easily achieved by using the [layer_check] template tag. So you could write something like if ( 'checked' == '[mylayername_check]' ) { ... } ... [mylayername_check] will say 'checked' if the layer is on, and otherwise nothing. In the curly braces, maybe you could use some document.writes or something ... Just an idea, I've never done this myself :) Hope this helps, J.F. -----Original Message----- From: Rob Holloway [mailto:rholloway_1999 at yahoo.com] Sent: Wednesday, September 11, 2002 11:34 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] scale dependent layers Hi Does anyone know how to keep scale dependent layers (i.e layers with a maxscale set) from displaying on the template/html form until the specified scale has been reached? For example, in my application a buildings layer has a maxscale factor of 100 000 but it still shows up in the list of layers that can be displayed at full extent. This would probably be confusing to users trying to select that layer at large scale. Any suggestions? Cheers Rob __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute From adams at terrestris.de Wed Sep 11 10:07:32 2002 From: adams at terrestris.de (Till Adams) Date: Wed, 11 Sep 2002 19:07:32 +0200 Subject: [mapserver-users] Query Message-ID: <3D7F7854.5060509@terrestris.de> Dear list, thanks to Lowell, Tyler and Puneet, who replied to my last question. Now I got a new one: I'm creating a world-map with ms and several layers. The problem is: Querying the map gives bad results. E.g. Canada is bigger than the whole of northamerica (due to my query, because when I query the US I get results from Canada), if I query any state in africa I get sometimes no results, sometimes results from scandinavia. My mapextent is -180 -112.5 180 112.5 and my imageextent is set to mapextent (the same in itasca demo). When I query e.g. Canada - I get the following results SEARCH WINDOW: -180.450000 -112.050000 179.550000 112.950000 QUERY POINT: (174, 212) image coordinates or (-0.450000, 0.450000) map coordinates QUERY METRICS: number of layers with results=1, total number of results=1 and so on. I can't understand why map coordinates are -0.45 and 0.45 -- when I zoom in I get something like that: SEARCH WINDOW: -142.650000 -16.200000 37.350000 96.300000 QUERY POINT: (187, 232) image coordinates or (-100.575000, 44.100000) map coordinates QUERY METRICS: number of layers with results=1, total number of results=1 But the results won't get better. I think it has something to do with the imgext, imgxy, mapext or mapxy. I tested the data in ArcView, there the queries are OK. any ideas? Thanks in advance!! Cheers, Till :-) -- -- -- terrestris jetzt online! www.terrestris.de -- -- -- ----- Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Meckenheimer Allee 166 * 53115 Bonn Tel.: 0228 73 9647 * Fax.: 0228 73 6538 info at terrestris.de * www.terrestris.de From Chip.Hankley at GASAI.Com Wed Sep 11 10:52:38 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 11 Sep 2002 12:52:38 -0500 Subject: [mapserver-users] HTML Legend, Raster Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD96@postoffice.GASAI.Com> Why don't raster datasets show up when using HTML legends? Is there a way to make that happen? I understand that creating an icon for a raster dataset may not be practical, but I'm trying to use this feature to create my layer controls. TIA! Chip Hankley From john.bennett at noetix.on.ca Wed Sep 11 11:15:42 2002 From: john.bennett at noetix.on.ca (John Bennett) Date: Wed, 11 Sep 2002 14:15:42 -0400 Subject: [mapserver-users] FW: Get demo started on Windows 2000. Message-ID: Thanks for the many replies to my question below. I still have the same problem even after I make sure the "\" are "/" and all the permissions are set correctly for the 'tmp' directory and trying Is there another way of checking that the basic functionality of mapserv.exe is working correctly or can anyone think of anything else that I may have over looked. BTW: In IE when I click "Initialize" and the new "MapServer Demo Interface " web page pops up, the properties of the "x" images appear correct(http://dell810/tmp/DEMOleg10317674441924.gif) but nothing is being written to the tmp directory. I'm using windows 2000, IIS, MapServer3.6.1 Thanks John -----Original Message----- From: John Bennett [mailto:john.bennett at noetix.on.ca] Sent: Monday, September 09, 2002 4:56 PM To: mapserver-users at lists.gis.umn.edu Subject: Get demo started on Windows 2000. I've got the demo "itasca" to work on my windows NT, but I really want it to work on my windows 2000. I've installed everything in the correct places as described in 'readme.gif.wms.html' when installing the binary (pre-compiled) MApserver version 3.6.1. I changed my demo.map file and demo_init.html file to work with my windows IIS. When I load demo_init.html in IE and click 'Initialize' the MapServer Demo Interface pops up, but no images are show. There are no Images that are created in the "tmp" directory. It worked on my Windows nt, same setup. THe following is my demo_init.html file: 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 help would be much appreciated. Thanks John From tesimap at hotmail.com Wed Sep 11 11:52:12 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Wed, 11 Sep 2002 20:52:12 +0200 Subject: [mapserver-users] Problem with Rosa (recenter) Message-ID: Hi, I have a problem with Rosa applet: the RECENTER don't work properly. When I do a "recenter" it doesn't draw the map to the centre but it's all moved in lower. This is my browser string: http://127.0.0.1/assist/assist.phtml?confine=Y&assist=Y&minx=34516.634400&miny=50299.884060&maxx=67395.339020&maxy=78542.306139&imagewidth=400&imageheight=400&CMD=RECENTER&INPUT_TYPE=auto_point&INPUT_COORD=136%2C174&KEYMAPXSIZE=150&KEYMAPYSIZE=131&MapSize=400%2C400&PREVIOUS_MODE=0 It's a problem of map extension or other? Thanks in advance. Ivan _________________________________________________________________ Specisci e ricevi le tue email Hotmail dal tuo cellulare con: http://mobile.msn.it From Chip.Hankley at GASAI.Com Wed Sep 11 12:02:58 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 11 Sep 2002 14:02:58 -0500 Subject: [mapserver-users] FW: Get demo started on Windows 2000. Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD97@postoffice.GASAI.Com> John... If nothing is being written to tmp, then you need to check several things. 1) the default dir for scripts in IIS is /scripts not /cgi-bin. Did you create a virtual directory called /cgi-bin? Is that where the mapserv.exe file is? Did you give the default web user IUSR_ execute permission for that directory both through the IIS manager AND windows? 2) Does IUSR have write access to /tmp? Again, this needs to be done BOTH in the IIS manager and in windows. You can easily check you things are going simply by typing in the path to your mapfile from a URL: http://localhost/cgi-bin/mapserv.exe?c:\path-to-your-mapfile.map Chip -----Original Message----- From: John Bennett [mailto:john.bennett at noetix.on.ca] Sent: Wednesday, September 11, 2002 1:16 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] FW: Get demo started on Windows 2000. Thanks for the many replies to my question below. I still have the same problem even after I make sure the "\" are "/" and all the permissions are set correctly for the 'tmp' directory and trying Is there another way of checking that the basic functionality of mapserv.exe is working correctly or can anyone think of anything else that I may have over looked. BTW: In IE when I click "Initialize" and the new "MapServer Demo Interface " web page pops up, the properties of the "x" images appear correct(http://dell810/tmp/DEMOleg10317674441924.gif) but nothing is being written to the tmp directory. I'm using windows 2000, IIS, MapServer3.6.1 Thanks John -----Original Message----- From: John Bennett [mailto:john.bennett at noetix.on.ca] Sent: Monday, September 09, 2002 4:56 PM To: mapserver-users at lists.gis.umn.edu Subject: Get demo started on Windows 2000. I've got the demo "itasca" to work on my windows NT, but I really want it to work on my windows 2000. I've installed everything in the correct places as described in 'readme.gif.wms.html' when installing the binary (pre-compiled) MApserver version 3.6.1. I changed my demo.map file and demo_init.html file to work with my windows IIS. When I load demo_init.html in IE and click 'Initialize' the MapServer Demo Interface pops up, but no images are show. There are no Images that are created in the "tmp" directory. It worked on my Windows nt, same setup. THe following is my demo_init.html file: 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 help would be much appreciated. Thanks John From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Wed Sep 11 12:15:26 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Wed, 11 Sep 2002 15:15:26 -0400 Subject: [mapserver-users] XUL Interface for mapserver app? Message-ID: <7CDD7B94357FD5119E800002A537C46E230304@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I was just curious, has anyone ever looked at implementing a mapserver application that uses XUL (http://www.xulplanet.com/) as it's interface? Admitedly this would be (for now) specific to netscape 6.x+ and Mozilla, but this might also be handy for wireless applications on devices that use linux and mozilla at their core. You could create incredibly cool looking and highly functional interfaces using full cross-platform and open standards, and put them right in the browser! I just may play with this when I have some free time ... (In my next life) 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 Wed Sep 11 12:20:58 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 11 Sep 2002 15:20:58 -0400 Subject: [mapserver-users] scale dependent layers In-Reply-To: Message-ID: <3D7F5F5A.19710.2D96B4A8@localhost> This is very similar to what I was trying to do in maplab recently using the html_legend stuff. The problem I ran into was that I could hide the controls of layers that were not being displayed, but as I zoomed in, maplab (PHP/mapscript) could not differentiate the difference between the fact that the control was hidden or that the user had turned it off. I thing if we/you are planning a change in this area, it would be nice to coordinate it with the maplab team, because we need to be able to track the following: 1) user layer status (on/off) -- tracked in mapscript application 2) mapfile layer status (on/off) -- status as coded in mapfile 3) layer is viewable status if it was on (on/off) -- status relative to zoom state Steve does this make sense? maplab team does this make sense? -Steve W. On 11 Sep 2002 at 11:04, Steve Lime wrote: > If I read you right your interested in the layer controls as opposed > to the legend (which already respects scale). Well, there's no super > easy way to do that. You could use javscript to check the map scale > (using [scale]) against the layer scale and based on that write the > control. That would work but would require you to have the layer scale > information in 2 places (in the template and in the mapfile). You > could of course store the layer scales only in the HTML file and pass > them to the mapserver (i.e. map_layername_maxscale, > map_layername_minscale). I think ideally you'd rather gain access to > the values as stored in the mapfile. There's some real value in that > so I would propose adding substitutions like > [layername_maxscale/minscale] and then you could use those in > combination with [scale] and javascript. Thoughts folks? > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Rob Holloway 09/11/02 10:34AM >>> > Hi > > Does anyone know how to keep scale dependent layers > (i.e layers with a maxscale set) from displaying on > the template/html form until the specified scale has > been reached? For example, in my application a > buildings layer has a maxscale factor of 100 000 but > it still shows up in the list of layers that can be > displayed at full extent. This would probably be > confusing to users trying to select that layer at > large scale. Any suggestions? > > Cheers > > Rob > > __________________________________________________ > Yahoo! - We Remember > 9-11: A tribute to the more than 3,000 lives lost > http://dir.remember.yahoo.com/tribute > From Chip.Hankley at GASAI.Com Wed Sep 11 13:46:30 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 11 Sep 2002 15:46:30 -0500 Subject: [mapserver-users] TIP: Dynamic Legend (I did it!) Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD98@postoffice.GASAI.Com> OK... I figured out how to do this... and put the code in the Wiki at the following location: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPDynLegend (There is a link under the Examples section of PHP MapScript) Basically what it does is reads a mapfile, and creates a legend / layer control on the fly. Furthermore, it sets up the controls so that state is maintained with only a couple of lines of code... and any changes to the mapfile (i.e. additional layers, changes to layers) are automatically reflected in the application (i.e. there's no need to make changes to the PHP part of the application). Hope this is useful to someone! Chip Hankley From wendyandtony at lineone.net Wed Sep 11 15:25:30 2002 From: wendyandtony at lineone.net (wendyandtony) Date: Wed, 11 Sep 2002 23:25:30 +0100 Subject: [mapserver-users] Back to basics... Message-ID: <004d01c259e2$24486380$ec86403e@oemcomputer> Hi I'm doing a small personal project where I'd like to search an Oracle database via a website using Perl/cgi (not too difficult), but then display the query as points on a (simple) map. The data base is of historic/prehistoric sites so all I need to map are points. I'm (gratefully) using an evaluation version of MapInfo Pro 7 and have access to university servers etc. It seems that MapServer is suited to this, but my query here is ..er.. how do I get started? Kind regards Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: From spencer at dmsolutions.ca Wed Sep 11 15:51:31 2002 From: spencer at dmsolutions.ca (Paul Spencer) Date: Wed, 11 Sep 2002 18:51:31 -0400 Subject: [mapserver-users] TIP: Dynamic Legend (I did it!) References: <3DFF131E4E6D2D4198CDD758F35A5353010ABD98@postoffice.GASAI.Com> Message-ID: <3D7FC8F3.6080308@dmsolutions.ca> Chip, have you thought about what happens when layers turn on and off due to scales of visibility? A pretty common problem we are seeing is that people set certain layers to appear as the user zooms in, but if the layer doesn't appear in the $_POST data then it is turned off. I don't think that the code you wrote handles this case. If you come up with an easy solution to this, please let me know and I'll put it in the next release of MapLab :) Cheers, Paul Hankley, Chip wrote: > OK... I figured out how to do this... and put the code in the Wiki at the > following location: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPDynLegend > > (There is a link under the Examples section of PHP MapScript) > > Basically what it does is reads a mapfile, and creates a legend / layer > control on the fly. Furthermore, it sets up the controls so that state is > maintained with only a couple of lines of code... and any changes to the > mapfile (i.e. additional layers, changes to layers) are automatically > reflected in the application (i.e. there's no need to make changes to the > PHP part of the application). > > Hope this is useful to someone! > > Chip Hankley > -- Paul Spencer Applications and Software Development DM Solutions Group From woodbri at swoodbridge.com Wed Sep 11 16:13:23 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 11 Sep 2002 19:13:23 -0400 Subject: [mapserver-users] Back to basics... In-Reply-To: <004d01c259e2$24486380$ec86403e@oemcomputer> Message-ID: <3D7F95D3.27271.2E6B7B99@localhost> Tony, search the list archives for "Dynamic point labeling" (sic) which should turn up some previous discussion on just this topic. It includes an example in Perl, but it should be easy to translate the concept into PHP if you prefer. So to get started, you should take the mapserver demo, or check out maplab (search the archives) to build a base map with the country outlines and whatever else you want, the query the database to get you points based on where or not their lat/long falls between the extents of the map and draw them on the map using the above article I mentioned. Hope this helps, -Steve On 11 Sep 2002 at 23:25, wendyandtony wrote: > > Hi > > I'm doing a small personal project where I'd like to search an Oracle > database via a website using Perl/cgi (not too difficult), but then > display the query as points on a (simple) map. The data base is of > historic/prehistoric sites so all I need to map are points. I'm > (gratefully) using an evaluation version of MapInfo Pro 7 and have > access to university servers etc. It seems that MapServer is suited to > this, but my query here is ..er.. how do I get started? > > Kind regards > > Tony From TCHaddad at cshore.com Wed Sep 11 17:34:13 2002 From: TCHaddad at cshore.com (TCHaddad) Date: Wed, 11 Sep 2002 20:34:13 -0400 Subject: [mapserver-users] Cutting up large Rasters Message-ID: <200209112034.AA117047552@cshore.com> Is there a utility that will help me cut up a very large georeferenced image into many smaller ones (using a shapefile I presume) so that I can then create tile index and avoid opening the giant image everytime ? TH From woodbri at swoodbridge.com Wed Sep 11 17:56:24 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 11 Sep 2002 20:56:24 -0400 Subject: [mapserver-users] Cutting up large Rasters In-Reply-To: <200209112034.AA117047552@cshore.com> Message-ID: <3D7FADF8.9549.2EC9CEDC@localhost> If it is an image file (as opposed to a shapefile which is likely vector data), then you might use a perl script and image magik(sp) to extract tiles and create new world files for the tiles. -Steve On 11 Sep 2002 at 20:34, TCHaddad wrote: > > > Is there a utility that will help me cut up a very large georeferenced > image into many smaller ones (using a shapefile I presume) so that I > can then create tile index and avoid opening the giant image everytime > ? > > TH > From ed at topozone.com Wed Sep 11 18:29:00 2002 From: ed at topozone.com (Ed McNierney) Date: Wed, 11 Sep 2002 21:29:00 -0400 Subject: [mapserver-users] Cutting up large Rasters Message-ID: <13858AA1A74F30419F319ACB66A9D1220E8640@mercator.topozone.com> Steve's right about chopping things up, but you should be sure you really need to do that. Can you describe the image (file format, size in pixels in each dimension, pixel depth)? Remember that "opening" an image is not the same as loading the whole thing into memory... - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: TCHaddad [mailto:TCHaddad at cshore.com] Sent: Wednesday, September 11, 2002 8:34 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Cutting up large Rasters Is there a utility that will help me cut up a very large georeferenced image into many smaller ones (using a shapefile I presume) so that I can then create tile index and avoid opening the giant image everytime ? TH From Antti.Roppola at brs.gov.au Wed Sep 11 21:44:50 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Thu, 12 Sep 2002 14:44:50 +1000 Subject: [mapserver-users] TIP: Dynamic Legend (I did it!) Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D995418@ACTMAIL2> Hi all, Here's another one: http://mapserver.gis.umn.edu/wilma/mapserver-users/0201/msg00241.html Since then I added interleaved legends by adding something like this the the inside of the main loop: if($checked) { $layer_legend = ms_newMapObject("$my_map"); $img = $layer_legend->prepareImage(); $layer = $layer_legend->getLayer($n); $layer->set("status", 1); $img = $layer_legend->drawLegend(); $url = $img->saveWebImage(MS_PNG, 0, 0, 0); printf("
\n", $url); } Paul wrote: > Chip, have you thought about what happens when layers turn on and off > due to scales of visibility? A pretty common problem we are seeing is > that people set certain layers to appear as the user zooms in, but if That's an easy addition, pass the selected layers as an array and use the state of the array to switch layers on and off, it's pretty easy to add a test to see if the scale is OK, and gray out the layer description. I also check layer name so that I can have a composite layer that is (for example) a set of point and line layers such as roads and towns and have them controlled as a single entity and only appear once in the control. Cheers, Antti -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, 12 September 2002 6:47 AM To: MapServer List (E-mail) Subject: [mapserver-users] TIP: Dynamic Legend (I did it!) OK... I figured out how to do this... and put the code in the Wiki at the following location: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPDynLegend (There is a link under the Examples section of PHP MapScript) Basically what it does is reads a mapfile, and creates a legend / layer control on the fly. Furthermore, it sets up the controls so that state is maintained with only a couple of lines of code... and any changes to the mapfile (i.e. additional layers, changes to layers) are automatically reflected in the application (i.e. there's no need to make changes to the PHP part of the application). Hope this is useful to someone! Chip Hankley From saengpole at excite.com Wed Sep 11 22:02:28 2002 From: saengpole at excite.com (Krung Saengpole) Date: Thu, 12 Sep 2002 01:02:28 -0400 (EDT) Subject: [mapserver-users] Couldn't create perl extension. Message-ID: <20020912050228.D5069109F67@xmxpita.excite.com> Hi all. I had trouble creating mapscript perl extension. When I'd completed compiling mapserver (nightly build with VC++ 6.0 on Windows95), I couldn't run makefile.pl. I checked out 'perlvars' file, but not found so makefile.pl failed. Has anybody got this problem? What I have to specially do? Or could someone send me 'perlvars', I'll manage its context myself. Any advices would be greatly appreciated.Krung. ------------------------------------------------ Changed your e-mail? Keep your contacts! Use this free e-mail change of address service from Return Path. Register now! -------------- next part -------------- An HTML attachment was scrubbed... URL: From erwin at perik.nu Thu Sep 12 03:12:21 2002 From: erwin at perik.nu (E.Perik) Date: Thu, 12 Sep 2002 12:12:21 +0200 Subject: [mapserver-users] Back to basics... In-Reply-To: <004d01c259e2$24486380$ec86403e@oemcomputer> Message-ID: <001101c25a44$e1fbd990$967ba8c0@xp> Hi Tony, Example of creating a layer from a shapefile: Used http://mapserver.gis.umn.edu/wilma/mapserver-users/0110/msg00154.html Then did following: 0) Create map-object 1) Get object/points from existing-shapefile or from in this case, your database 2) Put it in new-shapefile (as you did in your php-script) 3) Create dbf-file with name of new-shapefile 4) Clear new-shapefile 5) Add new-layer to map-object (default of this layer is set to OFF) 6) Show new-layer (turn it ON) 7) Draw the map (now includes newly created shapefile ;-) ) Explanation: *** In 0) you use like: $Map = ms_newMapObj("blabla.map"); *** In 1) you determine input. This could be the 3 points you have in your example, but also could be a shape or lat/lon from a database (eg. dbf/MySQL) *** Option 2) and 3) and 4) you have in your mapscript. This creates a shapefile + corresponding dbf-file. *** Option 5) and 6) is best done using a dummy-layer which is set to OFF in your map-file. You turn it on AND attach the new shapefile-data from by using: $Dummylayer = ms_newLayerObj($Map); // a new layerobject $Dummylayer = $Map->getLayerByName("MapLayer"); $Dummylayer->set("status", 1); // Turn it on $Dummylayer->set("data", $shpFname); // Add your created data While your map-layer looks something like: LAYER NAME "MapLayer" TYPE POINT STATUS OFF CLASS SYMBOL 'circle' COLOR 0 0 0 SIZE 3 END END *** Option 7) is something like: $ImgMap = $Map->draw(); This should do the trick. Erwin -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of wendyandtony Sent: donderdag 12 september 2002 0:26 To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Back to basics... Hi I'm doing a small personal project where I'd like to search an Oracle database via a website using Perl/cgi (not too difficult), but then display the query as points on a (simple) map. The data base is of historic/prehistoric sites so all I need to map are points. I'm (gratefully) using an evaluation version of MapInfo Pro 7 and have access to university servers etc. It seems that MapServer is suited to this, but my query here is ..er.. how do I get started? Kind regards Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhart at frw.uva.nl Thu Sep 12 03:45:57 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 12 Sep 2002 12:45:57 +0200 Subject: [mapserver-users] XUL Interface for mapserver app? References: <7CDD7B94357FD5119E800002A537C46E230304@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <3D807065.9000007@frw.uva.nl> I agree with Jean-Francois: XUL is impressive and could be the future for developing user interfaces for the web. I don't think it will be immediately useful for creating MapServer applications accessible to everyone, but if you have time to spare for research and development, you should certainly have a look. Another point of Jean-Francois is of even more general interest I think: developing according to open standards (www.w3c.org). For myself I use Netscape 7/Mozilla as a reference browser to develop applications, and adapt those where necessary to Internet Explorer 5.5. (I like to use Netscape for its own sake too). IE is for the most part W3C compatible, but Microsoft has added tons of features which can be convenient but don't add functionality. The main real difference is in the Event model, but this is not particularly difficult to overcome by cross browser scripting. So if you develop from IE you will invariable end up with something that cannot be read by other browsers. On the other hand, developing according to W3C standards not only opens up the full potential of modern browsers (including IE if you put some effort into it), but also gives access to browsers like Netscape, Konqueror and Opera. I find this particularly interesting for the growing group of Linux end users. Of course older browsers, like Netscape 4 or IE 4 are out, so if you need to address those also, W3C standards are not for you. A very clear introduction to W3C compliant programming (including IE5) is http://www.brainjar.com. It gives very good, simple examples of resizable windows and menus within a Web browser. It sure would be a cool thing to put MapServer maps into such an interface, and give some flavor of things to come with XUL. Of course, this is just my personal point of view. It would be nice to hear other people's ideas about possible future directions for MapServer client side programming (JavaScript, Java, Flash, ... ?) Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl Jean-Francois.Doyon at ccrs.nrcan.gc.ca wrote: > Hello, > > I was just curious, has anyone ever looked at implementing a mapserver > application that uses XUL (http://www.xulplanet.com/) as it's interface? > > Admitedly this would be (for now) specific to netscape 6.x+ and Mozilla, but > this might also be handy for wireless applications on devices that use linux > and mozilla at their core. > > You could create incredibly cool looking and highly functional interfaces > using full cross-platform and open standards, and put them right in the > browser! > > I just may play with this when I have some free time ... (In my next life) > > 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 Chip.Hankley at GASAI.Com Thu Sep 12 06:55:57 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 12 Sep 2002 08:55:57 -0500 Subject: [mapserver-users] TIP: Dynamic Legend (I did it!) Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD9E@postoffice.GASAI.Com> Rob... >...your code seems alot more efficient than mine Thanks! > All that aside though, did you manage to get some sort > of symbol displaying in your legend for raster data? No. This is a little annoying... especially from the standpoint of trying to use HTML legends (i.e. a legend template). On the one hand, I understand that having an icon for a raster layer is somewhat difficult (i.e... what would you use for an aerial photograph?)... there are still circumstances where you would want SOMETHING (a classified raster, for instance). For the time being I just bagged on it, since my main goal was to create a set of layer controls that also have some legend functionality. >... could be substituted in using IFs and ELSES when the layer > name matches, but that obviously takes away from the mapfile- > driven automation. Your thoughts would be appreciated. Perhaps a combination would work. I think of raster data as being split into two groups: - continuous data / imagery - aerial and satellite photography, scanned base maps - classified data - land cover, elevation data, etc. For 'continuous data'... I'm not sure you NEED an icon. I mean, for BW photography... color doesn't necessarily have any meaning w/ resp to a legend. For classified data... I think you could still use mapscript to loop through the classes on the object and pull out the color object to make an icon. Haven't tried this... but I don't see why it would not work. Thanks Rob -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, 12 September 2002 6:47 AM To: MapServer List (E-mail) Subject: [mapserver-users] TIP: Dynamic Legend (I did it!) OK... I figured out how to do this... and put the code in the Wiki at the following location: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPDynLegend (There is a link under the Examples section of PHP MapScript) Basically what it does is reads a mapfile, and creates a legend / layer control on the fly. Furthermore, it sets up the controls so that state is maintained with only a couple of lines of code... and any changes to the mapfile (i.e. additional layers, changes to layers) are automatically reflected in the application (i.e. there's no need to make changes to the PHP part of the application). Hope this is useful to someone! Chip Hankley ************************************************************************ 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 Chip.Hankley at GASAI.Com Thu Sep 12 06:55:31 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 12 Sep 2002 08:55:31 -0500 Subject: [mapserver-users] TIP: Dynamic Legend (I did it!) Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD9D@postoffice.GASAI.Com> Paul... You're right, it's not in the code I posted... I thought it made the example too complex, but, maybe I should add it in. The way I've handled this in the past was to do a check on SCALE vs MAXSCALE and MINSCALE. If the layer won't be displayed (i.e. SCALE > MAXSCALE OR SCALE < MINSCALE), then I 1) echoed 'disabled' in the checkbox's HTML definition 2) showed that line of the legend in a different color... I prefer gray. This way, the user still sees that it's there... but it just is unavailable. If this doesn't make sense, let me know... and I'll send you some code. Chip Hankley -----Original Message----- From: Paul Spencer [mailto:spencer at dmsolutions.ca] Sent: Wednesday, September 11, 2002 5:52 PM To: Hankley, Chip Cc: MapServer List (E-mail) Subject: Re: [mapserver-users] TIP: Dynamic Legend (I did it!) Chip, have you thought about what happens when layers turn on and off due to scales of visibility? A pretty common problem we are seeing is that people set certain layers to appear as the user zooms in, but if the layer doesn't appear in the $_POST data then it is turned off. I don't think that the code you wrote handles this case. If you come up with an easy solution to this, please let me know and I'll put it in the next release of MapLab :) Cheers, Paul Hankley, Chip wrote: > OK... I figured out how to do this... and put the code in the Wiki at the > following location: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPDynLegend > > (There is a link under the Examples section of PHP MapScript) > > Basically what it does is reads a mapfile, and creates a legend / layer > control on the fly. Furthermore, it sets up the controls so that state is > maintained with only a couple of lines of code... and any changes to the > mapfile (i.e. additional layers, changes to layers) are automatically > reflected in the application (i.e. there's no need to make changes to the > PHP part of the application). > > Hope this is useful to someone! > > Chip Hankley > -- Paul Spencer Applications and Software Development DM Solutions Group From mgiesbrecht at geoarctic.com Thu Sep 12 08:08:01 2002 From: mgiesbrecht at geoarctic.com (Mark Giesbrecht) Date: Thu, 12 Sep 2002 09:08:01 -0600 Subject: [mapserver-users] printsymbol utility...where to find? Message-ID: <3D80ADD1.2EDC9861@geoarctic.com> Hi All, We came across a link a while back, pointing to an mapserver exe called 'printsymbol'. Anybody know what it's replacement is now, or where to find one? Thanks in advance, Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: mgiesbrecht.vcf Type: text/x-vcard Size: 346 bytes Desc: Card for Mark Giesbrecht URL: From bon at ivv-aachen.de Thu Sep 12 08:28:10 2002 From: bon at ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Thu, 12 Sep 2002 17:28:10 +0200 Subject: [mapserver-users] template file links with a "?" in it Message-ID: <000201c25a71$0158b430$1a01a8c0@ivvaachen.de> I want to link different points in my map with different html files. It works fine if I give each html file a name that contains the point ID and use the following template file link for the point query: TEMPLATE "http://[host]/mapserv3.6_rrp_appl_NRW/[ID].html" :-) But what I really want to do is linking an active server pages file with each point. The asp file gets the point ID and creates the specific html file for the point by requesting information from an SQL database. I replaced the template file link above by the following link but got the error message "Malformed template name". TEMPLATE "http://[host]/Sehenswuerdigkeiten.asp?dbspalte=[ID]" :-( It seams as if it is not possible to have template file links with a "?" in it. Is there another way to tell the asp file the ID of the selected point? Thanks Nicole ============================= Nicole B?meke bon at ivv-aachen.de IVV-Aachen, Germany From branko.kmetec at mb.birostroj-co.si Thu Sep 12 08:43:22 2002 From: branko.kmetec at mb.birostroj-co.si (Branko Kmetec) Date: Thu, 12 Sep 2002 17:43:22 +0200 Subject: [mapserver-users] Two rasters covering each other at the same scale Message-ID: <001501c25a73$200f7ce0$e701a8c0@odin> Has someone idea, why do i get strange picture like on link: http://mail.mb.birostroj-co.si/map.png. I get it only when two rasters are covering at the same scale. Here's also my map file: MAP EXTENT 369144 11687 630856 208313 IMAGECOLOR 255 255 255 IMAGEQUALITY 75 IMAGETYPE PNG INTERLACE TRUE SHAPEPATH "./data/" SIZE 400 300 STATUS ON TRANSPARENT FALSE UNITS KILOMETERS NAME "DARS d.d." LEGEND IMAGECOLOR 255 255 255 INTERLACE TRUE KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 255 255 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL STATUS OFF TRANSPARENT FALSE END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END REFERENCE COLOR -1 -1 -1 EXTENT 369144 11687 630856 208313 IMAGE "./images/slovenija.png" OUTLINECOLOR 255 0 0 SIZE 100 75 STATUS ON MARKER 0 MARKERSIZE 0 MINBOXSIZE 3 MAXBOXSIZE 0 END SCALEBAR BACKGROUNDCOLOR 1104913136 72 16057808 COLOR 255 255 0 IMAGECOLOR 255 255 255 INTERLACE TRUE INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 255 255 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 TRANSPARENT FALSE UNITS MILES END WEB IMAGEPATH "/usr/local/www/htdocs/dars_web/tmp/ac/" IMAGEURL "/tmp/ac/" MAXSCALE 1e+008 MINSCALE 5.0e+007 END LAYER DATA "ac-mala.png" MINSCALE 5.5e+008 NAME "AC mala" SIZEUNITS PIXELS STATUS ON TOLERANCE 3 TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS CLASS NAME "AC mala" MAXSIZE 100 MINSIZE 1 SIZE 1 SYMBOL 0 END END LAYER DATA "ac.png" MAXSCALE 5.5e+008 MINSCALE 1.0e+007 NAME "AC" SIZEUNITS PIXELS STATUS ON TOLERANCE 3 TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS CLASS NAME "AC" MAXSIZE 100 MINSIZE 1 SIZE 1 SYMBOL 0 END END LAYER DATA "obroc.png" MAXSCALE 2.0e+008 MINSCALE 1.0e+007 NAME "obroc" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 3 TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS CLASS NAME "Obroc" MAXSIZE 100 MINSIZE 1 SIZE 1 SYMBOL 0 BACKGROUNDCOLOR 0 0 0 END END END Regards, Brane From sctweedy at NRCan.gc.ca Thu Sep 12 08:47:41 2002 From: sctweedy at NRCan.gc.ca (Tweedy, Scott) Date: Thu, 12 Sep 2002 11:47:41 -0400 Subject: [mapserver-users] MapServer and WMS question Message-ID: <5ACEEE96F4F9D41190790002A528B51E0274083A@s0-ott-x11.nrn.nrcan.gc.ca> I have a question about using MapServer. I have a polygon layer that was created as a MIF file and converted to a SHP file using FME. When this process was done FME created a layer of the type PolygonM (representation of a set of parts (rings). Each part (ring) is a set of points connected by segments that close back to the first point.). Using MapLab and MapServer directly on the Internet I've never had a problem displaying this layer. I've been experimenting with creating a WMS server. When I use the GetMap request on that layer as part of the command: http:///cgi-bin/mapserv.exe?map=wms.map&VERSION=1.1.0&SERVICE=wms& REQUEST=GetMap I get an error saying that only a polygon layer can be created with a polygon request. If I go back to ArcView and convert the PolygonM to a simple Polygon the request works fine. Does anyone know anything about support for PolygonM in OGC? I don't really want to go back and reconvert all the files. Thanks in advance, st From tesimap at hotmail.com Thu Sep 12 10:18:35 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Thu, 12 Sep 2002 19:18:35 +0200 Subject: [mapserver-users] Mapserver compile error Message-ID: Hi, I want to compile MS 3.5 on Win XP, but I have this error message: Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cd gd NMAKE : fatal error U1077: 'cd' : return code '0x1' Stop. ------ In makefile.vc I have changed gd:: cd gd-1.2 nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)" cd .. in gd: cd gd nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)" cd .. but I have the same problem. Where is the error? I have just compiled correctly gd,freetype,proj,ecc. and I have changed the path, in makefile, of these package. I use gd-1.8.4 and this is in c:\projects\gd Regards Ivan _________________________________________________________________ Chiacchiera con gli amici online, prova MSN Messenger: http://messenger.msn.it From assefa at dmsolutions.ca Thu Sep 12 11:05:59 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 12 Sep 2002 14:05:59 -0400 Subject: [mapserver-users] Mapserver compile error References: Message-ID: <3D80D787.9DF20BAB@dmsolutions.ca> You actually do not need to compile gd from mapserver. It was done for earlier versions of mapserver. I have removed the gd target from the makefile.vc in the CVS version. If your are not compiling from the CVS version, just remove the whole gd target code as well as the MAKE_GD statement. (all you will need is to link it with the GD library that you have compiled. Make sur that the flags GD_INC and GD_LIB are set properly in the makefile) Later, Ivan Paoluzzi wrote: > Hi, > I want to compile MS 3.5 on Win XP, but I have this error message: > > Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 > Copyright (C) Microsoft Corp 1988-1998. All rights reserved. > > cd gd > NMAKE : fatal error U1077: 'cd' : return code '0x1' > Stop. > > ------ > > In makefile.vc I have changed > gd:: > cd gd-1.2 > nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)" > cd .. > > in > gd: > cd gd > nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)" > cd .. > > but I have the same problem. > Where is the error? > I have just compiled correctly gd,freetype,proj,ecc. and I have changed the > path, in makefile, of these package. > I use gd-1.8.4 and this is in c:\projects\gd > > Regards > Ivan > > _________________________________________________________________ > Chiacchiera con gli amici online, prova MSN Messenger: > http://messenger.msn.it -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Chip.Hankley at GASAI.Com Thu Sep 12 11:33:35 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 12 Sep 2002 13:33:35 -0500 Subject: [mapserver-users] TIP: Dynamic Legend (I did it!) Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDA6@postoffice.GASAI.Com> Based on Antti's and Paul's comments, I made some changes to the script. 1) Script writes out legend content to a static file. It checks the date of the mapfile and the static file. If the mapfile is newer, it replaces the static file. Otherwise, the static file is just included(); 2) Script responds appropriately to layers that are outside of the MAXSCALE or MINSCALE bounds by: a) disabling the control b) turning the layer description 'gray' rather than black. Chip Hankley -----Original Message----- From: Paul Spencer [mailto:spencer at dmsolutions.ca] Sent: Wednesday, September 11, 2002 5:52 PM To: Hankley, Chip Cc: MapServer List (E-mail) Subject: Re: [mapserver-users] TIP: Dynamic Legend (I did it!) Chip, have you thought about what happens when layers turn on and off due to scales of visibility? A pretty common problem we are seeing is that people set certain layers to appear as the user zooms in, but if the layer doesn't appear in the $_POST data then it is turned off. I don't think that the code you wrote handles this case. If you come up with an easy solution to this, please let me know and I'll put it in the next release of MapLab :) Cheers, Paul Hankley, Chip wrote: > OK... I figured out how to do this... and put the code in the Wiki at the > following location: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPDynLegend > > (There is a link under the Examples section of PHP MapScript) > > Basically what it does is reads a mapfile, and creates a legend / layer > control on the fly. Furthermore, it sets up the controls so that state is > maintained with only a couple of lines of code... and any changes to the > mapfile (i.e. additional layers, changes to layers) are automatically > reflected in the application (i.e. there's no need to make changes to the > PHP part of the application). > > Hope this is useful to someone! > > Chip Hankley > -- Paul Spencer Applications and Software Development DM Solutions Group From pagurekd at agr.gc.ca Thu Sep 12 13:15:14 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Thu, 12 Sep 2002 16:15:14 -0400 Subject: [mapserver-users] Rosa with Mapserver 3.5 vs 3.6 Message-ID: Hi everyone, I'm having a WEIRD problem with Rosa. I have everything working perfectly on one server that is running Mapserver 3.6. When I take the exact same mapfile and html templates and move them to a machine running Mapserver 3.5, the Rosa zoom in and pan no longer work at all... it keeps zooming in to a box that is probably centred on the centre of the map, not to the extents that I drag with the box or not centred on a point that I click. I can't figure this one out - any ideas anyone? Does Rosa behave differently with different versions of Mapserver? Any hints on which variables to look at? Thanks, D. Pagurek From Chip.Hankley at GASAI.Com Thu Sep 12 13:50:21 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 12 Sep 2002 15:50:21 -0500 Subject: [mapserver-users] TIP: Dynamic Legend (I did it!) Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDAA@postoffice.GASAI.Com> ...uh...just in case any of you RUSHED to see this... I made a fairly significant logic error. It's been fixed. Sorry. -chip -----Original Message----- From: Hankley, Chip Sent: Thursday, September 12, 2002 1:34 PM To: 'spencer at dmsolutions.ca'; 'Antti.Roppola at brs.gov.au' Cc: MapServer List (E-mail) Subject: RE: [mapserver-users] TIP: Dynamic Legend (I did it!) Based on Antti's and Paul's comments, I made some changes to the script. 1) Script writes out legend content to a static file. It checks the date of the mapfile and the static file. If the mapfile is newer, it replaces the static file. Otherwise, the static file is just included(); 2) Script responds appropriately to layers that are outside of the MAXSCALE or MINSCALE bounds by: a) disabling the control b) turning the layer description 'gray' rather than black. Chip Hankley From DMartin at erac.com Thu Sep 12 14:18:32 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 12 Sep 2002 16:18:32 -0500 Subject: [mapserver-users] OGR - MapInfo 7.0 Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F307@STL-EXBE-I03.corp.erac.com> I originally sent this message to the GDAL mailing list, but I got no response. So, I thought I would try here. I've been using MapServer with MapInfo data through OGR support for MapInfo TAB format since it was available. I recently upgraded to MapInfo 7.0. It appears though that any data produced with 7.0 doesn't work in MapServer. Can someone confirm: Is MapInfo 7.0 producing a new format? If so, is that format not currently supported by OGR? Is there any timeline on support? Thanks, Dan Martin From assefa at dmsolutions.ca Thu Sep 12 14:40:15 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 12 Sep 2002 17:40:15 -0400 Subject: [mapserver-users] Rosa with Mapserver 3.5 vs 3.6 References: Message-ID: <3D8109BF.7040101@dmsolutions.ca> Hi There, The rosa parameters support in mapserver have been added starting with mapserver 3.6. Later, Debbie Pagurek wrote: >Hi everyone, >I'm having a WEIRD problem with Rosa. I have everything working perfectly on one server that is running Mapserver 3.6. When I take the exact same mapfile and html templates and move them to a machine running Mapserver 3.5, the Rosa zoom in and pan no longer work at all... it keeps zooming in to a box that is probably centred on the centre of the map, not to the extents that I drag with the box or not centred on a point that I click. I can't figure this one out - any ideas anyone? Does Rosa behave differently with different versions of Mapserver? Any hints on which variables to look at? > >Thanks, >D. Pagurek > > From marco at mediaeval.nl Wed Sep 11 00:14:48 2002 From: marco at mediaeval.nl (Marco) Date: Wed, 11 Sep 2002 09:14:48 +0200 Subject: [mapserver-users] projections [shpmidx] [shpmidy] Message-ID: <003401c25962$ec3bbc00$0804000a@mediaeval.nl> Hi list, If the next question is a stupid one, excuse me. I am newbe. context: I use mapserv CGI (no mapscript) and a Apache webserver with PHP (on a windows machine for testing). I am building a web-application with dynamic maps. problem: I use a template file to get information about the map-features on the current map. The tags [shpmidx] and [shpmidy] provides information on the exact position of a feature (see http://mapserver.gis.umn.edu/doc36/template-reference.html ). With simple lineair algebra it is possible to calculate the xy-position of this feature on the actual generated image. (a lineair transformation from "real world" lat-lon coordinates to "image" x-y pixelcoordinates). I use these information to create some kind of javascript rollover interface; if the mouse hovers a feature, the webapplication respons immediately, without the need of connecting to the server. So far so good. Everything works fine. So now for the problem. If I deploy a projection ("proj=stere") Nothing works anymore. That is because [shpmidx] and [shpmidy] gives the lon-lat stuff, but i need the xy coordanates on the generated image of the map. Sure it should be possible to write transformations for projected maps (a lot of sinus and cosinus, arctangens etcetera i suppose) but i believe that's a ticket to the nearest snake pit. Is there a solution for this (withhout the need of writing my own transformation formulas) Or, if I have to write transformation, does anybody now the formulas for this projection: PROJECTION "proj=stere" "lat_0=52.156160556" "lon_0=5.387638889" "k=0.0000999908" "x_0=0.000" "y_0=0.000" "ellps=bessel" END Cheers, Marco Marco Pieck, marco at mediaeval.nl Mediaeval Vorm & Visie http://www.mediaeval.nl/ postbus 1050, 6501 BB Nijmegen, the Netherlands tel: ++ 31 24-3818196, fax: ++ 31 24-3818183 -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at medinaco.org Wed Sep 11 05:44:10 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 11 Sep 2002 08:44:10 -0400 Subject: [mapserver-users] Perl Mapscript issue (was: Tried to send messageto thelist..) Message-ID: <200209111230.g8BCUt809347@yogi.medinaco.net> There is no problem using raster layers. The png error that popped up in the log file indicated that there was a png file used as a layer and that libpng could not successfully read it. Please put this line right after the 'use mapscript;' line in your script: $ENV{MS_ERRORFILE} = "../html/tmp/mapserver.log"; Please change the path '../html/tmp/mapserver.log' to the same as your IMAGEPATH and then run the script. After it chokes 'cat ../html/tmp/mapserver.log' and you should see where/why it stopped. HTH Lowell F. > The following message was sent by "Brian Tomaszewski" on Tue, 10 Sep 2002 21:33:38 -0400. > > > Thank you for the reply Lowel > > > > I modfied the map file and took out RASTER and postGIS references, and now > > the error is just > > > > [Tue Sep 10 21:45:56 2002] [error] [client 192.168.1.1] Premature end of > > script headers: /usr/local/apache/cgi-bin/ms.cgi > > > > Questions: > > > > I am learning PERL as I learn mapscript, so could there be something with my > > PERL installation? > > > > In general, can you not use raster layers with mapscript ? > > > > Any more ideas on things to look for? > > > > Thank you > > > > Brian > > > > -----Original Message----- > > From: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Lowell > > Filak > > Sent: Tuesday, September 10, 2002 5:12 PM > > To: mapserver-users at lists.gis.umn.edu; btski at rochester.rr.com > > Subject: Re: [mapserver-users] Perl Mapscript issue (was: Tried to send > > messageto thelist..) > > > > > > Do you have RASTER layers in your mapfile? If you comment that layer(s) out > > does the cgi work? > > Lowell F. > > > > > > > I tried to send a message to the MS list, but it didn't seem to go > > through.. > > > However, nothing was sent back to me (wrong email). > > > > > > Here is my message: > > > > > > ********************************************************************* > > > > > > Hi List > > > > > > I am trying to run a very basic mapscript cgi. Here is the code: > > > > > > #!/usr/local/bin/perl > > > > > > use mapscript; > > > > > > my $map = new mapObj('/usr/local/apache/htdocs/liv_ms/liv.map') or > > > die('Unable to open mapfile'); > > > my $image = $map->draw() or die('Unable to draw map'); > > > > > > > > > When I try to run, I get a 500 Internal server error in my browser and > > the > > > following is in the apache error log: > > > > > > [Mon Sep 9 21:25:25 2002] [error] [client 192.168.1.1] Premature end of > > > script headers: /usr/local/apache/cgi-bin/ms.cgi > > > libpng warning: Incomplete compressed datastream in iCCP chunk > > > > > > I have already checked: > > > > > > -perl is in /usr/local/bin/ > > > -there is a map file at the location > > > > > > Any help or ideas would be appreciated > > > > > > Thank you in advance > > > > > > Brian Tomaszewski From rholloway_1999 at yahoo.com Wed Sep 11 08:34:15 2002 From: rholloway_1999 at yahoo.com (Rob Holloway) Date: Wed, 11 Sep 2002 08:34:15 -0700 (PDT) Subject: [mapserver-users] scale dependent layers Message-ID: <20020911153415.65038.qmail@web12507.mail.yahoo.com> Hi Does anyone know how to keep scale dependent layers (i.e layers with a maxscale set) from displaying on the template/html form until the specified scale has been reached? For example, in my application a buildings layer has a maxscale factor of 100 000 but it still shows up in the list of layers that can be displayed at full extent. This would probably be confusing to users trying to select that layer at large scale. Any suggestions? Cheers Rob __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute From Chip.Hankley at GASAI.Com Wed Sep 11 09:29:44 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 11 Sep 2002 11:29:44 -0500 Subject: [mapserver-users] scale dependent layers Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD94@postoffice.GASAI.Com> Rob... What about using JavaScript and DHTML to hide / show a DIV element? Basically, you could capture scale as a JS variable: and put your legend entries in separate DIVs:

Roads Layer
If you play around, you can probably figure out a way to do that...You could also (conceivably) generate your legend / layer list using JS to write out the HTML dynamically. The downside to this, of course, is that the JS / DOM implementation across browsers is very inconsistent (MHO). FWIW, this is what makes MapScript nice. Since you are dynamically generating content, you can simply choose not to write out that part of your legend / layer list: if (scale > layer_max_scale) { don't put this line in } else { make an entry } chip -----Original Message----- From: Rob Holloway [mailto:rholloway_1999 at yahoo.com] Sent: Wednesday, September 11, 2002 10:34 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] scale dependent layers Hi Does anyone know how to keep scale dependent layers (i.e layers with a maxscale set) from displaying on the template/html form until the specified scale has been reached? For example, in my application a buildings layer has a maxscale factor of 100 000 but it still shows up in the list of layers that can be displayed at full extent. This would probably be confusing to users trying to select that layer at large scale. Any suggestions? Cheers Rob __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute From john.bennett at noetix.on.ca Wed Sep 11 11:15:42 2002 From: john.bennett at noetix.on.ca (John Bennett) Date: Wed, 11 Sep 2002 14:15:42 -0400 Subject: [mapserver-users] FW: Get demo started on Windows 2000. Message-ID: Thanks for the many replies to my question below. I still have the same problem even after I make sure the "\" are "/" and all the permissions are set correctly for the 'tmp' directory and trying Is there another way of checking that the basic functionality of mapserv.exe is working correctly or can anyone think of anything else that I may have over looked. BTW: In IE when I click "Initialize" and the new "MapServer Demo Interface " web page pops up, the properties of the "x" images appear correct(http://dell810/tmp/DEMOleg10317674441924.gif) but nothing is being written to the tmp directory. I'm using windows 2000, IIS, MapServer3.6.1 Thanks John -----Original Message----- From: John Bennett [mailto:john.bennett at noetix.on.ca] Sent: Monday, September 09, 2002 4:56 PM To: mapserver-users at lists.gis.umn.edu Subject: Get demo started on Windows 2000. I've got the demo "itasca" to work on my windows NT, but I really want it to work on my windows 2000. I've installed everything in the correct places as described in 'readme.gif.wms.html' when installing the binary (pre-compiled) MApserver version 3.6.1. I changed my demo.map file and demo_init.html file to work with my windows IIS. When I load demo_init.html in IE and click 'Initialize' the MapServer Demo Interface pops up, but no images are show. There are no Images that are created in the "tmp" directory. It worked on my Windows nt, same setup. THe following is my demo_init.html file: 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 help would be much appreciated. Thanks John From Chip.Hankley at GASAI.Com Wed Sep 11 12:02:58 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 11 Sep 2002 14:02:58 -0500 Subject: [mapserver-users] FW: Get demo started on Windows 2000. Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD97@postoffice.GASAI.Com> John... If nothing is being written to tmp, then you need to check several things. 1) the default dir for scripts in IIS is /scripts not /cgi-bin. Did you create a virtual directory called /cgi-bin? Is that where the mapserv.exe file is? Did you give the default web user IUSR_ execute permission for that directory both through the IIS manager AND windows? 2) Does IUSR have write access to /tmp? Again, this needs to be done BOTH in the IIS manager and in windows. You can easily check you things are going simply by typing in the path to your mapfile from a URL: http://localhost/cgi-bin/mapserv.exe?c:\path-to-your-mapfile.map Chip -----Original Message----- From: John Bennett [mailto:john.bennett at noetix.on.ca] Sent: Wednesday, September 11, 2002 1:16 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] FW: Get demo started on Windows 2000. Thanks for the many replies to my question below. I still have the same problem even after I make sure the "\" are "/" and all the permissions are set correctly for the 'tmp' directory and trying Is there another way of checking that the basic functionality of mapserv.exe is working correctly or can anyone think of anything else that I may have over looked. BTW: In IE when I click "Initialize" and the new "MapServer Demo Interface " web page pops up, the properties of the "x" images appear correct(http://dell810/tmp/DEMOleg10317674441924.gif) but nothing is being written to the tmp directory. I'm using windows 2000, IIS, MapServer3.6.1 Thanks John -----Original Message----- From: John Bennett [mailto:john.bennett at noetix.on.ca] Sent: Monday, September 09, 2002 4:56 PM To: mapserver-users at lists.gis.umn.edu Subject: Get demo started on Windows 2000. I've got the demo "itasca" to work on my windows NT, but I really want it to work on my windows 2000. I've installed everything in the correct places as described in 'readme.gif.wms.html' when installing the binary (pre-compiled) MApserver version 3.6.1. I changed my demo.map file and demo_init.html file to work with my windows IIS. When I load demo_init.html in IE and click 'Initialize' the MapServer Demo Interface pops up, but no images are show. There are no Images that are created in the "tmp" directory. It worked on my Windows nt, same setup. THe following is my demo_init.html file: 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 help would be much appreciated. Thanks John From woodbri at swoodbridge.com Wed Sep 11 12:20:58 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 11 Sep 2002 15:20:58 -0400 Subject: [mapserver-users] scale dependent layers In-Reply-To: Message-ID: <3D7F5F5A.19710.2D96B4A8@localhost> This is very similar to what I was trying to do in maplab recently using the html_legend stuff. The problem I ran into was that I could hide the controls of layers that were not being displayed, but as I zoomed in, maplab (PHP/mapscript) could not differentiate the difference between the fact that the control was hidden or that the user had turned it off. I thing if we/you are planning a change in this area, it would be nice to coordinate it with the maplab team, because we need to be able to track the following: 1) user layer status (on/off) -- tracked in mapscript application 2) mapfile layer status (on/off) -- status as coded in mapfile 3) layer is viewable status if it was on (on/off) -- status relative to zoom state Steve does this make sense? maplab team does this make sense? -Steve W. On 11 Sep 2002 at 11:04, Steve Lime wrote: > If I read you right your interested in the layer controls as opposed > to the legend (which already respects scale). Well, there's no super > easy way to do that. You could use javscript to check the map scale > (using [scale]) against the layer scale and based on that write the > control. That would work but would require you to have the layer scale > information in 2 places (in the template and in the mapfile). You > could of course store the layer scales only in the HTML file and pass > them to the mapserver (i.e. map_layername_maxscale, > map_layername_minscale). I think ideally you'd rather gain access to > the values as stored in the mapfile. There's some real value in that > so I would propose adding substitutions like > [layername_maxscale/minscale] and then you could use those in > combination with [scale] and javascript. Thoughts folks? > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Rob Holloway 09/11/02 10:34AM >>> > Hi > > Does anyone know how to keep scale dependent layers > (i.e layers with a maxscale set) from displaying on > the template/html form until the specified scale has > been reached? For example, in my application a > buildings layer has a maxscale factor of 100 000 but > it still shows up in the list of layers that can be > displayed at full extent. This would probably be > confusing to users trying to select that layer at > large scale. Any suggestions? > > Cheers > > Rob > > __________________________________________________ > Yahoo! - We Remember > 9-11: A tribute to the more than 3,000 lives lost > http://dir.remember.yahoo.com/tribute > From ARyan at co.linn.or.us Thu Sep 12 21:58:46 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Thu, 12 Sep 2002 21:58:46 -0700 Subject: [mapserver-users] Queryfile uses layer index, not layer name!?! Message-ID: <614FCE5F14A6D41180C200010240D6A2143051@LINNMS> Dear List, I want to save a query, then use the *.qy file with another map file. This works great, but only if the qlayer has the same layer index in both map files ('roads' is layer number 7 in both maps). This tells me that the *.qy file stores the layer index and not the layer name. This is a problem. Please tell me there is a solution (work around) to this! I'm not using mapscript. I've got a nice javascript interface where I can easily switch map files, but I really need to maintain the query results while doing this. Thanks for any help on this, Adam Ryan Linn County PS I LOVE THIS STUFF!!! From Robin.Ellis at nrm.qld.gov.au Thu Sep 12 23:13:14 2002 From: Robin.Ellis at nrm.qld.gov.au (Ellis Robin (Bundaberg)) Date: Fri, 13 Sep 2002 16:13:14 +1000 Subject: [mapserver-users] method to check config of all old versions Message-ID: I'm trying to work out the configuration of an older version of Mapserver I have running (3.3.11) but am having no success. For versions 3.5+ I'm able to run this: mapserv -v And get the appropriate output, like this: seqbbggis002 (ellisrj-3:20:26pm) /data4/WWW/cgi-bin> maptest -v MapServer version 3.5 (pre-alpha) OUTPUT=GIF INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=SHAPEFILE however when I do this for the 3.3 version I get this: seqbbggis002 (ellisrj-3:31:25pm) /data4/WWW/cgi-bin> mapserv -v This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. Can somebody point me in the right direction to get the info I need? I'm running Mapserver on a Unix (Solaris) platform with Apache. Thanks Rob Robin Ellis Information & Knowledge Department of Natural Resources and Mines PO Box 1167 Bundaberg QLD 4670 ph +61 7 4131 5771 fax +61 7 4131 5823 Robin.Ellis at nrm.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From pcarrasco at iver.es Fri Sep 13 04:35:03 2002 From: pcarrasco at iver.es (Pedro Carrasco) Date: Fri, 13 Sep 2002 13:35:03 +0200 Subject: [mapserver-users] Include in Mapfile Message-ID: <004601c25b19$9a22d800$0f00a8c0@iver.es> Hi all, I'm working in a very large mapfile and I think that if in new versions of Mapserver coud be possible to use in the mapfile a include directive to include other files would be welcome, becouse if it where possible I can sepparate the mapfile in little mapfiles more easy to read and mantain. Regards. From ed at topozone.com Fri Sep 13 04:38:26 2002 From: ed at topozone.com (Ed McNierney) Date: Fri, 13 Sep 2002 07:38:26 -0400 Subject: [mapserver-users] method to check config of all old versions Message-ID: <13858AA1A74F30419F319ACB66A9D1220E864E@mercator.topozone.com> Ellis - I don't have any pre-3.5 versions around to test, but can you look at the HTML output of the older MapServer binary and see if it is inserting a comment string (one that looks just like the "mapserv -v" output) at the top of the HTML page. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Ellis Robin (Bundaberg) [mailto:Robin.Ellis at nrm.qld.gov.au] Sent: Friday, September 13, 2002 2:13 AM To: MapSever Users (E-mail) Subject: [mapserver-users] method to check config of all old versions I'm trying to work out the configuration of an older version of Mapserver I have running (3.3.11) but am having no success. For versions 3.5+ I'm able to run this: mapserv -v And get the appropriate output, like this: seqbbggis002 (ellisrj-3:20:26pm) /data4/WWW/cgi-bin> maptest -v MapServer version 3.5 (pre-alpha) OUTPUT=GIF INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=SHAPEFILE however when I do this for the 3.3 version I get this: seqbbggis002 (ellisrj-3:31:25pm) /data4/WWW/cgi-bin> mapserv -v This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. Can somebody point me in the right direction to get the info I need? I'm running Mapserver on a Unix (Solaris) platform with Apache. Thanks Rob Robin Ellis Information & Knowledge Department of Natural Resources and Mines PO Box 1167 Bundaberg QLD 4670 ph +61 7 4131 5771 fax +61 7 4131 5823 Robin.Ellis at nrm.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From sctweedy at NRCan.gc.ca Fri Sep 13 05:12:06 2002 From: sctweedy at NRCan.gc.ca (Tweedy, Scott) Date: Fri, 13 Sep 2002 08:12:06 -0400 Subject: [mapserver-users] MapServer and WMS question Message-ID: <5ACEEE96F4F9D41190790002A528B51E0274083D@s0-ott-x11.nrn.nrcan.gc.ca> The exact error message that appears when I use the polygonM file is: msDrawShape(): Only polygon shapes can be drawn using a POLYGON layer definition. Thanks, st -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Thursday, September 12, 2002 6:02 PM To: Tweedy, Scott Subject: Re: [mapserver-users] MapServer and WMS question Scott, What is the exact message, It will help to look into the code faster. Later, "Tweedy, Scott" wrote: > I have a question about using MapServer. I have a polygon layer that was > created as a MIF file and converted to a SHP file using FME. When this > process was done FME created a layer of the type PolygonM (representation of > a set of parts (rings). Each part (ring) is a set of points connected by > segments that close back to the first point.). Using MapLab and MapServer > directly on the Internet I've never had a problem displaying this layer. > I've been experimenting with creating a WMS server. When I use the GetMap > request on that layer as part of the command: > > http:///cgi-bin/mapserv.exe?map=wms.map&VERSION=1.1.0&SERVICE=wms& > REQUEST=GetMap > > I get an error saying that only a polygon layer can be created with a > polygon request. If I go back to ArcView and convert the PolygonM to a > simple Polygon the request works fine. Does anyone know anything about > support for PolygonM in OGC? I don't really want to go back and reconvert > all the files. > > Thanks in advance, > st -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ed at topozone.com Fri Sep 13 06:23:15 2002 From: ed at topozone.com (Ed McNierney) Date: Fri, 13 Sep 2002 09:23:15 -0400 Subject: [mapserver-users] Include in Mapfile Message-ID: <13858AA1A74F30419F319ACB66A9D1220E8651@mercator.topozone.com> Pedro - I use the C preprocessor to handle map file INCLUDEs and DEFINEs - it's a tool that's easily available and does the job well. Just create the map files as if they were C source code, and then run the files through the preprocessor to generate the final map files for MapServer. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Pedro Carrasco [mailto:pcarrasco at iver.es] Sent: Friday, September 13, 2002 7:35 AM To: MapSever Users (E-mail) Subject: [mapserver-users] Include in Mapfile Hi all, I'm working in a very large mapfile and I think that if in new versions of Mapserver coud be possible to use in the mapfile a include directive to include other files would be welcome, becouse if it where possible I can sepparate the mapfile in little mapfiles more easy to read and mantain. Regards. From tesimap at hotmail.com Fri Sep 13 08:12:03 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Fri, 13 Sep 2002 17:12:03 +0200 Subject: [mapserver-users] Mapserver compile error Message-ID: Hi, I have removed the gd target from the makefile, as you have told. But I have a new error: ---------------- cl /nologo /Zi -I../gd -I../tiff/libtiff -I../libjpeg/src -I../proj/src -I../regex -I..\gdal/ogr/ogrsf_frmts -I..\gdal/ogr -I..\gdal/ogr/../port -D HAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -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_TTF -DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR -DUSE_O GR -DUSE_WMS /c mapserv.c /Fomapserv.obj mapserv.c link /NODEFAULTLIB:libcd mapserv.obj mapserver.lib ../gd/gd.lib ../libjp eg/src/libjpeg.lib ../libpng/libpng.lib ../zlib/zlib.lib ../libttf/lib/libttf.l ib ../tiff/libtiff/libtiff.lib ../libjpeg/src/libjpeg.lib ../proj/src/proj.lib ..\gdal/ogr/ogrsf_frmts/ogrsf_frmts.lib ..\gdal/ogr/ogrsf_frmts/ogrsf_frmts_su p.lib ..\gdal/ogr/ogr.lib ..\gdal/ogr/../port/cpl.lib Microsoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. Creating library mapserv.lib and object mapserv.exp mapserver.lib(regex.obj) : error LNK2001: unresolved external symbol _alloca mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _gdImageWBMP gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdCalloc gd.lib(gd_jpeg.obj) : error LNK2001: unresolved external symbol _gdCalloc gd.lib(gd_io_ss.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd_png.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd_io_file.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd_io_ss.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd_jpeg.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd_png.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd_io_file.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdRealloc gd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdRealloc mapserv.exe : fatal error LNK1120: 6 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. --------------- I think to have compiled correctly gd, but I don't understand what's this extenal symbol... Thanks in advance Ivan >From: Yewondwossen Assefa >To: Ivan Paoluzzi >CC: mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] Mapserver compile error >Date: Thu, 12 Sep 2002 14:05:59 -0400 > >You actually do not need to compile gd from mapserver. It was done for >earlier >versions of mapserver. I have removed the gd target from the makefile.vc in >the >CVS version. If your are not compiling from the CVS version, just remove >the >whole gd target code as well as the MAKE_GD statement. (all you will need >is to >link it with the GD library that you have compiled. Make sur that the flags >GD_INC and GD_LIB are set properly in the makefile) > >Later, > >Ivan Paoluzzi wrote: > > > Hi, > > I want to compile MS 3.5 on Win XP, but I have this error message: > > > > Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 > > Copyright (C) Microsoft Corp 1988-1998. All rights reserved. > > > > cd gd > > NMAKE : fatal error U1077: 'cd' : return code '0x1' > > Stop. > > > > ------ > > > > In makefile.vc I have changed > > gd:: > > cd gd-1.2 > > nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)" > > cd .. > > > > in > > gd: > > cd gd > > nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)" > > cd .. > > > > but I have the same problem. > > Where is the error? > > I have just compiled correctly gd,freetype,proj,ecc. and I have changed >the > > path, in makefile, of these package. > > I use gd-1.8.4 and this is in c:\projects\gd > > > > Regards > > Ivan > > > > _________________________________________________________________ > > Chiacchiera con gli amici online, prova MSN Messenger: > > http://messenger.msn.it > >-- >---------------------------------------------------------------- >Assefa Yewondwossen >Software Analyst > >Email: assefa at dmsolutions.ca >http://www.dmsolutions.ca/ > >Phone: (613) 565-5056 (ext 14) >Fax: (613) 565-0925 >---------------------------------------------------------------- _________________________________________________________________ MSN Foto ? il sistema pi? facile per condividere e stampare foto online: http://photos.msn.it From DMartin at erac.com Fri Sep 13 09:01:11 2002 From: DMartin at erac.com (Martin, Daniel) Date: Fri, 13 Sep 2002 11:01:11 -0500 Subject: [mapserver-users] RE: OGR - MapInfo 7.0 Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F30C@STL-EXBE-I03.corp.erac.com> I discovered something this morning. It seems that previously mentioned problem only occurs with the following definition in a LAYER object of a MapServer map file: PROJECTION AUTO END So, I suspect MITAB can't automatically determine the projection on a MapInfo 7.0 layer. Luckily, explicitly stating the projection has resolved the problems I was having. Thanks, Dan Martin -----Original Message----- From: Martin, Daniel Sent: Thursday, September 12, 2002 4:19 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] OGR - MapInfo 7.0 I originally sent this message to the GDAL mailing list, but I got no response. So, I thought I would try here. I've been using MapServer with MapInfo data through OGR support for MapInfo TAB format since it was available. I recently upgraded to MapInfo 7.0. It appears though that any data produced with 7.0 doesn't work in MapServer. Can someone confirm: Is MapInfo 7.0 producing a new format? If so, is that format not currently supported by OGR? Is there any timeline on support? Thanks, Dan Martin From tesimap at hotmail.com Fri Sep 13 11:59:53 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Fri, 13 Sep 2002 20:59:53 +0200 Subject: [mapserver-users] EXPRESSION error Message-ID: Hi, I have a problem with EXPRESSION parameter. If I have 2 parameters it doesn't work but if I have a only parameter it work very well. This is my class: CLASS EXPRESSION ([PROG]=4 AND [PROG]=5) SYMBOL ../etc/parcheggio.gif COLOR 0 0 0 #dummy color LABEL COLOR 255 0 0 FONT arial-bold TYPE TRUETYPE SIZE 10 ANTIALIAS TRUE POSITION LC ANGLE AUTO MINFEATURESIZE 40 MINDISTANCE 100 BUFFER 3 END #LABEL END #CLASS "PROG" is an attribute in my dbf file. I have a different label if PROG=4 or PROG=5. There is a syntax error? If yes where because I don't see it. Thanks Ivan _________________________________________________________________ MSN Hotmail ? il provider email pi? grande al mondo cosa aspetti a farti un account? http://www.hotmail.it From woodbri at swoodbridge.com Fri Sep 13 13:02:05 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 13 Sep 2002 16:02:05 -0400 Subject: [mapserver-users] EXPRESSION error In-Reply-To: Message-ID: <3D820BFD.1101.38090A6A@localhost> Ivan, 1) logic error! ([PROG]=4 AND [PROG]=5) is always FALSE 2) try ([PROG]=4 OR [PROG]=5) which is different from (PROG=4 or PROG=5) Hope this helps :) -Steve On 13 Sep 2002 at 20:59, Ivan Paoluzzi wrote: > > > Hi, > I have a problem with EXPRESSION parameter. > If I have 2 parameters it doesn't work but if I have a only parameter > it work very well. > > This is my class: > > CLASS > EXPRESSION ([PROG]=4 AND [PROG]=5) > SYMBOL ../etc/parcheggio.gif > COLOR 0 0 0 #dummy color > LABEL > COLOR 255 0 0 > FONT arial-bold > TYPE TRUETYPE > SIZE 10 > ANTIALIAS TRUE > POSITION LC > ANGLE AUTO > MINFEATURESIZE 40 > MINDISTANCE 100 > BUFFER 3 > END #LABEL > END #CLASS > > > "PROG" is an attribute in my dbf file. > I have a different label if PROG=4 or PROG=5. > There is a syntax error? If yes where because I don't see it. > > Thanks > Ivan > > > _________________________________________________________________ MSN > Hotmail ? il provider email pi? grande al mondo cosa aspetti a farti > un account? http://www.hotmail.it > > From woodbri at swoodbridge.com Fri Sep 13 14:15:54 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 13 Sep 2002 17:15:54 -0400 Subject: [maplab-users] Re: [mapserver-users] scale dependent layers In-Reply-To: <3D8207DD.8030205@magma.ca> Message-ID: <3D821D4A.12160.384CA0B7@localhost> On 13 Sep 2002 at 11:44, Paul Spencer wrote: > Steven, we are going to fix up the legend handling stuff in maplab, > probably as follows: > > 1. gmapfactory - add capability to track the status of all layers > regardless of whether they are in the legend or not. The legend will > only be used to make layers visible/not visible. If a layer that was > previously not visible due to scale becomes visible after a zoom, the > layer will appear in the legend with its current status > (on|default/off). If the layer goes out of scale, any user changes to > status will be remembered. This makes sense to me. > 2. mapbrowser and mapedit preview - all layers are in the legend at > all times. The current mechanism is not intelligent enough to > determine that a user turned a layer of or it went out of scale. This > will be updated to include logic for determining if a layer went out > of scale and will preserve the layer status but dim the layer name in > the legend. > (I hope that makes sense) This sounds great. In fact I do not think you want the layers here to be hidden. It is important to be able to see what is happening when. So graying the layer when it is out of scale it good. > There is currently no time frame for this. No problem. Sounds like a good plan for when you get to it. -Steve W. > Cheers, > > Paul > > woodbri at swoodbridge.com wrote: > > This is very similar to what I was trying to do in maplab recently > > using the html_legend stuff. The problem I ran into was that I could > > hide the controls of layers that were not being displayed, but as I > > zoomed in, maplab (PHP/mapscript) could not differentiate the > > difference between the fact that the control was hidden or that the > > user had turned it off. > > > > I thing if we/you are planning a change in this area, it would be > > nice to coordinate it with the maplab team, because we need to be > > able to track the following: > > > > 1) user layer status (on/off) -- tracked in mapscript application > > 2) mapfile layer status (on/off) -- status as coded in mapfile 3) > > layer is viewable status if it was on (on/off) -- status relative > > to zoom state > > > > Steve does this make sense? > > maplab team does this make sense? > > > > -Steve W. > > > > On 11 Sep 2002 at 11:04, Steve Lime wrote: > > > > > >>If I read you right your interested in the layer controls as opposed > >>to the legend (which already respects scale). Well, there's no super > >>easy way to do that. You could use javscript to check the map scale > >>(using [scale]) against the layer scale and based on that write the > >>control. That would work but would require you to have the layer > >>scale information in 2 places (in the template and in the mapfile). > >>You could of course store the layer scales only in the HTML file and > >>pass them to the mapserver (i.e. map_layername_maxscale, > >>map_layername_minscale). I think ideally you'd rather gain access to > >>the values as stored in the mapfile. There's some real value in that > >>so I would propose adding substitutions like > >>[layername_maxscale/minscale] and then you could use those in > >>combination with [scale] and javascript. Thoughts folks? > >> > >>Steve > >> > >>Stephen Lime > >>Data & Applications Manager > >> > >>Minnesota DNR > >>500 Lafayette Road > >>St. Paul, MN 55155 > >>651-297-2937 > >> > >> > >>>>>Rob Holloway 09/11/02 10:34AM >>> > >>>> > >>Hi > >> > >>Does anyone know how to keep scale dependent layers > >>(i.e layers with a maxscale set) from displaying on > >>the template/html form until the specified scale has > >>been reached? For example, in my application a > >>buildings layer has a maxscale factor of 100 000 but > >>it still shows up in the list of layers that can be > >>displayed at full extent. This would probably be > >>confusing to users trying to select that layer at > >>large scale. Any suggestions? > >> > >>Cheers > >> > >>Rob > >> > >>__________________________________________________ > >>Yahoo! - We Remember > >>9-11: A tribute to the more than 3,000 lives lost > >>http://dir.remember.yahoo.com/tribute > >> > > > > > > > > _______________________________________________ > > Maplab-users mailing list > > Maplab-users at dmsolutions.ca > > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > > > > > -- > Paul Spencer > Applications and Software Development > DM Solutions Group > > From mail2stern at gmx.net Sat Sep 14 13:31:34 2002 From: mail2stern at gmx.net (Stefan Stern) Date: Sat, 14 Sep 2002 21:31:34 +0100 Subject: [mapserver-users] DBASE Error at shapefile call Message-ID: <3D839CA6.9050700@gmx.net> Hi all, I ran into a strange behavior of mapserver. I want to display a shapefile that is created by the following sample dataset table: ################################################# id,description,samplesites,x_british_survey,y_british_survey T1,"u/s of N-Y-F",T,267009,196614 T2,"At mouth of N-Y-F",T,267000,196592 T3,"d/s of N-Y-F",T,266985,196585 ################################################# Just a table that stores Id, description, samplesites and GPS coordinates. 1. The following extract of my mapfile works fine and the layer displays the T1 GPS Point: ##################################### LAYER # start of the gps layer object NAME "gps" DATA "gps140902" STATUS DEFAULT TYPE POINT CLASSITEM "Id" # attribut CLASS # gps points class NAME "f_gps" EXPRESSION "T1" COLOR 255 0 0 SYMBOL 'circle' SIZE 10 END # end of Gps class object END # end Layer ###################################### 2. BUT, when I change the CLASSITEM to "Samplesites", which is a proper identifier as well: #################################### LAYER # start of the gps layer object NAME "gps" DATA "gps140902" STATUS DEFAULT TYPE POINT CLASSITEM "Samplesites" # attribut CLASS # gps points class NAME "f_gps" EXPRESSION "T" COLOR 255 0 0 SYMBOL 'circle' SIZE 10 END # end of Gps class object #################################### the following error occurs: ######################## msDBFGetItemIndex(): DBASE file error. Item 'Samplesites' not found. ########################### I tried "SAMPLESITES" and "samplesites" unsuccessfully as well. I guess Mapserver can't deal with my created Shapefile set. Where does the "msDBFGetItemIndex()" function look for the identifier (e.g. Samplesites)? In the .dbf file or in the .shp file itself? Thanks for any suggestions, Best Regards, Stefan Stern From pkishor at GeoAnalytics.com Sat Sep 14 17:17:05 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sat, 14 Sep 2002 19:17:05 -0500 Subject: [mapserver-users] DBASE Error at shapefile call In-Reply-To: <3D839CA6.9050700@gmx.net> Message-ID: <773CBDAD-C840-11D6-B9BC-0003936306C2@geoanalytics.com> On Saturday, September 14, 2002, at 03:31 PM, Stefan Stern wrote: > Hi all, > > I ran into a strange behavior of mapserver. > > I want to display a shapefile that is created by the following sample > dataset table: > ################################################# > id,description,samplesites,x_british_survey,y_british_survey > T1,"u/s of N-Y-F",T,267009,196614 > T2,"At mouth of N-Y-F",T,267000,196592 > T3,"d/s of N-Y-F",T,266985,196585 > ################################################# > > [..] > > 2. > BUT, when I change the CLASSITEM to "Samplesites", which is a proper > identifier as well: but is it? dbf files cannot have field names greater than 10 characters... open your dbf file with perl or php (or Excel or AppleWorks or whatever)... you will see the field names have been truncated to 10 chars. pk/ -- Puneet Kishor From tesimap at hotmail.com Sun Sep 15 02:56:41 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Sun, 15 Sep 2002 11:56:41 +0200 Subject: [mapserver-users] Mapserver compile error Message-ID: Hi Krung, thanks for your help. In compiling gd, in makefile.nt I had just changed, in list of OBJS, gdft.c in gdft.obj; and gd_gif_in.obj gd_gif_out.obj gd_biggif_out.obj gd_lzw_out.obj are all present. And I have correct the bug in gd_wbmp.c But I have this list of error in gdft.c: cl -I c:\projects\zlib -I c:\projects\libpng -I c:\projects\libttf\lib - I c:\projects\libjpeg\src -O -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c gdft.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. gdft.c C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2146: syntax error : mis sing ')' before identifier 'owner' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2081: 'uid_t' : name in formal parameter list illegal C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2061: syntax error : ide ntifier 'owner' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2059: syntax error : ',' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2059: syntax error : ')' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(48) : error C2061: syntax error : identifier 'fork' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(48) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(48) : error C2059: syntax error : 'type' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(50) : error C2061: syntax error : identifier 'getegid' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(50) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(50) : error C2059: syntax error : 'type' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(51) : error C2061: syntax error : identifier 'geteuid' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(51) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(51) : error C2059: syntax error : 'type' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(52) : error C2061: syntax error : ide ntifier 'getgid' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(52) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(52) : error C2059: syntax error : 'type' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(54) : error C2061: syntax error : identifier 'getpid' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(54) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(54) : error C2059: syntax error : 'type' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(55) : error C2061: syntax error : identifier 'getuid' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(55) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(55) : error C2059: syntax error : 'type' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(60) : error C2146: syntax error : missing ')' before identifier 'group' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(60) : error C2061: syntax error : ide ntifier 'group' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(60) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(60) : error C2059: syntax error : ')' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(61) : error C2146: syntax error : missing ')' before identifier 'user' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(61) : error C2061: syntax error : ide ntifier 'user' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(61) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(61) : error C2059: syntax error : ')' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2146: syntax error : missing ')' before identifier 'owner' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2081: 'uid_t' : name informal parameter list illegal C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2061: syntax error : identifier 'owner' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2059: syntax error : ',' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2059: syntax error : ')' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(74) : error C2146: syntax error : missing ')' before identifier 'group' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(74) : error C2061: syntax error : ide ntifier 'group' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(74) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(74) : error C2059: syntax error : ')' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(75) : error C2146: syntax error : missing ')' before identifier 'user' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(75) : error C2061: syntax error : identifier 'user' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(75) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(75) : error C2059: syntax error : ')' NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. ------- If I comment this section in gdft.c #ifndef MSWIN32 #include #else #define R_OK 2 #endif I haven't those errors and it compile gd; this is a problem? Sorry, I'm not a good C programmer... Ivan >From: "Krung Saengpole" >Reply-To: saengpole at excite.com >To: tesimap at hotmail.com >Subject: Re: [mapserver-users] Mapserver compile error >Date: Sat, 14 Sep 2002 00:43:44 -0400 (EDT) > > Hi Ivan, I used to have problems like you last week. In compiling >regex-0.12, you have to use command like: cl /c /DHAVE_STRING_H >/DREGEX_MALLOC regex.c And in gd compiling. Check again in makefile.nt that >gdft.c had changed to gdft.obj in OBJS = gd.obj gd_gd.obj ..... >.................................gdft.obj ................... near the end >of file. And another thing to do, if it wasn't there, if there are >gd_gif_in.obj, gd_gif_out.obj ,gd_biggif_out.obj and gd_lzw_out.obj in this >statement like the following: OBJS = gd.obj gd_gd.obj >.........gd_gif_in.obj gd_gif_out.obj gd_biggif_out.obj gd_lzw_out.obj >.....................................gdft.obj................................. >Oh, I forgot to tell you that I used patched gd-1.8.4 version downloaded >from http://www.rime.com.au/gd. Again, don't forget to delete .obj file >before recompiling. And did you correct the known bugs as: In >gd_wbmp.c:change #include <gd.h>#include <gd_fonts.h> to >#include "gd.h"#include "gd_fonts.h" HTHKrung--- On Fri 09/13, Ivan >Paoluzzi < tesimap at hotmail.com > wrote:From: Ivan Paoluzzi [mailto: >tesimap at hotmail.com]To: assefa at dmsolutions.ca, >mapserver-users at lists.gis.umn.eduDate: Fri, 13 Sep 2002 17:12:03 >+0200Subject: Re: [mapserver-users] Mapserver compile errorHi,I have >removed the gd target from the makefile, as you have told.But I have a new >error:----------------cl /nologo /Zi -I../gd -I../tiff/libtiff >-I../libjpeg/src -I../proj/src-I../regex -I..\gdal/ogr/ogrsf_frmts >-I..\gdal/ogr -I..\gdal/ogr/../port -DHAVE_STRING_H -DREGEX_MALLOC >-DNEED_STRCASECMP -DNEED_STRNCASECMP -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_TTF -DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_WMS /c >mapserv.c /Fomapserv.objmapserv.clink /NODEFAULTLIB:libcd mapserv.obj >mapserver.lib ../gd/gd.lib ../libjpeg/src/libjpeg.lib ../libpng/libpng.lib >../zlib/zlib.lib ../libttf/lib/libttf.lib ../tiff/libtiff/libtiff.lib >../libjpeg/src/libjpeg.lib >../proj/src/proj.lib..\gdal/ogr/ogrsf_frmts/ogrsf_frmts.lib >..\gdal/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib ..\gdal/ogr/ogr.lib >..\gdal/ogr/../port/cpl.libMicrosoft (R) Incremental Linker Version >6.00.8168Copyright (C) Microsoft Corp 1992-1998. All rights >reserved.Creating library mapserv.lib and object >mapserv.expmapserver.lib(regex.obj) : error LNK2001: unresolved external >symbol _allocamapserver.lib(maputil.obj) : error LNK2001: unresolved >external symbol _gdImageWBMPgd.lib(gd.obj) : error LNK2001: unresolved >external symbol _gdCallocgd.lib(gd_jpeg.obj) : error LNK2001: unresolved >external symbol _gdCallocgd.lib(gd_io_ss.obj) : error LNK2001: unresolved >external symbol _gdMallocgd.lib(gd.obj) : error LNK2001: unresolved >external symbol _gdMallocgd.lib(gd_png.obj) : error LNK2001: unresolved >external symbol _gdMallocgd.lib(gd_io_file.obj) : error LNK2001: unresolved >external symbol _gdMallocgd.lib(gd_io_dp.obj) : error LNK2001: unresolved >external symbol _gdMallocgd.lib(gd_io_dp.obj) : error LNK2001: unresolved >external symbol _gdFreegd.lib(gd_io_ss.obj) : error LNK2001: unresolved >external symbol _gdFreegd.lib(gd.obj) : error LNK2001: unresolved external >symbol _gdFreegd.lib(gd_jpeg.obj) : error LNK2001: unresolved external >symbol _gdFreegd.lib(gd_png.obj) : error LNK2001: unresolved external >symbol _gdFreegd.lib(gd_io_file.obj) : error LNK2001: unresolved external >symbol _gdFreegd.lib(gd.obj) : error LNK2001: unresolved external symbol >_gdReallocgd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol >_gdReallocmapserv.exe : fatal error LNK1120: 6 unresolved externalsNMAKE : >fatal error U1077: 'link' : return code '0x460'Stop.---------------I think >to have compiled correctly gd, but I don't understand what's this extenal >symbol...Thanks in advanceIvan>From: Yewondwossen Assefa >To: Ivan >Paoluzzi >CC: mapserver-users at lists.gis.umn.edu>Subject: Re: >[mapserver-users] Mapserver compile error>Date: Thu, 12 Sep 2002 >14:05:59 -0400>>You actually do not need to compile gd from >mapserver. It was done for >earlier>versions of mapserver. I have >removed the gd target from the makefile.vc in >the>CVS version. If >your are not compiling from the CVS version, just remove >the>whole >gd target code as well as the MAKE_GD statement. (all you will need >is >to>link it with the GD library that you have compiled. Make sur that the >flags>GD_INC and GD_LIB are set properly in the >makefile)>>Later,>>Ivan Paoluzzi wrote:>> > Hi,> >> I want to compile MS 3.5 on Win XP, but I have this error message:> >>> > Microsoft (R) Program Maintenance Utility Version >6.00.8168.0> > Copyright (C) Microsoft Corp 1988-1998. All rights >reserved.> >> > cd gd> > NMAKE : fatal error U1077: 'cd' >: return code '0x1'> > Stop.> >> > ------> >> >> In makefile.vc I have changed> > gd::> > cd gd-1.2> >> nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)"> > cd ..> >>> > in> > gd:> > cd gd> > nmake /f makefile.nt >OPTFLAGS="$(OPTFLAGS)"> > cd ..> >> > but I have the same >problem.> > Where is the error?> > I have just compiled >correctly gd,freetype,proj,ecc. and I have changed >the> > path, >in makefile, of these package.> > I use gd-1.8.4 and this is in >c:\projects\gd> >> > Regards> > Ivan> >> > >_________________________________________________________________> > >Chiacchiera con gli amici online, prova MSN Messenger:> > >http://messenger.msn.it>>-->---------------------------------------------------------------->Assefa >Yewondwossen>Software Analyst>>Email: >assefa at dmsolutions.ca>http://www.dmsolutions.ca/>>Phone: (613) >565-5056 (ext 14)>Fax: (613) >565-0925>----------------------------------------------------------------_________________________________________________________________MSN >Foto ? il sistema pi? facile per condividere e stampare foto online: >http://photos.msn.it > >------------------------------------------------ >Changed your e-mail? Keep your contacts! Use this free e-mail change of >address service from Return Path. Register now! _________________________________________________________________ Chiacchiera con gli amici online, prova MSN Messenger: http://messenger.msn.it From woodbri at swoodbridge.com Sun Sep 15 06:13:15 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Sun, 15 Sep 2002 09:13:15 -0400 Subject: [mapserver-users] Another MapServer Error Message needs file name Message-ID: <3D844F2B.9819.72CB302@localhost> Steve Lime, I don't know if you changed this error message with the other ones, but it needs the file name that was trying to be read and if possible what the error was. Warning: MapServer Error in drawTIFF(): Error loading TIFF image. in /home/httpd/html/maplab-2.0rc3/htdocs/common/wrapper/drawmap.php on line 292 I suspect that this is a path problem, but I can't see what it was trying to open. Question: In a tileindex, if the LOCATION value is a relative path what is it relative to? the SHAPEPATH or some other random thing? -Steve From Robin.Ellis at nrm.qld.gov.au Sun Sep 15 15:18:01 2002 From: Robin.Ellis at nrm.qld.gov.au (Ellis Robin (Bundaberg)) Date: Mon, 16 Sep 2002 08:18:01 +1000 Subject: [mapserver-users] method to check config of all old versions Message-ID: Thanks Ed, the simple solutions are always the best! I hadn't known that info was included in the output files. Thanks again Rob -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Friday, 13 September 2002 9:38 PM To: Ellis Robin (Bundaberg); MapSever Users (E-mail) Subject: RE: [mapserver-users] method to check config of all old versions Ellis - I don't have any pre-3.5 versions around to test, but can you look at the HTML output of the older MapServer binary and see if it is inserting a comment string (one that looks just like the "mapserv -v" output) at the top of the HTML page. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Ellis Robin (Bundaberg) [mailto:Robin.Ellis at nrm.qld.gov.au] Sent: Friday, September 13, 2002 2:13 AM To: MapSever Users (E-mail) Subject: [mapserver-users] method to check config of all old versions I'm trying to work out the configuration of an older version of Mapserver I have running (3.3.11) but am having no success. For versions 3.5+ I'm able to run this: mapserv -v And get the appropriate output, like this: seqbbggis002 (ellisrj-3:20:26pm) /data4/WWW/cgi-bin> maptest -v MapServer version 3.5 (pre-alpha) OUTPUT=GIF INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=SHAPEFILE however when I do this for the 3.3 version I get this: seqbbggis002 (ellisrj-3:31:25pm) /data4/WWW/cgi-bin> mapserv -v This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. Can somebody point me in the right direction to get the info I need? I'm running Mapserver on a Unix (Solaris) platform with Apache. Thanks Rob Robin Ellis Information & Knowledge Department of Natural Resources and Mines PO Box 1167 Bundaberg QLD 4670 ph +61 7 4131 5771 fax +61 7 4131 5823 Robin.Ellis at nrm.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ ************************************************************************ 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 alainferriol at data-mobiles.com Mon Sep 16 02:39:18 2002 From: alainferriol at data-mobiles.com (Alain FERRIOL) Date: Mon, 16 Sep 2002 11:39:18 +0200 Subject: [mapserver-users] curviline streets labels Message-ID: <001e01c25d65$077ce1a0$0300000a@oleane.com> Hi All, Please excuse my poor english ;-) We have seen how to display the names of the streets with mapserver. we can display they respecting the orientation of the street. But, we are working on maps of France I some cities, the streat contains many curves and we are wondering if mapserver is able to display the name according with the curve ? Is it possible to maintain the name of the street inside the dispayed lines even if the street is a complex curve? Any help apreciated, Thank's a lot Alain Ferriol -------------- next part -------------- An HTML attachment was scrubbed... URL: From an-axel at web.de Mon Sep 16 02:45:11 2002 From: an-axel at web.de (Axel Schmidt) Date: Mon, 16 Sep 2002 11:45:11 +0200 Subject: [mapserver-users] use Mapserver as blackbox Message-ID: <200209160945.g8G9jBX10970@mailgate5.cinetic.de> Hey, im try to do webmapping with mapserver, but I don`t want to compile the program. (I work with Apacheserver for windows). There are some compiled versions of mapserv but I can't find one witch can PNG and PostGIS connection, Mapplet,... everything you can do with mapserver. There are a lot of documentation, tutorials, but when I try out these examples there are nothing then errors. Axel ______________________________________________________________________________ Die clevere Geldreserve: der DiBa-Privatkredit. Funktioniert wie ein Dispo, ist aber viel g?nstiger! Alle Infos: http://diba.web.de/?mc=021104 From woodbri at swoodbridge.com Mon Sep 16 05:06:54 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 16 Sep 2002 08:06:54 -0400 Subject: [mapserver-users] curviline streets labels In-Reply-To: <001e01c25d65$077ce1a0$0300000a@oleane.com> Message-ID: <3D85911E.10964.C164DE4@localhost> Alain, Sorry, that is not a current feature of mapserver. It is on the list of enhancement requests, but I do not think it is very high on that list. -Steve W. On 16 Sep 2002 at 11:39, Alain FERRIOL wrote: > > Hi All, > > Please excuse my poor english ;-) > > We have seen how to display the names of the streets with mapserver. > wecan display theyrespecting the orientation of the street. > > But, we are working on maps of France > I some cities, the streatcontains manycurves andwe arewondering > if mapserver is able to display the name according with the curve ? Is > it possible to maintain the name of the street inside the dispayed > lines even if the street is a complex curve? > > Any help apreciated, > Thank's a lot > > Alain Ferriol > > > From steve.lime at dnr.state.mn.us Fri Sep 13 14:14:56 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 13 Sep 2002 16:14:56 -0500 Subject: [mapserver-users] Queryfile uses layer index, not layer name!?! Message-ID: That's the way it was intended, as a query file is map file specific. I've gone over this in my head many a time as to why you wouldn't want to use one query file with another mapfile. I know I came with a good reason, probably specific to how query maps are produced but it escapes me. Let me think some more... There is no workaround. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ryan, Adam" 09/12/02 11:58PM >>> Dear List, I want to save a query, then use the *.qy file with another map file. This works great, but only if the qlayer has the same layer index in both map files ('roads' is layer number 7 in both maps). This tells me that the *.qy file stores the layer index and not the layer name. This is a problem. Please tell me there is a solution (work around) to this! I'm not using mapscript. I've got a nice javascript interface where I can easily switch map files, but I really need to maintain the query results while doing this. Thanks for any help on this, Adam Ryan Linn County PS I LOVE THIS STUFF!!! From steve.lime at dnr.state.mn.us Sat Sep 14 09:53:08 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Sat, 14 Sep 2002 11:53:08 -0500 Subject: [mapserver-users] projections [shpmidx] [shpmidy] Message-ID: Another little issue that has bothered me over time. Should shpmidx and other similar parameters be returned in the map projection or their native projection. You've found out that the latter is the current behavior. I'd appreciate opinions one way or another. I've always viewed query output as being pure, but if you look at the way WMS works you certainly have that control. I'd like to get this resolved for 3.7. Projection-wise, you'll definitely see better performance if you pre-project. On windows I don't know a tool, other than ArcView and such that you can do this with. I submitted a perl script to the Wiki to do this with MapScript on the UNIX side of things. If you've got a linux box laying around you could make use of that. What I, or someone else should do is set up a projection service on a website. Upload a shapefile with a projection definition and return a new shapefile. Anyone? Anyone? (it would be easy with that perl script...) Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Marco" 09/11/02 02:14AM >>> Hi list, If the next question is a stupid one, excuse me. I am newbe. context: I use mapserv CGI (no mapscript) and a Apache webserver with PHP (on a windows machine for testing). I am building a web-application with dynamic maps. problem: I use a template file to get information about the map-features on the current map. The tags [shpmidx] and [shpmidy] provides information on the exact position of a feature (see http://mapserver.gis.umn.edu/doc36/template-reference.html ). With simple lineair algebra it is possible to calculate the xy-position of this feature on the actual generated image. (a lineair transformation from "real world" lat-lon coordinates to "image" x-y pixelcoordinates). I use these information to create some kind of javascript rollover interface; if the mouse hovers a feature, the webapplication respons immediately, without the need of connecting to the server. So far so good. Everything works fine. So now for the problem. If I deploy a projection ("proj=stere") Nothing works anymore. That is because [shpmidx] and [shpmidy] gives the lon-lat stuff, but i need the xy coordanates on the generated image of the map. Sure it should be possible to write transformations for projected maps (a lot of sinus and cosinus, arctangens etcetera i suppose) but i believe that's a ticket to the nearest snake pit. Is there a solution for this (withhout the need of writing my own transformation formulas) Or, if I have to write transformation, does anybody now the formulas for this projection: PROJECTION "proj=stere" "lat_0=52.156160556" "lon_0=5.387638889" "k=0.0000999908" "x_0=0.000" "y_0=0.000" "ellps=bessel" END Cheers, Marco Marco Pieck, marco at mediaeval.nl Mediaeval Vorm & Visie http://www.mediaeval.nl/ postbus 1050, 6501 BB Nijmegen, the Netherlands tel: ++ 31 24-3818196, fax: ++ 31 24-3818183 From steve.lime at dnr.state.mn.us Sat Sep 14 10:00:49 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Sat, 14 Sep 2002 12:00:49 -0500 Subject: [mapserver-users] template file links with a "?" in it Message-ID: The ? isn't the problem. That functionality is amongst the oldest in MapServer and I use it all the time. It's got to be something else. What does the full layer definition look like? Template checks for URLs just look at the protocol and nothing more. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nicole B?meke 09/12/02 10:28AM >>> I want to link different points in my map with different html files. It works fine if I give each html file a name that contains the point ID and use the following template file link for the point query: TEMPLATE "http://[host]/mapserv3.6_rrp_appl_NRW/[ID].html" :-) But what I really want to do is linking an active server pages file with each point. The asp file gets the point ID and creates the specific html file for the point by requesting information from an SQL database. I replaced the template file link above by the following link but got the error message "Malformed template name". TEMPLATE "http://[host]/Sehenswuerdigkeiten.asp?dbspalte=[ID]" :-( It seams as if it is not possible to have template file links with a "?" in it. Is there another way to tell the asp file the ID of the selected point? Thanks Nicole ============================= Nicole B?meke bon at ivv-aachen.de IVV-Aachen, Germany From steve.lime at dnr.state.mn.us Sat Sep 14 09:56:12 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Sat, 14 Sep 2002 11:56:12 -0500 Subject: [mapserver-users] Two rasters covering each other at the same scale Message-ID: I assume what's happening is that you're running out of colors. When that happen matches are made based on proximity which can lead to some funky results. 3.7 should fix this with 24-bit PNG output. For older versions the only workaround is reducing the number of colors in images OR do some palette matching so that the images don't need as many colors. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Branko Kmetec" 09/12/02 10:43AM >>> Has someone idea, why do i get strange picture like on link: http://mail.mb.birostroj-co.si/map.png. I get it only when two rasters are covering at the same scale. Here's also my map file: MAP EXTENT 369144 11687 630856 208313 IMAGECOLOR 255 255 255 IMAGEQUALITY 75 IMAGETYPE PNG INTERLACE TRUE SHAPEPATH "./data/" SIZE 400 300 STATUS ON TRANSPARENT FALSE UNITS KILOMETERS NAME "DARS d.d." LEGEND IMAGECOLOR 255 255 255 INTERLACE TRUE KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 255 255 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL STATUS OFF TRANSPARENT FALSE END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END REFERENCE COLOR -1 -1 -1 EXTENT 369144 11687 630856 208313 IMAGE "./images/slovenija.png" OUTLINECOLOR 255 0 0 SIZE 100 75 STATUS ON MARKER 0 MARKERSIZE 0 MINBOXSIZE 3 MAXBOXSIZE 0 END SCALEBAR BACKGROUNDCOLOR 1104913136 72 16057808 COLOR 255 255 0 IMAGECOLOR 255 255 255 INTERLACE TRUE INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 255 255 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 TRANSPARENT FALSE UNITS MILES END WEB IMAGEPATH "/usr/local/www/htdocs/dars_web/tmp/ac/" IMAGEURL "/tmp/ac/" MAXSCALE 1e+008 MINSCALE 5.0e+007 END LAYER DATA "ac-mala.png" MINSCALE 5.5e+008 NAME "AC mala" SIZEUNITS PIXELS STATUS ON TOLERANCE 3 TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS CLASS NAME "AC mala" MAXSIZE 100 MINSIZE 1 SIZE 1 SYMBOL 0 END END LAYER DATA "ac.png" MAXSCALE 5.5e+008 MINSCALE 1.0e+007 NAME "AC" SIZEUNITS PIXELS STATUS ON TOLERANCE 3 TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS CLASS NAME "AC" MAXSIZE 100 MINSIZE 1 SIZE 1 SYMBOL 0 END END LAYER DATA "obroc.png" MAXSCALE 2.0e+008 MINSCALE 1.0e+007 NAME "obroc" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 3 TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS CLASS NAME "Obroc" MAXSIZE 100 MINSIZE 1 SIZE 1 SYMBOL 0 BACKGROUNDCOLOR 0 0 0 END END END Regards, Brane From nhv at cape.com Mon Sep 16 06:23:17 2002 From: nhv at cape.com (Norman Vine) Date: Mon, 16 Sep 2002 09:23:17 -0400 Subject: Fw: [mapserver-users] projections [shpmidx] [shpmidy] Message-ID: <02ce01c25d84$390e4d20$0100a8c0@sfdev3> Steve Lime writes: > > Projection-wise, you'll definitely see better performance if you > pre-project. On windows I don't know a tool, other than ArcView and such > that you can do this with. $GDAL_SRC / frmts / shapelib / contrib / shpproj.c Works great anywhere you have shapelb and proj < this includes windows > Cheers Norman From Chip.Hankley at GASAI.Com Mon Sep 16 07:02:17 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 16 Sep 2002 09:02:17 -0500 Subject: [mapserver-users] OT: Batch Convert MrSID Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDB4@postoffice.GASAI.Com> Sorry for the OT post... but I'm sure this is a common problem. I've downloaded about 350 MrSID DOQQs from the IL DNR, and now I want to include them in a MapServer project. I'm facing doing a one-by-one conversion using the MrSID GeoViewer (ugh). Anyone know of any batch conversion options using free tools? TIA! Chip Hankley From armin.burger at libero.it Mon Sep 16 07:18:12 2002 From: armin.burger at libero.it (Armin Burger) Date: Mon, 16 Sep 2002 16:18:12 +0200 Subject: [mapserver-users] projections [shpmidx] [shpmidy] Message-ID: <200209161423.g8GENhD52608@efferd.nettz.com> Another possibility for re-projecting shapefiles are the shapelib tools (http://gdal.velocet.ca/projects/shapelib/) the 'shpproj' executable can project shapefiles quite fast. There is also a compiled version for Windows. Armin > Another little issue that has bothered me over time. Should shpmidx and > other similar parameters be returned in the map projection or their > native projection. You've found out that the latter is the current > behavior. I'd appreciate opinions one way or another. I've always viewed > query output as being pure, but if you look at the way WMS works you > certainly have that control. I'd like to get this resolved for 3.7. > Projection-wise, you'll definitely see better performance if you > pre-project. On windows I don't know a tool, other than ArcView and such > that you can do this with. I submitted a perl script to the Wiki to do > this with MapScript on the UNIX side of things. If you've got a linux > box laying around you could make use of that. > What I, or someone else should do is set up a projection service on a > website. Upload a shapefile with a projection definition and return a > new shapefile. > Anyone? Anyone? (it would be easy with that perl script...) > Steve > Stephen Lime > Data & Applications Manager > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 >>>> "Marco" 09/11/02 02:14AM >>> > Hi list, > If the next question is a stupid one, excuse me. I am newbe. > context: > I use mapserv CGI (no mapscript) and a Apache webserver with PHP (on a > windows machine for testing). I am building a web-application with > dynamic maps. > problem: > I use a template file to get information about the map-features on the > current map. The tags [shpmidx] and [shpmidy] provides information on > the exact position of a feature (see > http://mapserver.gis.umn.edu/doc36/template-reference.html ). > With simple lineair algebra it is possible to calculate the xy-position > of this feature on the actual generated image. (a lineair transformation > from "real world" lat-lon coordinates to "image" x-y pixelcoordinates). > I use these information to create some kind of javascript rollover > interface; if the mouse hovers a feature, the webapplication respons > immediately, without the need of connecting to the server. > So far so good. Everything works fine. So now for the problem. If I > deploy a projection ("proj=stere") Nothing works anymore. That is > because [shpmidx] and [shpmidy] gives the lon-lat stuff, but i need the > xy coordanates on the generated image of the map. Sure it should be > possible to write transformations for projected maps (a lot of sinus and > cosinus, arctangens etcetera i suppose) but i believe that's a ticket to > the nearest snake pit. > Is there a solution for this (withhout the need of writing my own > transformation formulas) > Or, if I have to write transformation, does anybody now the formulas > for this projection: > PROJECTION > "proj=stere" > "lat_0=52.156160556" > "lon_0=5.387638889" > "k=0.0000999908" > "x_0=0.000" > "y_0=0.000" > "ellps=bessel" > END > Cheers, > Marco > Marco Pieck, marco at mediaeval.nl > Mediaeval Vorm & Visie > http://www.mediaeval.nl/ > postbus 1050, 6501 BB Nijmegen, the Netherlands > tel: ++ 31 24-3818196, fax: ++ 31 24-3818183 From mail2stern at gmx.net Mon Sep 16 07:22:51 2002 From: mail2stern at gmx.net (Stefan Stern) Date: Mon, 16 Sep 2002 15:22:51 +0100 Subject: [mapserver-users] queries Message-ID: <3D85E93B.1030401@gmx.net> Hi all, I use a dataset of points (.shp) that looks similar to this: id | group | x_ccord | y_coord T1 | T | 1234 | 12234 T2 | T | 4321 | 4321 F1 | F | 4566 | 3211 I created a mapfile that displays all points. Now I want to display just certain points according to "id" or "group". e.g. "display only T1" or "display all T". My first idea is to write a temporary mapfile with php on the harddrive and point mapserver to it. Is there an other way (implemented) in mapserver? ANd if so, where can I find some documentation about it? Regards, Stefan From mschulz at webgis.de Mon Sep 16 07:52:37 2002 From: mschulz at webgis.de (Michael Schulz) Date: Mon, 16 Sep 2002 16:52:37 +0200 Subject: [mapserver-users] queries References: <3D85E93B.1030401@gmx.net> Message-ID: <3D85F035.C15E7D63@webgis.de> Hi Stefan, you can use the layers "filter" and "filteritem" in the mapfile to draw only data that matches the filter. See here: http://mapserver.gis.umn.edu/doc36/mapfile-reference.html#layer HTH, Michael Stefan Stern schrieb: > Hi all, > > I use a dataset of points (.shp) that looks similar to this: > > id | group | x_ccord | y_coord > T1 | T | 1234 | 12234 > T2 | T | 4321 | 4321 > F1 | F | 4566 | 3211 > > I created a mapfile that displays all points. > > Now I want to display just certain points according to "id" or "group". > e.g. "display only T1" or "display all T". > > My first idea is to write a temporary mapfile with php on the harddrive > and point mapserver to it. > > Is there an other way (implemented) in mapserver? ANd if so, where can I > find some documentation about it? > > Regards, > Stefan -- ----------------------------------------------------------- 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 mail2stern at gmx.net Mon Sep 16 08:22:22 2002 From: mail2stern at gmx.net (Stefan Stern) Date: Mon, 16 Sep 2002 16:22:22 +0100 Subject: [mapserver-users] queries References: <3D85B654.25874.CA7AB34@localhost> Message-ID: <3D85F72E.2070708@gmx.net> Hi, Sorry, I missed the spot. ;-) The dataset is very long and in order to cover all occurences (each single id, each group) I'd had to write one mapfile for each id or one layer per id. Is there a way to make the mapfile more vital, e.g. by passing a parameter that decides which filter or expression to use? e.g. #### EXPRESSION "T1" ### could be used with a variable like : ## EXPRESSION "$filter" ## That's where I thought about letting PHP create a temporary mapfile (with substituted filters in the EXPRESSION statement) and pass it to mapserver. Does anybody se an alternative way? Regards, Stefan woodbri at swoodbridge.com wrote: >Stefan, > >Yes, you can use CLASS EXPRESSIONS and I believe >FILTER EXPRESSIONS. Check these out in the MapScript reference. > >-Steve W. > >On 16 Sep 2002 at 15:22, Stefan Stern wrote: > >>Hi all, >> >>I use a dataset of points (.shp) that looks similar to this: >> >>id | group | x_ccord | y_coord >>T1 | T | 1234 | 12234 >>T2 | T | 4321 | 4321 >>F1 | F | 4566 | 3211 >> >>I created a mapfile that displays all points. >> >>Now I want to display just certain points according to "id" or >>"group". e.g. "display only T1" or "display all T". >> >>My first idea is to write a temporary mapfile with php on the >>harddrive and point mapserver to it. >> >>Is there an other way (implemented) in mapserver? ANd if so, where can >>I find some documentation about it? >> >>Regards, >>Stefan >> >> >> >> >> >> >> >> >> >> >> >> > > > From woodbri at swoodbridge.com Mon Sep 16 08:32:55 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 16 Sep 2002 11:32:55 -0400 Subject: [mapserver-users] queries In-Reply-To: <3D85F72E.2070708@gmx.net> Message-ID: <3D85C167.3216.CD2EC82@localhost> Stefan, I'm not sure what you are trying to achieve. Here is one layer that styles different attributes in different ways. Is this what you want? I your case you could change CLASSITEM CFCC to CLASSITEM group or CLASSITEM id and change the EXPRESSION statements appropriately. In theory, you could do all of this dynamically in PHP/Mapscript without a mapfile if that is what you are asking. -Steve LAYER NAME landmark TYPE POLYGON STATUS ON TILEINDEX "tgrindex" DATA landmark # MAXSCALE 1999999 MAXSCALE 800000 CLASSITEM CFCC CLASS EXPRESSION /^D10/ NAME "Military" # Military Installation or Reservation OUTLINECOLOR -1 -1 -1 COLOR 153 153 102 END CLASS EXPRESSION /^D4/ NAME "Education" # Education and Religious institutions # includes academy, school, colleg or university OUTLINECOLOR -1 -1 -1 COLOR 198 198 222 END CLASS EXPRESSION /^D5/ NAME "Transportation" # Transportation terminals (airport, airfield, train, bus, marine) OUTLINECOLOR -1 -1 -1 COLOR 153 153 153 END CLASS EXPRESSION /^D6/ NAME "Centers" # Employment center, shopping or major retail center # Industrial bldg or park, office Bldg or park # Amusement Center, Government of other centers OUTLINECOLOR -1 -1 -1 COLOR 153 102 102 END CLASS EXPRESSION /^D81/ NAME "Golf Course" OUTLINECOLOR -1 -1 -1 COLOR 206 222 198 END CLASS EXPRESSION /^D8[0345]/ NAME "Parks" # Open Space, National Park, Forests # or other federal land, State or Local Park or forest OUTLINECOLOR -1 -1 -1 COLOR 174 206 165 END METADATA "DESCRIPTION" "Area Landmarks" "RESULT_FIELDS" "LAND CFCC NAME" END HEADER "html/land_header.html" FOOTER "html/land_footer.html" TEMPLATE "html/land.html" TOLERANCE 3 END On 16 Sep 2002 at 16:22, Stefan Stern wrote: > Hi, > > Sorry, I missed the spot. ;-) > > The dataset is very long and in order to cover all occurences (each > single id, each group) I'd had to write one mapfile for each id or one > layer per id. > > Is there a way to make the mapfile more vital, e.g. by passing a > parameter that decides which filter or expression to use? e.g. #### > EXPRESSION "T1" ### could be used with a variable like : ## EXPRESSION > "$filter" ## > > That's where I thought about letting PHP create a temporary mapfile > (with substituted filters in the EXPRESSION statement) and pass it to > mapserver. > > Does anybody se an alternative way? > > Regards, > Stefan > > > > > > > > woodbri at swoodbridge.com wrote: > > >Stefan, > > > >Yes, you can use CLASS EXPRESSIONS and I believe > >FILTER EXPRESSIONS. Check these out in the MapScript reference. > > > >-Steve W. > > > >On 16 Sep 2002 at 15:22, Stefan Stern wrote: > > > >>Hi all, > >> > >>I use a dataset of points (.shp) that looks similar to this: > >> > >>id | group | x_ccord | y_coord > >>T1 | T | 1234 | 12234 > >>T2 | T | 4321 | 4321 > >>F1 | F | 4566 | 3211 > >> > >>I created a mapfile that displays all points. > >> > >>Now I want to display just certain points according to "id" or > >>"group". e.g. "display only T1" or "display all T". > >> > >>My first idea is to write a temporary mapfile with php on the > >>harddrive and point mapserver to it. > >> > >>Is there an other way (implemented) in mapserver? ANd if so, where > >>can I find some documentation about it? > >> > >>Regards, > >>Stefan > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > > > > > > > > > > From armin.burger at libero.it Mon Sep 16 08:36:20 2002 From: armin.burger at libero.it (Armin Burger) Date: Mon, 16 Sep 2002 17:36:20 +0200 Subject: [mapserver-users] OT: Batch Convert MrSID Message-ID: <200209161541.g8GFfpD54936@efferd.nettz.com> Chip, The free image viewer IrfanView has plug-ins (separately to download) including MrSid support. It can do batch conversions. It's a bit slow reading MrSid and uses quite some memory but it works. Armin > Sorry for the OT post... but I'm sure this is a common problem. > I've downloaded about 350 MrSID DOQQs from the IL DNR, and now I want to > include them in a MapServer project. I'm facing doing a one-by-one > conversion using the MrSID GeoViewer (ugh). Anyone know of any batch > conversion options using free tools? > TIA! > Chip Hankley From lfilak at medinaco.org Mon Sep 16 09:21:46 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 16 Sep 2002 12:21:46 -0400 Subject: [mapserver-users] OT: Batch Convert MrSID Message-ID: <200209161608.g8GG8B815577@yogi.medinaco.net> Actually yes. klehr1 at tampabay.rr.com sent me a Perl script to do just that a little while ago. If Steve Lehr is out there would he mind posting that code to the wiki or have any objection to someone else posting it? Lowell F. The following message was sent by "Hankley, Chip" on Mon, 16 Sep 2002 09:02:17 -0500. > Sorry for the OT post... but I'm sure this is a common problem. > > I've downloaded about 350 MrSID DOQQs from the IL DNR, and now I want to > include them in a MapServer project. I'm facing doing a one-by-one > conversion using the MrSID GeoViewer (ugh). Anyone know of any batch > conversion options using free tools? > > TIA! > > Chip Hankley From Chip.Hankley at GASAI.Com Mon Sep 16 10:03:59 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 16 Sep 2002 12:03:59 -0500 Subject: [mapserver-users] OT: Batch Convert MrSID Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDB9@postoffice.GASAI.Com> Armin... that works pretty well... but I can't seem to figure out how to make it save geometry... either as a .tfw, or geotiff. Were you able to figure that out? Chip -----Original Message----- From: Armin Burger [mailto:armin.burger at libero.it] Sent: Monday, September 16, 2002 10:36 AM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] OT: Batch Convert MrSID Chip, The free image viewer IrfanView has plug-ins (separately to download) including MrSid support. It can do batch conversions. It's a bit slow reading MrSid and uses quite some memory but it works. Armin > Sorry for the OT post... but I'm sure this is a common problem. > I've downloaded about 350 MrSID DOQQs from the IL DNR, and now I want to > include them in a MapServer project. I'm facing doing a one-by-one > conversion using the MrSID GeoViewer (ugh). Anyone know of any batch > conversion options using free tools? > TIA! > Chip Hankley From steve.lime at dnr.state.mn.us Mon Sep 16 10:05:29 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 16 Sep 2002 12:05:29 -0500 Subject: [mapserver-users] Another MapServer Error Message needs file name Message-ID: Should be relative to SHAPEPATH. >>> 09/15/02 08:13AM >>> Steve Lime, I don't know if you changed this error message with the other ones, but it needs the file name that was trying to be read and if possible what the error was. Warning: MapServer Error in drawTIFF(): Error loading TIFF image. in /home/httpd/html/maplab-2.0rc3/htdocs/common/wrapper/drawmap.php on line 292 I suspect that this is a path problem, but I can't see what it was trying to open. Question: In a tileindex, if the LOCATION value is a relative path what is it relative to? the SHAPEPATH or some other random thing? -Steve From wzhang at c-cor.net Mon Sep 16 10:30:19 2002 From: wzhang at c-cor.net (Zhang, William) Date: Mon, 16 Sep 2002 13:30:19 -0400 Subject: [mapserver-users] Mapserver compile error Message-ID: <68107A9AF023EA439FF7CC2AD02D8FE503A518@pltnpo1.c-cor.com> Ivan, If you change "#include " to "#define R_OK 2", your problem should be solved. Hope it help. William -----Original Message----- From: Ivan Paoluzzi [mailto:tesimap at hotmail.com] Sent: Sunday, September 15, 2002 2:57 AM To: saengpole at excite.com; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Mapserver compile error Hi Krung, thanks for your help. In compiling gd, in makefile.nt I had just changed, in list of OBJS, gdft.c in gdft.obj; and gd_gif_in.obj gd_gif_out.obj gd_biggif_out.obj gd_lzw_out.obj are all present. And I have correct the bug in gd_wbmp.c But I have this list of error in gdft.c: cl -I c:\projects\zlib -I c:\projects\libpng -I c:\projects\libttf\lib - I c:\projects\libjpeg\src -O -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_TTF /c gdft.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. gdft.c C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2146: syntax error : mis sing ')' before identifier 'owner' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2081: 'uid_t' : name in formal parameter list illegal C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2061: syntax error : ide ntifier 'owner' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2059: syntax error : ',' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(38) : error C2059: syntax error : ')' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(48) : error C2061: syntax error : identifier 'fork' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(48) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(48) : error C2059: syntax error : 'type' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(50) : error C2061: syntax error : identifier 'getegid' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(50) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(50) : error C2059: syntax error : 'type' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(51) : error C2061: syntax error : identifier 'geteuid' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(51) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(51) : error C2059: syntax error : 'type' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(52) : error C2061: syntax error : ide ntifier 'getgid' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(52) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(52) : error C2059: syntax error : 'type' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(54) : error C2061: syntax error : identifier 'getpid' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(54) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(54) : error C2059: syntax error : 'type' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(55) : error C2061: syntax error : identifier 'getuid' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(55) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(55) : error C2059: syntax error : 'type' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(60) : error C2146: syntax error : missing ')' before identifier 'group' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(60) : error C2061: syntax error : ide ntifier 'group' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(60) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(60) : error C2059: syntax error : ')' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(61) : error C2146: syntax error : missing ')' before identifier 'user' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(61) : error C2061: syntax error : ide ntifier 'user' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(61) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(61) : error C2059: syntax error : ')' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2146: syntax error : missing ')' before identifier 'owner' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2081: 'uid_t' : name informal parameter list illegal C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2061: syntax error : identifier 'owner' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2059: syntax error : ',' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(69) : error C2059: syntax error : ')' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(74) : error C2146: syntax error : missing ')' before identifier 'group' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(74) : error C2061: syntax error : ide ntifier 'group' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(74) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(74) : error C2059: syntax error : ')' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(75) : error C2146: syntax error : missing ')' before identifier 'user' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(75) : error C2061: syntax error : identifier 'user' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(75) : error C2059: syntax error : ';' C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unistd.h(75) : error C2059: syntax error : ')' NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. ------- If I comment this section in gdft.c #ifndef MSWIN32 #include #else #define R_OK 2 #endif I haven't those errors and it compile gd; this is a problem? Sorry, I'm not a good C programmer... Ivan >From: "Krung Saengpole" >Reply-To: saengpole at excite.com >To: tesimap at hotmail.com >Subject: Re: [mapserver-users] Mapserver compile error >Date: Sat, 14 Sep 2002 00:43:44 -0400 (EDT) > > Hi Ivan, I used to have problems like you last week. In compiling >regex-0.12, you have to use command like: cl /c /DHAVE_STRING_H >/DREGEX_MALLOC regex.c And in gd compiling. Check again in makefile.nt that >gdft.c had changed to gdft.obj in OBJS = gd.obj gd_gd.obj ..... >.................................gdft.obj ................... near the end >of file. And another thing to do, if it wasn't there, if there are >gd_gif_in.obj, gd_gif_out.obj ,gd_biggif_out.obj and gd_lzw_out.obj in this >statement like the following: OBJS = gd.obj gd_gd.obj >.........gd_gif_in.obj gd_gif_out.obj gd_biggif_out.obj gd_lzw_out.obj >.....................................gdft.obj.............................. ... >Oh, I forgot to tell you that I used patched gd-1.8.4 version downloaded >from http://www.rime.com.au/gd. Again, don't forget to delete .obj file >before recompiling. And did you correct the known bugs as: In >gd_wbmp.c:change #include <gd.h>#include <gd_fonts.h> to >#include "gd.h"#include "gd_fonts.h" HTHKrung--- On Fri 09/13, Ivan >Paoluzzi < tesimap at hotmail.com > wrote:From: Ivan Paoluzzi [mailto: >tesimap at hotmail.com]To: assefa at dmsolutions.ca, >mapserver-users at lists.gis.umn.eduDate: Fri, 13 Sep 2002 17:12:03 >+0200Subject: Re: [mapserver-users] Mapserver compile errorHi,I have >removed the gd target from the makefile, as you have told.But I have a new >error:----------------cl /nologo /Zi -I../gd -I../tiff/libtiff >-I../libjpeg/src -I../proj/src-I../regex -I..\gdal/ogr/ogrsf_frmts >-I..\gdal/ogr -I..\gdal/ogr/../port -DHAVE_STRING_H -DREGEX_MALLOC >-DNEED_STRCASECMP -DNEED_STRNCASECMP -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_TTF -DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_WMS /c >mapserv.c /Fomapserv.objmapserv.clink /NODEFAULTLIB:libcd mapserv.obj >mapserver.lib ../gd/gd.lib ../libjpeg/src/libjpeg.lib ../libpng/libpng.lib >../zlib/zlib.lib ../libttf/lib/libttf.lib ../tiff/libtiff/libtiff.lib >../libjpeg/src/libjpeg.lib >../proj/src/proj.lib..\gdal/ogr/ogrsf_frmts/ogrsf_frmts.lib >..\gdal/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib ..\gdal/ogr/ogr.lib >..\gdal/ogr/../port/cpl.libMicrosoft (R) Incremental Linker Version >6.00.8168Copyright (C) Microsoft Corp 1992-1998. All rights >reserved.Creating library mapserv.lib and object >mapserv.expmapserver.lib(regex.obj) : error LNK2001: unresolved external >symbol _allocamapserver.lib(maputil.obj) : error LNK2001: unresolved >external symbol _gdImageWBMPgd.lib(gd.obj) : error LNK2001: unresolved >external symbol _gdCallocgd.lib(gd_jpeg.obj) : error LNK2001: unresolved >external symbol _gdCallocgd.lib(gd_io_ss.obj) : error LNK2001: unresolved >external symbol _gdMallocgd.lib(gd.obj) : error LNK2001: unresolved >external symbol _gdMallocgd.lib(gd_png.obj) : error LNK2001: unresolved >external symbol _gdMallocgd.lib(gd_io_file.obj) : error LNK2001: unresolved >external symbol _gdMallocgd.lib(gd_io_dp.obj) : error LNK2001: unresolved >external symbol _gdMallocgd.lib(gd_io_dp.obj) : error LNK2001: unresolved >external symbol _gdFreegd.lib(gd_io_ss.obj) : error LNK2001: unresolved >external symbol _gdFreegd.lib(gd.obj) : error LNK2001: unresolved external >symbol _gdFreegd.lib(gd_jpeg.obj) : error LNK2001: unresolved external >symbol _gdFreegd.lib(gd_png.obj) : error LNK2001: unresolved external >symbol _gdFreegd.lib(gd_io_file.obj) : error LNK2001: unresolved external >symbol _gdFreegd.lib(gd.obj) : error LNK2001: unresolved external symbol >_gdReallocgd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol >_gdReallocmapserv.exe : fatal error LNK1120: 6 unresolved externalsNMAKE : >fatal error U1077: 'link' : return code '0x460'Stop.---------------I think >to have compiled correctly gd, but I don't understand what's this extenal >symbol...Thanks in advanceIvan>From: Yewondwossen Assefa >To: Ivan >Paoluzzi >CC: mapserver-users at lists.gis.umn.edu>Subject: Re: >[mapserver-users] Mapserver compile error>Date: Thu, 12 Sep 2002 >14:05:59 -0400>>You actually do not need to compile gd from >mapserver. It was done for >earlier>versions of mapserver. I have >removed the gd target from the makefile.vc in >the>CVS version. If >your are not compiling from the CVS version, just remove >the>whole >gd target code as well as the MAKE_GD statement. (all you will need >is >to>link it with the GD library that you have compiled. Make sur that the >flags>GD_INC and GD_LIB are set properly in the >makefile)>>Later,>>Ivan Paoluzzi wrote:>> > Hi,> >> I want to compile MS 3.5 on Win XP, but I have this error message:> >>> > Microsoft (R) Program Maintenance Utility Version >6.00.8168.0> > Copyright (C) Microsoft Corp 1988-1998. All rights >reserved.> >> > cd gd> > NMAKE : fatal error U1077: 'cd' >: return code '0x1'> > Stop.> >> > ------> >> >> In makefile.vc I have changed> > gd::> > cd gd-1.2> >> nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)"> > cd ..> >>> > in> > gd:> > cd gd> > nmake /f makefile.nt >OPTFLAGS="$(OPTFLAGS)"> > cd ..> >> > but I have the same >problem.> > Where is the error?> > I have just compiled >correctly gd,freetype,proj,ecc. and I have changed >the> > path, >in makefile, of these package.> > I use gd-1.8.4 and this is in >c:\projects\gd> >> > Regards> > Ivan> >> > >_________________________________________________________________> > >Chiacchiera con gli amici online, prova MSN Messenger:> > >http://messenger.msn.it>>-->-------------------------------------- -------------------------->Assefa >Yewondwossen>Software Analyst>>Email: >assefa at dmsolutions.ca>http://www.dmsolutions.ca/>>Phone: (613) >565-5056 (ext 14)>Fax: (613) >565-0925>--------------------------------------------------------------- -_________________________________________________________________MSN >Foto ? il sistema pi? facile per condividere e stampare foto online: >http://photos.msn.it > >------------------------------------------------ >Changed your e-mail? Keep your contacts! Use this free e-mail change of >address service from Return Path. Register now! _________________________________________________________________ Chiacchiera con gli amici online, prova MSN Messenger: http://messenger.msn.it From ycnyon at pd.jaring.my Mon Sep 16 10:33:58 2002 From: ycnyon at pd.jaring.my (YC Nyon) Date: Tue, 17 Sep 2002 01:33:58 +0800 Subject: [mapserver-users] RE: ogr2ogr.exe needed Message-ID: <00d601c25da9$6719de80$6f40ba66@domain> Slightly off topic but is there a windows executable for ogr2ogr lying around. Be most grateful if you can post it to me. TIA Nyon From nhv at cape.com Mon Sep 16 11:05:55 2002 From: nhv at cape.com (Norman Vine) Date: Mon, 16 Sep 2002 14:05:55 -0400 Subject: [mapserver-users] RE: ogr2ogr.exe needed References: <00d601c25da9$6719de80$6f40ba66@domain> Message-ID: <005a01c25dab$b5a7d0a0$0100a8c0@sfdev3> YC Nyon writes: > Slightly off topic but is there a windows executable for ogr2ogr lying > around. > Be most grateful if you can post it to me. project home http://www.remotesensing.org/gdal/ Win32 dll && exe bundle ftp://ftp.remotesensing.org/pub/gdal/gdal-115a-ntbin.zip From mbp at geomtech.com Mon Sep 16 11:38:21 2002 From: mbp at geomtech.com (Mark Phillips) Date: Mon, 16 Sep 2002 13:38:21 -0500 Subject: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice Message-ID: <200209161838.NAA24884@wisdom.geomtech.com> Hi List, I'm interested in compiling a list of companies and individuals who provide MapServer support and development services. If you are such a company or individual, could you drop me a note? Is there such a list already in existence, by the way? If so, could somebody point me to it. If not, then Steve would you be open to adding a list to the MapServer web site? I'd be happy to compile the list. I'm also interested in hearing about options for hosting MapServer applications. Are there any companies out there that offer web hosting services that include MapServer capabilities? (Either directly, as an "official" part of what is offered, or indirectly, in the sense that customers get enough access to the server to install and use their own copy of MapServer)? The reason I'm interested in these things is that I'm currently doing some work for an environmental organization that wants to set up an interactive map on their web site. They are trying to decide between using ArcIMS and MapServer, and I am trying to advise them on this. I personally don't need to be convinced. I've developed several applications with MapServer and I love it. I can cite lots of ways that I think MapServer is technically superior to ArcIMS for what this organization needs. The folks who will make the decision, however, are non-technical administrator types and are somewhat uncomfortable going with a free software product that doesn't come with guaranteed support from a well-established company and an easily identifiable pool of programmers trained to use it. They're worried that if they use me to develop this application in MapServer, and down the road I move on to something else and am not available, they'll have a difficult time finding consultants with MapServer experience who can help them maintain and/or modify the application. Another consideration is that they'd like this project to be replicable. They'd like to be able to make the basic application, once it's developed, available to other environmental organizations. So a similar concern arises: even if I continue to provide MapServer support myself, there's only one of me. If a bunch of other organizations decide they want to deploy the application on their web sites, will they be able to find MapServer-qualified programmers who can help them? Will they be able to find an ISP who will host it, if they don't own their own server? I believe that the answers to these questions are all "yes", but I need hard eveidence. It would be helpful if I could point to a list of companies and/or individual consultants who provide MapServer support and development, and ISPs who will host MapServer applications, to make the case that MapServer is in fact a well-established product and that organizations who choose to invest in it will not find themselves stranded in the future. I'd also be interested in hearing any other thoughts, or stories about similar experiences, that people out there might have about the decision to go with MapServer vs ArcIMS. I'm mostly interested in things that would make sense to an administrator or manager, rather than technical details. (One obvious issue is cost, of course: ArcIMS costs $$ and MapSever is free. However in the particular case I'm dealing with right now, ESRI has donated a copy of ArcIMS.) Thanks in advance! --Mark Mark Phillips @ Geometry Technologies, LLC P.O. Box 1170, Black Mountain, NC 28711 Phone: 828-664-1748 mbp at geomtech.com http://www.geomtech.com From armin.burger at libero.it Mon Sep 16 15:42:41 2002 From: armin.burger at libero.it (Armin Burger) Date: Mon, 16 Sep 2002 23:42:41 +0100 Subject: [mapserver-users] OT: Batch Convert MrSID Message-ID: <200209162141.QAA06871@lists.gis.umn.edu> Chip, if the image size/geometry remains the same for the produced tiffs (that's what I suppose) then you can do this manually. The world files should be identical for tiffs and MrSid. Copy the *.sdw files to your output directory with the tiff files and change their name at the dos prompt # rename *.sdw *.tfw armin > Armin... that works pretty well... but I can't seem to figure out how to > make it save geometry... either as a .tfw, or geotiff. Were you able to > figure that out? > Chip > -----Original Message----- > From: Armin Burger [mailto:armin.burger at libero.it] > Sent: Monday, September 16, 2002 10:36 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] OT: Batch Convert MrSID > Chip, > The free image viewer IrfanView has plug-ins (separately to download) > including MrSid support. It can do batch conversions. It's a bit slow > reading MrSid and uses quite some memory but it works. > Armin >> Sorry for the OT post... but I'm sure this is a common problem. >> I've downloaded about 350 MrSID DOQQs from the IL DNR, and now I want > to >> include them in a MapServer project. I'm facing doing a one-by-one >> conversion using the MrSID GeoViewer (ugh). Anyone know of any batch >> conversion options using free tools? >> TIA! >> Chip Hankley From DMartin at erac.com Mon Sep 16 15:36:57 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 16 Sep 2002 17:36:57 -0500 Subject: [mapserver-users] RE: ogr2ogr.exe needed Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F310@STL-EXBE-I03.corp.erac.com> Yes, it's distributed with the Windows binary GDAL package available at: http://www.remotesensing.org/gdal/ Look for the link labeled "MS Windows NT/95/98". -Dan Martin -----Original Message----- From: YC Nyon [mailto:ycnyon at pd.jaring.my] Sent: Monday, September 16, 2002 12:34 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] RE: ogr2ogr.exe needed Slightly off topic but is there a windows executable for ogr2ogr lying around. Be most grateful if you can post it to me. TIA Nyon From john1zastrow at yahoo.com Mon Sep 16 15:50:07 2002 From: john1zastrow at yahoo.com (John Zastrow) Date: Mon, 16 Sep 2002 15:50:07 -0700 (PDT) Subject: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice In-Reply-To: <200209161838.NAA24884@wisdom.geomtech.com> Message-ID: <20020916225007.23124.qmail@web13604.mail.yahoo.com> Mark and List, I'm a similar boat, except that it's my own group that I'd be 'selling' Mapserver to. It's my impression that for small to moderate sized projects, mapserver does just fine. But moderate to semi-large projects (size being user load and data load) one needs to use a commercial map server (ArcIMS on Oracle). Has anyone done a feature matrix of the various mapsevers out there? I just started lurking on this list. Standard apologies if this has been covered already. I'd be interested to see Mark's compilation and information from folks who have comparative information. --- Mark Phillips wrote: > Hi List, > > I'm interested in compiling a list of companies and individuals who > provide MapServer support and development services. If you are such a > company or individual, could you drop me a note? __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com From mcilhagga at dmsolutions.ca Mon Sep 16 16:11:00 2002 From: mcilhagga at dmsolutions.ca (Dave McIlhagga) Date: Mon, 16 Sep 2002 19:11:00 -0400 Subject: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice References: <20020916225007.23124.qmail@web13604.mail.yahoo.com> Message-ID: <3D866504.3030304@dmsolutions.ca> John, In fact, there are numerous examples that if anything may indicate the contrary. Ourselves, we have been involved with a project that can comfortably generate over 100,000 map draws a day. There was also an example a couple of years ago covering the Canadian Federal election where a MapServer based application was the only one able to handle the enormous traffic that resulted. I believe there are a few other groups using MapServer on this list who have also indicated that they have been using it for high volumes. I'm not sure if anyone has done a thorough comparison of ArcIMS with Oracle vs. MapServer with either tuned flat files, connection to Oracle Spatial, SDE or PostGIS, but I suspect that MapServer would come out on top hands down. Now that this has been brought up - has anyone done any kind of benchmarking like this? I'd love to have that at my disposal in the ongoing argument to potential clients for using MapServer. Dave John Zastrow wrote: > Mark and List, > > I'm a similar boat, except that it's my own group that I'd be 'selling' > Mapserver to. It's my impression that for small to moderate sized projects, > mapserver does just fine. But moderate to semi-large projects (size being user > load and data load) one needs to use a commercial map server (ArcIMS on > Oracle). > > Has anyone done a feature matrix of the various mapsevers out there? I just > started lurking on this list. Standard apologies if this has been covered > already. I'd be interested to see Mark's compilation and information from folks > who have comparative information. > > > --- Mark Phillips wrote: > >>Hi List, >> >>I'm interested in compiling a list of companies and individuals who >>provide MapServer support and development services. If you are such a >>company or individual, could you drop me a note? > > > __________________________________________________ > Do you Yahoo!? > Yahoo! News - Today's headlines > http://news.yahoo.com > -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca EMail : mcilhagga at dmsolutions.ca Phone : 613-565-5056 x15 Fax : 613-565-0925 From ed at topozone.com Mon Sep 16 16:45:18 2002 From: ed at topozone.com (Ed McNierney) Date: Mon, 16 Sep 2002 19:45:18 -0400 Subject: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice Message-ID: <13858AA1A74F30419F319ACB66A9D12201942C@mercator.topozone.com> John - If anyone's interested in talking to me about the suitability of MapServer in "moderate to semi-large projects" I would be happy to do so. That's not a "feature matrix" sort of discussion, but I have built and host MapServer applications serving multiple terabytes of data and apps with hundreds of thousands of maps per day. I'm not going to write up some sales pitch document about how MapServer works wonders, because I think large-scale applications deployment involves understanding a lot of things above and beyond which application to choose. I'm sure I could choke MapServer on a few hundred kilobytes of data if I organized it badly enough and screwed up the server config to match. So if someone does want to discuss large-scale MapServer applications, they're going to need to be able to describe both the application and the data! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 (978) 251-4242 ed at topozone.com -----Original Message----- From: John Zastrow [mailto:john1zastrow at yahoo.com] Sent: Monday, September 16, 2002 6:50 PM To: Mark Phillips; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice Mark and List, I'm a similar boat, except that it's my own group that I'd be 'selling' Mapserver to. It's my impression that for small to moderate sized projects, mapserver does just fine. But moderate to semi-large projects (size being user load and data load) one needs to use a commercial map server (ArcIMS on Oracle). Has anyone done a feature matrix of the various mapsevers out there? I just started lurking on this list. Standard apologies if this has been covered already. I'd be interested to see Mark's compilation and information from folks who have comparative information. --- Mark Phillips wrote: > Hi List, > > I'm interested in compiling a list of companies and individuals who > provide MapServer support and development services. If you are such a > company or individual, could you drop me a note? __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com From alvaro_delgado at placerdome.com Mon Sep 16 16:14:40 2002 From: alvaro_delgado at placerdome.com (Alvaro Delgado) Date: Mon, 16 Sep 2002 20:14:40 -0300 Subject: [mapserver-users] Java Runtime Message-ID: <88256C37.000102E8.00@notes.electric.net> Hi there : I -------------- next part -------------- ?m new user for Map server. First of all thanks, the product is really good ( I work in the past with ArcIMS and MapinfoMaxtreme ) I get running the 3.6.1 version at no problems ( Under IIS5.0 / W2K server), but when I try to display a map in a computer with Java Enterprise Edition installed, the Browser send a Error message and no map is displayed. Any comments ? Do someone have the binary for windows with OGR ( Mapinfo Tab ) and SDE ? Thanks, Gato From yecarrillo at hotmail.com Mon Sep 16 18:28:57 2002 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Mon, 16 Sep 2002 20:28:57 -0500 Subject: [mapserver-users] postgis and setfilter Message-ID: I want to contribute this working code to filter layers with postgis(0.7.2) and mapscript(3.5) with more than one column. (Note the parentesis) I hope this help to somebody... $poLayer = $gpoMap->getlayerbyname(puntos); $poLayer->setFilter("(codedif=3) AND (codpiso=3)"); ---------------------------- Eduin Yesid Carrillo Ingeniero Civil Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________ MSN. M?s ?til cada D?a. http://www.msn.es/intmap/ From drew at Zhrodague.net Mon Sep 16 20:28:41 2002 From: drew at Zhrodague.net (Drew from Zhrodague) Date: Mon, 16 Sep 2002 23:28:41 -0400 (EDT) Subject: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice In-Reply-To: <3D866504.3030304@dmsolutions.ca> Message-ID: > I believe there are a few other groups using MapServer on this list who > have also indicated that they have been using it for high volumes. > > I'm not sure if anyone has done a thorough comparison of ArcIMS with > Oracle vs. MapServer with either tuned flat files, connection to Oracle > Spatial, SDE or PostGIS, but I suspect that MapServer would come out on > top hands down. > > Now that this has been brought up - has anyone done any kind of > benchmarking like this? I'd love to have that at my disposal in the > ongoing argument to potential clients for using MapServer. We'd be interested in doing some sort of benchmarking, I know we get over 1500 map-draws a day, our (tuned) maps are about 6-gigs in size including the data uploaded by our users. I am personally impressed with the package, and can't say enough nice things about it, even to people who don't care! -- drew at zhrodague.net http://mapserver.zhrodague.net "We put WiFi on the Map!" From bon at ivv-aachen.de Mon Sep 16 23:50:13 2002 From: bon at ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Tue, 17 Sep 2002 08:50:13 +0200 Subject: [mapserver-users] RE: template file links with a "?" in it Message-ID: <000801c25e16$7a016b40$1a01a8c0@ivvaachen.de> Thanks for the reply. You were right that the ? is not the problem. I checked the URL and it works fine now. :-) Nicole -----Urspr?ngliche Nachricht----- Von: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Gesendet: Samstag, 14. September 2002 19:01 An: bon at ivv-aachen.de; mapserver-users at lists.gis.umn.edu Betreff: Re: [mapserver-users] template file links with a "?" in it The ? isn't the problem. That functionality is amongst the oldest in MapServer and I use it all the time. It's got to be something else. What does the full layer definition look like? Template checks for URLs just look at the protocol and nothing more. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nicole B?meke 09/12/02 10:28AM >>> I want to link different points in my map with different html files. It works fine if I give each html file a name that contains the point ID and use the following template file link for the point query: TEMPLATE "http://[host]/mapserv3.6_rrp_appl_NRW/[ID].html" :-) But what I really want to do is linking an active server pages file with each point. The asp file gets the point ID and creates the specific html file for the point by requesting information from an SQL database. I replaced the template file link above by the following link but got the error message "Malformed template name". TEMPLATE "http://[host]/Sehenswuerdigkeiten.asp?dbspalte=[ID]" :-( It seams as if it is not possible to have template file links with a "?" in it. Is there another way to tell the asp file the ID of the selected point? Thanks Nicole ============================= Nicole B?meke bon at ivv-aachen.de IVV-Aachen, Germany From miroslav.sodja at gov.si Tue Sep 17 06:50:01 2002 From: miroslav.sodja at gov.si (Miroslav Sodja) Date: Tue, 17 Sep 2002 15:50:01 +0200 Subject: [mapserver-users] Compile problem Message-ID: <000001c25e51$1e3077d0$24b1000a@arao.gov.si> I compiled (in fact my webmaster did that) mapserv on linux with: [user at host user]$ ./configure --without-jpeg --without-eppl [user at host user]$ make When I try to run mapserv: [user at host user]$ ./mapserv This script can only be used to decode from result and should be innitiated as a CGI process via a httpd server. I try included library: [user at host user]$ ldd mapserv libgd.so => /usr/lib/libgd.so (0x4001a000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40071000) libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x4008f000) libpng.so.3 => /usr/lib/libpng.so.3 (0x400d3000) libz.so.1 => /usr/lib/libz.so.1 (0x400fe000) libpdf.so.1 => /usr/local/lib/libpdf.so.1 (0x4010d000) libtiff.so.3 => /usr/lib/libtiff.so.3 (0x4019e000) libm.so.6 => /lib/libm.so.6 (0x401df000) libc.so.6 => /lib/libc.so.6 (0x40200000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Everything looks fine, but when I run browser like http://www.go2ing.com/cgi-bin/mapserv the result is not "No query information to decode. QUERY_STRING is set, but empty." The result is very confused and looks like: ELF?!4?P4 ( 44?4?AA???????~~?  ?oe ?"? ? ?? /lib/ld-linux.so.2 Any idea? Thank you, Miro Sodja e-mail: miroslav.sodja at gov.si From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Tue Sep 17 09:20:02 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Tue, 17 Sep 2002 12:20:02 -0400 Subject: [mapserver-users] Compile problem Message-ID: <7CDD7B94357FD5119E800002A537C46E230326@s5-ccr-r1.ccrs.nrcan.gc.ca> This result is normal. You have to pass mapserver at the very least a mapfile, and possibly a template file. You can try running "mapserv -v" to see the options it was compiled with for example. QUERY_STRING is the parameters you should pass the server (i.e. "?map=mymapfile.map") For a place to start, try checking out the demo. Cheers, J.F. -----Original Message----- From: Miroslav Sodja [mailto:miroslav.sodja at gov.si] Sent: Tuesday, September 17, 2002 9:50 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Compile problem I compiled (in fact my webmaster did that) mapserv on linux with: [user at host user]$ ./configure --without-jpeg --without-eppl [user at host user]$ make When I try to run mapserv: [user at host user]$ ./mapserv This script can only be used to decode from result and should be innitiated as a CGI process via a httpd server. I try included library: [user at host user]$ ldd mapserv libgd.so => /usr/lib/libgd.so (0x4001a000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40071000) libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x4008f000) libpng.so.3 => /usr/lib/libpng.so.3 (0x400d3000) libz.so.1 => /usr/lib/libz.so.1 (0x400fe000) libpdf.so.1 => /usr/local/lib/libpdf.so.1 (0x4010d000) libtiff.so.3 => /usr/lib/libtiff.so.3 (0x4019e000) libm.so.6 => /lib/libm.so.6 (0x401df000) libc.so.6 => /lib/libc.so.6 (0x40200000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Everything looks fine, but when I run browser like http://www.go2ing.com/cgi-bin/mapserv the result is not "No query information to decode. QUERY_STRING is set, but empty." The result is very confused and looks like: ELF?!4?P4 ( 44?4?AA???????~~?  ?oe ?"? ? ?? /lib/ld-linux.so.2 Any idea? Thank you, Miro Sodja e-mail: miroslav.sodja at gov.si From Chip.Hankley at GASAI.Com Tue Sep 17 10:40:55 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Tue, 17 Sep 2002 12:40:55 -0500 Subject: [mapserver-users] GROUP layers in PHP MapScript Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDC7@postoffice.GASAI.Com> I'm confused about how GROUP is treated in PHP MapScript. In CGI, I can control the display of multiple layers if I refer to their group name, correct? (According to the docs..."The group name can then be reference as a regular layer name in the template files, allowing to do things like turning on and off a group of layers at once"). The only way I can seem to replicate this behavior in MapScript is to reference each of the individual layers (by name or index)... am I missing something? Is there some way with one command to turn off (or on) multiple layers in the same 'group.' Chip Hankley From gisweb at lmi.net Tue Sep 17 11:07:01 2002 From: gisweb at lmi.net (gisweb at lmi.net) Date: Tue, 17 Sep 2002 11:07:01 -0700 Subject: [mapserver-users] Variations in label behavior between Mapserver 3.6.1 on Windows 2000 vs. FreeBSD UNIX Message-ID: <1032286021.3d876f4551a34@webmail.lmi.net> Hi List, Any suggestions for how to resolve variations in label behavior between Mapserver 3.6.1 on Windows 2000 vs. FreeBSD UNIX? The Windows 2000 version of Mapserver produces correct labels that match their streets' angles. The FreeBSD version of Mapserver produces incorrect angles--flipped or mirrored or both?--as shown in the following web page: http://www.giswebsite.com/gis/problems/ Possible reason... An email in the archive (from 2000) suggests that older versions of GD can cause this kind of behavior. There are two versions of GD on the FreeBSD machine, both below the /usr/local directory. One was installed in 1998, and the other July 17th of 2002. The July 17th, 2002, version files are in /usr/local/include/* and the 1998 version files are in /usr/local/include/gd/*. When I specify --with-gd=/usr/local/include in the configure instructions, the GD libraries stored in the /usr/local/lib directory are thought to be missing, so the configure fails. The configure works when no directory path is specified. Any suggestions? Jonathan W. Lowe From steve.lime at dnr.state.mn.us Tue Sep 17 12:32:35 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 17 Sep 2002 14:32:35 -0500 Subject: [mapserver-users] Variations in label behavior between Mapserver 3.6.1 on Windows 2000 vs. FreeBSD U Message-ID: Ugh! What versions of GD/Freetype on each platform? >>> 09/17/02 01:07PM >>> Hi List, Any suggestions for how to resolve variations in label behavior between Mapserver 3.6.1 on Windows 2000 vs. FreeBSD UNIX? The Windows 2000 version of Mapserver produces correct labels that match their streets' angles. The FreeBSD version of Mapserver produces incorrect angles--flipped or mirrored or both?--as shown in the following web page: http://www.giswebsite.com/gis/problems/ Possible reason... An email in the archive (from 2000) suggests that older versions of GD can cause this kind of behavior. There are two versions of GD on the FreeBSD machine, both below the /usr/local directory. One was installed in 1998, and the other July 17th of 2002. The July 17th, 2002, version files are in /usr/local/include/* and the 1998 version files are in /usr/local/include/gd/*. When I specify --with-gd=/usr/local/include in the configure instructions, the GD libraries stored in the /usr/local/lib directory are thought to be missing, so the configure fails. The configure works when no directory path is specified. Any suggestions? Jonathan W. Lowe From woodbri at swoodbridge.com Tue Sep 17 12:41:08 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 17 Sep 2002 15:41:08 -0400 Subject: [mapserver-users] Variations in label behavior between Mapserver 3.6.1 on Windows 2000 vs. FreeBSD UNIX In-Reply-To: <1032286021.3d876f4551a34@webmail.lmi.net> Message-ID: <3D874D14.20713.1394F53@localhost> This is caused most like;y by the fact that FreeBSD probably has freetype 2.0 loaded instead of freetype-1.3.1. freetype 2.0 is very broken :( for mapserver needs. -Steve W. On 17 Sep 2002 at 11:07, gisweb at lmi.net wrote: > > Hi List, > > Any suggestions for how to resolve variations in label behavior > between Mapserver 3.6.1 on Windows 2000 vs. FreeBSD UNIX? The Windows > 2000 version of Mapserver produces correct labels that match their > streets' angles. The FreeBSD version of Mapserver produces incorrect > angles--flipped or mirrored or both?--as shown in the following web > page: http://www.giswebsite.com/gis/problems/ > > Possible reason... An email in the archive (from 2000) suggests that > older versions of GD can cause this kind of behavior. There are two > versions of GD on the FreeBSD machine, both below the /usr/local > directory. One was installed in 1998, and the other July 17th of > 2002. The July 17th, 2002, version files are in /usr/local/include/* > and the 1998 version files are in /usr/local/include/gd/*. When I > specify --with-gd=/usr/local/include in the configure instructions, > the GD libraries stored in the /usr/local/lib directory are thought to > be missing, so the configure fails. The configure works when no > directory path is specified. > > Any suggestions? > > Jonathan W. Lowe > From gis at farmvilleva.com Tue Sep 17 13:17:27 2002 From: gis at farmvilleva.com (John M. Duggan, LSIT) Date: Tue, 17 Sep 2002 16:17:27 -0400 Subject: [mapserver-users] Variations in label behavior Message-ID: <001d01c25e87$3fbf4210$20f619d0@JMDSurvey> I'm having almost the same problem, but mine seems to be treating every letter separate. John M. Duggan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DEMO103229340917535.gif Type: image/gif Size: 26588 bytes Desc: not available URL: From Chip.Hankley at GASAI.Com Tue Sep 17 13:29:32 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Tue, 17 Sep 2002 15:29:32 -0500 Subject: [mapserver-users] Projection Help (Please) Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDC8@postoffice.GASAI.Com> I'm having a heck of a time getting a projected layer to work. Here's the FGDC projection description, and then my PROJ description. Can anyone see what's wrong? Basically, it's just not showing up. The mapfile projection is UTM16 (NAD83). I have a UTM15 layer that is in the mapfile that is re-projecting fine... so I think it has something to do with this one layers PROJ definition.... TIA Chip Horizontal_Coordinate_System_Definition: Planar: Map_Projection: Map_Projection_Name: Lambert Conformal Conic Lambert_Conformal_Conic: Standard_Parallel: 33 0 0.000 Standard_Parallel: 45 0 0.000 Longitude_of_Central_Meridian: -89 30 0.000 Latitude_of_Projection_Origin: 33 0 0.000 False_Easting: 914400.00000 meters False_Northing: 0.00000 Planar_Coordinate_Information: Planar_Coordinate_Encoding_Method: coordinate pair Coordinate_Representation: Abscissa_Resolution: unknown Ordinate_Resolution: unknown Planar_Distance_Units: feet Geodetic_Model: Horizontal_Datum_Name: NAD27 Ellipsoid_Name: CLARKE1866 Semi-major_Axis: 6378206.4 meters Denominator_of_Flattening_Ratio: 294.98 PROJECTION "proj=lcc" "lat_1=45.000000000" "lat_2=33.000000000" "lat_0=33.000000000" "lon_0=-89.5000000000" "x_0=914400.00000" "y_0=0.000" "ellps=clrk66" "datum=NAD27" "to_meter=0.3048006096" "no_defs" END From gisweb at lmi.net Tue Sep 17 13:54:09 2002 From: gisweb at lmi.net (gisweb at lmi.net) Date: Tue, 17 Sep 2002 13:54:09 -0700 Subject: [mapserver-users] Variations in label behavior between Mapserver 3.6.1 on Windows 2000 vs. FreeBSD UNIX In-Reply-To: <3D874D14.20713.1394F53@localhost> References: <3D874D14.20713.1394F53@localhost> Message-ID: <1032296049.3d879671ac287@webmail.lmi.net> Steve and Steve, Thanks for your responses. The sys-admin reports that the version of GD is 1.84 and the version of freetype is 2.1. If Steve Woodbridge's comment about Freetype 2.0 holds true for Freetype 2.1 as well, that looks like the root of the problem, yes? - Jonathan Quoting Steve Lime : Ugh! What versions of GD/Freetype on each platform? Quoting woodbri at swoodbridge.com: > This is caused most like;y by the fact that FreeBSD probably has > freetype 2.0 loaded instead of freetype-1.3.1. freetype 2.0 is very > broken :( for mapserver needs. > > -Steve W. > > On 17 Sep 2002 at 11:07, gisweb at lmi.net wrote: > > > > > Hi List, > > > > Any suggestions for how to resolve variations in label behavior > > between Mapserver 3.6.1 on Windows 2000 vs. FreeBSD UNIX? The Windows > > 2000 version of Mapserver produces correct labels that match their > > streets' angles. The FreeBSD version of Mapserver produces incorrect > > angles--flipped or mirrored or both?--as shown in the following web > > page: http://www.giswebsite.com/gis/problems/ > > > > Possible reason... An email in the archive (from 2000) suggests that > > older versions of GD can cause this kind of behavior. There are two > > versions of GD on the FreeBSD machine, both below the /usr/local > > directory. One was installed in 1998, and the other July 17th of > > 2002. The July 17th, 2002, version files are in /usr/local/include/* > > and the 1998 version files are in /usr/local/include/gd/*. When I > > specify --with-gd=/usr/local/include in the configure instructions, > > the GD libraries stored in the /usr/local/lib directory are thought to > > be missing, so the configure fails. The configure works when no > > directory path is specified. > > > > Any suggestions? > > > > Jonathan W. Lowe > > > > > > From eichin at thok.org Tue Sep 17 14:35:05 2002 From: eichin at thok.org (Mark Eichin) Date: 17 Sep 2002 17:35:05 -0400 Subject: [mapserver-users] Compile problem In-Reply-To: "Miroslav Sodja"'s message of "Tue, 17 Sep 2002 15:50:01 +0200" References: <000001c25e51$1e3077d0$24b1000a@arao.gov.si> Message-ID: > ^?ELF^A^A^A^B^C... That's the signature of an ELF executable -- your web server is probably failing to run mapserv as a cgi, but is instead handing the cgi itself to you as a file... From steve.lime at dnr.state.mn.us Tue Sep 17 14:50:00 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 17 Sep 2002 16:50:00 -0500 Subject: [mapserver-users] Variations in label behavior Message-ID: I've seen this before but only with freetype 2. It's likely a GD-Freetype issue. Perhaps its fixed in gd-2.0, but I haven't checked. You're best off still using Freetype 1. This is not a mapserver issue per se... Steve >>> "John M. Duggan, LSIT" 09/17/02 03:17PM >>> I'm having almost the same problem, but mine seems to be treating every letter separate. John M. Duggan From TMitchell at lignum.com Tue Sep 17 16:37:01 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 17 Sep 2002 16:37:01 -0700 Subject: BENCHMARKING (was: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice) Message-ID: I too would be interested in discussing benchmarks - obviously, we would first have to develop the criteria that goes into a benchmark. What kinds of processes or functions would need to be done? Off the top of my head: -time (t) from request to image output (has anyone already created php scripts, etc. to benchmark mapserver like this - I'd bet someone has!) -average t / # of requests / min -what else...? |---------+---------------------------------------> | | Dave McIlhagga | | | | | | Sent by: | | | owner-mapserver-users at lists.| | | gis.umn.edu | | | | | | | | | 09/16/2002 04:11 PM | | | | |---------+---------------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: john1zastrow at yahoo.com | | cc: Mark Phillips , mapserver-users at lists.gis.umn.edu | | Fax to: | | Subject: Re: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice | >--------------------------------------------------------------------------------------------------------------------------------------------------| John, In fact, there are numerous examples that if anything may indicate the contrary. Ourselves, we have been involved with a project that can comfortably generate over 100,000 map draws a day. There was also an example a couple of years ago covering the Canadian Federal election where a MapServer based application was the only one able to handle the enormous traffic that resulted. I believe there are a few other groups using MapServer on this list who have also indicated that they have been using it for high volumes. I'm not sure if anyone has done a thorough comparison of ArcIMS with Oracle vs. MapServer with either tuned flat files, connection to Oracle Spatial, SDE or PostGIS, but I suspect that MapServer would come out on top hands down. Now that this has been brought up - has anyone done any kind of benchmarking like this? I'd love to have that at my disposal in the ongoing argument to potential clients for using MapServer. Dave John Zastrow wrote: > Mark and List, > > I'm a similar boat, except that it's my own group that I'd be 'selling' > Mapserver to. It's my impression that for small to moderate sized projects, > mapserver does just fine. But moderate to semi-large projects (size being user > load and data load) one needs to use a commercial map server (ArcIMS on > Oracle). > > Has anyone done a feature matrix of the various mapsevers out there? I just > started lurking on this list. Standard apologies if this has been covered > already. I'd be interested to see Mark's compilation and information from folks > who have comparative information. > > > --- Mark Phillips wrote: > >>Hi List, >> >>I'm interested in compiling a list of companies and individuals who >>provide MapServer support and development services. If you are such a >>company or individual, could you drop me a note? > > > __________________________________________________ > Do you Yahoo!? > Yahoo! News - Today's headlines > http://news.yahoo.com > -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca EMail : mcilhagga at dmsolutions.ca Phone : 613-565-5056 x15 Fax : 613-565-0925 From woodbri at swoodbridge.com Tue Sep 17 17:09:11 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 17 Sep 2002 20:09:11 -0400 Subject: BENCHMARKING (was: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice) In-Reply-To: Message-ID: <3D878BE7.29067.22EB74B@localhost> I have already used a tool call Siege see http://www.joedog.org/siege/index.shtml that works great at simulating multiple users, etc. The key is to come up with a set of urls the you can execute in sequence or randomly that simulate user activity. The way I did this was to generate random hits at different location over the spatial area of the map and at random zoom scales. This seemed to work well and to avoid problems like getting all your hits out of the files system cache which is about 10-20 times faster than out of cache hits. Siege measures the user response times of the server. I ran tests both from the server (Siege itself does not generate much load on the system) and from a remote host to compare results to look at the potential impact on network latency. For diagnostic evaluation of how time was being spend on the server I wrote a simple shell script like: time --append -o /path/to/logfile /path/to/php $* and then analyzed the logfile to look at the process stats. This information is only good for a given configuration but can be used to tune it and to predict what the maximum potential through put is going to be. If you could standardize a dataset and mapfile configuration, it would be possible to compare mapserver version to version if you keep the hardware config the same, or evaluate hardware configs, if you keep mapserver version constant. There are probably a few other things that need to be monitored also, but you probably already know that. Just my $0.02, -Steve W. On 17 Sep 2002 at 16:37, Tyler Mitchell wrote: > > I too would be interested in discussing benchmarks - obviously, we > would first have to develop the criteria that goes into a benchmark. > What kinds of processes or functions would need to be done? Off the > top of my head: -time (t) from request to image output (has anyone > already created php scripts, etc. to benchmark mapserver like this - > I'd bet someone has!) -average t / # of requests / min -what else...? > > > |---------+---------------------------------------> > | | Dave McIlhagga | > | | | > | | Sent by: | > | | owner-mapserver-users at lists.| > | | gis.umn.edu | > | | | > | | | > | | 09/16/2002 04:11 PM | > | | | > |---------+---------------------------------------> > >------------------------------------------------------------------- > -------------------------------------------------------------------- > -----------| | | | To: > john1zastrow at yahoo.com | | > cc: Mark Phillips , > mapserver-users at lists.gis.umn.edu > | | Fax to: | | > Subject: Re: [mapserver-users] professional MapServer services > list? / ArcIMS-MapServer choice | > >------------------------------------------------------------------- > -------------------------------------------------------------------- > -----------| > > > > > John, > > In fact, there are numerous examples that if anything may indicate the > contrary. Ourselves, we have been involved with a project that can > comfortably generate over 100,000 map draws a day. There was also an > example a couple of years ago covering the Canadian Federal election > where a MapServer based application was the only one able to handle > the enormous traffic that resulted. > > I believe there are a few other groups using MapServer on this list > who have also indicated that they have been using it for high volumes. > > I'm not sure if anyone has done a thorough comparison of ArcIMS with > Oracle vs. MapServer with either tuned flat files, connection to > Oracle Spatial, SDE or PostGIS, but I suspect that MapServer would > come out on top hands down. > > Now that this has been brought up - has anyone done any kind of > benchmarking like this? I'd love to have that at my disposal in the > ongoing argument to potential clients for using MapServer. > > Dave > > > > John Zastrow wrote: > > Mark and List, > > > > I'm a similar boat, except that it's my own group that I'd be > > 'selling' Mapserver to. It's my impression that for small to > > moderate sized > projects, > > mapserver does just fine. But moderate to semi-large projects (size > > being > user > > load and data load) one needs to use a commercial map server (ArcIMS > > on Oracle). > > > > Has anyone done a feature matrix of the various mapsevers out there? > > I > just > > started lurking on this list. Standard apologies if this has been > > covered already. I'd be interested to see Mark's compilation and > > information from > folks > > who have comparative information. > > > > > > --- Mark Phillips wrote: > > > >>Hi List, > >> > >>I'm interested in compiling a list of companies and individuals who > >>provide MapServer support and development services. If you are such > >>a company or individual, could you drop me a note? > > > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! News - Today's headlines > > http://news.yahoo.com > > > > > -- > Dave McIlhagga > President, DM Solutions Group > > http://www.dmsolutions.ca > EMail : mcilhagga at dmsolutions.ca > Phone : 613-565-5056 x15 > Fax : 613-565-0925 > > > > > > > > From spencer at dmsolutions.ca Tue Sep 17 18:14:36 2002 From: spencer at dmsolutions.ca (Paul Spencer) Date: Tue, 17 Sep 2002 21:14:36 -0400 Subject: BENCHMARKING (was: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice) References: Message-ID: <3D87D37C.7080306@dmsolutions.ca> Tyler, for php there is a package called dbg (http://dd.cron.ru/dbg/) that provides debugging and profiling support. My interest in this package stems from trying to optimize maplab using the profiler. We abandoned the package early on because we couldn't get a stable front end for it. Recently, the author added a php-accessible interface for retrieving profiling results and we tried it again with some success. We were able to pin-point a problem in our code and identify that amap was taking several seconds to draw. Unfortunately, it didn't tell us what was wrong with the map file, so we resorted to hacking mapserver to find the layer that was causing the problem. All that to say that you can now quite easily profile a php application. I would suggest that for a benchmarking process to be useful it has to be compared to other products under the same conditions. I believe some else pointed out that with poor data and poor server configuration, it would be easy to bring mapserver to a grinding halt (as with any other product as well). I also think that a benchmark should try to equalize results based on different data, hardware, web servers, etc but I have no idea how one would approach that. Cheers, Paul Tyler Mitchell wrote: > I too would be interested in discussing benchmarks - obviously, we would > first have to develop the criteria that goes into a benchmark. What kinds > of processes or functions would need to be done? > Off the top of my head: > -time (t) from request to image output (has anyone already created php > scripts, etc. to benchmark mapserver like this - I'd bet someone has!) > -average t / # of requests / min > -what else...? > > > |---------+---------------------------------------> > | | Dave McIlhagga | > | | | > | | Sent by: | > | | owner-mapserver-users at lists.| > | | gis.umn.edu | > | | | > | | | > | | 09/16/2002 04:11 PM | > | | | > |---------+---------------------------------------> > >--------------------------------------------------------------------------------------------------------------------------------------------------| > | | > | To: john1zastrow at yahoo.com | > | cc: Mark Phillips , mapserver-users at lists.gis.umn.edu | > | Fax to: | > | Subject: Re: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice | > >--------------------------------------------------------------------------------------------------------------------------------------------------| > > > > > John, > > In fact, there are numerous examples that if anything may indicate the > contrary. Ourselves, we have been involved with a project that can > comfortably generate over 100,000 map draws a day. There was also an > example a couple of years ago covering the Canadian Federal election > where a MapServer based application was the only one able to handle the > enormous traffic that resulted. > > I believe there are a few other groups using MapServer on this list who > have also indicated that they have been using it for high volumes. > > I'm not sure if anyone has done a thorough comparison of ArcIMS with > Oracle vs. MapServer with either tuned flat files, connection to Oracle > Spatial, SDE or PostGIS, but I suspect that MapServer would come out on > top hands down. > > Now that this has been brought up - has anyone done any kind of > benchmarking like this? I'd love to have that at my disposal in the > ongoing argument to potential clients for using MapServer. > > Dave > > > > John Zastrow wrote: > >>Mark and List, >> >>I'm a similar boat, except that it's my own group that I'd be 'selling' >>Mapserver to. It's my impression that for small to moderate sized > > projects, > >>mapserver does just fine. But moderate to semi-large projects (size being > > user > >>load and data load) one needs to use a commercial map server (ArcIMS on >>Oracle). >> >>Has anyone done a feature matrix of the various mapsevers out there? I > > just > >>started lurking on this list. Standard apologies if this has been covered >>already. I'd be interested to see Mark's compilation and information from > > folks > >>who have comparative information. >> >> >>--- Mark Phillips wrote: >> >> >>>Hi List, >>> >>>I'm interested in compiling a list of companies and individuals who >>>provide MapServer support and development services. If you are such a >>>company or individual, could you drop me a note? >> >> >>__________________________________________________ >>Do you Yahoo!? >>Yahoo! News - Today's headlines >>http://news.yahoo.com >> > > > > -- > Dave McIlhagga > President, DM Solutions Group > > http://www.dmsolutions.ca > EMail : mcilhagga at dmsolutions.ca > Phone : 613-565-5056 x15 > Fax : 613-565-0925 > > > > > > > > -- Paul Spencer Applications and Software Development DM Solutions Group From jan at intevation.de Wed Sep 18 00:20:05 2002 From: jan at intevation.de (Jan-Oliver Wagner) Date: Wed, 18 Sep 2002 09:20:05 +0200 Subject: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice In-Reply-To: <3D866504.3030304@dmsolutions.ca> References: <20020916225007.23124.qmail@web13604.mail.yahoo.com> <3D866504.3030304@dmsolutions.ca> Message-ID: <20020918072005.GA3221@intevation.de> Hi, On Mon, Sep 16, 2002 at 07:11:00PM -0400, Dave McIlhagga wrote: > I believe there are a few other groups using MapServer on this list who > have also indicated that they have been using it for high volumes. correct :-) > I'm not sure if anyone has done a thorough comparison of ArcIMS with > Oracle vs. MapServer with either tuned flat files, connection to Oracle > Spatial, SDE or PostGIS, but I suspect that MapServer would come out on > top hands down. > > Now that this has been brought up - has anyone done any kind of > benchmarking like this? I'd love to have that at my disposal in the > ongoing argument to potential clients for using MapServer. I discussed this issue at the AGIT 2002 in Austria. There are some tools that might help to get a first impression, e.g. Siege (http://www.joedog.org/siege/index.shtml) which we applied for another web application. Direct comparison is difficult as you might remember from the benchmarking of fileservers Microsoft vs GNU/Linux. But if you have a running MapServer application you may run Siege against it to see how it performs. This should give you enough good arguments. Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From jan at intevation.de Wed Sep 18 00:23:39 2002 From: jan at intevation.de (Jan-Oliver Wagner) Date: Wed, 18 Sep 2002 09:23:39 +0200 Subject: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice In-Reply-To: <20020916225007.23124.qmail@web13604.mail.yahoo.com> References: <200209161838.NAA24884@wisdom.geomtech.com> <20020916225007.23124.qmail@web13604.mail.yahoo.com> Message-ID: <20020918072339.GB3221@intevation.de> On Mon, Sep 16, 2002 at 03:50:07PM -0700, John Zastrow wrote: > I'm a similar boat, except that it's my own group that I'd be 'selling' > Mapserver to. It's my impression that for small to moderate sized projects, > mapserver does just fine. But moderate to semi-large projects (size being user > load and data load) one needs to use a commercial map server (ArcIMS on > Oracle). actually, MapServer is a Free Software commercial map server. ArcIMS is a proprietary commercial map server. I stress this because there are companies around the globe that provide first class service for MapServer. You can make contracts for setting up a MapServer application, maintainance etc. Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From miroslav.sodja at gov.si Wed Sep 18 01:15:17 2002 From: miroslav.sodja at gov.si (Miroslav Sodja) Date: Wed, 18 Sep 2002 10:15:17 +0200 Subject: [mapserver-users] Re: Compile problem Message-ID: <000201c25eeb$85a3b860$24b1000a@arao.gov.si> Thanks for your suggestion. The reason for that was, in fact, guiet simple. Apache wants .cgi file to run mapserv as cgi executable. I rename file to mapserv.cgi. It works. Miro Sodja e-mail: miroslav.sodja at gov.si Miroslav Sodja wrote: >I compiled (in fact my webmaster did that) mapserv on linux with: > >[user at host user]$ ./configure --without-jpeg --without-eppl [user at host >user]$ make > >When I try to run mapserv: > >[user at host user]$ ./mapserv >This script can only be used to decode from result and should be >innitiated as a CGI process via a httpd server. > >I try included library: > >[user at host user]$ ldd mapserv > libgd.so => /usr/lib/libgd.so (0x4001a000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40071000) > libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x4008f000) > libpng.so.3 => /usr/lib/libpng.so.3 (0x400d3000) > libz.so.1 => /usr/lib/libz.so.1 (0x400fe000) > libpdf.so.1 => /usr/local/lib/libpdf.so.1 (0x4010d000) > libtiff.so.3 => /usr/lib/libtiff.so.3 (0x4019e000) > libm.so.6 => /lib/libm.so.6 (0x401df000) > libc.so.6 => /lib/libc.so.6 (0x40200000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > >Everything looks fine, but when I run browser like >http://www.go2ing.com/cgi-bin/mapserv the result is not > >"No query information to decode. QUERY_STRING is set, but empty." > >The result is very confused and looks like: ?ELF?!4?P4 ( 44?4?AA???????~~?  >?oe ?"? ? ?? /lib/ld-linux.so.2 > >Any idea? > >Thank you, > >Miro Sodja >e-mail: miroslav.sodja at gov.si > > > > From ma at t-kartor.se Wed Sep 18 02:11:00 2002 From: ma at t-kartor.se (Matthew Archer) Date: Wed, 18 Sep 2002 11:11:00 +0200 Subject: [mapserver-users] Problem with template file Message-ID: <5.1.0.14.0.20020918110534.00b22a50@snovit.t-kartor.se> Hi, I have a problem using a php file as a temmplate. using 'map.html' works ok, using 'map2.php4' generates this error: Content-type: text/html msReturnPage(): Web application error. Malformed template name. Both files exist and their contents are the same (only html actually, no php code). Why???? WEB TEMPLATE "map.html" # TEMPLATE "map2.php4" IMAGEPATH "c:\apache\htdocs\tmp\" IMAGEURL "\tmp\" END ******************************** Matthew Archer T-Kartor Sweden AB Box 5097 S-291 05 Kristianstad SWEDEN Phone: +46-(0) 44-206823 Mobile: +46-(0)733-206823 Fax: +46-(0) 44-128256 mailto:ma at t-kartor.se http://www.t-kartor.se Kristianstad: http://www.karthotellet.com/map/?id=920 ******************************** From jacobi at dfki.de Wed Sep 18 03:00:34 2002 From: jacobi at dfki.de (Sven Jacobi) Date: Wed, 18 Sep 2002 12:00:34 +0200 Subject: [mapserver-users] Generating legends Message-ID: <3D884EC2.6BBE7486@dfki.de> Hello, can anybody give me some hints how to generate a legend. I haven't found it in the tutorial... In section 3 there is a legend, but it isn't described how it is generated. Is the legend generated by the mapfile? Do I have to generate the symbols of the legend myself? I tried to do it the same way like in section 3, but it doesn't work... Thanks in forward, Cheers, Sven From geosys at iafrica.com Wed Sep 18 03:44:30 2002 From: geosys at iafrica.com (Robert Stanton) Date: Wed, 18 Sep 2002 12:44:30 +0200 Subject: [mapserver-users] Problems with itemquery Message-ID: <000901c25f00$668eaba0$0101a8c0@scgs500> Hi Everyone Does anyone know of a demo or tutorial on itemquery and itemquerymap. I have looked at the tutorial at http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html but it seems to be for version 3.3 and does not work properly with version 3.6. I am having problems with matching numbers and strings with attribute values. Mapserver returns either the first item in the dbase column, finds a number with the same last few digits, or does not find a match at all, despite the fact that the correct query string is being sent. I suspect the 'Filter' statement in the map file and my lack of knowledge of regular expressions. Can someone perhaps give me some examples of what the Filter statement should look like when one is trying to find a shape with either numeric and/or string attributes. Many thanks in advance Robert Stanton From shussain at atsincorp.com Wed Sep 18 06:21:18 2002 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Wed, 18 Sep 2002 09:21:18 -0400 Subject: [mapserver-users] Raster Image Projection Problems Message-ID: <4D25CDA67110D3119FFB0008C707D7A7052023@deathstar> Hi List, I am having the problem with my raster image display. Does any one can help me what is wrong in my projection definetion. When i load this raster image using ARCMAP its showing in the PA exact place. These are my projection definitions. Map level projection definition PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" "units=m" END Layer definition LAYER NAME "I99-07" TYPE raster DATA "I99-07.tif" STATUS default PROJECTION "proj=lcc" "lat_1=39.933333333" "lat_2=-77.750000000" "lat_0=39.333333333" "lon_0=40.800000000" "x_0=609601.219" "y_0=0.000" "ellps=clrk66" "datum=NAD27" "units=m" "no_defs" END END # LAYER The Projection definition for the raster layer is Pennsylvania South NAD27 Feet. I am using Apache web server, Windows 2000 and MapServer version 3.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks for your help. Anwar www.atsincorp.com From zak-ms at aiya.dhs.org Wed Sep 18 06:37:48 2002 From: zak-ms at aiya.dhs.org (Zak James) Date: Wed, 18 Sep 2002 09:37:48 -0400 Subject: BENCHMARKING (was: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice) In-Reply-To: <3D87D37C.7080306@dmsolutions.ca> Message-ID: There is also a free package for windows called phpedit (www.phpedit.com) which puts a friendly GUI on the php debugger. It makes remote debugging setup easier, too. It's a little rough as an editor, but the debugging support is solid. Zak James On Tuesday, September 17, 2002, at 09:14 , Paul Spencer wrote: > Tyler, for php there is a package called dbg (http://dd.cron.ru/dbg/) > that provides debugging and profiling support. My interest in this > package stems from trying to optimize maplab using the profiler. We > abandoned the package early on because we couldn't get a stable front > end for it. Recently, the author added a php-accessible interface for > retrieving profiling results and we tried it again with some success. > We were able to pin-point a problem in our code and identify that amap > was taking several seconds to draw. Unfortunately, it didn't tell us > what was wrong with the map file, so we resorted to hacking mapserver > to find the layer that was causing the problem. > > All that to say that you can now quite easily profile a php application. > > I would suggest that for a benchmarking process to be useful it has to > be compared to other products under the same conditions. I believe > some else pointed out that with poor data and poor server > configuration, it would be easy to bring mapserver to a grinding halt > (as with any other product as well). I also think that a benchmark > should try to equalize results based on different data, hardware, web > servers, etc but I have no idea how one would approach that. > > Cheers, > > Paul > > Tyler Mitchell wrote: >> I too would be interested in discussing benchmarks - obviously, we >> would >> first have to develop the criteria that goes into a benchmark. What >> kinds >> of processes or functions would need to be done? >> Off the top of my head: >> -time (t) from request to image output (has anyone already created php >> scripts, etc. to benchmark mapserver like this - I'd bet someone has!) >> -average t / # of requests / min >> -what else...? >> |---------+---------------------------------------> >> | | Dave McIlhagga | >> | | | >> | | Sent by: | >> | | owner-mapserver-users at lists.| >> | | gis.umn.edu | >> | | | >> | | | >> | | 09/16/2002 04:11 PM | >> | | | >> |---------+---------------------------------------> >> >> >--------------------------------------------------------------------------------------------------------------------------------------------------| >> | >> >> | >> | To: >> john1zastrow at yahoo.com >> | >> | cc: Mark Phillips , mapserver- >> users at lists.gis.umn.edu >> | >> | Fax >> to: >> | >> | Subject: Re: [mapserver-users] professional MapServer >> services list? / ArcIMS-MapServer >> choice | >> >> >--------------------------------------------------------------------------------------------------------------------------------------------------| >> John, >> In fact, there are numerous examples that if anything may indicate the >> contrary. Ourselves, we have been involved with a project that can >> comfortably generate over 100,000 map draws a day. There was also an >> example a couple of years ago covering the Canadian Federal election >> where a MapServer based application was the only one able to handle the >> enormous traffic that resulted. >> I believe there are a few other groups using MapServer on this list who >> have also indicated that they have been using it for high volumes. >> I'm not sure if anyone has done a thorough comparison of ArcIMS with >> Oracle vs. MapServer with either tuned flat files, connection to Oracle >> Spatial, SDE or PostGIS, but I suspect that MapServer would come out on >> top hands down. >> Now that this has been brought up - has anyone done any kind of >> benchmarking like this? I'd love to have that at my disposal in the >> ongoing argument to potential clients for using MapServer. >> Dave >> John Zastrow wrote: >>> Mark and List, >>> >>> I'm a similar boat, except that it's my own group that I'd be >>> 'selling' >>> Mapserver to. It's my impression that for small to moderate sized >> projects, >>> mapserver does just fine. But moderate to semi-large projects (size >>> being >> user >>> load and data load) one needs to use a commercial map server (ArcIMS >>> on >>> Oracle). >>> >>> Has anyone done a feature matrix of the various mapsevers out there? I >> just >>> started lurking on this list. Standard apologies if this has been >>> covered >>> already. I'd be interested to see Mark's compilation and information >>> from >> folks >>> who have comparative information. >>> >>> >>> --- Mark Phillips wrote: >>> >>> >>>> Hi List, >>>> >>>> I'm interested in compiling a list of companies and individuals who >>>> provide MapServer support and development services. If you are >>>> such a >>>> company or individual, could you drop me a note? >>> >>> >>> __________________________________________________ >>> Do you Yahoo!? >>> Yahoo! News - Today's headlines >>> http://news.yahoo.com >>> >> -- >> Dave McIlhagga >> President, DM Solutions Group >> http://www.dmsolutions.ca >> EMail : mcilhagga at dmsolutions.ca >> Phone : 613-565-5056 x15 >> Fax : 613-565-0925 > > > -- Paul Spencer > Applications and Software Development > DM Solutions Group > > From Chip.Hankley at GASAI.Com Wed Sep 18 06:48:54 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 18 Sep 2002 08:48:54 -0500 Subject: [mapserver-users] Projection Help (Please) Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDCB@postoffice.GASAI.Com> Frank - > I would suggest changing the datum/ellpse values to whatever > you have for your main layer, and see if that works. The mapfiles projection is NAD83/GRS80, which is the proj of the main layer (a tileindex of orthophotos). I tried swapping these values for the layer in question (NAD27 -> NAD83) but this doesn't seem to have any effect. > Also, if you could provide extents for the two images it would > be possible to see whether proj standalone sees them as being > close to one another. I'm not sure what you mean. If I zoom out, I never even see the other layer... so I have no way of telling what MapServer thinks the extent of the projected layer is. Am I missing something? TIA! Chip From gabriel at ciasc.gov.br Wed Sep 18 06:59:22 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Wed, 18 Sep 2002 10:59:22 -0300 Subject: [mapserver-users] OGR error References: <21747AEA-A02B-11D6-8E9C-0030653DEAA0@arc.to> Message-ID: <01c401c25f1b$975ebfc0$12d713ac@ciasc.gov.br> Dear Listers. I'd like to use DGN files, but MapServer give me this message when I use layer_name diferent from "0": msOGRFileOpen(): OGR error. GetLayer(13) failed for OGR connection `/home/mapserver/data/dgn/teste.dgn, 13'. I must separate the levels in different archives? Gabriel Florian?polis - SC - Brasil From dlowther at ou.edu Wed Sep 18 07:05:09 2002 From: dlowther at ou.edu (Lowther, David W) Date: Wed, 18 Sep 2002 09:05:09 -0500 Subject: [mapserver-users] Mapserver / PostGIS Connection troubles Message-ID: I am trying to set up postgres/Postgis and set up mapserver and enable web mapping here... We have Mapserver with postGIS support on a IIS/NT machine webserver, and, Postgresql and postgis configured on a windows 2000 workstation. When trying to get mapserver work with this setup as per instructions on this page, http://postgis.refractions.net/docs/x444.html... We are getting a, "msPOSTGISLayerOpen(): Query error. Error parsing POSTGIS connection information." Dont find answers for this behavior..Has anyone come across this problem before? and can help? The Layer is defined in the mapfile as follows: LAYER CONNECTIONTYPE postgis NAME "cnty_poly" CONNECTION "user=****** password=****** dbname=DW hostname=**IPADD*** port=5432" DATA "the_geom from county" STATUS DEFAULT TYPE POLYGON CLASS OUTLINECOLOR 128 128 128 COLOR 255 255 255 SIZE 2 END END David Lowther Software Engineer GEO Information Systems dlowther at ou.edu (405) 325-3131 http://www.geo.ou.edu From ed at topozone.com Wed Sep 18 07:13:02 2002 From: ed at topozone.com (Ed McNierney) Date: Wed, 18 Sep 2002 10:13:02 -0400 Subject: [mapserver-users] Raster Image Projection Problems Message-ID: <13858AA1A74F30419F319ACB66A9D1220E86A7@mercator.topozone.com> Anwar - You mention that the projection definition for the layer is PA South NAD27 Feet, but the projection definition says "units=m" (meters). - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Shaik Anwar Hussain [mailto:shussain at atsincorp.com] Sent: Wednesday, September 18, 2002 9:21 AM To: Mapserver-Users (E-mail) Cc: Ben Lewis Subject: [mapserver-users] Raster Image Projection Problems Hi List, I am having the problem with my raster image display. Does any one can help me what is wrong in my projection definetion. When i load this raster image using ARCMAP its showing in the PA exact place. These are my projection definitions. Map level projection definition PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" "units=m" END Layer definition LAYER NAME "I99-07" TYPE raster DATA "I99-07.tif" STATUS default PROJECTION "proj=lcc" "lat_1=39.933333333" "lat_2=-77.750000000" "lat_0=39.333333333" "lon_0=40.800000000" "x_0=609601.219" "y_0=0.000" "ellps=clrk66" "datum=NAD27" "units=m" "no_defs" END END # LAYER The Projection definition for the raster layer is Pennsylvania South NAD27 Feet. I am using Apache web server, Windows 2000 and MapServer version 3.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks for your help. Anwar www.atsincorp.com From Chip.Hankley at GASAI.Com Wed Sep 18 07:28:36 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 18 Sep 2002 09:28:36 -0500 Subject: [mapserver-users] Raster Image Projection Problems Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDCE@postoffice.GASAI.Com> Check out http://mapserver.gis.umn.edu/doc36/proj.html#NAD27%20/%20Pennsylvania%20Sout h Since your units are in FEET, you need to use the to_meter parameter. proj=lcc lat_1=39.933333333 lat_2=40.800000000 lat_0=39.333333333 lon_0=-77.750000000 x_0=609601.219 y_0=0.000 ellps=clrk66 datum=NAD27 to_meter=0.3048006096 no_defs -----Original Message----- From: Shaik Anwar Hussain [mailto:shussain at atsincorp.com] Sent: Wednesday, September 18, 2002 8:21 AM To: Mapserver-Users (E-mail) Cc: Ben Lewis Subject: [mapserver-users] Raster Image Projection Problems Hi List, I am having the problem with my raster image display. Does any one can help me what is wrong in my projection definetion. When i load this raster image using ARCMAP its showing in the PA exact place. These are my projection definitions. Map level projection definition PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" "units=m" END Layer definition LAYER NAME "I99-07" TYPE raster DATA "I99-07.tif" STATUS default PROJECTION "proj=lcc" "lat_1=39.933333333" "lat_2=-77.750000000" "lat_0=39.333333333" "lon_0=40.800000000" "x_0=609601.219" "y_0=0.000" "ellps=clrk66" "datum=NAD27" "units=m" "no_defs" END END # LAYER The Projection definition for the raster layer is Pennsylvania South NAD27 Feet. I am using Apache web server, Windows 2000 and MapServer version 3.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks for your help. Anwar www.atsincorp.com From shussain at atsincorp.com Wed Sep 18 08:17:50 2002 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Wed, 18 Sep 2002 11:17:50 -0400 Subject: [mapserver-users] Raster Projection Problem Message-ID: <4D25CDA67110D3119FFB0008C707D7A7052024@deathstar> Hi List, I am having the problem with my raster image display. Does any one can help me what is wrong in my projection definetion. When i load this raster image using ARCMAP its showing in the PA exact place. These are the Data Frame Coordinate System Values in ARCMAP. NAD_1927_StatePlane_Pennsylvania_South_FIPS_3702 Lambert_Conformal_Conic False_Easting: 2000000.000000 False_Northing: 0.000000 Central_Meridian: -77.750000 Standard_Parallel_1: 39.933333 Standard_Parallel_2: 40.966667 Latitude_Of_Origin: 39.333333 GCS_North_American_1927 These are my projection definitions. Map level projection definition PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" "units=m" END Layer definition LAYER NAME "I99-07" TYPE raster DATA "I99-07.tif" STATUS default PROJECTION "proj=lcc" "lat_1=39.933333333" "lat_2=40.800000000" "lat_0=39.333333333" "lon_0=-77.750000000" "x_0=609601.219" "y_0=0.000" "ellps=clrk66" "datum=NAD27" "to_meter=0.3048006096" "no_defs" END END # LAYER The Projection definition for the raster layer is Pennsylvania South NAD27 Feet. I am using Apache web server, Windows 2000 and MapServer version 3.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks for your help. Anwar www.atsincorp.com From dblasby at refractions.net Wed Sep 18 08:58:57 2002 From: dblasby at refractions.net (Dave Blasby) Date: Wed, 18 Sep 2002 08:58:57 -0700 Subject: [mapserver-users] Mapserver / PostGIS Connection troubles References: Message-ID: <3D88A2C1.B26B1CBF@refractions.net> "Lowther, David W" wrote: > We are getting a, "msPOSTGISLayerOpen(): Query error. Error parsing POSTGIS > connection information." You should use the newest version of mappostgis.c since it will give you much better error reporting. Is your postmaster running and accepting TCP/IP connections (ie. did you run it with the -i option)? I've attached mappostgis.c - replace your copy of mappostgis.c with this one & recompile & re-install. dave -------------- next part -------------- A non-text attachment was scrubbed... Name: mappostgis.c Type: application/x-unknown-content-type-cfile Size: 47488 bytes Desc: not available URL: From TMitchell at lignum.com Wed Sep 18 09:12:25 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 18 Sep 2002 09:12:25 -0700 Subject: [mapserver-users] OGR error Message-ID: Were you able to view information about the file using the "ogrinfo" tool? Are you trying to display level 13? If so, keep in mind that layer # and level # are not synonymous! The different Levels in ogr usually represent feature types (i.e. points, lines, labels, polygons, etc). In the case of DGN files I find that my files only have 1 "layer" called elements. So I would specify ..../teste.dgn, 0 Keep also in mind that the layer number in mapserver (i.e. 0) is one less (-1) than the ogr layer number (i.e. 1) - that is why I use 0 instead of 1 to get the elements layer. You would then have to use filter or class expressions to see specific LEVELS in the file. Does that make sense to you? Unless there is a bug in OGR, you should NOT have to separate levels into different files. You just need to use a different piece of mapserver functionality to filter out the other levels (or colours, types, graphicgroup #, weight, style, etc). Let us know if you need more help on this. Feel free to email me a sample DGN file and I'll tell you what I see in it. |---------+---------------------------------------> | | "gabriel" | | | | | | Sent by: | | | owner-mapserver-users at lists.| | | gis.umn.edu | | | | | | | | | 09/18/2002 10:59 AM | | | | |---------+---------------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Fax to: | | Subject: [mapserver-users] OGR error | >--------------------------------------------------------------------------------------------------------------------------------------------------| Dear Listers. I'd like to use DGN files, but MapServer give me this message when I use layer_name diferent from "0": msOGRFileOpen(): OGR error. GetLayer(13) failed for OGR connection `/home/mapserver/data/dgn/teste.dgn, 13'. I must separate the levels in different archives? Gabriel Florian?polis - SC - Brasil From Chip.Hankley at GASAI.Com Wed Sep 18 09:11:34 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 18 Sep 2002 11:11:34 -0500 Subject: [mapserver-users] Raster Projection Problem Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDD1@postoffice.GASAI.Com> Well, for one thing, your Standard_Parallel_2 and lat_2 values don't match. Do you have other projected layers that _are_ showing up in the right place? The problem could be the extent you are specifying in your mapfile... why don't you provide that to the list. Chip -----Original Message----- From: Shaik Anwar Hussain [mailto:shussain at atsincorp.com] Sent: Wednesday, September 18, 2002 10:18 AM To: Mapserver-Users (E-mail) Cc: Ben Lewis Subject: [mapserver-users] Raster Projection Problem Hi List, I am having the problem with my raster image display. Does any one can help me what is wrong in my projection definetion. When i load this raster image using ARCMAP its showing in the PA exact place. These are the Data Frame Coordinate System Values in ARCMAP. NAD_1927_StatePlane_Pennsylvania_South_FIPS_3702 Lambert_Conformal_Conic False_Easting: 2000000.000000 False_Northing: 0.000000 Central_Meridian: -77.750000 Standard_Parallel_1: 39.933333 Standard_Parallel_2: 40.966667 Latitude_Of_Origin: 39.333333 GCS_North_American_1927 These are my projection definitions. Map level projection definition PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" "units=m" END Layer definition LAYER NAME "I99-07" TYPE raster DATA "I99-07.tif" STATUS default PROJECTION "proj=lcc" "lat_1=39.933333333" "lat_2=40.800000000" "lat_0=39.333333333" "lon_0=-77.750000000" "x_0=609601.219" "y_0=0.000" "ellps=clrk66" "datum=NAD27" "to_meter=0.3048006096" "no_defs" END END # LAYER The Projection definition for the raster layer is Pennsylvania South NAD27 Feet. I am using Apache web server, Windows 2000 and MapServer version 3.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks for your help. Anwar www.atsincorp.com From TMitchell at lignum.com Wed Sep 18 09:15:49 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 18 Sep 2002 09:15:49 -0700 Subject: [mapserver-users] Mapserver / PostGIS Connection troubles Message-ID: Be sure also to check out the mailing list archives at postgis.refractions.net. If all your CONNECTION information is correct, then the message "Error parsing POSTGIS connection information" may actually be misleading. I think that the newer postgis releases give much more verbose error messages now. Here's what I suspect - does your web server "user" have select/read access from the postgis database? You may try the following in your postgis database and see if it helps: >grant select on county to public; >grant select on geometry_columns to public; That was a big step for me :) |---------+---------------------------------------> | | "Lowther, David W" | | | | | | Sent by: | | | owner-mapserver-users at lists.| | | gis.umn.edu | | | | | | | | | 09/18/2002 07:05 AM | | | | |---------+---------------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: mapserver-users at lists.gis.umn.edu | | cc: | | Fax to: | | Subject: [mapserver-users] Mapserver / PostGIS Connection troubles | >--------------------------------------------------------------------------------------------------------------------------------------------------| I am trying to set up postgres/Postgis and set up mapserver and enable web mapping here... We have Mapserver with postGIS support on a IIS/NT machine webserver, and, Postgresql and postgis configured on a windows 2000 workstation. When trying to get mapserver work with this setup as per instructions on this page, http://postgis.refractions.net/docs/x444.html... We are getting a, "msPOSTGISLayerOpen(): Query error. Error parsing POSTGIS connection information." Dont find answers for this behavior..Has anyone come across this problem before? and can help? The Layer is defined in the mapfile as follows: LAYER CONNECTIONTYPE postgis NAME "cnty_poly" CONNECTION "user=****** password=****** dbname=DW hostname=**IPADD*** port=5432" DATA "the_geom from county" STATUS DEFAULT TYPE POLYGON CLASS OUTLINECOLOR 128 128 128 COLOR 255 255 255 SIZE 2 END END David Lowther Software Engineer GEO Information Systems dlowther at ou.edu (405) 325-3131 http://www.geo.ou.edu From Chip.Hankley at GASAI.Com Wed Sep 18 09:37:38 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 18 Sep 2002 11:37:38 -0500 Subject: [mapserver-users] lcc Projection Issues (WAS Raster Projection Problem) Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDD3@postoffice.GASAI.Com> List - Anwar and I are both having the same problem (projection not working) with a layer with lcc projection. In both our cases, other data layers are being projected correctly (i.e. they are showing up). What's the chances of there being some bug in PROJ / MapServer w/ respect to LCC projections? I'm not enough of a PROJ guru to look at things and say that definitively. Chip From steve.lime at dnr.state.mn.us Wed Sep 18 10:33:54 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 18 Sep 2002 12:33:54 -0500 Subject: [mapserver-users] Fwd: Mapserver and Zope Message-ID: An embedded message was scrubbed... From: Sven Jacobi Subject: Mapserver and Zope Date: Thu, 12 Sep 2002 13:52:35 +0200 Size: 2386 URL: From snchrstnglls at yahoo.com Wed Sep 18 10:58:21 2002 From: snchrstnglls at yahoo.com (Sean Gillies) Date: Wed, 18 Sep 2002 10:58:21 -0700 (PDT) Subject: [mapserver-users] Raster Image Projection Problems In-Reply-To: <4D25CDA67110D3119FFB0008C707D7A7052023@deathstar> Message-ID: <20020918175821.39963.qmail@web21302.mail.yahoo.com> Anwar, I see that in your layer projection you are defining 'units=m' when you should be defining 'units=f' (feet) You'll probably catch this error by the time you see my mail :) Sean --- Shaik Anwar Hussain wrote: > > Hi List, > > I am having the problem with my raster > image display. Does any one > can help me what is wrong in my projection > definetion. When i load this > raster image using ARCMAP its showing in the PA > exact place. > > These are my projection definitions. > > Map level projection definition > > PROJECTION > "proj=poly" > "ellps=GRS80" > "lon_0=77.75w" > "lat_0=40.925n" > "units=m" > END > > Layer definition > > LAYER > NAME "I99-07" > TYPE raster > DATA "I99-07.tif" > STATUS default > PROJECTION > "proj=lcc" > "lat_1=39.933333333" > "lat_2=-77.750000000" > "lat_0=39.333333333" > "lon_0=40.800000000" > "x_0=609601.219" > "y_0=0.000" > "ellps=clrk66" > "datum=NAD27" > "units=m" > "no_defs" > END > END # LAYER > > The Projection definition for the raster layer is > Pennsylvania South > NAD27 Feet. > > I am using Apache web server, Windows 2000 and > > MapServer version 3.6.0 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS > INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > Thanks for your help. > > Anwar > www.atsincorp.com > > __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com From nhv at cape.com Wed Sep 18 11:15:30 2002 From: nhv at cape.com (Norman Vine) Date: Wed, 18 Sep 2002 14:15:30 -0400 Subject: [mapserver-users] Re: Mapserver and Zope References: <3D808003.10978002@dfki.de> Message-ID: <033701c25f3f$5fee8240$0100a8c0@sfdev3> Sven Jacobi writes: > > I'm trying to use Mapserver in Zope which is Python based. > I've already "swigged" the libraries to Python and it seemed > to work. > But now I have got several problems: > 1.When I try to test Mapserver with Python, I get a Segementation Fault > when calling the draw()-function...below the code: > > import sys > from mapscript import * > > def drawmap(width=400, height=300, align="left"): > mymap = mapObj("/home/...") > mymap.width=width > mymap.height=height > myimage=mymap.draw() myimage.save("mymap.png") # You might want to use myImageString = myimage.saveToString() HTH Norman From snchrstnglls at yahoo.com Wed Sep 18 11:26:43 2002 From: snchrstnglls at yahoo.com (Sean Gillies) Date: Wed, 18 Sep 2002 11:26:43 -0700 (PDT) Subject: [mapserver-users] Fwd: Mapserver and Zope In-Reply-To: Message-ID: <20020918182643.89907.qmail@web21309.mail.yahoo.com> Sven, I've seen and overcome each of these issues. Any Zope method that uses mapscript should be an external method because you'll need to access a map file on the filesystem. As well, if you want to use the module 'sys', you'll need to make drawmap() into an external method. Next, you need to build mapscript using the same python version as comes with Zope. If you're using Zope 2.5, you'll need to build python mapscript with python 2.1, and then install mapscript inside Zope's own python. You can do this manually or by using a --prefix option with the setup.py script. Once you get a mapscript installed among your other Zope python modules, you should be ready to go. Now, the drawing errors: I experienced some problems like this with the 3.5 version of mapserver, and the problems went away when I moved up to mapserver 3.6 and 3.7. So, honestly, I didn't overcome this problem, but jumped over it. Hope this helps. cheers, Sean --- Steve Lime wrote: > ATTACHMENT part TEXT message/rfc822 > Date: Thu, 12 Sep 2002 13:52:35 +0200 > From: Sven Jacobi > To: steve.lime at dnr.state.mn.us > Subject: Mapserver and Zope > > Hello, > > I've seen your mails in the lists of mapserver and I > have some > problems to which you (I hope so) could give me some > hints... > > I'm trying to use Mapserver in Zope which is Python > based. > I've already "swigged" the libraries to Python and > it seemed > to work. > But now I have got several problems: > 1.When I try to test Mapserver with Python, I get a > Segementation Fault > when calling the draw()-function...below the > code: > > import sys > from mapscript import * > > def drawmap(width=400, height=300, align="left"): > mymap = mapObj("/home/...") > mymap.width=width > mymap.height=height > myimage=mymap.draw() > > drawmap() > > Is it possible that my Python-version isn't correct, > because it seems to > be an > error while changing to "C"...? > > 2. In Zope I always get an error because of failed > authorization. This > is independent of > the way I try it ( External Method or Python > Script). > > Have you any idea where these errors might come > from? > > I would be very glad to get an answer, > > thanks in forward, > > Cheers, > > Sven > __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com From tesimap at hotmail.com Wed Sep 18 11:53:24 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Wed, 18 Sep 2002 20:53:24 +0200 Subject: [mapserver-users] NEW Mapserver compile error Message-ID: Hi, I have solved some problem when I compile mapserver 3.5 on Win XP, but I have a new errors: Creating library mapserv.lib and object mapserv.exp mapserver.lib(regex.obj) : error LNK2001: unresolved external symbol _alloca mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _gdImageGif mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _gdImageCreateFromGif mapserver.lib(mapsymbol.obj) : error LNK2001: unresolved external symbol _gdImageCreateFromGif mapserv.exe : fatal error LNK1120: 3 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. Any idea? Regards Ivan _________________________________________________________________ MSN Hotmail ? il provider email pi? grande al mondo cosa aspetti a farti un account? http://www.hotmail.it From john.bennett at noetix.on.ca Wed Sep 18 11:58:25 2002 From: john.bennett at noetix.on.ca (John Bennett) Date: Wed, 18 Sep 2002 14:58:25 -0400 Subject: [mapserver-users] mouseover event Message-ID: Is it possible with the MapServer to have popup information come up on the Map when the mouse moves over different features? If so, does anyone have example code? John From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Wed Sep 18 12:37:52 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Wed, 18 Sep 2002 15:37:52 -0400 Subject: [mapserver-users] Fwd: Mapserver and Zope Message-ID: <7CDD7B94357FD5119E800002A537C46E23032A@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I experienced the same problem a while ago (The draw() fucntion kept bombing on me), but never found the solution :( For now I have integrated mapserver into Zope using urllib, backend calls to the mapserver cgi, and a structured template. Not as "integrated" as using Python MapScript and far less flexible, but very fast, simple, and stable. I however never had success even building mapscript for mapserver 3.6.1 ... How did you guys do it? I get a bunch of errors about "ms_error" being undeclared. even Frank had mentionned this would not be fixed until 3.7 ... And right now for me 3.7 isn't compiling ... I would *REALLY* like to get this working! J.F. -----Original Message----- From: Sean Gillies [mailto:snchrstnglls at yahoo.com] Sent: Wednesday, September 18, 2002 2:27 PM To: jacobi at dfki.de; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Fwd: Mapserver and Zope Sven, I've seen and overcome each of these issues. Any Zope method that uses mapscript should be an external method because you'll need to access a map file on the filesystem. As well, if you want to use the module 'sys', you'll need to make drawmap() into an external method. Next, you need to build mapscript using the same python version as comes with Zope. If you're using Zope 2.5, you'll need to build python mapscript with python 2.1, and then install mapscript inside Zope's own python. You can do this manually or by using a --prefix option with the setup.py script. Once you get a mapscript installed among your other Zope python modules, you should be ready to go. Now, the drawing errors: I experienced some problems like this with the 3.5 version of mapserver, and the problems went away when I moved up to mapserver 3.6 and 3.7. So, honestly, I didn't overcome this problem, but jumped over it. Hope this helps. cheers, Sean --- Steve Lime wrote: > ATTACHMENT part TEXT message/rfc822 > Date: Thu, 12 Sep 2002 13:52:35 +0200 > From: Sven Jacobi > To: steve.lime at dnr.state.mn.us > Subject: Mapserver and Zope > > Hello, > > I've seen your mails in the lists of mapserver and I > have some > problems to which you (I hope so) could give me some > hints... > > I'm trying to use Mapserver in Zope which is Python > based. > I've already "swigged" the libraries to Python and > it seemed > to work. > But now I have got several problems: > 1.When I try to test Mapserver with Python, I get a > Segementation Fault > when calling the draw()-function...below the > code: > > import sys > from mapscript import * > > def drawmap(width=400, height=300, align="left"): > mymap = mapObj("/home/...") > mymap.width=width > mymap.height=height > myimage=mymap.draw() > > drawmap() > > Is it possible that my Python-version isn't correct, > because it seems to > be an > error while changing to "C"...? > > 2. In Zope I always get an error because of failed > authorization. This > is independent of > the way I try it ( External Method or Python > Script). > > Have you any idea where these errors might come > from? > > I would be very glad to get an answer, > > thanks in forward, > > Cheers, > > Sven > __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com From drew at Zhrodague.net Wed Sep 18 12:55:51 2002 From: drew at Zhrodague.net (Drew from Zhrodague) Date: Wed, 18 Sep 2002 15:55:51 -0400 (EDT) Subject: [mapserver-users] Fwd: Mapserver and Zope In-Reply-To: Message-ID: On a related note, we're trying to fit mapserver into phpnuke, and perhaps release it as a module. Anyone interested in helping-out, we could sure use the help! http://mapserver.zhrodague.net From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Wed Sep 18 14:05:03 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Wed, 18 Sep 2002 17:05:03 -0400 Subject: [mapserver-users] Fwd: Mapserver and Zope Message-ID: <7CDD7B94357FD5119E800002A537C46E23032C@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, Thanks to Norman's help, I've finally got my python mapscript up and running. Now I just have one rather major concern. How stable is the module? I mean, as far as thread safety and memory leaks? I worry that loading such a complex module into zope could have consequences, especially as I keep hearing about the threading issues of libmap in relation to PHP. Does python suffer from the same problems? Anybody tested this? Or used it enough to know whether python mapscript can safely be used in a production zope environment? Any insight on this would be appreciated :) thanks, J.F. -----Original Message----- From: Sean Gillies [mailto:snchrstnglls at yahoo.com] Sent: Wednesday, September 18, 2002 2:27 PM To: jacobi at dfki.de; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Fwd: Mapserver and Zope Sven, I've seen and overcome each of these issues. Any Zope method that uses mapscript should be an external method because you'll need to access a map file on the filesystem. As well, if you want to use the module 'sys', you'll need to make drawmap() into an external method. Next, you need to build mapscript using the same python version as comes with Zope. If you're using Zope 2.5, you'll need to build python mapscript with python 2.1, and then install mapscript inside Zope's own python. You can do this manually or by using a --prefix option with the setup.py script. Once you get a mapscript installed among your other Zope python modules, you should be ready to go. Now, the drawing errors: I experienced some problems like this with the 3.5 version of mapserver, and the problems went away when I moved up to mapserver 3.6 and 3.7. So, honestly, I didn't overcome this problem, but jumped over it. Hope this helps. cheers, Sean --- Steve Lime wrote: > ATTACHMENT part TEXT message/rfc822 > Date: Thu, 12 Sep 2002 13:52:35 +0200 > From: Sven Jacobi > To: steve.lime at dnr.state.mn.us > Subject: Mapserver and Zope > > Hello, > > I've seen your mails in the lists of mapserver and I > have some > problems to which you (I hope so) could give me some > hints... > > I'm trying to use Mapserver in Zope which is Python > based. > I've already "swigged" the libraries to Python and > it seemed > to work. > But now I have got several problems: > 1.When I try to test Mapserver with Python, I get a > Segementation Fault > when calling the draw()-function...below the > code: > > import sys > from mapscript import * > > def drawmap(width=400, height=300, align="left"): > mymap = mapObj("/home/...") > mymap.width=width > mymap.height=height > myimage=mymap.draw() > > drawmap() > > Is it possible that my Python-version isn't correct, > because it seems to > be an > error while changing to "C"...? > > 2. In Zope I always get an error because of failed > authorization. This > is independent of > the way I try it ( External Method or Python > Script). > > Have you any idea where these errors might come > from? > > I would be very glad to get an answer, > > thanks in forward, > > Cheers, > > Sven > __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com From Chip.Hankley at GASAI.Com Wed Sep 18 14:15:08 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 18 Sep 2002 16:15:08 -0500 Subject: [mapserver-users] Projection Help (Please) Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDDE@postoffice.GASAI.Com> Well... that worked. I'm not sure how I screwed that up. But thanks. chip -----Original Message----- From: Frank Warmerdam [mailto:warmerdam at pobox.com] Sent: Wednesday, September 18, 2002 12:34 PM To: Hankley, Chip Subject: Re: [mapserver-users] Projection Help (Please) Hankley, Chip wrote: > Frank... > > The data set in question (see mapfile below... Layer 'COUNTIES') is a > shapefile...so I ran OGRINFO against it. For comparison purposes, I ran > gdalinfo against an image in the same general area (northern Illinois) that > was the same projection. Finally, I ran OGRINFO against the tileindex for > the UTM16 data. Chip, I ran the following command to reproject the top left and bottom right corners of the LCC vectors to UTM 16, and I see to get an area that overlaps the area of the GeoTIFF file and your EXTENTS statement in the mapfile. warmerda at gdal[155]% cs2cs \ +proj=lcc +lat_1=45 +lat_2=33 +lat_0=33 +lon_0=-89.5 +x_0=914400 +y_0=0 \ +datum=NAD27 +to_meter=0.3048006096 \ +to \ +proj=utm +zone=16 +datum=NAD83 +units=m 2558228.000000 2925475.000000 (input) 154614.48 4553195.28 0.000 (output) 3351150. 3450058 (input) 401981.41 4706689.38 0.000 (output) I think I am using your original PROJ.4 definition from the first email to the list for the LCC, but this is quite different than what you emailed me in your map file. Notably, ensure that the +x_0 value is 914400. PROJ.4 always has false easting and northing values in meters regardless of the units of the coordinate system. Also, I tried out with NAD83 and NAD27 and both seemed to work OK, with slight difference in the results presumably representing the datum shift. If the above definition doesn't work in MapServer then I don't know what the issue is. If you are in a position to do so, you should try debugging within MapServer. Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From saengpole at excite.com Wed Sep 18 15:26:26 2002 From: saengpole at excite.com (Krung Saengpole) Date: Wed, 18 Sep 2002 18:26:26 -0400 (EDT) Subject: [mapserver-users] NEW Mapserver compile error Message-ID: <20020918222626.D76EF109F5D@xmxpita.excite.com> Hi Ivan, You have to compile regex with flags as I pointed you to and make sure in gd's makefile.nt you put gd_gif_in.obj, gd_gif_out.obj, gd_biggif_out.obj, gd_lzw_out.obj in OBJS = gd.obj, gd_gd.obj,..................,gd_gif_in.obj, gd_gif_out.obj, gd_biggif_out.obj, gd_lzw_out.obj,....................... near the end of file. With this compilation, you have to download pacthed version of gd from www.rime.com.au/gd.(I used gd-1.8.4amgif.tar.gz). HTHKrung--- On Wed 09/18, Ivan Paoluzzi < tesimap at hotmail.com > wrote:From: Ivan Paoluzzi [mailto: tesimap at hotmail.com]To: saengpole at excite.com, mapserver-users at lists.gis.umn.eduDate: Wed, 18 Sep 2002 20:53:24 +0200Subject: [mapserver-users] NEW Mapserver compile errorHi,I have solved some problem when I compile mapserver 3.5 on Win XP, but I have a new errors:Creating library mapserv.lib and object mapserv.expmapserver.lib(regex.obj) : error LNK2001: unresolved external symbol _allocamapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _gdImageGifmapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _gdImageCreateFromGifmapserver.lib(mapsymbol.obj) : error LNK2001: unresolved external symbol _gdImageCreateFromGifmapserv.exe : fatal error LNK1120: 3 unresolved externalsNMAKE : fatal error U1077: 'link' : return code '0x460'Stop.Any idea?RegardsIvan_________________________________________________________________MSN Hotmail ? il provider email pi? grande al mondo? cosa aspetti a farti un account? http://www.hotmail.it ------------------------------------------------ Changed your e-mail? Keep your contacts! Use this free e-mail change of address service from Return Path. Register now! -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.boggio at manobi.sn Wed Sep 18 17:04:01 2002 From: david.boggio at manobi.sn (David Boggio) Date: Thu, 19 Sep 2002 00:04:01 -0000 Subject: [mapserver-users] Last point does not show in a dynamic layer Message-ID: <000901c25f70$0f2257c0$1101000a@David> Hello list, This is my first post. I?m new to Mapserver. Hope this problem has not been discussed earlier. I want to generate a dynamic layer, based on a SQL query. I managed to query the MySQL database, and display the points on the map. But the last point of the query result array is not displayed. I tried to change the sorting order, and I always notice the same problem. Is it really the problem or is there another one I did not see? Below is a part of the code and the function I use to build the layer. I used part of Jan Mantkowski?s code (thanks) by correcting a small mistake : you can?t parse the same MySQL query result twice (using mysql_fetch_array), because when you have reached the end of the query result, the result array variable is empty, and your script has nothing to draw anymore. So you can either requery the database before you parse the result array again, or try to parse it only once (best). Thanks for your ideas on my pb. David Boggio Dakar, Senegal. //function to draw the points dynamic layer function AddConnectionLayer($Map,$image) { $layer = $Map->getLayerByName("Connections"); $layer->set('status', MS_ON); $projInObj = ms_newprojectionobj("proj=latlong,ellps=WGS84"); $projOutObj = ms_newprojectionobj("proj=merc,lat_ts=0,units=m,ellps=clrk80,no_defs"); $link = mysql_connect("localhost", "root", "") or die("Could not connect"); $sql="SELECT DISTINCTROW logs.connexions.user_id, logs.users.nom, admin.lieux.NomLieu, admin.lieux.Lon, admin.lieux.Lat FROM logs.connexions LEFT JOIN logs.users ON (logs.users.user_id=logs.connexions.user_id) LEFT JOIN admin.lieux ON (logs.users.idlieu= admin.lieux.CodeLieu) ORDER BY Lon DESC"; $res=mysql_query($sql); while($ligne=mysql_fetch_array($res)) { $x=$ligne["Lon"]; $y=$ligne["Lat"]; $name=$ligne["user_id"]; $pt = ms_newPointObj(); $pt->setXY($x,$y); $pt = $pt->project($projInObj, $projOutObj); $pt->draw($Map, $layer, $image, 0, $name); $pt->free; } mysql_free_result($res); } //Part of the map file LAYER NAME "Connections" TYPE POINT STATUS OFF CLASS NAME "Connects" SYMBOL 'dot' OUTLINECOLOR 0 0 0 COLOR 0 0 0 END END --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.386 / Virus Database: 218 - Release Date: 09/09/2002 From mschulz at webgis.de Thu Sep 19 01:48:40 2002 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 19 Sep 2002 10:48:40 +0200 Subject: [mapserver-users] Fwd: Mapserver and Zope References: <7CDD7B94357FD5119E800002A537C46E23032C@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <3D898F68.64D92770@webgis.de> Hi Jean-Francois and the other mapserver-zope Users, we have set up our first small mapscript-zope application in a production enivronment, unfortunately there is not much i can show, since what the user sees is only a queryable map, no navigation and all the other things. But it does do some things behind the curtain (create/modify shape/dbf-files, query a MySQL-DB, draw layers with filters, etc. ). These things work now pretty stable. I had also several problems with stability (seg faults), especially when creating shapefile/dbf-files. These could be minimized by additionally using the pyshapelib. The combination with zope has one problem we are facing at the moment, that is when your mapscript external method crashes, ZOPE crashes too (for those who don't know ZOPE this can mean the whole website is down). I surely will look deeper into these problems and found one helpful little python module, called WAD (wrapped application debugger). This module tries to catch fatal errors and convert them in "normal" exceptions. If someone wants to look at it: http://systems.cs.uchicago.edu/wad/ Cheers, Michael Jean-Francois.Doyon at ccrs.nrcan.gc.ca schrieb: > Hello, > > Thanks to Norman's help, I've finally got my python mapscript up and > running. > > Now I just have one rather major concern. How stable is the module? I mean, > as far as thread safety and memory leaks? I worry that loading such a > complex module into zope could have consequences, especially as I keep > hearing about the threading issues of libmap in relation to PHP. Does python > suffer from the same problems? > > Anybody tested this? Or used it enough to know whether python mapscript can > safely be used in a production zope environment? > > Any insight on this would be appreciated :) > > thanks, > J.F. > > -----Original Message----- > From: Sean Gillies [mailto:snchrstnglls at yahoo.com] > Sent: Wednesday, September 18, 2002 2:27 PM > To: jacobi at dfki.de; mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Fwd: Mapserver and Zope > > Sven, > > I've seen and overcome each of these issues. > > Any Zope method that uses mapscript should be an > external method because you'll need to access a > map file on the filesystem. As well, if you want > to use the module 'sys', you'll need to make > drawmap() into an external method. > > Next, you need to build mapscript using the same > python version as comes with Zope. If you're using > Zope 2.5, you'll need to build python mapscript > with python 2.1, and then install mapscript inside > Zope's own python. You can do this manually or by > using a --prefix option with the setup.py script. > Once you get a mapscript installed among your other > Zope python modules, you should be ready to go. > > Now, the drawing errors: I experienced some problems > like this with the 3.5 version of mapserver, and the > problems went away when I moved up to mapserver 3.6 > and 3.7. So, honestly, I didn't overcome this > problem, but jumped over it. > > Hope this helps. cheers, > Sean > > --- Steve Lime wrote: > > > ATTACHMENT part TEXT message/rfc822 > > Date: Thu, 12 Sep 2002 13:52:35 +0200 > > From: Sven Jacobi > > To: steve.lime at dnr.state.mn.us > > Subject: Mapserver and Zope > > > > Hello, > > > > I've seen your mails in the lists of mapserver and I > > have some > > problems to which you (I hope so) could give me some > > hints... > > > > I'm trying to use Mapserver in Zope which is Python > > based. > > I've already "swigged" the libraries to Python and > > it seemed > > to work. > > But now I have got several problems: > > 1.When I try to test Mapserver with Python, I get a > > Segementation Fault > > when calling the draw()-function...below the > > code: > > > > import sys > > from mapscript import * > > > > def drawmap(width=400, height=300, align="left"): > > mymap = mapObj("/home/...") > > mymap.width=width > > mymap.height=height > > myimage=mymap.draw() > > > > drawmap() > > > > Is it possible that my Python-version isn't correct, > > because it seems to > > be an > > error while changing to "C"...? > > > > 2. In Zope I always get an error because of failed > > authorization. This > > is independent of > > the way I try it ( External Method or Python > > Script). > > > > Have you any idea where these errors might come > > from? > > > > I would be very glad to get an answer, > > > > thanks in forward, > > > > Cheers, > > > > Sven > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! News - Today's headlines > http://news.yahoo.com -- ----------------------------------------------------------- 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 nacht at widerstand.org Thu Sep 19 06:06:10 2002 From: nacht at widerstand.org (Mojo Jojo) Date: Thu, 19 Sep 2002 14:06:10 +0100 Subject: [mapserver-users] silly question.... In-Reply-To: <3D898F68.64D92770@webgis.de> Message-ID: but i can't seem to finfd it anywhere on the website. what version of php does the version 3.6 of mapscript require? cheers From woodbri at swoodbridge.com Thu Sep 19 06:59:50 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 19 Sep 2002 09:59:50 -0400 Subject: [mapserver-users] New tool to check out Message-ID: <3D89A016.5762.A4D7FC0@localhost> Hi all, I just got a world-wide place name geocoder working. It has over 7 million records in it and it links the results to a Mapserver (modified maplab) viewer using vmap0 data for the world base map. I will be making some changes to both over time, but thought I would share them with you if your interested. http://iMapTools.com/geocode.php -Stephen Woodbridge http://iMapTools.com From stephane.morel at vanoise.com Thu Sep 19 08:29:35 2002 From: stephane.morel at vanoise.com (=?us-ascii?Q?MOREL_Stephane?=) Date: Thu, 19 Sep 2002 16:29:35 +0100 Subject: [mapserver-users] silly question.... Message-ID: <01C25FF9.BE3DECE0.stephane.morel@vanoise.com> I use php4.0.6 with mapserver 3.6.1 and it's work perfectly stephane but i can't seem to finfd it anywhere on the website. what version of php does the version 3.6 of mapscript require? cheers From Tom.Kralidis at ccrs.nrcan.gc.ca Thu Sep 19 08:00:58 2002 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Tom.Kralidis at ccrs.nrcan.gc.ca) Date: Thu, 19 Sep 2002 11:00:58 -0400 Subject: [mapserver-users] New tool to check out Message-ID: <7CDD7B94357FD5119E800002A537C46E226E9E@s5-ccr-r1.ccrs.nrcan.gc.ca> > -----Original Message----- > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > Sent: Thursday, September 19, 2002 10:00 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] New tool to check out > > > Hi all, > > I just got a world-wide place name geocoder working. It has over 7 > million records in it and it links the results to a Mapserver > (modified maplab) viewer using vmap0 data for the world base map. > > I will be making some changes to both over time, but thought I would > share them with you if your interested. > > http://iMapTools.com/geocode.php > > -Stephen Woodbridge > http://iMapTools.com > Stephen, This is pretty impressive. Is/can this be setup as a service, i.e. GetMap by placename? Thanks ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= From woodbri at swoodbridge.com Thu Sep 19 08:17:24 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 19 Sep 2002 11:17:24 -0400 Subject: [mapserver-users] New tool to check out In-Reply-To: <7CDD7B94357FD5119E800002A537C46E226E9E@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <3D89B244.8356.A94814C@localhost> Tom, Yes, I have a Tiger based geocoder that already works as a service. The question becomes how do you want the API to look. What I did with the Tiger geocoder was to write a php wrapper around it so you could call it as a php function, like $results = geocoder($name, $country, $dbflags, $exact); and $results would be either a hashed array with keys like: STATUS = error return code if it encountered a problem COUNT = number of db hits returned NAME = array of names, COUNT long LAT = array of LAT values, COUNT long LON = array of LON values, COUNT long it would be possible to do something similar for the vmap0 or any mapserver app to fetch map pages or to fetch map images if you just wanted to imbed them as static images on a page. I haven't played with WMS features yet but that is what they are designed for right? -Stephen Woodbridge http://iMapTools.com On 19 Sep 2002 at 11:00, Tom.Kralidis at CCRS.NRCan.gc.ca wrote: > > > -----Original Message----- > > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > > Sent: Thursday, September 19, 2002 10:00 AM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] New tool to check out > > > > > > Hi all, > > > > I just got a world-wide place name geocoder working. It has over 7 > > million records in it and it links the results to a Mapserver > > (modified maplab) viewer using vmap0 data for the world base map. > > > > I will be making some changes to both over time, but thought I would > > share them with you if your interested. > > > > http://iMapTools.com/geocode.php > > > > -Stephen Woodbridge > > http://iMapTools.com > > > > Stephen, > > This is pretty impressive. Is/can this be setup as a service, i.e. > GetMap by placename? > > Thanks > > ..Tom > > ================================= > Tom Kralidis > Systems Scientist > Canada Centre for Remote Sensing > Tel: (613) 947-1828 > http://www.ccrs.nrcan.gc.ca/ > ================================= > From Tom.Kralidis at ccrs.nrcan.gc.ca Thu Sep 19 08:20:10 2002 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Tom.Kralidis at ccrs.nrcan.gc.ca) Date: Thu, 19 Sep 2002 11:20:10 -0400 Subject: [mapserver-users] New tool to check out Message-ID: <7CDD7B94357FD5119E800002A537C46E226EA1@s5-ccr-r1.ccrs.nrcan.gc.ca> Stephen, Can this be exposed as a web service, i.e. calling from HTTP instead of PHP natively. The first step could return the list of places in XML, and the second step can return a map image of one placename. Thanks ..Tom > -----Original Message----- > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > Sent: Thursday, September 19, 2002 11:17 AM > To: mapserver-users at lists.gis.umn.edu; Tom.Kralidis at ccrs.nrcan.gc.ca > Subject: RE: [mapserver-users] New tool to check out > > > Tom, > > Yes, I have a Tiger based geocoder that already works as a service. > The question becomes how do you want the API to look. > > What I did with the Tiger geocoder was to write a php wrapper around > it so you could call it as a php function, like > > $results = geocoder($name, $country, $dbflags, $exact); > > and $results would be either a hashed array with keys like: > > STATUS = error return code if it encountered a problem > COUNT = number of db hits returned > NAME = array of names, COUNT long > LAT = array of LAT values, COUNT long > LON = array of LON values, COUNT long > > it would be possible to do something similar for the vmap0 or any > mapserver app to fetch map pages or to fetch map images if you just > wanted to imbed them as static images on a page. I haven't played > with WMS features yet but that is what they are designed for right? > > -Stephen Woodbridge > http://iMapTools.com > > On 19 Sep 2002 at 11:00, Tom.Kralidis at CCRS.NRCan.gc.ca wrote: > > > > > > -----Original Message----- > > > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > > > Sent: Thursday, September 19, 2002 10:00 AM > > > To: mapserver-users at lists.gis.umn.edu > > > Subject: [mapserver-users] New tool to check out > > > > > > > > > Hi all, > > > > > > I just got a world-wide place name geocoder working. It has over 7 > > > million records in it and it links the results to a Mapserver > > > (modified maplab) viewer using vmap0 data for the world base map. > > > > > > I will be making some changes to both over time, but > thought I would > > > share them with you if your interested. > > > > > > http://iMapTools.com/geocode.php > > > > > > -Stephen Woodbridge > > > http://iMapTools.com > > > > > > > Stephen, > > > > This is pretty impressive. Is/can this be setup as a service, i.e. > > GetMap by placename? > > > > Thanks > > > > ..Tom > > > > ================================= > > Tom Kralidis > > Systems Scientist > > Canada Centre for Remote Sensing > > Tel: (613) 947-1828 > > http://www.ccrs.nrcan.gc.ca/ > > ================================= > > > > From steve.lime at dnr.state.mn.us Thu Sep 19 09:09:47 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 19 Sep 2002 11:09:47 -0500 Subject: [mapserver-users] New tool to check out Message-ID: How 'bout as a web service using SOAP? >>> 09/19/02 10:00AM >>> > -----Original Message----- > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > Sent: Thursday, September 19, 2002 10:00 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] New tool to check out > > > Hi all, > > I just got a world-wide place name geocoder working. It has over 7 > million records in it and it links the results to a Mapserver > (modified maplab) viewer using vmap0 data for the world base map. > > I will be making some changes to both over time, but thought I would > share them with you if your interested. > > http://iMapTools.com/geocode.php > > -Stephen Woodbridge > http://iMapTools.com > Stephen, This is pretty impressive. Is/can this be setup as a service, i.e. GetMap by placename? Thanks ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= From vic at wittmanhydro.com Thu Sep 19 09:15:20 2002 From: vic at wittmanhydro.com (Vic Kelson) Date: Thu, 19 Sep 2002 11:15:20 -0500 Subject: [mapserver-users] re: Mapserver and Zope Message-ID: <3D89F818.2040400@wittmanhydro.com> Hi All, It seems to me that, given the availability of the WMS stuff in mapserver, that a wise route toward using mapserver and Zope together would be to use Zope to build sites that are WMS clients. For the simplest example, you could use Zope to construct a WMS request to draw a map image. Zope (it's Python, after all) has great XML handling, so you could make a Zope application that would request the layer descriptions from mapserver WMS, then build a web GUI that allows the user to turn layers off/on, etc. For more advanced applications, again, use WMS feature requests to grab information from mapserv for processing in Zope. I would envision the development of a set of Zope ZClasses for WMS communication with mapserver that handle the gory details of this problem. The ZClasses could hide all the communications, allow for decoding of GML, and perhaps provide some rudimentary HTML display functionality. In my view, this strategy for Zope-mapserver integration is MUCH preferred over mapscript because: 0) Completely standards based (WMS, GML) 1) No need for Zope and mapserver to be on the same computer 2) No need to use Zope external methods (which can be a pain to debug) 3) No "moving target" as mapscript evolves, the Zope code is stable as mapserver evolves 4) Conceptually identical to Zope integration with databases and other fun stuff 5) Compatible with ArcIMS as well as mapserver What to y'all think of this idea? I'd recommend making a generic Python WMS Client library and wrapping it up in Zope. Vic From nicolasb at maich.gr Thu Sep 19 09:35:01 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Thu, 19 Sep 2002 19:35:01 +0300 Subject: [mapserver-users] Mapserver and POSTGIS CDROM demo References: <3D89A016.5762.A4D7FC0@localhost> Message-ID: <3D89FCB5.3090803@maich.gr> Hi, A while back I posted 'bout running mapserver on cdrom. I think I've simplified the process even more so, and added Postgis support using Multera's postgres port. I've lost track of a couple of requests for this, so any one interested please contact me again... regards, nicolas boretos From hassm at msue.msu.edu Thu Sep 19 09:48:14 2002 From: hassm at msue.msu.edu (Michael D. Hass) Date: Thu, 19 Sep 2002 12:48:14 -0400 Subject: [mapserver-users] querymap/itemquery rookie question Message-ID: <3.0.1.32.20020919124814.01043d78@msue.msu.edu> Hi All- I've set up a simple streets lookup using the item/value demo contained in the Test Suite. My users would like to be able to zoom in/out on the maps that result from the query. I've seen some of the comments on persistent querymap results, but am not clear how I apply it. Does anyone have experience with this? TIA, Mike Hass From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Thu Sep 19 10:22:32 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Thu, 19 Sep 2002 13:22:32 -0400 Subject: [mapserver-users] New tool to check out Message-ID: <7CDD7B94357FD5119E800002A537C46E230336@s5-ccr-r1.ccrs.nrcan.gc.ca> Or XML-RPC ? :) I like it better, much simpler, lighter. -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, September 19, 2002 12:10 PM To: Tom.Kralidis at ccrs.nrcan.gc.ca; mapserver-users at lists.gis.umn.edu; woodbri at swoodbridge.com Subject: RE: [mapserver-users] New tool to check out How 'bout as a web service using SOAP? >>> 09/19/02 10:00AM >>> > -----Original Message----- > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > Sent: Thursday, September 19, 2002 10:00 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] New tool to check out > > > Hi all, > > I just got a world-wide place name geocoder working. It has over 7 > million records in it and it links the results to a Mapserver > (modified maplab) viewer using vmap0 data for the world base map. > > I will be making some changes to both over time, but thought I would > share them with you if your interested. > > http://iMapTools.com/geocode.php > > -Stephen Woodbridge > http://iMapTools.com > Stephen, This is pretty impressive. Is/can this be setup as a service, i.e. GetMap by placename? Thanks ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= From pcarrasco at iver.es Thu Sep 19 10:27:32 2002 From: pcarrasco at iver.es (Pedro Carrasco) Date: Thu, 19 Sep 2002 19:27:32 +0200 Subject: [mapserver-users] setFilter in PHP Message-ID: <014301c26001$d68920a0$0f00a8c0@iver.es> Hi all, I'm trying to apply a filter in a layer and I make this in PHP: $ids = '18558|17826|13264|22503|22295|19396|8266 '; $lyr->set('filteritem','ID'); $lyr->setFilter("/$ids/"); but the map is empty, if I made the modification in the map file: FILTERITEM "ID" FILTER /18558|17826|13264|22503|22295|19396|8266/ It works fine. What is wrong in the PHP mode? Thanks in advance and regards. -- "Quedarse en lo conocido por miedo a lo desconocido es lo mismo que mantenerse con vida pero no vivir" From gisweb at lmi.net Thu Sep 19 10:59:56 2002 From: gisweb at lmi.net (gisweb at lmi.net) Date: Thu, 19 Sep 2002 10:59:56 -0700 Subject: [mapserver-users] Variations in label behavior In-Reply-To: References: Message-ID: <1032458396.3d8a109cc7583@webmail.lmi.net> Steve, The install documentation on Mapserver 3.6 implies that Freetype 2.x is okay: > If your GD is built against FreeType, you will see either > "-DUSE_GD_TTF" (Or "-DUSE_GD_FT" for Freetype 2.x) part. Is it appropriate to inform the Mapserver website's authors that there are still issues with Freetype 2.x, and that Freetype 1.x is still the only safe choice? A rewrite of the install section might prevent people from encountering the problem I've found with text angles. If it's appropriate, do you know who's best to email with the information about Freetype 2.x vs. Freetype 1.x to get the website updated? Thanks, Jonathan W. Lowe Quoting Steve Lime : > I've seen this before but only with freetype 2. It's likely a > GD-Freetype issue. Perhaps its fixed in gd-2.0, but I haven't checked. > You're best off still using Freetype 1. > > This is not a mapserver issue per se... > > Steve > > >>> "John M. Duggan, LSIT" 09/17/02 03:17PM >>> > I'm having almost the same problem, but mine seems to be treating every > letter separate. > John M. Duggan > > From steve.lime at dnr.state.mn.us Thu Sep 19 12:24:50 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 19 Sep 2002 14:24:50 -0500 Subject: [mapserver-users] Variations in label behavior Message-ID: The problems with FT2 are really hit-and-miss. I'm still not sure where the problem really lies. It could simply be braindead fonts. The issue is further clouded because MapServer 3.7 features 24-bit image handling and that can only be done with GD2, and GD2 only supports FT2. It may be that FT2/GD2 is very stable but I've not done enough testing to know. There was a document coordinator at the UMN, but that person has recently quit. Until they re-fill that position (they are looking) it's best to add this to the WIKI or forward to the install documentation authors themselves. I can edit the website but have no time to do that given my other MapServer duties. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 09/19/02 12:59PM >>> Steve, The install documentation on Mapserver 3.6 implies that Freetype 2.x is okay: > If your GD is built against FreeType, you will see either > "-DUSE_GD_TTF" (Or "-DUSE_GD_FT" for Freetype 2.x) part. Is it appropriate to inform the Mapserver website's authors that there are still issues with Freetype 2.x, and that Freetype 1.x is still the only safe choice? A rewrite of the install section might prevent people from encountering the problem I've found with text angles. If it's appropriate, do you know who's best to email with the information about Freetype 2.x vs. Freetype 1.x to get the website updated? Thanks, Jonathan W. Lowe Quoting Steve Lime : > I've seen this before but only with freetype 2. It's likely a > GD-Freetype issue. Perhaps its fixed in gd-2.0, but I haven't checked. > You're best off still using Freetype 1. > > This is not a mapserver issue per se... > > Steve > > >>> "John M. Duggan, LSIT" 09/17/02 03:17PM >>> > I'm having almost the same problem, but mine seems to be treating every > letter separate. > John M. Duggan > > From mgiesbrecht at geoarctic.com Thu Sep 19 12:42:22 2002 From: mgiesbrecht at geoarctic.com (Mark Giesbrecht) Date: Thu, 19 Sep 2002 13:42:22 -0600 Subject: [mapserver-users] Problem with template file References: <5.1.0.14.0.20020918110534.00b22a50@snovit.t-kartor.se> Message-ID: <3D8A289E.2AA9583D@geoarctic.com> Hi Matthew, I think that it has to do with the fact that mapserver does not recognize the .php4 extension as an web-based file, thus returning an error. A solution you could try is to configure your web server setup (Apache, IIS?) to recognize .html as an executable script, done so by PHP. I had seen this in an old Linux Journal article, where it covered migrating an HTML based site to PHP. I can check this evening for the article, and can sum it for you if you'd like. Cheers, Mark Matthew Archer wrote: > Hi, > > I have a problem using a php file as a temmplate. using 'map.html' works > ok, using 'map2.php4' generates this error: > > Content-type: text/html msReturnPage(): Web application error. Malformed > template name. > > Both files exist and their contents are the same (only html actually, no > php code). > > Why???? > > WEB > TEMPLATE "map.html" > # TEMPLATE "map2.php4" > IMAGEPATH "c:\apache\htdocs\tmp\" > IMAGEURL "\tmp\" > END > > ******************************** > Matthew Archer > T-Kartor Sweden AB > Box 5097 > S-291 05 Kristianstad > SWEDEN > > Phone: +46-(0) 44-206823 > Mobile: +46-(0)733-206823 > Fax: +46-(0) 44-128256 > mailto:ma at t-kartor.se > http://www.t-kartor.se > Kristianstad: http://www.karthotellet.com/map/?id=920 > ******************************** > -------------- next part -------------- A non-text attachment was scrubbed... Name: mgiesbrecht.vcf Type: text/x-vcard Size: 346 bytes Desc: Card for Mark Giesbrecht URL: From john.bennett at noetix.on.ca Thu Sep 19 13:17:27 2002 From: john.bennett at noetix.on.ca (John Bennett) Date: Thu, 19 Sep 2002 16:17:27 -0400 Subject: [mapserver-users] .map Message-ID: I'm new to this, therefore a simple question. I have a large dataset that is being added to daily, full of shapefiles and Gifs. For displaying these files using Mapserver is the protocol to update the .map file every time the database is updated (one big .map file, I don't think so, too big eh!) or make a new .map dynamically for each user depending on their request? Thanks for the past help. John From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Thu Sep 19 13:33:28 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Thu, 19 Sep 2002 16:33:28 -0400 Subject: [mapserver-users] Variations in label behavior Message-ID: <7CDD7B94357FD5119E800002A537C46E230337@s5-ccr-r1.ccrs.nrcan.gc.ca> Hmmm indeed, looks like I don't mention freetype in the docs ... I'll add that in, though like Steve mention, there's no Docs administrator right now, so who knows when it'll go up ... J.F. -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, September 19, 2002 3:25 PM To: gisweb at lmi.net Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Variations in label behavior The problems with FT2 are really hit-and-miss. I'm still not sure where the problem really lies. It could simply be braindead fonts. The issue is further clouded because MapServer 3.7 features 24-bit image handling and that can only be done with GD2, and GD2 only supports FT2. It may be that FT2/GD2 is very stable but I've not done enough testing to know. There was a document coordinator at the UMN, but that person has recently quit. Until they re-fill that position (they are looking) it's best to add this to the WIKI or forward to the install documentation authors themselves. I can edit the website but have no time to do that given my other MapServer duties. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 09/19/02 12:59PM >>> Steve, The install documentation on Mapserver 3.6 implies that Freetype 2.x is okay: > If your GD is built against FreeType, you will see either > "-DUSE_GD_TTF" (Or "-DUSE_GD_FT" for Freetype 2.x) part. Is it appropriate to inform the Mapserver website's authors that there are still issues with Freetype 2.x, and that Freetype 1.x is still the only safe choice? A rewrite of the install section might prevent people from encountering the problem I've found with text angles. If it's appropriate, do you know who's best to email with the information about Freetype 2.x vs. Freetype 1.x to get the website updated? Thanks, Jonathan W. Lowe Quoting Steve Lime : > I've seen this before but only with freetype 2. It's likely a > GD-Freetype issue. Perhaps its fixed in gd-2.0, but I haven't checked. > You're best off still using Freetype 1. > > This is not a mapserver issue per se... > > Steve > > >>> "John M. Duggan, LSIT" 09/17/02 03:17PM >>> > I'm having almost the same problem, but mine seems to be treating every > letter separate. > John M. Duggan > > From Hugues.Parvillers at AgdF.com Thu Sep 19 13:34:36 2002 From: Hugues.Parvillers at AgdF.com (Hugues Parvillers) Date: Thu, 19 Sep 2002 22:34:36 +0200 Subject: [mapserver-users] New tool to check out References: <7CDD7B94357FD5119E800002A537C46E226E9E@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <3D8A34DC.12126713@AgdF.com> Sorry but I don't know where datas come from but this is quite fantaisist for France. Also I would like to be sure what the challenge or performance is in such demos ? H/P Tom.Kralidis at ccrs.nrcan.gc.ca a ?crit : > > -----Original Message----- > > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > > Sent: Thursday, September 19, 2002 10:00 AM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] New tool to check out > > > > > > Hi all, > > > > I just got a world-wide place name geocoder working. It has over 7 > > million records in it and it links the results to a Mapserver > > (modified maplab) viewer using vmap0 data for the world base map. > > > > I will be making some changes to both over time, but thought I would > > share them with you if your interested. > > > > http://iMapTools.com/geocode.php > > > > -Stephen Woodbridge > > http://iMapTools.com > > > > Stephen, > > This is pretty impressive. Is/can this be setup as a service, i.e. GetMap > by placename? > > Thanks > > ..Tom > > ================================= > Tom Kralidis > Systems Scientist > Canada Centre for Remote Sensing > Tel: (613) 947-1828 > http://www.ccrs.nrcan.gc.ca/ > ================================= From joe at otsys.com Thu Sep 19 15:25:34 2002 From: joe at otsys.com (Joe Bussell) Date: Thu, 19 Sep 2002 15:25:34 -0700 Subject: [Re: [mapserver-users] professional MapServer services list? / ArcIMS-MapServer choice] Message-ID: <20020919222534.GB16780@otsys.com> Greetings, I may not be able to add anything to this conversation, as much has undoubtedly been previously considered. I still feel compelled to add my $0.02. Several months ago we had ArcIMS and MapServer on the bench for a general comparison. We had certain guidlines which led us to select MapServer as the best fit for our needs. Our first requirement was the ability to interact with our custom route server. This server is very straight forward and we had complete control of the protocol. It was built on *nix as was our basic CGI interface. Whatever we selected for map generation had to be controllable from the *nix server using server side cgi. We put two programmers on the job. One with ArcIMS, the other with MapServer. We had both producing maps of our area of interest within a week. The ArcIMS maps were an early lead as the map display control was a glitzy wizard. The next step of integrating to our server was a big challenge for ArcIMS and trivial for MapServer. The ArcIMS product required the development of a custom servlet on the *nix side to interface with the java servlet on a Win2000 server. This seemed ugly, so I called ESRI tech support. Quite frankly they led me in circles for a week. Ultimately they offered to develop a custom server, or I could wait for the *nix version. It was destined to be database driven, closed source, with a fixed interface style. While I am usually a proponent of orthogonal interfaces, this one was cumbersome at best. At that point I gave up on ArcIMS for a while to see how interfacing MapServer would go. It took two hours to get our routes to paint on top of maps with controllable extent. Within a few days we had live sensor data and a user interface for the route engine. We sent the eval copy back to ESRI, thanking them for their time and citing our concerns. I think they may very well have responded to some of those, but it was too late for us. At that point we had a handle on pre-rastering the static portions of our maps (still not perfect, but hey we're in beta). Now our maps render quickly enough to show off. Our firm is into search and route. We are not really a GIS firm. We focus on applying recent research results in search, scheduling, and constraint satisfaction to military and industrial optimization problems. TrafficDodger is a service intended to showcase our prediction, routing, and scheduling tools. It just happened that I have some background in PERL and had the stomach to deal with cross-browser dhtml. Now I am the resident MapServer expert (though I do not profess to be an expert). It seems to me that anyone with a handle on PERL or PHP could crank out a MapServer application in a few short weeks. I have built some sweet internal tools using MapServer without much effort. To make a long story longer, I would reccomend MapServer over competitive products without hesitation. The proof is in the applications that are out there. I hope that our site is a useful representation of what can be done with a small amount of knowlege and a bit of tenacity. Cordially, Joe Bussell On Time Systems www.TrafficDodger.com From jon at cybersite.com.au Thu Sep 19 16:01:09 2002 From: jon at cybersite.com.au (Jonathon Coombes) Date: 20 Sep 2002 09:01:09 +1000 Subject: [mapserver-users] Querying a dynamic layer Message-ID: <1032476469.12790.177.camel@smp.training4linux.com> Hi All, i am relatively new to mapserver, and I have tried a number of ways to solve this problem, but nothing seems to work. Here is the scenario: I have a mapfile which defines a number of layers for cities, rivers and water areas. These are standard shape files etc, and query fine. I also create a dummy layer dynamically from data retrieved by sql from a database. This returns the lat/longitude and some other data relating to descriptions and numbers etc. It all seems to work fine, but it does not query either by point or rectangle. Here are the different approaches I have tried: * Create the metadata directly using the setMetaData function. * I have added the template line within the class, which I found was a necessary part of the query. * I tried adding a labelitem. * I created a shapefile using newShapeFileObj and adding data in. * Set the data to the datafile name. (Creates the data files fine) The basis of code is the standard GMap demo. It is running on a Windows system (not my choice :) and PHP/Mapscript. Here is the code I have to generate the data layer: // The query is run and it populates the sites[] array with // the data from the sql database. $dummy_layer = $gpoMap->getLayerByName('dummy'); $dummyclass = ms_newClassObj($dummy_layer); $dummy_layer->set("labelitem", "NEAR_TOWN"); $dummy_layer->set("template", "ttt.html"); $dummy_layer->set("data","query"); $figura = ms_newShapeObj(MS_SHAPE_LINE); $ponto_obj = ms_newLineObj(); $numpoints = count($sites_1); for ($i=0; $i < $numpoints; $i++) { $point = ms_newPointObj(); $point->setXY($sites[$i]['lon'],$sites[$i]['lat']); $ponto_obj->add($point); $figura->add($ponto_obj); $point->free(); } // Create shape-file $shfile = ms_newShapefileObj("./data/query", MS_SHP_MULTIPOINT); $shfile->addShape($figura); $shfile->free(); // Set all the necessary MetData for the points $dummy_layer->setMetaData("RESULT_FIELDS", "NEAR_TOWN NUMBER DATE"); $dummy_layer->setMetaData("DESCRIPTION", "This is the Description"); $dummy_layer = $gpoMap->getLayerByName("dummy"); $dummy_layer->addFeature($figura); $dummy_layer->set("status", MS_ON); My MAP file contains the following for the dummy layer: LAYER NAME dummy TYPE POINT STATUS OFF CLASS NAME 'dummy' COLOR 255 0 0 SYMBOL 'circle' SIZE 7 TEMPLATE "ttt_query.html" END TOLERANCE 5 END Also, is this the best way to do a dynamic layer? I want to be able to create the dynamic layer and then use it for the session without having to do the sql query every time the map is redrawn. Any better way of doing this? Any help here would be most appreciated. Regards, Jonathon From woodbri at swoodbridge.com Thu Sep 19 18:06:35 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 19 Sep 2002 21:06:35 -0400 Subject: [mapserver-users] .map In-Reply-To: Message-ID: <3D8A3C5B.3328.CAFEC20@localhost> John, There are a few of ways to look at this problem. One is think of every shape file as a layer and have a bazillion layers - this may be the right way, but there may be a better way. An other way is to think of the data as a smaller number of sets of common objects where each set represents a layer in the map file. Let say you have a set of telephone poles and every day another city or region reports on with their telephone poles in their own shape file. So now you have to include that new shapefile in the map. Bang! need another layer - right? ... Wrong! I have a Tiger/Line Mapserver running. The Tiger data is organized by counties, about 3300 of them in the US, every county has about 10 different shapefiles, that would make about 33,000 shapefiles, but I only have 10 layers to define the 10 types of data in the mapfile. If I added another county and its 10 new shapefiles, I would not need to add any new layers. The trick is to make a tileindex for each layer that points to the the 3300 files that represent a single layer. If I add a new shape file to the map, I update the tileindex to include a reference to the new file and I never touch the mapfile. This can easily be automated with a little scripting. In example above of telephone poles it would work the same way. You copy the new shape files to the map data directory and run a utility to add its record to the tileindex. I hope this makes sense, -Stephen Woodbridge http://iMapTools.com On 19 Sep 2002 at 16:17, John Bennett wrote: > I'm new to this, therefore a simple question. > > I have a large dataset that is being added to daily, full of > shapefiles and Gifs. For displaying these files using Mapserver is the > protocol to update the .map file every time the database is updated > (one big .map file, I don't think so, too big eh!) or make a new .map > dynamically for each user depending on their request? Thanks for the > past help. John > > > From woodbri at swoodbridge.com Thu Sep 19 18:06:35 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 19 Sep 2002 21:06:35 -0400 Subject: [mapserver-users] Querying a dynamic layer In-Reply-To: <1032476469.12790.177.camel@smp.training4linux.com> Message-ID: <3D8A3C5B.23894.CAFEB30@localhost> Jonathan, You need to read the gmap75 code a little closer. I think you will find that the query code does not use the rendering code. What this means to you is that just as you have to create the dynamic data layer for the rendering code you need to ALSO add a similar block to create the dynamic data layer in the appropriate place for the query code to pick it up. It has been a while since I looked at that code, but I'm pretty sure that it has 2 different paths for query and render. I hope this helps, -Stephen Woodbridge http://iMapTools.com On 20 Sep 2002 at 9:01, Jonathon Coombes wrote: > Hi All, > > i am relatively new to mapserver, and I have tried a number of ways to > solve this problem, but nothing seems to work. Here is the scenario: > > I have a mapfile which defines a number of layers for cities, rivers > and water areas. These are standard shape files etc, and query fine. I > also create a dummy layer dynamically from data retrieved by sql from > a database. This returns the lat/longitude and some other data > relating to descriptions and numbers etc. It all seems to work fine, > but it does not query either by point or rectangle. > > Here are the different approaches I have tried: > > * Create the metadata directly using the setMetaData function. > * I have added the template line within the class, which I found was > a necessary part of the query. > * I tried adding a labelitem. > * I created a shapefile using newShapeFileObj and adding data in. * > Set the data to the datafile name. (Creates the data files fine) > > The basis of code is the standard GMap demo. It is running on a > Windows system (not my choice :) and PHP/Mapscript. Here is the > code I have to generate the data layer: > > // The query is run and it populates the sites[] array with > // the data from the sql database. > > $dummy_layer = $gpoMap->getLayerByName('dummy'); > $dummyclass = ms_newClassObj($dummy_layer); > $dummy_layer->set("labelitem", "NEAR_TOWN"); > $dummy_layer->set("template", "ttt.html"); > $dummy_layer->set("data","query"); > > $figura = ms_newShapeObj(MS_SHAPE_LINE); > $ponto_obj = ms_newLineObj(); > $numpoints = count($sites_1); > for ($i=0; $i < $numpoints; $i++) { > $point = ms_newPointObj(); > $point->setXY($sites[$i]['lon'],$sites[$i]['lat']); > $ponto_obj->add($point); > $figura->add($ponto_obj); > $point->free(); > } > > // Create shape-file > $shfile = ms_newShapefileObj("./data/query", MS_SHP_MULTIPOINT); > $shfile->addShape($figura); $shfile->free(); > > // Set all the necessary MetData for the points > $dummy_layer->setMetaData("RESULT_FIELDS", "NEAR_TOWN NUMBER DATE"); > $dummy_layer->setMetaData("DESCRIPTION", "This is the Description"); > > $dummy_layer = $gpoMap->getLayerByName("dummy"); > $dummy_layer->addFeature($figura); > $dummy_layer->set("status", MS_ON); > > My MAP file contains the following for the dummy layer: > > LAYER > NAME dummy > > TYPE POINT > STATUS OFF > CLASS > NAME 'dummy' > COLOR 255 0 0 > SYMBOL 'circle' > SIZE 7 > TEMPLATE "ttt_query.html" > END > > TOLERANCE 5 > > END > > Also, is this the best way to do a dynamic layer? I want to be able to > create the dynamic layer and then use it for the session without > having to do the sql query every time the map is redrawn. Any better > way of doing this? > > Any help here would be most appreciated. > > Regards, > Jonathon > > From woodbri at swoodbridge.com Thu Sep 19 18:24:59 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 19 Sep 2002 21:24:59 -0400 Subject: [mapserver-users] New tool to check out In-Reply-To: <3D8A34DC.12126713@AgdF.com> Message-ID: <3D8A40AB.2681.CC0C32B@localhost> Hugues, There is a lot of data behind this demo and one of the biggest challenges is finding good data. There is a lot of data for the US that is collected and made available by the US government. There is also some data made available by the US government for other countries. So I will briefly explain what I did to create this demo. 1) vmap0 - is the data from www.nima.gov. It is vector map level 0 (vmap0) data which is a 1:1,000,000 scale vector data for the whole world. 2) the vmap0 data is in a proprietary VPF format that needs to be converted into shape files and have a Mapserver application build around it. I used maplab to build the basic application and mapfile and then did some customization of it. 3) the Where in the world? geocoder required collecting various datasets from NIMA and USGS sources and loading them into a MySQL database and then writing a PHP app to talk with the user and then point to the Mapserver application. Again this piece required getting good data and then writing an application around the data. I use Perl, C and/or PHP depending on what needs to be done. Perl is great for parsing data and loading the databases, PHP is great for developing Mapscript applications and web user interfaces and C for servers and where performance is an issue. I hope this answers your question. Regards, -Stephen Woodbridge http://iMapTools.com On 19 Sep 2002 at 22:34, Hugues Parvillers wrote: > Sorry but > > I don't know where datas come from but this is quite fantaisist for > France. > > Also I would like to be sure what the challenge or performance is in > such demos ? > > H/P > > > > > Tom.Kralidis at ccrs.nrcan.gc.ca a ?crit : > > > > -----Original Message----- > > > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > > > Sent: Thursday, September 19, 2002 10:00 AM To: > > > mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] New > > > tool to check out > > > > > > > > > Hi all, > > > > > > I just got a world-wide place name geocoder working. It has over 7 > > > million records in it and it links the results to a Mapserver > > > (modified maplab) viewer using vmap0 data for the world base map. > > > > > > I will be making some changes to both over time, but thought I > > > would share them with you if your interested. > > > > > > http://iMapTools.com/geocode.php > > > > > > -Stephen Woodbridge > > > http://iMapTools.com > > > > > > > Stephen, > > > > This is pretty impressive. Is/can this be setup as a service, i.e. > > GetMap by placename? > > > > Thanks > > > > ..Tom > > > > ================================= > > Tom Kralidis > > Systems Scientist > > Canada Centre for Remote Sensing > > Tel: (613) 947-1828 > > http://www.ccrs.nrcan.gc.ca/ > > ================================= > > > From jon at cybersite.com.au Thu Sep 19 19:19:02 2002 From: jon at cybersite.com.au (Jonathon Coombes) Date: 20 Sep 2002 12:19:02 +1000 Subject: [mapserver-users] Querying a dynamic layer In-Reply-To: <3D8A3C5B.23894.CAFEB30@localhost> References: <3D8A3C5B.23894.CAFEB30@localhost> Message-ID: <1032488342.3254.236.camel@smp.training4linux.com> On Fri, 2002-09-20 at 11:06, woodbri at swoodbridge.com wrote: > Jonathan, > > You need to read the gmap75 code a little closer. I think you will > find that the query code does not use the rendering code. What this > means to you is that just as you have to create the dynamic data > layer for the rendering code you need to ALSO add a similar block to > create the dynamic data layer in the appropriate place for the query > code to pick it up. It has been a while since I looked at that code, > but I'm pretty sure that it has 2 different paths for query and > render. Hi Stephen, Thanks for the reply, and I am glad such an experienced user of mapserver can help me out. In regards to your comments however, I am a little confused. Is not the information returned by the query based on the DATA definition and METADATA? If you are referring to code to recognise the query, then I have used the gmap code exactly as is, but with an extra function built in. The only place I can find close to filling the query code section you mention is as follows: /* ---------------------------------------------------------- */ /* Query selected layers at point location or in a rectangle. */ /* DumpQueryResults() will be called later to display the */ /* results. */ /* ---------------------------------------------------------- */ if ($bRectangleInput) { $oGeorefRect = ms_newrectobj(); $oGeorefRect->set("minx", GMapPix2Geo($oPixelRect->minx, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0)); $oGeorefRect->set("maxx", GMapPix2Geo($oPixelRect->maxx, 0, $dfWidthPix, $dfMinX,$dfMaxX, 0)); $oGeorefRect->set("miny", GMapPix2Geo($oPixelRect->miny, 0, $dfHeightPix, $dfMinY,$dfMaxY, 1)); $oGeorefRect->set("maxy", GMapPix2Geo($oPixelRect->maxy, 0, $dfHeightPix, $dfMinY,$dfMaxY, 1)); // Use '@' to avoid warning if query found nothing @$gpoMap->queryByRect($oGeorefRect); $gbShowQueryResults = TRUE; } With a similar section for queryByPoint as well. It appears as though no matter what approach I take, the queryByRect (or Point), does not return any results? What function or structure must I create to add the information for the query to find the points? Regards, Jonathon From ed at topozone.com Thu Sep 19 19:42:41 2002 From: ed at topozone.com (Ed McNierney) Date: Thu, 19 Sep 2002 22:42:41 -0400 Subject: [mapserver-users] .map Message-ID: <13858AA1A74F30419F319ACB66A9D1220E86C3@mercator.topozone.com> John - I would simply add to Steve's note that it is possible - depending upon the application - to construct your tile index so you do NOT have to rebuild it each time. The tile index file contains a rectangular bounding box for each of the set of shapefiles it indexes. In general you want those bounding boxes to be as tight as possible so you don't open any more shapefiles than you have to in order to render a specific map request. But the tile index could simply represent a geographic segmentation of the data set. For example, you might have a tile index file that consists of nothing but one-degree by one-degree rectangles covering your region of interest. Let's say you were tracking West Nile virus infections across the US. You create a tile index that consists of these one-degree-square rectangles each pointing to a single point shapefile. So there would be one point shapefile named 43N072W, for example, that contained all the WNV incidents in the one-degree square with 43 N latitude 72 W longitude at its southeast corner. If that particular shapefile were updated or added to on a periodic basis, there's no need to ever change the tile index shapefile. If the individual data sets are going to get to any noticeable size, you should use shptree to create internal spatial indexes for each shapefile. It is also a good idea to design your tile index so it does a good job of partitioning the data. The one-degree scheme would not be a good choice if the dataset were cities with populations greater than 100,000; many of the tiles would point to empty shapefiles. The goal is to never, ever have to look inside a shapefile if you will find nothing of interest in it. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 (978) 251-4242 ed at topozone.com -----Original Message----- From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] Sent: Thursday, September 19, 2002 9:07 PM To: John Bennett; Mapserver-Users Subject: Re: [mapserver-users] .map John, There are a few of ways to look at this problem. One is think of every shape file as a layer and have a bazillion layers - this may be the right way, but there may be a better way. An other way is to think of the data as a smaller number of sets of common objects where each set represents a layer in the map file. Let say you have a set of telephone poles and every day another city or region reports on with their telephone poles in their own shape file. So now you have to include that new shapefile in the map. Bang! need another layer - right? ... Wrong! I have a Tiger/Line Mapserver running. The Tiger data is organized by counties, about 3300 of them in the US, every county has about 10 different shapefiles, that would make about 33,000 shapefiles, but I only have 10 layers to define the 10 types of data in the mapfile. If I added another county and its 10 new shapefiles, I would not need to add any new layers. The trick is to make a tileindex for each layer that points to the the 3300 files that represent a single layer. If I add a new shape file to the map, I update the tileindex to include a reference to the new file and I never touch the mapfile. This can easily be automated with a little scripting. In example above of telephone poles it would work the same way. You copy the new shape files to the map data directory and run a utility to add its record to the tileindex. I hope this makes sense, -Stephen Woodbridge http://iMapTools.com On 19 Sep 2002 at 16:17, John Bennett wrote: > I'm new to this, therefore a simple question. > > I have a large dataset that is being added to daily, full of > shapefiles and Gifs. For displaying these files using Mapserver is the > protocol to update the .map file every time the database is updated > (one big .map file, I don't think so, too big eh!) or make a new .map > dynamically for each user depending on their request? Thanks for the > past help. John > > > From Hugues.Parvillers at AgdF.com Thu Sep 19 22:28:54 2002 From: Hugues.Parvillers at AgdF.com (Hugues Parvillers) Date: Fri, 20 Sep 2002 07:28:54 +0200 Subject: [mapserver-users] New tool to check out References: <3D8A40AB.2681.CC0C32B@localhost> Message-ID: <3D8AB216.167527D6@AgdF.com> Hello Stephen, tks for your answer. I understand now ! You are 120% right when you write the biggest challenge is to find good data ! At least, this is not easy in France and I can not understand this ! H/P woodbri at swoodbridge.com a ?crit : > Hugues, > > There is a lot of data behind this demo and one of the biggest > challenges is finding good data. There is a lot of data for the US > that is collected and made available by the US government. There is > also some data made available by the US government for other > countries. > > So I will briefly explain what I did to create this demo. > > 1) vmap0 - is the data from www.nima.gov. It is vector map level 0 > (vmap0) data which is a 1:1,000,000 scale vector data for the whole > world. > > 2) the vmap0 data is in a proprietary VPF format that needs to be > converted into shape files and have a Mapserver application build > around it. I used maplab to build the basic application and mapfile > and then did some customization of it. > > 3) the Where in the world? geocoder required collecting various > datasets from NIMA and USGS sources and loading them into a MySQL > database and then writing a PHP app to talk with the user and then > point to the Mapserver application. Again this piece required getting > good data and then writing an application around the data. > > I use Perl, C and/or PHP depending on what needs to be done. Perl is > great for parsing data and loading the databases, PHP is great for > developing Mapscript applications and web user interfaces and C for > servers and where performance is an issue. > > I hope this answers your question. > > Regards, > -Stephen Woodbridge > http://iMapTools.com > > On 19 Sep 2002 at 22:34, Hugues Parvillers wrote: > > > Sorry but > > > > I don't know where datas come from but this is quite fantaisist for > > France. > > > > Also I would like to be sure what the challenge or performance is in > > such demos ? > > > > H/P > > > > > > > > > > Tom.Kralidis at ccrs.nrcan.gc.ca a ?crit : > > > > > > -----Original Message----- > > > > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > > > > Sent: Thursday, September 19, 2002 10:00 AM To: > > > > mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] New > > > > tool to check out > > > > > > > > > > > > Hi all, > > > > > > > > I just got a world-wide place name geocoder working. It has over 7 > > > > million records in it and it links the results to a Mapserver > > > > (modified maplab) viewer using vmap0 data for the world base map. > > > > > > > > I will be making some changes to both over time, but thought I > > > > would share them with you if your interested. > > > > > > > > http://iMapTools.com/geocode.php > > > > > > > > -Stephen Woodbridge > > > > http://iMapTools.com > > > > > > > > > > Stephen, > > > > > > This is pretty impressive. Is/can this be setup as a service, i.e. > > > GetMap by placename? > > > > > > Thanks > > > > > > ..Tom > > > > > > ================================= > > > Tom Kralidis > > > Systems Scientist > > > Canada Centre for Remote Sensing > > > Tel: (613) 947-1828 > > > http://www.ccrs.nrcan.gc.ca/ > > > ================================= > > > > > > From imap at chesapeake.net Fri Sep 20 00:38:05 2002 From: imap at chesapeake.net (Chris Stuber) Date: Fri, 20 Sep 2002 03:38:05 -0400 (EDT) Subject: [mapserver-users] .map In-Reply-To: Message-ID: <20020920030632.B17543-100000@mail.chesapeake.net> John, I saw the other responses to this question suggesting a tileindex solution, etc. but if you are dynamically assigning user specific layers (ie. layers displayed based on "user" versus a spatial context, say from a user profile, etc...) you can create a template mapfile, and just dynamically add layers from mapscript on-the-fly. That works just fine from a perl CGI or php. In the mapfile, you can setup various layer templates for common layers parameters (such as COLOR/OUTLINECOLOR/MINSCALE/MAXSCALE) and then in your mapscript, you can add the layer $map->getLayerByName(), set the $layer->{status}, assign the $layer->{data} member, and render the layer with $layer->draw(). I just thought I would give a different slant for a response... If you new to mapserver, look into mapscript to get the most granular control of rendering maps, etc. it rocks! Some applications are simple enough to use the CGI version of mapserver, but the more complex apps will require you to use mapscript... Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. http://www.siliconmapping.com On Thu, 19 Sep 2002, John Bennett wrote: > I'm new to this, therefore a simple question. > > I have a large dataset that is being added to daily, full of shapefiles and > Gifs. For displaying these files using Mapserver is the protocol to update > the .map file every time the database is updated (one big .map file, I don't > think so, too big eh!) or make a new .map dynamically for each user > depending on their request? > Thanks for the past help. > John > > From imap at chesapeake.net Fri Sep 20 00:50:15 2002 From: imap at chesapeake.net (Chris Stuber) Date: Fri, 20 Sep 2002 03:50:15 -0400 (EDT) Subject: [mapserver-users] New tool to check out In-Reply-To: <3D8AB216.167527D6@AgdF.com> Message-ID: <20020920034248.D17543-100000@mail.chesapeake.net> Hughes, THis company TeleAtlas http://www.teleatlas.com has good quality european data for most countries... I know for sure they have data for France and Monaco in Shapefile format. but, (there's always a but) it's gonna be expensive. Just FYI Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc http://www.siliconmapping.com On Fri, 20 Sep 2002, Hugues Parvillers wrote: > Hello Stephen, > > tks for your answer. > > I understand now ! > You are 120% right when you write the biggest challenge is to find good data > ! > > At least, this is not easy in France and I can not understand this ! > > > > H/P > > woodbri at swoodbridge.com a ?crit : > > > Hugues, > > > > There is a lot of data behind this demo and one of the biggest > > challenges is finding good data. There is a lot of data for the US > > that is collected and made available by the US government. There is > > also some data made available by the US government for other > > countries. > > > > So I will briefly explain what I did to create this demo. > > > > 1) vmap0 - is the data from www.nima.gov. It is vector map level 0 > > (vmap0) data which is a 1:1,000,000 scale vector data for the whole > > world. > > > > 2) the vmap0 data is in a proprietary VPF format that needs to be > > converted into shape files and have a Mapserver application build > > around it. I used maplab to build the basic application and mapfile > > and then did some customization of it. > > > > 3) the Where in the world? geocoder required collecting various > > datasets from NIMA and USGS sources and loading them into a MySQL > > database and then writing a PHP app to talk with the user and then > > point to the Mapserver application. Again this piece required getting > > good data and then writing an application around the data. > > > > I use Perl, C and/or PHP depending on what needs to be done. Perl is > > great for parsing data and loading the databases, PHP is great for > > developing Mapscript applications and web user interfaces and C for > > servers and where performance is an issue. > > > > I hope this answers your question. > > > > Regards, > > -Stephen Woodbridge > > http://iMapTools.com > > > > On 19 Sep 2002 at 22:34, Hugues Parvillers wrote: > > > > > Sorry but > > > > > > I don't know where datas come from but this is quite fantaisist for > > > France. > > > > > > Also I would like to be sure what the challenge or performance is in > > > such demos ? > > > > > > H/P > > > > > > > > > > > > > > > Tom.Kralidis at ccrs.nrcan.gc.ca a ?crit : > > > > > > > > -----Original Message----- > > > > > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > > > > > Sent: Thursday, September 19, 2002 10:00 AM To: > > > > > mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] New > > > > > tool to check out > > > > > > > > > > > > > > > Hi all, > > > > > > > > > > I just got a world-wide place name geocoder working. It has over 7 > > > > > million records in it and it links the results to a Mapserver > > > > > (modified maplab) viewer using vmap0 data for the world base map. > > > > > > > > > > I will be making some changes to both over time, but thought I > > > > > would share them with you if your interested. > > > > > > > > > > http://iMapTools.com/geocode.php > > > > > > > > > > -Stephen Woodbridge > > > > > http://iMapTools.com > > > > > > > > > > > > > Stephen, > > > > > > > > This is pretty impressive. Is/can this be setup as a service, i.e. > > > > GetMap by placename? > > > > > > > > Thanks > > > > > > > > ..Tom > > > > > > > > ================================= > > > > Tom Kralidis > > > > Systems Scientist > > > > Canada Centre for Remote Sensing > > > > Tel: (613) 947-1828 > > > > http://www.ccrs.nrcan.gc.ca/ > > > > ================================= > > > > > > > > > > > From c.sandor at emla.hu Fri Sep 20 02:45:35 2002 From: c.sandor at emla.hu (Sandor Csaba) Date: Fri, 20 Sep 2002 11:45:35 +0200 Subject: [mapserver-users] line layer label angle changes Message-ID: <5.1.0.14.0.20020920113754.00c06190@192.168.1.7> Hi All, I want to label streets with their names. It works fine on my windows box (downloaded binaries: ms36gif_gdal_pg_wms.zip). On a Solaris box (the real Internet server, mapserv 3.6.1 CGI, Freetype2, PNG support) the labels are randomly rotated around the same label point. Anybody had similar problems? Can this be a Freetype1 vs. 2 issue? I use the following label definition in the mapfile LABEL COLOR 0 0 0 TYPE TRUETYPE FONT arial SIZE 10 ANTIALIAS true POSITION AUTO PARTIALS TRUE MINFEATURESIZE 1 FORCE FALSE BUFFER 3 ANGLE AUTO END Thanks, Csaba - {Kornyezeti Management es Jog Egyesulet {Environmental Management and Law Association {www.emla.hu {1076 Budapest {Garay u. 29-31 {Hungary {Tel/fax: 36-1-3228462, 36-1-3529925 {Mobil: 06-20-949-1447 From pcarrasco at iver.es Fri Sep 20 04:12:02 2002 From: pcarrasco at iver.es (Pedro Carrasco) Date: Fri, 20 Sep 2002 13:12:02 +0200 Subject: [mapserver-users] PHP filter expression Message-ID: <00cf01c26096$8c271e50$0f00a8c0@iver.es> Hi all, What's the correct format of a filter in the funcion setFilter? I try to put $lyr->set('filteritem','ID'); $lyr->setFilter('/'.$values.'/'); whith $values = 1234|234|234 but it not works. If I put the filter: $lyr->setFilter($values); and values= '1234'|'234'|'234'; it works but only show the first value Thanks in advance. Regards -- "Quedarse en lo conocido por miedo a lo desconocido es lo mismo que mantenerse con vida pero no vivir" From woodbri at swoodbridge.com Fri Sep 20 04:48:42 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 20 Sep 2002 07:48:42 -0400 Subject: [mapserver-users] line layer label angle changes In-Reply-To: <5.1.0.14.0.20020920113754.00c06190@192.168.1.7> Message-ID: <3D8AD2DA.4603.EFBC8BC@localhost> This is a freetype 2 issue, just get libttf-1.3.1 and you problems should go away. -Steve W. http://iMapTools.com On 20 Sep 2002 at 11:45, Sandor Csaba wrote: > Hi All, > > I want to label streets with their names. It works fine on my windows > box (downloaded binaries: ms36gif_gdal_pg_wms.zip). On a Solaris box > (the real Internet server, mapserv 3.6.1 CGI, Freetype2, PNG support) > the labels are randomly rotated around the same label point. > > Anybody had similar problems? Can this be a Freetype1 vs. 2 issue? > > I use the following label definition in the mapfile > > LABEL > COLOR 0 0 0 > TYPE TRUETYPE > FONT arial > SIZE 10 > ANTIALIAS true > POSITION AUTO > PARTIALS TRUE > MINFEATURESIZE 1 > FORCE FALSE > BUFFER 3 > ANGLE AUTO > END > > Thanks, > Csaba > > - > {Kornyezeti Management es Jog Egyesulet > {Environmental Management and Law Association > {www.emla.hu > {1076 Budapest > {Garay u. 29-31 > {Hungary > {Tel/fax: 36-1-3228462, 36-1-3529925 > {Mobil: 06-20-949-1447 > > > From zi at manufacture.co.yu Fri Sep 20 05:20:38 2002 From: zi at manufacture.co.yu (Igor Marinovic) Date: Fri, 20 Sep 2002 14:20:38 +0200 Subject: [mapserver-users] line layer label angle changes In-Reply-To: <5.1.0.14.0.20020920113754.00c06190@192.168.1.7>; from c.sandor@emla.hu on Fri, Sep 20, 2002 at 11:45:35AM +0200 References: <5.1.0.14.0.20020920113754.00c06190@192.168.1.7> Message-ID: <20020920142038.A19378@zigor> Hi, I had similar problems with PHP MapScript. Actually, the labels were not rotated randomly around label point. Every letter was rotated once again for LABELANGLEITEM. I tried several version of freetype, downgrade the freetype without success. The solution is compiling the PHP without ttf support. Actually, this is mentioned in the PHP MapScript FAQ :) Hope that this will help to someone. Thanks, Igor On Fri, Sep 20, 2002 at 11:45:35AM +0200, Sandor Csaba wrote: > Hi All, > > I want to label streets with their names. It works fine on my windows box > (downloaded binaries: ms36gif_gdal_pg_wms.zip). On a Solaris box (the real > Internet server, mapserv 3.6.1 CGI, Freetype2, PNG support) the labels are > randomly rotated around the same label point. > > Anybody had similar problems? Can this be a Freetype1 vs. 2 issue? > > I use the following label definition in the mapfile > > LABEL > COLOR 0 0 0 > TYPE TRUETYPE > FONT arial > SIZE 10 > ANTIALIAS true > POSITION AUTO > PARTIALS TRUE > MINFEATURESIZE 1 > FORCE FALSE > BUFFER 3 > ANGLE AUTO > END > > Thanks, > Csaba > > - > {Kornyezeti Management es Jog Egyesulet > {Environmental Management and Law Association > {www.emla.hu > {1076 Budapest > {Garay u. 29-31 > {Hungary > {Tel/fax: 36-1-3228462, 36-1-3529925 > {Mobil: 06-20-949-1447 > > From shussain at atsincorp.com Fri Sep 20 07:03:56 2002 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Fri, 20 Sep 2002 10:03:56 -0400 Subject: [mapserver-users] General error message Message-ID: <4D25CDA67110D3119FFB0008C707D7A7052028@deathstar> Hi List, We compiled mapserver on linux 7.2. The mapsever version details MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Its working fine for the shape files and polyconic ratser images. My map file is in polyconic projection PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END When i load the raster image in different projection space i am getting the followong error message. msDrawRasterLayer( TIFF ): General error message. Raster reprojection supported only with the GDAL library. This raster layer giving the above error message. LAYER NAME "bellegrove_md_ne" TYPE raster DATA "bellegrove_md_ne.tif" STATUS default PROJECTION "proj=utm" "ellps=WGS84" "zone=17" "units=m" END OFFSITE 0 END # LAYER These raster images are showing without any error message. LAYER NAME "drgs" TYPE raster TILEINDEX "sap_imgtile" TILEITEM "location" STATUS ON MAXSCALE 150000 PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END END # LAYER Does any one can help me what i missed in my mapsever compilation. Thanks, Anwar www.atsincorp.com From warmerdam at pobox.com Fri Sep 20 07:40:29 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 20 Sep 2002 10:40:29 -0400 Subject: [mapserver-users] General error message References: <4D25CDA67110D3119FFB0008C707D7A7052028@deathstar> Message-ID: <3D8B335D.3070802@pobox.com> Shaik Anwar Hussain wrote: > Hi List, > We compiled mapserver on linux 7.2. The mapsever version details > MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > Its working fine for the shape files and polyconic ratser images. > My map file is in polyconic projection > > PROJECTION > "proj=poly" > "ellps=GRS80" > "lon_0=77.75w" > "lat_0=40.925n" > END > > When i load the raster image in different projection space i am > getting the followong error message. > msDrawRasterLayer( TIFF ): General error message. Raster reprojection > supported only with the GDAL library. > Anwar, As the error message indicates, reprojection of rasters is only supported when using the GDAL driver. The TIFF file is being handled through the built-in MapServer TIFF support, and so it can't be reprojected. Note that your tile indexed layer has the same projection as the map so no reprojection is required. Since you already have GDAL support enabled in your configuration the key is to convince MapServer to use it in preference to the built-in TIFF support. One way to accomplish that is to rebuild MapServer with the configure options "--without-tiff". Another approach would be to translate the file into some format, like Erdas Imagine, that is only supported by GDAL. Note that in 3.7 MapServer automatically uses GDAL in preference to the built-in TIFF driver in most cases. 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 stevek at avernus.net Fri Sep 20 07:40:42 2002 From: stevek at avernus.net (stevek at avernus.net) Date: Fri, 20 Sep 2002 15:40:42 +0100 (IST) Subject: [mapserver-users] Figuring out pixel size for .wld and raster imags Message-ID: <2071.213.190.156.21.1032532842.squirrel@webmail.avernus.net> Hi all, I'm having problems getting mapserver to produce anything other than a 28x30 broken image. I'm working currently with a raster image, just trying to get it to even display, never mind actually putting points up. My raster image is as follows: orig.tiff TIFF 1445x1044 DirectClass 8-bit 2474Kb 1.3u 0:02 I know the GPS co-ordinates of the top left and bottom right: Top left is: -6.430508, 53.432611 Bottom right is: -6.065211, 53.263772 Does this mean the pixel size is as follows? X pixel size: -0.000257 Y pixel size: 0.000005 Here is my world file: -0.000257 0.0 0.0 0.000005 -6.424875 53.26377 Here is my map.map file: NAME test STATUS on SIZE 600 600 # set size of output image EXTENT -6.430508 53.432611 -6.065211 53.263772 UNITS DD SHAPEPATH "data" IMAGECOLOR 255 255 255 # set background colour of image IMAGETYPE jpeg # # Start of web interface definition # WEB LOG "./mapserv.log" TEMPLATE template.html IMAGEPATH "./mapserv/" IMAGEURL "/mapserv/" METADATA WMS_TITLE "testing" WMS_ABSTRACT "abstract" WMS_ACCESSCONSTRAINTS none WMS_ONLINERESOURCE "http://www.foobar.org/test" END END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES INTERVALS 5 STATUS on END LAYER NAME "map1" TYPE RASTER STATUS OFF DATA "orig.tiff" CLASS NAME "Map1" END END END Steve Kennedy From matthias.scholz at vgem-klostermansfeld.de Fri Sep 20 07:38:54 2002 From: matthias.scholz at vgem-klostermansfeld.de (Matthias Scholz) Date: Fri, 20 Sep 2002 16:38:54 +0200 Subject: [mapserver-users] Itemquery in unknown area Message-ID: <1032532734.3d8b32fe886bc@tux.vgem-klostermansfeld.de> Hi to all, i use the itemquery mode. If the object who i search in the displayed map, then the itemquery is successfull. But how can i make an (item)query for an object who is not in the displayed map? If the object was found in the shapefile, the new map should then display the object with the same scale as the previous or scale for view the full object. Example: The attributes are: gemarkung, flur, zaehler and nenner <--- this together are uniqe. The actual part of my mapfile: LAYER NAME flurst_itemquery TYPE POLYGON STATUS ON DATA flurstuecke FILTER ("[GEMARKUNG]" = "%gemarkung%" AND "[FLUR]" = "%flur%" AND "[ZAEHLER] " = "%zaehler%" AND "[NENNER]" = "%nenner%") class color 255 255 255 outlinecolor 0 0 0 end TEMPLATE "flurstuecke.html" TOLERANCE 3 HEADER "flurstuecke_header.html" FOOTER "flurstuecke_footer.html" END Suggestions??? Thanks Matthias Scholz :::::::::::::::::::::::::::::::::::::::::::::::::: : : : Verwaltungsgemeinschaft Klostermansfeld : : Kirchstr. 1 : : : : 06308 Klostermansfeld : : : : Telefon: (+49) 034772/800 : : Telefax: (+49) 034772/80200 : : : : eMail: info at vgem-klostermansfeld.de : : WWW: http://www.vgem-klostermansfeld.de : : : :::::::::::::::::::::::::::::::::::::::::::::::::: -------------------------------------------------- Diese eMail wurde mit IMP 3.0 gesendet (http://www.horde.org) From john.bennett at noetix.on.ca Fri Sep 20 08:00:56 2002 From: john.bennett at noetix.on.ca (John Bennett) Date: Fri, 20 Sep 2002 11:00:56 -0400 Subject: [mapserver-users] .map In-Reply-To: Message-ID: Hi Tyler Thanks for the replies. This is a great user group. To be more specific, I have 50 different defined areas. Daily new gif files will come in showing the crop/soil conditions in each area. Each area may have 10 different products (gifs) that define the crop/soil condition. The site has to allow the user to select any area, product type and date (from 1970 to now) and the crop/soil conditions should be displayed to them. Therefore the spatial archive which is being constantly added to may have 5,000,000 gif's(I'm exaggerating). (350 days x 10 products x 50 sites x 30 years). I'm thinking a possible way to do this is to have the 50 different areas in one shapefile. The user selects which shapefile and selects a date. The server gets that date/type and changes the name of the gif in the .map file according to the date/type selected by that user. What do you think? Any other suggestions? John -----Original Message----- From: Tyler Mitchell [mailto:TMitchell at lignum.com] Sent: Thursday, September 19, 2002 5:37 PM To: John Bennett Subject: Re: [mapserver-users] .map You can have as many .map files as you want. But typically 1 file is used per "application". Each map file can contain as many layer/dataset definitions as you need though! What is actually being updated? Are you creating new files that you want to display - or simply modifying existing ones? What needs to change in the map file? Do you want to add a new layer/dataset (ie. a new shape file or image) or do you simply want the updated data to be displayed? It will automatically! Mapserver just reads what it is told to and will display any changes once a new request is made. Feel free to share a bit more of the process with us. Tyler |---------+---------------------------------------> | | "John Bennett" | | | | | | Sent by: | | | owner-mapserver-users at lists.| | | gis.umn.edu | | | | | | | | | 09/19/2002 01:17 PM | | | | |---------+---------------------------------------> >--------------------------------------------------------------------------- -----------------------------------------| | | | To: "Mapserver-Users" | | cc: | | Fax to: | | Subject: [mapserver-users] .map | >--------------------------------------------------------------------------- -----------------------------------------| I'm new to this, therefore a simple question. I have a large dataset that is being added to daily, full of shapefiles and Gifs. For displaying these files using Mapserver is the protocol to update the .map file every time the database is updated (one big .map file, I don't think so, too big eh!) or make a new .map dynamically for each user depending on their request? Thanks for the past help. John From ed at topozone.com Fri Sep 20 08:09:56 2002 From: ed at topozone.com (Ed McNierney) Date: Fri, 20 Sep 2002 11:09:56 -0400 Subject: [mapserver-users] Figuring out pixel size for .wld and raster imags Message-ID: <13858AA1A74F30419F319ACB66A9D1220E86C6@mercator.topozone.com> Steve - You may be looking in the wrong place. You need to distinguish between MapServer correctly generating a valid image that's NOT what you think it should be, MapServer failing to create an image at all, and MapServer creating an image that you cannot access from the Web. Are JPEG images being created in the /mapserv/ directory? If not, then you probably have a permissions problem that prevents MapServer from writing to that directory. If there are JPEGS there, then you probably have a Web permissions problem that prevents those images from being viewed by a browser (or your URL is not correctly mapped to that /mapserv/ directory). If you get your browser to display valid, blank images, THEN you should worry about your world files. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: stevek at avernus.net [mailto:stevek at avernus.net] Sent: Friday, September 20, 2002 10:41 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Figuring out pixel size for .wld and raster imags Hi all, I'm having problems getting mapserver to produce anything other than a 28x30 broken image. I'm working currently with a raster image, just trying to get it to even display, never mind actually putting points up. My raster image is as follows: orig.tiff TIFF 1445x1044 DirectClass 8-bit 2474Kb 1.3u 0:02 I know the GPS co-ordinates of the top left and bottom right: Top left is: -6.430508, 53.432611 Bottom right is: -6.065211, 53.263772 Does this mean the pixel size is as follows? X pixel size: -0.000257 Y pixel size: 0.000005 Here is my world file: -0.000257 0.0 0.0 0.000005 -6.424875 53.26377 Here is my map.map file: NAME test STATUS on SIZE 600 600 # set size of output image EXTENT -6.430508 53.432611 -6.065211 53.263772 UNITS DD SHAPEPATH "data" IMAGECOLOR 255 255 255 # set background colour of image IMAGETYPE jpeg # # Start of web interface definition # WEB LOG "./mapserv.log" TEMPLATE template.html IMAGEPATH "./mapserv/" IMAGEURL "/mapserv/" METADATA WMS_TITLE "testing" WMS_ABSTRACT "abstract" WMS_ACCESSCONSTRAINTS none WMS_ONLINERESOURCE "http://www.foobar.org/test" END END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS MILES INTERVALS 5 STATUS on END LAYER NAME "map1" TYPE RASTER STATUS OFF DATA "orig.tiff" CLASS NAME "Map1" END END END Steve Kennedy From nicolasb at maich.gr Fri Sep 20 08:24:10 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Fri, 20 Sep 2002 18:24:10 +0300 Subject: [mapserver-users] Mapserver / PostGIS Connection troubles References: Message-ID: <3D8B3D9A.5020801@maich.gr> Hi, I am having a problem connecting to postgis/mapserver at demo_init stage.. The data_dir is read-write, the rest of postgres is read-only msPOSTGISLayerWhichShapes(): Query error. prep_DB:Error executing POSTGIS DECLARE statement (0.6 failed - retried 0.5 and it failed too). DECLARE mycursor BINARY CURSOR FOR SELECT cty_name::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from ctybdpy2 WHERE the_geom && setSRID('BOX3D(388107.634400379 5200301.16644403,500896.339019834 5313063.02375446)'::BOX3D, find_srid('','ctybdpy2','the_geom') ) would appreciate some insight, regards, nicolas boretos From stevek at avernus.net Fri Sep 20 08:20:42 2002 From: stevek at avernus.net (stevek at avernus.net) Date: Fri, 20 Sep 2002 16:20:42 +0100 (IST) Subject: [mapserver-users] Figuring out pixel size for .wld and raster imags In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220E86C6@mercator.topozone.com> References: <13858AA1A74F30419F319ACB66A9D1220E86C6@mercator.topozone.com> Message-ID: <2117.213.190.156.21.1032535242.squirrel@webmail.avernus.net> Ed, Thanks for your help. The files are definitely getting created: I see test103252842154626.jpg and a whole raft of others in that directory. They are however much smaller in size (2752 bytes) than the original image (2ish Mb), which is what is making me think there is some problem with actually generating the image. Niall > Steve - > > You may be looking in the wrong place. You need to distinguish between > MapServer correctly generating a valid image that's NOT what you think > it should be, MapServer failing to create an image at all, and > MapServer creating an image that you cannot access from the Web. > > Are JPEG images being created in the /mapserv/ directory? If not, then > you probably have a permissions problem that prevents MapServer from > writing to that directory. If there are JPEGS there, then you probably > have a Web permissions problem that prevents those images from being > viewed by a browser (or your URL is not correctly mapped to that > /mapserv/ directory). > > If you get your browser to display valid, blank images, THEN you should > worry about your world files. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > -----Original Message----- > From: stevek at avernus.net [mailto:stevek at avernus.net] > Sent: Friday, September 20, 2002 10:41 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Figuring out pixel size for .wld and raster > imags > > > Hi all, > > I'm having problems getting mapserver to produce anything other than a > 28x30 broken image. I'm working currently with a raster image, > just trying to get it to even display, never mind actually putting > points up. > > My raster image is as follows: > orig.tiff TIFF 1445x1044 DirectClass 8-bit 2474Kb 1.3u 0:02 > > I know the GPS co-ordinates of the top left and bottom right: > Top left is: -6.430508, 53.432611 > Bottom right is: -6.065211, 53.263772 > > Does this mean the pixel size is as follows? > X pixel size: -0.000257 > Y pixel size: 0.000005 > > Here is my world file: > -0.000257 > 0.0 > 0.0 > 0.000005 > -6.424875 > 53.26377 > > Here is my map.map file: > NAME test > STATUS on > SIZE 600 600 # set size of output image > EXTENT -6.430508 53.432611 -6.065211 53.263772 > > UNITS DD > SHAPEPATH "data" > IMAGECOLOR 255 255 255 # set background colour of > image IMAGETYPE jpeg > > # > # Start of web interface definition > # > WEB > LOG "./mapserv.log" > TEMPLATE template.html > IMAGEPATH "./mapserv/" > IMAGEURL "/mapserv/" > METADATA > WMS_TITLE "testing" > WMS_ABSTRACT "abstract" > WMS_ACCESSCONSTRAINTS none > WMS_ONLINERESOURCE "http://www.foobar.org/test" > END > END > > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 350 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS MILES > INTERVALS 5 > STATUS on > END > > LAYER > NAME "map1" > TYPE RASTER > STATUS OFF > DATA "orig.tiff" > CLASS > NAME "Map1" > END > END > > END > > Steve Kennedy From ed at topozone.com Fri Sep 20 08:25:51 2002 From: ed at topozone.com (Ed McNierney) Date: Fri, 20 Sep 2002 11:25:51 -0400 Subject: [mapserver-users] Figuring out pixel size for .wld and raster imags Message-ID: <13858AA1A74F30419F319ACB66A9D1220E86C7@mercator.topozone.com> That's good info. You're asking for a 600x600 pixel JPEG output image from a 1445x1044 source TIFF, so it's not surprising that they are smaller files. However, that size is VERY small. Can you look at the JPEG files themselves (outside of a browser) and see what they contain? If you're getting broken image icons but the files are being created, then either the URL isn't correct or the Web browser doesn't have access to those files. If you can fix that problem, it will be easier to debug the others. Can you confirm whether the JPEGs being created are blank or not? Thanks. - Ed -----Original Message----- From: stevek at avernus.net [mailto:stevek at avernus.net] Sent: Friday, September 20, 2002 11:21 AM To: Ed McNierney Cc: stevek at avernus.net; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Figuring out pixel size for .wld and raster imags Ed, Thanks for your help. The files are definitely getting created: I see test103252842154626.jpg and a whole raft of others in that directory. They are however much smaller in size (2752 bytes) than the original image (2ish Mb), which is what is making me think there is some problem with actually generating the image. Niall > Steve - > > You may be looking in the wrong place. You need to distinguish between > MapServer correctly generating a valid image that's NOT what you think > it should be, MapServer failing to create an image at all, and > MapServer creating an image that you cannot access from the Web. > > Are JPEG images being created in the /mapserv/ directory? If not, then > you probably have a permissions problem that prevents MapServer from > writing to that directory. If there are JPEGS there, then you probably > have a Web permissions problem that prevents those images from being > viewed by a browser (or your URL is not correctly mapped to that > /mapserv/ directory). > > If you get your browser to display valid, blank images, THEN you should > worry about your world files. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > -----Original Message----- > From: stevek at avernus.net [mailto:stevek at avernus.net] > Sent: Friday, September 20, 2002 10:41 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Figuring out pixel size for .wld and raster > imags > > > Hi all, > > I'm having problems getting mapserver to produce anything other than a > 28x30 broken image. I'm working currently with a raster image, > just trying to get it to even display, never mind actually putting > points up. > > My raster image is as follows: > orig.tiff TIFF 1445x1044 DirectClass 8-bit 2474Kb 1.3u 0:02 > > I know the GPS co-ordinates of the top left and bottom right: > Top left is: -6.430508, 53.432611 > Bottom right is: -6.065211, 53.263772 > > Does this mean the pixel size is as follows? > X pixel size: -0.000257 > Y pixel size: 0.000005 > > Here is my world file: > -0.000257 > 0.0 > 0.0 > 0.000005 > -6.424875 > 53.26377 > > Here is my map.map file: > NAME test > STATUS on > SIZE 600 600 # set size of output image > EXTENT -6.430508 53.432611 -6.065211 53.263772 > > UNITS DD > SHAPEPATH "data" > IMAGECOLOR 255 255 255 # set background colour of > image IMAGETYPE jpeg > > # > # Start of web interface definition > # > WEB > LOG "./mapserv.log" > TEMPLATE template.html > IMAGEPATH "./mapserv/" > IMAGEURL "/mapserv/" > METADATA > WMS_TITLE "testing" > WMS_ABSTRACT "abstract" > WMS_ACCESSCONSTRAINTS none > WMS_ONLINERESOURCE "http://www.foobar.org/test" > END > END > > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 350 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS MILES > INTERVALS 5 > STATUS on > END > > LAYER > NAME "map1" > TYPE RASTER > STATUS OFF > DATA "orig.tiff" > CLASS > NAME "Map1" > END > END > > END > > Steve Kennedy From ed at topozone.com Fri Sep 20 08:26:54 2002 From: ed at topozone.com (Ed McNierney) Date: Fri, 20 Sep 2002 11:26:54 -0400 Subject: [mapserver-users] Figuring out pixel size for .wld and raster imags Message-ID: <13858AA1A74F30419F319ACB66A9D1220E86C8@mercator.topozone.com> I expect those JPEGs will be blank. Your EXTENTS statement in the map file has the minimum Y and maximum Y values reversed. - Ed -----Original Message----- From: stevek at avernus.net [mailto:stevek at avernus.net] Sent: Friday, September 20, 2002 11:21 AM To: Ed McNierney Cc: stevek at avernus.net; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Figuring out pixel size for .wld and raster imags Ed, Thanks for your help. The files are definitely getting created: I see test103252842154626.jpg and a whole raft of others in that directory. They are however much smaller in size (2752 bytes) than the original image (2ish Mb), which is what is making me think there is some problem with actually generating the image. Niall > Steve - > > You may be looking in the wrong place. You need to distinguish between > MapServer correctly generating a valid image that's NOT what you think > it should be, MapServer failing to create an image at all, and > MapServer creating an image that you cannot access from the Web. > > Are JPEG images being created in the /mapserv/ directory? If not, then > you probably have a permissions problem that prevents MapServer from > writing to that directory. If there are JPEGS there, then you probably > have a Web permissions problem that prevents those images from being > viewed by a browser (or your URL is not correctly mapped to that > /mapserv/ directory). > > If you get your browser to display valid, blank images, THEN you should > worry about your world files. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > -----Original Message----- > From: stevek at avernus.net [mailto:stevek at avernus.net] > Sent: Friday, September 20, 2002 10:41 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Figuring out pixel size for .wld and raster > imags > > > Hi all, > > I'm having problems getting mapserver to produce anything other than a > 28x30 broken image. I'm working currently with a raster image, > just trying to get it to even display, never mind actually putting > points up. > > My raster image is as follows: > orig.tiff TIFF 1445x1044 DirectClass 8-bit 2474Kb 1.3u 0:02 > > I know the GPS co-ordinates of the top left and bottom right: > Top left is: -6.430508, 53.432611 > Bottom right is: -6.065211, 53.263772 > > Does this mean the pixel size is as follows? > X pixel size: -0.000257 > Y pixel size: 0.000005 > > Here is my world file: > -0.000257 > 0.0 > 0.0 > 0.000005 > -6.424875 > 53.26377 > > Here is my map.map file: > NAME test > STATUS on > SIZE 600 600 # set size of output image > EXTENT -6.430508 53.432611 -6.065211 53.263772 > > UNITS DD > SHAPEPATH "data" > IMAGECOLOR 255 255 255 # set background colour of > image IMAGETYPE jpeg > > # > # Start of web interface definition > # > WEB > LOG "./mapserv.log" > TEMPLATE template.html > IMAGEPATH "./mapserv/" > IMAGEURL "/mapserv/" > METADATA > WMS_TITLE "testing" > WMS_ABSTRACT "abstract" > WMS_ACCESSCONSTRAINTS none > WMS_ONLINERESOURCE "http://www.foobar.org/test" > END > END > > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 350 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS MILES > INTERVALS 5 > STATUS on > END > > LAYER > NAME "map1" > TYPE RASTER > STATUS OFF > DATA "orig.tiff" > CLASS > NAME "Map1" > END > END > > END > > Steve Kennedy From woodbri at swoodbridge.com Fri Sep 20 08:27:09 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 20 Sep 2002 11:27:09 -0400 Subject: [mapserver-users] .map In-Reply-To: References: Message-ID: <3D8B060D.20430.FC3CA17@localhost> John, If the most you can view at any one time is one gif, then keep it VERY simple. Have the user select it based on any area, product type and date and dynamically define the file for the layer which will show that image. I think you can doe that without any mapscript, just using the CGI parameters. -Steve On 20 Sep 2002 at 11:00, John Bennett wrote: > Hi Tyler > Thanks for the replies. This is a great user group. > To be more specific, I have 50 different defined areas. Daily new gif > files will come in showing the crop/soil conditions in each area. Each > area may have 10 different products (gifs) that define the crop/soil > condition. The site has to allow the user to select any area, product > type and date (from 1970 to now) and the crop/soil conditions should > be displayed to them. Therefore the spatial archive which is being > constantly added to may have 5,000,000 gif's(I'm exaggerating). (350 > days x 10 products x 50 sites x 30 years). I'm thinking a possible way > to do this is to have the 50 different areas in one shapefile. The > user selects which shapefile and selects a date. The server gets that > date/type and changes the name of the gif in the .map file according > to the date/type selected by that user. What do you think? Any other > suggestions? John > > > -----Original Message----- > From: Tyler Mitchell [mailto:TMitchell at lignum.com] > Sent: Thursday, September 19, 2002 5:37 PM > To: John Bennett > Subject: Re: [mapserver-users] .map > > > > You can have as many .map files as you want. But typically 1 file is > used per "application". Each map file can contain as many > layer/dataset definitions as you need though! What is actually being > updated? Are you creating new files that you want to display - or > simply modifying existing ones? What needs to change in the map file? > Do you want to add a new layer/dataset (ie. a new shape file or > image) or do you simply want the updated data to be displayed? It > will automatically! Mapserver just reads what it is told to and will > display any changes once a new request is made. > > Feel free to share a bit more of the process with us. > > > Tyler > > > |---------+---------------------------------------> > | | "John Bennett" | > | | | > | | Sent by: | > | | owner-mapserver-users at lists.| > | | gis.umn.edu | > | | | > | | | > | | 09/19/2002 01:17 PM | > | | | > |---------+---------------------------------------> > > >--------------------------------------------------------------------- > >------ > -----------------------------------------| > | > | > | To: "Mapserver-Users" > > | > | cc: > | > | Fax to: > | > | Subject: [mapserver-users] .map > | > > >--------------------------------------------------------------------- > >------ > -----------------------------------------| > > > > > I'm new to this, therefore a simple question. > > I have a large dataset that is being added to daily, full of > shapefiles and Gifs. For displaying these files using Mapserver is the > protocol to update the .map file every time the database is updated > (one big .map file, I don't think so, too big eh!) or make a new .map > dynamically for each user depending on their request? Thanks for the > past help. John > > > > > > > > > > From stevek at avernus.net Fri Sep 20 08:31:22 2002 From: stevek at avernus.net (stevek at avernus.net) Date: Fri, 20 Sep 2002 16:31:22 +0100 (IST) Subject: [mapserver-users] Figuring out pixel size for .wld and raster imags In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220E86C7@mercator.topozone.com> References: <13858AA1A74F30419F319ACB66A9D1220E86C7@mercator.topozone.com> Message-ID: <2132.213.190.156.21.1032535882.squirrel@webmail.avernus.net> Ed, Hot on the trail here... Plugging the /direct/ URL in reveals that the image is in fact entirely white (or blank - I'm not sure how to distinguish the two). Doing a "properties" on the image from the browser reveals that is is, like I asked it, 600x600. So it looks like image generation happens (but not with the view I want) and I may have the URL munging wrong. The most important thing is of course to get the image generation happening correctly. Steve > That's good info. You're asking for a 600x600 pixel JPEG output image > from a 1445x1044 source TIFF, so it's not surprising that they are > smaller files. However, that size is VERY small. Can you look at the > JPEG files themselves (outside of a browser) and see what they contain? > > If you're getting broken image icons but the files are being created, > then either the URL isn't correct or the Web browser doesn't have > access to those files. > > If you can fix that problem, it will be easier to debug the others. > Can you confirm whether the JPEGs being created are blank or not? > Thanks. > From stevek at avernus.net Fri Sep 20 08:52:05 2002 From: stevek at avernus.net (stevek at avernus.net) Date: Fri, 20 Sep 2002 16:52:05 +0100 (IST) Subject: [mapserver-users] Figuring out pixel size for .wld and raster imags In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220E86C8@mercator.topozone.com> References: <13858AA1A74F30419F319ACB66A9D1220E86C8@mercator.topozone.com> Message-ID: <2158.213.190.156.21.1032537125.squirrel@webmail.avernus.net> > I expect those JPEGs will be blank. Your EXTENTS statement in the map > file has the minimum Y and maximum Y values reversed. > > - Ed > I swapped the Y values, but it hasn't made any difference. Files are still the same size, and still white. Steve From rjames57 at yahoo.com Fri Sep 20 09:17:25 2002 From: rjames57 at yahoo.com (randy james) Date: Fri, 20 Sep 2002 09:17:25 -0700 (PDT) Subject: [mapserver-users] Fonts Message-ID: <20020920161725.93118.qmail@web12506.mail.yahoo.com> Hi List I am having problems with truetype fonts not displaying properly. The font is a font generated by fontographer 4.1 with special letters in it like stress marks above the letters. To get the special letters we have to hold the alt key and using the keypad key in the ascii key code for the letter. The problem is that any letter where we used the key code does not display. Is this a 2.0 vs 1.1.3 freefont issue? I have 2.0 installed Cheers __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From c.sandor at emla.hu Fri Sep 20 09:30:56 2002 From: c.sandor at emla.hu (Sandor Csaba) Date: Fri, 20 Sep 2002 18:30:56 +0200 Subject: [mapserver-users] line layer label angle changes In-Reply-To: <3D8AD2DA.4603.EFBC8BC@localhost> References: <5.1.0.14.0.20020920113754.00c06190@192.168.1.7> Message-ID: <5.1.0.14.0.20020920182617.0200fb68@192.168.1.7> Thanks, it solved the problem. Although I had troubles compiling freetype1 on Solaris (had to use --disable-nls --enable-static whatever these mean) and also naturally (not for me until today) I had to recompile gd too. Csaba At 07:48 20/09/2002 -0400, you wrote: >This is a freetype 2 issue, just get libttf-1.3.1 and you problems >should go away. > >-Steve W. > http://iMapTools.com > >On 20 Sep 2002 at 11:45, Sandor Csaba wrote: > > > Hi All, > > > > I want to label streets with their names. It works fine on my windows > > box (downloaded binaries: ms36gif_gdal_pg_wms.zip). On a Solaris box > > (the real Internet server, mapserv 3.6.1 CGI, Freetype2, PNG support) > > the labels are randomly rotated around the same label point. > > > > Anybody had similar problems? Can this be a Freetype1 vs. 2 issue? > > > > I use the following label definition in the mapfile > > > > LABEL > > COLOR 0 0 0 > > TYPE TRUETYPE > > FONT arial > > SIZE 10 > > ANTIALIAS true > > POSITION AUTO > > PARTIALS TRUE > > MINFEATURESIZE 1 > > FORCE FALSE > > BUFFER 3 > > ANGLE AUTO > > END > > > > Thanks, > > Csaba > > > > - > > {Kornyezeti Management es Jog Egyesulet > > {Environmental Management and Law Association > > {www.emla.hu > > {1076 Budapest > > {Garay u. 29-31 > > {Hungary > > {Tel/fax: 36-1-3228462, 36-1-3529925 > > {Mobil: 06-20-949-1447 > > > > > > - {Kornyezeti Management es Jog Egyesulet {Environmental Management and Law Association {www.emla.hu {1076 Budapest {Garay u. 29-31 {Hungary {Tel/fax: 36-1-3228462, 36-1-3529925 {Mobil: 06-20-949-1447 From lfilak at medinaco.org Fri Sep 20 09:49:26 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 20 Sep 2002 12:49:26 -0400 Subject: [mapserver-users] .map Message-ID: <200209201635.g8KGZr807149@yogi.medinaco.net> You could also use the shapefile as the tileindex for the raster layer that includes all the images for a given date/product by using mapscript to change the layer->{tileitem} parameter. The shapefile would have a different field name for each date/product combination and switching the tileitem would change which set of images are used to render the map. My 2 cents. Lowell F. The following message was sent by "John Bennett" on Fri, 20 Sep 2002 11:00:56 -0400. > Hi Tyler > Thanks for the replies. This is a great user group. > To be more specific, I have 50 different defined areas. Daily new gif files > will come in showing the crop/soil conditions in each area. Each area may > have 10 different products (gifs) that define the crop/soil condition. The > site has to allow the user to select any area, product type and date (from > 1970 to now) and the crop/soil conditions should be displayed to them. > Therefore the spatial archive which is being constantly added to may have > 5,000,000 gif's(I'm exaggerating). (350 days x 10 products x 50 sites x 30 > years). > I'm thinking a possible way to do this is to have the 50 different areas in > one shapefile. The user selects which shapefile and selects a date. The > server gets that date/type and changes the name of the gif in the .map file > according to the date/type selected by that user. What do you think? Any > other suggestions? > John > > > -----Original Message----- > From: Tyler Mitchell [mailto:TMitchell at lignum.com] > Sent: Thursday, September 19, 2002 5:37 PM > To: John Bennett > Subject: Re: [mapserver-users] .map > > > > You can have as many .map files as you want. But typically 1 file is used > per "application". Each map file can contain as many layer/dataset > definitions as you need though! What is actually being updated? Are you > creating new files that you want to display - or simply modifying existing > ones? What needs to change in the map file? Do you want to add a new > layer/dataset (ie. a new shape file or image) or do you simply want the > updated data to be displayed? It will automatically! Mapserver just > reads what it is told to and will display any changes once a new request is > made. > > Feel free to share a bit more of the process with us. > > > Tyler > > > |---------+---------------------------------------> > | | "John Bennett" | > | | | > | | Sent by: | > | | owner-mapserver-users at lists.| > | | gis.umn.edu | > | | | > | | | > | | 09/19/2002 01:17 PM | > | | | > |---------+---------------------------------------> > > >--------------------------------------------------------------------------- > -----------------------------------------| > | > | > | To: "Mapserver-Users" > | > | cc: > | > | Fax to: > | > | Subject: [mapserver-users] .map > | > > >--------------------------------------------------------------------------- > -----------------------------------------| > > > > > I'm new to this, therefore a simple question. > > I have a large dataset that is being added to daily, full of shapefiles and > Gifs. For displaying these files using Mapserver is the protocol to update > the .map file every time the database is updated (one big .map file, I > don't > think so, too big eh!) or make a new .map dynamically for each user > depending on their request? > Thanks for the past help. > John > > > > > > > > From steve.lime at dnr.state.mn.us Fri Sep 20 09:40:27 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 20 Sep 2002 11:40:27 -0500 Subject: [mapserver-users] Fwd: windows2000 Message-ID: An embedded message was scrubbed... From: Herman Tjesse de Haan Subject: windows2000 Date: Fri, 20 Sep 2002 17:16:53 +0200 Size: 1743 URL: From gisweb at lmi.net Fri Sep 20 11:26:05 2002 From: gisweb at lmi.net (gisweb at lmi.net) Date: Fri, 20 Sep 2002 11:26:05 -0700 Subject: [mapserver-users] line layer label angle changes In-Reply-To: <5.1.0.14.0.20020920182617.0200fb68@192.168.1.7> References: <5.1.0.14.0.20020920113754.00c06190@192.168.1.7> <5.1.0.14.0.20020920182617.0200fb68@192.168.1.7> Message-ID: <1032546365.3d8b683d45688@webmail.lmi.net> Combating the same problem with incorrect label angles (on FreeBSD), I also recompiled gd with references to freetype-1.3.1, but the mapserver configure couldn't find it. The compile and make still ran, but the resulting mapserv program doesn't recognize truetype parameters. Suggestions? Here's the configure command and resulting output: ./configure --prefix=/usr/home/gisweb/local --with-gd=/usr/home/gisweb/local --w ith-freetype=/usr/home/gisweb/local/include/freetype --enable-force-freetype1 -- enable-runpath --with-proj --with-tiff loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for c++... (cached) c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether c++ accepts -g... (cached) yes checking for ranlib... (cached) ranlib checking for flex... (cached) flex checking for yywrap in -lfl... (cached) yes checking for bison... (cached) bison -y checking if compiler supports -R... (cached) no checking if compiler supports -Wl,-rpath,... (cached) no checking if compiler supports -Wl,-R... (cached) yes checking for exp in -lm... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for strdup... (cached) yes checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. checking which version of GD to use... using libgd from -L/usr/home/gisweb/local/lib -lgd checking where FreeType is installed... checking for TT_Init_FreeType in -lttf... no checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs. checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. checking for gdImageGif in -lc... no checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... no checking for gdImageStringTTF in -lc... no checking for gdImageString16 in -lc... yes checking for gdImageGifPtr in -lc... no using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP) from /usr/home/gisw eb/local. checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... yes checking for PDF_setrgbcolor in -lpdf... yes checking for PDF_moveto in -lpdf... yes checking for PDF_curveto in -lpdf... yes checking for PDF_show_xy in -lpdf... (cached) yes using libpdf from system libs. checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... yes using libtiff from system libs. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include PROJ.4 support... checking for pj_init in -lproj... yes checking for pj_transform in -lproj... yes checking for pj_latlong_from_proj in -lproj... yes using PROJ.4 from system libs. checking whether we should include thread safe support... thread safe support disabled. checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking whether we should compile in MPATROL support... MPATROL support not requested. checking whether we should include OGR support... OGR support not requested. checking if GDAL support requested... no checking if PostGIS support requested... no checking if OracleSpatial support requested... no checking whether we should include WMS support... OGC WMS compatibility enabled (-DUSE_WMS). checking whether we should include WMS Client Connections support... Compiling with -DIGNORE_MISSING_DATA. checking whether we should enable debug features... checking for PHP/MapScript module options... PHP/MapScript module not configured. updating cache ./config.cache creating ./config.status creating Makefile Thank you, Jonathan W. Lowe Quoting Sandor Csaba : > Thanks, it solved the problem. Although I had troubles compiling freetype1 > on Solaris (had to use --disable-nls --enable-static whatever these mean) > and also naturally (not for me until today) I had to recompile gd too. > > Csaba > > At 07:48 20/09/2002 -0400, you wrote: > >This is a freetype 2 issue, just get libttf-1.3.1 and you problems > >should go away. > > > >-Steve W. > > http://iMapTools.com > > > >On 20 Sep 2002 at 11:45, Sandor Csaba wrote: > > > > > Hi All, > > > > > > I want to label streets with their names. It works fine on my windows > > > box (downloaded binaries: ms36gif_gdal_pg_wms.zip). On a Solaris box > > > (the real Internet server, mapserv 3.6.1 CGI, Freetype2, PNG support) > > > the labels are randomly rotated around the same label point. > > > > > > Anybody had similar problems? Can this be a Freetype1 vs. 2 issue? > > > > > > I use the following label definition in the mapfile > > > > > > LABEL > > > COLOR 0 0 0 > > > TYPE TRUETYPE > > > FONT arial > > > SIZE 10 > > > ANTIALIAS true > > > POSITION AUTO > > > PARTIALS TRUE > > > MINFEATURESIZE 1 > > > FORCE FALSE > > > BUFFER 3 > > > ANGLE AUTO > > > END > > > > > > Thanks, > > > Csaba > > > > > > - > > > {Kornyezeti Management es Jog Egyesulet > > > {Environmental Management and Law Association > > > {www.emla.hu > > > {1076 Budapest > > > {Garay u. 29-31 > > > {Hungary > > > {Tel/fax: 36-1-3228462, 36-1-3529925 > > > {Mobil: 06-20-949-1447 > > > > > > > > > > > > - > {Kornyezeti Management es Jog Egyesulet > {Environmental Management and Law Association > {www.emla.hu > {1076 Budapest > {Garay u. 29-31 > {Hungary > {Tel/fax: 36-1-3228462, 36-1-3529925 > {Mobil: 06-20-949-1447 > > > > From steve.lime at dnr.state.mn.us Fri Sep 20 11:28:11 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 20 Sep 2002 13:28:11 -0500 Subject: [mapserver-users] New version of the demo... Message-ID: Hi folks: I've got a preview version of the updated Itasca demo online at: http://maps.dnr.state.mn.us/mapserver_demos/itasca/demo_init.html It adds a bit more to the UI, and adds tiled raster data to the mix. I've also got the demo running with the DHTML and Java code that sits behind Landview. I'll make those links available shortly. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From pagurekd at agr.gc.ca Fri Sep 20 12:04:31 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Fri, 20 Sep 2002 15:04:31 -0400 Subject: [mapserver-users] WMS query response in GML? Message-ID: Hi everyone, What do I have to add to my mapfile for a WMS server application in order to get a query to return in GML format? Today someone asked me why my WMS server application doesn't return a query in GML. For instance, he is using: http://linuxgurrl.agr.ca/cgi-bin/mapeco?VERSION=1.1.0&REQUEST=GetFeatureInfo&X=117&Y=220&QUERY_LAYERS=Ecozones&FEATURE_COUNT=5&INFO_FORMAT=application/vnd.ogc.gml&FORMAT=image/gif&WIDTH=628&HEIGHT=419&SRS=EPSG:42304&BBOX=-523173.3130132924,-217212.76775886957,6123173.313013293,4217212.767758869&LAYERS=Ecozones&STYLES=& and the response he gets is: and he says: ... which, besides not containing any feature information, isn't even valid XML because there is no ">" at the end of the msGMLOutput start element. I know that a regular GetFeatureInfo request works - i.e. one that doesn't specify INFO_FORMAT and the result for http://linuxgurrl.agr.ca/cgi-bin/mapeco?VERSION=1.1.0&REQUEST=GetFeatureInfo&X=117&Y=220&QUERY_LAYERS=Ecozones&FEATURE_COUNT=5&FORMAT=image/gif&WIDTH=628&HEIGHT=419&SRS=EPSG:42304&BBOX=-523173.3130132924,-217212.76775886957,6123173.313013293,4217212.767758869&LAYERS=Ecozones&STYLES=& is GetFeatureInfo results: Layer 'Ecozones' Feature 1: ZONE = '2' ENAME = 'Northern Arctic' FNAME = 'Haut-Arctique' Any pointers would be much appreciated!!! Thanks, D. Pagurek From TMitchell at lignum.com Fri Sep 20 13:47:30 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 20 Sep 2002 13:47:30 -0700 Subject: [mapserver-users] Loading WMS Image gives strange results (FW: BC OGC Web Map Server Now Available in Test Mode) Message-ID: Has anyone got imagery from this WMS source to display properly? The colours are all messed up when I load it with MapServer It reminds me of a radarsat image I once saw... :) but it should just be a b/w orthophoto. Unless I messed up somewhere along the line, I assume it's a WMS/mapserver issue - will mapserver handle WMS images that are > 8 bit depth? Here's my layer info. LAYER NAME BCtest TYPE RASTER STATUS DEFAULT CONNECTIONTYPE WMS CONNECTION "http://slkapps2.env.gov.bc.ca/servlet/com.esri.wms.Esrimap?VERSION=1.0.0&REQUEST=map&LAYERS=TRIM%20Orthomosaic%20Overview&FORMAT=gif&BGCOLOR=0x000000" METADATA "wms_srs" "epsg:42102" "wms_timeout" "1000" END END ----- Forwarded by Tyler Mitchell/Lignum on 09/20/2002 01:41 PM ----- |---------+----------------------------------------------> | | "Ross, Michael SRM:EX" | | | | | | Sent by: | | | owner-geoconnections_cgdi-dev at CCRS.| | | NRCan.gc.ca | | | | | | | | | 09/13/2002 06:03 PM | | | | |---------+----------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: geoconnections_cgdi-dev at geoconnections.org | | cc: "Yazdani, Rostam SRM:EX" | | Fax to: | | Subject: BC OGC Web Map Server Now Available in Test Mode | >----------------------------------------------------------------------------------------------| Hi All. The Base Mapping and Geomatic Services (BMGS) Branch of the BC Ministry of Sustainable Resource Management is pleased to announce the availability of our BC OGC Web Map Server on a test basis. BC OGC WMS lets you browse a seamless topographic map of British Columbia with a spectacular, orthorectified air photo mosaic as a backdrop. The topographic map is actually three different scales, 1:6 000 000, 1:250 000, and :20 000 Terrain Resource Information Management (TRIM) 1: 20 000. The map you view varies automatically with your zoom level. The orthomosaic is a 1:20 compressed version of TRIM orthophotography which is in black and white with one metre pixel resolution. Initially, the orthomosaic is turned off. To turn it on, select Layers from the map menu bar, then turn on the orthomosaic layer. We also recommend you turn off the water bodies layer so lakes and ponds are outlined, not colour-filled. Forest Cover is also available with provincial coverage. Other layers will be added in the future. For a demo of an OGC-compliant web map viewer accessing the BC OGC WMS, copy the URL from ogcdemo1.txt into your favourite web browser and go. If you are running an OGC-compliant Web Map Server that supports service chaining (or cascading), you can use any of our data layers as your basemap and add your own layers to create your own custom web map service. Our OGC Web Map Server is located at http://slkapps2.env.gov.bc.ca/servlet/com.esri.wms.EsrimapHYPERLINK "http://slkapps2.env.gov.bc.ca/servlet/com.esri.wms.Esrimap" . We have an important demo next Thursday so would appreciate hearing from those who have other BC data and have tried to cascade to our new server. ------------------------------------------------------------------------------- geoconnections_cgdi-dev mailing list website: http://cgdi-dev.geoconnections.org/ mailing list: http://cgdi-dev.geoconnections.org/mailinglist/ email: geoconnections_cgdi-dev at geoconnections.org From steve.lime at dnr.state.mn.us Fri Sep 20 15:10:11 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 20 Sep 2002 17:10:11 -0500 Subject: [mapserver-users] New version of the demo... Message-ID: The DHTML and Java versions are up too. See: http://maps.dnr.state.mn.us/mapserver_demos/itasca/advanced and choose either the DHTML or Java version. These are not part of the main demo though. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Steve Lime" 09/20/02 01:28PM >>> Hi folks: I've got a preview version of the updated Itasca demo online at: http://maps.dnr.state.mn.us/mapserver_demos/itasca/demo_init.html It adds a bit more to the UI, and adds tiled raster data to the mix. I've also got the demo running with the DHTML and Java code that sits behind Landview. I'll make those links available shortly. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From nospam at cnrit.tamu.edu Fri Sep 20 15:36:43 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Fri, 20 Sep 2002 17:36:43 -0500 Subject: [mapserver-users] Image centering problem... References: Message-ID: <3D8BA2FB.40904@cnrit.tamu.edu> Hello, I'm sure I'm missing something really elementary here, but I've gone and added so much complexity to my mapserver web pages that I can't get the image to recenter on my mouse clicks anymore! I see the "img.x" and "img.y" values appear in the URL when I click on the image, but I'm also setting "imgxy" in various places and I guess I'm clobbering something becuase no matter where I click, the map just zooms in and out centered on the mid-point of my main image. I'm talking about non-applet implementations of Mapserver, and I'm not using Mapscript either. If you want to see the problem I'm talking about look at any of my "non-applet" maps at the following URL: http://cnrit.tamu.edu/maps/map_init.html Can somebody explain to me the reason why "imgxy" has to be set in the html "hidden" form variables? In the basic demo, this value is arbitrarily set to the centerpoint of the top level image...why? What am I doing wrong? This bug in my code is totally disabling the pan feature...I can't pan or recenter at all, I just always get the centerpoint...even when I click on the reference image. Help! Thanks, Mike From woodbri at swoodbridge.com Fri Sep 20 16:49:53 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 20 Sep 2002 19:49:53 -0400 Subject: [mapserver-users] Querying a dynamic layer In-Reply-To: <1032488342.3254.236.camel@smp.training4linux.com> References: <3D8A3C5B.23894.CAFEB30@localhost> Message-ID: <3D8B7BE1.27275.11900993@localhost> Johnathan, I think I mis-spoke, that is what I get for talking before I look at the code and I seem to have deleted your orignal post so I am not sure what the problem is. But if you notice in the function GMapDumpQueryResults() there is a for loop: for($iLayer=0; $iLayer < $gpoMap->numlayers; $iLayer++) { $oLayer = $gpoMap->GetLayer($iLayer); Try putting some debug prints here and make sure it is seeing your layer. like: print "
" . $oLayer->name . "\n"; if your layer name shows then you can print more stuff about if to see what the problem is. If it does not show, then you need to do something to either get it on the list of layers or some how get it to be processed through this block of code. Sorry for the confusion, -Steve On 20 Sep 2002 at 12:19, Jonathon Coombes wrote: > On Fri, 2002-09-20 at 11:06, woodbri at swoodbridge.com wrote: > > Jonathan, > > > > You need to read the gmap75 code a little closer. I think you will > > find that the query code does not use the rendering code. What this > > means to you is that just as you have to create the dynamic data > > layer for the rendering code you need to ALSO add a similar block to > > create the dynamic data layer in the appropriate place for the query > > code to pick it up. It has been a while since I looked at that code, > > but I'm pretty sure that it has 2 different paths for query and > > render. > > Hi Stephen, > > Thanks for the reply, and I am glad such an experienced user of > mapserver can help me out. > > In regards to your comments however, I am a little confused. Is not > the information returned by the query based on the DATA definition and > METADATA? If you are referring to code to recognise the query, then I > have used the gmap code exactly as is, but with an extra function > built in. The only place I can find close to filling the query code > section you mention is as follows: > > /* ---------------------------------------------------------- */ > /* Query selected layers at point location or in a rectangle. */ > /* DumpQueryResults() will be called later to display the */ > /* results. */ > /* ---------------------------------------------------------- */ > if ($bRectangleInput) { > $oGeorefRect = ms_newrectobj(); > $oGeorefRect->set("minx", GMapPix2Geo($oPixelRect->minx, 0, > $dfWidthPix, $dfMinX, $dfMaxX, 0)); > $oGeorefRect->set("maxx", GMapPix2Geo($oPixelRect->maxx, 0, > $dfWidthPix, $dfMinX,$dfMaxX, 0)); > $oGeorefRect->set("miny", GMapPix2Geo($oPixelRect->miny, 0, > $dfHeightPix, $dfMinY,$dfMaxY, 1)); > $oGeorefRect->set("maxy", GMapPix2Geo($oPixelRect->maxy, 0, > $dfHeightPix, $dfMinY,$dfMaxY, 1)); > // Use '@' to avoid warning if query found nothing > @$gpoMap->queryByRect($oGeorefRect); > > $gbShowQueryResults = TRUE; > } > > With a similar section for queryByPoint as well. > > It appears as though no matter what approach I take, the queryByRect > (or Point), does not return any results? What function or structure > must I create to add the information for the query to find the points? > > Regards, > Jonathon > > From luisrlg at yahoo.com Fri Sep 20 19:16:29 2002 From: luisrlg at yahoo.com (luis lara) Date: Fri, 20 Sep 2002 19:16:29 -0700 (PDT) Subject: [mapserver-users] PostGis Zoom problems In-Reply-To: Message-ID: <20020921021629.8159.qmail@web11406.mail.yahoo.com> ?que onda? when i start mapserver for first time, i see the my map very o.k., but when i want to "zoom in or zoom out or pan" in the map...., the next map that i see appear totally in white!!! i try to change then values in the "EXTENT" section, and then re-start the mapserver for first time ... then i'll see again everything ok... the problem exist when i try to do something in the map i am using: postgres 7.2 mapserver 3.6.1 postgis 0.7.1 apache 1.3.26 debian potato mpaserv -v OUTPUT=PNG OUTPUT=WBMP SUPPORTS=TTF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ?what i am doing wrong? best regards . . EXTENT 170000 2200000 430000 2400000 . . LAYER NAME Guanajuato TYPE LINE STATUS OFF CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=prueba host=10.0.0.1" DATA "the_geom from denspob" LABELITEM pob_2000 CLASS NAME "MANZANAS" COLOR 0 0 0 OUTLINECOLOR 0 0 0 LABEL FONT "Arialn" COLOR 110 0 0 SIZE MEDIUM POSITION cc END END END # Layer __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From stepan.kafka at centrum.cz Sat Sep 21 05:27:03 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Sat, 21 Sep 2002 14:27:03 +0200 Subject: [mapserver-users] Loading WMS Image gives strange results (FW: BC OGC Web Map Server Now Available in Test Mode) In-Reply-To: Message-ID: <000101c2616a$31053e10$7e3c2fc3@HSGIS> I think, it is caused by 256 color limit in MS 3.6x version. Your colortable is full so MS chages the colors. Tehe solution is using new RGB supporting version (3.7). 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 Tyler > Mitchell > Odesl?no: 20. z??? 2002 22:48 > Komu: mapserver-users at lists.gis.umn.edu > Kopie: mcilhagga at dmsolutions.ca > P?edm?t: [mapserver-users] Loading WMS Image gives strange results (FW: > BC OGC Web Map Server Now Available in Test Mode) > > > Has anyone got imagery from this WMS source to display properly? The > colours are all messed up when I load it with MapServer > It reminds me of a radarsat image I once saw... :) but it should just be a > b/w orthophoto. Unless I messed up somewhere along the line, I > assume it's > a WMS/mapserver issue - will mapserver handle WMS images that are > 8 bit > depth? > > Here's my layer info. > > LAYER > NAME BCtest > TYPE RASTER > STATUS DEFAULT > CONNECTIONTYPE WMS > CONNECTION > "http://slkapps2.env.gov.bc.ca/servlet/com.esri.wms.Esrimap?VERSIO > N=1.0.0&REQUEST=map&LAYERS=TRIM%20Orthomosaic%20Overview&FORMAT=gi > f&BGCOLOR=0x000000" > METADATA > "wms_srs" "epsg:42102" > "wms_timeout" "1000" > END > END > ----- Forwarded by Tyler Mitchell/Lignum on 09/20/2002 01:41 PM ----- > |---------+----------------------------------------------> > | | "Ross, Michael SRM:EX" | > | | | > | | Sent by: | > | | owner-geoconnections_cgdi-dev at CCRS.| > | | NRCan.gc.ca | > | | | > | | | > | | 09/13/2002 06:03 PM | > | | | > |---------+----------------------------------------------> > > >----------------------------------------------------------------- > -----------------------------| > | > | > | To: geoconnections_cgdi-dev at geoconnections.org > | > | cc: "Yazdani, Rostam SRM:EX" > | > | Fax to: > | > | Subject: BC OGC Web Map Server Now Available in Test > Mode | > > >----------------------------------------------------------------- > -----------------------------| > > > > > Hi All. > > The Base Mapping and Geomatic Services (BMGS) Branch of the BC Ministry of > Sustainable Resource Management is pleased to announce the availability of > our BC OGC Web Map Server on a test basis. BC OGC WMS lets you browse a > seamless topographic map of British Columbia with a spectacular, > orthorectified air photo mosaic as a backdrop. The topographic map is > actually three different scales, 1:6 000 000, 1:250 000, and > :20 000 > Terrain Resource Information Management (TRIM) 1: 20 000. The map you view > varies automatically with your zoom level. The orthomosaic is a 1:20 > compressed version of TRIM orthophotography which is in black and white > with > one metre pixel resolution. > > Initially, the orthomosaic is turned off. To turn it on, select > Layers from > the map menu bar, then turn on the orthomosaic layer. We also > recommend you > turn off the water bodies layer so lakes and ponds are outlined, not > colour-filled. > > Forest Cover is also available with provincial coverage. Other > layers will > be added in the future. > > For a demo of an OGC-compliant web map viewer accessing the BC OGC WMS, > copy > the URL from ogcdemo1.txt > into your favourite web browser and go. > > If you are running an OGC-compliant Web Map Server that supports service > chaining (or cascading), you can use any of our data layers as > your basemap > and add your own layers to create your own custom web map service. Our OGC > Web Map Server is located at > http://slkapps2.env.gov.bc.ca/servlet/com.esri.wms.EsrimapHYPERLINK > "http://slkapps2.env.gov.bc.ca/servlet/com.esri.wms.Esrimap" . > > > We have an important demo next Thursday so would appreciate hearing from > those who have other BC data and have tried to cascade to our new server. > > > > > > ------------------------------------------------------------------ > ------------- > > geoconnections_cgdi-dev mailing list > website: http://cgdi-dev.geoconnections.org/ > mailing list: http://cgdi-dev.geoconnections.org/mailinglist/ > email: geoconnections_cgdi-dev at geoconnections.org > > > > > From woodbri at swoodbridge.com Sat Sep 21 06:37:45 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Sat, 21 Sep 2002 09:37:45 -0400 Subject: [mapserver-users] Mapserver 3.7 and GD2 support In-Reply-To: <000101c2616a$31053e10$7e3c2fc3@HSGIS> References: Message-ID: <3D8C3DE9.6578.1485F729@localhost> On 21 Sep 2002 at 14:27, Stepan Kafka wrote: > I think, it is caused by 256 color limit in MS 3.6x version. Your > colortable is full so MS chages the colors. Tehe solution is using new > RGB supporting version (3.7). So this raises a question for me. Adding GD 2 gives mapserver the ability to deal with more colors internally, but web browsers still are limited on the number of colors they can use! So what happens? I am assuming the mapserver can build a high color memory image of the map in question, but then it still has to reduce it to around 256 colors on output. Do we get better output images because it can defer the color reduction until it knows all the colors it needs to deal with? or does it output higher color images and the browsers can actually handle more colors than I think? or something else? Inquiring minds want to know!! -Stephen woodbridge http://iMapTools.com From warmerdam at pobox.com Sat Sep 21 10:47:42 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Sat, 21 Sep 2002 13:47:42 -0400 Subject: [mapserver-users] Mapserver 3.7 and GD2 support References: <3D8C3DE9.6578.1485F729@localhost> Message-ID: <3D8CB0BE.7080209@pobox.com> woodbri at swoodbridge.com wrote: > So this raises a question for me. Adding GD 2 gives mapserver the > ability to deal with more colors internally, but web browsers still > are limited on the number of colors they can use! > > So what happens? > > I am assuming the mapserver can build a high color memory image of > the map in question, but then it still has to reduce it to around 256 > colors on output. Do we get better output images because it can defer > the color reduction until it knows all the colors it needs to deal > with? or does it output higher color images and the browsers can > actually handle more colors than I think? or something else? > > Inquiring minds want to know!! Stephen, When operating in 24bit mode with MapServer 3.7 and GD2 the actual png file returned by MapServer is 24bit, and the reduction to less colors (if required) would be done by the web browser. However, most people are operating in at least 16bit color depth these days, and reduction from 24bit to 16bit is barely visibly noticable. The real cost is in transporting the bulkier 24bit pngs back to the client. For imagery applications returning JPEGs is more appropriate though they will corrupt linework and text. 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 pkishor at GeoAnalytics.com Sat Sep 21 12:59:33 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sat, 21 Sep 2002 14:59:33 -0500 Subject: [mapserver-users] Mapserver 3.7 and GD2 support In-Reply-To: <3D8C3DE9.6578.1485F729@localhost> Message-ID: On Saturday, September 21, 2002, at 08:37 AM, woodbri at swoodbridge.com wrote: > On 21 Sep 2002 at 14:27, Stepan Kafka wrote: > >> I think, it is caused by 256 color limit in MS 3.6x version. Your >> colortable is full so MS chages the colors. Tehe solution is using new >> RGB supporting version (3.7). > > So this raises a question for me. Adding GD 2 gives mapserver the > ability to deal with more colors internally, but web browsers still > are limited on the number of colors they can use! yeah but... most everyone's monitors run at 16-bit+ (heck, even Palm users complain when they discover their 16-bit doohickey was only 12-bit after all... as if they could tell the difference). > > So what happens? > > I am assuming the mapserver can build a high color memory image of > the map in question, but then it still has to reduce it to around 256 > colors on output. Do we get better output images because it can defer > the color reduction until it knows all the colors it needs to deal > with? or does it output higher color images and the browsers can > actually handle more colors than I think? or something else? > mapserver does its job, hands the image to the server, and goes back to wait for another request. The server sends it to the client and goes back to wait for another request. What the client (user) does with the image is anyone's guess. But, going by what I wrote above, my guess it that the client looks at the image in at least 16-bit color. Otherwise, the client should be brought into the modern age rather rapidly. pk/ From jon at cybersite.com.au Sun Sep 22 18:04:32 2002 From: jon at cybersite.com.au (Jonathon Coombes) Date: 23 Sep 2002 11:04:32 +1000 Subject: [mapserver-users] Querying a dynamic layer In-Reply-To: <3D8B7BE1.27275.11900993@localhost> References: <3D8A3C5B.23894.CAFEB30@localhost> <3D8B7BE1.27275.11900993@localhost> Message-ID: <1032743072.12789.268.camel@smp.training4linux.com> On Sat, 2002-09-21 at 09:49, woodbri at swoodbridge.com wrote: > Johnathan, > > I think I mis-spoke, that is what I get for talking before I look at > the code and I seem to have deleted your orignal post so I am > not sure what the problem is. > > But if you notice in the function GMapDumpQueryResults() there is a > for loop: > > for($iLayer=0; $iLayer < $gpoMap->numlayers; $iLayer++) > { > $oLayer = $gpoMap->GetLayer($iLayer); > > Try putting some debug prints here and make sure it is seeing your > layer. like: > print "
" . $oLayer->name . "\n"; > > if your layer name shows then you can print more stuff about if to > see what the problem is. If it does not show, then you need to do > something to either get it on the list of layers or some how get it > to be processed through this block of code. Hi Steve, I am the one that is supposed to be confused. :-) I had actually already debugged the GMapDumpQueryResults function and found that it was able to see the dynamic layer and could actually query it and get the metadata, but the getNumResults() in the GMapDumpQueryResults function is where it seems to fail. Its like the extent is wrong, or it can't see the layer when it does the query somehow? Regards, Jonathon From knozi at gmx.at Mon Sep 23 02:57:27 2002 From: knozi at gmx.at (Gernot Katzlberger) Date: Mon, 23 Sep 2002 11:57:27 +0200 Subject: [mapserver-users] class, expressions Message-ID: <010401c262e7$a9bb0a50$1a3f8283@gis.univie.ac.at> Hi all, I'm using Mapserver version 3.4 and have some problems with the expressions in the classes. In my ShapeFile the column is defined as integer, but mapsever doesn't recognize it as integer. When I switch to EXPRESSION 1/2/3/4/5/ it works. (it seems that mapserver only recoginzes the column as strings). Unfortunately I need the integer values. here is the part of my mapfile LAYER NAME hausnr_na DESCRIPTION "gek?ndigte Wohnungen" TYPE POINT STATUS ON CLASSITEM 'Sig_nbr' DATA nichtar4 CLASS NAME "1" #EXPRESSION /1|2|3|4|5/ # works EXPRESSION ([sig_nbr] < 6) #works not SIZE 8 SYMBOL 2 COLOR 255 250 250 END END cheers, gernot ..............................................................................: Gernot Katzlberger Institut fuer Geographie und Regionalforschung Universitaet Wien Kartographie und Geoinformation Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48657 E-mail: katz at atlas.gis.univie.ac.at www: http://www.gis.univie.ac.at/karto :.............................................................................: Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at :.............................................................................: -------------- next part -------------- An HTML attachment was scrubbed... URL: From marichalperez at yahoo.es Mon Sep 23 03:34:16 2002 From: marichalperez at yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Mon, 23 Sep 2002 11:34:16 +0100 Subject: [mapserver-users] QueryByFeatures problem Message-ID: Hi, all. I'm having a problem with QueryByFeatures. You'll see: When I search the map looking for any data it's possible that the search results "null" (i.e: any data is founded). Ok. In this case, I want the map reflects the last query made by the user. I am unable to get this. When a "QueryByFeatures" return "MS_FAILURE", it's impossible to make another query without reload the page. The function looks like to fail in this situation. Anybody can help me?. _______________________________________________________________ Yahoo! Messenger Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! Desc?rgalo ya desde http://messenger.yahoo.es From marichalperez at yahoo.es Mon Sep 23 03:34:16 2002 From: marichalperez at yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Mon, 23 Sep 2002 11:34:16 +0100 Subject: [mapserver-users] QueryByFeatures problem Message-ID: Hi, all. I'm having a problem with QueryByFeatures. You'll see: When I search the map looking for any data it's possible that the search results "null" (i.e: any data is founded). Ok. In this case, I want the map reflects the last query made by the user. I am unable to get this. When a "QueryByFeatures" return "MS_FAILURE", it's impossible to make another query without reload the page. The function looks like to fail in this situation. Anybody can help me?. _______________________________________________________________ Yahoo! Messenger Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! Desc?rgalo ya desde http://messenger.yahoo.es From marichalperez at yahoo.es Mon Sep 23 03:34:16 2002 From: marichalperez at yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Mon, 23 Sep 2002 11:34:16 +0100 Subject: [mapserver-users] QueryByFeatures problem Message-ID: Hi, all. I'm having a problem with QueryByFeatures. You'll see: When I search the map looking for any data it's possible that the search results "null" (i.e: any data is founded). Ok. In this case, I want the map reflects the last query made by the user. I am unable to get this. When a "QueryByFeatures" return "MS_FAILURE", it's impossible to make another query without reload the page. The function looks like to fail in this situation. Anybody can help me?. _______________________________________________________________ Yahoo! Messenger Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! Desc?rgalo ya desde http://messenger.yahoo.es From stepan.kafka at centrum.cz Mon Sep 23 04:12:58 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Mon, 23 Sep 2002 13:12:58 +0200 Subject: [mapserver-users] class, expressions In-Reply-To: <010401c262e7$a9bb0a50$1a3f8283@gis.univie.ac.at> Message-ID: <000f01c262f2$2c0d9310$7e3c2fc3@HSGIS> Try using uppercase characters in the expression: EXPRESSION ([SIG_NBR] < 6) Stepan Kafka Help Service Remote Sensing tel: +420-327514118 mailto:kafka at email.cz http://www.bnhelp.cz -----Puvodn? zpr?va----- Od: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Gernot Katzlberger Odesl?no: 23. z?r? 2002 11:57 Komu: mapserver-users at lists.gis.umn.edu Predmet: [mapserver-users] class, expressions Hi all, I'm using Mapserver version 3.4 and have some problems with the expressions in the classes. In my ShapeFile the column is defined as integer, but mapsever doesn't recognize it as integer. When I switch to EXPRESSION 1/2/3/4/5/ it works. (it seems that mapserver only recoginzes the column as strings). Unfortunately I need the integer values. here is the part of my mapfile LAYER NAME hausnr_na DESCRIPTION "gek?ndigte Wohnungen" TYPE POINT STATUS ON CLASSITEM 'Sig_nbr' DATA nichtar4 CLASS NAME "1" #EXPRESSION /1|2|3|4|5/ # works EXPRESSION ([sig_nbr] < 6) #works not SIZE 8 SYMBOL 2 COLOR 255 250 250 END END cheers, gernot ............................................................................ ..: Gernot Katzlberger Institut fuer Geographie und Regionalforschung Universitaet Wien Kartographie und Geoinformation Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48657 E-mail: katz at atlas.gis.univie.ac.at www: http://www.gis.univie.ac.at/karto :........................................................................... ..: Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at :........................................................................... ..: -------------- next part -------------- An HTML attachment was scrubbed... URL: From wesp at gdv.com Mon Sep 23 05:55:52 2002 From: wesp at gdv.com (Oliver Wesp) Date: Mon, 23 Sep 2002 14:55:52 +0200 Subject: AW: [mapserver-users] class, expressions In-Reply-To: <010401c262e7$a9bb0a50$1a3f8283@gis.univie.ac.at> Message-ID: <000201c26300$8c52c660$1501a8c0@else> Have you tried to change the field name to uppercase ([SIG_NBR]). Usually all field names in dbf-files are uppercase. greetings Oliver -----Urspr?ngliche Nachricht----- Von: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] Im Auftrag von Gernot Katzlberger Gesendet: Montag, 23. September 2002 11:57 An: mapserver-users at lists.gis.umn.edu Betreff: [mapserver-users] class, expressions Hi all, I'm using Mapserver version 3.4 and have some problems with the expressions in the classes. In my ShapeFile the column is defined as integer, but mapsever doesn't recognize it as integer. When I switch to EXPRESSION 1/2/3/4/5/ it works. (it seems that mapserver only recoginzes the column as strings). Unfortunately I need the integer values. here is the part of my mapfile LAYER NAME hausnr_na DESCRIPTION "gek?ndigte Wohnungen" TYPE POINT STATUS ON CLASSITEM 'Sig_nbr' DATA nichtar4 CLASS NAME "1" #EXPRESSION /1|2|3|4|5/ # works EXPRESSION ([sig_nbr] < 6) #works not SIZE 8 SYMBOL 2 COLOR 255 250 250 END END cheers, gernot ........................................................................ ......: Gernot Katzlberger Institut fuer Geographie und Regionalforschung Universitaet Wien Kartographie und Geoinformation Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48657 E-mail: katz at atlas.gis.univie.ac.at www: http://www.gis.univie.ac.at/karto :....................................................................... ......: Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at :....................................................................... ......: -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam at cnrit.tamu.edu Mon Sep 23 07:21:02 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Mon, 23 Sep 2002 09:21:02 -0500 Subject: [mapserver-users] Image centering problem... References: <8AE17DD6AA4FD51191CD0002A5511681074B75@s5-van1-r1.nrn.nrcan.gc.ca> Message-ID: <3D8F234E.10808@cnrit.tamu.edu> But if I don't set the form value of "imgxy" somewhere the image doesn't even load! Looking at the Itasca demo I see that this value is manually being set at the bottom of the html code, but that demo recenters and zooms on mouse clicked points just fine. I guess I'm confused as to why the imgxy value is even needed, because mapserver seems to automatically pick up on the img.x and img.y coordinates when I click, but this doesn't help because the image just blows up if I don't manually set imgxy somewhere. Can I do something like this? right now I'm just manually setting it to the centerpoint of my starting image like this: This is exactly what the Itasca demo does and it works there, but all it appears to be doing for me is forcing me to zoom in to the same point every time regardless of where I've clicked....and pan doesn't even work. HELP?!?! Van Ulden, Joost wrote: >Just get rid of the imgxy form element. By having it in there you are >overriding the user coordinates. Any other suggestions from the list? > >Cheers, > >Joost > >-----Original Message----- >From: Mike Smith [mailto:nospam at cnrit.tamu.edu] >Sent: Friday, September 20, 2002 3:37 PM >To: mapserver-users at lists.gis.umn.edu >Subject: [mapserver-users] Image centering problem... > > >Hello, > > I'm sure I'm missing something really elementary here, but I've gone >and added so much complexity to my mapserver web pages that I can't get >the image to recenter on my mouse clicks anymore! I see the "img.x" and >"img.y" values appear in the URL when I click on the image, but I'm also >setting "imgxy" in various places and I guess I'm clobbering something >becuase no matter where I click, the map just zooms in and out centered >on the mid-point of my main image. I'm talking about non-applet >implementations of Mapserver, and I'm not using Mapscript either. If >you want to see the problem I'm talking about look at any of my >"non-applet" maps at the following URL: > >http://cnrit.tamu.edu/maps/map_init.html > >Can somebody explain to me the reason why "imgxy" has to be set in the >html "hidden" form variables? In the basic demo, this value is >arbitrarily set to the centerpoint of the top level image...why? What >am I doing wrong? This bug in my code is totally disabling the pan >feature...I can't pan or recenter at all, I just always get the >centerpoint...even when I click on the reference image. > >Help! > >Thanks, > >Mike > > From pkishor at GeoAnalytics.com Mon Sep 23 08:15:09 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 23 Sep 2002 10:15:09 -0500 Subject: [mapserver-users] Image centering problem... In-Reply-To: <3D8F234E.10808@cnrit.tamu.edu> Message-ID: <3F98113A-CF07-11D6-A4DD-0003936306C2@geoanalytics.com> On Monday, September 23, 2002, at 09:21 AM, Mike Smith wrote: > But if I don't set the form value of "imgxy" somewhere the image > doesn't even load! Looking at the Itasca demo I see that this value > is manually being set at the bottom of the html code, but that demo > recenters and zooms on mouse clicked points just fine. I guess I'm > confused as to why the imgxy value is even needed, because mapserver > seems to automatically pick up on the img.x and img.y coordinates when > I click, but this doesn't help because the image just blows up if I > don't manually set imgxy somewhere. Can I do something like this? ya, but... what happens if you don't click? what if you just hit refresh on the browser, or what if you have a widget to turn layers on|off, and you just want to redraw after changing some layers? hence imgxy... if you don't provide any img.x, img.y, that is, if you don't click but still want to draw, the image will get centered. just a default setting. follow the logic in the script... your img.x, img.y should only be called if you actually click on the map, which would be only if you want to zoom in|out, or pan (actually, you could do all of that without clicking on the map, but that would be a really dorky interface, so that is another story). [..] -----Original Message----- >> From: Mike Smith [mailto:nospam at cnrit.tamu.edu] >> Sent: Friday, September 20, 2002 3:37 PM >> To: mapserver-users at lists.gis.umn.edu >> Subject: [mapserver-users] Image centering problem... >> >> >> Hello, >> >> I'm sure I'm missing something really elementary here, but I've >> gone and added so much complexity to my mapserver web pages that I >> can't get the image to recenter on my mouse clicks anymore! I see >> the "img.x" and "img.y" values appear in the URL when I click on the >> image, but I'm also setting "imgxy" in various places and I guess I'm >> clobbering something becuase no matter where I click, the map just >> zooms in and out centered on the mid-point of my main image. I'm >> talking about non-applet implementations of Mapserver, and I'm not >> using Mapscript either. If you want to see the problem I'm talking >> about look at any of my "non-applet" maps at the following URL: >> I have never worked with the cgi version (except for a couple of glances at the itasca demo) so I don't have first-hand knowledge... but you are definitely overriding the logic somewhere. Once again, it should be either imgxy as defined in default settings, that is, the center of the image, OR img.x, img.y defined by the user upon clicking on the map. pk/ ps. unless there is specific constraint, I would advise you to move your application to mapscript, perl or php or whatever, because you would have a great amount of control over how it behaves. From teb at mallit.fr.umn.edu Mon Sep 23 08:14:25 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Mon, 23 Sep 2002 10:14:25 -0500 (CDT) Subject: [mapserver-users] question and help (FWD) Message-ID: <200209231514.g8NFEPN17802@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: Typografick? design Posp??ilov? To: Subject: question and help Date: Sun, 22 Sep 2002 22:29:28 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Dear friends, I am interesting in your excellent mapserver GIS solution. I tried to make a little project of a topografic map. It works very well, because I used your very good tutorials and "how to" descriptions. But I have a problem with the "getting backward information". What I mean? For example, it is no problem with getting information of an object like town or road through a querry and the question in a appropriate dbf file. In this moment I am not sure how to solve a problem with searching an marking an object in a map by a query in something like a search engine. I can't find any description of this problem in your FAQs or tutorials. Some problem like mine you have discused in your mail database. I found here some terms or features like map_pin_feature etc. Please can you advise me: 1) Is in your web site any description or tutorial of this problem? 2) Is map_pin_feature a property or function of your cgi script an how it works? 3) Is this feature applicable for bit map layers? 4) Exists any other solution_ Thank you for your time, which you will spent with my problems. I am looking forward on your answers. With best regards Jaroslav Pospisil Typograficky Design Olomouc Czech Republic td_pospi at volny.cz PS. I like to apologize for my not fluently english. Thanks. ------------- End Forwarded Message ------------- From toni at giscampus.udg.es Mon Sep 23 08:55:59 2002 From: toni at giscampus.udg.es (=?iso-8859-1?Q?Toni_Hern=E1ndez?=) Date: Mon, 23 Sep 2002 17:55:59 +0200 Subject: [mapserver-users] itemquery References: Message-ID: <00f301c26319$b6244e00$0e2fce82@udg.es> HI all, I want to display a street which I know the name. I think I have to use the itemquery mode, the qlayer parameter and the FILTERITEM and FILTER in demo.map. But it doesn't work so far. Could anyone tell me the differences between FILTERITEM and FILTER PD: I have the version 3.6 for windows. Thanks in advance From bfischer at mpls.houstoneng.com Mon Sep 23 09:40:16 2002 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Mon, 23 Sep 2002 11:40:16 -0500 Subject: [mapserver-users] New version of the demo... Message-ID: <8879CCE0F0187742B7302A93A8B87B09240FFC@mpls.houstoneng.com> Steve or others on the list, Are there any limitations to using the DHTML version with particular versions of Netscape or IE? Thanks, Brian -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Friday, September 20, 2002 5:10 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] New version of the demo... The DHTML and Java versions are up too. See: http://maps.dnr.state.mn.us/mapserver_demos/itasca/advanced and choose either the DHTML or Java version. These are not part of the main demo though. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Steve Lime" 09/20/02 01:28PM >>> Hi folks: I've got a preview version of the updated Itasca demo online at: http://maps.dnr.state.mn.us/mapserver_demos/itasca/demo_init.html It adds a bit more to the UI, and adds tiled raster data to the mix. I've also got the demo running with the DHTML and Java code that sits behind Landview. I'll make those links available shortly. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From toni at giscampus.udg.es Mon Sep 23 09:34:45 2002 From: toni at giscampus.udg.es (=?iso-8859-1?Q?Toni_Hern=E1ndez?=) Date: Mon, 23 Sep 2002 18:34:45 +0200 Subject: [mapserver-users] map query References: Message-ID: <011901c2631f$206c4e20$0e2fce82@udg.es> hi all, I am using the itemquery parameter to display a street by selecteting its name in a form. It seems to work, I mean the street appears selected, but the zoom of the querymap is the same that the one that is, in the moment of the query, in the reference map. Is it normal? I thinks in former versions than 3.6 it work otherwise. From mail2stern at gmx.net Mon Sep 23 10:33:28 2002 From: mail2stern at gmx.net (Stefan Stern) Date: Mon, 23 Sep 2002 18:33:28 +0100 Subject: [mapserver-users] .png or .jpg as reference object image? Message-ID: <3D8F5068.2020502@gmx.net> Hi all, Quote of reference object @ mapfile documentation : ################### IMAGE [filename] Full filename of the base reference image. Must be a GIF image. ##################### I'm using the new GDAL (without .gif support). Is ist impossible to use a reference images other than .gif? I tried .png: The [ref] image shows up, but without a highlighted area. Regards, Stefan From steve.lime at dnr.state.mn.us Mon Sep 23 10:42:25 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 23 Sep 2002 12:42:25 -0500 Subject: [mapserver-users] New version of the demo... Message-ID: Not that I've run into although I'm not sure how well it works with netscape 4. Needs testing to be sure. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Brian Fischer" 09/23/02 11:40AM >>> Steve or others on the list, Are there any limitations to using the DHTML version with particular versions of Netscape or IE? Thanks, Brian -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Friday, September 20, 2002 5:10 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] New version of the demo... The DHTML and Java versions are up too. See: http://maps.dnr.state.mn.us/mapserver_demos/itasca/advanced and choose either the DHTML or Java version. These are not part of the main demo though. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Steve Lime" 09/20/02 01:28PM >>> Hi folks: I've got a preview version of the updated Itasca demo online at: http://maps.dnr.state.mn.us/mapserver_demos/itasca/demo_init.html It adds a bit more to the UI, and adds tiled raster data to the mix. I've also got the demo running with the DHTML and Java code that sits behind Landview. I'll make those links available shortly. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From steve.lime at dnr.state.mn.us Mon Sep 23 11:01:18 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 23 Sep 2002 13:01:18 -0500 Subject: [mapserver-users] .png or .jpg as reference object image? Message-ID: Reference maps have nothing to do with GDAL, but rather the version of GD you're using. Best to stick with GIF or PNG. I too have seen strange things with PNG output (anyone else) and am checking further... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stefan Stern 09/23/02 12:33PM >>> Hi all, Quote of reference object @ mapfile documentation : ################### IMAGE [filename] Full filename of the base reference image. Must be a GIF image. ##################### I'm using the new GDAL (without .gif support). Is ist impossible to use a reference images other than .gif? I tried .png: The [ref] image shows up, but without a highlighted area. Regards, Stefan From nospam at cnrit.tamu.edu Mon Sep 23 13:08:33 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Mon, 23 Sep 2002 15:08:33 -0500 Subject: [mapserver-users] I'm hitting some max threshold?!?! Message-ID: <3D8F74C1.3070208@cnrit.tamu.edu> Hello, I'm hitting some maximum that's built-in to Mapserver and I'm not sure which one. I have a map file with 52 layers and 352 classes. My page works fine (for the most part) except that I cannot load more than 14 layers at once. That 15th layer blows up my whole page when I try to load it. With one exception...I've got these 8 layers that have classes defined inside them using "EXPRESSION" to sub-divide the layer by a certain field. I can load all these type of layers, regardless of whether or not I exceed the 14 layer limit, but I cannot view load more than 14 of my regular layers (regular meaning ones that do not use the "EXPRESSION" keyword to search for class members...that may sound weird, but that's the only differentiator between the layers that work and the ones that don't work) Any ideas what "MAX" value I need to increase in the source code so that I can recompile and have this work? Thanks, Mike From agleyzer at bezeqint.net Mon Sep 23 14:28:16 2002 From: agleyzer at bezeqint.net (Alexander Gleyzer) Date: Mon, 23 Sep 2002 23:28:16 +0200 Subject: [mapserver-users] TIFFs and ECWs rasters get a monochrome output - why? Message-ID: <002401c26348$2216cd30$6e86b3d4@home> Hi! I'm using MapServer raster layers to present large background images. When I got to large TIFFs (>200 MB) the server displayed an error message (unsupported image format or smth.). I tried to download the GDAL support version (precompiled Win-32 binaries), which also supports ECW (I have those TIFFs compressed to ECWs). But when I fired it up - all the output turned out black-and-white, never mind the output format (GIF, JPG, PNG)! Why is that happening? Is there a way to normally present large TIFFs or their ECW equivalents? Thanks! Alexander Gleyzer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at medinaco.org Mon Sep 23 13:43:36 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 23 Sep 2002 16:43:36 -0400 Subject: [mapserver-users] .png or .jpg as reference object image? Message-ID: <200209232029.g8NKTv819231@yogi.medinaco.net> We currently use PNG and haven't seen any problems. Lowell F. The following message was sent by Stefan Stern on Mon, 23 Sep 2002 18:33:28 +0100. > Hi all, > > > Quote of reference object @ mapfile documentation : > ################### > > > IMAGE [filename] > > Full filename of the base reference image. Must be a GIF image. > > ##################### > > I'm using the new GDAL (without .gif support). Is ist impossible to use > a reference images other than .gif? > > I tried .png: The [ref] image shows up, but without a highlighted area. > > Regards, > Stefan > From ahallam at digitalearth.com.au Mon Sep 23 16:22:07 2002 From: ahallam at digitalearth.com.au (Andrew Hallam) Date: Tue, 24 Sep 2002 09:22:07 +1000 Subject: [mapserver-users] TIFFs and ECWs rasters get a monochrome output - why? In-Reply-To: <002401c26348$2216cd30$6e86b3d4@home> References: <002401c26348$2216cd30$6e86b3d4@home> Message-ID: <1987984.1032859327@[192.168.0.11]> Alexander, Can you tell me how the TIFFs were compressed into ECW format? There are two compression modes that are used for colour imagery - RGB and multiband (plus grayscale). RGB is optimised for colour imagery and produces the smallest file size. However, if you use it to compress cartographic images (topo maps, rasterised vectors, etc) it does not produce an image that looks as good as the multiband equivalent. (Multiband results in a larger ECW file size.) If your images were compressed using multiband you may find that MapServer will produce grayscale output. I've written my own WMS image server using ECW data (completely independent of MapServer) and I also have this problem. As yet, I haven't worked out whether the problem is in my code or the ECW SDK. So, were your ECW images compressed as RGB, multiband or grayscale? If it was multiband, try compressing a TIFF file using RGB and see if it works. Regards Andrew Hallam Digital Earth Pty Ltd http://www.digitalearth.com.au --On Monday, September 23, 2002 23:28 +0200 Alexander Gleyzer wrote: > > Hi! > > I'm using MapServer raster layers to present large background images. > When I got to large TIFFs (>200 MB) the server displayed an error message > (unsupported image format or smth.). I tried to download the GDAL > support version (precompiled Win-32 binaries), which also supports ECW > (I have those TIFFs compressed to ECWs). But when I fired it up - all > the output turned out black-and-white, never mind the output format (GIF, > JPG, PNG)! Why is that happening? Is there a way to normally present > large TIFFs or their ECW equivalents? > Thanks! > > Alexander Gleyzer. > > From ahallam at digitalearth.com.au Mon Sep 23 16:47:45 2002 From: ahallam at digitalearth.com.au (Andrew Hallam) Date: Tue, 24 Sep 2002 09:47:45 +1000 Subject: [mapserver-users] WMS 1.1.0 Capabilities In-Reply-To: <3D8F74C1.3070208@cnrit.tamu.edu> References: <3D8F74C1.3070208@cnrit.tamu.edu> Message-ID: <3525046.1032860865@[192.168.0.11]> Hi List, Can anyone confirm whether it is possible to get MapServer 3.6 or 3.7 to produce a WMS 1.1.0 capabilities statement? MapServer responds to a WMS 1.1.0 formatted GetMap request, but when I try a WMS 1.1.0 GetCapabilities request I get a WMS 1.0.0 capabilities statement. The URL I am using is: Any ideas? TIA. Regards Andrew Hallam Digital Earth Pty Ltd http://www.digitalearth.com.au From coronadh at coronasolutions.com Mon Sep 23 16:50:40 2002 From: coronadh at coronasolutions.com (Dan Harris) Date: Mon, 23 Sep 2002 17:50:40 -0600 (MDT) Subject: [mapserver-users] System Regex issues Message-ID: <36861.10.1.1.35.1032825040.squirrel@drivefaster.net> I was wondering if the --with-system-regex requirement has been resolved by now. All the posts I see relating to it are regarding php3. I'm trying to get phpmapscript to compile with php 4.2.3. However, when I use --with-system-regex, it exposes some nasty problems with the ereg() function in php (causign apache to segfault). When I remove that flag, everything in php works fine. So, I'm wondering if there's a way I can safely make mapscript/php work without the system regex flag.. Also, someone should really remove the extra 'cc' in the Makefile for mapscript/php3/Makefile. This set me back 2 days in getting this up and running :( Thanks for any help. -Dan From woodbri at swoodbridge.com Mon Sep 23 16:55:52 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 23 Sep 2002 19:55:52 -0400 Subject: [mapserver-users] I'm hitting some max threshold?!?! In-Reply-To: <3D8F74C1.3070208@cnrit.tamu.edu> Message-ID: <3D8F71C8.16200.21088E20@localhost> Mike, check out map.h it has the limits defined in it. You need to up the limits and recompile. -Steve W. On 23 Sep 2002 at 15:08, Mike Smith wrote: > Hello, > > I'm hitting some maximum that's built-in to Mapserver and I'm not > sure which one. I have a map file with 52 layers and 352 classes. My > page works fine (for the most part) except that I cannot load more > than 14 layers at once. That 15th layer blows up my whole page when I > try to load it. With one exception...I've got these 8 layers that > have classes defined inside them using "EXPRESSION" to sub-divide the > layer by a certain field. I can load all these type of layers, > regardless of whether or not I exceed the 14 layer limit, but I cannot > view load more than 14 of my regular layers (regular meaning ones that > do not use the "EXPRESSION" keyword to search for class members...that > may sound weird, but that's the only differentiator between the layers > that work and the ones that don't work) > > Any ideas what "MAX" value I need to increase in the source code so > that I can recompile and have this work? > > Thanks, > > Mike > > From akh at le34.dk Mon Sep 23 23:21:09 2002 From: akh at le34.dk (Anders Knudstrup Hansen LE34) Date: Tue, 24 Sep 2002 08:21:09 +0200 Subject: SV: [mapserver-users] TIFFs and ECWs rasters get a monochrome output - why? Message-ID: I've seen this behaviour too..... I've found out that it depends on whether or not I have a Class object in my layers (I have one tileindex layer). If i remove the class object my ecw's show up in color, and if I add a class object they show up in black/white... (I actually use this as a feature, since most of my ecw images look ugly in color).... Hope this helps. / Anders -----Oprindelig meddelelse----- Fra: Alexander Gleyzer [mailto:agleyzer at bezeqint.net] Sendt: 23. september 2002 23:28 Til: mapserver-users at lists.gis.umn.edu Emne: [mapserver-users] TIFFs and ECWs rasters get a monochrome output - why? Hi! I'm using MapServer raster layers to present large background images. When I got to large TIFFs (>200 MB) the server displayed an error message (unsupported image format or smth.). I tried to download the GDAL support version (precompiled Win-32 binaries), which also supports ECW (I have those TIFFs compressed to ECWs). But when I fired it up - all the output turned out black-and-white, never mind the output format (GIF, JPG, PNG)! Why is that happening? Is there a way to normally present large TIFFs or their ECW equivalents? Thanks! Alexander Gleyzer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Grit.Schuster at uni-vechta.de Tue Sep 24 00:53:49 2002 From: Grit.Schuster at uni-vechta.de (Schuster) Date: Tue, 24 Sep 2002 09:53:49 +0200 Subject: [mapserver-users] PythonMapscript Installation Message-ID: <20020924075349.CCB26D3C00C@s04.kiz.uni-vechta.de> hello everybody, I tried to compile the pythonMapscript of the mapserver-3.6.1 package on SuSE.It doesnt work. It always stops with an error on the gcc command. I attached the shell output "gcc". I also compiled the pythonMapscript corresponding the recommendations of http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PythonMapScript. But this doesnt work anway. I attched the the shell output "DisutilsExecError". I would be very very grateful for any help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Grit -- -------------- next part -------------- A non-text attachment was scrubbed... Name: DisutilsExecError Type: application/octet-stream Size: 777 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gcc Type: application/octet-stream Size: 3419 bytes Desc: not available URL: From toni at giscampus.udg.es Tue Sep 24 01:40:42 2002 From: toni at giscampus.udg.es (=?iso-8859-1?Q?Toni_Hern=E1ndez?=) Date: Tue, 24 Sep 2002 10:40:42 +0200 Subject: [mapserver-users] text search in mapserver 3.6 References: <00f301c26319$b6244e00$0e2fce82@udg.es> Message-ID: <003801c263a6$113dd0e0$0e2fce82@udg.es> hi all, I have been bumping my head with this problem. I hope some one has the answers. I downloaded the itasca demo and slowly start doing some changes. I have a map of my city (girona, spain) and a list of the names of the streets. I want to select one of this streets and make a query(no matter the zoom in the moment of the query). I the version 3.4 I was able to display two images, one just for the street (zoomed) and the other one with the city and the street colored. But I can not do that with version 3.6. I know there must be a way of doing it but I am lost. This are the the cgi variables I am using: (...) Query feature
(...) (...) And this is my map file for the "carrers" (Streets) layer: LAYER NAME carrers TYPE LINE DATA carrers STATUS default FILTERITEM "Nom" FILTER "%name%" CLASS NAME "l_carrers" COLOR 255 225 90 TEMPLATE "carrers.html" END HEADER "cap_carrers.html" FOOTER "peu_carrers.html" DUMP TRUE # allow GML export METADATA WMS_TITLE "Minor Civil Divisions" WMS_ABSTRACT "Minor civil divisions for Itasca County. (boundaries only)" WMS_SRS "EPSG:26915" END END Am I forgeting or misusing something?? Thanks in advance for your time and knowledge. From nhv at cape.com Tue Sep 24 03:12:09 2002 From: nhv at cape.com (Norman Vine) Date: Tue, 24 Sep 2002 06:12:09 -0400 Subject: [mapserver-users] PythonMapscript Installation References: <20020924075349.CCB26D3C00C@s04.kiz.uni-vechta.de> Message-ID: <053b01c263b2$d836be30$0100a8c0@sfdev3> Grit Schuster writes: > > I tried to compile the pythonMapscript of the mapserver-3.6.1 package on > SuSE.It doesnt work. > It always stops with an error on the gcc command. > > I attached the shell output "gcc". > > I also compiled the pythonMapscript corresponding the recommendations of > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PythonMapScript. > > But this doesnt work anway. I attched the the shell output "DisutilsExecError". I don't have the 3-6.1 source so I can't really say why but the swig command is failing so you never get a proper 'c' file built. Syntax error ../mapscript.i:68. Syntax error in input. ../mapscript.i:74. Syntax error in input. Did you modify your mapscript.i file as suggested in the WIKI ?? FYI I have changed the copy of setup.py @ http://www.vso.cape.com/~nhv/files/python/setup.py to now to exit on encountering a SWIG error to make this clearer Could someone please incorporate this change into the CVS files. note this consists of 1) adding the sys module to the list of imports 2) encapsulating 'spawn' in a try: except: block so that the script exits with an error message if swig returns an error code HTH Norman ==== cut ==== from distutils.core import setup, Extension from distutils.spawn import spawn from distutils.dir_util import mkpath from distutils.file_util import copy_file from distutils.sysconfig import parse_makefile,expand_makefile_vars from string import split import os,sys from os import path noisy=1 swig_cmd = ["swig", "-python", "-shadow", "-DPYTHON", "-DUSE_GD_PNG", "-DUSE_GD_JPEG", "-DWIN32", "-module", "mapscript", "-o", "./mapscript_wrap.c", "../mapscript.i" ] try: spawn(swig_cmd, verbose=noisy) except: print "\nSwig error" raise sys.exit() ==== no change past here ==== From palanisamyg at ornl.gov Tue Sep 24 08:38:59 2002 From: palanisamyg at ornl.gov (Giri Palanisamy) Date: Tue, 24 Sep 2002 11:38:59 -0400 Subject: [mapserver-users] Maplet on windows 2000 server Message-ID: <5.1.1.5.2.20020924104342.02eb8130@email.cind.ornl.gov> Hi, I am trying to run the maplet applet demo on Windows 2000 server. I have placed all the maplet files under C:\Inetpub\wwwroot\java\mapplet when I tried to run the demo, I am getting black box instead of the image (the image is not loading). I checked the tmp file permission, it is read/write (my mapserver itasca demo is working good). When I run the demo, it is creating all the gif files under C:\Inetpub\wwwroot\tmp but it is not displaying the image in the browser. After installation, I have followed maplet howto (http://mapserver.gis.umn.edu/doc36/mapplet-howto.html) documentation. I changed the demo.html file as follows: MapServer Demo Interface and included the form name "mapserv"

and added the applet code //this one returns http://localhost/tmp/DEMO10328809432292.gif and finally added two hidden files Can anyone have any suggestion? Thanks Giri From Chip.Hankley at GASAI.Com Tue Sep 24 09:29:17 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Tue, 24 Sep 2002 11:29:17 -0500 Subject: [mapserver-users] JPEG Error... Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDFC@postoffice.GASAI.Com> I'm getting the following error: JPEG parameter struct mismatch: library thinks size is 432, caller expects 464 When trying to load a JPEG image. I saw a post on this a month ago... but no responses. Anyone know what this means? I get it w/ CGI or PHP MapScript. Windows 2000 / IIS. If appropriate...let me know and I file a bug. My MapServer.exe: MapServer version 3.6.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My MapScript: MapScript Version ($Revision: 1.104.2.4 $ $Date: 2002/07/08 20:04:58 $) MapServer version 3.6.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Chip Hankley From alainferriol at data-mobiles.com Tue Sep 24 09:34:32 2002 From: alainferriol at data-mobiles.com (Alain FERRIOL) Date: Tue, 24 Sep 2002 18:34:32 +0200 Subject: [mapserver-users] txt to shp file conversion Message-ID: <005d01c263e8$584b7d60$0300000a@oleane.com> Hi all, I downloaded some files from nima : ftp://ftp.nima.mil/pub/gns_data But they are in txt format. Anyone knows how can i handle them? Maybe it's possible to convert them in shp files ? Note : I don't have arcview. Thank's a lot Alain Ferriol -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhv at cape.com Tue Sep 24 09:36:29 2002 From: nhv at cape.com (Norman Vine) Date: Tue, 24 Sep 2002 12:36:29 -0400 Subject: [mapserver-users] Maplet on windows 2000 server References: <5.1.1.5.2.20020924104342.02eb8130@email.cind.ornl.gov> Message-ID: <080701c263e8$89bc80b0$0100a8c0@sfdev3> Giri Palanisamy writes: > > I am trying to run the maplet applet demo on Windows 2000 server. > > when I tried to run the demo, I am getting black box instead of the image > (the image is not loading). I checked the tmp file permission, it is > I changed the demo.html file as follows: < snip > > and added the applet code > > code="mapplet.class" width="600" > > //this one > returns http://localhost/tmp/DEMO10328809432292.gif > > > Try HTH Norman From TMitchell at lignum.com Tue Sep 24 10:00:46 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 24 Sep 2002 10:00:46 -0700 Subject: [mapserver-users] Maplet on windows 2000 server Message-ID: Did the application work before you started trying mapplet? |---------+---------------------------------------> | | Giri Palanisamy | | | | | | Sent by: | | | owner-mapserver-users at lists.| | | gis.umn.edu | | | | | | | | | 09/24/2002 08:38 AM | | | | |---------+---------------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: mapserver-users at lists.gis.umn.edu | | cc: | | Fax to: | | Subject: [mapserver-users] Maplet on windows 2000 server | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hi, I am trying to run the maplet applet demo on Windows 2000 server. I have placed all the maplet files under C:\Inetpub\wwwroot\java\mapplet when I tried to run the demo, I am getting black box instead of the image (the image is not loading). I checked the tmp file permission, it is read/write (my mapserver itasca demo is working good). When I run the demo, it is creating all the gif files under C:\Inetpub\wwwroot\tmp but it is not displaying the image in the browser. After installation, I have followed maplet howto (http://mapserver.gis.umn.edu/doc36/mapplet-howto.html) documentation. I changed the demo.html file as follows: MapServer Demo Interface and included the form name "mapserv" and added the applet code //this one returns http://localhost/tmp/DEMO10328809432292.gif and finally added two hidden files Can anyone have any suggestion? Thanks Giri From steve.lime at dnr.state.mn.us Tue Sep 24 10:06:11 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 24 Sep 2002 12:06:11 -0500 Subject: [mapserver-users] WMS 1.1.0 Capabilities Message-ID: The code has not been upgraded to WMS 1.1, but I would expect 3.7 to go that far... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrew Hallam 09/23/02 06:47PM >>> Hi List, Can anyone confirm whether it is possible to get MapServer 3.6 or 3.7 to produce a WMS 1.1.0 capabilities statement? MapServer responds to a WMS 1.1.0 formatted GetMap request, but when I try a WMS 1.1.0 GetCapabilities request I get a WMS 1.0.0 capabilities statement. The URL I am using is: Any ideas? TIA. Regards Andrew Hallam Digital Earth Pty Ltd http://www.digitalearth.com.au From nospam at cnrit.tamu.edu Tue Sep 24 10:08:28 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Tue, 24 Sep 2002 12:08:28 -0500 Subject: [mapserver-users] img.x versus map.x Message-ID: <3D909C0C.50301@cnrit.tamu.edu> Hello listers, Sorry to sound like a broken record, but I can't seem to get past this seemingly elementary problem! I still can't get my image to zoom or pan to the point of my mouse click...it only zooms in to the center of the image and panning is totally disabled. Thanks to several of you for offering suggestions, but nothing has worked so far. I'm right on the edge of uncovering the problem, but can't seem to figure out where a certain mapserver CGI variable is coming from...here's what I've got: when I click on my main image, my page reloads and zoomin occurs, but only to the center of my image, not to the point that I clicked on. I see in the URL of my browser that the actual coordinates of my mouse clicks are showing up, however, unlike the Itasca demo and other working Mapserver pages I've seen, my mouse click coordinates are showing up in the following format: ..../cgi-bin/mapserv?map.x=214&map.y=43..... now if I go into the URL field and change the above "map.x" and "map.y" to "img.x" and "img.y" respectively, then reload the URL...BOOM! My image shows up zoomed to the right factor and centered on the point I had clicked on. Here's my question: How come I get "map.x" and "map.y" when I click my image? If these were "img.x" and "img.y" then everything would be working...why is my mapserv CGI program inserting the wrong CGI variable names? If I can only get it to insert the mouse coordinates as "img.x" and "img.y" values, I'll be working just fine! Thanks in advance for your help! From tesimap at hotmail.com Tue Sep 24 10:38:13 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Tue, 24 Sep 2002 19:38:13 +0200 Subject: [mapserver-users] Rosa error (RECENTER) Message-ID: Hi all, I have a problem with Rosa applet,recenter doesn't work properly. When I click recenter or zoomout button, application doesn't draw my map in centre but it's moved in lower, so I can see only half map. I use php mapscript and Gmap demo (I have adjust it at my project). I haven't changed this section of recenter in PHP3 file of Gmap because I don't find where is the problem. I have just tried to print the point that I'm using as my center point and it's ok, and I think that this point is correctly passed to the operation. Any idea? Regards Ivan _________________________________________________________________ Specisci e ricevi le tue email Hotmail dal tuo cellulare con: http://mobile.msn.it From Chip.Hankley at GASAI.Com Tue Sep 24 10:59:08 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Tue, 24 Sep 2002 12:59:08 -0500 Subject: [mapserver-users] ...JPEG Panic Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABDFF@postoffice.GASAI.Com> Sorry to be pushy... I've got a bit of a deadline, and I can't seem to get this working. Does MS even support geo-referenced JPEGs? I have an app that is going to put up a LOT of orthophotos, and JPEG seems like the best solution (size wise). o ECW is out (I'm using PHP MapScript, and don't want / can't compile my own DLL) o WMS is out (don't have a WMS server) Chip Hankley ======================================================== ...my earlier POST: I'm getting the following error: JPEG parameter struct mismatch: library thinks size is 432, caller expects 464 When trying to load a JPEG image. I saw a post on this a month ago... but no responses. Anyone know what this means? I get it w/ CGI or PHP MapScript. Windows 2000 / IIS. If appropriate...let me know and I file a bug. My MapServer.exe: MapServer version 3.6.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My MapScript: MapScript Version ($Revision: 1.104.2.4 $ $Date: 2002/07/08 20:04:58 $) MapServer version 3.6.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE From assefa at dmsolutions.ca Tue Sep 24 11:11:32 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 24 Sep 2002 14:11:32 -0400 Subject: [mapserver-users] Rosa error (RECENTER) References: Message-ID: <3D90AAD4.49492EE0@dmsolutions.ca> It seems that the value of the pixels coordinates passed to the zoompoint function are incorrect. It seems that the values are 0,0 which explains the shiffting of the map to a lower position. Ivan Paoluzzi wrote: > Hi all, > I have a problem with Rosa applet,recenter doesn't work properly. > When I click recenter or zoomout button, application doesn't draw my map in > centre but it's moved in lower, so I can see only half map. > > I use php mapscript and Gmap demo (I have adjust it at my project). > I haven't changed this section of recenter in PHP3 file of Gmap because I > don't find where is the problem. > I have just tried to print the point that I'm using as my center point and > it's ok, and I think that this point is correctly passed to the operation. > > Any idea? > > Regards > Ivan > > _________________________________________________________________ > Specisci e ricevi le tue email Hotmail dal tuo cellulare con: > http://mobile.msn.it -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From nospam at cnrit.tamu.edu Tue Sep 24 11:16:55 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Tue, 24 Sep 2002 13:16:55 -0500 Subject: [mapserver-users] img.x versus map.x References: <200209241353.AA1880031494@cshore.com> Message-ID: <3D90AC17.2000406@cnrit.tamu.edu> THANK YOU, THANK YOU, THANK YOU!!!! This fixed it! I knew it was something simple, but I had no idea that the name of my image was important! I guess I'm just a little lacking on understanding the depths of how HTML forms work. Thanks a ton! What a great development community Mapserver has! TCHaddad wrote: >The URL is being formed by your browser, not Mapserver. So the problem is in the page that you have you form in. > >did you give your form ? > >if so then change to name="img" and the URL should get formed correctly, and mapserver will get the values it needs from the correctly named element. > >hope this helps, > >TH > > > >---------- Original Message ---------------------------------- >From: Mike Smith >Date: Tue, 24 Sep 2002 12:08:28 -0500 > >>Hello listers, >> >> Sorry to sound like a broken record, but I can't seem to get past >>this seemingly elementary problem! I still can't get my image to zoom >>or pan to the point of my mouse click...it only zooms in to the center >>of the image and panning is totally disabled. Thanks to several of you >>for offering suggestions, but nothing has worked so far. I'm right on >>the edge of uncovering the problem, but can't seem to figure out where a >>certain mapserver CGI variable is coming from...here's what I've got: >> >>when I click on my main image, my page reloads and zoomin occurs, but >>only to the center of my image, not to the point that I clicked on. I >>see in the URL of my browser that the actual coordinates of my mouse >>clicks are showing up, however, unlike the Itasca demo and other working >>Mapserver pages I've seen, my mouse click coordinates are showing up in >>the following format: >> >>..../cgi-bin/mapserv?map.x=214&map.y=43..... >> >>now if I go into the URL field and change the above "map.x" and "map.y" >>to "img.x" and "img.y" respectively, then reload the URL...BOOM! My >>image shows up zoomed to the right factor and centered on the point I >>had clicked on. >> >>Here's my question: How come I get "map.x" and "map.y" when I click my >>image? If these were "img.x" and "img.y" then everything would be >>working...why is my mapserv CGI program inserting the wrong CGI variable >>names? If I can only get it to insert the mouse coordinates as "img.x" >>and "img.y" values, I'll be working just fine! >> >>Thanks in advance for your help! >> >> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkishor at GeoAnalytics.com Tue Sep 24 11:25:47 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 24 Sep 2002 13:25:47 -0500 Subject: [mapserver-users] img.x versus map.x Message-ID: [..] > Here's my question: How come I get "map.x" and "map.y" when > I click my > image? If these were "img.x" and "img.y" then everything would be > working...why is my mapserv CGI program inserting the wrong > CGI variable > names? If I can only get it to insert the mouse coordinates > as "img.x" > and "img.y" values, I'll be working just fine! > because you have inserted an input tag of "type" image and name "map" inside a form like so... if you change the name to "img" you will get img.x and img.y, or if you take away the name attribute completely you will get only x and y. But it is good practice to "scope" your attributes, hence naming the input tag as "map" or "img" insures you know where you x and why are coming from... pk/ From pyro-x at ixine.com Tue Sep 24 11:39:49 2002 From: pyro-x at ixine.com (David Monterroso Cabello) Date: Tue, 24 Sep 2002 20:39:49 +0200 Subject: [mapserver-users] Compilation error for mapserver 3.7 (CVS) with flash output support Message-ID: <3D90B175.2060203@ixine.com> Hi there! I've been using mapserver for a while (the 3.6 versions), but now i would like to experiment with the swf output feature. I downloaded the sources from CVS configured and tried to compile it. This was the configure command line: [root at pyro-x mapserver]# ./configure --with-php=/home/pyro-x/Downloads/php-4.2.0 --with-postgis --with-proj --with-ming And the result result: loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for c++... (cached) c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether c++ accepts -g... (cached) yes checking for ranlib... (cached) ranlib checking for flex... (cached) flex checking for yywrap in -lfl... (cached) yes checking for bison... (cached) bison -y checking if compiler supports -R... (cached) no checking if compiler supports -Wl,-rpath,... (cached) yes checking for exp in -lm... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for strdup... (cached) yes checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. checking which version of GD to use... using libgd from system libs. checking where FreeType is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs. checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... no checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... no checking for gdImageStringTTF in -lgd... yes checking for gdImageString16 in -lgd... yes checking for gdImageGifPtr in -lgd... no using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF) from system libs. checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... (cached) no libpdf not found... PDF support not included. checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... yes using libtiff from system libs. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include PROJ.4 support... checking for pj_init in -lproj... yes checking for pj_transform in -lproj... yes checking for pj_latlong_from_proj in -lproj... yes using PROJ.4 from system libs. checking whether we should include thread safe support... thread safe support disabled. checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking whether we should compile in MPATROL support... MPATROL support not requested. checking whether we should include OGR support... OGR support not requested. checking if GDAL support requested... no checking if PostGIS support requested... yes checking for pg_config... /usr/bin/pg_config yes, user supplied pg_config checking if OracleSpatial support requested... no checking if MING/Flash support requested... yes checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). checking whether we should include WMS Client Connections support... checking whether we should include WFS Server support... OGC WFS Server support not requested. Compiling with -DIGNORE_MISSING_DATA. checking whether we should enable debug features... checking for PHP/MapScript module options... checking for gcc -shared ... yes checking for location of config.h or php_config.h... /home/pyro-x/Downloads/php-4.2.0/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... no PHP/MapScript module configured. updating cache ./config.cache creating ./config.status creating Makefile creating mapscript/php3/Makefile For me it seems everything is OK, but when i try to make the sources i always get this error: [root at pyro-x mapserver]# make gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_MING_FLASH -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_POSTGIS -I/usr/include -I/usr/include maptemplate.c -o maptemplate.o In file included from maptemplate.h:8, from maptemplate.c:3: map.h:1200: parse error before `httpRequestObj' make: *** [maptemplate.o] Error 1 If i don't include the ming library support it compiles without problems, i tried it some weeks ago and today i updated the cvs tree but it doesn't compile anyway :-\. Can you see something strange, in my config?. Many Thanx -- David Monterroso Cabello From assefa at dmsolutions.ca Tue Sep 24 11:52:42 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 24 Sep 2002 14:52:42 -0400 Subject: [mapserver-users] Compilation error for mapserver 3.7 (CVS) with flash output support References: <3D90B175.2060203@ixine.com> Message-ID: <3D90B47A.429BFF8F@dmsolutions.ca> I have removed the prototype and commited map.h (revision 1.184). It should compile properly now. Later, David Monterroso Cabello wrote: > Hi there! > > I've been using mapserver for a while (the 3.6 versions), but now i > would like to experiment with the swf output feature. I downloaded the > sources from CVS configured and tried to compile it. > > This was the configure command line: > > [root at pyro-x mapserver]# ./configure > --with-php=/home/pyro-x/Downloads/php-4.2.0 --with-postgis --with-proj > --with-ming > > And the result result: > > loading cache ./config.cache > checking for gcc... (cached) gcc > checking whether the C compiler (gcc ) works... yes > checking whether the C compiler (gcc ) is a cross-compiler... no > checking whether we are using GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for c++... (cached) c++ > checking whether the C++ compiler (c++ ) works... yes > checking whether the C++ compiler (c++ ) is a cross-compiler... no > checking whether we are using GNU C++... (cached) yes > checking whether c++ accepts -g... (cached) yes > checking for ranlib... (cached) ranlib > checking for flex... (cached) flex > checking for yywrap in -lfl... (cached) yes > checking for bison... (cached) bison -y > checking if compiler supports -R... (cached) no > checking if compiler supports -Wl,-rpath,... (cached) yes > checking for exp in -lm... (cached) yes > checking how to run the C preprocessor... (cached) gcc -E > checking for ANSI C header files... (cached) yes > checking for strcasecmp... (cached) yes > checking for strncasecmp... (cached) yes > checking for strdup... (cached) yes > checking whether we should include JPEG support... > checking for jpeg_read_header in -ljpeg... yes > using libjpeg from system libs. > checking which version of GD to use... > using libgd from system libs. > checking where FreeType is installed... > checking for FT_Init_FreeType in -lfreetype... yes > using libfreetype -lfreetype from system libs. > checking where Zlib is installed... > checking for zlibVersion in -lz... yes > using libz from system libs. > checking where PNG is installed... > checking for png_init_io in -lpng... yes > using libpng from system libs. > checking for gdImageCreate in -lgd... yes > checking for gdImageGif in -lgd... no > checking for gdImagePng in -lgd... yes > checking for gdImageJpeg in -lgd... yes > checking for gdImageWBMP in -lgd... yes > checking for gdImageStringFT in -lgd... no > checking for gdImageStringTTF in -lgd... yes > checking for gdImageString16 in -lgd... yes > checking for gdImageGifPtr in -lgd... no > using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP > -DUSE_GD_TTF) from system libs. > checking whether we should include PDF support... > checking for PDF_setlinewidth in -lpdf... no > checking for PDF_setrgbcolor in -lpdf... no > checking for PDF_moveto in -lpdf... no > checking for PDF_curveto in -lpdf... no > checking for PDF_show_xy in -lpdf... (cached) no > libpdf not found... PDF support not included. > checking whether we should include TIFF support... > checking for TIFFOpen in -ltiff... yes > using libtiff from system libs. > checking whether we should include EPPL7 support... > including EPPL7 support. > checking whether we should include PROJ.4 support... > checking for pj_init in -lproj... yes > checking for pj_transform in -lproj... yes > checking for pj_latlong_from_proj in -lproj... yes > using PROJ.4 from system libs. > checking whether we should include thread safe support... > thread safe support disabled. > checking whether we should include ESRI SDE support... > ESRI SDE support not requested. > checking whether we should compile in MPATROL support... > MPATROL support not requested. > checking whether we should include OGR support... > OGR support not requested. > checking if GDAL support requested... no > checking if PostGIS support requested... yes > checking for pg_config... /usr/bin/pg_config > yes, user supplied pg_config > checking if OracleSpatial support requested... no > checking if MING/Flash support requested... yes > checking whether we should include WMS Server support... > OGC WMS compatibility enabled (-DUSE_WMS_SVR). > checking whether we should include WMS Client Connections support... > checking whether we should include WFS Server support... > OGC WFS Server support not requested. > Compiling with -DIGNORE_MISSING_DATA. > checking whether we should enable debug features... > checking for PHP/MapScript module options... > checking for gcc -shared ... yes > checking for location of config.h or php_config.h... > /home/pyro-x/Downloads/php-4.2.0/main/php_config.h > checking whether we have PHP3 or PHP4... -DPHP4 > checking whether we should use PHP's regex... no > PHP/MapScript module configured. > updating cache ./config.cache > creating ./config.status > creating Makefile > creating mapscript/php3/Makefile > > For me it seems everything is OK, but when i try to make the sources > i always get this error: > > [root at pyro-x mapserver]# make > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_MING_FLASH -DUSE_TIFF -DUSE_JPEG > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF > -DUSE_POSTGIS -I/usr/include -I/usr/include maptemplate.c > -o maptemplate.o > In file included from maptemplate.h:8, > from maptemplate.c:3: > map.h:1200: parse error before `httpRequestObj' > make: *** [maptemplate.o] Error 1 > > If i don't include the ming library support it compiles without > problems, i tried it some weeks ago and today i updated the cvs tree but > it doesn't compile anyway :-\. > > Can you see something strange, in my config?. > > Many Thanx > > -- > David Monterroso Cabello > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Chip.Hankley at gasai.com Tue Sep 24 11:57:29 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Tue, 24 Sep 2002 13:57:29 -0500 Subject: [mapserver-users] ...JPEG Panic Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABE04@postoffice.GASAI.Com> ugh... thanks Frank... I'm on windows, and have compiled nothing. I'm just using the stock exe's from the MS web site and the dlls from DMSolutions. thnks anyway...chip -----Original Message----- From: Frank Warmerdam [mailto:warmerdam at pobox.com] Sent: Tuesday, September 24, 2002 1:52 PM To: Hankley, Chip Subject: Re: [mapserver-users] ...JPEG Panic Hankley, Chip wrote: > Sorry to be pushy... I've got a bit of a deadline, and I can't seem to get > this working. Does MS even support geo-referenced JPEGs? I have an app that > is going to put up a LOT of orthophotos, and JPEG seems like the best > solution (size wise). > > o ECW is out (I'm using PHP MapScript, and don't want / can't compile my own > DLL) > o WMS is out (don't have a WMS server) Chip, There was a response from the IJG guy about this a while ago. It is some problem with structure packing pragmas. Apparently different ones were used when you built libjpeg from what was used when mapserver was built. Did you build either the jpeg shared library or mapserver yourself? If so, start digging into the pragmas about structure packing. 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 nhv at cape.com Tue Sep 24 12:00:49 2002 From: nhv at cape.com (Norman Vine) Date: Tue, 24 Sep 2002 15:00:49 -0400 Subject: [mapserver-users] JPEG Error... References: <3DFF131E4E6D2D4198CDD758F35A5353010ABDFC@postoffice.GASAI.Com> Message-ID: <092301c263fc$b3477bb0$0100a8c0@sfdev3> Hankley, Chip writes: > I'm getting the following error: > > JPEG parameter struct mismatch: library thinks size is 432, caller expects > 464 "I'd bet lunch that the problem" is the same as the one described here http://remotesensing.org/lists/libtiff_archive/msg01788.html Norman From agleyzer at bezeqint.net Tue Sep 24 13:17:03 2002 From: agleyzer at bezeqint.net (Alexander Gleyzer) Date: Tue, 24 Sep 2002 22:17:03 +0200 Subject: [mapserver-users] TIFFs and ECWs rasters get a monochrome output - why? References: Message-ID: <002401c26407$59787390$de85b3d4@home> Thanks, Anders! That actually worked, the ECWs are now displayed in color. BTW, regarding the TIFFs, I tried some program which converts them to 8 bit - and now they also show up in color. So that all the problems are solved. Thank you all, also Andrew Hallan. Alexander Gleyzer. ----- Original Message ----- From: Anders Knudstrup Hansen LE34 To: Alexander Gleyzer ; mapserver-users at lists.gis.umn.edu Sent: Tuesday, September 24, 2002 8:21 AM Subject: SV: [mapserver-users] TIFFs and ECWs rasters get a monochrome output - why? I've seen this behaviour too..... I've found out that it depends on whether or not I have a Class object in my layers (I have one tileindex layer). If i remove the class object my ecw's show up in color, and if I add a class object they show up in black/white... (I actually use this as a feature, since most of my ecw images look ugly in color).... Hope this helps. / Anders -----Oprindelig meddelelse----- Fra: Alexander Gleyzer [mailto:agleyzer at bezeqint.net] Sendt: 23. september 2002 23:28 Til: mapserver-users at lists.gis.umn.edu Emne: [mapserver-users] TIFFs and ECWs rasters get a monochrome output - why? Hi! I'm using MapServer raster layers to present large background images. When I got to large TIFFs (>200 MB) the server displayed an error message (unsupported image format or smth.). I tried to download the GDAL support version (precompiled Win-32 binaries), which also supports ECW (I have those TIFFs compressed to ECWs). But when I fired it up - all the output turned out black-and-white, never mind the output format (GIF, JPG, PNG)! Why is that happening? Is there a way to normally present large TIFFs or their ECW equivalents? Thanks! Alexander Gleyzer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pyro-x at ixine.com Tue Sep 24 12:17:55 2002 From: pyro-x at ixine.com (David Monterroso Cabello) Date: Tue, 24 Sep 2002 21:17:55 +0200 Subject: [mapserver-users] Compilation error for mapserver 3.7 (CVS) with flash output support References: <3D90B175.2060203@ixine.com> <3D90B47A.429BFF8F@dmsolutions.ca> Message-ID: <3D90BA63.6080800@ixine.com> Yewondwossen Assefa wrote: >I have removed the prototype and commited map.h (revision 1.184). It should >compile properly now. > > It does! :). It compiled and installed without problems. Thanx again Greets -- David Monterroso cabello From root at shadow.munistgo.cl Tue Sep 24 12:30:28 2002 From: root at shadow.munistgo.cl (root) Date: Tue, 24 Sep 2002 15:30:28 -0400 Subject: [mapserver-users] gd and freetype Message-ID: <200209241930.g8OJUSu03161@shadow.munistgo.cl> where can I find something about how install the gd in rpm (RH7.2) with freetype_1.3.1 in tar? Thanks in advance Patricio From woodbri at swoodbridge.com Tue Sep 24 12:44:33 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 24 Sep 2002 15:44:33 -0400 Subject: [mapserver-users] txt to shp file conversion In-Reply-To: <005d01c263e8$584b7d60$0300000a@oleane.com> Message-ID: <3D908861.22383.2548CE52@localhost> Alain, Sounds like a job for a Perl script :) How many are you looking to convert? If it is just a couple, which ones? -Steve On 24 Sep 2002 at 18:34, Alain FERRIOL wrote: > > Hi all, > > I downloaded some files from nima : > ftp://ftp.nima.mil/pub/gns_data > > But they are in txt format. > > Anyone knows howcan i handle them? > > Maybe it's possible to convert them in shp files ? > > Note : I don't have arcview. > > Thank's a lot > > Alain Ferriol > > From tom_price at yahoo.com Tue Sep 24 13:56:34 2002 From: tom_price at yahoo.com (Tom Price) Date: Tue, 24 Sep 2002 13:56:34 -0700 (PDT) Subject: [mapserver-users] Newbie question about sizing and panning Message-ID: <20020924205634.62758.qmail@web13807.mail.yahoo.com> I'm new this product and I have downloaded several of the Tiger county shape files. I'm looking for a way after selecting a given file to "go to state" programmatically; that is, I want to be able to position and scale the map so that the selected state fills the entire map area. What is the best way to accomplish this? --------------------------------- Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at otsys.com Tue Sep 24 13:57:13 2002 From: joe at otsys.com (Joe Bussell) Date: Tue, 24 Sep 2002 13:57:13 -0700 Subject: [mapserver-users] txt to shp file conversion In-Reply-To: <005d01c263e8$584b7d60$0300000a@oleane.com> References: <005d01c263e8$584b7d60$0300000a@oleane.com> Message-ID: <20020924205713.GB27334@otsys.com> Greetings, You are in luck! That is if you can run PERL with XBase. I offer you the following snippet of code: #!/usr/bin/perl -w use strict; use XML::Parser; use mapscript; use XBase; use Carp; my $shapefileDir = ( "/your/destination/directory/" ); my $fileName = $shapefileDir . "userData.shp"; my $dbfFileName = $shapefileDir . "userData.dbf"; my $lineNumber = 0; my $shapeFile = new shapefileObj( $fileName, $mapscript::MS_SHAPEFILE_POLYGON ) or croak "Cannot open $fileName $!\n"; my $dbfTable = XBase->create( "name" => $dbfFileName, "field_names" => [ "DATA" ], "field_types" => ["N"], "field_lengths" => [10], "field_decimals" => [0] ) or croak "Cannot create dbfTable $!\n"; parserStreaming(); undef $shapeFile; undef $dbfTable; # this creates a line in the shapefile and writes a DBF line sub createLine { my $llat = shift; my $llon = shift; my $rlat = shift; my $rlon = shift; my $data = shift; my $number = shift; my $shape = new shapeObj($mapscript::MS_SHAPE_POINT); my $line = new lineObj(); my $startPoint = new pointObj(); my $endPoint = new pointObj(); $lineNumber++; $startPoint->{x} = $llon; $startPoint->{y} = $llat; $line->add( $startPoint ); $endPoint->{x} = $rlon; $endPoint->{y} = $rlat; $line->add( $endPoint ); $shape->add( $line ); $shapeFile->add( $shape ); $dbfTable->set_record( $lineNumber, $data ); #carp "Should have made a line in the shapefile = $userData from ($llat, $llon) to ($rlat, $rlon)\n"; } # this is the main loop where the file is cracked and the calls are made # to create the file lines sub parserStreaming { my $dataFileName = $dataDir."CurrentData.txt"; if ( open(DATA_FILE, "<$dataFileName") ) { my @contents = ; my $line; foreach $line (@contents) { chomp( $line ); my ( $llat, $llon, $rlat, $rlon, $userData ); createLine( $atts{llat}, $atts{llon}, $atts{rlat}, $atts{rlon}, $userData ); #createPoint( $lat, $lon, $userData ); } } } # this creates a point in the shapefile and writes a DBF line # this is offered only as an example as it will not work with the # associated file creates up above # the idea is here though sub createPoint { my $lat = shift; my $lon = shift; my $id = shift; my $number = shift; my $shape = new shapeObj($mapscript::MS_SHAPE_LINE); my $line = new lineObj(); my $point = new pointObj(); $lineNumber++; $point->{x} = $lon; $point->{y} = $lat; $line->add( $point ); $shape->add( $line ); $shapeFile->add( $shape ); $dbfTable->set_record( $lineNumber, $id, -1 ); #carp "Should have made a point in the shapefile = $id $lat $lon\n"; } On Tue, Sep 24, 2002 at 06:34:32PM +0200, Alain FERRIOL wrote: > Hi all, > > I downloaded some files from nima : > ftp://ftp.nima.mil/pub/gns_data > > But they are in txt format. > > Anyone knows how can i handle them? > > Maybe it's possible to convert them in shp files ? > > Note : I don't have arcview. > > Thank's a lot > > Alain Ferriol > > -- Cordially, Joe Bussell On Time Systems www.TrafficDodger.com From woodbri at swoodbridge.com Tue Sep 24 14:11:11 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 24 Sep 2002 17:11:11 -0400 Subject: [mapserver-users] txt to shp file conversion In-Reply-To: <20020924205713.GB27334@otsys.com> References: <005d01c263e8$584b7d60$0300000a@oleane.com> Message-ID: <3D909CAF.3281.25981FBA@localhost> I also can offer the attachment which uses Shape.pm which can be fetched from http://www.water.hut.fi/pub/Grid/Shape-0.03.tar.gz Or if you just need a single file or two, I can probably just email it to you. -Steve On 24 Sep 2002 at 13:57, Joe Bussell wrote: > Greetings, > You are in luck! That is if you can run PERL with XBase. I offer > you the following snippet of code: > > #!/usr/bin/perl -w > > use strict; > > use XML::Parser; > use mapscript; > use XBase; > use Carp; > > my $shapefileDir = ( "/your/destination/directory/" ); > > my $fileName = $shapefileDir . "userData.shp"; > my $dbfFileName = $shapefileDir . "userData.dbf"; > my $lineNumber = 0; > > my $shapeFile = new shapefileObj( $fileName, > $mapscript::MS_SHAPEFILE_POLYGON ) or croak "Cannot open $fileName > $!\n"; my $dbfTable = XBase->create( "name" => $dbfFileName, > "field_names" => [ "DATA" ], > "field_types" => ["N"], > "field_lengths" => [10], > "field_decimals" => [0] ) or croak > "Cannot create dbfTable $!\n"; > > > parserStreaming(); > > undef $shapeFile; > undef $dbfTable; > # this creates a line in the shapefile and writes a DBF line > sub createLine > { > my $llat = shift; > my $llon = shift; > my $rlat = shift; > my $rlon = shift; > my $data = shift; > my $number = shift; > > my $shape = new shapeObj($mapscript::MS_SHAPE_POINT); > my $line = new lineObj(); > my $startPoint = new pointObj(); > my $endPoint = new pointObj(); > $lineNumber++; > > $startPoint->{x} = $llon; > $startPoint->{y} = $llat; > $line->add( $startPoint ); > $endPoint->{x} = $rlon; > $endPoint->{y} = $rlat; > $line->add( $endPoint ); > $shape->add( $line ); > $shapeFile->add( $shape ); > > $dbfTable->set_record( $lineNumber, $data ); > #carp "Should have made a line in the shapefile = $userData from > ($llat, $llon) to ($rlat, $rlon)\n"; > } > > # this is the main loop where the file is cracked and the calls are > # made to create the file lines > sub parserStreaming > { > my $dataFileName = $dataDir."CurrentData.txt"; > if ( open(DATA_FILE, "<$dataFileName") ) > { > my @contents = ; > my $line; > foreach $line (@contents) > { > chomp( $line ); > my ( $llat, $llon, $rlat, $rlon, $userData ); > createLine( $atts{llat}, $atts{llon}, $atts{rlat}, > $atts{rlon}, $userData ); > > #createPoint( $lat, $lon, $userData ); > } > } > } > > > # this creates a point in the shapefile and writes a DBF line > # this is offered only as an example as it will not work with the > # associated file creates up above the idea is here though > sub createPoint > { > my $lat = shift; > my $lon = shift; > my $id = shift; > my $number = shift; > > my $shape = new shapeObj($mapscript::MS_SHAPE_LINE); > my $line = new lineObj(); > my $point = new pointObj(); > > $lineNumber++; > > $point->{x} = $lon; > $point->{y} = $lat; > $line->add( $point ); > $shape->add( $line ); > $shapeFile->add( $shape ); > > $dbfTable->set_record( $lineNumber, $id, -1 ); > #carp "Should have made a point in the shapefile = $id $lat > $lon\n"; > } > > > On Tue, Sep 24, 2002 at 06:34:32PM +0200, Alain FERRIOL wrote: > > Hi all, > > > > I downloaded some files from nima : > > ftp://ftp.nima.mil/pub/gns_data > > > > But they are in txt format. > > > > Anyone knows how can i handle them? > > > > Maybe it's possible to convert them in shp files ? > > > > Note : I don't have arcview. > > > > Thank's a lot > > > > Alain Ferriol > > > > > > -- > > Cordially, > > Joe Bussell > On Time Systems > www.TrafficDodger.com > > -------------- next part -------------- #!/usr/bin/perl -w use strict; use Shape qw/:all/; # Global variables to control debuging output and behavior my $debug = 0; my $shpdir = "shapes"; #### directory to put shapes into sub main() { if ($#ARGV > -1) { print "Usage: gnps2shp file_to_convert\n"; print " like: aa.txt or ??.txt\n"; exit(0); } mkdir($shpdir, 0777); foreach my $f (@ARGV) { do_nima($f); } } # end of main() # ----------------------------------------------------------------- sub do_nima { my $f = shift; my ($shape); open(IN, $f) || die; $shape = new Shape; $shape->{Shapetype} = 1; # point $shape->{FieldNames} = ['NAME','STATE','CC','TYPE']; $shape->{FieldTypes} = ['String','String','String','String']; my $i = 0; my $lno = 0; while (!eof(IN)) { $lno++; my $x = ; $x =~ s/\n|\r//g; $x =~ s/\s*$//g; next if $x =~ m/^RC\tUFI\t/; next if $x =~ m/^\s*$/; my @record = (); my @field = split(/\t/, $x); push @{$shape->{Shapes}}, { SHPType=>1, ShapeId=>$i, NParts=>0, NVertices=>1, Vertices=>[[$field[ 4], $field[ 3]]] }; push @{$shape->{ShapeRecords}}, [$field[23], '', $field[12], $field[10]]; $i++; } # end while $shape->save("$shpdir/$f"); close(IN) } # ----------------------------------------------------------------- main; From woodbri at swoodbridge.com Tue Sep 24 14:15:45 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 24 Sep 2002 17:15:45 -0400 Subject: [mapserver-users] Newbie question about sizing and panning In-Reply-To: <20020924205634.62758.qmail@web13807.mail.yahoo.com> Message-ID: <3D909DC1.19112.259C4D1E@localhost> Not sure of the best way, but if you have your data in a shape file then you can get the extents of the shape file and zoom mapserver to those extents. You would have to do most of these steps in Mapscript. Or you could make a list of the names and extents for each state and build them into a pop-up list and use javascript to issue direct the browser to a new url that would be the extents from the list. Probably other ways also :) -Steve On 24 Sep 2002 at 13:56, Tom Price wrote: > > I'm new this product and I have downloaded several of the Tiger > county shape files. I'm looking for a way after selectinga given > fileto "go to state" programmatically; that is, I want to be able to > position and scale the map so that the selected state fills the entire > map area. What is the best way to accomplish this? > > > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! From gisweb at lmi.net Tue Sep 24 14:57:18 2002 From: gisweb at lmi.net (gisweb at lmi.net) Date: Tue, 24 Sep 2002 14:57:18 -0700 Subject: [mapserver-users] line layer label angle changes (SOLVED!) In-Reply-To: <1032546365.3d8b683d45688@webmail.lmi.net> References: <5.1.0.14.0.20020920113754.00c06190@192.168.1.7> <5.1.0.14.0.20020920182617.0200fb68@192.168.1.7> <1032546365.3d8b683d45688@webmail.lmi.net> Message-ID: <1032904638.3d90dfbead65b@webmail.lmi.net> List, As a courtesy to others with similar problems, here's a problem summary and solution. (Thanks to Steve Woodbridge for the ongoing support!) Problem summary: System: FreeBSD Access: No root access, but local builds okay Mapserver version: 3.6.1 Goal: Build mapserver with true type support. Issue: Machine has an existing version of Freetype 2.x at the system level. The ./configure routine recognizes the Freetype 2.x rather than the (required) Freetype 1.x even when statically pointed to the Freetype 1.x libraries. Problem solution: All of the following steps were required to successfully build mapserver in the above environment... 1) Compile GD 1.8.4 and Freetype 1.3.1 to local directories. 2) In the .login, add: # Added for mapserver purposes: setenv LD_LIBRARY_PATH /path/to/libttf.so.4.0 # End of mapserver additions. 3) Configure mapserver with the following parameters (plus any others you want): ./configure --prefix=/path/to/libraries --with-gd=static,/path/to/libraries --with-freetype=/path/to/freetype --enable-force-freetype1 --enable-runpath --with-proj --with-tiff 4) Edit the resulting mapserver Makefile as follows: # These originally pointed to root-only system directories. # Change them to your local installation directories. LIB_INSTALL=/usr/home/gisweb/local/lib/ HEADER_INSTALL=/usr/home/gisweb/local/include/mapserver-3.5/ # Proj.4 distribution (cartographic projection routines). #PROJ_INC <-- originally blank. Needed the reference as shown on line below. PROJ_INC=-I/usr/local/include PROJ_LIB= -lproj PROJ= -DUSE_PROJ -DUSE_PROJ_API_H # GD distribution (graphics library GIF and/or PNG support). (REQUIRED) # GDFONT_OBJ=gd-1.2/gdfontt.o gd-1.2/gdfonts.o gd-1.2/gdfontmb.o gd- 1.2/gdfontl.o gd-1.2/gdfontg.o GD_INC= -I/usr/home/gisweb/local/lib #GD_LIB= -ljpeg -lfreetype -lpng -lz <-- originally refers to - lfreetype. GD_LIB= -lm -lgd -lpng -lz -ljpeg -lttf GD= -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF GD_STATIC = /usr/home/gisweb/local/lib/libgd.a # TIFF distribution (raster support for TIFF and GEOTIFF imagery). (RECOMMENDED) TIFF_INC= #TIFF_LIB= -ltiff -ljpeg -lpng -lz -lfreetype <-- originally has - lfreetype TIFF_LIB= -ltiff -ljpeg -lpng -lz -lttf TIFF= -DUSE_TIFF 5) From the mapserver-3.6.1 directory containing the modified Makefile, type: make install make 6) Typing "./mapserv -v" should return the following (Note "SUPPORTS=TTF"): MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE These steps eliminated the problem of the incorrect True Type angles when using the ANGLE AUTO parameter in a LABEL object. Hope this helps others with similar problems. Thanks again to all who offered support. - Jonathan W. Lowe Quoting gisweb at lmi.net: > Combating the same problem with incorrect label angles (on FreeBSD), I also > recompiled gd with references to freetype-1.3.1, but the mapserver configure > couldn't find it. The compile and make still ran, but the resulting mapserv > program doesn't recognize truetype parameters. Suggestions? > > Here's the configure command and resulting output: > > ./configure --prefix=/usr/home/gisweb/local --with-gd=/usr/home/gisweb/local > --w > ith-freetype=/usr/home/gisweb/local/include/freetype --enable-force-freetype1 > -- > enable-runpath --with-proj --with-tiff > > loading cache ./config.cache > checking for gcc... (cached) gcc > checking whether the C compiler (gcc ) works... yes > checking whether the C compiler (gcc ) is a cross-compiler... no > checking whether we are using GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for c++... (cached) c++ > checking whether the C++ compiler (c++ ) works... yes > checking whether the C++ compiler (c++ ) is a cross-compiler... no > checking whether we are using GNU C++... (cached) yes > checking whether c++ accepts -g... (cached) yes > checking for ranlib... (cached) ranlib > checking for flex... (cached) flex > checking for yywrap in -lfl... (cached) yes > checking for bison... (cached) bison -y > checking if compiler supports -R... (cached) no > checking if compiler supports -Wl,-rpath,... (cached) no > checking if compiler supports -Wl,-R... (cached) yes > checking for exp in -lm... (cached) yes > checking how to run the C preprocessor... (cached) gcc -E > checking for ANSI C header files... (cached) yes > checking for strcasecmp... (cached) yes > checking for strncasecmp... (cached) yes > checking for strdup... (cached) yes > checking whether we should include JPEG support... > checking for jpeg_read_header in -ljpeg... yes > using libjpeg from system libs. > checking which version of GD to use... > using libgd from -L/usr/home/gisweb/local/lib -lgd > checking where FreeType is installed... > checking for TT_Init_FreeType in -lttf... no > checking for FT_Init_FreeType in -lfreetype... yes > using libfreetype -lfreetype from system libs. > checking where Zlib is installed... > checking for zlibVersion in -lz... yes > using libz from system libs. > checking where PNG is installed... > checking for png_init_io in -lpng... yes > using libpng from system libs. > checking for gdImageGif in -lc... no > checking for gdImagePng in -lc... yes > checking for gdImageJpeg in -lc... yes > checking for gdImageWBMP in -lc... yes > checking for gdImageStringFT in -lc... no > checking for gdImageStringTTF in -lc... no > checking for gdImageString16 in -lc... yes > checking for gdImageGifPtr in -lc... no > using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP) from > /usr/home/gisw > eb/local. > checking whether we should include PDF support... > checking for PDF_setlinewidth in -lpdf... yes > checking for PDF_setrgbcolor in -lpdf... yes > checking for PDF_moveto in -lpdf... yes > checking for PDF_curveto in -lpdf... yes > checking for PDF_show_xy in -lpdf... (cached) yes > using libpdf from system libs. > checking whether we should include TIFF support... > checking for TIFFOpen in -ltiff... yes > using libtiff from system libs. > checking whether we should include EPPL7 support... > including EPPL7 support. > checking whether we should include PROJ.4 support... > checking for pj_init in -lproj... yes > checking for pj_transform in -lproj... yes > checking for pj_latlong_from_proj in -lproj... yes > using PROJ.4 from system libs. > checking whether we should include thread safe support... > thread safe support disabled. > checking whether we should include ESRI SDE support... > ESRI SDE support not requested. > checking whether we should compile in MPATROL support... > MPATROL support not requested. > checking whether we should include OGR support... > OGR support not requested. > checking if GDAL support requested... no > checking if PostGIS support requested... no > checking if OracleSpatial support requested... no > checking whether we should include WMS support... > OGC WMS compatibility enabled (-DUSE_WMS). > checking whether we should include WMS Client Connections support... > Compiling with -DIGNORE_MISSING_DATA. > checking whether we should enable debug features... > checking for PHP/MapScript module options... > PHP/MapScript module not configured. > updating cache ./config.cache > creating ./config.status > creating Makefile > > Thank you, > Jonathan W. Lowe > > Quoting Sandor Csaba : > > > Thanks, it solved the problem. Although I had troubles compiling freetype1 > > > on Solaris (had to use --disable-nls --enable-static whatever these mean) > > and also naturally (not for me until today) I had to recompile gd too. > > > > Csaba > > > > At 07:48 20/09/2002 -0400, you wrote: > > >This is a freetype 2 issue, just get libttf-1.3.1 and you problems > > >should go away. > > > > > >-Steve W. > > > http://iMapTools.com > > > > > >On 20 Sep 2002 at 11:45, Sandor Csaba wrote: > > > > > > > Hi All, > > > > > > > > I want to label streets with their names. It works fine on my windows > > > > box (downloaded binaries: ms36gif_gdal_pg_wms.zip). On a Solaris box > > > > (the real Internet server, mapserv 3.6.1 CGI, Freetype2, PNG support) > > > > the labels are randomly rotated around the same label point. > > > > > > > > Anybody had similar problems? Can this be a Freetype1 vs. 2 issue? > > > > > > > > I use the following label definition in the mapfile > > > > > > > > LABEL > > > > COLOR 0 0 0 > > > > TYPE TRUETYPE > > > > FONT arial > > > > SIZE 10 > > > > ANTIALIAS true > > > > POSITION AUTO > > > > PARTIALS TRUE > > > > MINFEATURESIZE 1 > > > > FORCE FALSE > > > > BUFFER 3 > > > > ANGLE AUTO > > > > END > > > > > > > > Thanks, > > > > Csaba > > > > > > > > - > > > > {Kornyezeti Management es Jog Egyesulet > > > > {Environmental Management and Law Association > > > > {www.emla.hu > > > > {1076 Budapest > > > > {Garay u. 29-31 > > > > {Hungary > > > > {Tel/fax: 36-1-3228462, 36-1-3529925 > > > > {Mobil: 06-20-949-1447 > > > > > > > > > > > > > > > > > > - > > {Kornyezeti Management es Jog Egyesulet > > {Environmental Management and Law Association > > {www.emla.hu > > {1076 Budapest > > {Garay u. 29-31 > > {Hungary > > {Tel/fax: 36-1-3228462, 36-1-3529925 > > {Mobil: 06-20-949-1447 > > > > > > > > > > > > From Steve_Palmer at lpsg.com Tue Sep 24 15:06:19 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Tue, 24 Sep 2002 17:06:19 -0500 Subject: [mapserver-users] txt to shp file conversion Message-ID: <750F5C5447AF18408DC73220B98FEAF76566F0@lesexch02.lpsg.com> ESRI's ArcScripts contains a "ShapeFile Read/Write OCX" download which contains both and OCX control AND a dll that you might find useful. It also contains a help file. http://arcscripts.esri.com/details.asp?dbid=11810 -----Original Message----- From: Alain FERRIOL [mailto:alainferriol at data-mobiles.com] Sent: Tuesday, September 24, 2002 10:35 AM To: DIV Mapserver Users Subject: [mapserver-users] txt to shp file conversion Hi all, I downloaded some files from nima : ftp://ftp.nima.mil/pub/gns_data But they are in txt format. Anyone knows how can i handle them? Maybe it's possible to convert them in shp files ? Note : I don't have arcview. Thank's a lot Alain Ferriol -------------- next part -------------- An HTML attachment was scrubbed... URL: From sjang3 at uiuc.edu Tue Sep 24 17:54:34 2002 From: sjang3 at uiuc.edu (Sung-Gheel Jang) Date: Tue, 24 Sep 2002 19:54:34 -0500 Subject: [mapserver-users] python mapscript Message-ID: <1032915274.3d91094a35909@epil.urban.uiuc.edu> Hello, I am starting to learn the python mapscript. According to the MapServerWiki (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PythonMapScript), I have compiled python mapscript. Of course, there were some effors to work around the setup.py in my SuSE 8.0 linux box. After that, in the python prompt, I tried to import mapscript, but I got the following error messages: Python 2.2 (#1, May 14 2002, 18:23:13) [GCC 2.95.3 20010315 (SuSE)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mapscript Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.2/site-packages/mapscript/__init__.py", line 1, in ? from MapScript import * File "/usr/lib/python2.2/site-packages/mapscript/MapScript.py", line 4, in ? import _MapScript ImportError: No module named _MapScript I can't find out _MapScript module. Any advice or help? Thanks, Sung-Gheel -- Sung-Gheel Jang Department of Urban & Regional Planning University of Illinois at Urbana-Champaign 111 T Buell Hall, 611 Taft Dr. Champaign, IL 61820 Tel: (217)333-1369 E-mail: sjang3 at uiuc.edu From Horst.Duester at bd.so.ch Wed Sep 25 00:52:59 2002 From: Horst.Duester at bd.so.ch (=?ISO-8859-1?Q?D=FCster_Horst?=) Date: Wed, 25 Sep 2002 08:52:59 +0100 Subject: [mapserver-users] txt to shp file conversion Message-ID: <5B025B1F39D6D4119F5700508BEEEC662DFC46@srsofaioi4546.ktso.ch> You can use php-MapScript for this job. Read your txt files and create your shapes with MapScript. Take a look at the php examples delivered with MapServer Dr. Horst D?ster Leiter Abteilung SO!GIS Koordination R?tihof 4500 Solothurn Tel.: 032 627 25 32 Fax: 032 627 22 14 horst.duester at bd.so.ch www.sogis.so.ch From jan at intevation.de Wed Sep 25 00:55:14 2002 From: jan at intevation.de (Jan-Oliver Wagner) Date: Wed, 25 Sep 2002 09:55:14 +0200 Subject: [mapserver-users] txt to shp file conversion In-Reply-To: <005d01c263e8$584b7d60$0300000a@oleane.com> References: <005d01c263e8$584b7d60$0300000a@oleane.com> Message-ID: <20020925075514.GA482@intevation.de> On Tue, Sep 24, 2002 at 06:34:32PM +0200, Alain FERRIOL wrote: > I downloaded some files from nima : > ftp://ftp.nima.mil/pub/gns_data > > But they are in txt format. > > Anyone knows how can i handle them? > > Maybe it's possible to convert them in shp files ? if you convert the txt format into the generate format as used by ArcInfo then you may use gen2shp for the conversion: http://www.intevation.de/~jan/gen2shp/gen2shp.html There you can see also samples of the generate format. Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From alainferriol at data-mobiles.com Wed Sep 25 02:55:34 2002 From: alainferriol at data-mobiles.com (Alain FERRIOL) Date: Wed, 25 Sep 2002 11:55:34 +0200 Subject: [mapserver-users] txt to shp file conversion (thank's) Message-ID: <005601c26479$c8cd18a0$0300000a@oleane.com> Hi all, Many thank's for yours answers. I have about 20 files to convert. I'll won't have time to work about it today, but I think, i'll try the solution in PERL given by Joe Bussell. Thank's Joe Friendly Alain Ferriol -------------- next part -------------- An HTML attachment was scrubbed... URL: From Grit.Schuster at uni-vechta.de Wed Sep 25 02:59:56 2002 From: Grit.Schuster at uni-vechta.de (Schuster) Date: Wed, 25 Sep 2002 11:59:56 +0200 Subject: [mapserver-users] PythonMapscript Installation Message-ID: <20020925095956.3F61BD3C00C@s04.kiz.uni-vechta.de> Norman, I changed the mapscript.i file as suggested in the WIKI and the setup.py too. But I always get a swig error and syntax errors (../mapscript.i:68. Syntax error in input. ../mapscript.i:74. Syntax error in input.). When I used the original mapscript.i file of the mapserver-3.6.1 source, I could compile the pythonMapscript. But I got the following error: error: command 'gcc' failed with exit status 1 Any ideas to solve these problem. Thanks in advance..... Grit -- From mail2stern at gmx.net Wed Sep 25 03:43:52 2002 From: mail2stern at gmx.net (Stefan Stern) Date: Wed, 25 Sep 2002 11:43:52 +0100 Subject: [mapserver-users] Scalebar definition References: <8AE17DD6AA4FD51191CD0002A5511681074B7C@s5-van1-r1.nrn.nrcan.gc.ca> Message-ID: <3D919368.3080800@gmx.net> Hi all, 1. My problem with .png images as reference object images is solved. The pictures has to be 8-bit. Many thanks for all suggestions! Re: [mapserver-users] .png or .jpg as reference object image? Van Ulden, Joost wrote: >We have used png's without too many problems. The only issue from our end >was to make sure it was an 8-bit colour image. I would look at your >REFERENCE in the mapfile. Here is ours: > 2. A question related to the scalebar object: My scalebar is divided into 3 segments. The output looks like 0 : 78 : 156 : 234 Miles. Is there a way to force full 100er / 10er; - e.g. like 0 : 100 : 200 : 300? Regards, Stefan From pradeepkumar at infotech.stph.net Wed Sep 25 04:49:57 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Wed, 25 Sep 2002 17:19:57 +0530 Subject: [mapserver-users] MapServer Limitations Message-ID: Hello Steve and all I am working towards the goal of evaluating MapServer wrt to many of the other similar technologies available in-house, Can I know from you what MapServer cannot do?(its limitations) or a general guideline where we can use MapServer and Where we cannot use it. Regards and Best wishes Pradeep -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Sep 25 05:19:48 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 25 Sep 2002 08:19:48 -0400 Subject: [mapserver-users] MapServer Limitations In-Reply-To: Message-ID: <3D9171A4.10442.28D7FCE2@localhost> Pradeep, I know this was probably addressed to Steve Lime, but I will toss my 2 cents in also. In general, is it hard to say what the limitations of anything are without knowing what you expect to do with it. For example it would be safe to say it probably can not do the dishes, etc :) but when you get closer to the domain of expertise it is not possible to say it does this well or not, because "well" is very subjective and without some specific details of the task involved it is not possible to accurately define its fitness for purpose. Another problem is the skill of the user in knowing how to make it do what you want. As someone recently said on the list, It is easy to setup mapserver in such a way the its performance really sucks. This does not mean the mapserver sucks, just that specific configuration. On the flip side, it is easier to make a check list of all the things that mapserver CAN do. We also have many testimonial from people that have tried other solutions like ESRI and have found that mapserver was a much better solution - just check the list archives or post a request to the list. That said, I think it would be safe to say that Mapserver's specific domain of expertise is in serving maps and ... It is NOT a GIS system. It is NOT a general purpose geocoding system. It is NOT a network analysis and routing system. It is NOT designed to edit spatial data files, not that you can do this in a limited sort of way. It is NOT a desktop GUI application. I hope this helps. -Steve Woodbridge http://iMapTools.com On 25 Sep 2002 at 17:19, Pradeep wrote: > > Hello Steve and all > I am working towards the goal of evaluating MapServer wrt to many of > the other similar technologies available in-house, Can I know from you > what MapServer cannot do?(its limitations) or a general guideline > where we can use MapServer and Where we cannot use it. > > Regards and Best wishes > Pradeep > From Chip.Hankley at gasai.com Wed Sep 25 06:16:22 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Wed, 25 Sep 2002 08:16:22 -0500 Subject: FW: [mapserver-users] ...JPEG Panic Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABE09@postoffice.GASAI.Com> For the sake of the archive... Chip -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Tuesday, September 24, 2002 7:27 PM To: Hankley, Chip Cc: 'warmerdam at pobox.com' Subject: Re: [mapserver-users] ...JPEG Panic Hi There, I just did some quick tests on this. It seems that the conflict comes from the gd library built in jpeg and the one used with mapserver. To test it, I have recompiled mapserver with gd where I removed the jpeg support (USE_JPEG flag) and I could load the jpeg files. The real solution for me is to recompile gd with the same jpeg lib that is used for mapserver. Unfortunaltly I could not do this right now, It does not compile on windows out of the box (I am currently using precompiled binaries). I will try to do this some time this week .... PS : I have entered a bug relative to this : http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=203 "Hankley, Chip" wrote: > ugh... thanks Frank... I'm on windows, and have compiled nothing. I'm just > using the stock exe's from the MS web site and the dlls from DMSolutions. > > thnks anyway...chip > > -----Original Message----- > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > Sent: Tuesday, September 24, 2002 1:52 PM > To: Hankley, Chip > Subject: Re: [mapserver-users] ...JPEG Panic > > Hankley, Chip wrote: > > Sorry to be pushy... I've got a bit of a deadline, and I can't seem to get > > this working. Does MS even support geo-referenced JPEGs? I have an app > that > > is going to put up a LOT of orthophotos, and JPEG seems like the best > > solution (size wise). > > > > o ECW is out (I'm using PHP MapScript, and don't want / can't compile my > own > > DLL) > > o WMS is out (don't have a WMS server) > > Chip, > > There was a response from the IJG guy about this a while ago. It is some > problem with structure packing pragmas. Apparently different ones were used > when you built libjpeg from what was used when mapserver was built. Did > you build either the jpeg shared library or mapserver yourself? If so, > start > digging into the pragmas about structure packing. > > 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 -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From woodbri at swoodbridge.com Wed Sep 25 06:40:36 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 25 Sep 2002 09:40:36 -0400 Subject: [mapserver-users] What does this error message mean? Message-ID: <3D918494.4598.2921F4F0@localhost> What does this error message mean? and How do i get rid of it? -Steve Warning: MapServer Error in msTiledSHPOpenFile(): Unable to open a single tile to use as a template. in /home/httpd/html/maplab-2.0rc3/htdocs/common/wrapper/drawmap.php on line 292 From sjang3 at uiuc.edu Wed Sep 25 08:26:03 2002 From: sjang3 at uiuc.edu (Sung-Gheel Jang) Date: Wed, 25 Sep 2002 10:26:03 -0500 Subject: [mapserver-users] My experience on Python Mapscript Installation Message-ID: <1032967563.3d91d58b21bf2@epil.urban.uiuc.edu> Thanks Sven, I have finally compiled Python MapScript. As mentioned in the MapServerWiki, we have to understand the SWIG command variables. My problem was -DSWIGPYTHON option. For some reasons, SWIG version 1.3.15 didn't accept -DSWIGPYTHON option in my SuSE linux box. I compiled it from the source tree. So, after deleting the 1.3.15 version of SWIG, I installed the 1.3.9 version which was included in the SuSE's software installation module. Then, the setup.py compiled Python MapScript successfully. In the setup.py, I found some things to be properly described: 1) gd_dir="/usr/local/src/gd-1.8.4" (depending upon your system) 2) path.join(local_dir,'lib/gdal.a') was duplicated. one of them must be path.join(local_dir,'lib/libgd.a') 3) you have to check if the extra objects are in the proper location (i.e. /usr/local/lib/) If not, you have to copy them from the source tree to there. 4) you have to understand which libraries are working on your machine (i.e. 'gd','freetype','ttf','png','proj','pq','z'). 'pq' is for PostgreSQL. As somebody already mentioned in the previous mailing list, you can check the Python Mapscript like this: Python 2.2 (#1, May 14 2002, 18:23:13) [GCC 2.95.3 20010315 (SuSE)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mapscript >>> dir() ['__builtins__', '__doc__', '__name__', 'mapscript'] >>> dir(mapscript) ['DBFInfo', 'DBFInfoPtr', 'FTDouble', 'FTInteger', 'FTInvalid', 'FTString', 'GetMapserverUnitUsingProj', 'MS_AUTO', 'MS_BITMAP', 'MS_CC', 'MS_CJC_BEVEL', 'MS_CJC_BUTT', 'MS_CJC_MITER', 'MS_CJC_NONE', 'MS_CJC_ROUND', 'MS_CJC_SQUARE', 'MS_CJC_TRIANGLE', 'MS_CL', 'MS_CR', 'MS_DD', 'MS_DEFAULT', 'MS_DELETE', 'MS_DONE', 'MS_EMBED', 'MS_FAILURE', 'MS_FALSE', 'MS_FEET', 'MS_FILE_MAP', 'MS_FILE_SYMBOL', 'MS_GIANT', 'MS_GIF', 'MS_GML', 'MS_HILITE', 'MS_INCHES', 'MS_INLINE', 'MS_JPEG', 'MS_KILOMETERS', 'MS_LARGE', 'MS_LAYER_ANNOTATION', 'MS_LAYER_CIRCLE', 'MS_LAYER_LINE', 'MS_LAYER_POINT', 'MS_LAYER_POLYGON', 'MS_LAYER_QUERY', 'MS_LAYER_RASTER', 'MS_LC', 'MS_LL', 'MS_LR', 'MS_MEDIUM', 'MS_METERS', 'MS_MILES', 'MS_MULTIPLE', 'MS_NO', 'MS_NORMAL', 'MS_OFF', 'MS_OGR', 'MS_ON', 'MS_ORACLESPATIAL', 'MS_PIXELS', 'MS_PNG', 'MS_POSTGIS', 'MS_SDE', 'MS_SELECTED', 'MS_SHAPEFILE', 'MS_SHAPEFILE_ARC', 'MS_SHAPEFILE_MULTIPOINT', 'MS_SHAPEFILE_POINT', 'MS_SHAPEFILE_POLYGON', 'MS_SHAPE_LINE', 'MS_SHAPE_NULL', 'MS_SHAPE_POINT', 'MS_SHAPE_POLYGON', 'MS_SHP_ARCM', 'MS_SHP_MULTIPOINTM', 'MS_SHP_POINTM', 'MS_SHP_POLYGONM', 'MS_SINGLE', 'MS_SMALL', 'MS_SUCCESS', 'MS_TILED_SHAPEFILE', 'MS_TINY', 'MS_TRUE', 'MS_TRUETYPE', 'MS_UC', 'MS_UL', 'MS_UNUSED_1', 'MS_UR', 'MS_VERSION', 'MS_WBMP', 'MS_WMS', 'MS_XY', 'MS_YES', 'MapScript', 'MapScriptc', '__builtins__', '__doc__', '__file__', '__name__', '__path__', 'classObj', 'classObjPtr', 'colorObj', 'colorObjPtr', 'imageObj', 'imageObjPtr', 'itemObj', 'itemObjPtr', 'labelCacheMemberObj', 'labelCacheMemberObjPtr', 'labelCacheObj', 'labelCacheObjPtr', 'labelObj', 'labelObjPtr', 'layerObj', 'layerObjPtr', 'legendObj', 'legendObjPtr', 'lineObj', 'lineObjPtr', 'mapObj', 'mapObjPtr', 'markerCacheMemberObj', 'markerCacheMemberObjPtr', 'msDBFAddField', 'msDBFClose', 'msDBFCreate', 'msDBFGetFieldCount', 'msDBFGetFieldInfo', 'msDBFGetItemIndex', 'msDBFGetItemIndexes', 'msDBFGetItems', 'msDBFGetRecordCount', 'msDBFGetValueList', 'msDBFGetValues', 'msDBFOpen', 'msDBFReadDoubleAttribute', 'msDBFReadIntegerAttribute', 'msDBFReadStringAttribute', 'msDBFWriteDoubleAttribute', 'msDBFWriteIntegerAttribute', 'msDBFWriteStringAttribute', 'msFreeImage', 'msSaveImage', 'pointObj', 'pointObjPtr', 'projectionObj', 'projectionObjPtr', 'queryMapObj', 'queryMapObjPtr', 'rectObj', 'rectObjPtr', 'referenceMapObj', 'referenceMapObjPtr', 'resultCacheMemberObj', 'resultCacheMemberObjPtr', 'resultCacheObj', 'resultCacheObjPtr', 'scalebarObj', 'scalebarObjPtr', 'shapeObj', 'shapeObjPtr', 'shapefileObj', 'shapefileObjPtr', 'styleObj', 'styleObjPtr', 'webObj', 'webObjPtr'] >>> len(dir(mapscript)) 167 >>> mapscript.MS_VERSION '3.6.1' >>> Now, I believe I am ready to examine those mapscript objects in the python code. Cheers, Sung-Gheel -- Sung-Gheel Jang Department of Urban & Regional Planning University of Illinois at Urbana-Champaign 111 T Buell Hall, 611 Taft Dr. Champaign, IL 61820 Tel: (217)333-1369 E-mail: sjang3 at uiuc.edu From joe at otsys.com Wed Sep 25 08:39:55 2002 From: joe at otsys.com (Joe Bussell) Date: Wed, 25 Sep 2002 08:39:55 -0700 Subject: [mapserver-users] What does this error message mean? In-Reply-To: <3D918494.4598.2921F4F0@localhost> References: <3D918494.4598.2921F4F0@localhost> Message-ID: <20020925153955.GA14912@otsys.com> One guess, perhaps the tile index file is stale. Have you rebuilt any shapefile data trees lately? On Wed, Sep 25, 2002 at 09:40:36AM -0400, woodbri at swoodbridge.com wrote: > What does this error message mean? and How do i get rid of it? > > -Steve > > Warning: MapServer Error in msTiledSHPOpenFile(): Unable to open a > single tile to use as a template. in > /home/httpd/html/maplab-2.0rc3/htdocs/common/wrapper/drawmap.php on > line 292 > -- Cordially, Joe Bussell On Time Systems www.TrafficDodger.com From steve.lime at dnr.state.mn.us Wed Sep 25 09:14:37 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 25 Sep 2002 11:14:37 -0500 Subject: [mapserver-users] What does this error message mean? Message-ID: Hmmmm... You don't see this one often. To make tiled data processing as efficient as possible MapServer attempts to open an individual tile (doesn't matter which one since all MUST be identical in structure) to nab column names from and with that information it figures out how to deal with expressions and so on. You'd only see this message if MapServer could open the tile index, but none of the tiles themselves. Presumably the locations stored in the index are bad. What version? The only reason I ask is that 3.7 removes some of the directory changing that was going on and has not been fully tested. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 09/25/02 08:40AM >>> What does this error message mean? and How do i get rid of it? -Steve Warning: MapServer Error in msTiledSHPOpenFile(): Unable to open a single tile to use as a template. in /home/httpd/html/maplab-2.0rc3/htdocs/common/wrapper/drawmap.php on line 292 From woodbri at swoodbridge.com Wed Sep 25 09:22:04 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 25 Sep 2002 12:22:04 -0400 Subject: [mapserver-users] What does this error message mean? In-Reply-To: <20020925153955.GA14912@otsys.com> References: <3D918494.4598.2921F4F0@localhost> Message-ID: <3D91AA6C.10830.29B5C7E9@localhost> Joe, Thanks for your response. I actually just created the dataset and tileindex and added it to an existing mapfile which then broke. Well it seems that there is a minor bug in mapserver or at least an undocumented limitation, or more likely a failure on my part to understand. It seems that in the mapfile a a tileindex must be specified relative to the SHAPEPATH item and may not be specified as an absolute path. And further more all TILEINDEX LOCATION values must be relative to the location of the TILEINDEX location. I might be wrong on this but looking at the source code and making the changes above seemed to get rid of the problem. -Steve W. On 25 Sep 2002 at 8:39, Joe Bussell wrote: > One guess, perhaps the tile index file is stale. Have you rebuilt any > shapefile data trees lately? > > On Wed, Sep 25, 2002 at 09:40:36AM -0400, woodbri at swoodbridge.com > wrote: > What does this error message mean? and How do i get rid of > it? > > -Steve > > Warning: MapServer Error in msTiledSHPOpenFile(): > Unable to open a > single tile to use as a template. in > > /home/httpd/html/maplab-2.0rc3/htdocs/common/wrapper/drawmap.php on > > line 292 > > > -- > > Cordially, > > Joe Bussell > On Time Systems > www.TrafficDodger.com > > From woodbri at swoodbridge.com Wed Sep 25 09:33:41 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 25 Sep 2002 12:33:41 -0400 Subject: [mapserver-users] What does this error message mean? In-Reply-To: Message-ID: <3D91AD25.32107.29C0698E@localhost> Thanks Steve, I'm on 3.6.2, and what I had set up was SHAPEPATH = /raid1/nima/vmap0 TILEINDEX = /raid1/nima/vmap0/placenames/placenames-tile Tileindex entries were like ./row/aa where the file was located at /raid1/nima/vmap0/placenames/row/aa I changed it to: SHAPEPATH = /raid1/nima/vmap0 TILEINDEX = placenames-tile Tileindex entries were like ./placenames/row/aa where the file was located at /raid1/nima/vmap0/placenames/row/aa and I moved the tileindex up to the /raid1/nima/vmap0 dir. The second seems to be working, but not the first. Oh what this does is add nearly 10 million named places to the my vmap0 browser :) at http://iMapTools.com/geocode.php -Steve On 25 Sep 2002 at 11:14, Steve Lime wrote: > Hmmmm... You don't see this one often. To make tiled data processing > as efficient as possible MapServer attempts to open an individual tile > (doesn't matter which one since all MUST be identical in structure) to > nab column names from and with that information it figures out how to > deal with expressions and so on. You'd only see this message if > MapServer could open the tile index, but none of the tiles themselves. > Presumably the locations stored in the index are bad. > > What version? The only reason I ask is that 3.7 removes some of the > directory changing that was going on and has not been fully tested. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> 09/25/02 08:40AM >>> > What does this error message mean? and How do i get rid of it? > > -Steve > > Warning: MapServer Error in msTiledSHPOpenFile(): Unable to open a > single tile to use as a template. in > /home/httpd/html/maplab-2.0rc3/htdocs/common/wrapper/drawmap.php on > line 292 > From rjames57 at yahoo.com Wed Sep 25 10:20:20 2002 From: rjames57 at yahoo.com (randy james) Date: Wed, 25 Sep 2002 10:20:20 -0700 (PDT) Subject: [mapserver-users] Fonts In-Reply-To: Message-ID: <20020925172020.2857.qmail@web12506.mail.yahoo.com> Hi Just for continuity; No the font does not have Unicode character mapping and does not work on some windows machines and linux. Randy --- Steve Lime wrote: > Does the font have a Unicode character mapping? If > not it probably won't > work. > > >>> randy james 09/20/02 > 11:17AM >>> > Hi List > > I am having problems with truetype fonts not > displaying properly. The font is a font generated by > fontographer 4.1 with special letters in it like > stress marks above the letters. To get the special > letters we have to hold the alt key and using the > keypad key in the ascii key code for the letter. The > problem is that any letter where we used the key > code > does not display. Is this a 2.0 vs 1.1.3 freefont > issue? I have 2.0 installed > > Cheers > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From Chip.Hankley at gasai.com Wed Sep 25 11:15:00 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Wed, 25 Sep 2002 13:15:00 -0500 Subject: [mapserver-users] What does this error message mean? Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABE0C@postoffice.GASAI.Com> > It seems that in the mapfile a a tileindex must be specified relative > to the SHAPEPATH item and may not be specified as an absolute path. > And further more all TILEINDEX LOCATION values must be relative to > the location of the TILEINDEX location. ??? I do this all the time w/ no problem: ... SHAPEPATH "D:\DATA\" ... LAYER NAME "HILLSHADE100" MAXSCALE 1000000 MINSCALE 500000 TYPE RASTER STATUS DEFAULT TILEINDEX "D:\temp\HILLSHADE\HILL100.shp" TILEITEM "Location" END ... And LOCATION is the fullpath to the images. Windows, Mapserver.exe (CGI) and PHP MapScript, IIS. chip From woodbri at swoodbridge.com Wed Sep 25 11:41:49 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 25 Sep 2002 14:41:49 -0400 Subject: [mapserver-users] What does this error message mean? In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A5353010ABE0C@postoffice.GASAI.Com> Message-ID: <3D91CB2D.24526.2A35B879@localhost> Chip, The generation of my tile indexes is always scripted so I generate things in a consistent manner. It is possible that I had a typo, but I checked everything a couple of time before I started changing things. Your example is not quite the same as mine, because you used absolute paths in your tileindex LOCATION field, and I used relative paths. The source does some gymnastics with chdir and paths to open files and I suspect that this will get cleaned up when Steve L. cleans up this code to get rid of chdir calls as part of the thread-safety cleanup. I use tileindexes in all my mapfiles, so it was a surprise when I ran into this problem. -Steve On 25 Sep 2002 at 13:15, Hankley, Chip wrote: > > It seems that in the mapfile a a tileindex must be specified > > relative to the SHAPEPATH item and may not be specified as an > > absolute path. And further more all TILEINDEX LOCATION values must > > be relative to the location of the TILEINDEX location. > > ??? I do this all the time w/ no problem: > > ... > SHAPEPATH "D:\DATA\" > ... > > LAYER > NAME "HILLSHADE100" > MAXSCALE 1000000 > MINSCALE 500000 > TYPE RASTER > STATUS DEFAULT > TILEINDEX "D:\temp\HILLSHADE\HILL100.shp" > TILEITEM "Location" > END > > ... > > And LOCATION is the fullpath to the images. > > Windows, Mapserver.exe (CGI) and PHP MapScript, IIS. > > chip > From woodbri at swoodbridge.com Wed Sep 25 12:14:36 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 25 Sep 2002 15:14:36 -0400 Subject: [mapserver-users] MapServer Limitations In-Reply-To: <3D91B4DF.8F4260A1@keyspanenergy.com> Message-ID: <3D91D2DC.22907.2A53BD46@localhost> Kieran, It is vary simpler to do. Just use a circle symbol and create a roads at say SIZE 5 and then add any OVERLAYSYMBOL 'circle' with a smaller size like OVERLAYSIZE 3 and use a different color. There are examples in the archives and probably on wiki. -Steve On 25 Sep 2002 at 9:06, Kieran J. Ames wrote: > Steve, > I've been following some of your postings to the Mapserver-users list > and visited your imaptools.com site. I was quite impressed with your > "Find A Place" app and was wondering about the street renderings you > create. With Mapserver, I've only been able to render street > centerlines whereas you seem to portray streets with a two-dimensional > curbline. I'm assuming that your nmap app uses, or is similar to, the > Mapserver engine. With that said, could you offer any guidance on how > I might "pretty-up" my maps like this? ...Sample map file, symbol > definitions, etc? The link I used was > http://swoodbridge.com/web2/nmap/?x=-73.369565&y=40.675700&mx=-73.3695 > 65&my=40.675700&dx=0.013&dy=0.013 > > TIA for your thoughts/assistance. > Kieran Ames > > > woodbri at swoodbridge.com wrote: > > > Pradeep, > > > > I know this was probably addressed to Steve Lime, but I will toss my > > 2 cents in also. > > > > In general, is it hard to say what the limitations of anything are > > without knowing what you expect to do with it. For example it would > > be safe to say it probably can not do the dishes, etc :) but when > > you get closer to the domain of expertise it is not possible to say > > it does this well or not, because "well" is very subjective and > > without some specific details of the task involved it is not > > possible to accurately define its fitness for purpose. > > > > Another problem is the skill of the user in knowing how to make it > > do what you want. As someone recently said on the list, It is easy > > to setup mapserver in such a way the its performance really sucks. > > This does not mean the mapserver sucks, just that specific > > configuration. > > > > On the flip side, it is easier to make a check list of all the > > things that mapserver CAN do. We also have many testimonial from > > people that have tried other solutions like ESRI and have found that > > mapserver was a much better solution - just check the list archives > > or post a request to the list. > > > > That said, I think it would be safe to say that Mapserver's specific > > domain of expertise is in serving maps and ... > > > > It is NOT a GIS system. > > It is NOT a general purpose geocoding system. > > It is NOT a network analysis and routing system. > > It is NOT designed to edit spatial data files, not that you can do > > this in a limited sort of way. It is NOT a desktop GUI application. > > > > I hope this helps. > > -Steve Woodbridge > > http://iMapTools.com > > > > On 25 Sep 2002 at 17:19, Pradeep wrote: > > > > > > > > Hello Steve and all > > > I am working towards the goal of evaluating MapServer wrt to many > > > of > > > the other similar technologies available in-house, Can I know from > > > you what MapServer cannot do?(its limitations) or a general > > > guideline where we can use MapServer and Where we cannot use it. > > > > > > Regards and Best wishes > > > Pradeep > > > > > From steve.lime at dnr.state.mn.us Wed Sep 25 13:14:05 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 25 Sep 2002 15:14:05 -0500 Subject: [mapserver-users] Scalebar definition Message-ID: Not currently without hacking the code. Depending on the magnitude of the interval size a different rounding scheme is put in place. The code is at the top of mapscale.c if you'd care to alter it. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stefan Stern 09/25/02 05:43AM >>> Hi all, 1. My problem with .png images as reference object images is solved. The pictures has to be 8-bit. Many thanks for all suggestions! Re: [mapserver-users] .png or .jpg as reference object image? Van Ulden, Joost wrote: >We have used png's without too many problems. The only issue from our end >was to make sure it was an 8-bit colour image. I would look at your >REFERENCE in the mapfile. Here is ours: > 2. A question related to the scalebar object: My scalebar is divided into 3 segments. The output looks like 0 : 78 : 156 : 234 Miles. Is there a way to force full 100er / 10er; - e.g. like 0 : 100 : 200 : 300? Regards, Stefan From nhv at cape.com Wed Sep 25 14:13:12 2002 From: nhv at cape.com (Norman Vine) Date: Wed, 25 Sep 2002 17:13:12 -0400 Subject: [mapserver-users] Re: PythonMapscript Installation References: <20020925095956.3F61BD3C00C@s04.kiz.uni-vechta.de> Message-ID: <060301c264d8$5edb0240$0100a8c0@sfdev3> Grit Schuster writes: > > I changed the mapscript.i file as suggested in the WIKI and the setup.py too. > But I always get a swig error and syntax errors (../mapscript.i:68. Syntax > error in input. > ../mapscript.i:74. Syntax error in input.). > > > > When I used the original mapscript.i file of the mapserver-3.6.1 source, > I could compile the pythonMapscript. But I got the following error: > > error: command 'gcc' failed with exit status 1 > > > Any ideas to solve these problem. Thanks in advance..... I reworked my distutils script a bit and placed it and a patched version of mapscript.i http://www.vso.cape.com/~nhv/files/python/mapscript/3.6.1/ HTH Norman From armin.burger at libero.it Wed Sep 25 15:26:04 2002 From: armin.burger at libero.it (Armin Burger) Date: Wed, 25 Sep 2002 23:26:04 +0100 Subject: [mapserver-users] PHP MapScript, pan using reference map Message-ID: <200209252123.QAA14803@lists.gis.umn.edu> Hi all, I was wondering whether there is a built-in functionality in PHP MapScript for panning the main map via clicks in the reference map. The CGI version offers such a possibility with the variables 'ref.x' and 'ref.y'. I couldn't find a method like that in the PHP MapScript doumentation but I wanted to be sure before trying a workaround with a combination of existing methods. Armin From pkishor at GeoAnalytics.com Wed Sep 25 17:09:21 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 25 Sep 2002 19:09:21 -0500 Subject: [mapserver-users] OT: A New Way to Read, Not See, Maps In-Reply-To: <3D91CB2D.24526.2A35B879@localhost> Message-ID: <34CC80CE-D0E4-11D6-BC72-0003936306C2@geoanalytics.com> ======= A New Way to Read, Not See, Maps By Mark Tosczak 2:00 a.m. Sep. 25, 2002 PDT Jason Morris uses a trackball to move a cursor across a map of ancient Britain dotted with Roman forts and cities. As he passes over a location, a speech synthesizer pronounces the name -- and will spell it, too, as sometimes the computer's Latin pronunciation isn't up to snuff. When the cursor passes over land, the sound of horses galloping comes from the computer's speakers. Move it over water and the sound of waves breaking on a beach emanates... ======= read the rest of the article at http://www.wired.com/news/school/0,1383,54916,00.html?tw=wn_ascii now, how 'bout in mapserver version 5.x... pk/ From Antti.Roppola at brs.gov.au Wed Sep 25 18:55:49 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Thu, 26 Sep 2002 11:55:49 +1000 Subject: [mapserver-users] GDAL TIFF fun - two supposedly identical builds.... Message-ID: <4D6E6CCBC9CED61192720060B06B3DD7C3F954@ACTMAIL2> OK, I have two (supposedly) identical boxes running PHP Mapscript (3.6.0 and 3.6.1) with GDAL (1.1.7) support. The same source data and PHP application has been mirrored from box A to B. The same TIFFs work on box A, but not box B. Box A: MapScript Version ($Revision: 1.104 $ $Date: 2002/04/24 20:37:32 $) MapServer version 3.6.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Box B: MapScript Version ($Revision: 1.104.2.1 $ $Date: 2002/06/03 14:19:53 $) MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Viz, from this and looking at the config.status in each compile ("--without-tiff"), they do not support TIFF natively but through GDAL. TIFFs will display on box A, but not B, where it seems to bail as soon as it tries to $map->draw(). gdal_translate will happily convert the offending TIFF to other GDAL formats that do work, so I am guessing that the GDAL libaries must be OK. looking at the libraries actually linked into php_mapscript.so and libgdal.1.1.so, I can't spot any obvious differences either. (both GDALs have TIFF and GEOTIFF set to "internal"). The only smoking gun I can see is that on box B, Mapserver config.status is looking for gdal.h in the wrong location (but then why would other GDAL formats work OK?) Thoughts? Antti From woodbri at swoodbridge.com Wed Sep 25 20:10:37 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 25 Sep 2002 23:10:37 -0400 Subject: [mapserver-users] GDAL TIFF fun - two supposedly identical builds.... In-Reply-To: <4D6E6CCBC9CED61192720060B06B3DD7C3F954@ACTMAIL2> Message-ID: <3D92426D.11008.2C078B84@localhost> Antti, Do a ldd on mapserver and the php_mapscript.so on both boxes and see if it reports any differences. What OS are you running these boxes under. If Linux they might have different versions of rpms loaded. -Steve On 26 Sep 2002 at 11:55, Antti.Roppola at brs.gov.au wrote: > OK, > > I have two (supposedly) identical boxes running PHP Mapscript (3.6.0 > and 3.6.1) with GDAL (1.1.7) support. The same source data and PHP > application has been mirrored from box A to B. The same TIFFs work on > box A, but not box B. > > Box A: > > MapScript Version ($Revision: 1.104 $ $Date: 2002/04/24 20:37:32 $) > MapServer version 3.6.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Box B: > > MapScript Version ($Revision: 1.104.2.1 $ $Date: 2002/06/03 14:19:53 > $) MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Viz, from this and looking at the config.status in each compile > ("--without-tiff"), they do not support TIFF natively but through > GDAL. TIFFs will display on box A, but not B, where it seems to bail > as soon as it tries to $map->draw(). gdal_translate will happily > convert the offending TIFF to other GDAL formats that do work, so I am > guessing that the GDAL libaries must be OK. looking at the libraries > actually linked into php_mapscript.so and libgdal.1.1.so, I can't spot > any obvious differences either. (both GDALs have TIFF and GEOTIFF set > to "internal"). > > The only smoking gun I can see is that on box B, Mapserver > config.status is looking for gdal.h in the wrong location (but then > why would other GDAL formats work OK?) > > Thoughts? > > Antti > > From gabriel at ciasc.gov.br Thu Sep 26 04:32:39 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Thu, 26 Sep 2002 08:32:39 -0300 Subject: [mapserver-users] txt to shp file conversion References: <005d01c263e8$584b7d60$0300000a@oleane.com> Message-ID: <00f501c26550$6b84f5a0$12d713ac@ciasc.gov.br> Somebody could explain me on the content of these archives, on what they treat? Thanks. Gabriel ----- Original Message ----- From: Alain FERRIOL To: DIV Mapserver Users Sent: Tuesday, September 24, 2002 1:34 PM Subject: [mapserver-users] txt to shp file conversion Hi all, I downloaded some files from nima : ftp://ftp.nima.mil/pub/gns_data But they are in txt format. Anyone knows how can i handle them? Maybe it's possible to convert them in shp files ? Note : I don't have arcview. Thank's a lot Alain Ferriol -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Sep 26 04:55:33 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 26 Sep 2002 07:55:33 -0400 Subject: [mapserver-users] OT: A New Way to Read, Not See, Maps In-Reply-To: <34CC80CE-D0E4-11D6-BC72-0003936306C2@geoanalytics.com> References: <3D91CB2D.24526.2A35B879@localhost> Message-ID: <3D92BD75.19821.2DE81E3A@localhost> We probably don't have to wait even that long to be able to do something like this. This is more of a client problem than a server problem and with Flash out put it should be possible to do this. For example sounds are keyed to the background colors, if we added roll- over text prompts for map features they could be fed into a text to speech processor. etc. With Flash, you have the ability to have action functions to create hot spots and action function to handle them. Sooooo, you might not have to wait much longer than 3.7!!! -Steve W. http://iMapTools.com On 25 Sep 2002 at 19:09, Puneet Kishor wrote: > ======= > A New Way to Read, Not See, Maps > By Mark Tosczak > > > 2:00 a.m. Sep. 25, 2002 PDT > Jason Morris uses a trackball to move a cursor across a map of ancient > Britain dotted with Roman forts and cities. As he passes over a > location, a speech synthesizer pronounces the name -- and will spell > it, too, as sometimes the computer's Latin pronunciation isn't up to > snuff. > > When the cursor passes over land, the sound of horses galloping comes > from the computer's speakers. Move it over water and the sound of > waves breaking on a beach emanates... > > ======= > > read the rest of the article at > http://www.wired.com/news/school/0,1383,54916,00.html?tw=wn_ascii > > now, how 'bout in mapserver version 5.x... > > pk/ > > From xguaita at cesiba.com Thu Sep 26 04:59:51 2002 From: xguaita at cesiba.com (Xisco Guaita) Date: Thu, 26 Sep 2002 13:59:51 +0200 Subject: [mapserver-users] Problem with angle labels Message-ID: Hi, I'm working with street maps. But I've problems with the angle labels of the street line layer. The result.png attached file is a example of this. The street's center lines have been drawn to show the differences between label and line angles. I've builded a shapefile for testing purpose. It has a field with angles from 0? to 345? in steps of 15?. Here's the mapfile layer: LAYER NAME labels TYPE point DATA "theme1" status on LABELcache off labelangleitem angle #angles from 0? to 345? step 15? CLASS text "--------------------" LABEL TYPE truetype FONT Lucida COLOR 75 75 75 POSITION CR SIZE 12 END END END and the 360.png attached file is the resulting image. There are some angles draw incorrectly. Is a problem of graphics libraries? Has anyone had the same problem, and has you found any solution? I'm using PHPMapscript 3.6.1, libgd 1.8.4, freetype 2.0, php 4.1.2 Thanks in advance, Xisco Guaita -------------- next part -------------- A non-text attachment was scrubbed... Name: result.png Type: application/octet-stream Size: 14457 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 360.png Type: application/octet-stream Size: 9361 bytes Desc: not available URL: From woodbri at swoodbridge.com Thu Sep 26 05:29:18 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 26 Sep 2002 08:29:18 -0400 Subject: [mapserver-users] Problem with angle labels In-Reply-To: Message-ID: <3D92C55E.12821.2E070720@localhost> Xisco, This is a problem that is caused by the use of freetype 2.0, If you rebuild GD and mapserver using freetype 1.3.1 this problem will be resolved. -Steve W. http://iMapTools.com On 26 Sep 2002 at 13:59, Xisco Guaita wrote: > Hi, > > I'm working with street maps. But I've problems with the angle labels > of the street line layer. > > The result.png attached file is a example of this. The street's center > lines have been drawn to show the differences between label and line > angles. > > I've builded a shapefile for testing purpose. It has a field with > angles from 0? to 345? in steps of 15?. > > Here's the mapfile layer: > > LAYER > NAME labels > TYPE point > DATA "theme1" > status on > LABELcache off > labelangleitem angle #angles from 0? to 345? step 15? > CLASS > text "--------------------" > LABEL > TYPE truetype > FONT Lucida > COLOR 75 75 75 > POSITION CR > SIZE 12 > END > END > END > > and the 360.png attached file is the resulting image. There are some > angles draw incorrectly. Is a problem of graphics libraries? Has > anyone had the same problem, and has you found any solution? > > I'm using PHPMapscript 3.6.1, libgd 1.8.4, freetype 2.0, php 4.1.2 > > Thanks in advance, > Xisco Guaita > From Tom.Cadman at region.durham.on.ca Thu Sep 26 05:38:23 2002 From: Tom.Cadman at region.durham.on.ca (Tom Cadman) Date: Thu, 26 Sep 2002 08:38:23 -0400 Subject: [mapserver-users] Release of MS 3.7 ? Message-ID: Hello everbody. Is there a tentative release date for Mapserve version 3.7 ? Thanks From Chip.Hankley at gasai.com Thu Sep 26 08:30:21 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Thu, 26 Sep 2002 10:30:21 -0500 Subject: [mapserver-users] JavaScript / ROSA ... Accessing data before submit Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABE14@postoffice.GASAI.Com> I'm confused about the TB_BUT_?_JSACTION function works in ROSA. Here's part of my Applet definition: #JavaScript Line If I DIDN'T include the JavaScript line, this button would allow the user to digitize a polyline on the map, and the coordinates would be submitted with the form, in a variable called INPUT_COORD. If, however, I include the JavaScript line as shown, the variable doesn't seem to get set. What I'm trying to do is set up some client side processes to occur BEFORE I submit the form... but I need access to those coordinates. What am I doing wrong? TIA Chip Hankley From jhart at frw.uva.nl Thu Sep 26 09:02:14 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 26 Sep 2002 18:02:14 +0200 Subject: [mapserver-users] OT: A New Way to Read, Not See, Maps References: <3D91CB2D.24526.2A35B879@localhost> <3D92BD75.19821.2DE81E3A@localhost> Message-ID: <3D932F85.7070306@frw.uva.nl> Yes, and with a PostGIS connection you can put whole libraries of sounds into your database next to your maps. Then you could use geographical selections to limit the number of sounds to be sent over the Net. Interesting, and not extremely difficult, I would guess. Jan Hartmann woodbri at swoodbridge.com wrote: > We probably don't have to wait even that long to be able to do > something like this. This is more of a client problem than a server > problem and with Flash out put it should be possible to do this. For > example sounds are keyed to the background colors, if we added roll- > over text prompts for map features they could be fed into a text to > speech processor. etc. With Flash, you have the ability to have > action functions to create hot spots and action function to handle > them. Sooooo, you might not have to wait much longer than 3.7!!! > > -Steve W. > http://iMapTools.com > > On 25 Sep 2002 at 19:09, Puneet Kishor wrote: > > >>======= >>A New Way to Read, Not See, Maps >>By Mark Tosczak >> >> >>2:00 a.m. Sep. 25, 2002 PDT >>Jason Morris uses a trackball to move a cursor across a map of ancient >>Britain dotted with Roman forts and cities. As he passes over a >>location, a speech synthesizer pronounces the name -- and will spell >>it, too, as sometimes the computer's Latin pronunciation isn't up to >>snuff. >> >>When the cursor passes over land, the sound of horses galloping comes >>from the computer's speakers. Move it over water and the sound of >>waves breaking on a beach emanates... >> >>======= >> >>read the rest of the article at >>http://www.wired.com/news/school/0,1383,54916,00.html?tw=wn_ascii >> >>now, how 'bout in mapserver version 5.x... >> >>pk/ >> >> > > > > From nospam at cnrit.tamu.edu Thu Sep 26 11:48:43 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Thu, 26 Sep 2002 13:48:43 -0500 Subject: [mapserver-users] msQueryByPoint(): Search returned no results Message-ID: <3D93568B.4040406@cnrit.tamu.edu> Can somebody please enlighten me as to all the pieces required in order to make a query happen? I've got one simple mapserver page that allows queries, but my more advanced page gives me the following error every time I try to query (or "nquery") anything: msQueryByPoint(): Search returned no results. No matching record(s) found I've got the following code in my map file: # Web Object WEB HEADER 'frames_header.html' TEMPLATE 'frames.html' FOOTER 'frames_footer.html' . . . END # Query Map Object QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 51 102 255 END # Layer I'm trying to query LAYER NAME "Ethiopia_Adminlevel1" TYPE Polygon STATUS off GROUP Ethiopia DATA "ethiopia_adminlevel1" LABELITEM 'Name' HEADER 'ethiopia_adminlevel1_header.html' FOOTER 'ethiopia_adminlevel1_footer.html' TOLERANCEUNITS kilometers TOLERANCE 5 DUMP TRUE CLASSITEM 'Name' CLASS EXPRESSION 'Addis Ababa' COLOR 210 210 210 OUTLINECOLOR 0 0 0 TEMPLATE 'ethiopia_adminlevel1_query.html' END # CLASS . . . END All the header, footer, and query HTML files exist and have good variables in them based on what's actually in my shape files, the shapes show up fine in my map, but I cannot query ANYTHING! Any ideas?! Thanks in advance! From tesimap at hotmail.com Thu Sep 26 11:58:52 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Thu, 26 Sep 2002 20:58:52 +0200 Subject: [mapserver-users] Two questions Message-ID: Hi all, I have two questions. i)I have compiled mapserver 3.5 on Win XP, I think correctly because I haven't message error. But when I test mapserv.exe on my project I have this error: loadlabel(): Unknown identifier. Keyword FONT is not valid without TrueType font support. But If I change section of truetype font, in map file, with bitmap font my project work correctly. So I think that the problem is freetype or gd compiled with freetype,but I didn't have problem when I have compiled these libraries. Any idea? ii)Is it possible to do a textual search with Gmap as with "itemnquery" in cgi version? If yes can you explain me how? Because I havent't idea. Regards Ivan _________________________________________________________________ MSN Hotmail ? il provider email pi? grande al mondo cosa aspetti a farti un account? http://www.hotmail.it From TMitchell at lignum.com Thu Sep 26 13:11:47 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Thu, 26 Sep 2002 13:11:47 -0700 Subject: [mapserver-users] Two questions Message-ID: At 26-Sep-02 11:58 AM, owner-mapserver-users at lists.gis.umn.edu wrote: > Hi all, > I have two questions. > > i)I have compiled mapserver 3.5 on Win XP, I think correctly because I > haven't message error. But when I test mapserv.exe on my project I have this > error: > loadlabel(): Unknown identifier. Keyword FONT is not valid without > TrueType font support. > > But If I change section of truetype font, in map file, with bitmap font my > project work correctly. > So I think that the problem is freetype or gd compiled with freetype,but I > didn't have problem when I have compiled these libraries. > Any idea? There are three things that you need to get the truetype fonts working. This may be in the map file/symbol documentation, but here's my spin. 1) specify FONTSET (I put mine right under the IMAGECOLOR line in the top of my map file) and point it to a text file lists two things - a font "name" and the location of the truetype font filename. (i.e. arial.ttf) 2) In your LABEL Object for the layer you have a line: FONT With "name" as in point 1 3) Right after that line I put in a line to specify the type of font. I assume you were missing this. TYPE truetype Does that work for you? I copied the ttf files I wanted into a folder by the map file. From assefa at dmsolutions.ca Thu Sep 26 13:25:09 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 26 Sep 2002 16:25:09 -0400 Subject: [mapserver-users] JavaScript / ROSA ... Accessing data before submit References: <3DFF131E4E6D2D4198CDD758F35A5353010ABE14@postoffice.GASAI.Com> Message-ID: <3D936D25.F55F5BE2@dmsolutions.ca> I have just done a similar try here : ..... printf("\n"); ..... printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); with Js function AlertCoord defined : function AlertCoord() { szCoord = document.forms[0].INPUT_COORD.value; window.alert(szCoord); } And as soon as the drawing is done, I have a window poping up with the correct coordinates. I did not see anything wrong with the setting that you have given, and the INPUT_COORD should be set if properly defined. Later, "Hankley, Chip" wrote: > I'm confused about the TB_BUT_?_JSACTION function works in ROSA. Here's part > of my Applet definition: > > VALUE="/MapSymbols/NavSymbols/RedLineOff.GIF"> > VALUE="/MapSymbols/NavSymbols/RedLineHv.GIF"> > > > > > #JavaScript Line > > > > If I DIDN'T include the JavaScript line, this button would allow the user to > digitize a polyline on the map, and the coordinates would be submitted with > the form, in a variable called INPUT_COORD. If, however, I include the > JavaScript line as shown, the variable doesn't seem to get set. > > What I'm trying to do is set up some client side processes to occur BEFORE I > submit the form... but I need access to those coordinates. What am I doing > wrong? > > TIA > > Chip Hankley -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From gisweb at lmi.net Thu Sep 26 13:40:10 2002 From: gisweb at lmi.net (gisweb at lmi.net) Date: Thu, 26 Sep 2002 13:40:10 -0700 Subject: [mapserver-users] Problem with angle labels In-Reply-To: References: Message-ID: <1033072809.3d9370aa02648@webmail.lmi.net> Xisco, Any or all of the following steps might help if you need to configure mapserver on a machine with both freetype 1.x and freetype 2.x on it... Problem summary: System: FreeBSD Access: No root access, but local builds okay Mapserver version: 3.6.1 Goal: Build mapserver with true type support. Issue: Machine has an existing version of Freetype 2.x. The ./configure routine recognizes the Freetype 2.x rather than the (required) Freetype 1.x even when statically pointed to the Freetype 1.x libraries. Problem solution: All of the following steps were required to successfully build mapserver in the above environment... 1) Compile GD 1.8.4 and Freetype 1.3.1 to local directories. 2) In the .login, add: # Added for mapserver purposes: setenv LD_LIBRARY_PATH /path/to/libttf.so.4.0 # End of mapserver additions. (It may also be necessary to establish links to the "lib" directory for files in the "include" directory. If you get errors that say "such-and-such file does not exist", but you know the files do exist in the "include" directory, try establishing a hard or soft link of the same name in the "lib" directory...) 3) Configure mapserver with the following parameters (plus any others you want): ./configure --prefix=/path/to/libraries --with-gd=static,/path/to/libraries --with-freetype=/path/to/freetype --enable-force-freetype1 --enable-runpath --with-proj --with-tiff 4) Edit the resulting mapserver Makefile as follows: # These originally pointed to root-only system directories. # Change them to your local installation directories. LIB_INSTALL=/usr/home/gisweb/local/lib/ HEADER_INSTALL=/usr/home/gisweb/local/include/mapserver-3.5/ # Proj.4 distribution (cartographic projection routines). #PROJ_INC <-- originally blank. Needed the reference as shown on line below. PROJ_INC=-I/usr/local/include PROJ_LIB= -lproj PROJ= -DUSE_PROJ -DUSE_PROJ_API_H # GD distribution (graphics library GIF and/or PNG support). (REQUIRED) # GDFONT_OBJ=gd-1.2/gdfontt.o gd-1.2/gdfonts.o gd-1.2/gdfontmb.o gd-1.2/gdfontl.o gd-1.2/gdfontg.o GD_INC= -I/usr/home/gisweb/local/lib #GD_LIB= -ljpeg -lfreetype -lpng -lz <-- originally refers to -lfreetype. GD_LIB= -lm -lgd -lpng -lz -ljpeg -lttf GD= -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF GD_STATIC = /usr/home/gisweb/local/lib/libgd.a # TIFF distribution (raster support for TIFF and GEOTIFF imagery). (RECOMMENDED) TIFF_INC= #TIFF_LIB= -ltiff -ljpeg -lpng -lz -lfreetype <-- originally has -lfreetype TIFF_LIB= -ltiff -ljpeg -lpng -lz -lttf TIFF= -DUSE_TIFF 5) From the mapserver-3.6.1 directory containing the modified Makefile, type: make install make 6) Typing "./mapserv -v" should return the following (Note "SUPPORTS=TTF"): MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE These steps eliminated the problem of the incorrect True Type angles when using the ANGLE AUTO parameter in a LABEL object. Best of luck, Jonathan Lowe Quoting Xisco Guaita : > Hi, > > I'm working with street maps. But I've problems with the angle labels of the > street line layer. > > The result.png attached file is a example of this. The street's center lines > have been drawn to show the differences between label and line angles. > > I've builded a shapefile for testing purpose. It has a field with angles > from 0? to 345? in steps of 15?. > > Here's the mapfile layer: > > LAYER > NAME labels > TYPE point > DATA "theme1" > status on > LABELcache off > labelangleitem angle #angles from 0? to 345? step 15? > CLASS > text "--------------------" > LABEL > TYPE truetype > FONT Lucida > COLOR 75 75 75 > POSITION CR > SIZE 12 > END > END > END > > and the 360.png attached file is the resulting image. There are some angles > draw incorrectly. Is a problem of graphics libraries? Has anyone had the > same problem, and has you found any solution? > > I'm using PHPMapscript 3.6.1, libgd 1.8.4, freetype 2.0, php 4.1.2 > > Thanks in advance, > Xisco Guaita > From john.bennett at noetix.on.ca Thu Sep 26 14:20:49 2002 From: john.bennett at noetix.on.ca (John Bennett) Date: Thu, 26 Sep 2002 17:20:49 -0400 Subject: [mapserver-users] Scale, extent Message-ID: Hi folks I'm still new to this, so another simple question. I have a shapefile in Decimal degrees defined in the map file. I define the EXTENT, UNITS and SCALE of the MAP. I'm not quite sure how to define the SCALE correctly. Right now when I display the shapefile of the provinces of Canada, if I query 'click' on Manitoba, it comes back with Saskatchewan. Therefore everything appears to be shifted over. Any idea? John SCALE is defined as: SCALE [double] Computed scale of the map. Set most often by the application. From steve.lime at dnr.state.mn.us Thu Sep 26 20:11:16 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 26 Sep 2002 22:11:16 -0500 Subject: [mapserver-users] Release of MS 3.7 ? Message-ID: Hi Tom: If everyone (especially me) would wrap up changes we'd be looking at the end of October, with a usable nightly build well before then. I'm not sure that's realistic though. I'll take this to the developers list to see if we can agree on a target date. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Tom Cadman" 09/26/02 07:44 AM >>> Hello everbody. Is there a tentative release date for Mapserve version 3.7 ? Thanks From james at danisat.net Fri Sep 27 01:30:09 2002 From: james at danisat.net (James Anderson) Date: Fri, 27 Sep 2002 10:30:09 +0200 Subject: [mapserver-users] Problems with labels Message-ID: <00b201c26600$1ceafab0$0b220a0a@beast> Hi, I am a Mapserver Newbie. I have a mapinfo map with text labels. I have exported the mapinfo.tab file to shape files. I get a files like lt_text.shp and lt_polyline.shp When I display the lt_polyline.shp in mapserver it displays fine. I use the line type. When I display the lt_text.shp in mapserver it draws points where the text would be. I am using the point type. I need to be able to get mapserver to actually display the text labels. How can I do this ?? I have tried various types for the text shp file, but it either does not display the text or it makes an error and does not diplay the map. The dbf file that is alongside the shp file has all the labels in it. Can anyone help ?? Thanks, James. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Sep 27 04:58:04 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 27 Sep 2002 07:58:04 -0400 Subject: [mapserver-users] Problems with labels In-Reply-To: <00b201c26600$1ceafab0$0b220a0a@beast> Message-ID: <3D940F8C.24614.3310BFE8@localhost> James, You can do one of two things to get labels. 1) if you want the point marker and the label then leave the TYPE as POINT but you need to add LABELITEM "dbf field name" to the LAYER and add a LABEL block to your CLASS block inside the LAYER block. 2) if you only want the label and not the point mark, then declare the TYPE as ANNOTATION and do the same as above. -Steve On 27 Sep 2002 at 10:30, James Anderson wrote: > > > Hi, > > I am a Mapserver Newbie. I have a mapinfo map with text labels. I have > exported the mapinfo.tab file to shape files. I get a files like > lt_text.shp and lt_polyline.shp > > When I display the lt_polyline.shp in mapserver it displays fine. I > use the line type. When I display the lt_text.shp in mapserver it > draws points where the text would be. I am using the point type. > > I need to be able to get mapserver to actually display the text > labels. How can I do this ?? I have tried various types for the > text shp file, but it either does not display the text or it makes an > error and does not diplay the map.The dbf file that is alongside the > shp file has all the labels in it. Can anyone help ?? > > Thanks, > > James. > From lucaa at rc.unesp.br Fri Sep 27 05:37:48 2002 From: lucaa at rc.unesp.br (Luciano Alejandro) Date: Fri, 27 Sep 2002 09:37:48 -0300 Subject: [mapserver-users] Template Message-ID: <3D94511C.8F18D483@rc.unesp.br> I?m having problems with the template file. Can anyone send a basic template file for me to analise? Thanks. From jacquin at geosys-inc.com Fri Sep 27 05:46:02 2002 From: jacquin at geosys-inc.com (Marc Jacquin) Date: Fri, 27 Sep 2002 14:46:02 +0200 Subject: [mapserver-users] JPEG Error... In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A5353010ABDFC@postoffice.GASAI.Com> Message-ID: Chip, This means that your JPEG lib has been compiled with a different structure member alignment than MapServer CGI. On MS Windows it's better to set this compiler parameter to 1 byte in Project Settings->C/C++->Code Generation. By default it's 8 bytes. HTH Marc -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Hankley, Chip Sent: mardi 24 septembre 2002 18:29 To: MapServer List (E-mail) Subject: [mapserver-users] JPEG Error... I'm getting the following error: JPEG parameter struct mismatch: library thinks size is 432, caller expects 464 When trying to load a JPEG image. I saw a post on this a month ago... but no responses. Anyone know what this means? I get it w/ CGI or PHP MapScript. Windows 2000 / IIS. If appropriate...let me know and I file a bug. My MapServer.exe: MapServer version 3.6.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My MapScript: MapScript Version ($Revision: 1.104.2.4 $ $Date: 2002/07/08 20:04:58 $) MapServer version 3.6.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Chip Hankley From jacquin at geosys-inc.com Fri Sep 27 06:06:58 2002 From: jacquin at geosys-inc.com (Marc Jacquin) Date: Fri, 27 Sep 2002 15:06:58 +0200 Subject: [mapserver-users] JPEG Error... In-Reply-To: Message-ID: This is of course in Visual C++. You can also set up this parameter with the /Zp1 option of the compiler. -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Marc Jacquin Sent: vendredi 27 septembre 2002 14:46 To: MapServer List (E-mail) Subject: RE: [mapserver-users] JPEG Error... Chip, This means that your JPEG lib has been compiled with a different structure member alignment than MapServer CGI. On MS Windows it's better to set this compiler parameter to 1 byte in Project Settings->C/C++->Code Generation. By default it's 8 bytes. HTH Marc -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Hankley, Chip Sent: mardi 24 septembre 2002 18:29 To: MapServer List (E-mail) Subject: [mapserver-users] JPEG Error... I'm getting the following error: JPEG parameter struct mismatch: library thinks size is 432, caller expects 464 When trying to load a JPEG image. I saw a post on this a month ago... but no responses. Anyone know what this means? I get it w/ CGI or PHP MapScript. Windows 2000 / IIS. If appropriate...let me know and I file a bug. My MapServer.exe: MapServer version 3.6.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My MapScript: MapScript Version ($Revision: 1.104.2.4 $ $Date: 2002/07/08 20:04:58 $) MapServer version 3.6.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Chip Hankley From nospam at cnrit.tamu.edu Fri Sep 27 06:28:54 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Fri, 27 Sep 2002 08:28:54 -0500 Subject: Antwort: [mapserver-users] msQueryByPoint(): Search returned no results References: Message-ID: <3D945D16.5040404@cnrit.tamu.edu> Thank you two very much for the response, but I have tried this just now and it doesn't change a thing. If anybody's curious to see the page an view what I'm talking about it can be found at: http://cnrit.tamu.edu/maps/map_init.html When you get to that page, click on the very bottom button...the one that says "(FRAMES VERSION)" on it. And yes, I'm running mapserver in a "frames" web page, but I'm not using mapscript, just the regular CGI binary. I AM, however, using plenty of Javascript to control my page and that may be where the problem lies. I'm just trying to figure out what I'm not setting properly that's killing my querying ability! Thanks for the help! Gunter.Rieth at stadt.mainz.de wrote: > > How about setting STATUS off to STATUS ON or DEFAULT ??? > > > Gunter > > > > > Mike Smith > Gesendet von: owner-mapserver-users at lists.gis.umn.edu > > 26.09.2002 20:48 > > > An: mapserver-users at lists.gis.umn.edu > Kopie: > Thema: [mapserver-users] msQueryByPoint(): Search > returned no results > > > > > Can somebody please enlighten me as to all the pieces required in order > to make a query happen? I've got one simple mapserver page that allows > queries, but my more advanced page gives me the following error every > time I try to query (or "nquery") anything: > > msQueryByPoint(): Search returned no results. No matching record(s) found > > I've got the following code in my map file: > > # Web Object > WEB > HEADER 'frames_header.html' > TEMPLATE 'frames.html' > FOOTER 'frames_footer.html' > . > . > . > END > > # Query Map Object > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE HILITE > COLOR 51 102 255 > END > > # Layer I'm trying to query > LAYER > NAME "Ethiopia_Adminlevel1" > TYPE Polygon > STATUS off > GROUP Ethiopia > DATA "ethiopia_adminlevel1" > LABELITEM 'Name' > HEADER 'ethiopia_adminlevel1_header.html' > FOOTER 'ethiopia_adminlevel1_footer.html' > TOLERANCEUNITS kilometers > TOLERANCE 5 > DUMP TRUE > CLASSITEM 'Name' > CLASS > EXPRESSION 'Addis Ababa' > COLOR 210 210 210 > OUTLINECOLOR 0 0 0 > TEMPLATE 'ethiopia_adminlevel1_query.html' > END # CLASS > . > . > . > END > > All the header, footer, and query HTML files exist and have good > variables in them based on what's actually in my shape files, the shapes > show up fine in my map, but I cannot query ANYTHING! Any ideas?! > > Thanks in advance! > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sig at manobi.sn Fri Sep 27 07:07:59 2002 From: sig at manobi.sn (David Boggio) Date: Fri, 27 Sep 2002 14:07:59 -0000 Subject: Antwort: [mapserver-users] msQueryByPoint(): Search returned no results In-Reply-To: <3D945D16.5040404@cnrit.tamu.edu> Message-ID: <001c01c2662f$48d2dd30$b101000a@David> Hi Mike, I think the problem is in your map file, because the query occures, and returns no result. You should try to set up a very simple map file, and see if your query works. Something like this is very basic and should work : LAYER NAME "Ethiopia_Adminlevel1" TYPE POLYGON STATUS ON DATA "ethiopia_adminlevel1" CLASS NAME "Ethiopia" OUTLINECOLOR 128 0 0 TEMPLATE "ethiopia_adminlevel1_query.html" END HEADER 'ethiopia_adminlevel1_header.html' FOOTER 'ethiopia_adminlevel1_footer.html' TOLERANCE 5 END What happens then? David Boggio -----Message d'origine----- De : Mike Smith [mailto:nospam at cnrit.tamu.edu] Envoy? : vendredi 27 septembre 2002 13:29 ? : Gunter.Rieth at stadt.mainz.de; sig at manobi.sn Cc : mapserver-users at lists.gis.umn.edu Objet : Re: Antwort: [mapserver-users] msQueryByPoint(): Search returned no results Thank you two very much for the response, but I have tried this just now and it doesn't change a thing. If anybody's curious to see the page an view what I'm talking about it can be found at: HYPERLINK "http://cnrit.tamu.edu/maps/map_init.html"http://cnrit.tamu.edu/maps/map _init.html When you get to that page, click on the very bottom button...the one that says "(FRAMES VERSION)" on it. And yes, I'm running mapserver in a "frames" web page, but I'm not using mapscript, just the regular CGI binary. I AM, however, using plenty of Javascript to control my page and that may be where the problem lies. I'm just trying to figure out what I'm not setting properly that's killing my querying ability! Thanks for the help! HYPERLINK "mailto:Gunter.Rieth at stadt.mainz.de"Gunter.Rieth at stadt.mainz.de wrote: How about setting STATUS off to STATUS ON or DEFAULT ??? Gunter Mike Smith HYPERLINK "mailto:nospam at cnrit.tamu.edu" Gesendet von: HYPERLINK "mailto:owner-mapserver-users at lists.gis.umn.edu"owner-mapserver-users at li sts.gis.umn.edu 26.09.2002 20:48 An: mapserver-users at lists.gis.umn.edu Kopie: Thema: [mapserver-users] msQueryByPoint(): Search returned no results Can somebody please enlighten me as to all the pieces required in order to make a query happen? I've got one simple mapserver page that allows queries, but my more advanced page gives me the following error every time I try to query (or "nquery") anything: msQueryByPoint(): Search returned no results. No matching record(s) found I've got the following code in my map file: # Web Object WEB HEADER 'frames_header.html' TEMPLATE 'frames.html' FOOTER 'frames_footer.html' . . . END # Query Map Object QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 51 102 255 END # Layer I'm trying to query LAYER NAME "Ethiopia_Adminlevel1" TYPE Polygon STATUS off GROUP Ethiopia DATA "ethiopia_adminlevel1" LABELITEM 'Name' HEADER 'ethiopia_adminlevel1_header.html' FOOTER 'ethiopia_adminlevel1_footer.html' TOLERANCEUNITS kilometers TOLERANCE 5 DUMP TRUE CLASSITEM 'Name' CLASS EXPRESSION 'Addis Ababa' COLOR 210 210 210 OUTLINECOLOR 0 0 0 TEMPLATE 'ethiopia_adminlevel1_query.html' END # CLASS . . . END All the header, footer, and query HTML files exist and have good variables in them based on what's actually in my shape files, the shapes show up fine in my map, but I cannot query ANYTHING! Any ideas?! Thanks in advance! --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam at cnrit.tamu.edu Fri Sep 27 07:45:06 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Fri, 27 Sep 2002 09:45:06 -0500 Subject: [mapserver-users] Pre-defined Zoom In/Zoom Out buttons... Message-ID: <3D946EF2.6030406@cnrit.tamu.edu> Sorry to bother everyone with this, I know this has been addressed before in the archives, but I can't seem to find it when I search them. I'm trying to enable a Zoom In/Zoom Out bar along side my map (kinda like Mapquest or Yahoo maps) where there are buttons that either zoom the user in or out to pre-determined levels. I've got Javascript code that zooms in and out ok, but the logic is what's throwing me off. I want the bottom button to always be the same view, not zoom them out 15 times from whatever their present view is.... it should zoom them out 15 times from full extent. I want "full extent" to be the base and each button whether it's a zoom in or out button needs to always zoom them to the same factor relative to full extent, not their current view...make sense? I know I've seen a Mapserver page before that had this little zoom bar that I'm describing, but I can't remember where I saw it. Anybody have a web page that does this? Or example code that handles the logic of pre-defined absolute zoom levels (as opposed to the relative ones that the CGI variable "zoom" sets)? Thanks From snchrstnglls at yahoo.com Fri Sep 27 08:02:07 2002 From: snchrstnglls at yahoo.com (Sean Gillies) Date: Fri, 27 Sep 2002 08:02:07 -0700 (PDT) Subject: [mapserver-users] Anyone have a CVS snapshot to share from July 22-Aug 1 2002? Message-ID: <20020927150207.49095.qmail@web21303.mail.yahoo.com> I downloaded the latest nightly and it seems to be broken. There are bus errors with mapserv and all the helper apps. Previously I had been working with the CVS source of July 22 2002 and it had been working fine for me. Now I don't have that code available and am hoping that someone else has saved it and could share it with me. TIA, cheers, Sean Gillies __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From nhv at cape.com Fri Sep 27 08:42:46 2002 From: nhv at cape.com (Norman Vine) Date: Fri, 27 Sep 2002 11:42:46 -0400 Subject: [mapserver-users] Anyone have a CVS snapshot to share from July 22-Aug 1 2002? References: <20020927150207.49095.qmail@web21303.mail.yahoo.com> Message-ID: <01ad01c2663c$88100f60$0100a8c0@sfdev3> Sean Gillies > I downloaded the latest nightly and it seems to be > broken. There are bus errors with mapserv and all > the helper apps. > > Previously I had been working with the CVS source of > July 22 2002 and it had been working fine for me. Now > I don't have that code available and am hoping that > someone else has saved it and could share it with me Follow steps 1-4 from here http://mapserver.gis.umn.edu/cvs.html < use this for step 5 > cvs co -D 2002-07-22 mapserver HTH Norman From pkishor at GeoAnalytics.com Fri Sep 27 09:14:59 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 27 Sep 2002 11:14:59 -0500 Subject: [mapserver-users] Pre-defined Zoom In/Zoom Out buttons... In-Reply-To: <3D946EF2.6030406@cnrit.tamu.edu> Message-ID: <453BD2C6-D234-11D6-84B2-0003936306C2@geoanalytics.com> On Friday, September 27, 2002, at 09:45 AM, Mike Smith wrote: > Sorry to bother everyone with this, I know this has been addressed > before in the archives, but I can't seem to find it when I search > them. > > I'm trying to enable a Zoom In/Zoom Out bar along side my map (kinda > like Mapquest or Yahoo maps) where there are buttons that either zoom > the user in or out to pre-determined levels. I've got Javascript code > that zooms in and out ok, but the logic is what's throwing me off. I > want the bottom button to always be the same view, not zoom them out > 15 times from whatever their present view is.... it should zoom them > out 15 times from full extent. I want "full extent" to be the base > and each button whether it's a zoom in or out button needs to always > zoom them to the same factor relative to full extent, not their > current view...make sense? I know I've seen a Mapserver page before > that had this little zoom bar that I'm describing, but I can't > remember where I saw it. Anybody have a web page that does this? Or > example code that handles the logic of pre-defined absolute zoom > levels (as opposed to the relative ones that the CGI variable "zoom" > sets)? > > Thanks > you need to set the new zoomextent relative to the maxextent (as you correctly surmised above). Here are the steps you would take via mapscripting (dunno about cgi) -- 1. You want to send a point back to the server relative to which you want to zoom (in or out). For example, if the user has already been clicking on the map and managed to navigate her way to some specific section of the map, and now clicks on your zoom bar, you want to zoom relative to the current extent (the user will be very annoyed if you zoom relative to the actual center of the image). On the other hand, if the user has not yet clicked on the map, you want to zoom relative to the actual center of the image. You can determine what the case is by embedding user clicks in hidden form fields... if those form fields are empty then the user hasn't clicked yet, etc. 2. Create your zoombar using a graphic or whatever, and use Javascript to send back a zoomfactor... zooming in will increase the zoomfactor, and vice versa. 3. Use the point you have sent back and the zoomfactor you have sent back to zoom from the max extent. You can easily grab the maxextent using mapscript, or you can even grab it once and then either insert it in session vars or shuttle it back and forth using form vals. pk/ From joe at otsys.com Fri Sep 27 10:45:08 2002 From: joe at otsys.com (Joe Bussell) Date: Fri, 27 Sep 2002 10:45:08 -0700 Subject: [mapserver-users] Pre-defined Zoom In/Zoom Out buttons... In-Reply-To: <3D946EF2.6030406@cnrit.tamu.edu> References: <3D946EF2.6030406@cnrit.tamu.edu> Message-ID: <20020927174507.GA32281@otsys.com> www.TrafficDodger.com has just such a zoom bar. I view it like fliing at different altitudes. The higher you go, the more area you see and you see less detail. I use a zoomLevel variable in my javascript. Each button triggers a call to zoomToLevel with its own arguments. Regular zoomIn and zoomOut increment and decrement this value. I then determine the extent based on some function of the zoomLevel and my full scale range. Cordially, Joe Bussell On Time Systems www.TrafficDodger.com On Fri, Sep 27, 2002 at 09:45:06AM -0500, Mike Smith wrote: > Sorry to bother everyone with this, I know this has been addressed > before in the archives, but I can't seem to find it when I search them. > > I'm trying to enable a Zoom In/Zoom Out bar along side my map (kinda > like Mapquest or Yahoo maps) where there are buttons that either zoom > the user in or out to pre-determined levels. I've got Javascript code > that zooms in and out ok, but the logic is what's throwing me off. I > want the bottom button to always be the same view, not zoom them out 15 > times from whatever their present view is.... it should zoom them out 15 > times from full extent. I want "full extent" to be the base and each > button whether it's a zoom in or out button needs to always zoom them to > the same factor relative to full extent, not their current view...make > sense? I know I've seen a Mapserver page before that had this little > zoom bar that I'm describing, but I can't remember where I saw it. > Anybody have a web page that does this? Or example code that handles > the logic of pre-defined absolute zoom levels (as opposed to the > relative ones that the CGI variable "zoom" sets)? > > Thanks > > -- From nospam at cnrit.tamu.edu Fri Sep 27 11:46:46 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Fri, 27 Sep 2002 13:46:46 -0500 Subject: [mapserver-users] Pre-defined Zoom In/Zoom Out buttons... References: <3D946EF2.6030406@cnrit.tamu.edu> <20020927174507.GA32281@otsys.com> Message-ID: <3D94A796.3000902@cnrit.tamu.edu> I could easily implement a new variable like your "zoomLevel"...I was already thinking that I needed to do that. And I've got a series of little buttons next to my map that make up a zoom bar like yours, and each button (when clicked) makes a call to a javascript function that I've written called "zoomTo". So I've got the framework there, I just can't figure out how to set my imgext based on this zoomLevel factor (relative to my map's maximum extent, not the current zoom level). I'd like to do just what you're doing on your page and have each zoom button present the same imgext and zoom level each time...right now I'm just incrementing the Mapserver variable "zoom" and "zoomsize" and the buttons build on the last zoom, instead of always zooming to a set factor relative to max extent. I don't want to ask you for your proprietary source code, but can you shed any light on what kind of algorithm I might use to determine the new imgext as a function of max extent and zoomLevel? Also, as Puneet pointed out, I will not be overriding the mouse click coordinates with this zoom level, so that the zooming will happen relative to whatever image center the user has already clicked on, and if they haven't clicked anywhere then I'll zoom straight into the centerpoint of my main map. Thanks! Joe Bussell wrote: >www.TrafficDodger.com has just such a zoom bar. I view it like fliing >at different altitudes. The higher you go, the more area you see and >you see less detail. I use a zoomLevel variable in my javascript. Each >button triggers a call to zoomToLevel with its own arguments. Regular >zoomIn and zoomOut increment and decrement this value. I then determine >the extent based on some function of the zoomLevel and my full scale >range. > >Cordially, > >Joe Bussell >On Time Systems >www.TrafficDodger.com > > > >On Fri, Sep 27, 2002 at 09:45:06AM -0500, Mike Smith wrote: > >>Sorry to bother everyone with this, I know this has been addressed >>before in the archives, but I can't seem to find it when I search them. >> >>I'm trying to enable a Zoom In/Zoom Out bar along side my map (kinda >>like Mapquest or Yahoo maps) where there are buttons that either zoom >>the user in or out to pre-determined levels. I've got Javascript code >>that zooms in and out ok, but the logic is what's throwing me off. I >>want the bottom button to always be the same view, not zoom them out 15 >>times from whatever their present view is.... it should zoom them out 15 >>times from full extent. I want "full extent" to be the base and each >>button whether it's a zoom in or out button needs to always zoom them to >>the same factor relative to full extent, not their current view...make >>sense? I know I've seen a Mapserver page before that had this little >>zoom bar that I'm describing, but I can't remember where I saw it. >>Anybody have a web page that does this? Or example code that handles >>the logic of pre-defined absolute zoom levels (as opposed to the >>relative ones that the CGI variable "zoom" sets)? >> >>Thanks >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From f.corsi at pan.bio.uniroma1.it Fri Sep 27 13:49:56 2002 From: f.corsi at pan.bio.uniroma1.it (Fabio Corsi) Date: Fri, 27 Sep 2002 22:49:56 +0200 Subject: [mapserver-users] Oracle spatial support Message-ID: <016501c26667$70cec960$01e8a8c0@ursus> Hi, I have been using Mapserver successfully for a few months using shape files. Now I would like to mode my data into an Oracle server with SDO and use Mapserver to browse the data. The only version of Mapserver I could find with oraclespatial enabled is the one at http://parvillers.homeip.net/mapserver/ (and it is ver. 3.5). I was wondering whether there is precompiled win32 version of Mapserver 3.6.1 with oraclespatial available. I would also appreciate directions to examples, tutorials and/or documentation on how to use Mapserver with Oracle Spatial. Many thanks, Fabio ---------------------------------------------- Fabio Corsi Istituto di Ecologia Applicata Via L.Spallanzani, 32 00161 Roma, ITALIA phone & fax +39 06 4403315 f.corsi at pan.bio.uniroma1.it f.corsi at ieaitaly.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at otsys.com Fri Sep 27 14:55:53 2002 From: joe at otsys.com (Joe Bussell) Date: Fri, 27 Sep 2002 14:55:53 -0700 Subject: [mapserver-users] Pre-defined Zoom In/Zoom Out buttons... In-Reply-To: <3D94A796.3000902@cnrit.tamu.edu> References: <3D946EF2.6030406@cnrit.tamu.edu> <20020927174507.GA32281@otsys.com> <3D94A796.3000902@cnrit.tamu.edu> Message-ID: <20020927215553.GC32281@otsys.com> The beauty of Javascript is that it is by definition open for copiing. I encourage you to steal whatever you map find useful, though I will not defend the style. My idea was to maintain a center position and a level. The extent is then calculated as a function of the two. In my world I have a 6 degree spread in lat and lon. My function for the extent is: deltaDegree = (max delta) / 2^level so at level0 I get 6/2^0 = 6 degrees at level1 I get 6/2^1 = 3 degrees at level2 I get 6/2^2 = 1.5 ... at level10 I get 6/2^10 = 0.005859375 I then add/subtract to get my top, bottom, left, and right values. In truth I am serving raster images with defined scales, so I need to match up the result with the raster image. I have created my rasters with a given size. I need to scale my result to match in case I am presenting an odd shaped image. var span = level0Span/Math.pow(2,zoomLevel) * mapNameExtentHash[ map ].imageSize / rasterImageSize; top = lat + span; bottom = lat - span; left = lon - span; right = lon + span; I have no feeling as to whether this is a good methodology, but it works for me. I am presently carriing around values for the present extent, and am calculating the center point as needed. This seems like the wrong choice, so I am migrating to a center-point & level based state. Cordially, Joe Bussell On Time Systems On Fri, Sep 27, 2002 at 01:46:46PM -0500, Mike Smith wrote: > I could easily implement a new variable like your "zoomLevel"...I was > already thinking that I needed to do that. And I've got a series of > little buttons next to my map that make up a zoom bar like yours, and > each button (when clicked) makes a call to a javascript function that > I've written called "zoomTo". So I've got the framework there, I just > can't figure out how to set my imgext based on this zoomLevel factor > (relative to my map's maximum extent, not the current zoom level). I'd > like to do just what you're doing on your page and have each zoom button > present the same imgext and zoom level each time...right now I'm just > incrementing the Mapserver variable "zoom" and "zoomsize" and the > buttons build on the last zoom, instead of always zooming to a set > factor relative to max extent. I don't want to ask you for your > proprietary source code, but can you shed any light on what kind of > algorithm I might use to determine the new imgext as a function of max > extent and zoomLevel? > > Also, as Puneet pointed out, I will not be overriding the mouse click > coordinates with this zoom level, so that the zooming will happen > relative to whatever image center the user has already clicked on, and > if they haven't clicked anywhere then I'll zoom straight into the > centerpoint of my main map. > > Thanks! > > > > Joe Bussell wrote: > > >www.TrafficDodger.com has just such a zoom bar. I view it like fliing > >at different altitudes. The higher you go, the more area you see and > >you see less detail. I use a zoomLevel variable in my javascript. Each > >button triggers a call to zoomToLevel with its own arguments. Regular > >zoomIn and zoomOut increment and decrement this value. I then determine > >the extent based on some function of the zoomLevel and my full scale > >range. > > > >Cordially, > > > >Joe Bussell > >On Time Systems > >www.TrafficDodger.com > > > > > > > >On Fri, Sep 27, 2002 at 09:45:06AM -0500, Mike Smith wrote: > > > >>Sorry to bother everyone with this, I know this has been addressed > >>before in the archives, but I can't seem to find it when I search them. > >> > >>I'm trying to enable a Zoom In/Zoom Out bar along side my map (kinda > >>like Mapquest or Yahoo maps) where there are buttons that either zoom > >>the user in or out to pre-determined levels. I've got Javascript code > >>that zooms in and out ok, but the logic is what's throwing me off. I > >>want the bottom button to always be the same view, not zoom them out 15 > >>times from whatever their present view is.... it should zoom them out 15 > >>times from full extent. I want "full extent" to be the base and each > >>button whether it's a zoom in or out button needs to always zoom them to > >>the same factor relative to full extent, not their current view...make > >>sense? I know I've seen a Mapserver page before that had this little > >>zoom bar that I'm describing, but I can't remember where I saw it. > >>Anybody have a web page that does this? Or example code that handles > >>the logic of pre-defined absolute zoom levels (as opposed to the > >>relative ones that the CGI variable "zoom" sets)? > >> > >>Thanks > >> > >> > > > -- Cordially, Joe Bussell On Time Systems www.TrafficDodger.com From tesimap at hotmail.com Fri Sep 27 16:41:50 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Sat, 28 Sep 2002 01:41:50 +0200 Subject: [mapserver-users] Two questions Message-ID: Hi, I have just done these things because before I used Mapserever 3.5 precompiled. And font worked correctly. This is sections of my map file where is these things that you wrote me: NAME assi STATUS ON SIZE 600 600 EXTENT 34516.634400379 50299.88405952 67395.339019834 78542.30613897 UNITS meters SCALE 250000 IMAGECOLOR 236 248 203 SHAPEPATH "data" FONTSET "data/fonts.txt" <--- I have created a file with font names that I use LAYER NAME assist TYPE LINE STATUS ON DATA assist TOLERANCE 8 LABELITEM nomevia LABELMAXSCALE 20000 CLASS NAME "Assi Stradali" TEMPLATE "assist.html" COLOR 0 0 100 LABEL COLOR 0 0 0 FONT arial <--- font name that I use TYPE TRUETYPE SIZE 8 ANTIALIAS TRUE POSITION AUTO ANGLE AUTO MINFEATURESIZE 40 MINDISTANCE 100 PARTIALS FALSE BUFFER 3 END #LABEL END # CLASS HEADER "assist_header.html" FOOTER "assist_footer.html" END # LAYER So I think that the problem is freetype or gd... Ivan >From: "Tyler Mitchell" >To: mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] Two questions >Date: Thu, 26 Sep 2002 13:11:47 -0700 > > >At 26-Sep-02 11:58 AM, owner-mapserver-users at lists.gis.umn.edu wrote: > > Hi all, > > I have two questions. > > > > i)I have compiled mapserver 3.5 on Win XP, I think correctly because I > > haven't message error. But when I test mapserv.exe on my project I have >this > > error: > > loadlabel(): Unknown identifier. Keyword FONT is not valid without > > TrueType font support. > > > > But If I change section of truetype font, in map file, with bitmap font >my > > project work correctly. > > So I think that the problem is freetype or gd compiled with freetype,but >I > > didn't have problem when I have compiled these libraries. > > Any idea? > >There are three things that you need to get the truetype fonts working. >This may be in the map file/symbol documentation, but here's my spin. >1) specify FONTSET (I put mine right under the IMAGECOLOR line in the top >of my map file) and point it to a text file lists two things - a font >"name" and the location of the truetype font filename. (i.e. arial.ttf) > >2) In your LABEL Object for the layer you have a line: >FONT >With "name" as in point 1 > >3) Right after that line I put in a line to specify the type of font. I >assume you were missing this. >TYPE truetype > >Does that work for you? I copied the ttf files I wanted into a folder by >the map file. _________________________________________________________________ Chiacchiera con gli amici online, prova MSN Messenger: http://messenger.msn.it From tom_price at yahoo.com Fri Sep 27 19:51:04 2002 From: tom_price at yahoo.com (Tom Price) Date: Fri, 27 Sep 2002 19:51:04 -0700 (PDT) Subject: [mapserver-users] QuerybyPoint blues Message-ID: <20020928025104.33379.qmail@web13804.mail.yahoo.com> Does anyone have a simple example of a querybypoint using phpMapscript? I've got the GMAP75 example, I've added a "TEMPLATE void" to the LAYER in the ".MAP" file as suggested in a prior post. I've also added what I think are the right "RESULT_FIELDS" metadata tags in the same layer level. Using one layer with multiple classes from a real simple Tiger shape file. Getting the infamous "MapServer Error in msQueryByPoint(): No matching record(s) found" even though it should find it. Any help is appreciated! --------------------------------- Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From pucher at atlas.gis.univie.ac.at Sat Sep 28 04:47:56 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Sat, 28 Sep 2002 13:47:56 +0200 Subject: [mapserver-users] POSTGIS parse error Message-ID: <3D9596EC.6090103@atlas.gis.univie.ac.at> Hi, for some strange reason, mapserver fails to select data from my local PostgreSQL DB with this error: * Warning*: MapServer Error in msPOSTGISLayerOpen(): Error parsing POSTGIS connection information This was already posted on the list about a year ago, but with no real conclusion. Dave Blasby wrote back then: The message occurs if the postgresql client library returns a "CONNECTION_BAD" when it tries to open a connection. I have to add that everything used to work on my machine without problems until yesterday.... Did anyone come across this problem recently? Any suggestions? Regards, alex -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From alex_rice at arc.to Sat Sep 28 10:18:38 2002 From: alex_rice at arc.to (Alex Rice) Date: Sat, 28 Sep 2002 11:18:38 -0600 Subject: [mapserver-users] Re: [mapserver-dev] zoom box in JavaScript (not Java) Message-ID: [reposting on mapserver-users, -dev is for mapserver internals discussion -- alex] On Friday, September 27, 2002, at 12:39 PM, Brent Fraser wrote: > Hey, > ? > ? Does anyone know how http://kei.kodak.com/HTMLMap.asp?can use > JavaScript to do a zoom box? > ? > I thought JavaScript was too limited draw lines on an image and we > were stuck using Java. > ? > I'm jealous. Nope, javascript can be used. However it's heavy on the CSS and DHTML stuff-- you might run into browser compatibility issues. No more so than trying to run a Java applet though. I've been playing around with some free Javascript I found at esri.com. But haven't been able to make it do exactly what I want it to do. It seems to want to be in a frameset with all drawing starting at 0,0. It would be great if mapserver came with some HTML templates and javascript helper functions like this! Here is the readme ""ZoomBox What is it? This is a sample of the ZoomBox used in the ArcIMS HTML Viewer. This sample contains the functions used to create and manipulate the "rubberband" box on the map display. Some of these functions have been stripped of any additional routines or variables not needed for demonstrating the ZoomBox capabilities. How to start it: Load ZoomBox.htm in a browser (version 4 or newer). Press down on the left mouse button and drag (move the mouse with the button pressed). The ZoomBox should appear and the box coordinates will display in the Status Bar. Let up on the button and the ZoomBox will disappear."" See HTML ZoomBox Demo @ http://support.esri.com/products/downloads/default.asp?p=6 Alex Rice, Software Developer Architectural Research Consultants, Inc. alrice at swcp.com alex_rice at arc.to From dbarron at ddive.com Sat Sep 28 14:37:48 2002 From: dbarron at ddive.com (Dan Barron) Date: Sat, 28 Sep 2002 14:37:48 -0700 Subject: [mapserver-users] zoom box in JavaScript (not Java) In-Reply-To: Message-ID: <5.1.0.14.0.20020928140758.034fc6b8@chinahat.ddive.com> The javascript to do this is really pretty straight forward. In a nutshell this is all you should need to know.
...//inputs for you map interface form // some input gifs arranged nicely like the stack you see in the kodak page ...//the rest of your input fields for your map interface form
now each time you press a zoom image, the value of the hidden input named "Zoom" will change to the desired zoom level and gets passed to the form action. I'm sure there are other more creative ways to make this happen too. Our map interface is entirely done in javascript w/ a flash zoom factor bar - you can view it at www.destinationdive.com - login to the demo account, go to the dive sites menu and select "Interactive Map Interface". Dan At 11:18 AM 9/28/2002 -0600, Alex Rice wrote: >[reposting on mapserver-users, -dev is for mapserver internals discussion >-- alex] > >On Friday, September 27, 2002, at 12:39 PM, Brent Fraser wrote: > >>Hey, >> >> Does anyone know how http://kei.kodak.com/HTMLMap.asp can use >> JavaScript to do a zoom box? >> >>I thought JavaScript was too limited draw lines on an image and we were >>stuck using Java. >> >>I'm jealous. > >Nope, javascript can be used. However it's heavy on the CSS and DHTML >stuff-- you might run into browser compatibility issues. No more so than >trying to run a Java applet though. > >I've been playing around with some free Javascript I found at esri.com. >But haven't been able to make it do exactly what I want it to do. It >seems to want to be in a frameset with all drawing starting at 0,0. It >would be great if mapserver came with some HTML templates and javascript >helper functions like this! > >Here is the readme > >""ZoomBox > >What is it? >This is a sample of the ZoomBox used in the ArcIMS HTML Viewer. >This sample contains the functions used to create and manipulate >the "rubberband" box on the map display. Some of these functions >have been stripped of any additional routines or variables not >needed for demonstrating the ZoomBox capabilities. > >How to start it: >Load ZoomBox.htm in a browser (version 4 or newer). Press down on >the left mouse button and drag (move the mouse with the button >pressed). The ZoomBox should appear and the box coordinates will >display in the Status Bar. Let up on the button and the ZoomBox >will disappear."" > >See HTML ZoomBox Demo @ >http://support.esri.com/products/downloads/default.asp?p=6 > > > >Alex Rice, Software Developer >Architectural Research Consultants, Inc. >alrice at swcp.com >alex_rice at arc.to From gary at imapping.co.nz Sat Sep 28 14:52:09 2002 From: gary at imapping.co.nz (Gary Nicholson) Date: Sun, 29 Sep 2002 09:52:09 +1200 Subject: [mapserver-users] Re: [mapserver-dev] zoom box in JavaScript (not Java) Message-ID: <200209282152.g8SLq9P08866@tanooka.freeparking.co.nz> Hi, I've developed my own DHTML map viewer which although not directly compatable with mapserver can be used with the WMS connector. It includes zoom boxes so feel free to look at the javascript code to see what I've done. They also are in framesets with the drawing origin at 0,0. It is a lot easier to make it work across browers like that. It can be tricky to find the origin of the map if it isn't hardcoded but not impossible. See my viewer in action at: http://www.wherearewe.co.nz/newzealand.html Cheers Gary Nicholson On Sunday, September 29, 2002, at 05:18 AM, Alex Rice wrote: [reposting on mapserver-users, -dev is for mapserver internals discussion -- alex] On Friday, September 27, 2002, at 12:39 PM, Brent Fraser wrote: Hey, ? ? Does anyone know how http://kei.kodak.com/HTMLMap.asp?can use JavaScript to do a zoom box?I thought JavaScript was too limited draw lines on an image and we were stuck using Java. ? I'm jealous. Nope, javascript can be used. However it's heavy on the CSS and DHTML stuff-- you might run into browser compatibility issues. No more so than trying to run a Java applet though. I've been playing around with some free Javascript I found at esri.com. But haven't b een able to make it do exactly what I want it to do. It seems to want to be in a frameset with all drawing starting at 0,0. It would be great if mapserver came with some HTML templates and javascript helper functions like this! Here is the readme ""ZoomBox What is it? This is a sample of the ZoomBox used in the ArcIMS HTML Viewer. This sample contains the functions used to create and manipulate the "rubberband" box on the map display. Some of these functions have been stripped of any additional routines or variables not needed for demonstrating the ZoomBox capabilities. How to start it: Load ZoomBox.htm in a browser (version 4 or newer). Press down on the left mouse button a n d drag (move the mouse with the button pressed). The ZoomBox should appear and the box coordinates will display in the Status Bar. Let up on the b utton and the ZoomBox will disappear."" See HTML ZoomBox Demo @ http://support.esri.com/products/downloads/default.asp?p=6 A lex Rice, Software Developer Architectural R esearch Consultants, Inc. alrice at swcp.com alex_rice at arc.to gary at imapping.co.nz www.imapping.co.nz creaters of www.wherearewe.co.nz From alex_rice at arc.to Sun Sep 29 08:34:05 2002 From: alex_rice at arc.to (Alex Rice) Date: Sun, 29 Sep 2002 09:34:05 -0600 Subject: [mapserver-users] zoom box in JavaScript (not Java) In-Reply-To: <5.1.0.14.0.20020928140758.034fc6b8@chinahat.ddive.com> Message-ID: On Saturday, September 28, 2002, at 03:37 PM, Dan Barron wrote: > The javascript to do this is really pretty straight forward. In a > nutshell this is all you should need to know. > This is something different- I think the question was about how to draw a zoombox, also called "rubber band" box. Where you click and drag to create the new extent you want to zoom to. Alex Rice, Software Developer Architectural Research Consultants, Inc. alrice at swcp.com alex_rice at arc.to From dbarron at ddive.com Sun Sep 29 09:00:39 2002 From: dbarron at ddive.com (Dan Barron) Date: Sun, 29 Sep 2002 09:00:39 -0700 Subject: [mapserver-users] zoom box in JavaScript (not Java) In-Reply-To: References: <5.1.0.14.0.20020928140758.034fc6b8@chinahat.ddive.com> Message-ID: <5.1.0.14.0.20020929090015.035313f0@chinahat.ddive.com> At 09:34 AM 9/29/2002 -0600, Alex Rice wrote: >On Saturday, September 28, 2002, at 03:37 PM, Dan Barron wrote: > >>The javascript to do this is really pretty straight forward. In a >>nutshell this is all you should need to know. > >This is something different- I think the question was about how to draw a >zoombox, also called "rubber band" box. Where you click and drag to create >the new extent you want to zoom to. Yes. I misread the post - my bad. From bjoern at lih.rwth-aachen.de Sun Sep 29 11:14:29 2002 From: bjoern at lih.rwth-aachen.de (bjoern at lih.rwth-aachen.de) Date: Sun, 29 Sep 2002 20:14:29 +0200 Subject: [mapserver-users] tiled ArcInfo coverages Message-ID: <6d5b4e78.4e786d5b@post.rwth-aachen.de> Hi all, can anyone tell me how to use tiled ArcInfo coverages with mapserver? I succeeded in using shapefile-tiles and I succeeded in using a single coverage via OGR but I didn't succeed in using tiled coverages so far. Any ideas or examples? Thanks in advance Bj?rn From lists.ahaigh at dsl.pipex.com Sun Sep 29 11:17:24 2002 From: lists.ahaigh at dsl.pipex.com (Andrew Haigh) Date: 29 Sep 2002 19:17:24 +0100 Subject: [mapserver-users] zoom box in JavaScript (not Java) In-Reply-To: References: Message-ID: <1033323445.2944.13.camel@uluru.internal.spudoofer.net> I'm not sure if this will work or not but try something this: 1. Place the map image tag in a
. (Make the dive the same size as the image) 2. Modify the ESRI code, so it doesn't use frames (although it might be easier to rewrite it - I think). 3. Get the user to draw the drag box, when the user has finished, you've got the mouse start and end co-ordinates. 4. Get the location of the div "mapdiv" using the getElementByID javascript function, to get a handle on the div and then read its X and Y values. I'll give it a try, when I get a chance. Let me know how you get on if you try it. This code will only work for IE6+ and NN6+ (I think) although I've lost my JavaScript book! Andrew On Sun, 2002-09-29 at 16:34, Alex Rice wrote: > > On Saturday, September 28, 2002, at 03:37 PM, Dan Barron wrote: > > > The javascript to do this is really pretty straight forward. In a > > nutshell this is all you should need to know. > > > > This is something different- I think the question was about how to draw > a zoombox, also called "rubber band" box. Where you click and drag to > create the new extent you want to zoom to. > > > Alex Rice, Software Developer > Architectural Research Consultants, Inc. > alrice at swcp.com > alex_rice at arc.to > -- -- "Imagination is more important than knowledge." From morissette at dmsolutions.ca Sun Sep 29 11:41:25 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sun, 29 Sep 2002 14:41:25 -0400 Subject: [mapserver-users] tiled ArcInfo coverages References: <6d5b4e78.4e786d5b@post.rwth-aachen.de> Message-ID: <3D974955.E866B0AF@dmsolutions.ca> bjoern at lih.rwth-aachen.de wrote: > > can anyone tell me how to use tiled ArcInfo coverages with > mapserver? > I succeeded in using shapefile-tiles and I succeeded in using a > single > coverage via OGR but I didn't succeed in using tiled > coverages so far. > See the instructions in section "TILEINDEX with OGR" in http://mapserver.gis.umn.edu/doc36/ogr-howto.html#tileindex -- ------------------------------------------------------------ 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 John.Hockaday at ga.gov.au Sun Sep 29 16:52:45 2002 From: John.Hockaday at ga.gov.au (Hockaday John) Date: Mon, 30 Sep 2002 09:52:45 +1000 Subject: [mapserver-users] zoom box in JavaScript (not Java) Message-ID: Hi Brent, I think that I have something like what you are asking for. Please look at the URL http://www.auslig.gov.au/servlet/asdd_power and click on the image of Australia. This will pop up in another window a simple mapserver implementation. You can drag a box on the map image and this will cause mapserver to roughly zoom into the dragged box area. Note that a blue box indicates the actual dragged box area and the map is a fixed image size of 300 by 300 pixels. That is why I say "roughly". The JavaScript code is a bit slapped together for this interface but if you use it I would greatly appreciate it if you would send me the tidied up/optimised version of the JavaScript. I intended on looking into importing the zoom box JavaScript code from a file that can be used by many interfaces but of course I haven't got around to that yet. (Prototypes always seem to just stay prototypes) ;--) I hope that this helps. John > -----Original Message----- > From: Andrew Haigh [mailto:lists.ahaigh at dsl.pipex.com] > Sent: Monday, 30 September 2002 4:17 > Cc: Dan Barron; MapServer Mailing List > Subject: Re: [mapserver-users] zoom box in JavaScript (not Java) > > > I'm not sure if this will work or not but try something this: > > 1. Place the map image tag in a
. (Make the dive > the same size as the image) > 2. Modify the ESRI code, so it doesn't use frames (although > it might be > easier to rewrite it - I think). > 3. Get the user to draw the drag box, when the user has > finished, you've > got the mouse start and end co-ordinates. > 4. Get the location of the div "mapdiv" using the getElementByID > javascript function, to get a handle on the div and then read > its X and > Y values. > > I'll give it a try, when I get a chance. > > Let me know how you get on if you try it. > > This code will only work for IE6+ and NN6+ (I think) although > I've lost > my JavaScript book! > > Andrew > > On Sun, 2002-09-29 at 16:34, Alex Rice wrote: > > > > On Saturday, September 28, 2002, at 03:37 PM, Dan Barron wrote: > > > > > The javascript to do this is really pretty straight > forward. In a > > > nutshell this is all you should need to know. > > > > > > > This is something different- I think the question was about > how to draw > > a zoombox, also called "rubber band" box. Where you click > and drag to > > create the new extent you want to zoom to. > > > > > > Alex Rice, Software Developer > > Architectural Research Consultants, Inc. > > alrice at swcp.com > > alex_rice at arc.to > > > -- > -- > > "Imagination is more important than knowledge." > > From pkishor at GeoAnalytics.com Sun Sep 29 20:50:57 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sun, 29 Sep 2002 22:50:57 -0500 Subject: [mapserver-users] zoom box in JavaScript (not Java) In-Reply-To: <5.1.0.14.0.20020928140758.034fc6b8@chinahat.ddive.com> Message-ID: I replied to this earlier, and accidently posted it to the mapserver dev list. First, here is the original reply from me... === Javascript works fine... it doesn't really draw, it reveals and hides different layers. I have had this working for a while now, but have only recently been able to obtain permission from the client to open it up for list consumption. I will be posting the url early next week for list folks to see the application (have to obfuscate some of the client-specific data for privacy reasons ;-) ), and slowly after that I will start posting snippets from the application itself. just a few days more. thanks. pk/ ps. the only downside is the zoombox in its current incarnation works reliably only in IE (both on Macs and Win). It also does work in Chimera and in Mozilla, but not reliably. I would need to do some work to make it compatible, but no time. Hopefully, once I post the code, someone else can make it work with other browsers and post it back. === second, here is a temp url showing this kind of functionality. http://209.83.8.226/bims/index.pl This is a simple, perl mapscript driven prototype. Only zoomin, zoomout, and zoomall are functional, but enough to show the zoombox working in a non-frames page. Sometime later this week I will post the url for a more elaborate application in php mapscript that does some of the same tricks. keep in mind... the above will work only with IE (on any platform) at this time. pk/ > At 11:18 AM 9/28/2002 -0600, Alex Rice wrote: >> [reposting on mapserver-users, -dev is for mapserver internals >> discussion -- alex] >> >> On Friday, September 27, 2002, at 12:39 PM, Brent Fraser wrote: >> >>> Hey, >>> >>> Does anyone know how http://kei.kodak.com/HTMLMap.asp can use >>> JavaScript to do a zoom box? >>> >>> I thought JavaScript was too limited draw lines on an image and we >>> were stuck using Java. >>> >>> I'm jealous. >> >> Nope, javascript can be used. However it's heavy on the CSS and DHTML >> stuff-- you might run into browser compatibility issues. No more so >> than trying to run a Java applet though. >> >> I've been playing around with some free Javascript I found at >> esri.com. But haven't been able to make it do exactly what I want it >> to do. It seems to want to be in a frameset with all drawing starting >> at 0,0. It would be great if mapserver came with some HTML templates >> and javascript helper functions like this! From pradeepkumar at infotech.stph.net Sun Sep 29 21:52:19 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Mon, 30 Sep 2002 10:22:19 +0530 Subject: [mapserver-users] MapServer Project Workspace Help Needed. Message-ID: Hello Mapserver Users, Good Morning! I would like to know if some one has compiled MapServer by creating a project workspace (.dsw/.dsp)using VC++ 6 . Any help to guide me to create a project workspace for MapServer will be appreciated and it would drastically reduce the Uptime of Mapserver for a newbie MapServer Enthusiast. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thaechl at geo.unizh.ch Mon Sep 30 01:07:08 2002 From: thaechl at geo.unizh.ch (Thomas Haechler) Date: 30 Sep 2002 10:07:08 +0200 Subject: [mapserver-users] POSTGIS parse error References: <3D9596EC.6090103@atlas.gis.univie.ac.at> Message-ID: <3D98062C.56753E9A@geo.unizh.ch> Hi Alex I recently had exactly the same problem. Did you perhaps restart your database server and forgot to allow TCP/IP connections, i.e. forgot to use the -i option when starting postmaster? You can find the posting here: http://mapserver.gis.umn.edu/wilma/mapserver-users/0208/msg00091.html Read also Tyler's note on this: http://mapserver.gis.umn.edu/wilma/mapserver-users/0208/msg00093.html Btw, I have made very good experiences with the new version of mappostgis.c from the 3.7 version, where you get much more detailed error messages. See: http://mapserver.gis.umn.edu/wilma/mapserver-users/0209/msg00300.html Hope this helps you, Thomy Alexander Pucher wrote: > > Hi, > > for some strange reason, mapserver fails to select data from my local > PostgreSQL DB with this error: > * > Warning*: MapServer Error in msPOSTGISLayerOpen(): Error parsing POSTGIS > connection information > > This was already posted on the list about a year ago, but with no real > conclusion. > > Dave Blasby wrote back then: > > The message occurs if the postgresql client > library returns a > "CONNECTION_BAD" when it tries to open a connection. > > I have to add that everything used to work on my machine without > problems until yesterday.... > > Did anyone come across this problem recently? > > Any suggestions? > > Regards, > alex > > -- > ________________________________________________________ > > Institut fuer Geographie und Regionalforschung > Universitaet Wien > Kartografie und Geoinformation > > Departement of Geography and Regional Research > University of Vienna > Cartography and GIS > > Universitaetstr. 7, A-1010 Wien, AUSTRIA > > Tel: (+43 1) 4277 48644 > Fax: (+43 1) 4277 48649 > E-mail: alexander.pucher at univie.ac.at > > FTP: ftp://ftp.gis.univie.ac.at > WWW: http://www.gis.univie.ac.at/karto > -------------------------------------------------------- > Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at > -------------------------------------------------------- > > M$ is not the answer. M$ is the question! > No is the answer -- Eric Naggum -- THOMAS HAECHLER Geographic Information Systems Division Institute of Geography University of Zurich Switzerland thomas.haechler at geo.unizh.ch From pucher at atlas.gis.univie.ac.at Mon Sep 30 02:42:21 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Mon, 30 Sep 2002 11:42:21 +0200 Subject: [mapserver-users] POSTGIS parse error References: <3D9596EC.6090103@atlas.gis.univie.ac.at> <3D98062C.56753E9A@geo.unizh.ch> Message-ID: <3D981C7D.4060106@atlas.gis.univie.ac.at> Hi Thomas, Thomas Haechler wrote: >Hi Alex > >I recently had exactly the same problem. Did you perhaps restart your >database server and forgot to allow TCP/IP connections, i.e. forgot to >use the -i option when starting postmaster? > Well, I restart it on a regular basis, since it runs on my personal laptop ;-) To answer your question, no, I didn't forget to include the -i option, everything runs as normal. >You can find the posting here: >http://mapserver.gis.umn.edu/wilma/mapserver-users/0208/msg00091.html > >Read also Tyler's note on this: >http://mapserver.gis.umn.edu/wilma/mapserver-users/0208/msg00093.html > >Btw, I have made very good experiences with the new version of >mappostgis.c from the 3.7 version, where you get much more detailed >error messages. See: >http://mapserver.gis.umn.edu/wilma/mapserver-users/0209/msg00300.html > >Hope this helps you, > Thanks for that. It managed to get it running again by adding the password=xxxx to the CONNECTION line in my mapfile. But to be honets, I'm not happy with this solution. Why do I have to include my PostgreSQL password now and not in the past? Apart from that, I don't like to hardcode any passwords in human readable files. regards, alex -- > >Alexander Pucher wrote: > > >>Hi, >> >>for some strange reason, mapserver fails to select data from my local >>PostgreSQL DB with this error: >>* >>Warning*: MapServer Error in msPOSTGISLayerOpen(): Error parsing POSTGIS >>connection information >> >>This was already posted on the list about a year ago, but with no real >>conclusion. >> >>Dave Blasby wrote back then: >> >>The message occurs if the postgresql client >>library returns a >>"CONNECTION_BAD" when it tries to open a connection. >> >>I have to add that everything used to work on my machine without >>problems until yesterday.... >> >>Did anyone come across this problem recently? >> >>Any suggestions? >> >>Regards, >>alex >> >>-- >> >> From woodbri at swoodbridge.com Mon Sep 30 05:10:04 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 30 Sep 2002 08:10:04 -0400 Subject: [mapserver-users] Problems with labels In-Reply-To: <007c01c2686e$a8abae30$0b220a0a@beast> Message-ID: <3D9806DC.27797.428EC7C8@localhost> On 30 Sep 2002 at 12:46, James Anderson wrote: > Hi, > > The dbf file of this layer has 1000s of labels in it. If I have to > manually setup each label, that will be a lot of work I'm not sure what you are thinking about, but if you just want to display the labels mapserver will do it just like polygons. Here is an example, that places a red circle on the map at the label location and labels it. You need to read up on the mapfile reference for other options that you might want to change. -Steve LAYER TYPE POINT LABELITEM "NAME" <--- put name of dbf field that has label text CLASS SYMBOL 'circle' SIZE 4 COLOR 255 0 0 # make it a red circle of size 4 LABEL SIZE 'small' TYPE 'bitmap' BUFFER 3 POSITION 'auto' END END END > Regards, > > James. > > ----- Original Message ----- > From: > To: "James Anderson" ; > > Sent: Friday, September 27, 2002 1:58 PM > Subject: Re: [mapserver-users] Problems with labels > > > | James, > | > | You can do one of two things to get labels. > | > | 1) if you want the point marker and the label then leave the TYPE as > | POINT but you need to add LABELITEM "dbf field name" to the LAYER > and | add a LABEL block to your CLASS block inside the LAYER block. | > | 2) if you only want the label and not the point mark, then declare | > the TYPE as ANNOTATION and do the same as above. | | -Steve | | On 27 > Sep 2002 at 10:30, James Anderson wrote: | | > | > | > Hi, | > | > I > am a Mapserver Newbie. I have a mapinfo map with text labels. I have | > > exported the mapinfo.tab file to shape files. I get a files like | > > lt_text.shp and lt_polyline.shp | > | > When I display the > lt_polyline.shp in mapserver it displays fine. I | > use the line > type. When I display the lt_text.shp in mapserver it | > draws points > where the text would be. I am using the point type. | > | > I need to > be able to get mapserver to actually display the text | > labels. How > can I do this ?? I have tried various types for the | > text shp file, > but it either does not display the text or it makes an | > error and > does not diplay the map.The dbf file that is alongside the | > shp > file has all the labels in it. Can anyone help ?? | > | > Thanks, | > > | > James. | > | > > From pucher at atlas.gis.univie.ac.at Mon Sep 30 07:45:10 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Mon, 30 Sep 2002 16:45:10 +0200 Subject: [mapserver-users] PostGIS performance Message-ID: <3D986376.2080406@atlas.gis.univie.ac.at> Hi, this time I want to use the mapserv CGI simlpy to generate a choroplethe map for me, by sending a predefined mapfile to the mapserv executable and store the map in a tmp directory. I want to show 4 classes of unemployment, colored depending on values in a db-table. The unemployment table is linked to the geometry table on the fly using FILTER in the mapfile. To to so, I load the respective layer 4 times from PostGIS, and assign FILTERs to the them to select the relevant polygons. Everything works fine, the map is created, only that it takes about 25 sec. :-( I played around a bit and found out that the repeated CONNECTIONs causes the delay. Did I miss something in accessing layers fromPostGIS? With shapefiles, I would have used class expressions to "divide" the layer into classes, how can I do this without drawing the same layer over and over again when using PostGIS? AFAIK, I can't use the class expressions in this case, because I have to link two tables. I added the mapfile for corrections ;-) Regards, alex ... ############################ # Start of layer definitions ############################ LAYER NAME "nut3" STATUS ON TYPE POLYGON DATA "the_geom from nut3" CONNECTIONTYPE POSTGIS CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" METADATA "DESCRIPTION" "NUTS3 Area polygons" END CLASSITEM "nurgcd" CLASS NAME "No Data" COLOR 210 210 210 END END #------------------------------------------------------ LAYER NAME "nut3" STATUS ON TYPE POLYGON DATA "the_geom from nut3" CONNECTIONTYPE POSTGIS CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" METADATA "DESCRIPTION" "NUTS3 Area polygons" END FILTER "nut3.nurgcd=un3rt.geo and un3rt.unit > 16" CLASSITEM "nurgcd" CLASS NAME "unempl. > 16%" COLOR 255 0 0 END END #------------------------------------------------------ LAYER NAME "nut3" STATUS ON TYPE POLYGON DATA "the_geom from nut3" CONNECTIONTYPE POSTGIS CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" METADATA "DESCRIPTION" "NUTS3 Area polygons" END FILTER "nut3.nurgcd=un3rt.geo and un3rt.unit > 10 and un3rt.unit < 16" CLASSITEM "nurgcd" CLASS NAME "unempl. 10-16%" COLOR 250 100 100 END END #------------------------------------------------------ LAYER NAME "nut3" STATUS ON TYPE POLYGON DATA "the_geom from nut3" CONNECTIONTYPE POSTGIS CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" METADATA "DESCRIPTION" "NUTS3 Area polygons" END FILTER "nut3.nurgcd=un3rt.geo and un3rt.unit > 5 and un3rt.unit < 10" CLASSITEM "nurgcd" CLASS NAME "unempl. 5-10%" COLOR 250 200 200 END END #------------------------------------------------------ LAYER NAME "nut3" STATUS ON TYPE POLYGON DATA "the_geom from nut3" CONNECTIONTYPE POSTGIS CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" METADATA "DESCRIPTION" "NUTS3 Area polygons" END FILTER "nut3.nurgcd=un3rt.geo and un3rt.unit > 0 and un3rt.unit < 5" CLASSITEM "nurgcd" CLASS NAME "unempl. <5%" COLOR 250 220 220 END END #------------------------------------------------------ LAYER NAME "nut3lin" STATUS ON DATA "the_geom from nut3_arc" #DESCRIPTION "nut3lin" TYPE LINE CONNECTIONTYPE POSTGIS CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" METADATA "DESCRIPTION" "NUTS3 boundaries lines" END CLASS #NAME "Nuts3 Gebiete" COLOR 0 0 0 END END END -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From dblasby at refractions.net Mon Sep 30 09:35:46 2002 From: dblasby at refractions.net (david blasby) Date: Mon, 30 Sep 2002 09:35:46 -0700 Subject: [mapserver-users] POSTGIS parse error References: <3D9596EC.6090103@atlas.gis.univie.ac.at> <3D98062C.56753E9A@geo.unizh.ch> <3D981C7D.4060106@atlas.gis.univie.ac.at> Message-ID: <3D987D62.74C20131@refractions.net> > I have to add that everything used to work on my machine without > problems until yesterday.... > It managed to get it running again by adding the password=xxxx to the > CONNECTION line in my mapfile. But to be honets, I'm not happy with this > solution. > > Why do I have to include my PostgreSQL password now and not in the past? > > Apart from that, I don't like to hardcode any passwords in human > readable files. The connect-to-database routines havent changed since the very original mappostgis.c was created. In fact, the connect-to-database rountine is only one line long and just calls the standard libpq PQconnect() function. I cannot see any reason why it would suddenly stop working on the mapserver side. There must have been a change in your database set-up. If you dont want to put in a password, you'll have to use the postgresql sql command "CREATE USER..." and "GRANT..." to create a new user (without a password) with the appropriate permission. dave ps. you should use the mappostgis.c from 3.7 since it gives much better help and error reporting. I've posted it here several times or you can get it from cvs. I'll email it to you in a separate message. From steve.lime at dnr.state.mn.us Mon Sep 30 09:36:19 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 30 Sep 2002 11:36:19 -0500 Subject: [mapserver-users] Fwd: using tiled coverages Message-ID: An embedded message was scrubbed... From: bjoern at lih.rwth-aachen.de Subject: using tiled coverages Date: Sun, 29 Sep 2002 09:43:00 +0200 Size: 1872 URL: From dblasby at refractions.net Mon Sep 30 09:46:05 2002 From: dblasby at refractions.net (david blasby) Date: Mon, 30 Sep 2002 09:46:05 -0700 Subject: [mapserver-users] PostGIS performance References: <3D986376.2080406@atlas.gis.univie.ac.at> Message-ID: <3D987FCD.68EB5A04@refractions.net> Alexander, You shouldnt make a bunch of layers with the same DATA statement - it forces the DB to make the query for each layer in your mapfile. In your case you're doing 6* more work than necessary. I'm a bit confused by your DB set up - is "nut3" a normal table or is it something else? Same thing for "un3rt". Usually you would only have to set up a bunch of CLASS statement within the layer - like with a shapefile. You're probably having troubles because of some type of implicit joining of tables. You should use the 3.7 mappostgis.c (I've already emailed it to you), and use the "advanced" DATA statement and do explict joins. DATA "the_geom from () as foo using unique gid using SRID=6543" replace "gid" with the name of the unique column in your data replace "6543" with the SRID of your data in the () put your SQL statement. I sugest you explictly name your columns like: "SELECT the_geom, nut3.nurgcd as nurgcd, un3rt.unit as unit, gid FROM nut3" DATA "the_geom from (SELECT the_geom, nut3.nurgcd as nurgcd, un3rt.unit as unit,gid FROM nut3) as foo using unique gid using SRID=6543" If this doesnt help, you'll have to tell me what your table structure is. dave ps. make sure you have a spatial index on your table, and do a "vacuum analyse" on the db. From jhart at frw.uva.nl Mon Sep 30 10:25:21 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Mon, 30 Sep 2002 19:25:21 +0200 Subject: [mapserver-users] PostGIS performance References: <3D986376.2080406@atlas.gis.univie.ac.at> Message-ID: <3D988901.6060706@frw.uva.nl> Alexander, You are right: MapServer opens a separate PostGIS connection for every layer, so your approach is inefficient. You can do it much more elegantly by using just one layer and putting all your filter conditions into the DATA statement. You do this by creating a computed PostGIS variable and giving it a name. This temporary variable can be used as a CLASSITEM by MapServer. Note that this is a very powerful way of creating classified maps, as you can make your computations as complex as you want, with variables from all tables in your database. DATA "the_geom from (select nut3.the_geom, case when un3rt.unit > 16 then 1 when un3rt.unit > 10 and un3rt.unit < 16 then 2 when un3rt.unit > 5 and un3rt.unit < 10 then 3 when un3rt.unit > 0 and un3rt.unit < 5 then 4 else 5 end as myclass from nut3,un3rt where nut3.nurgcd=un3rt.geo ) as foo" CLASSITEM myclass CLASS EXPRESSION 1 COLOR 255 0 0 END CLASS EXPRESSION 2 COLOR 250 100 100 END CLASS EXPRESSION 3 COLOR 250 200 200 END CLASS EXPRESSION 4 COLOR 250 220 220 END CLASS EXPRESSION 5 COLOR 210 210 210 END Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl Alexander Pucher wrote: > Hi, > > this time I want to use the mapserv CGI simlpy to generate a choroplethe > map for me, by sending a predefined mapfile to the mapserv executable > and store the map in a tmp directory. > > I want to show 4 classes of unemployment, colored depending on values in > a db-table. The unemployment table is linked to the geometry table on > the fly using FILTER in the mapfile. > > To to so, I load the respective layer 4 times from PostGIS, and assign > FILTERs to the them to select the relevant polygons. > > Everything works fine, the map is created, only that it takes about 25 > sec. :-( > > I played around a bit and found out that the repeated CONNECTIONs causes > the delay. > > Did I miss something in accessing layers fromPostGIS? With shapefiles, I > would have used class expressions to "divide" the layer into classes, > how can I do this without drawing the same layer over and over again > when using PostGIS? AFAIK, I can't use the class expressions in this > case, because I have to link two tables. > > I added the mapfile for corrections ;-) > > Regards, > alex > > > > ... > > ############################ > # Start of layer definitions > ############################ > > LAYER > NAME "nut3" > STATUS ON > TYPE POLYGON > DATA "the_geom from nut3" > CONNECTIONTYPE POSTGIS > CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" > METADATA > "DESCRIPTION" "NUTS3 Area polygons" > END > CLASSITEM "nurgcd" > CLASS > NAME "No Data" > COLOR 210 210 210 > END > > END > #------------------------------------------------------ > LAYER > NAME "nut3" > STATUS ON > TYPE POLYGON > DATA "the_geom from nut3" > CONNECTIONTYPE POSTGIS > CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" > METADATA > "DESCRIPTION" "NUTS3 Area polygons" > END > FILTER "nut3.nurgcd=un3rt.geo and un3rt.unit > 16" > CLASSITEM "nurgcd" > CLASS > NAME "unempl. > 16%" > COLOR 255 0 0 END > END > #------------------------------------------------------ > LAYER > NAME "nut3" > STATUS ON > TYPE POLYGON > DATA "the_geom from nut3" > CONNECTIONTYPE POSTGIS > CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" > METADATA > "DESCRIPTION" "NUTS3 Area polygons" > END > FILTER "nut3.nurgcd=un3rt.geo and un3rt.unit > 10 and un3rt.unit < 16" > CLASSITEM "nurgcd" > CLASS > NAME "unempl. 10-16%" > COLOR 250 100 100 END > END > #------------------------------------------------------ > LAYER > NAME "nut3" > STATUS ON > TYPE POLYGON > DATA "the_geom from nut3" > CONNECTIONTYPE POSTGIS > CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" > METADATA > "DESCRIPTION" "NUTS3 Area polygons" > END > FILTER "nut3.nurgcd=un3rt.geo and un3rt.unit > 5 and un3rt.unit < 10" > CLASSITEM "nurgcd" > CLASS > NAME "unempl. 5-10%" > COLOR 250 200 200 END > END > #------------------------------------------------------ > LAYER > NAME "nut3" > STATUS ON > TYPE POLYGON > DATA "the_geom from nut3" > CONNECTIONTYPE POSTGIS > CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" > METADATA > "DESCRIPTION" "NUTS3 Area polygons" > END > FILTER "nut3.nurgcd=un3rt.geo and un3rt.unit > 0 and un3rt.unit < 5" > CLASSITEM "nurgcd" > CLASS > NAME "unempl. <5%" > COLOR 250 220 220 END > END > #------------------------------------------------------ > LAYER > NAME "nut3lin" > STATUS ON > DATA "the_geom from nut3_arc" > #DESCRIPTION "nut3lin" > TYPE LINE > CONNECTIONTYPE POSTGIS > CONNECTION "user=pucher password=xxx dbname=geodb host=localhost" > METADATA > "DESCRIPTION" "NUTS3 boundaries lines" > END > CLASS > #NAME "Nuts3 Gebiete" > COLOR 0 0 0 > END > END > END > From dlowther at ou.edu Mon Sep 30 10:23:51 2002 From: dlowther at ou.edu (Lowther, David W) Date: Mon, 30 Sep 2002 12:23:51 -0500 Subject: [mapserver-users] MrSID Support in Mapserver Message-ID: Howdy All, Just wondering if there was planned support for the MrSid imagery in upcoming releases. Thanks, Dave Lowther Software Engineer Geo Information Systems From lfilak at medinaco.org Mon Sep 30 10:50:46 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 30 Sep 2002 13:50:46 -0400 Subject: [mapserver-users] gd and freetype Message-ID: <200209301736.g8UHas811408@yogi.medinaco.net> AFAIK you can't. You need to compile GD with Freetype 1 and then compile mapserver. The GD RPM in 7.2 is Freetype 2. Lowell F. The following message was sent by root on Tue, 24 Sep 2002 15:30:28 -0400. > where can I find something about how install the gd in rpm (RH7.2) with > freetype_1.3.1 in tar? > Thanks in advance > Patricio From hi-ono at mn.xdsl.ne.jp Mon Sep 30 12:39:19 2002 From: hi-ono at mn.xdsl.ne.jp (Hisaji ONO) Date: Tue, 1 Oct 2002 04:39:19 +0900 Subject: [mapserver-users] Is it possilbe to compile mapserver sources by mingw? Message-ID: <006201c268b9$11a61250$650202c0@vip> Hello. Compiling mapserver sources for native win32 binaries seems to require VC++. Mingw can't build Win32 binaries? Can someone tell me? Best Regards. From vic at wittmanhydro.com Mon Sep 30 12:21:38 2002 From: vic at wittmanhydro.com (Vic Kelson) Date: Mon, 30 Sep 2002 14:21:38 -0500 Subject: [mapserver-users] MrSID Support in Mapserver References: Message-ID: <3D98A442.6040004@wittmanhydro.com> Lowther, David W wrote: >Howdy All, > >Just wondering if there was planned support for the MrSid imagery in >upcoming releases. > > I looked into this once; we were in a booth right next to the folks from Lizard Tech earlier this year. The MrSID developer's kit has a low-low price of $25,000 and you need it to compile applications, which would be a MAJOR pain for mapserver folks since we often "roll our own". I don't have $25,000 lying around... Perhaps someone with connections could contact the Lizards and see if they would make some provision for a fine open-source product like Mapserver. Just a notion: maybe the model that Lucent follows for their Linux modem driver would work -- a binary-only free (as in beer) library that includes an appropriate mapserver API? The only problem I can see is that clever folks might use the library to do things other than mapserver, which would (appropriately) irritate the Lizard Tech folks. Another strategy would be to make a "stub" MrSID application that extracts a GEOTIFF image given a bounding-box and drops it into a temporary directory, then mapserv would simply read the file. This would require a mapfile extension that provides a command to be executed prior to drawing a layer (Ooooooh, that isn't a bad idea even without the MrSID stuff. It would simplify some very powerful CGI extensions, because you could dynamically generate layers to be drawn while still making use of the mapserver HTML templates!). Easy to implement? Yes. A bit disgusting? Yes. Slow? Maybe (although this could be offset by the use of a temporary ramdisk in Linux). But it wouldn't require linking to the MrSID library, thus protecting Lizard Tech from unauthorized (ab)use of their library; it would also protect mapserver from changes to the LizardTech library. Furthermore, if the MrSID developer's kit can produce royalty-free applications, any kindly benefactor in the mapserver community who already has the developer's kit could implement it and distribute binaries... My two cents. Vic From steve.lime at dnr.state.mn.us Mon Sep 30 12:32:54 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 30 Sep 2002 14:32:54 -0500 Subject: [mapserver-users] zoom box in JavaScript (not Java) Message-ID: See http://www.dnr.state.mn.us/maps/landview_dhtml.html for an example. Uses the same interface as the old mapplet applet so if you can build an app with mapplet (now called jbox) then you can build one with DHTML. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 09/29/02 10:50PM >>> I replied to this earlier, and accidently posted it to the mapserver dev list. First, here is the original reply from me... === Javascript works fine... it doesn't really draw, it reveals and hides different layers. I have had this working for a while now, but have only recently been able to obtain permission from the client to open it up for list consumption. I will be posting the url early next week for list folks to see the application (have to obfuscate some of the client-specific data for privacy reasons ;-) ), and slowly after that I will start posting snippets from the application itself. just a few days more. thanks. pk/ ps. the only downside is the zoombox in its current incarnation works reliably only in IE (both on Macs and Win). It also does work in Chimera and in Mozilla, but not reliably. I would need to do some work to make it compatible, but no time. Hopefully, once I post the code, someone else can make it work with other browsers and post it back. === second, here is a temp url showing this kind of functionality. http://209.83.8.226/bims/index.pl This is a simple, perl mapscript driven prototype. Only zoomin, zoomout, and zoomall are functional, but enough to show the zoombox working in a non-frames page. Sometime later this week I will post the url for a more elaborate application in php mapscript that does some of the same tricks. keep in mind... the above will work only with IE (on any platform) at this time. pk/ > At 11:18 AM 9/28/2002 -0600, Alex Rice wrote: >> [reposting on mapserver-users, -dev is for mapserver internals >> discussion -- alex] >> >> On Friday, September 27, 2002, at 12:39 PM, Brent Fraser wrote: >> >>> Hey, >>> >>> Does anyone know how http://kei.kodak.com/HTMLMap.asp can use >>> JavaScript to do a zoom box? >>> >>> I thought JavaScript was too limited draw lines on an image and we >>> were stuck using Java. >>> >>> I'm jealous. >> >> Nope, javascript can be used. However it's heavy on the CSS and DHTML >> stuff-- you might run into browser compatibility issues. No more so >> than trying to run a Java applet though. >> >> I've been playing around with some free Javascript I found at >> esri.com. But haven't been able to make it do exactly what I want it >> to do. It seems to want to be in a frameset with all drawing starting >> at 0,0. It would be great if mapserver came with some HTML templates >> and javascript helper functions like this! From nacional at biosci.cbs.umn.edu Mon Sep 30 12:52:03 2002 From: nacional at biosci.cbs.umn.edu (Pericles S. Nacionales) Date: 30 Sep 2002 14:52:03 -0500 Subject: [mapserver-users] Is it possilbe to compile mapserver sources by mingw? In-Reply-To: <006201c268b9$11a61250$650202c0@vip> References: <006201c268b9$11a61250$650202c0@vip> Message-ID: <1033415523.6636.8.camel@arceuthobium.ecology.umn.edu> MSVC++ isn't required to compile MapServer on Win32 platform. You can use Mingw or Borland C/C++ (or whatever) if you want, provided you know how to make a Makefile script for their particular make program. I was actually going to start using Borland's free (not Free Software) C/C++ compiler but couldn't find enough time... If I ever do, I'll provide a HOW-TO. -Perry N. On Mon, 2002-09-30 at 14:39, Hisaji ONO wrote: > Hello. > > Compiling mapserver sources for native win32 binaries seems to require > VC++. > > Mingw can't build Win32 binaries? > > Can someone tell me? > > Best Regards. > > From DMartin at erac.com Mon Sep 30 13:24:24 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 30 Sep 2002 15:24:24 -0500 Subject: [mapserver-users] Transparent territory radius Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F341@STL-EXBE-I03.corp.erac.com> Sorry for the HTML format if you cannot handle it. It's the easiest way to get my point across. I'm not even sure the list supports it. I am trying to create 30 kilometer radius territory rings that are transparent. I succeeded, but not in the way I want. I created a PIXMAP symbol that (when blown up) looks like this: Dither symbol Now, when I use that symbol in predefined a POLYGON layer, it looks like this: Great, this is exactly what I want. Except that I have to build the circle buffer layer before hand. When the underlying points change (which happens almost every week), I have to rebuild the layer manually. So, I figured I could use the original point layer this way: LAYER ... TYPE LINE SIZEUNITS kilometers CLASS SIZE 60 NAME 'ORAC 30km ring' SYMBOL dither-blue-10_Percent COLOR 0 0 255 OUTLINECOLOR 10 10 10 END .... END Unfortunately, that looks like this: Not exactly what I was hoping for. I've tried everything I could find in the documentation, the Wiki, and the mailing list archives, but none of it worked. Does anyone know how I can accomplish this with a POINT layer? Thanks, Dan Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dither-blue-10_Percent.gif Type: image/gif Size: 1341 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: good.png Type: image/png Size: 9713 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bad.png Type: image/png Size: 5888 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Mon Sep 30 14:05:08 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 30 Sep 2002 16:05:08 -0500 Subject: [mapserver-users] Transparent territory radius Message-ID: Hmmmm.... What about using a straight circular symbol, and then the transparency option? Eg. SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER ... TYPE POINT SIZEUNITS kilometers TRANSPARENCY 50 CLASS SIZE 60 NAME 'ORAC 30km ring' SYMBOL 'circle' COLOR 0 0 255 END .... END That *should* get you blue, transparent, circles centered at the points you want. This needs version 3.6 though. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Martin, Daniel" 09/30/02 03:24PM >>> Sorry for the HTML format if you cannot handle it. It's the easiest way to get my point across. I'm not even sure the list supports it. I am trying to create 30 kilometer radius territory rings that are transparent. I succeeded, but not in the way I want. I created a PIXMAP symbol that (when blown up) looks like this: Dither symbol Now, when I use that symbol in predefined a POLYGON layer, it looks like this: Great, this is exactly what I want. Except that I have to build the circle buffer layer before hand. When the underlying points change (which happens almost every week), I have to rebuild the layer manually. So, I figured I could use the original point layer this way: LAYER ... TYPE LINE SIZEUNITS kilometers CLASS SIZE 60 NAME 'ORAC 30km ring' SYMBOL dither-blue-10_Percent COLOR 0 0 255 OUTLINECOLOR 10 10 10 END .... END Unfortunately, that looks like this: Not exactly what I was hoping for. I've tried everything I could find in the documentation, the Wiki, and the mailing list archives, but none of it worked. Does anyone know how I can accomplish this with a POINT layer? Thanks, Dan Martin From woodbri at swoodbridge.com Mon Sep 30 14:08:54 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 30 Sep 2002 17:08:54 -0400 Subject: [mapserver-users] Is it possilbe to compile mapserver sources by mingw? In-Reply-To: <1033415523.6636.8.camel@arceuthobium.ecology.umn.edu> References: <006201c268b9$11a61250$650202c0@vip> Message-ID: <3D988526.25019.447C1764@localhost> The the Borland make utility is very close to the Linux make utility. here is a sample Makefile from a Linux project that I ported over to Borland Free C/C++ compiler. It is pretty basic but it might be a good starting place from the borland compiler. The compiler comes with a predefined include that called BUILTINS.MAK that is in the Borland install tree and get loaded when make starts up. Hope this helps, -Steve INCLUDE = -I.;"../include" CFLAGS = -v -DWIN32 $(INCLUDE) OBJS = main.obj geo.obj placezip2.obj LIBDIRS = /L.;"../lib" LFLAGS = -lap -lc -M -ls $(LIBDIRS) LIBS = stand.lib strtools.lib cgi-util.lib libshp.lib getopt.lib all : geo.exe mkgeodbf.exe geo.exe : $(OBJS) $(CC) $(CFLAGS) $(LFLAGS) -egeo.exe $(OBJS) $(LIBS) mkgeodbf.exe : mkgeodbf.obj $(CC) $(CFLAGS) $(LIBDIRS) mkgeodbf.obj $(LIBS) clean: rm -f *.obj *.exe On 30 Sep 2002 at 14:52, Pericles S. Nacionales wrote: > MSVC++ isn't required to compile MapServer on Win32 platform. You can > use Mingw or Borland C/C++ (or whatever) if you want, provided you > know how to make a Makefile script for their particular make program. > I was actually going to start using Borland's free (not Free Software) > C/C++ compiler but couldn't find enough time... If I ever do, I'll > provide a HOW-TO. > > -Perry N. > > > On Mon, 2002-09-30 at 14:39, Hisaji ONO wrote: > > Hello. > > > > Compiling mapserver sources for native win32 binaries seems to > > require > > VC++. > > > > Mingw can't build Win32 binaries? > > > > Can someone tell me? > > > > Best Regards. > > > > > > > From DMartin at erac.com Mon Sep 30 14:14:35 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 30 Sep 2002 16:14:35 -0500 Subject: [mapserver-users] Transparent territory radius Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B32@STL-EXBE-I03.corp.erac.com> I didn't realize my work-around was made obsolete in 3.6. Thanks so much for pointing it out, Steve. -Dan Martin -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Monday, September 30, 2002 4:05 PM To: Martin, Daniel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Transparent territory radius Hmmmm.... What about using a straight circular symbol, and then the transparency option? Eg. SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER ... TYPE POINT SIZEUNITS kilometers TRANSPARENCY 50 CLASS SIZE 60 NAME 'ORAC 30km ring' SYMBOL 'circle' COLOR 0 0 255 END .... END That *should* get you blue, transparent, circles centered at the points you want. This needs version 3.6 though. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Martin, Daniel" 09/30/02 03:24PM >>> Sorry for the HTML format if you cannot handle it. It's the easiest way to get my point across. I'm not even sure the list supports it. I am trying to create 30 kilometer radius territory rings that are transparent. I succeeded, but not in the way I want. I created a PIXMAP symbol that (when blown up) looks like this: Dither symbol Now, when I use that symbol in predefined a POLYGON layer, it looks like this: Great, this is exactly what I want. Except that I have to build the circle buffer layer before hand. When the underlying points change (which happens almost every week), I have to rebuild the layer manually. So, I figured I could use the original point layer this way: LAYER ... TYPE LINE SIZEUNITS kilometers CLASS SIZE 60 NAME 'ORAC 30km ring' SYMBOL dither-blue-10_Percent COLOR 0 0 255 OUTLINECOLOR 10 10 10 END .... END Unfortunately, that looks like this: Not exactly what I was hoping for. I've tried everything I could find in the documentation, the Wiki, and the mailing list archives, but none of it worked. Does anyone know how I can accomplish this with a POINT layer? Thanks, Dan Martin From pkishor at GeoAnalytics.com Mon Sep 30 14:58:50 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 30 Sep 2002 16:58:50 -0500 Subject: [mapserver-users] Transparent territory radius Message-ID: Hi Daniel, Is there a reason you have to do it this way? How about just creating a circle shape and filling it with a diagonalfill? -----Original Message----- From: Martin, Daniel [mailto:DMartin at erac.com] Sent: Monday, September 30, 2002 3:24 PM To: mapserver-users Subject: [mapserver-users] Transparent territory radius Sorry for the HTML format if you cannot handle it. It's the easiest way to get my point across. I am trying to create 30 kilometer radius territory rings that are transparent. I succeeded, but not in the way I want. I created a PIXMAP symbol that (when blown up) looks like this: [..] From nospam at cnrit.tamu.edu Mon Sep 30 15:05:42 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Mon, 30 Sep 2002 17:05:42 -0500 Subject: [mapserver-users] HTML Legend with Status Checking... Message-ID: <3D98CAB6.8040205@cnrit.tamu.edu> Hello, I've seen how you can make legends using PHP Mapscript that check to see whether a layer or class is in scale before displaying it in the legend, but no mention of how to do this if I'm not using Mapscript. I have sub-classed many of my layers so that symbols show up in different sizes depending on how far zoomed in you are. In other words, I'm using "MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up in the legend and that's really annoying! I want ONLY the in-scale symbol to show up in the legend as it does in the map...any tips on how to do this without Mapscript? I see the "if" conditional statements in the HTML Legend How-to, but there's no status of "SCALE" to check with those statements... if I could put an if statement in my legend template that checked whether or not a class or layer was in scale, then I'd be in business...any way to do this? Thanks! From DMartin at erac.com Mon Sep 30 15:17:22 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 30 Sep 2002 17:17:22 -0500 Subject: [mapserver-users] Transparent territory radius Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F343@STL-EXBE-I03.corp.erac.com> I needed the shape to be generated from MapServer using a POINT layer. If you define the a POINT symbol as a diagonalfill of 60 kilometers, you get one giant diagonalfill rather than a circle in a diagonalfill pattern. However as Steve points out, the TRANSPARENCY feature of the LAYER object added in 3.6 works brilliantly. I've already redesigned several other things using this feature too. Thanks for the suggestion, Dan Martin -----Original Message----- From: Puneet Kishor [mailto:pkishor at geoanalytics.com] Sent: Monday, September 30, 2002 4:59 PM To: Martin, Daniel; mapserver-users Subject: RE: [mapserver-users] Transparent territory radius Hi Daniel, Is there a reason you have to do it this way? How about just creating a circle shape and filling it with a diagonalfill? -----Original Message----- From: Martin, Daniel [mailto:DMartin at erac.com] Sent: Monday, September 30, 2002 3:24 PM To: mapserver-users Subject: [mapserver-users] Transparent territory radius Sorry for the HTML format if you cannot handle it. It's the easiest way to get my point across. I am trying to create 30 kilometer radius territory rings that are transparent. I succeeded, but not in the way I want. I created a PIXMAP symbol that (when blown up) looks like this: [..] From pkishor at GeoAnalytics.com Mon Sep 30 15:20:22 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 30 Sep 2002 17:20:22 -0500 Subject: [mapserver-users] Transparent territory radius Message-ID: > -----Original Message----- > From: Martin, Daniel [mailto:DMartin at erac.com] > Sent: Monday, September 30, 2002 5:17 PM > To: 'Puneet Kishor'; mapserver-users > Subject: RE: [mapserver-users] Transparent territory radius > > > I needed the shape to be generated from MapServer using a > POINT layer. If > you define the a POINT symbol as a diagonalfill of 60 > kilometers, you get > one giant diagonalfill rather than a circle in a diagonalfill pattern. I am sorry, but perhaps I should have elaborated further. You could still use the point from your POINT layer, generate your buffer circle and add it to an acetate layer, then use a circle polygon symbol with a diagonalfill pattern. That way, the fill would be on a poly. In any case... > > However as Steve points out, the TRANSPARENCY feature of the > LAYER object > added in 3.6 works brilliantly. I've already redesigned several other > things using this feature too. > seems like you solved it. ;-) pk/ > > > -----Original Message----- > From: Puneet Kishor [mailto:pkishor at geoanalytics.com] > Sent: Monday, September 30, 2002 4:59 PM > To: Martin, Daniel; mapserver-users > Subject: RE: [mapserver-users] Transparent territory radius > > > Hi Daniel, > > Is there a reason you have to do it this way? How about just > creating a > circle shape and filling it with a diagonalfill? > > > -----Original Message----- > From: Martin, Daniel [mailto:DMartin at erac.com] > Sent: Monday, September 30, 2002 3:24 PM > To: mapserver-users > Subject: [mapserver-users] Transparent territory radius > > > Sorry for the HTML format if you cannot handle it. It's the > easiest way to > get my point across. I am trying to create 30 kilometer > radius territory > rings that are transparent. I succeeded, but not in the way > I want. I > created a PIXMAP symbol that (when blown up) looks like this: > [..] > From Antti.Roppola at brs.gov.au Mon Sep 30 18:41:25 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Tue, 1 Oct 2002 11:41:25 +1000 Subject: [mapserver-users] GDAL TIFF fun - two supposedly identical bu ilds.... Message-ID: <4D6E6CCBC9CED61192720060B06B3DD7C3F975@ACTMAIL2> Hello all, The culprit turned out to be the PHP build on the production box. It was not configured the same as the dev box, and I am guessing some of the options set were not palatable. Got the SysAdmin to use the PHP build from the dev box and it works. Cheers, Antti On 26 Sep 2002 at 11:55, Antti.Roppola at brs.gov.au wrote: > OK, > > I have two (supposedly) identical boxes running PHP Mapscript (3.6.0 > and 3.6.1) with GDAL (1.1.7) support. The same source data and PHP > application has been mirrored from box A to B. The same TIFFs work on > box A, but not box B. From toni at giscampus.udg.es Mon Sep 30 23:39:55 2002 From: toni at giscampus.udg.es (=?iso-8859-1?Q?Toni_Hern=E1ndez?=) Date: Tue, 1 Oct 2002 08:39:55 +0200 Subject: [mapserver-users] Should I change version of mapserver References: <5.1.0.14.0.20020920113754.00c06190@192.168.1.7> <5.1.0.14.0.20020920182617.0200fb68@192.168.1.7> <1032546365.3d8b683d45688@webmail.lmi.net> <1032904638.3d90dfbead65b@webmail.lmi.net> Message-ID: <001801c26915$5ab423e0$0e2fce82@udg.es> Hello everybody, I have to develop a mapserver environment with windows. Mainly, I need to make some text queries (to display some streets, etc..) and to show the name of the streets in the right rotation. I have been trying the 3.6 version but I didn't succed. Do I need a concrete version of mapserver to do that on windows. If so, does anyone know where I can find these versions? Thanks for been patience with newies