From adams at terrestris.de Sun Nov 10 08:50:07 2002 From: adams at terrestris.de (Till Adams) Date: Sun, 10 Nov 2002 17:50:07 +0100 Subject: [mapserver-users] Mapplet Message-ID: <3DCE8E3F.1060708@terrestris.de> Dear listers! I'm trying to run the JS Mapplet in my application (- I know it worked before I got this new machine). The problem: I'm sure the mapplet and mapserver is working properly, because the tmp-image files are written and there is no error message for the javascript -- and: I can drag a zoombox and my overview map shows exact the cut-out I've choosen. Only the map isn't displayed ... Mapserver doesn't find and display the temp-image, as it does without the mapplet. I'm sure the fault is somewhere around the as said in the "mapplet.HowTo" definition. Here is my state-of-the-art: I tried almost everything I can imagine - maybe I just can't see something obvious - any help would be appreciated!! -- 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 adams at terrestris.de Mon Nov 25 04:09:31 2002 From: adams at terrestris.de (Till Adams) Date: Mon, 25 Nov 2002 13:09:31 +0100 Subject: [mapserver-users] JS -- Query result in a new window Message-ID: <3DE212FB.4010103@terrestris.de> Dear listers, I'm trying to get this machine doing, what I want ... but it doesn't want to. I use MS 3.6.1 and the Mapplet and just want to open a query in a new window and not in my map window. My JS code is as follows: Looks fine, but it doesn't work. Every idea is appreciated. Thank you very much in advance and have a nice weekend! 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 babak.tehrani at geosysnet.de Fri Nov 1 04:21:41 2002 From: babak.tehrani at geosysnet.de (Babak Toloue Tehrani) Date: 01 Nov 2002 13:21:41 +0100 Subject: [mapserver-users] gcc 3.x and gcc 2.9.x Message-ID: <1036153302.1942.11.camel@drache> Hello, SuSe 8.1 is using gcc 3.2, but you can also install the gcc 2.9.5 to /opt/gcc295/ . What is the command or the change in the Makfile to compile Mapserver with the old version of gcc. Thanks in advance Babak From morissette at dmsolutions.ca Fri Nov 1 06:33:59 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 01 Nov 2002 09:33:59 -0500 Subject: [mapserver-users] gcc 3.x and gcc 2.9.x References: <1036153302.1942.11.camel@drache> Message-ID: <3DC290D7.35309868@dmsolutions.ca> Babak Toloue Tehrani wrote: > > SuSe 8.1 is using gcc 3.2, but you can also install the gcc 2.9.5 to > /opt/gcc295/ . What is the command or the change in the Makfile to > compile Mapserver with the old version of gcc. > Unless the OS provides a command to switch the default compiler, I don't think there is any simple way with MapServer's configure or Makefiles to select one compiler or another. One way that may work is setting /opt/gcc295/bin (or whatever the bin path is) at the very beginning of our path. This way the gcc 2.9.5 tools should be found first by configure and the makefiles, before the gcc 3.2 binaries that are likely under /usr/bin. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From morissette at dmsolutions.ca Fri Nov 1 07:06:44 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 01 Nov 2002 10:06:44 -0500 Subject: [mapserver-users] Re: dmsolutions.ca mailing list memberships reminder Message-ID: <3DC29884.EBA79D9D@dmsolutions.ca> Good morning, Some of you may have received this morning a message titled "dmsolutions.ca mailing list memberships reminder" and referring to a "mapserver-users at dmsolutions.ca" list. This is not a real list, it was just a test, so don't worry you have not been subscribed to any list without your authorization. It's just an unfortunate side-effect of some tests that we made a few weeks ago with GNU Mailman to try to improve the performance of the mapserver-users mailing list. Sorry about this. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From sctweedy at NRCan.gc.ca Fri Nov 1 08:10:10 2002 From: sctweedy at NRCan.gc.ca (Tweedy, Scott) Date: Fri, 1 Nov 2002 11:10:10 -0500 Subject: [mapserver-users] WMS resources Message-ID: <5ACEEE96F4F9D41190790002A528B51E02740AC3@s0-ott-x11.nrn.nrcan.gc.ca> I'm trying to use MapServer to put together a WMS server. I have a number of layers that I want to make available to clients (most of whom will be using MapLab). Can anyone point me to some resources, other than the OGC website and the MapServer documentation to help with the creation. I noticed that the URL for the GMAP demo that is entered in MapLab to access those layers doesn't explicitly define a .map file: http://www2.dmsolutions.ca/cgi-bin/mswms_gmap? Is this done with a particular script? If anyone can point me in the right direction that would be great. Thanks in advance, st From krbaker at metacarta.com Fri Nov 1 08:21:39 2002 From: krbaker at metacarta.com (Keith Baker) Date: 01 Nov 2002 11:21:39 -0500 Subject: [mapserver-users] Complex Symbols? In-Reply-To: <1036153302.1942.11.camel@drache> References: <1036153302.1942.11.camel@drache> Message-ID: <1036167700.22084.76.camel@mosor.internal.metacarta.com> I'm looking for more in depth symbol info. I'd like to make the classic railroad symbol but I can't quite figure out if its even possible... here is what I mean... ----|-----|-----|-----|---- -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From rmurray at NRCan.gc.ca Fri Nov 1 08:27:11 2002 From: rmurray at NRCan.gc.ca (Murray, Ross) Date: Fri, 1 Nov 2002 11:27:11 -0500 Subject: [mapserver-users] SDE connect but not > once Message-ID: <3E3C279AF3F9D411BAA00002A529150E02C518F2@s0-ott-x10.nrn.nrcan.gc.ca> Although past experience would have me blame SDE almost immediately, in the interest of thoroughness I wonder if anyone has had more thoughts on this. I have set up similar geology exploration applications in ArcIMS and Mapserver. Each accesses the same shapefiles or SDE layers from remote servers and each uses the same Oracle database for attribute data that is displayed in a different frame using ASP. The ArcIMS app seems to work pretty well all round, except I am severly limited to displaying what ESRI wishes me to display. The ASP-driven MapServer app works great with shapefiles but I am hung up on the error described below. My SDE admin wants to know if, when the mapserv.exe is compiled, if there are any references to version, since odd versions of SDE won't play together? -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, October 29, 2002 1:09 PM To: rmurray at NRCan.gc.ca Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] SDE connect but not > once Might there be something going on with the SDE side of things? MapServer creates (and then closes) a connection for each SDE layer. If for some reason SDE itself isn't dropping the connections that could result in all sorts of problems. I recall seeing this here several years ago but not recently. I'm not an SDE admin but I thought there was a tool to look at incoming connections and that might help in diagnosing this problem. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Murray, Ross" 10/28/02 01:13PM >>> I am connecting to an SDE coverage for spatial data. When initialised, the map showing all extents loads correctly into the mapplet (although it is significantly slower than a shapefile). Then I can do what I wish (zoom, query, pan, print); BUT ONLY ONCE. For example, I choose a map I want from a drop-down list and, presto, there is the whole map in the applet. Then I zoom in to an area; poof, there is the area. Then I attempt to query a polygon in the area and I get: msSDELayerOpen(): SDE error. SE_connection_create(): Network I/O error. (-10) >From this point the only thing that works is to go to a different map or quit. That next map will load correctly and I can pan or query or zoom, but I can't pan and query or query and zoom or whatever. Same error every time. Any thoughts? <> From DMartin at erac.com Fri Nov 1 09:41:35 2002 From: DMartin at erac.com (Martin, Daniel) Date: Fri, 1 Nov 2002 11:41:35 -0600 Subject: [mapserver-users] Complex Symbols? Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B5A@STL-EXBE-I03.corp.erac.com> I scoured the mailing lists for information on making the exact same symbol recently. It shows up in the archives several times. I hate to say anything can't be done, but I've not found any way to do this in MapServer. MapServer gives a continuous smear for symbols for "line" type layers. I got close using a centered truetype "t" label without any symbol. Unfortunately it doesn't turn out quite right. Labeling occurs on a per segment basis, which gives no uniformity. It was a hack anyway. -Dan > -----Original Message----- > From: Keith Baker [mailto:krbaker at metacarta.com] > Sent: Friday, November 01, 2002 10:22 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Complex Symbols? > > > I'm looking for more in depth symbol info. I'd like to make > the classic > railroad symbol but I can't quite figure out if its even possible... > here is what I mean... > > ----|-----|-----|-----|---- > From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Fri Nov 1 09:51:10 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Fri, 1 Nov 2002 12:51:10 -0500 Subject: [mapserver-users] RE: [maplab-users] WMS resources Message-ID: <7CDD7B94357FD5119E800002A537C46E230422@s5-ccr-r1.ccrs.nrcan.gc.ca> Scott, That particular trick is achieved with a simple Apache configuration. Here's what mine looks like: SetEnvIfNoCase Request_URI "/cgi-bin/atlaswms_en" MS_MAPFILE=/home/mapdata/aoc_v3/english/wms_eng.map In my case, I do a symbolic link between atlaswms_en and the "real" mapserver binary. This way I can have many WFS/WMS servers running from the same mapserver cgi. This will work on apache for UNIX/Linux/Windows ... Can't help you if you're using IIS though ... J.F. -----Original Message----- From: Tweedy, Scott [mailto:sctweedy at nrcan.gc.ca] Sent: Friday, November 01, 2002 11:10 AM To: MapLab Users (E-mail); MapServer Users (E-mail) Subject: [maplab-users] WMS resources I'm trying to use MapServer to put together a WMS server. I have a number of layers that I want to make available to clients (most of whom will be using MapLab). Can anyone point me to some resources, other than the OGC website and the MapServer documentation to help with the creation. I noticed that the URL for the GMAP demo that is entered in MapLab to access those layers doesn't explicitly define a .map file: http://www2.dmsolutions.ca/cgi-bin/mswms_gmap? Is this done with a particular script? If anyone can point me in the right direction that would be great. Thanks in advance, st _______________________________________________ Maplab-users mailing list Maplab-users at dmsolutions.ca http://lists.dmsolutions.ca/mailman/listinfo/maplab-users From babak.tehrani at geosysnet.de Fri Nov 1 10:10:07 2002 From: babak.tehrani at geosysnet.de (Babak Toloue Tehrani) Date: 01 Nov 2002 19:10:07 +0100 Subject: [mapserver-users] gcc 3.x and gcc 2.9.x Message-ID: <1036174208.4841.0.camel@drache> Thanks, but it still have the same problems. /opt/gcc295/bin/gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_SWAP_XY -I/usr/include shp2img.o -L. -lmap -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lm -o shp2img ./libmap.a(mapogr.o)(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' /usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage' collect2: ld returned 1 exit status make: *** [shp2img] Fehler 1 Am Fre, 2002-11-01 um 17.56 schrieb Chris Faulhaber: > On Fri, Nov 01, 2002 at 01:21:41PM +0100, Babak Toloue Tehrani wrote: > > Hello, > > > > SuSe 8.1 is using gcc 3.2, but you can also install the gcc 2.9.5 to > > /opt/gcc295/ . What is the command or the change in the Makfile to > > compile Mapserver with the old version of gcc. > > > > CC=/path/to/compiler ./configure ... > > -- > Chris D. Faulhaber - jedgar at fxp.org - jedgar at FreeBSD.org > -------------------------------------------------------- > FreeBSD: The Power To Serve - http://www.FreeBSD.org From drew at Zhrodague.net Fri Nov 1 10:09:39 2002 From: drew at Zhrodague.net (Drew from Zhrodague) Date: Fri, 1 Nov 2002 13:09:39 -0500 (EST) Subject: [mapserver-users] Complex Symbols? In-Reply-To: <4ACBA1414DD9EE418CC250E4AAA9035A192B5A@STL-EXBE-I03.corp.erac.com> Message-ID: > I scoured the mailing lists for information on making the exact same symbol > recently. It shows up in the archives several times. I hate to say > anything can't be done, but I've not found any way to do this in MapServer. > MapServer gives a continuous smear for symbols for "line" type layers. > > I got close using a centered truetype "t" label without any symbol. > Unfortunately it doesn't turn out quite right. Labeling occurs on a per > segment basis, which gives no uniformity. It was a hack anyway. > > > > ----|-----|-----|-----|---- > > We use a circle with a large size (like 8 or 12 or something), and our railroads come-out sorta like this: XXXXXXXXXXXXXXX Railroads aren't really our bag, so we kinda don't care -- as long as it doesn't look like a normal road. Couldn't you use a truetype "+"-char? From TCHaddad at cshore.com Fri Nov 1 11:02:35 2002 From: TCHaddad at cshore.com (TCHaddad) Date: Fri, 1 Nov 2002 14:02:35 -0500 Subject: [mapserver-users] Complex Symbols? Message-ID: <200211011402.AA300089446@cshore.com> Apologies, forgot to CC the list with this solution... I use the following to get an ok rail line symbol: CLASS NAME "Rail Line" COLOR 79 79 79 SYMBOL 'circle1' SIZE 1 OVERLAYSYMBOL 'dcircle' OVERLAYCOLOR 0 0 0 OVERLAYSIZE 3 END where the 2 symbols are definined in the symbolset as: Symbol NAME 'circle1' TYPE ellipse FILLED true POINTS 1 1 END END Symbol NAME 'dcircle' TYPE Ellipse FILLED TRUE POINTS 1 1 END STYLE 1 3 END END Hope this helps, TH ---------- Original Message ---------------------------------- From: Drew from Zhrodague Date: Fri, 1 Nov 2002 13:09:39 -0500 (EST) >> I scoured the mailing lists for information on making the exact same symbol >> recently. It shows up in the archives several times. I hate to say >> anything can't be done, but I've not found any way to do this in MapServer. >> MapServer gives a continuous smear for symbols for "line" type layers. >> >> I got close using a centered truetype "t" label without any symbol. >> Unfortunately it doesn't turn out quite right. Labeling occurs on a per >> segment basis, which gives no uniformity. It was a hack anyway. > >> > >> > ----|-----|-----|-----|---- >> > > > We use a circle with a large size (like 8 or 12 or something), and >our railroads come-out sorta like this: > > XXXXXXXXXXXXXXX > > Railroads aren't really our bag, so we kinda don't care -- >as long as it doesn't look like a normal road. Couldn't you use a truetype >"+"-char? > > From steve.lime at dnr.state.mn.us Fri Nov 1 11:08:42 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 01 Nov 2002 13:08:42 -0600 Subject: [mapserver-users] Complex Symbols? Message-ID: Changes in the way symbols are agregated for a layer in 3.7 should allow for railroad symbols and much more complex ones. These changes bring back some of the old 3.2 architecture that did allow for these. I'll provide more detail as we get closer to a release. In the meantime, truetype symbols are the best bet. For example you can use a single pixel line as the base symbol and then use a truetype "pipe" symbol for the overlay symbol. Steve >>> "Martin, Daniel" 11/01/02 11:41AM >>> I scoured the mailing lists for information on making the exact same symbol recently. It shows up in the archives several times. I hate to say anything can't be done, but I've not found any way to do this in MapServer. MapServer gives a continuous smear for symbols for "line" type layers. I got close using a centered truetype "t" label without any symbol. Unfortunately it doesn't turn out quite right. Labeling occurs on a per segment basis, which gives no uniformity. It was a hack anyway. -Dan > -----Original Message----- > From: Keith Baker [mailto:krbaker at metacarta.com] > Sent: Friday, November 01, 2002 10:22 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Complex Symbols? > > > I'm looking for more in depth symbol info. I'd like to make > the classic > railroad symbol but I can't quite figure out if its even possible... > here is what I mean... > > ----|-----|-----|-----|---- > From jeffb at erlandsen.com Fri Nov 1 11:25:16 2002 From: jeffb at erlandsen.com (Jeff Berry) Date: Fri, 1 Nov 2002 11:25:16 -0800 Subject: [mapserver-users] Linewidth Message-ID: I'd like to know how to increase the outline width for polygon layers so that when I overlap two lines, the bottom line shows up as a wider line symbol and thus is visible. I've searched the mail archives, but I didn't find anything. This has got to be a simple thing to do. Jeff Berry Erlandsen & Associates P.O. Box 2029 Chelan, WA 98816 (509) 682-4189 jeffb at erlandsen.com From DMartin at erac.com Fri Nov 1 12:53:11 2002 From: DMartin at erac.com (Martin, Daniel) Date: Fri, 1 Nov 2002 14:53:11 -0600 Subject: [mapserver-users] Linewidth Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F3BB@STL-EXBE-I03.corp.erac.com> Using a circle for the symbol: TYPE POLYGON CLASS SYMBOL 'circle' OUTLINECOLOR 0 0 0 SIZE 3 END -Dan Martin > -----Original Message----- > From: Jeff Berry [mailto:jeffb at erlandsen.com] > Sent: Friday, November 01, 2002 1:25 PM > To: MapServer > Subject: [mapserver-users] Linewidth > > > I'd like to know how to increase the outline width for > polygon layers so > that when I overlap two lines, the bottom line shows up as a > wider line > symbol and thus is visible. I've searched the mail archives, > but I didn't > find anything. This has got to be a simple thing to do. > > > > Jeff Berry > Erlandsen & Associates > P.O. Box 2029 > Chelan, WA 98816 > (509) 682-4189 > jeffb at erlandsen.com > From nhv at cape.com Fri Nov 1 14:37:01 2002 From: nhv at cape.com (Norman Vine) Date: Fri, 1 Nov 2002 17:37:01 -0500 Subject: [mapserver-users] gcc 3.x and gcc 2.9.x References: <1036174208.4841.0.camel@drache> Message-ID: <002101c281f7$32a84930$0100a8c0@sfdev3> Hi All I have dicovered, that on Cygwin at least, mapserver builds with gcc 3.2 by either 1) including -lstdc++ in the link libs STATIC_LIBS= $(GD_STATIC) $(OGR_STATIC) -lstdc++ or 2) linking with c++ instead of gcc executable: dependencies $(CXX) .... ..... This of course requires that gdal is also built with c++3.2 The resulting executables seem to run fine :-) Cheers Norman From AScalise at geovue.com Fri Nov 1 15:21:20 2002 From: AScalise at geovue.com (Armando Scalise) Date: Fri, 1 Nov 2002 18:21:20 -0500 Subject: [mapserver-users] Projection errors In-Reply-To: <200211011402.AA300089446@cshore.com> Message-ID: I am getting the folowing error msProcessProjection(): Projection library error. no options found in 'init' file when I try to add the following projection to my map PROJECTION "init=epsg:42103" END along with this projection definition to all layers PROJECTION "init=epsg:42103" END Any leads greatly appreciated Armando Scalise geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x122 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE ascalise at geovue.com From meier.roman at gmx.ch Sat Nov 2 03:14:14 2002 From: meier.roman at gmx.ch (Roman Meier) Date: Sat, 2 Nov 2002 12:14:14 +0100 Subject: [mapserver-users] maplab - mapbrowser Message-ID: Hi there I get an error when starting maplab - mapbrowser: (line-info is variable...) Thanks for help...bye... Roman From spencer at dmsolutions.ca Sat Nov 2 05:37:41 2002 From: spencer at dmsolutions.ca (Paul Spencer) Date: Sat, 02 Nov 2002 08:37:41 -0500 Subject: [mapserver-users] maplab - mapbrowser References: Message-ID: <3DC3D525.2090802@dmsolutions.ca> Roman, you can address your maplab-specific questions to the maplab-users at dmsolutions.ca mailing list and can join the list from the maplab page at http://www2.dmsolutions.ca/owt/maplab/ Can you provide me with the following information please: maplab version mapscript version php version web server and version operating system what you were doing when the timeout happened. In general, I can say that the problem you experienced is not uncommon if you have a slow machine or an older maplab or php version. There were some significant performance optimizations in the latest maplab release. You can get the latest version: maplab-2.0dev from the maplab site mentioned before. Make sure to take the 'dev' version. You will also need to have php 4.2.x (preferrably 4.2.3) and MapServer 3.6.2 or 3.6.3 (perferrably 3.6.3) Cheers, Paul Roman Meier wrote: > Hi there > I get an error when starting maplab - mapbrowser: > treemenu.php on line 504.> > (line-info is variable...) > > Thanks for help...bye... > Roman > > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From tomka849 at student.liu.se Sun Nov 3 04:58:40 2002 From: tomka849 at student.liu.se (Tomas Kaminskas) Date: Sun, 03 Nov 2002 13:58:40 +0100 Subject: [mapserver-users] Shapefile and coordinate systems Message-ID: <2f3ed317d5.317d52f3ed@student.liu.se> Hello, maybe this is not a right place to post this message, but I'm really stuck with this problem. How shapefiles manage coordinates, how can I find in what coordinate system is my concrete shapefile? I'm weak in this area, so any help needed! Tomas. From babak.tehrani at geosysnet.de Sun Nov 3 05:00:31 2002 From: babak.tehrani at geosysnet.de (Babak Toloue Tehrani) Date: 03 Nov 2002 14:00:31 +0100 Subject: [mapserver-users] gcc 3.x and gcc 2.9.x Message-ID: <1036328432.1507.2.camel@drache> Thanks for Help, now it works with the command: CXX= /path/to/c++_compiler CC=/path/to/c_compiler ./configure From woodbri at swoodbridge.com Sun Nov 3 06:19:19 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Sun, 3 Nov 2002 09:19:19 -0500 Subject: [mapserver-users] Shapefile and coordinate systems In-Reply-To: <2f3ed317d5.317d52f3ed@student.liu.se> Message-ID: <3DC4EA17.13689.19A8C2BE@localhost> Tomas, Shapefiles were not designed with anyway to identify what projection their data is in, so the best you can do is guess based on what clues you might have available. For example, if the data seems to fall within values of 90>X>-90 and 180>Y-180 then it may be geographic coordinates. Otherwise if the units are like NNNNNN.N then it is probably in some projection. The projection used is most likely dependent on what location on the earth the data is from as different locales tend to use different locations. You can use the data without knowing what the projection is with mapserver unless you are trying to use it with other data that is also projected AND in a different projection. -Steve W. On 3 Nov 2002 at 13:58, Tomas Kaminskas wrote: > Hello, > maybe this is not a right place to post this message, but I'm really > stuck with this problem. How shapefiles manage coordinates, how can I > find in what coordinate system is my concrete shapefile? I'm weak in > this area, so any help needed! Tomas. > > From bfraser at geoanalytic.com Sun Nov 3 09:46:03 2002 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 3 Nov 2002 10:46:03 -0700 Subject: [mapserver-users] Shapefile and coordinate systems References: <2f3ed317d5.317d52f3ed@student.liu.se> Message-ID: <014701c28360$e0f77cd0$020002c0@SHARK> Tomas, ESRI's original shapefile specification does not call for storing the definition of the coordinate system anywhere, so you have to know by some other means (a metadata file? a sticky note?). A couple of years ago ESRI introduced a .prj file to define the coordinate system of the shapefile (for example, ArcView 3.2 can use a .prj file), but it is optional and a lot of data in shapefile format does not include it. Brent Fraser GeoAnalytic Inc. ----- Original Message ----- From: "Tomas Kaminskas" To: Sent: Sunday, November 03, 2002 5:58 AM Subject: [mapserver-users] Shapefile and coordinate systems > Hello, > maybe this is not a right place to post this message, but I'm really stuck with this problem. How shapefiles manage coordinates, how can I find in what coordinate system is my concrete shapefile? > I'm weak in this area, so any help needed! > Tomas. > From tpcolson at nexussoft.com Sun Nov 3 13:47:07 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Sun, 3 Nov 2002 16:47:07 -0500 Subject: [mapserver-users] Displaying Legend Symbols HELP! Message-ID: <8A13872FF821F4488B4A629647DC0C7102C9A1@mailman.nexussoft.com> So I finally got MS 3.6.3 compiled and running. Here's what I got: RH 7.3, installed w/ APACHE but not PHP RPM Proj 4.4.5 with NAD 27 GDAL 1.1.7 Libwww 5.3.2 PHP 4.1.2 Mapserver 3.6.0 GD 1.8.4 with GIF. Everything compiled correctly first time around, on a "cherry" box. PHP test page shows Mapscript is enabled, etc... Supported Image Types (GD) Enabled GIF PNG JPEG WBMP Mapscript Information Version MapServer version 3.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE DL and unpack latest maplab, set it up, demo loads in browser, etc... EXCEPT the symbols in the legend! Firing up maplab, editing the symbols in the layers, symbols don't appear to be loading. Whenever I fire up symbol picker, nothing but red x's and this error: [Sun Nov 3 16:55:46 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/103636054630881.gif [Sun Nov 3 16:55:46 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/103636054630882.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/103636345631541.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/103636345631542.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/103636345631543.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/103636345631545.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/103636345631546.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/103636345631547.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/103636345631544.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/103636345631548.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/1036363456315410.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/1036363456315411.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/1036363456315412.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/103636345631549.gif [Sun Nov 3 17:44:16 2002] [error] [client 192.168.1.25] File does not exist: /var/www/html/ms_tmp/1036363456315413.gif From Antti.Roppola at brs.gov.au Sun Nov 3 22:07:17 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Mon, 4 Nov 2002 17:07:17 +1100 Subject: [mapserver-users] PDF generation Message-ID: <4D6E6CCBC9CED61192720060B06B3DD7C3FA9D@ACTMAIL2> Hi all, I have added a page to the Wiki giving an outline of how I implemented PDF generation in PHP/Mapscript: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapscriptPDF Cheers, Antti From tomka849 at student.liu.se Sun Nov 3 23:03:21 2002 From: tomka849 at student.liu.se (Tomas Kaminskas) Date: Mon, 04 Nov 2002 08:03:21 +0100 Subject: [mapserver-users] Shapefile and coordinate systems Message-ID: <4254645107.4510742546@student.liu.se> Thanks, so is there a solution: I have europe map in .shp format, and I need to find some points here, when I know there coordinates in lat/lon format. If yes, please describe it how to do this. Thanks a lot! Tomas ----- Original Message ----- From: Brent Fraser Date: Sunday, November 3, 2002 6:46 pm Subject: Re: [mapserver-users] Shapefile and coordinate systems > Tomas, > > ESRI's original shapefile specification does not call for storing > thedefinition of the coordinate system anywhere, so you have to > know by some > other means (a metadata file? a sticky note?). > > A couple of years ago ESRI introduced a .prj file to define the > coordinate system of the shapefile (for example, ArcView 3.2 can > use a .prj > file), but it is optional and a lot of data in shapefile format > does not > include it. > > Brent Fraser > GeoAnalytic Inc. > > > ----- Original Message ----- > From: "Tomas Kaminskas" > To: > Sent: Sunday, November 03, 2002 5:58 AM > Subject: [mapserver-users] Shapefile and coordinate systems > > > > Hello, > > maybe this is not a right place to post this message, but I'm > really stuck > with this problem. How shapefiles manage coordinates, how can I > find in what > coordinate system is my concrete shapefile? > > I'm weak in this area, so any help needed! > > Tomas. > > > > From dlipan at pcrai.ro Mon Nov 4 02:36:53 2002 From: dlipan at pcrai.ro (Dragos Lipan) Date: Mon, 04 Nov 2002 12:36:53 +0200 Subject: [mapserver-users] Instalation problems... Message-ID: <3DC64DC5.7010008@pcrai.ro> When trying to install mapserver 3.6.1, after all necesary prerequisites, I found for ./configure --with-gd=/usr --with-postgis --with-gdal --with-proj \ --with-ogr --with-wmsclient the following 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 -L/usr/lib -lgd 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 gdImageGif in -lc... no checking for gdImagePng in -lc... no checking for gdImageJpeg in -lc... no checking for gdImageWBMP in -lc... no checking for gdImageStringFT in -lc... no checking for gdImageStringTTF in -lc... no checking for gdImageString16 in -lc... no checking for gdImageGifPtr in -lc... no using GD ( -DUSE_GD_SWAP_XY) from /usr. 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... checking for gdal-config... (cached) /usr/local/bin/gdal-config checking for OGRRegisterAll in -lgdal.1.1... (cached) yes using OGR from system libs. checking if GDAL support requested... yes checking if PostGIS support requested... yes checking for pg_config... (cached) /usr/local/pgsql/bin/pg_config yes, user supplied pg_config 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... checking for libwww-config... (cached) /usr/local/bin/libwww-config found libwww version 5.4.0 OGC WMS Client Connections enabled (-DUSE_WMS_LYR). checking for potential conflict between system regex and rxposix... checking for regexec in -lrx... (cached) no Compiling with -DIGNORE_MISSING_DATA. checking whether we should enable debug features... checking for PHP/MapScript module options... PHP/MapScript module not configured. creating ./config.status creating Makefile but make ... resulsts as gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_SWAP_XY -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H shp2img.o -L. -lmap -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 -L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lm -o shp2img /usr/lib/libwwwapp.so: undefined reference to `HTZLib_inflate' /usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 HTZLib_inflate I can avoid, but I really can't do anything with libgd.so .. Any ideas? TIA -- ---------------------------- Dragos Lipan TI Parcul National Piatra Craiului 2223 Zarnesti Str. Raului. 27 Tel/fax (04)(068)223008 dlipan at pcrai.ro From lucaa at rc.unesp.br Mon Nov 4 04:07:44 2002 From: lucaa at rc.unesp.br (Luciano Alejandro Arevalo) Date: Mon, 4 Nov 2002 10:07:44 -0200 (EDT) Subject: [mapserver-users] Beginner needs help Message-ID: <1476.200.145.32.179.1036411664.squirrel@ms.rc.unesp.br> I?m a new user of MapServer and i?m having problems in my first aplication. I?ve followed the itasca demo but i found it too complex for a beginner. I would like to know if someone can send me a simple demo that contains zoom and layer changes only. It will be very usefull to me. Thanks a lot. From tpcolson at nexussoft.com Mon Nov 4 05:52:10 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Mon, 4 Nov 2002 08:52:10 -0500 Subject: [mapserver-users] Beginner needs help Message-ID: <8A13872FF821F4488B4A629647DC0C71023F70@mailman.nexussoft.com> Download and unpack "Maplab", which is linked from the site. Getting it up the first time is tricky, but easier than the Mapserver demo. -----Original Message----- From: Luciano Alejandro Arevalo [mailto:lucaa at rc.unesp.br] Sent: Monday, November 04, 2002 7:08 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Beginner needs help I?m a new user of MapServer and i?m having problems in my first aplication. I?ve followed the itasca demo but i found it too complex for a beginner. I would like to know if someone can send me a simple demo that contains zoom and layer changes only. It will be very usefull to me. Thanks a lot. From r00t at ntelos.net Mon Nov 4 07:21:03 2002 From: r00t at ntelos.net (Jim Burnett) Date: Mon, 4 Nov 2002 10:21:03 -0500 Subject: [mapserver-users] Instalation problems... References: <3DC64DC5.7010008@pcrai.ro> Message-ID: <003901c28415$cc58b360$de01a8c0@JOEL> Which version of GD do you have? What linux distro? -jim ----- Original Message ----- From: "Dragos Lipan" To: Sent: Monday, November 04, 2002 5:36 AM Subject: [mapserver-users] Instalation problems... > When trying to install mapserver 3.6.1, > after all necesary prerequisites, > I found for > ./configure --with-gd=/usr --with-postgis --with-gdal --with-proj \ > --with-ogr --with-wmsclient > the following > > > > 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 -L/usr/lib -lgd > 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 gdImageGif in -lc... no > checking for gdImagePng in -lc... no > checking for gdImageJpeg in -lc... no > checking for gdImageWBMP in -lc... no > checking for gdImageStringFT in -lc... no > checking for gdImageStringTTF in -lc... no > checking for gdImageString16 in -lc... no > checking for gdImageGifPtr in -lc... no > using GD ( -DUSE_GD_SWAP_XY) from /usr. > 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... > checking for gdal-config... (cached) /usr/local/bin/gdal-config > checking for OGRRegisterAll in -lgdal.1.1... (cached) yes > using OGR from system libs. > checking if GDAL support requested... yes > checking if PostGIS support requested... yes > checking for pg_config... (cached) /usr/local/pgsql/bin/pg_config > yes, user supplied pg_config > 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... > checking for libwww-config... (cached) /usr/local/bin/libwww-config > found libwww version 5.4.0 > OGC WMS Client Connections enabled (-DUSE_WMS_LYR). > checking for potential conflict between system regex and rxposix... > checking for regexec in -lrx... (cached) no > Compiling with -DIGNORE_MISSING_DATA. > checking whether we should enable debug features... > checking for PHP/MapScript module options... > PHP/MapScript module not configured. > creating ./config.status > creating Makefile > > > > but make ... resulsts as > > gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG > -DUSE_GD_SWAP_XY -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/usr/include -I/usr/local/include -I/usr/local/include > -I/usr/local/pgsql/include -I/usr/local/include > -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H shp2img.o -L. -lmap > -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype > -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 > -L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lwwwxml -lxmltok > -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp > -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream > -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lm -o shp2img > > > /usr/lib/libwwwapp.so: undefined reference to `HTZLib_inflate' > /usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > HTZLib_inflate I can avoid, > but I really can't do anything with libgd.so .. > > Any ideas? > > TIA > > > -- > ---------------------------- > Dragos Lipan > TI > Parcul National Piatra Craiului > 2223 Zarnesti > Str. Raului. 27 > Tel/fax (04)(068)223008 > dlipan at pcrai.ro > > > From dlipan at pcrai.ro Mon Nov 4 07:33:00 2002 From: dlipan at pcrai.ro (Dragos Lipan) Date: Mon, 04 Nov 2002 17:33:00 +0200 Subject: [mapserver-users] Instalation problems... References: <3DC64DC5.7010008@pcrai.ro> <003901c28415$cc58b360$de01a8c0@JOEL> Message-ID: <3DC6932C.4070504@pcrai.ro> Jim Burnett wrote: >Which version of GD do you have? > > GD 2.0.4 >What linux distro? > RH 7.2 >-jim > >----- Original Message ----- >From: "Dragos Lipan" >To: >Sent: Monday, November 04, 2002 5:36 AM >Subject: [mapserver-users] Instalation problems... > > > > >>When trying to install mapserver 3.6.1, >>after all necesary prerequisites, >>I found for >>./configure --with-gd=/usr --with-postgis --with-gdal --with-proj \ >> --with-ogr --with-wmsclient >>the following >> >> >> >>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 -L/usr/lib -lgd >>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 gdImageGif in -lc... no >>checking for gdImagePng in -lc... no >>checking for gdImageJpeg in -lc... no >>checking for gdImageWBMP in -lc... no >>checking for gdImageStringFT in -lc... no >>checking for gdImageStringTTF in -lc... no >>checking for gdImageString16 in -lc... no >>checking for gdImageGifPtr in -lc... no >> using GD ( -DUSE_GD_SWAP_XY) from /usr. >>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... >>checking for gdal-config... (cached) /usr/local/bin/gdal-config >>checking for OGRRegisterAll in -lgdal.1.1... (cached) yes >> using OGR from system libs. >>checking if GDAL support requested... yes >>checking if PostGIS support requested... yes >>checking for pg_config... (cached) /usr/local/pgsql/bin/pg_config >>yes, user supplied pg_config >>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... >>checking for libwww-config... (cached) /usr/local/bin/libwww-config >> found libwww version 5.4.0 >> OGC WMS Client Connections enabled (-DUSE_WMS_LYR). >>checking for potential conflict between system regex and rxposix... >>checking for regexec in -lrx... (cached) no >>Compiling with -DIGNORE_MISSING_DATA. >>checking whether we should enable debug features... >>checking for PHP/MapScript module options... >> PHP/MapScript module not configured. >>creating ./config.status >>creating Makefile >> >> >> >>but make ... resulsts as >> >>gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >>-DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG >>-DUSE_GD_SWAP_XY -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS >>-I/usr/include -I/usr/local/include -I/usr/local/include >>-I/usr/local/pgsql/include -I/usr/local/include >>-I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H shp2img.o -L. -lmap >>-L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype >>-lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 >>-L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lwwwxml -lxmltok >>-lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp >>-lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream >>-lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lm -o shp2img >> >> >>/usr/lib/libwwwapp.so: undefined reference to `HTZLib_inflate' >>/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage' >>collect2: ld returned 1 exit status >>make: *** [shp2img] Error 1 >> >>HTZLib_inflate I can avoid, >>but I really can't do anything with libgd.so .. >> >>Any ideas? >> >>TIA >> >> >>-- >>---------------------------- >>Dragos Lipan >>TI >>Parcul National Piatra Craiului >>2223 Zarnesti >>Str. Raului. 27 >>Tel/fax (04)(068)223008 >>dlipan at pcrai.ro >> >> >> >> >> -- ---------------------------- Dragos Lipan TI Parcul National Piatra Craiului 2223 Zarnesti Str. Raului. 27 Tel/fax (04)(068)223008 dlipan at pcrai.ro From r00t at ntelos.net Mon Nov 4 07:49:25 2002 From: r00t at ntelos.net (Jim Burnett) Date: Mon, 4 Nov 2002 10:49:25 -0500 Subject: [mapserver-users] Instalation problems... References: <3DC64DC5.7010008@pcrai.ro> <003901c28415$cc58b360$de01a8c0@JOEL> <3DC6932C.4070504@pcrai.ro> Message-ID: <004101c28419$c69b98d0$de01a8c0@JOEL> Have you tried installing 1.8x? I had problem with Gd2.0.x and installed GD1.8 and re-compiled mapserver and it worked fine. -jim ----- Original Message ----- From: "Dragos Lipan" To: "Jim Burnett" Cc: Sent: Monday, November 04, 2002 10:33 AM Subject: Re: [mapserver-users] Instalation problems... > Jim Burnett wrote: > > >Which version of GD do you have? > > > > > GD 2.0.4 > > >What linux distro? > > > RH 7.2 > > >-jim > > > >----- Original Message ----- > >From: "Dragos Lipan" > >To: > >Sent: Monday, November 04, 2002 5:36 AM > >Subject: [mapserver-users] Instalation problems... > > > > > > > > > >>When trying to install mapserver 3.6.1, > >>after all necesary prerequisites, > >>I found for > >>./configure --with-gd=/usr --with-postgis --with-gdal --with-proj \ > >> --with-ogr --with-wmsclient > >>the following > >> > >> > >> > >>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 -L/usr/lib -lgd > >>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 gdImageGif in -lc... no > >>checking for gdImagePng in -lc... no > >>checking for gdImageJpeg in -lc... no > >>checking for gdImageWBMP in -lc... no > >>checking for gdImageStringFT in -lc... no > >>checking for gdImageStringTTF in -lc... no > >>checking for gdImageString16 in -lc... no > >>checking for gdImageGifPtr in -lc... no > >> using GD ( -DUSE_GD_SWAP_XY) from /usr. > >>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... > >>checking for gdal-config... (cached) /usr/local/bin/gdal-config > >>checking for OGRRegisterAll in -lgdal.1.1... (cached) yes > >> using OGR from system libs. > >>checking if GDAL support requested... yes > >>checking if PostGIS support requested... yes > >>checking for pg_config... (cached) /usr/local/pgsql/bin/pg_config > >>yes, user supplied pg_config > >>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... > >>checking for libwww-config... (cached) /usr/local/bin/libwww-config > >> found libwww version 5.4.0 > >> OGC WMS Client Connections enabled (-DUSE_WMS_LYR). > >>checking for potential conflict between system regex and rxposix... > >>checking for regexec in -lrx... (cached) no > >>Compiling with -DIGNORE_MISSING_DATA. > >>checking whether we should enable debug features... > >>checking for PHP/MapScript module options... > >> PHP/MapScript module not configured. > >>creating ./config.status > >>creating Makefile > >> > >> > >> > >>but make ... resulsts as > >> > >>gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > >>-DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG > >>-DUSE_GD_SWAP_XY -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > >>-I/usr/include -I/usr/local/include -I/usr/local/include > >>-I/usr/local/pgsql/include -I/usr/local/include > >>-I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H shp2img.o -L. -lmap > >>-L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype > >>-lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 > >>-L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lwwwxml -lxmltok > >>-lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp > >>-lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream > >>-lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lm -o shp2img > >> > >> > >>/usr/lib/libwwwapp.so: undefined reference to `HTZLib_inflate' > >>/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage' > >>collect2: ld returned 1 exit status > >>make: *** [shp2img] Error 1 > >> > >>HTZLib_inflate I can avoid, > >>but I really can't do anything with libgd.so .. > >> > >>Any ideas? > >> > >>TIA > >> > >> > >>-- > >>---------------------------- > >>Dragos Lipan > >>TI > >>Parcul National Piatra Craiului > >>2223 Zarnesti > >>Str. Raului. 27 > >>Tel/fax (04)(068)223008 > >>dlipan at pcrai.ro > >> > >> > >> > >> > >> > > > -- > ---------------------------- > Dragos Lipan > TI > Parcul National Piatra Craiului > 2223 Zarnesti > Str. Raului. 27 > Tel/fax (04)(068)223008 > dlipan at pcrai.ro > > > From tpcolson at nexussoft.com Mon Nov 4 07:43:09 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Mon, 4 Nov 2002 10:43:09 -0500 Subject: [mapserver-users] Instalation problems... Message-ID: <8A13872FF821F4488B4A629647DC0C71023F72@mailman.nexussoft.com> Try GD 1.8.4 -----Original Message----- From: Dragos Lipan [mailto:dlipan at pcrai.ro] Sent: Monday, November 04, 2002 10:33 AM To: Jim Burnett Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Instalation problems... Jim Burnett wrote: >Which version of GD do you have? > > GD 2.0.4 >What linux distro? > RH 7.2 >-jim > >----- Original Message ----- >From: "Dragos Lipan" >To: >Sent: Monday, November 04, 2002 5:36 AM >Subject: [mapserver-users] Instalation problems... > > > > >>When trying to install mapserver 3.6.1, >>after all necesary prerequisites, >>I found for >>./configure --with-gd=/usr --with-postgis --with-gdal --with-proj \ >> --with-ogr --with-wmsclient >>the following >> >> >> >>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 -L/usr/lib -lgd >>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 gdImageGif in -lc... no >>checking for gdImagePng in -lc... no >>checking for gdImageJpeg in -lc... no >>checking for gdImageWBMP in -lc... no >>checking for gdImageStringFT in -lc... no >>checking for gdImageStringTTF in -lc... no >>checking for gdImageString16 in -lc... no >>checking for gdImageGifPtr in -lc... no >> using GD ( -DUSE_GD_SWAP_XY) from /usr. >>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... >>checking for gdal-config... (cached) /usr/local/bin/gdal-config >>checking for OGRRegisterAll in -lgdal.1.1... (cached) yes >> using OGR from system libs. >>checking if GDAL support requested... yes >>checking if PostGIS support requested... yes >>checking for pg_config... (cached) /usr/local/pgsql/bin/pg_config >>yes, user supplied pg_config >>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... >>checking for libwww-config... (cached) /usr/local/bin/libwww-config >> found libwww version 5.4.0 >> OGC WMS Client Connections enabled (-DUSE_WMS_LYR). >>checking for potential conflict between system regex and rxposix... >>checking for regexec in -lrx... (cached) no >>Compiling with -DIGNORE_MISSING_DATA. >>checking whether we should enable debug features... >>checking for PHP/MapScript module options... >> PHP/MapScript module not configured. >>creating ./config.status >>creating Makefile >> >> >> >>but make ... resulsts as >> >>gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >>-DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG >>-DUSE_GD_SWAP_XY -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS >>-I/usr/include -I/usr/local/include -I/usr/local/include >>-I/usr/local/pgsql/include -I/usr/local/include >>-I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H shp2img.o -L. -lmap >>-L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype >>-lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 >>-L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lwwwxml -lxmltok >>-lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp >>-lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream >>-lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lm -o shp2img >> >> >>/usr/lib/libwwwapp.so: undefined reference to `HTZLib_inflate' >>/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage' >>collect2: ld returned 1 exit status >>make: *** [shp2img] Error 1 >> >>HTZLib_inflate I can avoid, >>but I really can't do anything with libgd.so .. >> >>Any ideas? >> >>TIA >> >> >>-- >>---------------------------- >>Dragos Lipan >>TI >>Parcul National Piatra Craiului >>2223 Zarnesti >>Str. Raului. 27 >>Tel/fax (04)(068)223008 >>dlipan at pcrai.ro >> >> >> >> >> -- ---------------------------- Dragos Lipan TI Parcul National Piatra Craiului 2223 Zarnesti Str. Raului. 27 Tel/fax (04)(068)223008 dlipan at pcrai.ro From dlipan at pcrai.ro Mon Nov 4 07:53:57 2002 From: dlipan at pcrai.ro (Dragos Lipan) Date: Mon, 04 Nov 2002 17:53:57 +0200 Subject: [mapserver-users] Instalation problems... References: <3DC64DC5.7010008@pcrai.ro> <003901c28415$cc58b360$de01a8c0@JOEL> <3DC6932C.4070504@pcrai.ro> Message-ID: <3DC69815.4020404@pcrai.ro> ok everything works fine now ... I gave up on configuring fdal :(( and rebuild the freetype lib ... after recompiling gd, it works finally :) Thank you very much. Dragos Lipan wrote: > Jim Burnett wrote: > >> Which version of GD do you have? >> >> > GD 2.0.4 > >> What linux distro? >> > RH 7.2 > >> -jim >> >> ----- Original Message ----- From: "Dragos Lipan" >> To: >> Sent: Monday, November 04, 2002 5:36 AM >> Subject: [mapserver-users] Instalation problems... >> >> >> >> >>> When trying to install mapserver 3.6.1, >>> after all necesary prerequisites, >>> I found for >>> ./configure --with-gd=/usr --with-postgis --with-gdal --with-proj \ >>> --with-ogr --with-wmsclient >>> the following >>> >>> >>> >>> 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 -L/usr/lib -lgd >>> 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 gdImageGif in -lc... no >>> checking for gdImagePng in -lc... no >>> checking for gdImageJpeg in -lc... no >>> checking for gdImageWBMP in -lc... no >>> checking for gdImageStringFT in -lc... no >>> checking for gdImageStringTTF in -lc... no >>> checking for gdImageString16 in -lc... no >>> checking for gdImageGifPtr in -lc... no >>> using GD ( -DUSE_GD_SWAP_XY) from /usr. >>> 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... >>> checking for gdal-config... (cached) /usr/local/bin/gdal-config >>> checking for OGRRegisterAll in -lgdal.1.1... (cached) yes >>> using OGR from system libs. >>> checking if GDAL support requested... yes >>> checking if PostGIS support requested... yes >>> checking for pg_config... (cached) /usr/local/pgsql/bin/pg_config >>> yes, user supplied pg_config >>> 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... >>> checking for libwww-config... (cached) /usr/local/bin/libwww-config >>> found libwww version 5.4.0 >>> OGC WMS Client Connections enabled (-DUSE_WMS_LYR). >>> checking for potential conflict between system regex and rxposix... >>> checking for regexec in -lrx... (cached) no >>> Compiling with -DIGNORE_MISSING_DATA. >>> checking whether we should enable debug features... >>> checking for PHP/MapScript module options... >>> PHP/MapScript module not configured. >>> creating ./config.status >>> creating Makefile >>> >>> >>> >>> but make ... resulsts as >>> >>> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ >>> -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG >>> -DUSE_GD_SWAP_XY -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS >>> -I/usr/include -I/usr/local/include -I/usr/local/include >>> -I/usr/local/pgsql/include -I/usr/local/include >>> -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H shp2img.o -L. >>> -lmap -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg >>> -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 >>> -L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lwwwxml -lxmltok >>> -lxmlparse -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews >>> -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir >>> -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils >>> -lmd5 -ldl -lm -o shp2img >>> >>> >>> /usr/lib/libwwwapp.so: undefined reference to `HTZLib_inflate' >>> /usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage' >>> collect2: ld returned 1 exit status >>> make: *** [shp2img] Error 1 >>> >>> HTZLib_inflate I can avoid, >>> but I really can't do anything with libgd.so .. >>> >>> Any ideas? >>> >>> TIA >>> >>> >>> -- >>> ---------------------------- >>> Dragos Lipan >>> TI >>> Parcul National Piatra Craiului >>> 2223 Zarnesti >>> Str. Raului. 27 >>> Tel/fax (04)(068)223008 >>> dlipan at pcrai.ro >>> >>> >>> >>> >> > > -- ---------------------------- Dragos Lipan TI Parcul National Piatra Craiului 2223 Zarnesti Str. Raului. 27 Tel/fax (04)(068)223008 dlipan at pcrai.ro From krbaker at metacarta.com Mon Nov 4 09:31:39 2002 From: krbaker at metacarta.com (Keith Baker) Date: 04 Nov 2002 12:31:39 -0500 Subject: [mapserver-users] Shapefile Modification Message-ID: <1036431099.22088.141.camel@mosor.internal.metacarta.com> I have some basic shapefiles of the world, and then I have tiger shapfiles. The world shapefiles have some duplicated data such as US roads. I'd like to trim all data within the US out of the world data. This seems like a somewhat common task so I am hoping there is a tool out there? Something like trim north_american_highways.shp with usa_polygon.shp... Hints? tips? evil vibes? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From drew at Zhrodague.net Mon Nov 4 10:23:55 2002 From: drew at Zhrodague.net (Drew from Zhrodague) Date: Mon, 4 Nov 2002 13:23:55 -0500 (EST) Subject: [mapserver-users] Shapefile Modification In-Reply-To: <1036431099.22088.141.camel@mosor.internal.metacarta.com> Message-ID: > I have some basic shapefiles of the world, and then I have tiger > shapfiles. The world shapefiles have some duplicated data such as US > roads. I'd like to trim all data within the US out of the world data. > This seems like a somewhat common task so I am hoping there is a tool > out there? Something like trim north_american_highways.shp with > usa_polygon.shp... Hints? tips? evil vibes? I think ogr2ogr will do that, you'll need to have like a perl wrapper, to compare the existing slices of the data I would think. You can filter-out things with that utility, if I'm not mistaken. From TMitchell at lignum.com Mon Nov 4 10:29:58 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Mon, 4 Nov 2002 10:29:58 -0800 Subject: [mapserver-users] Shapefile Modification Message-ID: Is there an attribute/field in the shapefiles that you could use to specify which features to remove? Is so, I would recommend the ogr2ogr tool (part of www.remotesensing.org/gdal) to convert from shapefile to shapefile including a where clause like "where x = 'USA'". Do you have a usa_polygon.shp file? Do you have access to ArcView? Keith Baker To: mapserver-users Sent by: cc: owner-mapserver-users at lists. Fax to: gis.umn.edu Subject: [mapserver-users] Shapefile Modification 11/04/2002 09:31 AM I have some basic shapefiles of the world, and then I have tiger shapfiles. The world shapefiles have some duplicated data such as US roads. I'd like to trim all data within the US out of the world data. This seems like a somewhat common task so I am hoping there is a tool out there? Something like trim north_american_highways.shp with usa_polygon.shp... Hints? tips? evil vibes? From krbaker at metacarta.com Mon Nov 4 12:07:44 2002 From: krbaker at metacarta.com (Keith Baker) Date: 04 Nov 2002 15:07:44 -0500 Subject: [mapserver-users] Shapefile Modification In-Reply-To: References: Message-ID: <1036440464.22084.144.camel@mosor.internal.metacarta.com> No attribute field :-( Its things like roads and streams which aren't listed by which country they are in. I think doing it with is or isn't inside polygon is the way to go... On Mon, 2002-11-04 at 13:29, Tyler Mitchell wrote: > > Is there an attribute/field in the shapefiles that you could use to specify > which features to remove? Is so, I would recommend the ogr2ogr tool (part > of www.remotesensing.org/gdal) to convert from shapefile to shapefile > including a where clause like "where x = 'USA'". Do you have a > usa_polygon.shp file? Do you have access to ArcView? > > > > Keith Baker > To: mapserver-users > Sent by: cc: > owner-mapserver-users at lists. Fax to: > gis.umn.edu Subject: [mapserver-users] Shapefile Modification > > > 11/04/2002 09:31 AM > > > > > > > I have some basic shapefiles of the world, and then I have tiger > shapfiles. The world shapefiles have some duplicated data such as US > roads. I'd like to trim all data within the US out of the world data. > This seems like a somewhat common task so I am hoping there is a tool > out there? Something like trim north_american_highways.shp with > usa_polygon.shp... Hints? tips? evil vibes? > > > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From krbaker at metacarta.com Mon Nov 4 12:31:40 2002 From: krbaker at metacarta.com (Keith Baker) Date: 04 Nov 2002 15:31:40 -0500 Subject: [mapserver-users] Shapefile Modification In-Reply-To: References: Message-ID: <1036441900.22088.158.camel@mosor.internal.metacarta.com> Humm... All suggestions turned out negitive. ogr2ogr can remove things based on extent, but not based on another shapefile. I may go hack away at it... not sure yet. Seems like something someone must have done. I don't want to have to purchase ArcView for this project if I can avoid it. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From krbaker at metacarta.com Mon Nov 4 12:33:30 2002 From: krbaker at metacarta.com (Keith Baker) Date: 04 Nov 2002 15:33:30 -0500 Subject: [mapserver-users] Extent Recalaculator... Message-ID: <1036442010.22088.161.camel@mosor.internal.metacarta.com> I extracted all of vmap0 into shapfile. The extents in every file are pegged to -180,90,180,-90. This toasts my tilization... As I render every file all of the time. Is there a simple program I can run to regenerate these? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From drew at Zhrodague.net Mon Nov 4 12:41:48 2002 From: drew at Zhrodague.net (Drew from Zhrodague) Date: Mon, 4 Nov 2002 15:41:48 -0500 (EST) Subject: [mapserver-users] Shapefile Modification In-Reply-To: <1036441900.22088.158.camel@mosor.internal.metacarta.com> Message-ID: > Humm... All suggestions turned out negitive. > > ogr2ogr can remove things based on extent, but not based on another > shapefile. I may go hack away at it... not sure yet. Seems like > something someone must have done. I don't want to have to purchase > ArcView for this project if I can avoid it. No, no, use Grass -- took me a while to collect all of the packages, and compile the thing, and I haven't figured-out how to use it yet -- but Grass is supposed to be a free X GIS package (which will run on a variety of platforms). I imagine you'd be able to visually tweak the datasets to your liking that way. Also, there's Maplab, which may help. You'd have to homogenize your data in some way, and specify which maps were superfluous in some way -- we have the same problem (http://www.WiFiMaps.com), but we've just left the extra layers superimposing eachother. From dlowther at ou.edu Mon Nov 4 12:49:10 2002 From: dlowther at ou.edu (Lowther, David W) Date: Mon, 4 Nov 2002 14:49:10 -0600 Subject: [mapserver-users] Shapefile Modification Message-ID: Keith, Have you checked out http://www.freegis.org/index.en.html? GRASS might do what you want or there may be another free / open product that would be helpful. Option 2: How big is the shapefile? I might just do it for you in Arcview if its not too big... Dave -----Original Message----- From: Keith Baker [mailto:krbaker at metacarta.com] Sent: Monday, November 04, 2002 2:32 PM To: Drew from Zhrodague Cc: mapserver-users Subject: Re: [mapserver-users] Shapefile Modification Humm... All suggestions turned out negitive. ogr2ogr can remove things based on extent, but not based on another shapefile. I may go hack away at it... not sure yet. Seems like something someone must have done. I don't want to have to purchase ArcView for this project if I can avoid it. From jmccue at geovue.com Mon Nov 4 12:59:25 2002 From: jmccue at geovue.com (John McCue) Date: Mon, 4 Nov 2002 15:59:25 -0500 Subject: [mapserver-users] Composing symbols Message-ID: Is there a way to make a symbol that is composed of a symbol and a label? I want to use a highway shield character and put the route number from the database on it. Thanks for any help. John From krbaker at metacarta.com Mon Nov 4 13:09:37 2002 From: krbaker at metacarta.com (Keith Baker) Date: 04 Nov 2002 16:09:37 -0500 Subject: [mapserver-users] Shapefile Modification In-Reply-To: <3DC6DEBD.2030504@pobox.com> References: <1036441900.22088.158.camel@mosor.internal.metacarta.com> <3DC6DEBD.2030504@pobox.com> Message-ID: <1036444177.22084.177.camel@mosor.internal.metacarta.com> I was thinking about doing this with the perl shapelib bindings if I couldn't find anyone with a tool. Its a pretty simple task which would make a great utility. Say I have shapefile with polygons (the us for example) Then I have another shapefile which has a bunch of lines. (say from all of north america) I want to remove all lines within the polygons (US), (ideally) trim the lines crossing the boundry, keep others... Here is my issue... I have all of vmap0 in shapefile. I want to trim out the US data that I have duplicated from tiger data. (roads, lakes, etc) What do you think? On Mon, 2002-11-04 at 15:55, Frank Warmerdam wrote: > Keith Baker wrote: > > Humm... All suggestions turned out negitive. > > > > ogr2ogr can remove things based on extent, but not based on another > > shapefile. I may go hack away at it... not sure yet. Seems like > > something someone must have done. I don't want to have to purchase > > ArcView for this project if I can avoid it. > > Keith, > > I have been developing Python bindings for OGR. If you are willing to put > up with some hassles, we could look at doing your filtering/changes as a > python script using OGR. I have only been skimming this thread so you > might need to repeat to me what you are wanting to do, but in general > an aweful lot should be possible with OGR/Python. > > 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 > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From krbaker at metacarta.com Mon Nov 4 13:10:38 2002 From: krbaker at metacarta.com (Keith Baker) Date: 04 Nov 2002 16:10:38 -0500 Subject: [mapserver-users] Extent Recalaculator... Solution In-Reply-To: <1036442010.22088.161.camel@mosor.internal.metacarta.com> References: <1036442010.22088.161.camel@mosor.internal.metacarta.com> Message-ID: <1036444238.22084.179.camel@mosor.internal.metacarta.com> ogr2ogr does this on the fly from what I can tell! Sweet! Keith Baker -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From jmccue at geovue.com Mon Nov 4 14:32:25 2002 From: jmccue at geovue.com (John McCue) Date: Mon, 4 Nov 2002 17:32:25 -0500 Subject: [mapserver-users] Vector output Message-ID: Can MapServer output any vector formats (such as SVG, WMF or PDF), possibly using another library? From matthew.g.krusemark at co.multnomah.or.us Mon Nov 4 14:55:06 2002 From: matthew.g.krusemark at co.multnomah.or.us (KRUSEMARK Matthew G) Date: Mon, 4 Nov 2002 14:55:06 -0800 Subject: [mapserver-users] Composing symbols Message-ID: <9D07D10FA5CAD21192620008C7B14D29049A92C3@ISDEXCH-1> Hi John, Here is an example from a Map file where you create the map symbol and use LABELITEM from the database (dbf of shapefile in this case) LAYER NAME freeway MAXSCALE 600000 STATUS ON DATA fwy TYPE ANNOTATION LABELITEM "number" CLASSITEM "hwy_type" CLASS EXPRESSION "int" COLOR 0 0 0 SYMBOL 'symbols/interstate.gif' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 255 255 255 END END END # freeway annotation I am sure there are other ways as well, -matthew -----Original Message----- From: John McCue To: mapserver-users at lists.gis.umn.edu Sent: 11/4/2002 12:59 PM Subject: [mapserver-users] Composing symbols Is there a way to make a symbol that is composed of a symbol and a label? I want to use a highway shield character and put the route number from the database on it. Thanks for any help. John From krbaker at metacarta.com Mon Nov 4 15:17:25 2002 From: krbaker at metacarta.com (Keith Baker) Date: 04 Nov 2002 18:17:25 -0500 Subject: [mapserver-users] Vector output In-Reply-To: References: Message-ID: <1036451846.22088.194.camel@mosor.internal.metacarta.com> read about 3.7 -- Yes, work in progress is the answer On Mon, 2002-11-04 at 17:32, John McCue wrote: > Can MapServer output any vector formats (such as SVG, WMF or PDF), possibly > using another library? > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From keon at nacse.org Mon Nov 4 15:19:25 2002 From: keon at nacse.org (Dylan Keon) Date: Mon, 04 Nov 2002 15:19:25 -0800 Subject: [mapserver-users] Vector output In-Reply-To: References: Message-ID: <3DC7007D.3080003@nacse.org> John McCue wrote: > Can MapServer output any vector formats (such as SVG, WMF or PDF), > possibly using another library? Not sure about SVG (would be cool) or WMF. I think there's some information in the archives regarding SVG. PDF output is possible from MapServer (there is a shp2pdf utility), but you have more flexibility with PHP MapSscript and libpdf. I've been doing this in my PHP app and it's working well. There was also a message this morning about the same thing...there is a new Wiki entry covering the general method at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapscriptPDF. --Dylan From woodbri at swoodbridge.com Mon Nov 4 15:46:49 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 4 Nov 2002 18:46:49 -0500 Subject: [mapserver-users] Shapefile Modification In-Reply-To: <1036444177.22084.177.camel@mosor.internal.metacarta.com> References: <3DC6DEBD.2030504@pobox.com> Message-ID: <3DC6C099.13849.20D6A5E7@localhost> Keith, That would be one way to do it, but another would be to turn off the NA vmap0 data when you zoom to a certain scale and turn on the tiger data at the same scale. -Steve W. On 4 Nov 2002 at 16:09, Keith Baker wrote: > I was thinking about doing this with the perl shapelib bindings if I > couldn't find anyone with a tool. Its a pretty simple task which > would make a great utility. > > Say I have shapefile with polygons (the us for example) > > Then I have another shapefile which has a bunch of lines. (say from > all of north america) > > I want to remove all lines within the polygons (US), (ideally) trim > the lines crossing the boundry, keep others... > > Here is my issue... I have all of vmap0 in shapefile. I want to trim > out the US data that I have duplicated from tiger data. (roads, > lakes, etc) > > What do you think? > > On Mon, 2002-11-04 at 15:55, Frank Warmerdam wrote: > > Keith Baker wrote: > > > Humm... All suggestions turned out negitive. > > > > > > ogr2ogr can remove things based on extent, but not based on > > > another shapefile. I may go hack away at it... not sure yet. > > > Seems like something someone must have done. I don't want to have > > > to purchase ArcView for this project if I can avoid it. > > > > Keith, > > > > I have been developing Python bindings for OGR. If you are willing > > to put up with some hassles, we could look at doing your > > filtering/changes as a python script using OGR. I have only been > > skimming this thread so you might need to repeat to me what you are > > wanting to do, but in general an aweful lot should be possible with > > OGR/Python. > > > > 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 krbaker at metacarta.com Mon Nov 4 16:08:53 2002 From: krbaker at metacarta.com (Keith Baker) Date: 04 Nov 2002 19:08:53 -0500 Subject: [mapserver-users] Shapefile Modification In-Reply-To: <3DC6C099.13849.20D6A5E7@localhost> References: <3DC6DEBD.2030504@pobox.com> <3DC6C099.13849.20D6A5E7@localhost> Message-ID: <1036454934.22088.199.camel@mosor.internal.metacarta.com> On Mon, 2002-11-04 at 18:46, woodbri at swoodbridge.com wrote: > Keith, > > That would be one way to do it, but another would be to turn off the > NA vmap0 data when you zoom to a certain scale and turn on the tiger > data at the same scale. > > -Steve W. Vmap NA coverage != Tiger Coverage VmapNA is much bigger than Tiger. for example Canada is not covered by Tiger. so this does not work as a scale dependent thing. I want tiger where I have it, and vmap where I have no tiger... -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From assefa at dmsolutions.ca Mon Nov 4 16:20:57 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 04 Nov 2002 19:20:57 -0500 Subject: [mapserver-users] Vector output References: Message-ID: <3DC70EE9.8673066F@dmsolutions.ca> Mapserver 3.7 can output directly to PDF. Please refer to the Wiki page on the mapserver list : http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapserverPDF Later, John McCue wrote: > Can MapServer output any vector formats (such as SVG, WMF or PDF), possibly > using another library? -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From keon at nacse.org Mon Nov 4 17:21:47 2002 From: keon at nacse.org (Dylan Keon) Date: Mon, 04 Nov 2002 17:21:47 -0800 Subject: [mapserver-users] labelObj question - PHP Message-ID: <3DC71D2B.4070802@nacse.org> I'd like to change label text size and symbol size for a couple of layers as part of a conditional statement in PHP MapScript. I'm able to change the symbol size just fine: $layer = $map->getLayerByName('sites'); $layerClass = $layer->getClass(0); $layerClass->set('size', 16); However, I can't figure out how to change the label text size. I see there is a labelObj member to classObj, but can't seem to figure out the correct syntax to access it. Can someone give me a hint? Thanks. :-) From morissette at dmsolutions.ca Mon Nov 4 17:32:43 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 04 Nov 2002 20:32:43 -0500 Subject: [mapserver-users] Projection errors References: Message-ID: <3DC71FBB.9D61C8DF@dmsolutions.ca> You are likely getting this because your 'epsg' file does not contain the 42103 projection definition. This code (42103) is not part of the epsg standard, so you'll have to add a PROJ4 definition for it to your epsg file. On Unix it should be in /usr/local/share/proj/epsg and on Windows either in C:\PROJ or C:\PROJ\NAD Here is the definition in WKT format for projection 42103 that I got from Cubewerx a little while ago, converting it to PROJ4 format shouldn't be too hard: EPSG:42103,"PROJCS[\"WGS 84 / LCC USA\",GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS_1978\",6378135,298.26]],PRIMEM[\"Greenwich\",0],UNIT[\"Decimal_Degree\",0.0174532925199433]],PROJECTION[\"Lambert_Conformal_Conic\"],PARAMETER[\"central_meridian\",-100.0],PARAMETER[\"latitude_of_origin\",0],PARAMETER[\"standard_parallel_1\",33.0],PARAMETER[\"standard_parallel_2\",45.0],PARAMETER[\"false_easting\",0.0],PARAMETER[\"false_northing\",0.0],UNIT[\"Meter\",1]]" Daniel Armando Scalise wrote: > > I am getting the folowing error > > msProcessProjection(): Projection library error. no options found in > 'init' file > > when I try to add the following projection to my map > PROJECTION > "init=epsg:42103" > END > > along with this projection definition to all layers > PROJECTION > "init=epsg:42103" > END > > Any leads greatly appreciated > > Armando Scalise > geoVue > 200 Lincoln Street 5th Floor > Boston, Massachusetts 02111 USA > p 617.451.2520 x122 > f 617.486.3066 > www.geoVue.com > LOCATION INTELLIGENCE > ascalise at geovue.com From johnhagstrand at interageresearch.com Mon Nov 4 19:19:59 2002 From: johnhagstrand at interageresearch.com (John Hagstrand) Date: Mon, 04 Nov 2002 21:19:59 -0600 Subject: [mapserver-users] vector symbol Message-ID: <4.3.2.7.0.20021104211832.03e50948@pop.registeredsite.com> Hello, I'm using an example symbol, cross. SYMBOL NAME 'cross' TYPE VECTOR POINTS 2 0 2 4 -99 -99 0 2 4 2 END STYLE 1 16 END END But it looks like a bowtie, not a cross. As if it's filled. 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 johnhagstrand at interageresearch.com Mon Nov 4 20:17:42 2002 From: johnhagstrand at interageresearch.com (John Hagstrand) Date: Mon, 04 Nov 2002 22:17:42 -0600 Subject: [mapserver-users] WMS getFeatureInfo Message-ID: <4.3.2.7.0.20021104221533.025ea430@pop.registeredsite.com> Hello, I have read the "Mapserver WMS Server HOWTO" document (and I have the OpenGIS specs) but I can't figure out how to set up the mapfile to tell MapServ how to process a getFeatureInfo request. Can you help? 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 johnhagstrand at interageresearch.com Mon Nov 4 20:15:31 2002 From: johnhagstrand at interageresearch.com (John Hagstrand) Date: Mon, 04 Nov 2002 22:15:31 -0600 Subject: [mapserver-users] scale Message-ID: <4.3.2.7.0.20021104221421.025eae78@pop.registeredsite.com> Hello, What is "scale"? As used in the Map File attributes, MINSCALE, etc. How is scale calculated? 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 keon at nacse.org Mon Nov 4 20:46:34 2002 From: keon at nacse.org (Dylan Keon) Date: Mon, 04 Nov 2002 20:46:34 -0800 Subject: [mapserver-users] archive not searching all? Message-ID: <3DC74D2A.5080109@nacse.org> The archive search is not returning results when it should. For example, a simple search on 'shadowcolor' returns no results, while searching for 'shadowcolor mapserver' on Google returns several list archive results. Anyone else notice this? --Dylan From jithesh at flashmail.com Mon Nov 4 21:17:14 2002 From: jithesh at flashmail.com (Jithesh P. Joseph) Date: Mon, 4 Nov 2002 21:17:14 -0800 Subject: [mapserver-users] compilation problem Message-ID: <3dc7545a.162.0@flashmail.com> hello, I have a problem in compiling the mapserver. i think it's related to gd library. os : win 2000 lib used: gd - 1.8.4 freetypelibrary ver 2.1.2 png lib zlib i got the following error gdft.c : fatal error LNK1136: invalid or corrupt file NMAKE : fatal error U1077: 'LIB' : return code '0x470' can anybody help me to derive a solution. Thanks in advance Jithesh _______________________________________________________________ Get Your FREE FlashMail Address now at http://www.flashmail.com It's Free, Easy, & Fun !!! From kob at norkart.no Mon Nov 4 23:25:19 2002 From: kob at norkart.no (Kjell-Olav Bjerknes) Date: Tue, 5 Nov 2002 08:25:19 +0100 Subject: [mapserver-users] MapServer - Win - PostGIS binary fails Message-ID: <01C284A4.E0E8EEA0.kob@norkart.no> Hi. I'm using CygWin, Postgresql 7.2.3-1 and PostGIS 0.7.3 to store my geo_data. I wanted MapServer to show my maps on the web. I downloaded the precompiled binaries for Windows (ms36gif_gdal_pg_wms.zip) from the MapServer site. When I add a PostGIS layer in my map file I get an error: (f.ex. only shape layers works fine) 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 name::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from adresser WHERE the_geom && setSRID('BOX3D(-2600 2860.25,17900 23343.75)'::BOX3D, find_srid('','adresser','the_geom') ) Does this have something to do with the versions I use (PostgreSQL 7.2.3-1/PostGIS 0.7.3) and the versions the binaries support (PostgreSQL 7.2.1/PostGIS 0.7.1)? If so, dows anyone have win32 precompiled binaries supporting these versions? Kjell-Olav From mschulz at webgis.de Mon Nov 4 23:44:10 2002 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 05 Nov 2002 08:44:10 +0100 Subject: [mapserver-users] compilation problem References: <3dc7545a.162.0@flashmail.com> Message-ID: <3DC776CA.EBD27469@webgis.de> Hi, it think it's related to a typo in the gd-1.8.4-Makefile (perhaps only in the gif-patched version, dunno), line 124 says: gdfontg.obj gdtables.obj gdttf.obj gdft.c gdcache.obj gdkanji.obj gd_jpeg.obj it should say: gdfontg.obj gdtables.obj gdttf.obj gdft.obj gdcache.obj gdkanji.obj gd_jpeg.obj ^^^ HTH, Michael "Jithesh P. Joseph" schrieb: > hello, > > I have a problem in compiling the mapserver. i think it's related to gd > library. > > os : > win 2000 > lib used: > gd - 1.8.4 > freetypelibrary ver 2.1.2 > png lib > zlib > > i got the following error > > gdft.c : fatal error LNK1136: invalid or corrupt file > NMAKE : fatal error U1077: 'LIB' : return code '0x470' > > can anybody help me to derive a solution. > > Thanks in advance > > > Jithesh > _______________________________________________________________ > Get Your FREE FlashMail Address now at http://www.flashmail.com > It's Free, Easy, & Fun !!! -- ----------------------------------------------------------- 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 Ellen.Brachmann at LVERMAP.brandenburg.de Mon Nov 4 23:42:38 2002 From: Ellen.Brachmann at LVERMAP.brandenburg.de (Brachmann, Ellen) Date: Tue, 5 Nov 2002 08:42:38 +0100 Subject: [mapserver-users] Cascading WMS Message-ID: <47E1D354A19DD311BA2600105A4234F40221EFB0@ntsv3.lvap.kvv-bb.de> Hallo, I am a mapserver newby and have some problems with the cascading service. The mapserver gave the following message during execution: msDrawRaster(): Image handling error. Unrecognized or unsupported image format We use the MS Version: MapServer version 3.6.1 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=SHAPEFILE with the libraries: PROJ-4.4.5 FREETYPE-2.0.5 GD-1.8.4 W3C-LIB-5.4.0 MS runs correctly without the cascading service with the Mapfile "lgb2.map". The problematically part of the Mapfile is: ... LAYER METADATA "wms_title" "Basistopographie" "wms_srs" "EPSG:25833" END NAME topographie MINSCALE 50000 MAXSCALE 5000000 TYPE RASTER STATUS ON CONNECTIONTYPE WMS CONNECTION "http://pc661/cgi-bin/mapserv?map=wms/lgb2.map&VERSION=1.1.0& \ LAYERS=state,wood,towns,RiversCanals& \ FORMAT=image/png& \ TRANSPARENT=yes" PROJECTION "init=epsg:25833" END END ... And now my questions: - Which tags are necessary for the CONNECTION call ? - Where could the mistake been ? Regards Ellen Mapping Agency of Brandenburg Data Center From ian at geography.leeds.ac.uk Tue Nov 5 01:49:13 2002 From: ian at geography.leeds.ac.uk (Ian Turton) Date: Tue, 05 Nov 2002 09:49:13 +0000 Subject: [mapserver-users] vector symbol In-Reply-To: <4.3.2.7.0.20021104211832.03e50948@pop.registeredsite.com> Message-ID: <5.1.0.14.0.20021105094707.05cd9730@geog.leeds.ac.uk> At 03:19 05/11/02, John Hagstrand wrote: >Hello, > >I'm using an example symbol, cross. > > SYMBOL > NAME 'cross' > TYPE VECTOR > POINTS > 2 0 > 2 4 > -99 -99 > 0 2 > 4 2 > END > STYLE 1 16 END > END > >But it looks like a bowtie, not a cross. As if it's filled. You need to go back to the centre after each end or the polygon cuts the corners giving you a "bow-tie". something like 2,0 0,0 2,4 0,0 0,2 0,0 4,2 should do it Ian From bijua at postmark.net Tue Nov 5 02:08:34 2002 From: bijua at postmark.net (Biju A NAir) Date: Tue, 05 Nov 2002 10:08:34 +0000 Subject: [mapserver-users] gd compilation problem Message-ID: <20021105100834.25343.qmail@venus.postmark.net> hello, when i run the makefile of the gd-1.8.4 lib i got the following error, i have gd.h file /out:pngtogd.exe pngtogd.obj gd.lib libpng.lib zlib.lib pngtogd.obj : error LNK2001: unresolved external symbol _gdImageCreateFromPng gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdCalloc gd.lib(gd.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.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd_io_file.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd_io_dp.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 pngtogd.exe : fatal error LNK1120: 5 unresolved externals NMAKE : fatal error U1077: 'cl' : return code '0x2' can any body tell me what is wrong with that file Thanks in advance Biju From vatsavai at cs.umn.edu Tue Nov 5 07:05:39 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Tue, 5 Nov 2002 09:05:39 -0600 (CST) Subject: [mapserver-users] archive not searching all? In-Reply-To: <3DC74D2A.5080109@nacse.org> Message-ID: <200211051505.JAA22154@pluto.cs.umn.edu> Hello Dylan, We noticed the problem. It seems index got corrupted, rebuilding new index takes couple of hours. We are planning to do that soon. Thanks Raju ---- > The archive search is not returning results when it should. For > example, a simple search on 'shadowcolor' returns no results, while > searching for 'shadowcolor mapserver' on Google returns several list > archive results. Anyone else notice this? > > --Dylan > From krbaker at metacarta.com Tue Nov 5 07:09:59 2002 From: krbaker at metacarta.com (Keith Baker) Date: 05 Nov 2002 10:09:59 -0500 Subject: [mapserver-users] vector symbol In-Reply-To: <5.1.0.14.0.20021105094707.05cd9730@geog.leeds.ac.uk> References: <5.1.0.14.0.20021105094707.05cd9730@geog.leeds.ac.uk> Message-ID: <1036508999.6594.1.camel@mosor.internal.metacarta.com> According to the docs... our original poster is correct the docs state that -99 -99 will cause a "pen up" (Yeah Logo!) On Tue, 2002-11-05 at 04:49, Ian Turton wrote: > At 03:19 05/11/02, John Hagstrand wrote: > >Hello, > > > >I'm using an example symbol, cross. > > > > SYMBOL > > NAME 'cross' > > TYPE VECTOR > > POINTS > > 2 0 > > 2 4 > > -99 -99 > > 0 2 > > 4 2 > > END > > STYLE 1 16 END > > END > > > >But it looks like a bowtie, not a cross. As if it's filled. > > You need to go back to the centre after each end or the polygon cuts the > corners giving you a "bow-tie". > > something like > 2,0 0,0 2,4 0,0 0,2 0,0 4,2 > should do it > > Ian > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From tpcolson at nexussoft.com Tue Nov 5 07:51:59 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Tue, 5 Nov 2002 10:51:59 -0500 Subject: [mapserver-users] How to get rid of stock credits Message-ID: <8A13872FF821F4488B4A629647DC0C71023F75@mailman.nexussoft.com> How to get rid of "this application was built using GMapFactory" credit at bottom of page? From gadoury at dmsolutions.ca Tue Nov 5 10:50:51 2002 From: gadoury at dmsolutions.ca (Dean Gadoury) Date: Tue, 05 Nov 2002 13:50:51 -0500 Subject: [mapserver-users] How to get rid of stock credits References: <8A13872FF821F4488B4A629647DC0C71023F75@mailman.nexussoft.com> Message-ID: <3DC8130B.20903@dmsolutions.ca> MapLab specific questions can be posted the the maplab list. To subscribe see: http://lists.dmsolutions.ca/mailman/listinfo/maplab-users To answer your question though: You can get rid of that text by editing the html code for the page. The trick is that it is found in x_contents.php, where x is the name you gave your application. You can also modify other page elements in this file, like colours, fonts or even the layout, but I will include 2 major cautionary notes. 1. If you modify any code in this file and re-open the project in GMapFactory, your changes will be overwritten automatically by GMF. So if you delete the credit line using your favorite text editor, then open the project in GMF again the credit line will re-appear. This is the expected and desired behaviour of GMF. So go ahead and make changes, but it is best to make sure your application is finalized first. As long as you don't open the project in GMF again you should have no problems. 2. Unless you really know what you're doing you shouldn't edit anything inside the php code tags: I hope that answers your question. Dean Thomas P. Colson wrote: >How to get rid of "this application was built using GMapFactory" credit at bottom of page? > > > > -- ___________________________ Dean Gadoury DM Solutions Group 72 Chamberlain Ave. Third Floor Ottawa, Ontario. K1S 1V9 613 565-5056 ext. 24 gadoury at dmsolutions.ca www.dmsolutions.ca From morissette at dmsolutions.ca Tue Nov 5 11:59:12 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 05 Nov 2002 14:59:12 -0500 Subject: [mapserver-users] Cascading WMS References: <47E1D354A19DD311BA2600105A4234F40221EFB0@ntsv3.lvap.kvv-bb.de> Message-ID: <3DC82310.18AE8A45@dmsolutions.ca> It is possible that the remote WMS server is returning an XML error, which is not handled very nicely by MapServer 3.6. You can try including in your CONNECTION string a EXCEPTIONS=INIMAGE parameter so that the error is returned in image format. Or recompile your MapServer using --enable-debug, and then look in the Apache error_log, you will see the URL that MapServer calls when contacting the remote WMS server, and if you call this URL in a web browser then you'll see what error is being produced. Daniel P.S. I hope your CONNECTION string doesn't contain spaces like in the example quoted in your Email. If it does then theat could be the source of your problems: make sure your CONNECTION parameter is a single string with no space. "Brachmann, Ellen" wrote: > > Hallo, > > I am a mapserver newby and have some problems with the cascading service. > > The mapserver gave the following message during execution: > msDrawRaster(): Image handling error. Unrecognized or unsupported image > format > > We use the MS Version: > MapServer version 3.6.1 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=SHAPEFILE > > with the libraries: > PROJ-4.4.5 > FREETYPE-2.0.5 > GD-1.8.4 > W3C-LIB-5.4.0 > > MS runs correctly without the cascading service with the Mapfile "lgb2.map". > > The problematically part of the Mapfile is: > ... > LAYER > METADATA > "wms_title" "Basistopographie" > "wms_srs" "EPSG:25833" > END > NAME topographie > MINSCALE 50000 > MAXSCALE 5000000 > TYPE RASTER > STATUS ON > CONNECTIONTYPE WMS > CONNECTION > "http://pc661/cgi-bin/mapserv?map=wms/lgb2.map&VERSION=1.1.0& \ > LAYERS=state,wood,towns,RiversCanals& \ > FORMAT=image/png& \ > TRANSPARENT=yes" > PROJECTION > "init=epsg:25833" > END > END > ... > > And now my questions: > - Which tags are necessary for the CONNECTION call ? > - Where could the mistake been ? > > Regards > Ellen > > Mapping Agency of Brandenburg > Data Center From r00t at ntelos.net Tue Nov 5 15:04:10 2002 From: r00t at ntelos.net (Jim Burnett) Date: Tue, 5 Nov 2002 18:04:10 -0500 Subject: [mapserver-users] My gis program Message-ID: <000a01c2851f$a6b7d0e0$de01a8c0@JOEL> Wanted to show you all my guys my program that uses MapScript. I am almost at version 1. http://gis.xerosystems.com/ Its basically a standard gis application using MapScript with the ablility to link between mysql and any shape/parcel. Free/Open to download of course. ;-) Thanks! -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From jithesh at flashmail.com Tue Nov 5 21:19:56 2002 From: jithesh at flashmail.com (Jithesh P. Joseph) Date: Tue, 5 Nov 2002 21:19:56 -0800 Subject: [mapserver-users] compile error Message-ID: <3dc8a67c.161.0@flashmail.com> Hi Mighty list, I'm trying to compile Mapserver on Win 2000 I'm unfortunate to get the right results this time. I get the following errors. ****************************************************** D:\project\mapserver-3.7-dev>nmake /f makefile.vc Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cl /nologo /Zi -I ../gd-1.8.4/include -I../libtiff/include -I../proj/s rc -I../regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_ STRNCASECMP -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_GD_GIF -D USE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_GD_TTF -DGD_HAS_GDIMA GEGIFPTR -DUSE_WMS /c mapserv.c /Fomapserv.obj mapserv.c link /NODEFAULTLIB:libcd mapserv.obj mapserver.lib ../gd-1.8.4/lib/libgd .lib ../lib/jpeg.lib ../lib/libpng.lib ../lib/zlib.lib ../lib/libttf.lib ../lib tiff/lib/libtiff.lib ../proj/src/proj.lib Microsoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. mapserv.obj : error LNK2001: unresolved external symbol _msDrawMap mapserver.lib(maptemplate.obj) : error LNK2001: unresolved external symbol _msDr awMap mapserv.obj : error LNK2001: unresolved external symbol _msDrawQueryMap mapserver.lib(maptemplate.obj) : error LNK2001: unresolved external symbol _msDr awQueryMap mapserver.lib(maptemplate.obj) : error LNK2001: unresolved external symbol _msSa veImageGD mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _msSaveIm ageGD mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _msFreeOu tputFormat mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _msFreeOu tputFormat mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _msPostMa pParseOutputFormatSetup mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _msCreate DefaultOutputFormat mapserver.lib(mapscale.obj) : error LNK2001: unresolved external symbol _msDrawL abel mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msDraw Label mapserver.lib(mapscale.obj) : error LNK2001: unresolved external symbol _msImage SetPenGD mapserver.lib(mapscale.obj) : error LNK2001: unresolved external symbol _msImage InitGD mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msImag eInitGD mapserver.lib(mapscale.obj) : error LNK2001: unresolved external symbol _msImage CreateGD mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msImag eCreateGD mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _msImageC reateGD mapserver.lib(mapscale.obj) : error LNK2001: unresolved external symbol _msDrawM arkerSymbolGD mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msDraw MarkerSymbolGD mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msDraw ShadeSymbolGD mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msDraw LineSymbolGD mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msClea rPenValues mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _msFreeIm ageGD mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromGif mapserver.lib(mapsymbol.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromGif mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _msDraw MarkerSymbol mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _msImag eLoadGD mapserver.lib(maplabel.obj) : error LNK2001: unresolved external symbol _gdFontG iant mapserver.lib(maplabel.obj) : error LNK2001: unresolved external symbol _gdFontL arge mapserver.lib(maplabel.obj) : error LNK2001: unresolved external symbol _gdFontM ediumBold mapserver.lib(maplabel.obj) : error LNK2001: unresolved external symbol _gdFontS mall mapserver.lib(maplabel.obj) : error LNK2001: unresolved external symbol _gdFontT iny mapserver.lib(maplabel.obj) : error LNK2001: unresolved external symbol _msDrawT extGD mapserv.exe : fatal error LNK1120: 24 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. ****************************************************** I'm using gd-1.8.4 Can anybody help me to find out the problem? Thanks in advance Regards Jithesh _______________________________________________________________ Get Your FREE FlashMail Address now at http://www.flashmail.com It's Free, Easy, & Fun !!! From jithesh at flashmail.com Tue Nov 5 21:19:54 2002 From: jithesh at flashmail.com (Jithesh P. Joseph) Date: Tue, 5 Nov 2002 21:19:54 -0800 Subject: [mapserver-users] compile error Message-ID: <3dc8a67a.19c.0@flashmail.com> Hi Mighty list, I'm trying to compile Mapserver on Win 2000 I'm unfortunate to get the right results this time. I get the following errors. ****************************************************** D:\project\mapserver-3.7-dev>nmake /f makefile.vc Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cl /nologo /Zi -I ../gd-1.8.4/include -I../libtiff/include -I../proj/s rc -I../regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_ STRNCASECMP -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_GD_GIF -D USE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_GD_TTF -DGD_HAS_GDIMA GEGIFPTR -DUSE_WMS /c mapserv.c /Fomapserv.obj mapserv.c link /NODEFAULTLIB:libcd mapserv.obj mapserver.lib ../gd-1.8.4/lib/libgd .lib ../lib/jpeg.lib ../lib/libpng.lib ../lib/zlib.lib ../lib/libttf.lib ../lib tiff/lib/libtiff.lib ../proj/src/proj.lib Microsoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. mapserv.obj : error LNK2001: unresolved external symbol _msDrawMap mapserver.lib(maptemplate.obj) : error LNK2001: unresolved external symbol _msDr awMap mapserv.obj : error LNK2001: unresolved external symbol _msDrawQueryMap mapserver.lib(maptemplate.obj) : error LNK2001: unresolved external symbol _msDr awQueryMap mapserver.lib(maptemplate.obj) : error LNK2001: unresolved external symbol _msSa veImageGD mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _msSaveIm ageGD mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _msFreeOu tputFormat mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _msFreeOu tputFormat mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _msPostMa pParseOutputFormatSetup mapserver.lib(mapfile.obj) : error LNK2001: unresolved external symbol _msCreate DefaultOutputFormat mapserver.lib(mapscale.obj) : error LNK2001: unresolved external symbol _msDrawL abel mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msDraw Label mapserver.lib(mapscale.obj) : error LNK2001: unresolved external symbol _msImage SetPenGD mapserver.lib(mapscale.obj) : error LNK2001: unresolved external symbol _msImage InitGD mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msImag eInitGD mapserver.lib(mapscale.obj) : error LNK2001: unresolved external symbol _msImage CreateGD mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msImag eCreateGD mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _msImageC reateGD mapserver.lib(mapscale.obj) : error LNK2001: unresolved external symbol _msDrawM arkerSymbolGD mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msDraw MarkerSymbolGD mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msDraw ShadeSymbolGD mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msDraw LineSymbolGD mapserver.lib(maplegend.obj) : error LNK2001: unresolved external symbol _msClea rPenValues mapserver.lib(maputil.obj) : error LNK2001: unresolved external symbol _msFreeIm ageGD mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromGif mapserver.lib(mapsymbol.obj) : error LNK2001: unresolved external symbol _gdImag eCreateFromGif mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _msDraw MarkerSymbol mapserver.lib(mapraster.obj) : error LNK2001: unresolved external symbol _msImag eLoadGD mapserver.lib(maplabel.obj) : error LNK2001: unresolved external symbol _gdFontG iant mapserver.lib(maplabel.obj) : error LNK2001: unresolved external symbol _gdFontL arge mapserver.lib(maplabel.obj) : error LNK2001: unresolved external symbol _gdFontM ediumBold mapserver.lib(maplabel.obj) : error LNK2001: unresolved external symbol _gdFontS mall mapserver.lib(maplabel.obj) : error LNK2001: unresolved external symbol _gdFontT iny mapserver.lib(maplabel.obj) : error LNK2001: unresolved external symbol _msDrawT extGD mapserv.exe : fatal error LNK1120: 24 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. ****************************************************** I'm using gd-1.8.4 Can anybody help me to find out the problem? Thanks in advance Regards Jithesh _______________________________________________________________ Get Your FREE FlashMail Address now at http://www.flashmail.com It's Free, Easy, & Fun !!! From jithesh at flashmail.com Tue Nov 5 21:55:30 2002 From: jithesh at flashmail.com (Jithesh P. Joseph) Date: Tue, 5 Nov 2002 21:55:30 -0800 Subject: [mapserver-users] mapserver Message-ID: <3dc8aed2.20a.0@flashmail.com> HI, Is their any Mapserver-PHP/mapscript module (precompiled for windows)without libwww (Without WMS support) available for download? Regards Jithesh _______________________________________________________________ Get Your FREE FlashMail Address now at http://www.flashmail.com It's Free, Easy, & Fun !!! From ruben at anet.net.tw Tue Nov 5 21:52:04 2002 From: ruben at anet.net.tw (Ruben Tsui) Date: Wed, 06 Nov 2002 13:52:04 +0800 Subject: [mapserver-users] My gis program In-Reply-To: <000a01c2851f$a6b7d0e0$de01a8c0@JOEL> Message-ID: Hello all, I have this burning question which I've been afraid to ask. Is there a way to run MapServer in-process with Apache (a la mod_perl) to take advantage of any possible performance gain? I tried looking into the docs but counldn't find anything (yet) :( Thanks, Ruben Tsui -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.wood at newgrove.com Wed Nov 6 01:11:12 2002 From: richard.wood at newgrove.com (Richard Wood) Date: Wed, 06 Nov 2002 09:11:12 +0000 Subject: [mapserver-users] FEATUREQUERY Message-ID: <1036573872.3dc8dcb074415@netmail.pipex.net> Hello, I have been using the windows CGI version of Mapserver (v3.5) for about a year now and find it incredibly fast, reliable and robust. I'd like to thank the developers of Mapserver for their skillful and hard work. I would like to use the FEAUTREQUERY cgi command but cannot find any documentation or reference to its use in the mail archives. Is this feature still supported? Does anyone have any experience using it? Any chance of some demo code? Thanks very much in advance Richard Wood ___________ GIS Developer Newgrove Consultants Ltd. 118 Piccadilly London W1J 7NW Telephone: 00 44 (0) 207 569 6856 Fax: 00 44 (0) 207 569 6857 www.newgrove.com From antonienko at el-valles.com Wed Nov 6 04:34:26 2002 From: antonienko at el-valles.com (Antonio Hernandez Sanchez) Date: Wed, 6 Nov 2002 13:34:26 +0100 Subject: [mapserver-users] Installation problems with php_mapscript Message-ID: <001801c28590$dbe15e00$0100a8c0@antonienko> I'm newbie, so excuse me if the solution is obvious, but... I'm trying to install the php extension on IIS 5, with php 4.2.3. I've downloaded the "mapserver-3.6.1-win32-php4.2.1-libwww.zip" file from dmsolutions, and I've copied the php_mapscript_36.dll into my extensions dir. When I try to load the library, this way: dl('php_mapscript_36.dll') I get an error saying "Unable to load dinamic library c:\php\extensions/php_mapscript_36.dll" When I try to load any of the other libraries (like php_mssql.dll), it works fine. What am I doing wrong? (excuse my poor level of english, and thanks in advance) -- Antonio Hern?ndez From woodbri at swoodbridge.com Wed Nov 6 04:59:13 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 6 Nov 2002 07:59:13 -0500 Subject: [mapserver-users] My gis program In-Reply-To: References: <000a01c2851f$a6b7d0e0$de01a8c0@JOEL> Message-ID: <3DC8CBD1.3057.28D27356@localhost> Ruben, No, It currently MUST be built and run as a cgi program. There are thread safety issues that are still being worked on. But this list has representatives of some very large applications that get very high number of hits and performance is not a problem. -Steve W. On 6 Nov 2002 at 13:52, Ruben Tsui wrote: > > Hello all, > > I have this burning question which I've been afraid to ask. > > Is there a way to runMapServer in-process with Apache (a la > mod_perl) > to take advantage of any possible performance gain? > > I tried looking into the docs but counldn't find anything (yet) :( > > Thanks, > Ruben Tsui > From Ellen.Brachmann at LVERMAP.brandenburg.de Wed Nov 6 05:13:13 2002 From: Ellen.Brachmann at LVERMAP.brandenburg.de (Brachmann, Ellen) Date: Wed, 6 Nov 2002 14:13:13 +0100 Subject: [mapserver-users] Cascading WMS Message-ID: <47E1D354A19DD311BA2600105A4234F40221EFBF@ntsv3.lvap.kvv-bb.de> Connection works now, but there is there still another problem: The file "tk10.map" is represented only incompletely. What could be situated? The single dump from the "error_log": ------------------- [Wed Nov 6 12:33:01 2002].615904 WMS GET http://pc661/cgi-bin/mapserv?map=wms/topo.map&VERSION=1.1.0&LAYERS=state,woo d,towns,RiversCanals&FORMAT=image/png&TRANSPARENT=TRUE&REQUEST=GetMap&WIDTH= 646&HEIGHT=520&SRS=EPSG:25833&BBOX=3353964.004764,5765992.908654,3405281.157 774,5807288.341346&EXCEPTIONS=application/vnd.ogc.se_inimage Looking up pc661 Looking up pc661 Contacting pc661 Reading... Read 1Kbytes ... Read 1Kbytes Done! [Wed Nov 6 12:33:01 2002].543259 WMS GET completed OK. [Wed Nov 6 12:33:01 2002].659393 WMS GET http://pc661/cgi-bin/mapserv?map=wms/prod/tk10.map&VERSION=1.1.0&LAYERS=prod ukt&FORMAT=image/png&TRANSPARENT=TRUE&REQUEST=GetMap&WIDTH=646&HEIGHT=520&SR S=EPSG:25833&BBOX=3353964.004764,5765992.908654,3405281.157774,5807288.34134 6&EXCEPTIONS=application/vnd.ogc.se_inimage Looking up pc661 Looking up pc661 Contacting pc661 Reading... Read 1Kbytes Done! [Wed Nov 6 12:33:01 2002].735282 WMS GET completed OK. ------------------- Regards Ellen Mapping Agency of Brandenburg Data Center -------------- next part -------------- A non-text attachment was scrubbed... Name: error.png Type: application/octet-stream Size: 55902 bytes Desc: not available URL: From rmurray at NRCan.gc.ca Wed Nov 6 06:31:11 2002 From: rmurray at NRCan.gc.ca (Murray, Ross) Date: Wed, 6 Nov 2002 09:31:11 -0500 Subject: [mapserver-users] scale Message-ID: <3E3C279AF3F9D411BAA00002A529150E02C518FC@s0-ott-x10.nrn.nrcan.gc.ca> I hate to rush anyone, given the gracious help I have received from listers. However, I would like to see an answer to the below question soon. Specifically, if my maps display the way I want on my monitor (1024X768) how should I adjust maxscale when I am using a different machine (say during presentations to be given, say this Friday)? I can change map size programmatically without trouble but getting the scale right seems to be hit and miss. Is it a true scale or are units like pixels per map unit invloved? -----Original Message----- From: John Hagstrand [mailto:johnhagstrand at interageresearch.com] Sent: Monday, November 04, 2002 11:16 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] scale Hello, What is "scale"? As used in the Map File attributes, MINSCALE, etc. How is scale calculated? 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 pyro-x at ixine.com Wed Nov 6 07:01:04 2002 From: pyro-x at ixine.com (David Monterroso Cabello) Date: Wed, 06 Nov 2002 16:01:04 +0100 Subject: [mapserver-users] Poblem with labeling (cache?) Message-ID: <3DC92EB0.1000500@ixine.com> Hi all, Recently i noticed a strange problem with labeling in my street maps app. My application render 3 maps using php mapscript, first i open de map file and then i render the same map using different extents. The problem show up when only the first map image get labels, the first image is ok, but the next ones get the same labels that were rendered in the first image. I've attached the 3 pictures so you can see what im talking about. Anyways, if i re-read the map file with ms_newMapObj() each time the problem go away, but i would like not to do that cause that means mapscript engine have to do a re-read and re-parse the map file, isn't it?. I'm using mapserver 3.6.1 with PHP mapscript. Many thanx in advance David. -------------- next part -------------- A non-text attachment was scrubbed... Name: 1036585187289252.gif Type: image/gif Size: 1191 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1036585187289253.gif Type: image/gif Size: 1558 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1036585187289254.gif Type: image/gif Size: 1846 bytes Desc: not available URL: From rviancos at imagendeempresas.cl Wed Nov 6 08:58:30 2002 From: rviancos at imagendeempresas.cl (=?iso-8859-1?Q?Ren=E9?= =?iso-8859-1?Q?_Vi=E1ncos?=) Date: Wed, 06 Nov 2002 13:58:30 -0300 Subject: [mapserver-users] compile error in RH 8 & Mdk 9 In-Reply-To: <3dc8a67a.19c.0@flashmail.com> Message-ID: <5.1.0.14.0.20021106135502.009f5950@mail.imagendeempresas.cl> hi, a have a compilation error with mapserver over RedHat 8 & Mandrake 9. The configure script works fine, but when i execute the make command the system gives me a error with many declaration functions, an error with the maptemplate.o file... If anybody knows the solution, please contact me.. thanks... From jeffb at erlandsen.com Wed Nov 6 10:17:14 2002 From: jeffb at erlandsen.com (Jeff Berry) Date: Wed, 6 Nov 2002 10:17:14 -0800 Subject: [mapserver-users] PHPMapScript - Identify Tool Not Working Message-ID: I'm having trouble with the identify tool from the MapScript Gmap demo. I used the Gmap demo as a template...imported my own data and so forth and everything works great except for the identify tool. It only returns "Nothing Found At Query Location". Any suggestions as to why that is? Jeff Berry Erlandsen & Associates P.O. Box 2029 Chelan, WA 98816 (509) 682-4189 jeffb at erlandsen.com From nacional at biosci.cbs.umn.edu Wed Nov 6 10:31:01 2002 From: nacional at biosci.cbs.umn.edu (Pericles S. Nacionales) Date: 06 Nov 2002 12:31:01 -0600 Subject: [mapserver-users] scale In-Reply-To: <3E3C279AF3F9D411BAA00002A529150E02C518FC@s0-ott-x10.nrn.nrcan.gc.ca> References: <3E3C279AF3F9D411BAA00002A529150E02C518FC@s0-ott-x10.nrn.nrcan.gc.ca> Message-ID: <1036607462.10793.10.camel@arceuthobium.ecology.umn.edu> Ross, I think all you need to do is make sure that both the map file you specified in your map file and the image width and height in your html template file are consistent. This may be the reason for your scale problems. -Perry On Wed, 2002-11-06 at 08:31, Murray, Ross wrote: > I hate to rush anyone, given the gracious help I have received from listers. > However, I would like to see an answer to the below question soon. > Specifically, if my maps display the way I want on my monitor (1024X768) how > should I adjust maxscale when I am using a different machine (say during > presentations to be given, say this Friday)? I can change map size > programmatically without trouble but getting the scale right seems to be hit > and miss. Is it a true scale or are units like pixels per map unit invloved? > > -----Original Message----- > From: John Hagstrand [mailto:johnhagstrand at interageresearch.com] > Sent: Monday, November 04, 2002 11:16 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] scale > > > Hello, > > What is "scale"? As used in the Map File attributes, MINSCALE, etc. How > is scale calculated? > > 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 Rich at greenwoodmap.com Wed Nov 6 10:32:18 2002 From: Rich at greenwoodmap.com (Richard Greenwood) Date: Wed, 06 Nov 2002 11:32:18 -0700 Subject: [mapserver-users] compile error in RH 8 & Mdk 9 In-Reply-To: <5.1.0.14.0.20021106135502.009f5950@mail.imagendeempresas.c l> References: <3dc8a67a.19c.0@flashmail.com> Message-ID: <5.1.1.6.0.20021106112750.00ac8880@mail.GreenwoodMap.com> At 01:58 PM 11/6/2002 -0300, you wrote: >hi, a have a compilation error with mapserver over RedHat 8 & Mandrake 9. >The configure script works fine, but when i execute the make command the >system gives me a error with many declaration functions, an error with the >maptemplate.o file... Mandrake 9 comes with gcc 3, which has trouble with mapserver. There has been some discussion on this list regarding various work arounds and I haven't tried all of them. If you have an older Mdk or RH installed somewhere, just compile MS there and copy it to your newer distributions. Mdk 9 also has gcc 2 on the CD, which you could install. Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From steve.lime at dnr.state.mn.us Wed Nov 6 10:52:02 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 06 Nov 2002 12:52:02 -0600 Subject: [mapserver-users] scale Message-ID: Scale is computed based on an "average" monitor resolution of 72 PPI. So, the actual computed scale is likely not correct for a given monitor. That's ok though since for the most part it is used for relative decision making (i.e. turn this off at this value). I advocate using the [scale] substitution value for tuning your mapfile (i.e. setting MINSCALE/MAXSCALE) and not for presentation. Note that the fuzziness in computing a scale "value" doesn't mean that scalebars are fuzzy. They are correct regardless of monitor characteristics. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Murray, Ross" 11/06/02 08:31AM >>> I hate to rush anyone, given the gracious help I have received from listers. However, I would like to see an answer to the below question soon. Specifically, if my maps display the way I want on my monitor (1024X768) how should I adjust maxscale when I am using a different machine (say during presentations to be given, say this Friday)? I can change map size programmatically without trouble but getting the scale right seems to be hit and miss. Is it a true scale or are units like pixels per map unit invloved? -----Original Message----- From: John Hagstrand [mailto:johnhagstrand at interageresearch.com] Sent: Monday, November 04, 2002 11:16 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] scale Hello, What is "scale"? As used in the Map File attributes, MINSCALE, etc. How is scale calculated? 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 pkishor at GeoAnalytics.com Wed Nov 6 17:21:17 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 6 Nov 2002 19:21:17 -0600 Subject: [mapserver-users] My gis program In-Reply-To: <3DC8CBD1.3057.28D27356@localhost> Message-ID: <36BAF21A-F1EF-11D6-838C-0003936306C2@geoanalytics.com> Well, the verdict is far from concrete. I tried running mapserver with mod_perl and received a bunch of errors. But it worked. There was a discussion about this, and it was concluded that the errors were a result of mod_perl. Eventually I got rid of mod_perl and ran mapserver... I still get a bunch of errors... but it works. The errors are mainly of the kind... [Wed Nov 6 17:44:07 2002] index.pl: (in cleanup) Not a HASH reference at /Library/Perl/darwin/mapscript.pm line 1144 during global destruction. [Wed Nov 6 17:44:07 2002] index.pl: (in cleanup) Not a HASH reference at /Library/Perl/darwin/mapscript.pm line 2415 during global destruction. [Wed Nov 6 17:44:07 2002] index.pl: Use of uninitialized value in exists at /Library/Perl/darwin/mapscript.pm line 2417 during global destruction. but, as I said, it still works. I would really like for mapserver to work with mod_perl. Primarily, I would like to use HTML::Mason (or embperl). I have been developing a generic application using HTML::Template, but Mason prefers mod_perl. Steve Lime would be able to comment definitely when that would be possible. Thanks, Puneet. On Wednesday, November 6, 2002, at 06:59 AM, woodbri at swoodbridge.com wrote: > Ruben, > > No, It currently MUST be built and run as a cgi program. There are > thread safety issues that are still being worked on. But this list > has representatives of some very large applications that get very > high number of hits and performance is not a problem. > > -Steve W. > > On 6 Nov 2002 at 13:52, Ruben Tsui wrote: > >> >> Hello all, >> >> I have this burning question which I've been afraid to ask. >> >> Is there a way to runMapServer in-process with Apache (a la >> mod_perl) >> to take advantage of any possible performance gain? >> >> I tried looking into the docs but counldn't find anything (yet) :( >> >> Thanks, >> Ruben Tsui >> > From woodbri at swoodbridge.com Wed Nov 6 21:11:03 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 7 Nov 2002 00:11:03 -0500 Subject: [mapserver-users] My gis program In-Reply-To: <36BAF21A-F1EF-11D6-838C-0003936306C2@geoanalytics.com> References: <3DC8CBD1.3057.28D27356@localhost> Message-ID: <3DC9AF97.11596.2C4C2EC3@localhost> Puneet et al, Yes, it is possible to run as an apache module, but if you start getting multiple hits you run the risk of one process trashing the data of another. I never ran into a problem when I originally had PHP built as an apache module, but then I was the only user :) I know a lot of work has been done regarding thread safety, but I don't think all of the issues have be resolved or if the developer even know what they all might be. This makes it extremely risky for a production environment. YMMV, -Steve W. On 6 Nov 2002 at 19:21, Puneet Kishor wrote: > Well, the verdict is far from concrete. > > I tried running mapserver with mod_perl and received a bunch of > errors. But it worked. There was a discussion about this, and it was > concluded that the errors were a result of mod_perl. Eventually I got > rid of mod_perl and ran mapserver... I still get a bunch of errors... > but it works. The errors are mainly of the kind... > > [Wed Nov 6 17:44:07 2002] index.pl: (in cleanup) Not a HASH > reference at /Library/Perl/darwin/mapscript.pm line 1144 during global > destruction. [Wed Nov 6 17:44:07 2002] index.pl: (in cleanup) Not > a HASH reference at /Library/Perl/darwin/mapscript.pm line 2415 during > global destruction. [Wed Nov 6 17:44:07 2002] index.pl: Use of > uninitialized value in exists at /Library/Perl/darwin/mapscript.pm > line 2417 during global destruction. > > but, as I said, it still works. > > I would really like for mapserver to work with mod_perl. Primarily, I > would like to use HTML::Mason (or embperl). I have been developing a > generic application using HTML::Template, but Mason prefers mod_perl. > > Steve Lime would be able to comment definitely when that would be > possible. > > Thanks, > > Puneet. > > On Wednesday, November 6, 2002, at 06:59 AM, woodbri at swoodbridge.com > wrote: > > > Ruben, > > > > No, It currently MUST be built and run as a cgi program. There are > > thread safety issues that are still being worked on. But this list > > has representatives of some very large applications that get very > > high number of hits and performance is not a problem. > > > > -Steve W. > > > > On 6 Nov 2002 at 13:52, Ruben Tsui wrote: > > > >> > >> Hello all, > >> > >> I have this burning question which I've been afraid to ask. > >> > >> Is there a way to runMapServer in-process with Apache (a la > >> mod_perl) > >> to take advantage of any possible performance gain? > >> > >> I tried looking into the docs but counldn't find anything (yet) :( > >> > >> Thanks, > >> Ruben Tsui > >> > > > > From pradeepkumar at infotech.stph.net Wed Nov 6 21:28:09 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Thu, 7 Nov 2002 10:58:09 +0530 Subject: [mapserver-users] Active X Dll Message-ID: Hi UserList I recollect reading the Mail List Archive of MapServer that enquired about the existence of ActiveX version of Mapserver, I am almost on the same assignment today, of developing a COM dll for MapServer, Did any one of you make any breakthrough with your Active X version? Did you find any further Help regarding that? I will be very happy If you can guide me with Code or design documents or any thing that helps me realising my goal. Thank you Pradeep. Project Lead. Infotech Enterprises Ltd. Hyderabad India. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pradeepkumar at infotech.stph.net Wed Nov 6 21:39:05 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Thu, 7 Nov 2002 11:09:05 +0530 Subject: [mapserver-users] Design Documents Message-ID: Hi User List, I am assigned to create a COM DLL for mapserver, I need help regarding the design of mapserver Can any one help me with some kind of documents on the programmatic design and also the architectural design of mapserver? All your help will be greatly appreciated. Regards Pradeep. Proj Lead InfoTech Enterprises Ltd. Hyderabad India. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pradeepkumar at infotech.stph.net Thu Nov 7 02:09:56 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Thu, 7 Nov 2002 15:39:56 +0530 Subject: [mapserver-users] Design Documents In-Reply-To: <41C1B4C3CA67D2118755006052074F4581B092@topgun.ngis.com.au> Message-ID: Message Hello David, Thank you, I am particularly interested in these areas: a.. The programmatic flow of MapServer. b.. What are the functions that need to be exposed as Interfaces in COM ( A Guideline). c.. Information on the various external libraries(gd,libjpeg,freetype,regex...etc.) interaction with MapServer. d.. Any information on the Architectural Design of mapserver. I will be very thankful if you can help me with the documentation on any of these areas. Regards Pradeep. Proj Lead InfoTech Enterprises Ltd. Hyderabad India. -----Original Message----- From: David Barclay [mailto:david.barclay at ngis.com.au] Sent: Thursday, November 07, 2002 12:09 PM To: 'pradeepkumar at infotech.stph.net' Subject: RE: [mapserver-users] Design Documents Heya Pradeep, We've been working pretty heavily with Mapserver over the last few months in order to develop a .NET wrapper for Mapserver. What areas of mapserver are you looking for documentation/info on, I may be able to help. Kindest regards, ____________________________________________ DAVID BARCLAY Web Architect/Developer david.barclay at ngis.com.au ____________________________________________ _ NGIS Australia National Geographic Information Systems Phone: (08) 9355 2444 Fax: (08) 9355 2722 Lv 1, 47 Burswood Rd Burswood, WA, 6100 -----Original Message----- From: Pradeep [mailto:pradeepkumar at infotech.stph.net] Sent: Thursday, 7 November 2002 1:39 PM To: Mapserver-Users Subject: [mapserver-users] Design Documents Importance: High Hi User List, I am assigned to create a COM DLL for mapserver, I need help regarding the design of mapserver Can any one help me with some kind of documents on the programmatic design and also the architectural design of mapserver? All your help will be greatly appreciated. Regards Pradeep. Proj Lead InfoTech Enterprises Ltd. Hyderabad India. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlipan at pcrai.ro Wed Nov 6 04:41:18 2002 From: dlipan at pcrai.ro (Dragos Lipan) Date: Wed, 06 Nov 2002 14:41:18 +0200 Subject: [mapserver-users] Possible bug? or bad configuration! Message-ID: <3DC90DEE.5080302@pcrai.ro> Testing several old .map files, I noticed that if I use in a Layer Section the keyword 'Size', the output will have all the time black color, no matter what COLOR 193 23 25 I used. It might be a bug (not sure ... can be a misconfiguration???). I'm using Mapserver 3.6.3. -- ---------------------------- Dragos Lipan TI Parcul National Piatra Craiului 2223 Zarnesti Str. Raului. 27 Tel/fax (04)(068)223008 dlipan at pcrai.ro From guillaume.sueur at khi2.fr Thu Nov 7 03:20:12 2002 From: guillaume.sueur at khi2.fr (Guillaume SUEUR) Date: Thu, 07 Nov 2002 12:20:12 +0100 Subject: [mapserver-users] FILTER and MapScript Message-ID: <3DCA4C6C.9090903@khi2.fr> Hi there, I can't get throught setting a filter using MapScript in spite of the examples on the list archive. No filter nor Filteritem are set in the MapFile. the code is : $poLayer->setFilter("([$field]".$operator." '".$value."')"); where operator can be < > <= >= <> or = $field the dbf field to compare the value with $value the value of the filter after execution of this code, all objects of the layer disappear. The filter looks a bit strong ! -- --------------------------- Guillaume SUEUR Ing?nieur d?veloppement SIG GEOSIGNAL 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From krung at cad.go.th Thu Nov 7 03:45:20 2002 From: krung at cad.go.th (Krung Saengpole) Date: Thu, 7 Nov 2002 18:45:20 +0700 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: <200211071845.AA1507574@cad.go.th> Hello all, I had trouble getting perl mapscript run on Apache 1.3.26 under RH 7.2. Mapscript compiled from mapserver 3.6.3. My script is: #!/usr/bin/perl use mapscript; use CGI qw/:standard/; print header(); print start_html(); $map = new mapObj('mapfile.map'); $img = $map->draw(); # <---- error took place here $img->saveImage('file.png', $mapscript::MS_PNG,1,1,0); .... .... What I did wrong with this script or anything else? But I could run this script at command line. I'm very new to Linux. I tried to write a script that open database and run under Apache, it had no problem. So, I thought it should not be wrong with Apache configuration. Thank you in advance. Krung. From r00t at ntelos.net Thu Nov 7 05:59:36 2002 From: r00t at ntelos.net (Jim Burnett) Date: Thu, 7 Nov 2002 08:59:36 -0500 Subject: [mapserver-users] FILTER and MapScript References: <3DCA4C6C.9090903@khi2.fr> Message-ID: <011401c28665$e859bfd0$de01a8c0@JOEL> Here is what I do. $layObj->setFilter ("([$shape_number]=$poly_id)"); -Jim http://www.phpgis.org/ ----- Original Message ----- From: "Guillaume SUEUR" To: "Liste MapServer" Sent: Thursday, November 07, 2002 6:20 AM Subject: [mapserver-users] FILTER and MapScript > Hi there, > I can't get throught setting a filter using MapScript in spite of the > examples on the list archive. > No filter nor Filteritem are set in the MapFile. > the code is : > $poLayer->setFilter("([$field]".$operator." '".$value."')"); > where operator can be < > <= >= <> or = > $field the dbf field to compare the value with > $value the value of the filter > > after execution of this code, all objects of the layer disappear. > The filter looks a bit strong ! > > > > -- > --------------------------- > Guillaume SUEUR > Ing?nieur d?veloppement SIG > GEOSIGNAL > 25bis Avenue Marcel Dassault > 31505 TOULOUSE CEDEX 5 > ---------------------------- > > From lfilak at medinaco.org Thu Nov 7 05:53:52 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 07 Nov 2002 08:53:52 -0500 Subject: [mapserver-users] My gis program Message-ID: <200211071352.gA7DqkX25056@yogi.medinaco.net> Unless I'm mistaken there was an additional thread regarding this. The errors do cause mod_perl to bail but they may be fixable by editting mapscript.pm. I can't seem to find the thread right now - I read talk of an index issue. The critical line I can recall is "return unless $_[0]->isa('HASH');" placed at the beginning of the DESTROY methods. HTH Lowell F. The following message was sent by Puneet Kishor on Wed, 6 Nov 2002 19:21:17 -0600. > Well, the verdict is far from concrete. > > I tried running mapserver with mod_perl and received a bunch of errors. > But it worked. There was a discussion about this, and it was concluded > that the errors were a result of mod_perl. Eventually I got rid of > mod_perl and ran mapserver... I still get a bunch of errors... but it > works. The errors are mainly of the kind... > > [Wed Nov 6 17:44:07 2002] index.pl: (in cleanup) Not a HASH > reference at /Library/Perl/darwin/mapscript.pm line 1144 during global > destruction. > [Wed Nov 6 17:44:07 2002] index.pl: (in cleanup) Not a HASH > reference at /Library/Perl/darwin/mapscript.pm line 2415 during global > destruction. > [Wed Nov 6 17:44:07 2002] index.pl: Use of uninitialized value in > exists at /Library/Perl/darwin/mapscript.pm line 2417 during global > destruction. > > but, as I said, it still works. > > I would really like for mapserver to work with mod_perl. Primarily, I > would like to use HTML::Mason (or embperl). I have been developing a > generic application using HTML::Template, but Mason prefers mod_perl. > > Steve Lime would be able to comment definitely when that would be > possible. > > Thanks, > > Puneet. > > On Wednesday, November 6, 2002, at 06:59 AM, woodbri at swoodbridge.com > wrote: > > > Ruben, > > > > No, It currently MUST be built and run as a cgi program. There are > > thread safety issues that are still being worked on. But this list > > has representatives of some very large applications that get very > > high number of hits and performance is not a problem. > > > > -Steve W. > > > > On 6 Nov 2002 at 13:52, Ruben Tsui wrote: > > > >> > >> Hello all, > >> > >> I have this burning question which I've been afraid to ask. > >> > >> Is there a way to runMapServer in-process with Apache (a la > >> mod_perl) > >> to take advantage of any possible performance gain? > >> > >> I tried looking into the docs but counldn't find anything (yet) :( > >> > >> Thanks, > >> Ruben Tsui > >> > > From joe at otsys.com Thu Nov 7 05:58:43 2002 From: joe at otsys.com (Joe Bussell) Date: Thu, 7 Nov 2002 05:58:43 -0800 Subject: [mapserver-users] My gis program In-Reply-To: <36BAF21A-F1EF-11D6-838C-0003936306C2@geoanalytics.com> References: <3DC8CBD1.3057.28D27356@localhost> <36BAF21A-F1EF-11D6-838C-0003936306C2@geoanalytics.com> Message-ID: <20021107135843.GB16112@otsys.com> The cleanup errors are due to a poorly written interface to SWIG. The code that connects PERL to the underliing C functionality creates ties using perl hashes. Some interconnects are not proper hashes. I have no idea why at this point, but I do know a hack that will eliminate the cleanup warnings. In your mapscript.pm file everywhere you find a DESTROY method you should return directly if the input is not a hash. I offer the following example: sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); delete $ITERATORS{$self}; if (exists $OWNER{$self}) { mapscriptc::delete_rectObj($self); delete $OWNER{$self}; } } On Wed, Nov 06, 2002 at 07:21:17PM -0600, Puneet Kishor wrote: > Well, the verdict is far from concrete. > > I tried running mapserver with mod_perl and received a bunch of errors. > But it worked. There was a discussion about this, and it was concluded > that the errors were a result of mod_perl. Eventually I got rid of > mod_perl and ran mapserver... I still get a bunch of errors... but it > works. The errors are mainly of the kind... > > [Wed Nov 6 17:44:07 2002] index.pl: (in cleanup) Not a HASH > reference at /Library/Perl/darwin/mapscript.pm line 1144 during global > destruction. > [Wed Nov 6 17:44:07 2002] index.pl: (in cleanup) Not a HASH > reference at /Library/Perl/darwin/mapscript.pm line 2415 during global > destruction. > [Wed Nov 6 17:44:07 2002] index.pl: Use of uninitialized value in > exists at /Library/Perl/darwin/mapscript.pm line 2417 during global > destruction. > > but, as I said, it still works. > > I would really like for mapserver to work with mod_perl. Primarily, I > would like to use HTML::Mason (or embperl). I have been developing a > generic application using HTML::Template, but Mason prefers mod_perl. > > Steve Lime would be able to comment definitely when that would be > possible. > > Thanks, > > Puneet. > > On Wednesday, November 6, 2002, at 06:59 AM, woodbri at swoodbridge.com > wrote: > > >Ruben, > > > >No, It currently MUST be built and run as a cgi program. There are > >thread safety issues that are still being worked on. But this list > >has representatives of some very large applications that get very > >high number of hits and performance is not a problem. > > > >-Steve W. > > > >On 6 Nov 2002 at 13:52, Ruben Tsui wrote: > > > >> > >>Hello all, > >> > >>I have this burning question which I've been afraid to ask. > >> > >>Is there a way to runMapServer in-process with Apache (a la > >>mod_perl) > >>to take advantage of any possible performance gain? > >> > >>I tried looking into the docs but counldn't find anything (yet) :( > >> > >>Thanks, > >>Ruben Tsui > >> > > > > -- Cordially, Joe Bussell On Time Systems www.TrafficDodger.com From armin.burger at libero.it Thu Nov 7 06:18:06 2002 From: armin.burger at libero.it (Armin Burger) Date: Thu, 7 Nov 2002 15:18:06 +0100 Subject: [mapserver-users] FILTER and MapScript Message-ID: <200211071424.gA7EO1216935@efferd.nettz.com> Guillaume, I think that a filter on alphanumeric fields needs also the field name to be set in single quotes, like setFilter("('[$field]'".$operator." '".$value."')") and for numeric fields no single quotes at all. I also think that field names for shapefiles need to be in upper case. Armin > Hi there, > I can't get throught setting a filter using MapScript in spite of the > examples on the list archive. > No filter nor Filteritem are set in the MapFile. > the code is : > $poLayer->setFilter("([$field]".$operator." '".$value."')"); > where operator can be < > <= >= <> or = > $field the dbf field to compare the value with > $value the value of the filter > after execution of this code, all objects of the layer disappear. > The filter looks a bit strong ! > -- > --------------------------- > Guillaume SUEUR > Ing?nieur d?veloppement SIG > GEOSIGNAL > 25bis Avenue Marcel Dassault > 31505 TOULOUSE CEDEX 5 > ---------------------------- From jmccue at geovue.com Thu Nov 7 06:20:57 2002 From: jmccue at geovue.com (John McCue) Date: Thu, 7 Nov 2002 09:20:57 -0500 Subject: [mapserver-users] Composing TrueType symbols Message-ID: Is there a way to compose truetype characters into one symbol? I would like to overlay three different highway sheild characters and color each character separately, then overlay the route number. Does someone have an example (possibly using OVERLAYSYMBOL??) From jacobi at dfki.de Thu Nov 7 07:02:34 2002 From: jacobi at dfki.de (Sven Jacobi) Date: Thu, 07 Nov 2002 16:02:34 +0100 Subject: [mapserver-users] msquerybypoit Message-ID: <3DCA808A.9010102@dfki.de> Hello, I want to identify objects in my map like towns or lakes and get specified informations about them by clicking on them. I send the georeferenced coordinates to mapserver and want to show the infos in a new browser. This works fine, but I get always this error message in my new browser where I want to place the informations. "msQueryByPoint(): Search returned no results. No matching record(s) found." Does anybody know where this comes from. Is there perhaps no information stored in the shapefile I use? Any idea by anyone??? Hope to hear from you, Sven From rholloway_1999 at yahoo.com Thu Nov 7 06:44:11 2002 From: rholloway_1999 at yahoo.com (Rob Holloway) Date: Thu, 7 Nov 2002 06:44:11 -0800 (PST) Subject: [mapserver-users] query - no results Message-ID: <20021107144411.17920.qmail@web12505.mail.yahoo.com> Hi Is there a way to replace the mapserver message - msQueryByPoint(): Search returned no results. No matching record(s) found - when no items are returned on a query? I'm sure I've seen customized messages on other applications but I'm not quite sure how to implement such a function. Any suggestions or advice would be appreciated. Thanks! Rob Holloway __________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 From r00t at ntelos.net Thu Nov 7 07:00:27 2002 From: r00t at ntelos.net (Jim Burnett) Date: Thu, 7 Nov 2002 10:00:27 -0500 Subject: [mapserver-users] Line Thickness Message-ID: <016901c2866e$6843bef0$de01a8c0@JOEL> Hey, I looked the the map refrence guide but I couldnt find anything that will allow me to change the thickness of a shape of type LINE. Is there a way to change the thickness ? Would be nice for roads, rivers etc.... thanks -jim phpGIS - OpenSource GIS Software http://www.phpgis.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkishor at GeoAnalytics.com Thu Nov 7 07:48:03 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 7 Nov 2002 09:48:03 -0600 Subject: [mapserver-users] Couldn't run perl mapscript under Apache In-Reply-To: <200211071845.AA1507574@cad.go.th> Message-ID: <4CBB79C8-F268-11D6-838C-0003936306C2@geoanalytics.com> On Thursday, November 7, 2002, at 05:45 AM, Krung Saengpole wrote: > Hello all, > > I had trouble getting perl mapscript run on Apache 1.3.26 under RH > 7.2. Mapscript compiled from mapserver 3.6.3. > > My script is: > > #!/usr/bin/perl > use mapscript; > use CGI qw/:standard/; > > print header(); > print start_html(); > $map = new mapObj('mapfile.map'); > $img = $map->draw(); # <---- error took place here > $img->saveImage('file.png', $mapscript::MS_PNG,1,1,0); > .... > .... > well, you have tell us what the error message was. The code looks ok to me except I would separate the logic and the output... y'know, do all the image generation, and only then start with my print header etc. From krbaker at metacarta.com Thu Nov 7 08:16:54 2002 From: krbaker at metacarta.com (Keith Baker) Date: 07 Nov 2002 11:16:54 -0500 Subject: [mapserver-users] Line Thickness In-Reply-To: <016901c2866e$6843bef0$de01a8c0@JOEL> References: <016901c2866e$6843bef0$de01a8c0@JOEL> Message-ID: <1036685814.12065.55.camel@mosor.internal.metacarta.com> Make it a symbol (ellipse), change the symbol size... On Thu, 2002-11-07 at 10:00, Jim Burnett wrote: > Hey, I looked the the map refrence guide but I couldnt find anything that will allow me to change the thickness of a shape of type LINE. Is there a way to change the thickness ? Would be nice for roads, rivers etc.... > > thanks > -jim > > > > phpGIS - OpenSource GIS Software > http://www.phpgis.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From Steve_Palmer at lpsg.com Thu Nov 7 08:31:42 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Thu, 7 Nov 2002 10:31:42 -0600 Subject: [mapserver-users] Line Thickness Message-ID: <750F5C5447AF18408DC73220B98FEAF7866DC3@lesexch02.lpsg.com> The following works well for rivers (light blue with a dark blue border) and is easily edited for roads, etc. SYMBOL # Solid circle NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME 'Rivers' TYPE LINE .. .. .. CLASS COLOR 0 0 160 SYMBOL 'circle' SIZE 4 OVERLAYSYMBOL 'circle' OVERLAYCOLOR 128 128 255 OVERLAYSIZE 2 END END Note that you can also use SIZEUNITS pixel|feet|inches|kilometers|meters|miles to specify a true width of said features (default is pixels) -----Original Message----- From: Jim Burnett [mailto:r00t at ntelos.net] Sent: Thursday, November 07, 2002 8:00 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Line Thickness Hey, I looked the the map refrence guide but I couldnt find anything that will allow me to change the thickness of a shape of type LINE. Is there a way to change the thickness ? Would be nice for roads, rivers etc.... thanks -jim phpGIS - OpenSource GIS Software http://www.phpgis.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From keon at nacse.org Thu Nov 7 08:59:53 2002 From: keon at nacse.org (Dylan Keon) Date: Thu, 07 Nov 2002 08:59:53 -0800 Subject: [mapserver-users] Re: labelObj question - PHP References: <3DC71D2B.4070802@nacse.org> Message-ID: <3DCA9C09.209@nacse.org> Hi listers, Since there isn't a getLabel method, what is the PHP syntax for setting label parameters? The closest I could find in the archives is something like $layerClass->{label}->set('size', 20); but that didn't work. Thanks for any tips. --Dylan > I'd like to change label text size and symbol size for a couple of > layers as part of a conditional statement in PHP MapScript. I'm able > to change the symbol size just fine: > > $layer = $map->getLayerByName('sites'); > $layerClass = $layer->getClass(0); > $layerClass->set('size', 16); > > However, I can't figure out how to change the label text size. I see > there is a labelObj member to classObj, but can't seem to figure out > the correct syntax to access it. Can someone give me a hint? > > Thanks. :-) From DMartin at erac.com Thu Nov 7 09:06:19 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 7 Nov 2002 11:06:19 -0600 Subject: [mapserver-users] Line Thickness Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B5C@STL-EXBE-I03.corp.erac.com> Using a circle for the symbol: TYPE LINE CLASS SYMBOL 'circle' COLOR 0 0 0 SIZE 3 END -Dan Martin -----Original Message----- From: Jim Burnett [mailto:r00t at ntelos.net] Sent: Thursday, November 07, 2002 9:00 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Line Thickness Hey, I looked the the map refrence guide but I couldnt find anything that will allow me to change the thickness of a shape of type LINE. Is there a way to change the thickness ? Would be nice for roads, rivers etc.... thanks -jim phpGIS - OpenSource GIS Software http://www.phpgis.org/ From morissette at dmsolutions.ca Thu Nov 7 10:48:26 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 07 Nov 2002 13:48:26 -0500 Subject: [mapserver-users] Re: Info on mapscript & php 4.2.3 References: <5.2.0.4.0.20021107124842.03414810@cidoc.iuav.it> Message-ID: <3DCAB57A.229ED2D9@dmsolutions.ca> conrad wrote: > > we have installed mapserver with Mapscript 3.6.3 & php 4.2.3 on a > Linux 7.2 RedHatr. > I see a Warning compiling all the stuff > telling me to re-compile PHP with system REGEX. I tried but i saw a > large amount of errors. > Any suggestion? > I suggest that you look at the first error that you get and try addressing it. You may find that it's a simple thing that is causing all those errors. See also the following Wiki page for detailed instructions on building on RedHat 7.2: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH72 Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From tesimap at hotmail.com Thu Nov 7 11:28:54 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Thu, 07 Nov 2002 20:28:54 +0100 Subject: [mapserver-users] symbols scalable? Message-ID: Hi all, I have this symbol: Symbol Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END is it possible to scale it? I have tried but I haven't results, the symbol always remains of the wideness. I want that when the scale decreases the symbol increase of wideness. Any helps would be appreciated. Ivan _________________________________________________________________ Comunica le tue emozioni in tempo reale con MSN Messenger! http://messenger.msn.it From morissette at dmsolutions.ca Thu Nov 7 11:30:40 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 07 Nov 2002 14:30:40 -0500 Subject: [mapserver-users] Possible bug? or bad configuration! References: <3DC90DEE.5080302@pcrai.ro> Message-ID: <3DCABF60.FD7D9727@dmsolutions.ca> Dragos Lipan wrote: > > Testing several old .map files, I noticed that if > I use in a Layer Section the keyword 'Size', the output will have all > the time black color, > no matter what COLOR 193 23 25 I used. > > It might be a bug (not sure ... can be a misconfiguration???). > I'm using Mapserver 3.6.3. > There is no 'SIZE' keyword in the LAYER object, but there is one in the CLASS object, so I assume that you meant that if a class had a SIZE value set then the color would always be black. This is odd for sure, but color and size are used in classes all the time and they usually work, so perhaps the problem would be with your build of MapServer: first make sure you do not have an old /usr/local/lib/libmap.am (if you have one then delete it), then rerun configure and run 'make clean; make' in the mapserver directory and try again with the new executables. If this still happens after that then please file a bug in the MapServer bugzilla with a sample mapfile that reproduces this. (A ZIP with a tiny mapfile with associated data that reproduces this would be best) Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From krbaker at metacarta.com Thu Nov 7 12:54:21 2002 From: krbaker at metacarta.com (Keith Baker) Date: 07 Nov 2002 15:54:21 -0500 Subject: [mapserver-users] symbols scalable? In-Reply-To: References: Message-ID: <1036702462.12065.58.camel@mosor.internal.metacarta.com> I the class say size x LAYER NAME polar TYPE POLYGON STATUS DEFAULT TILEINDEX polar_tile MAXSCALE 500 CLASS ---> SIZE 4 SYMBOL 1 COLOR 0 0 255 END END On Thu, 2002-11-07 at 14:28, Ivan Paoluzzi wrote: > Hi all, > I have this symbol: > > Symbol > Name 'circle' > Type ELLIPSE > Filled TRUE > Points > 1 1 > END > END > > is it possible to scale it? > I have tried but I haven't results, the symbol always remains of the > wideness. > I want that when the scale decreases the symbol increase of wideness. > > Any helps would be appreciated. > Ivan > > _________________________________________________________________ > Comunica le tue emozioni in tempo reale con MSN Messenger! > http://messenger.msn.it > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From Rich at greenwoodmap.com Thu Nov 7 13:14:41 2002 From: Rich at greenwoodmap.com (Richard Greenwood) Date: Thu, 07 Nov 2002 14:14:41 -0700 Subject: [mapserver-users] query - no results In-Reply-To: <20021107144411.17920.qmail@web12505.mail.yahoo.com> Message-ID: <5.1.1.6.0.20021107141214.00abafb0@mail.GreenwoodMap.com> At 06:44 AM 11/7/2002 -0800, you wrote: >Hi > >Is there a way to replace the mapserver message - >msQueryByPoint(): Search returned no results. No >matching record(s) found - when no items are returned >on a query? I'm sure I've seen customized messages on >other applications but I'm not quite sure how to >implement such a function. Any suggestions or advice >would be appreciated. Thanks! In the WEB interface section, use the keyword EMPTY to define an html page that will be displayed. e.g. WEB EMPTY "nothing.html" END Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From rmurray at NRCan.gc.ca Thu Nov 7 13:25:18 2002 From: rmurray at NRCan.gc.ca (Murray, Ross) Date: Thu, 7 Nov 2002 16:25:18 -0500 Subject: [mapserver-users] epsg >> NOT Message-ID: <3E3C279AF3F9D411BAA00002A529150E02C518FE@s0-ott-x10.nrn.nrcan.gc.ca> Pray tell whither this error: msProcessProjection(): Projection library error. no system list, errno: 2 I am sure I had Proj support as in: But if I include PROJECTION "init=espg:4267" END in LAYER or MAP or both I get the above error, and if I leave it out I get msBuildWMSLayerURL(): WMS connection error. Layer must have an EPSG projection code (in its PROJECTION object or wms_srs metadata) Stalemate, what? From warmerdam at pobox.com Thu Nov 7 13:40:24 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 07 Nov 2002 16:40:24 -0500 Subject: [mapserver-users] epsg >> NOT References: <3E3C279AF3F9D411BAA00002A529150E02C518FE@s0-ott-x10.nrn.nrcan.gc.ca> Message-ID: <3DCADDC8.7000605@pobox.com> Murray, Ross wrote: > Pray tell whither this error: > > msProcessProjection(): Projection library error. no system list, errno: 2 > > I am sure I had Proj support as in: > > > > But if I include > > PROJECTION > "init=espg:4267" > END > > in LAYER or MAP or both I get the above error, and if I leave it out I get > > msBuildWMSLayerURL(): WMS connection error. Layer must have an EPSG > projection code (in its PROJECTION object or wms_srs metadata) > > Stalemate, what? Ross, errno = 2 is ENOENT which means file not found. Sorry for the awful error message, but basically I think the epsg file isn't found. Please ensure that the PROJ_LIB environment variable points to the directory with the EPSG file in it. On unix this is normally installed into /usr/local/share/proj, and it is in the nad directory within the proj distribution. 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 cthomas at rand.org Thu Nov 7 13:46:26 2002 From: cthomas at rand.org (Thomas, Cord) Date: Thu, 7 Nov 2002 13:46:26 -0800 Subject: [mapserver-users] symbols scalable? Message-ID: <2732967B446AFD4E9CDE5E37D642548B9D4EF3@smmail2.rand.org> use SIZEUNITS in the CLASS to specify either pixels (that way it will stay the same screen size) or some measurement scale such as feet or inches -----Original Message----- From: Keith Baker [mailto:krbaker at metacarta.com] Sent: Thursday, November 07, 2002 12:54 PM To: Ivan Paoluzzi Cc: mapserver-users Subject: Re: [mapserver-users] symbols scalable? I the class say size x LAYER NAME polar TYPE POLYGON STATUS DEFAULT TILEINDEX polar_tile MAXSCALE 500 CLASS ---> SIZE 4 SYMBOL 1 COLOR 0 0 255 END END On Thu, 2002-11-07 at 14:28, Ivan Paoluzzi wrote: > Hi all, > I have this symbol: > > Symbol > Name 'circle' > Type ELLIPSE > Filled TRUE > Points > 1 1 > END > END > > is it possible to scale it? > I have tried but I haven't results, the symbol always remains of the > wideness. > I want that when the scale decreases the symbol increase of wideness. > > Any helps would be appreciated. > Ivan > > _________________________________________________________________ > Comunica le tue emozioni in tempo reale con MSN Messenger! > http://messenger.msn.it > > From drew at Zhrodague.net Thu Nov 7 14:40:01 2002 From: drew at Zhrodague.net (Drew from Zhrodague) Date: Thu, 7 Nov 2002 17:40:01 -0500 (EST) Subject: [mapserver-users] symbols scalable? In-Reply-To: <2732967B446AFD4E9CDE5E37D642548B9D4EF3@smmail2.rand.org> Message-ID: > use SIZEUNITS in the CLASS to specify either pixels (that way it will stay > the same screen size) or some measurement scale such as feet or inches On a slightly related note, is there a way to angle a particular scaled-symbol to another object, say the angle of a street, or other feature? From mzm at imagecatinc.com Thu Nov 7 17:28:48 2002 From: mzm at imagecatinc.com (Michael Mio) Date: Thu, 7 Nov 2002 17:28:48 -0800 Subject: [mapserver-users] Help With Interactice Mapserver Applications Message-ID: Hi everyone. I am a relatively new Mapserver user and could use some help on a few things. I am having a hard time getting my Mapserver applications to be interactive. I've found some tutorials online but none of them seem to explain that parts that I need explaining. Lots of the applications I've come across have an interface with a map that you can click on, some toggle buttons, layers you can turn on and off, and then a refresh/query submit button. I am wondering what exactly happens when that submit button is clicked. I guess those values are sent to the Mapserver application and then Mapserver outputs a new map based on those parameters? I kind of understand the .map and template files and how they work, and I have been able to get a page up with some layers showing and some options to choose from. However when I click submit, I get the message saying the page cannot be found. Is there another file I need to make or something? It seems that I am missing a step here. I hope this email makes sense to all of you. Thanks for your time and help. I look forward to hearing from someone! *************** Michael Mio ImageCat, Inc. From dlipan at pcrai.ro Thu Nov 7 22:37:54 2002 From: dlipan at pcrai.ro (Dragos Lipan) Date: Fri, 08 Nov 2002 08:37:54 +0200 Subject: [mapserver-users] Possible bug? or bad configuration! References: <3DC90DEE.5080302@pcrai.ro> <3DCABF60.FD7D9727@dmsolutions.ca> Message-ID: <3DCB5BC2.8050606@pcrai.ro> Daniel Morissette wrote: >Dragos Lipan wrote: > > >>Testing several old .map files, I noticed that if >>I use in a Layer Section the keyword 'Size', the output will have all >>the time black color, >>no matter what COLOR 193 23 25 I used. >> >>It might be a bug (not sure ... can be a misconfiguration???). >>I'm using Mapserver 3.6.3. >> >> >> > >There is no 'SIZE' keyword in the LAYER object, but there is one in the >CLASS object, so I assume that you meant that if a class had a SIZE >value set then the color would always be black. > > Sorry for the lack of precision, of course is on the CLASS object. >This is odd for sure, but color and size are used in classes all the >time and they usually work, so perhaps the problem would be with your >build of MapServer: first make sure you do not have an old >/usr/local/lib/libmap.am (if you have one then delete it), then rerun >configure and run 'make clean; make' in the mapserver directory and try >again with the new executables. > > Checked. No libmap at all on the entire disk. >If this still happens after that then please file a bug in the MapServer >bugzilla with a sample mapfile that reproduces this. (A ZIP with a tiny >mapfile with associated data that reproduces this would be best) > > Did it. >Daniel > > Thank you very much for the amability. Dragos -- ---------------------------- Dragos Lipan TI Parcul National Piatra Craiului 2223 Zarnesti Str. Raului. 27 Tel/fax (04)(068)223008 dlipan at pcrai.ro From fx.gamoy at mapxplore.com Fri Nov 8 01:51:29 2002 From: fx.gamoy at mapxplore.com (fx gamoy) Date: Fri, 8 Nov 2002 09:51:29 -0000 Subject: [mapserver-users] uses of oriented labels Message-ID: <01b101c2870c$693985d0$0201a8c0@mapxplore.com> Hello everybody, i would like to generate oriented labels using a line layer. what is the way tu use labels type true type? I have obtained very small texts without managing to contol their size LAYER NAME "test_line" DATA "voie35k" TYPE ANNOTATION LABELITEM "NAME" CLASS NAME "test_line" COLOR 0 0 0 LABEL FONT "arial" TYPE true type ANGLE "auto" color 0 0 0 ANTIALIAS TRUE PARTIALS TRUE FORCE TRUE END END END Thanks fx GAMOY http://www.mapxplore.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlipan at pcrai.ro Thu Nov 7 22:37:54 2002 From: dlipan at pcrai.ro (Dragos Lipan) Date: Fri, 08 Nov 2002 08:37:54 +0200 Subject: [mapserver-users] Possible bug? or bad configuration! References: <3DC90DEE.5080302@pcrai.ro> <3DCABF60.FD7D9727@dmsolutions.ca> Message-ID: <3DCB5BC2.8050606@pcrai.ro> Daniel Morissette wrote: >Dragos Lipan wrote: > > >>Testing several old .map files, I noticed that if >>I use in a Layer Section the keyword 'Size', the output will have all >>the time black color, >>no matter what COLOR 193 23 25 I used. >> >>It might be a bug (not sure ... can be a misconfiguration???). >>I'm using Mapserver 3.6.3. >> >> >> > >There is no 'SIZE' keyword in the LAYER object, but there is one in the >CLASS object, so I assume that you meant that if a class had a SIZE >value set then the color would always be black. > > Sorry for the lack of precision, of course is on the CLASS object. >This is odd for sure, but color and size are used in classes all the >time and they usually work, so perhaps the problem would be with your >build of MapServer: first make sure you do not have an old >/usr/local/lib/libmap.am (if you have one then delete it), then rerun >configure and run 'make clean; make' in the mapserver directory and try >again with the new executables. > > Checked. No libmap at all on the entire disk. >If this still happens after that then please file a bug in the MapServer >bugzilla with a sample mapfile that reproduces this. (A ZIP with a tiny >mapfile with associated data that reproduces this would be best) > > Did it. >Daniel > > Thank you very much for the amability. Dragos -- ---------------------------- Dragos Lipan TI Parcul National Piatra Craiului 2223 Zarnesti Str. Raului. 27 Tel/fax (04)(068)223008 dlipan at pcrai.ro From mzm at imagecatinc.com Thu Nov 7 17:28:48 2002 From: mzm at imagecatinc.com (Michael Mio) Date: Thu, 7 Nov 2002 17:28:48 -0800 Subject: [mapserver-users] Help With Interactice Mapserver Applications Message-ID: Hi everyone. I am a relatively new Mapserver user and could use some help on a few things. I am having a hard time getting my Mapserver applications to be interactive. I've found some tutorials online but none of them seem to explain that parts that I need explaining. Lots of the applications I've come across have an interface with a map that you can click on, some toggle buttons, layers you can turn on and off, and then a refresh/query submit button. I am wondering what exactly happens when that submit button is clicked. I guess those values are sent to the Mapserver application and then Mapserver outputs a new map based on those parameters? I kind of understand the .map and template files and how they work, and I have been able to get a page up with some layers showing and some options to choose from. However when I click submit, I get the message saying the page cannot be found. Is there another file I need to make or something? It seems that I am missing a step here. I hope this email makes sense to all of you. Thanks for your time and help. I look forward to hearing from someone! *************** Michael Mio ImageCat, Inc. From mh at svaj.dk Fri Nov 8 02:28:20 2002 From: mh at svaj.dk (Martin Hoegh) Date: Fri, 8 Nov 2002 11:28:20 +0100 Subject: [mapserver-users] problem with itemquery Message-ID: <005a01c28711$8f3deff0$6700000a@svaj.local> Hello I have worked with MapServer quite a while now and find it very useful. But I have a problem which I can not solve. I am using ms to generate an image in an html image tag, very simple: The url looks like this: http://localhost/scripts/mapserv.exe?map=../wwwroot/langeland/langeland.map&mode=itemquerymap&qlayer=savebygninger&layers=savebygninger&map_savebygninger_filteritem=id&map_savebygninger_filter=%273440%27&mapxy=shape&IMGSIZE=500+500 and layer definition: LAYER NAME savebygninger TYPE polygon STATUS on DATA save_bygninger_pol_region_s34 METADATA "DESCRIPTION" "savebygninger" "RESULT_FIELDS" "ID" END CLASS name savebygninger TEMPLATE "ttt" SIZE 7 COLOR 255 0 0 END END And the result: msQueryByAttributes(): Search returned no results. No matching record(s) found, layer and area of interest do not overlap. This can not be true, I have checked every thing and it works fine with mode=map but not mode=itemquerymap. The url works fine with other shp-files. What could be wrong? Could it be something with the shp-file? It does not seem to be corrupted. I am using MS 3.6.3, win2000 IIS. /Martin Hoegh -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnhagstrand at interageresearch.com Fri Nov 8 04:08:25 2002 From: johnhagstrand at interageresearch.com (John Hagstrand) Date: Fri, 08 Nov 2002 06:08:25 -0600 Subject: [mapserver-users] wms getFeatureInfo Message-ID: <4.3.2.7.0.20021108060650.024ebdb0@pop.registeredsite.com> Hello, When I execute the WMS getFeatureInfo command, I get this error message. GetFeatureInfo results: Search returned no results. What am I doing wrong? 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 EZS at destraat.nl Fri Nov 8 06:43:00 2002 From: EZS at destraat.nl (Emil Zegers) Date: Fri, 08 Nov 2002 15:43:00 +0100 Subject: [mapserver-users] msquerybypoit Message-ID: Hi Sven, Could you send some of the getfeutureinfo requests you use so I cab take a look at the syntax? You're saying you're sending georeferenced coordinates to mapserver but for the getfetureinfo request you should send x and y location in pixeluntits together via extent coordinates to get a result. Took me some time to figure this out. Take a look at the WMS papers at the OGC site, it has some examples in it making this more clear. Emil Zegers >>> Sven Jacobi 11/07/02 04:02pm >>> Hello, I want to identify objects in my map like towns or lakes and get specified informations about them by clicking on them. I send the georeferenced coordinates to mapserver and want to show the infos in a new browser. This works fine, but I get always this error message in my new browser where I want to place the informations. "msQueryByPoint(): Search returned no results. No matching record(s) found." Does anybody know where this comes from. Is there perhaps no information stored in the shapefile I use? Any idea by anyone??? Hope to hear from you, Sven __________ VChecked ______________________________________________________ This message has been checked for all known viruses ______________________________________________________ From jacobi at dfki.de Fri Nov 8 07:20:41 2002 From: jacobi at dfki.de (Sven Jacobi) Date: Fri, 08 Nov 2002 16:20:41 +0100 Subject: [mapserver-users] Message-ID: <200211081452.gA8Eqrer003275@corp-200.dfki.uni-sb.de> Hi, I read several times about a QUERY OBJECT. I can't find it in my mapfile reference!? Can anyone give me an example hoe to define such an object. Thanks! Sven From tpcolson at nexussoft.com Fri Nov 8 07:27:29 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Fri, 8 Nov 2002 10:27:29 -0500 Subject: [mapserver-users] I know this is a dumb question but... Message-ID: <8A13872FF821F4488B4A629647DC0C7102C9A3@mailman.nexussoft.com> How to set viewable extent? I did this two ways: Took the demo map file and re-hacked it to include my own data Made a new mapfile from scratch. Everything loads up fine in browser window: Legend, Scale, etc... Except in my map window, no Map! I'm convinced I'm not setting something right in extent/scale. I've tried many combinations of numbers, however, something is telling me that the map is being displayed in this hypothetical location several hundred feet to the left of my monitor. So what is the "rule of thumb" when setting extent/scale? (What I'm trying to display is a polyygon, about 40 KM long and 20 wide, with a center point of 78 40'49.99" W 35 46'13.14" N From dlowther at ou.edu Fri Nov 8 07:26:21 2002 From: dlowther at ou.edu (Lowther, David W) Date: Fri, 8 Nov 2002 09:26:21 -0600 Subject: [mapserver-users] PointZ Message-ID: Howdy List, I've seen a couple of things in the archives and in practice letting me know that mapserver doesn't like shapefiles with z (i.e. PointZ) but nothing explaining why... It's easy enough to work around, but I was just curious. Why doesn't mapserver like these shapefiles? Dave Lowther From dlowther at ou.edu Fri Nov 8 07:33:53 2002 From: dlowther at ou.edu (Lowther, David W) Date: Fri, 8 Nov 2002 09:33:53 -0600 Subject: [mapserver-users] I know this is a dumb question but... Message-ID: Thomas, If you don't have some GIS program like Arcview where you can just pull up the shapefile and get coordinates from the mouse then you could do the following: In your map file set your extent WAY big so you know your shape will be visible. Throw a [mapext] in your web template. Zoom / Pan and watch the mapext until you get where you want to be. Paste that extent in your mapfile. Also, make sure you are using decimal degrees and not dd mm ss. Hope that helps, Dave Lowther -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Friday, November 08, 2002 9:27 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] I know this is a dumb question but... How to set viewable extent? I did this two ways: Took the demo map file and re-hacked it to include my own data Made a new mapfile from scratch. Everything loads up fine in browser window: Legend, Scale, etc... Except in my map window, no Map! I'm convinced I'm not setting something right in extent/scale. I've tried many combinations of numbers, however, something is telling me that the map is being displayed in this hypothetical location several hundred feet to the left of my monitor. So what is the "rule of thumb" when setting extent/scale? (What I'm trying to display is a polyygon, about 40 KM long and 20 wide, with a center point of 78 40'49.99" W 35 46'13.14" N From tpcolson at nexussoft.com Fri Nov 8 07:48:16 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Fri, 8 Nov 2002 10:48:16 -0500 Subject: [mapserver-users] I know this is a dumb question but... Message-ID: <8A13872FF821F4488B4A629647DC0C71023F82@mailman.nexussoft.com> Again, further discrediting the GIS community with such arcane inquiries.. So I'm looking at the cords. in ArcMap, and I get for example, my centerpoint as -78.68 35.77 DD. So my extent should be....-77.00 35.00 78.00 36.00 ?? I tried the zoom/pan thing, after several hundred mouse clicks getting no where. -----Original Message----- From: Lowther, David W [mailto:dlowther at ou.edu] Sent: Friday, November 08, 2002 10:34 AM To: Thomas P. Colson Cc: Mapserver-Users (E-mail) Subject: RE: [mapserver-users] I know this is a dumb question but... Thomas, If you don't have some GIS program like Arcview where you can just pull up the shapefile and get coordinates from the mouse then you could do the following: In your map file set your extent WAY big so you know your shape will be visible. Throw a [mapext] in your web template. Zoom / Pan and watch the mapext until you get where you want to be. Paste that extent in your mapfile. Also, make sure you are using decimal degrees and not dd mm ss. Hope that helps, Dave Lowther -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Friday, November 08, 2002 9:27 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] I know this is a dumb question but... How to set viewable extent? I did this two ways: Took the demo map file and re-hacked it to include my own data Made a new mapfile from scratch. Everything loads up fine in browser window: Legend, Scale, etc... Except in my map window, no Map! I'm convinced I'm not setting something right in extent/scale. I've tried many combinations of numbers, however, something is telling me that the map is being displayed in this hypothetical location several hundred feet to the left of my monitor. So what is the "rule of thumb" when setting extent/scale? (What I'm trying to display is a polyygon, about 40 KM long and 20 wide, with a center point of 78 40'49.99" W 35 46'13.14" N From morissette at dmsolutions.ca Fri Nov 8 07:55:50 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 08 Nov 2002 10:55:50 -0500 Subject: [mapserver-users] References: <200211081452.gA8Eqrer003275@corp-200.dfki.uni-sb.de> Message-ID: <3DCBDE86.59736664@dmsolutions.ca> Sven Jacobi wrote: > > I read several times about a QUERY OBJECT. > I can't find it in my mapfile reference!? > > Can anyone give me an example hoe to define such > an object. > The QUERY object has been removed in MapServer 3.5 (or before 3.5, not sure). Anyway, the QUERY functionality has been moved to the CLASS object. So basically to make a layer queriable, you need to set the TEMPLATE parameter in the CLASS objects, and every CLASS that carries a TEMPLATE value will be queriable (i.e. shapes that match that class' expression will be queriable). Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dlowther at ou.edu Fri Nov 8 07:56:50 2002 From: dlowther at ou.edu (Lowther, David W) Date: Fri, 8 Nov 2002 09:56:50 -0600 Subject: [mapserver-users] I know this is a dumb question but... Message-ID: In ArcMap, Zoom to the extent that you want to see in mapserver. The Extent is MinX MinY MaxX MaxY so... Move your mouse to the lower left of your screen - thats minx, miny. Go to the upper right - thats maxx, maxy. -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Friday, November 08, 2002 9:48 AM Cc: Mapserver-Users (E-mail) Subject: RE: [mapserver-users] I know this is a dumb question but... Again, further discrediting the GIS community with such arcane inquiries.. So I'm looking at the cords. in ArcMap, and I get for example, my centerpoint as -78.68 35.77 DD. So my extent should be....-77.00 35.00 78.00 36.00 ?? I tried the zoom/pan thing, after several hundred mouse clicks getting no where. -----Original Message----- From: Lowther, David W [mailto:dlowther at ou.edu] Sent: Friday, November 08, 2002 10:34 AM To: Thomas P. Colson Cc: Mapserver-Users (E-mail) Subject: RE: [mapserver-users] I know this is a dumb question but... Thomas, If you don't have some GIS program like Arcview where you can just pull up the shapefile and get coordinates from the mouse then you could do the following: In your map file set your extent WAY big so you know your shape will be visible. Throw a [mapext] in your web template. Zoom / Pan and watch the mapext until you get where you want to be. Paste that extent in your mapfile. Also, make sure you are using decimal degrees and not dd mm ss. Hope that helps, Dave Lowther -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Friday, November 08, 2002 9:27 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] I know this is a dumb question but... How to set viewable extent? I did this two ways: Took the demo map file and re-hacked it to include my own data Made a new mapfile from scratch. Everything loads up fine in browser window: Legend, Scale, etc... Except in my map window, no Map! I'm convinced I'm not setting something right in extent/scale. I've tried many combinations of numbers, however, something is telling me that the map is being displayed in this hypothetical location several hundred feet to the left of my monitor. So what is the "rule of thumb" when setting extent/scale? (What I'm trying to display is a polyygon, about 40 KM long and 20 wide, with a center point of 78 40'49.99" W 35 46'13.14" N From MJHatcher at space.qinetiq.com Fri Nov 8 08:03:27 2002 From: MJHatcher at space.qinetiq.com (Matthew Hatcher) Date: Fri, 8 Nov 2002 16:03:27 -0000 Subject: [mapserver-users] WFS support Message-ID: Hi all, What is the current progress of the WFS support within mapserver? I've had a look at some of the source code and it seems to be fairly well progressed, but I haven't been able to get a compilation environment working under Win32 yet, so haven't been able to test it. Does anybody have any builds of mapserver (3.6.x or 3.7) that has all the input and wms formats built in? I'm not bothered about PDF, SWF or SDE, but I'd like OGR and GDAL, and WMS/WFS as a minimum. My problems with compilation are a whole other can of worms! My main issues are with getting GD and libwww built properly. I think I've cracked GD, but libwww is still causing me problems. Does anybody have a build of libwww (with all the header files etc. that are needed) that it would be possible for them to make available? Or simply some advice on what pitfalls they've come across. Cheers, Matt. ********************************************************************** 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 tpcolson at nexussoft.com Fri Nov 8 08:04:31 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Fri, 8 Nov 2002 11:04:31 -0500 Subject: [mapserver-users] I know this is a dumb question but... Message-ID: <8A13872FF821F4488B4A629647DC0C71023F83@mailman.nexussoft.com> I got it! Cut N' Paste the extents from Layer -> Properties ->[Data Frame] Thanks for all your help! -----Original Message----- From: Lowther, David W [mailto:dlowther at ou.edu] Sent: Friday, November 08, 2002 10:57 AM To: Thomas P. Colson Cc: Mapserver-Users (E-mail) Subject: RE: [mapserver-users] I know this is a dumb question but... In ArcMap, Zoom to the extent that you want to see in mapserver. The Extent is MinX MinY MaxX MaxY so... Move your mouse to the lower left of your screen - thats minx, miny. Go to the upper right - thats maxx, maxy. -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Friday, November 08, 2002 9:48 AM Cc: Mapserver-Users (E-mail) Subject: RE: [mapserver-users] I know this is a dumb question but... Again, further discrediting the GIS community with such arcane inquiries.. So I'm looking at the cords. in ArcMap, and I get for example, my centerpoint as -78.68 35.77 DD. So my extent should be....-77.00 35.00 78.00 36.00 ?? I tried the zoom/pan thing, after several hundred mouse clicks getting no where. -----Original Message----- From: Lowther, David W [mailto:dlowther at ou.edu] Sent: Friday, November 08, 2002 10:34 AM To: Thomas P. Colson Cc: Mapserver-Users (E-mail) Subject: RE: [mapserver-users] I know this is a dumb question but... Thomas, If you don't have some GIS program like Arcview where you can just pull up the shapefile and get coordinates from the mouse then you could do the following: In your map file set your extent WAY big so you know your shape will be visible. Throw a [mapext] in your web template. Zoom / Pan and watch the mapext until you get where you want to be. Paste that extent in your mapfile. Also, make sure you are using decimal degrees and not dd mm ss. Hope that helps, Dave Lowther -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Friday, November 08, 2002 9:27 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] I know this is a dumb question but... How to set viewable extent? I did this two ways: Took the demo map file and re-hacked it to include my own data Made a new mapfile from scratch. Everything loads up fine in browser window: Legend, Scale, etc... Except in my map window, no Map! I'm convinced I'm not setting something right in extent/scale. I've tried many combinations of numbers, however, something is telling me that the map is being displayed in this hypothetical location several hundred feet to the left of my monitor. So what is the "rule of thumb" when setting extent/scale? (What I'm trying to display is a polyygon, about 40 KM long and 20 wide, with a center point of 78 40'49.99" W 35 46'13.14" N From evilc at evilc.com Fri Nov 8 08:15:59 2002 From: evilc at evilc.com (evilC) Date: Fri, 8 Nov 2002 16:15:59 -0000 Subject: [mapserver-users] Debian ? In-Reply-To: <4.3.2.7.0.20021108060650.024ebdb0@pop.registeredsite.com> Message-ID: <001101c28742$200142a0$7b2bcfd9@Frink> Hi, I am pretty new to linux, I am trying to set up mapserver with php-mapscript under debian (woody 3.0 install) My problem is that I get an error which says that I need to recompile php with --system-regex I think it was as it was complaining that php4's regex was bad. I am sorry about the vagueness of this, but I have been at this 25+ hours straight and it will take a bit of digging to get back to where I was. (I trashed the file system baaaad) Under debian, I am using an install program (apt-get) to install stuff rather than using makefiles, so I don't have control of the options passed to the ./config script I don't think. Can anyone point me in the direction of somewhere that may explain this please ? From mcilhagga at dmsolutions.ca Fri Nov 8 08:24:21 2002 From: mcilhagga at dmsolutions.ca (Dave McIlhagga) Date: Fri, 08 Nov 2002 11:24:21 -0500 Subject: [mapserver-users] [Fwd: use of oriented labels] Message-ID: <3DCBE535.7010407@dmsolutions.ca> -------- Original Message -------- Subject: [maplab-users] use of oriented labels Date: Fri, 8 Nov 2002 14:13:22 -0000 From: "fx gamoy" To: Hello everybody, i would like to generate oriented labels using a line layer. what is the way tu use labels type true type? I have obtained very small texts without managing to contol their size LAYER NAME "test_line" DATA "voie35k" TYPE ANNOTATION LABELITEM "NAME" CLASS NAME "test_line" COLOR 0 0 0 LABEL FONT "arial" TYPE true type ANGLE "auto" color 0 0 0 ANTIALIAS TRUE PARTIALS TRUE FORCE TRUE END END END Thanks fx GAMOY http://www.mapxplore.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 tesimap at hotmail.com Fri Nov 8 10:33:58 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Fri, 08 Nov 2002 19:33:58 +0100 Subject: [mapserver-users] symbols scalable? Message-ID: this is my layer: LAYER NAME alberi DATA alberi TYPE POINT STATUS ON MAXSCALE 5000 CLASS NAME "Alberi" SYMBOL "tent" SIZE 6 ..... Sorry, but I don't find SIZEUNITS in documentation of Class Object. I have tried SYMBOLSCALE of Layer Object but don't work such as I want. I wish that when the scale decreases the symbol increase of wideness and stop it to increase at SIZE wideness. Is it possible? Ivan >From: "Thomas, Cord" >To: "'Keith Baker'" , Ivan Paoluzzi > >CC: mapserver-users >Subject: RE: [mapserver-users] symbols scalable? >Date: Thu, 7 Nov 2002 13:46:26 -0800 > >use SIZEUNITS in the CLASS to specify either pixels (that way it will stay >the same screen size) or some measurement scale such as feet or inches > >-----Original Message----- >From: Keith Baker [mailto:krbaker at metacarta.com] >Sent: Thursday, November 07, 2002 12:54 PM >To: Ivan Paoluzzi >Cc: mapserver-users >Subject: Re: [mapserver-users] symbols scalable? > > >I the class say >size x > > >LAYER > NAME polar > TYPE POLYGON > STATUS DEFAULT > TILEINDEX polar_tile > MAXSCALE 500 > CLASS >---> SIZE 4 > SYMBOL 1 > COLOR 0 0 255 > END >END > > >On Thu, 2002-11-07 at 14:28, Ivan Paoluzzi wrote: > > Hi all, > > I have this symbol: > > > > Symbol > > Name 'circle' > > Type ELLIPSE > > Filled TRUE > > Points > > 1 1 > > END > > END > > > > is it possible to scale it? > > I have tried but I haven't results, the symbol always remains of the > > wideness. > > I want that when the scale decreases the symbol increase of wideness. > > > > Any helps would be appreciated. > > Ivan > > > > _________________________________________________________________ > > Comunica le tue emozioni in tempo reale con MSN Messenger! > > http://messenger.msn.it > > > > _________________________________________________________________ Vuoi chattare e scambiare canzoni e foto con gli amici? http://messenger.msn.it From tesimap at hotmail.com Fri Nov 8 10:39:13 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Fri, 08 Nov 2002 19:39:13 +0100 Subject: [mapserver-users] layer transparent Message-ID: Hi all, I have a layer of polygons: LAYER NAME circ_tutte DATA circ_tutte TYPE POLYGON STATUS ON CLASS COLOR 255 255 208 OUTLINECOLOR 255 0 0 END END Is it possible to render your COLOR transparent? Regards Ivan _________________________________________________________________ Comunica le tue emozioni in tempo reale con MSN Messenger! http://messenger.msn.it From eblevins at insight.rr.com Fri Nov 8 11:18:54 2002 From: eblevins at insight.rr.com (Eric L. Blevins) Date: Fri, 8 Nov 2002 14:18:54 -0500 Subject: [mapserver-users] Debian ? References: <001101c28742$200142a0$7b2bcfd9@Frink> Message-ID: <005701c2875b$b0fa1bb0$0201a8c0@Gateway> We had similar problems when installing, some of our packages like PHP were installed from RPM (RedHat 8.0) system. We found the best thing to do is remove any pre-installed packages. Then compile each package from the source code. This way you can specify the options you need to the configure script and get everything up and running. It is not too much more work to compile from source, just read the documents for each package. Good luck! Eric L. Blevins www.WiFiMaps.com ----- Original Message ----- From: "evilC" To: Sent: Friday, November 08, 2002 11:15 AM Subject: [mapserver-users] Debian ? > Hi, I am pretty new to linux, I am trying to set up mapserver with > php-mapscript under debian (woody 3.0 install) > My problem is that I get an error which says that I need to recompile > php with --system-regex I think it was as it was complaining that php4's > regex was bad. > I am sorry about the vagueness of this, but I have been at this 25+ > hours straight and it will take a bit of digging to get back to where I > was. (I trashed the file system baaaad) > Under debian, I am using an install program (apt-get) to install stuff > rather than using makefiles, so I don't have control of the options > passed to the ./config script I don't think. Can anyone point me in the > direction of somewhere that may explain this please ? > > From Marc-Andre.Morin at drdc-rddc.gc.ca Fri Nov 8 11:23:33 2002 From: Marc-Andre.Morin at drdc-rddc.gc.ca (=?iso-8859-1?Q?=22Morin=2C_Marc-Andr=E9=22?=) Date: Fri, 8 Nov 2002 14:23:33 -0500 Subject: [mapserver-users] How to run MapServer with Tomcat 4.1? Message-ID: <85F883EB8B41D61181C80002A541DB96C569B6@valcartierex.drev.dnd.ca> Hi everybody, I'm trying to run MapServer Demo Application with Tomcat 4.1 from Apache. If I have well understood the documention about it ( http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html ), my CGI script has to be placed in the WEB-INF folder of my web application. My web.xml file seems like that: MapServer Demo MapServer Demo Application cgi org.apache.catalina.servlets.CGIServlet clientInputTimeout 100 debug 6 cgiPathPrefix WEB-INF/cgi-bin 5 cgi /cgi-bin/* And my demo_init.html file seems like that: 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:


If anyone could help me, it would be really appreciated! Thanks in advance, Marc-Andr? From mzm at imagecatinc.com Fri Nov 8 13:12:08 2002 From: mzm at imagecatinc.com (Michael Mio) Date: Fri, 8 Nov 2002 13:12:08 -0800 Subject: [mapserver-users] Help With Queries Message-ID: Hi everyone. Well I got my page working with zooming, and panning, and turning layers on and off. Many thanks to all that replied and helped me out. Now I am having some trouble with doing some queries. I have been using the Mapserver Demo as a reference and have been trying to follow that example. However my page is not working the way the demo is. For the two layers that I want to do queries on , I have three files. So for a raods layer, I have roads.html, roads_header.html, and roads_footer.html. The header file sets up the table I will use to store the information, the body file has the field names I want returned, such as [Name] for the Name field, and the footer just closes off the table I am storing the information in. I also added a header and footer file for my main template. The header of that returns coordinate information for my query and the footer returns two maps, a standard querymap and a cached query map, which show the area I am querying. So when I click on a road, it goes to the new page, and the coordinate information comes up and the standard query map comes up. The cached query map doesn't appear and when I look in the temp directory for the qy file it is trying to access, it is there. Then for the information I want returned, the table comes up, but for the answers, whatever I defined in my roads.html is what shows up. So if I wanted the [Name] field to be returned, [Name] shows up, and not the actual name of the road. Anyone have any ideas or suggestions for this? I hope this email has been clear. Thank you for your time. *************** Michael Mio ImageCat, Inc. From DMartin at erac.com Fri Nov 8 13:27:27 2002 From: DMartin at erac.com (Martin, Daniel) Date: Fri, 8 Nov 2002 15:27:27 -0600 Subject: [mapserver-users] layer transparent Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B5E@STL-EXBE-I03.corp.erac.com> There are two ways to go about that, AFAIK. They are quite different, but it depends on what effect you are trying to achieve. One is to use a PIXMAP symbol with a setting for TRANSPARENT: SYMBOL NAME 'dither-black-25_percent' TYPE PIXMAP IMAGE dither-black-25_Percent.gif TRANSPARENT 1 END In that case, the color in the palette index 1 would be transparent. Newer versions of MapServer (not sure, I think 3.6+) support a setting in the layer object: LAYER NAME "MY LAYER" TRANSPARENCY 30 This sets the layer at 30% of full. Hope that helps, Dan > -----Original Message----- > From: Ivan Paoluzzi [mailto:tesimap at hotmail.com] > Sent: Friday, November 08, 2002 12:39 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] layer transparent > > > Hi all, > I have a layer of polygons: > > LAYER > NAME circ_tutte > DATA circ_tutte > TYPE POLYGON > STATUS ON > CLASS > COLOR 255 255 208 > OUTLINECOLOR 255 0 0 > END > END > > Is it possible to render your COLOR transparent? > > Regards > Ivan > > _________________________________________________________________ > Comunica le tue emozioni in tempo reale con MSN Messenger! > http://messenger.msn.it > From steve.lime at dnr.state.mn.us Fri Nov 8 13:55:41 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 08 Nov 2002 15:55:41 -0600 Subject: [mapserver-users] symbols scalable? Message-ID: It's possible with truetype text but not in general with other symbol types. Steve >>> Drew from Zhrodague 11/07/02 04:40PM >>> > use SIZEUNITS in the CLASS to specify either pixels (that way it will stay > the same screen size) or some measurement scale such as feet or inches On a slightly related note, is there a way to angle a particular scaled-symbol to another object, say the angle of a street, or other feature? From paul at cnt.org Fri Nov 8 14:15:53 2002 From: paul at cnt.org (Paul Smith) Date: Fri, 8 Nov 2002 16:15:53 -0600 Subject: [mapserver-users] Associating Postgresql data with shapes from a shapefile Message-ID: I have a shapefile with DBF, using PHP mapscript. I want to pull in data from a Postgresql database query that I can associate with shapes in the shapefile using an index that's in the DBF. The purpose is then to be able to use the new data in the "setExpression" method of a layer class. What's the best way to do this? I want to do this on the fly without creating a new shapefile/DBF, the main reason being I want to keep the data in the Postgresql database. -- Paul Smith Center for Neighborhood Technology Chicago, IL USA From pkishor at GeoAnalytics.com Fri Nov 8 14:50:40 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 8 Nov 2002 16:50:40 -0600 Subject: [mapserver-users] Debian ? In-Reply-To: <001101c28742$200142a0$7b2bcfd9@Frink> Message-ID: <81008BC4-F36C-11D6-838C-0003936306C2@geoanalytics.com> On Friday, November 8, 2002, at 10:15 AM, evilC wrote: > Hi, I am pretty new to linux, I am trying to set up mapserver with > php-mapscript under debian (woody 3.0 install) > My problem is that I get an error which says that I need to recompile > php with --system-regex I think it was as it was complaining that > php4's > regex was bad. well, that's what you need to do. If apt-get is unable to do that for you then you need to download the source and configure with --system-regex, make, make install. pk/ From pkishor at GeoAnalytics.com Fri Nov 8 14:55:47 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 8 Nov 2002 16:55:47 -0600 Subject: [mapserver-users] Help With Interactice Mapserver Applications In-Reply-To: Message-ID: <3805E20A-F36D-11D6-838C-0003936306C2@geoanalytics.com> On Thursday, November 7, 2002, at 07:28 PM, Michael Mio wrote: > Hi everyone. I am a relatively new Mapserver user and could use some > help on > a few things. I am having a hard time getting my Mapserver > applications to > be interactive. I've found some tutorials online but none of them seem > to > explain that parts that I need explaining. Lots of the applications > I've > come across have an interface with a map that you can click on, some > toggle > buttons, layers you can turn on and off, and then a refresh/query > submit > button. I am wondering what exactly happens when that submit button is > clicked. I guess those values are sent to the Mapserver application > and then > Mapserver outputs a new map based on those parameters? I kind of > understand > the .map and template files and how they work, and I have been able to > get a > page up with some layers showing and some options to choose from. well, you got that right. Mapserver needs the map file at the very least to create a map. If you were to not give it any value, it would create a map based on the values from the map file. If you send some values to mapserver, it customizes the default map for you. No matter what method you are using, mapserver as a cgi or mapserver with mapscript, you need to send the values correctly to mapserver. That is what the submit button does... tells it to either turn on|off a layer, pan|zoom|query the map, etc. > However > when I click submit, I get the message saying the page cannot be found. check out your web page, the one where you click submit... you clicking submit to a form... the form has an action... that action tells it which page to go to... that page has the info necessary to make the calls to mapserver. I am assuming you are using mapserver as a cgi. Open up the files in the itasca demo with a text editor and things will be clear to you... provided, of course, that you have at least some experience with web scripts. It is quite simple. The itasca demo is a great place to start. If you are using php/mapscript, check out dmsolutions' gmap scripts, or with perl check out the mapquakes.pl... wiki has a lot of help. Hth. Puneet. > From tpcolson at nexussoft.com Fri Nov 8 15:32:38 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Fri, 8 Nov 2002 18:32:38 -0500 Subject: [mapserver-users] Performance issues Message-ID: <8A13872FF821F4488B4A629647DC0C7102C9A4@mailman.nexussoft.com> I too, would like to thank all the people who answered my questions, and helped me get my Beta app running (which is ulitmately going to be the interface for a University Sponsored Watershed Management System). http://208.201.43.230/maplab-2.0rc3/projects/gmf_apps/tutorial/tutorial.phtml Performance Question: >From behind my firewall, on a 100 MB link, pages load quickly, works great. Outside the firewall (T1), sometimes GIFS don't load, or the scale bar, etc... this is running on a 1 GHZ w/ 1 GB RAM, RH 7.3 What do I need to "tweak" either in mapserver or apache to boost image delivery? Ultimately, 100's of users will be accessing this. From tesimap at hotmail.com Sat Nov 9 05:36:20 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Sat, 09 Nov 2002 14:36:20 +0100 Subject: [mapserver-users] symbols scalable? Message-ID: Thanks Steve, I thought that it wasn't possible, but I have asked equally for a confirmation. Ivan >From: "Steve Lime" >To: , >CC: , , > >Subject: RE: [mapserver-users] symbols scalable? >Date: Fri, 08 Nov 2002 15:55:41 -0600 > >It's possible with truetype text but not in general with other symbol >types. > >Steve > > >>> Drew from Zhrodague 11/07/02 04:40PM >>> > > use SIZEUNITS in the CLASS to specify either pixels (that way it will >stay > > the same screen size) or some measurement scale such as feet or >inches > > On a slightly related note, is there a way to angle a particular > >scaled-symbol to another object, say the angle of a street, or other >feature? _________________________________________________________________ Comunica in un ?altra dimensione con MSN Extra Storage! http://www.msn.it/msnservizi/es/ From tesimap at hotmail.com Sat Nov 9 05:46:49 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Sat, 09 Nov 2002 14:46:49 +0100 Subject: [mapserver-users] layer transparent Message-ID: Sorry, but I have forgotten to tell that I'm using, in this project, mapserver 3.5 I'm searching a method to render transparent a layer of polygons such as TRANSPARENCY in mapserver 3.6 Ivan >From: "Martin, Daniel" >To: 'Ivan Paoluzzi' , >mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] layer transparent >Date: Fri, 8 Nov 2002 15:27:27 -0600 > >There are two ways to go about that, AFAIK. They are quite different, but >it depends on what effect you are trying to achieve. > >One is to use a PIXMAP symbol with a setting for TRANSPARENT: > >SYMBOL > NAME 'dither-black-25_percent' > TYPE PIXMAP > IMAGE dither-black-25_Percent.gif > TRANSPARENT 1 >END > >In that case, the color in the palette index 1 would be transparent. > >Newer versions of MapServer (not sure, I think 3.6+) support a setting in >the layer object: >LAYER > NAME "MY LAYER" > TRANSPARENCY 30 > >This sets the layer at 30% of full. > >Hope that helps, >Dan > _________________________________________________________________ Solo posta desiderata. Solo promozioni mozzafiato. MSN Offerte Speciali http://www.msn.it/msnservizi/so/ From rich at greenwoodmap.com Sat Nov 9 07:08:16 2002 From: rich at greenwoodmap.com (Richard Greenwood) Date: Sat, 09 Nov 2002 08:08:16 -0700 Subject: [mapserver-users] Performance issues In-Reply-To: <8A13872FF821F4488B4A629647DC0C7102C9A4@mailman.nexussoft.c om> Message-ID: <5.1.0.14.0.20021109075902.00a82b28@mail.greenwoodmap.com> > >Outside the firewall (T1), sometimes GIFS don't load, or the scale bar, etc... What browser? I notice that IE gets "impatient" and doesn't always display all images. This behavior is not limited to mapserver. Remember that a T1 is only 1.5 Mb max. If your application is working correctly behind your firewall, and poorly outside of it, then you probably need to look at your infrastructure, rather than at mapserver. Rich Richard W. Greenwood, PLS (307) 733-0203 Rich at GreenwoodMap.com www.GreenwoodMap.com From krung at cad.go.th Sat Nov 9 09:09:08 2002 From: krung at cad.go.th (krung) Date: Sun, 10 Nov 2002 00:09:08 +0700 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: <200211100009.AA41681104@cad.go.th> Hi Lowell, Puneet I tried as you told me. If I ran with command line, mapserver.log was created whem error occured. But when run on Apache, mapserver's never created as error occured. (access right with this directory'd set to 777 already) So I checked it at error_log of httpd log file, but it's non-sense to me. It showed only "Premature of script headers: /usr/mapserver/testmap.pl". And I tried to change script logic flow as you, Puneet, told me. It's the same error as before (Internal Server Error). Do I have to specially configure when I create mapserver program? Any comments, help, advice would be graceful. Thank you Krung ---------- Original Message ---------------------------------- From: "Lowell Filak" Date: Thu, 07 Nov 2002 08:24:06 -0500 >You can try adding the line noted below and see if a file mapserver.log exists in the current directory and if it reports an error. >If the mapserver.log file isn't created then try changing the path of the log file to somewhere writeable by the apache process. >HTH >Lowell F. > >The following message was sent by "Krung Saengpole" on Thu, 7 Nov 2002 18:45:20 +0700. > >> Hello all, >> >> I had trouble getting perl mapscript run on Apache 1.3.26 under RH 7.2. Mapscript compiled from mapserver 3.6.3. >> >> My script is: >> >> #!/usr/bin/perl >> use mapscript; >> use CGI qw/:standard/; > >$ENV{MS_ERRORFILE} = "mapserver.log"; <--Try adding this line. > >> >> print header(); >> print start_html(); >> $map = new mapObj('mapfile.map'); >> $img = $map->draw(); # <---- error took place here >> $img->saveImage('file.png', $mapscript::MS_PNG,1,1,0); >> .... >> .... >> >> What I did wrong with this script or anything else? But I could run this script at command line. I'm very new to Linux. I tried to write a script that open database and run under Apache, it had no problem. So, I thought it should not be wrong with Apache configuration. >> >> Thank you in advance. >> Krung. > > > From jnovak at novacell.com Sat Nov 9 11:14:15 2002 From: jnovak at novacell.com (Administrator) Date: Sat, 9 Nov 2002 11:14:15 -0800 Subject: [mapserver-users] Rendering grids with mapserver Message-ID: <41CC46B3925E384BA64B1FB5041C38FA499B@www.novacell.com> Greetings Mapserver users: I am investigating rendering lines of latiitude and longitude as part of a mapserver application which displays maps in a latlong projection. I have not seen any mapserver applications that render a grid except for DMSolution's Rosa demo. It appears that the grid layer for this application is a prerendered vector layer. Does anyone have knowledge of other mapserver applications that are displaying grids ? Thanks in advance for your help, John Novak -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkishor at GeoAnalytics.com Sat Nov 9 17:36:00 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sat, 9 Nov 2002 19:36:00 -0600 Subject: [mapserver-users] Couldn't run perl mapscript under Apache In-Reply-To: <200211100009.AA41681104@cad.go.th> Message-ID: On Saturday, November 9, 2002, at 11:09 AM, krung wrote: > Hi Lowell, Puneet > > I tried as you told me. If I ran with command line, mapserver.log was > created whem error occured. But when run on Apache, mapserver's never > created as error occured. (access right with this directory'd set to > 777 already) So I checked it at error_log of httpd log file, but it's > non-sense to me. It showed only "Premature of script headers: > /usr/mapserver/testmap.pl". > > And I tried to change script logic flow as you, Puneet, told me. It's > the same error as before (Internal Server Error). Krung, You really have to tell us what the error is. The "Internal Server Error" is the end result. Usually, that end result is the result of one or more errors happening in tandem. Do the following (assuming your apache log is under /var/log/httpd/)... type "tail -f /var/log/httpd/error_log". This will output the last few lines of the log file on your stdout, and keep the handle open. Now run your mapserver script via the web server. You will see the tail output change. Copy the lines that were outputted as a result of your last attempt to load the mapserver page. Mail that to the list. Then we will know better what is going on. Another question. In your message you say >>> $img = $map->draw(); # <---- error took place here How do you know that the error took place there? Usually the script breaks because of an error before the break. Again, send us all the error messages. Only then can we help. I am assuming that perl runs fine as cgi on your computer otherwise. pk/ > > Do I have to specially configure when I create mapserver program? Any > comments, help, advice would be graceful. > > Thank you > Krung > > > ---------- Original Message ---------------------------------- > From: "Lowell Filak" > Date: Thu, 07 Nov 2002 08:24:06 -0500 > >> You can try adding the line noted below and see if a file >> mapserver.log exists in the current directory and if it reports an >> error. >> If the mapserver.log file isn't created then try changing the path of >> the log file to somewhere writeable by the apache process. >> HTH >> Lowell F. >> >> The following message was sent by "Krung Saengpole" >> on Thu, 7 Nov 2002 18:45:20 +0700. >> >>> Hello all, >>> >>> I had trouble getting perl mapscript run on Apache 1.3.26 under RH >>> 7.2. Mapscript compiled from mapserver 3.6.3. >>> >>> My script is: >>> >>> #!/usr/bin/perl >>> use mapscript; >>> use CGI qw/:standard/; >> >> $ENV{MS_ERRORFILE} = "mapserver.log"; <--Try adding this line. >> >>> >>> print header(); >>> print start_html(); >>> $map = new mapObj('mapfile.map'); >>> $img = $map->draw(); # <---- error took place here >>> $img->saveImage('file.png', $mapscript::MS_PNG,1,1,0); >>> .... >>> .... >>> >>> What I did wrong with this script or anything else? But I could run >>> this script at command line. I'm very new to Linux. I tried to write >>> a script that open database and run under Apache, it had no problem. >>> So, I thought it should not be wrong with Apache configuration. >>> >>> Thank you in advance. >>> Krung. >> >> >> From mapserver at geochem.de Sun Nov 10 02:48:12 2002 From: mapserver at geochem.de (Nicol Hermann) Date: 10 Nov 2002 11:48:12 +0100 Subject: [mapserver-users] Set Colors with php_mapscript in 3.7 Message-ID: <1036925297.547.20.camel@katrin> Dear List, how can i set colors with php_mapscript in Mapserver 3.7? I am using the following code with 3.6.3 which works fine. $classObj = ms_newClassObj($layer); $classObj -> set("color", $map->addColor(255, 255, 0) ); $classObj -> set("outlinecolor", $map->addColor(0, 0, 0) ); The same code causes a fatal error with the CVS Version of 3.7: Fatal error: Call to undefined function: addcolor() in /home/nicol/public_html/mapserver/mapserver_class.inc on line 499 I also tried: $colorindex = $map->addColor(255, 255, 0); $classObj -> set("color", $colorindex ); The result is the same. What am I doing wrong? Thanks Nicol From krung at cad.go.th Sun Nov 10 07:05:09 2002 From: krung at cad.go.th (krung) Date: Sun, 10 Nov 2002 22:05:09 +0700 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: <200211102205.AA77005114@cad.go.th> Puneet As I told you last message, error_log showed no cause except "[Sun Nov 10 22.04.55] [error] [client 127.0.0.1] Premature end of script headers: /map/testmap.pl". I didn't know if I checked for error line correctly. I script it: use mapscript; use CGI qw/:standard/; print header(); $map = new mapObj("mapfile.map") or print "couldn't open map file\n"; unless ($map) { exit;} print 'OK';exit; <-- this line for checking openning map file and be removed if it prints. $img = $map->draw() or print "images couldn't be drawn\n"; unless ($img) { exit;} .... .... In line "print 'OK';exit;", I used it to check if openning mapfile had error. It printed 'OK', so it could open mapfile. Then I removed it out and re-run the script. It showed "Internal Server Error" to my browser. Error message I got from error_log in /etc/httpd/logs/error_log and /var/log/httpd/error_log was that I showed you in the beginning of this message. I didn't know what and how to solve this trouble. Thank you Krung. ---------- Original Message ---------------------------------- From: Puneet Kishor Date: Sat, 9 Nov 2002 19:36:00 -0600 > >On Saturday, November 9, 2002, at 11:09 AM, krung wrote: > >> Hi Lowell, Puneet >> >> I tried as you told me. If I ran with command line, mapserver.log was >> created whem error occured. But when run on Apache, mapserver's never >> created as error occured. (access right with this directory'd set to >> 777 already) So I checked it at error_log of httpd log file, but it's >> non-sense to me. It showed only "Premature of script headers: >> /usr/mapserver/testmap.pl". >> >> And I tried to change script logic flow as you, Puneet, told me. It's >> the same error as before (Internal Server Error). > >Krung, > >You really have to tell us what the error is. The "Internal Server >Error" is the end result. Usually, that end result is the result of one >or more errors happening in tandem. Do the following (assuming your >apache log is under /var/log/httpd/)... type "tail -f >/var/log/httpd/error_log". This will output the last few lines of the >log file on your stdout, and keep the handle open. Now run your >mapserver script via the web server. You will see the tail output >change. Copy the lines that were outputted as a result of your last >attempt to load the mapserver page. Mail that to the list. Then we will >know better what is going on. > >Another question. In your message you say > >>>> $img = $map->draw(); # <---- error took place here > > >How do you know that the error took place there? Usually the script >breaks because of an error before the break. > >Again, send us all the error messages. Only then can we help. > >I am assuming that perl runs fine as cgi on your computer otherwise. > >pk/ > > > > >> >> Do I have to specially configure when I create mapserver program? Any >> comments, help, advice would be graceful. >> >> Thank you >> Krung >> >> >> ---------- Original Message ---------------------------------- >> From: "Lowell Filak" >> Date: Thu, 07 Nov 2002 08:24:06 -0500 >> >>> You can try adding the line noted below and see if a file >>> mapserver.log exists in the current directory and if it reports an >>> error. >>> If the mapserver.log file isn't created then try changing the path of >>> the log file to somewhere writeable by the apache process. >>> HTH >>> Lowell F. >>> >>> The following message was sent by "Krung Saengpole" >>> on Thu, 7 Nov 2002 18:45:20 +0700. >>> >>>> Hello all, >>>> >>>> I had trouble getting perl mapscript run on Apache 1.3.26 under RH >>>> 7.2. Mapscript compiled from mapserver 3.6.3. >>>> >>>> My script is: >>>> >>>> #!/usr/bin/perl >>>> use mapscript; >>>> use CGI qw/:standard/; >>> >>> $ENV{MS_ERRORFILE} = "mapserver.log"; <--Try adding this line. >>> >>>> >>>> print header(); >>>> print start_html(); >>>> $map = new mapObj('mapfile.map'); >>>> $img = $map->draw(); # <---- error took place here >>>> $img->saveImage('file.png', $mapscript::MS_PNG,1,1,0); >>>> .... >>>> .... >>>> >>>> What I did wrong with this script or anything else? But I could run >>>> this script at command line. I'm very new to Linux. I tried to write >>>> a script that open database and run under Apache, it had no problem. >>>> So, I thought it should not be wrong with Apache configuration. >>>> >>>> Thank you in advance. >>>> Krung. >>> >>> >>> > > > From pkishor at GeoAnalytics.com Sun Nov 10 07:56:35 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Sun, 10 Nov 2002 09:56:35 -0600 Subject: [mapserver-users] Couldn't run perl mapscript under Apache In-Reply-To: <200211102205.AA77005114@cad.go.th> Message-ID: Krung, Note my response below -- On Sunday, November 10, 2002, at 09:05 AM, krung wrote: > Puneet > > As I told you last message, error_log showed no cause except "[Sun Nov > 10 22.04.55] [error] [client 127.0.0.1] Premature end of script > headers: /map/testmap.pl". please post not just the last line, but several lines _before_ the last line as well. The last line tells you that the ultimate cause of script dying was "Premature end of script headers...". However, the lines before that will provide the clue as to what led to a premature end. Do this... tail . Note the timestamp of the last line. Run your webpage. Email us all the lines added to the logfile _since_ the timestamp you noted above. > .. > $map = new mapObj("mapfile.map") or print "couldn't open map file\n"; > unless ($map) { exit;} here is a better way to replace the above two lines with... all accomplished on one line. # create a new map object die $mapscript::ms_error->{message} unless $map = new mapObj("$mapfile"); > .. > In line "print 'OK';exit;", I used it to check if openning mapfile had > error. It printed 'OK', so it could open mapfile. Then I removed it > out and re-run the script. It showed "Internal Server Error" to my > browser. Error message I got from error_log in > /etc/httpd/logs/error_log and /var/log/httpd/error_log was that I > showed you in the beginning of this message. how can you have two apache logs... you will have only one, either under /etc/httpd/logs OR under /var/log/httpd. Make sure you are looking at the correct one before you inspect it with the tail command. VERY IMPT. Please run perl with the -w switch like so #!/usr/bin/perl -w This will print out a whole slew of warnings that will help you get to the bottom of your problem. Thanks, pk/ > > > ---------- Original Message ---------------------------------- > From: Puneet Kishor > Date: Sat, 9 Nov 2002 19:36:00 -0600 > >> >> On Saturday, November 9, 2002, at 11:09 AM, krung wrote: >> >>> Hi Lowell, Puneet >>> >>> I tried as you told me. If I ran with command line, mapserver.log was >>> created whem error occured. But when run on Apache, mapserver's never >>> created as error occured. (access right with this directory'd set to >>> 777 already) So I checked it at error_log of httpd log file, but it's >>> non-sense to me. It showed only "Premature of script headers: >>> /usr/mapserver/testmap.pl". >>> >>> And I tried to change script logic flow as you, Puneet, told me. It's >>> the same error as before (Internal Server Error). >> >> Krung, >> >> You really have to tell us what the error is. The "Internal Server >> Error" is the end result. Usually, that end result is the result of >> one >> or more errors happening in tandem. Do the following (assuming your >> apache log is under /var/log/httpd/)... type "tail -f >> /var/log/httpd/error_log". This will output the last few lines of the >> log file on your stdout, and keep the handle open. Now run your >> mapserver script via the web server. You will see the tail output >> change. Copy the lines that were outputted as a result of your last >> attempt to load the mapserver page. Mail that to the list. Then we >> will >> know better what is going on. >> >> Another question. In your message you say >> >>>>> $img = $map->draw(); # <---- error took place here >> >> >> How do you know that the error took place there? Usually the script >> breaks because of an error before the break. >> >> Again, send us all the error messages. Only then can we help. >> >> I am assuming that perl runs fine as cgi on your computer otherwise. >> >> pk/ >> >> >> >> >>> >>> Do I have to specially configure when I create mapserver program? Any >>> comments, help, advice would be graceful. >>> >>> Thank you >>> Krung >>> >>> >>> ---------- Original Message ---------------------------------- >>> From: "Lowell Filak" >>> Date: Thu, 07 Nov 2002 08:24:06 -0500 >>> >>>> You can try adding the line noted below and see if a file >>>> mapserver.log exists in the current directory and if it reports an >>>> error. >>>> If the mapserver.log file isn't created then try changing the path >>>> of >>>> the log file to somewhere writeable by the apache process. >>>> HTH >>>> Lowell F. >>>> >>>> The following message was sent by "Krung Saengpole" >>>> >>>> on Thu, 7 Nov 2002 18:45:20 +0700. >>>> >>>>> Hello all, >>>>> >>>>> I had trouble getting perl mapscript run on Apache 1.3.26 under RH >>>>> 7.2. Mapscript compiled from mapserver 3.6.3. >>>>> >>>>> My script is: >>>>> >>>>> #!/usr/bin/perl >>>>> use mapscript; >>>>> use CGI qw/:standard/; >>>> >>>> $ENV{MS_ERRORFILE} = "mapserver.log"; <--Try adding this line. >>>> >>>>> >>>>> print header(); >>>>> print start_html(); >>>>> $map = new mapObj('mapfile.map'); >>>>> $img = $map->draw(); # <---- error took place here >>>>> $img->saveImage('file.png', $mapscript::MS_PNG,1,1,0); >>>>> .... >>>>> .... >>>>> >>>>> What I did wrong with this script or anything else? But I could run >>>>> this script at command line. I'm very new to Linux. I tried to >>>>> write >>>>> a script that open database and run under Apache, it had no >>>>> problem. >>>>> So, I thought it should not be wrong with Apache configuration. >>>>> >>>>> Thank you in advance. >>>>> Krung. >>>> >>>> >>>> >> >> >> From bfraser at geoanalytic.com Sun Nov 10 10:46:14 2002 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 10 Nov 2002 11:46:14 -0700 Subject: [mapserver-users] Rendering grids with mapserver References: <41CC46B3925E384BA64B1FB5041C38FA499B@www.novacell.com> Message-ID: <041001c288e9$73079730$020002c0@SHARK> MessageJohn, After some discussion with Steve Lime about functionality etc, I filed the following enhancement request (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=96): "Mapserver needs the ability to automatically add coordinate system grid, graticule, tic marks, labels around perimeter of map (similar to functionality found in ArcView's Graticule extension)." As a work-around, I currently use a shapefile of lat/lon lines with attributes for labelling and filtering based on scale. This method works ok but I can't get the labels to stay on the bottom and left of the map (one of these days I'll fire up the debugger and see what's going on). Brent Fraser ----- Original Message ----- From: Administrator To: mapserver-users at lists.gis.umn.edu Sent: Saturday, November 09, 2002 12:14 PM Subject: [mapserver-users] Rendering grids with mapserver Greetings Mapserver users: I am investigating rendering lines of latiitude and longitude as part of a mapserver application which displays maps in a latlong projection. I have not seen any mapserver applications that render a grid except for DMSolution's Rosa demo. It appears that the grid layer for this application is a prerendered vector layer. Does anyone have knowledge of other mapserver applications that are displaying grids ? Thanks in advance for your help, John Novak From jnovak at novacell.com Sun Nov 10 12:17:24 2002 From: jnovak at novacell.com (Administrator) Date: Sun, 10 Nov 2002 12:17:24 -0800 Subject: [mapserver-users] Rendering grids with mapserver Message-ID: <41CC46B3925E384BA64B1FB5041C38FA3278@www.novacell.com> Thanks, Brent. I'll add some additional comments to the enhancement request. JN -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Sunday, November 10, 2002 10:46 AM To: Administrator; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Rendering grids with mapserver MessageJohn, After some discussion with Steve Lime about functionality etc, I filed the following enhancement request (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=96): "Mapserver needs the ability to automatically add coordinate system grid, graticule, tic marks, labels around perimeter of map (similar to functionality found in ArcView's Graticule extension)." As a work-around, I currently use a shapefile of lat/lon lines with attributes for labelling and filtering based on scale. This method works ok but I can't get the labels to stay on the bottom and left of the map (one of these days I'll fire up the debugger and see what's going on). Brent Fraser ----- Original Message ----- From: Administrator To: mapserver-users at lists.gis.umn.edu Sent: Saturday, November 09, 2002 12:14 PM Subject: [mapserver-users] Rendering grids with mapserver Greetings Mapserver users: I am investigating rendering lines of latiitude and longitude as part of a mapserver application which displays maps in a latlong projection. I have not seen any mapserver applications that render a grid except for DMSolution's Rosa demo. It appears that the grid layer for this application is a prerendered vector layer. Does anyone have knowledge of other mapserver applications that are displaying grids ? Thanks in advance for your help, John Novak From Antti.Roppola at brs.gov.au Sun Nov 10 19:48:04 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Mon, 11 Nov 2002 14:48:04 +1100 Subject: [mapserver-users] Debian ? Message-ID: <4D6E6CCBC9CED61192720060B06B3DD7C3FADD@ACTMAIL2> Hello, There are detailed instructions for building PHP/Mapscript under Debian on the Wiki. I just installed PHP using apt and then inserted my manually built PHP (using system regex). It's a very small change and if you do it correctly, you won't break package management/dependancies. I believe Paul Baker has debs that will build a CGI PHP install that uses the system regex. That would be even neater. You may also want to add deb-src entries to your sources.list and build your own PHP package by changing the build rules. Antti -----Original Message----- From: evilC [mailto:evilc at evilc.com] Sent: Saturday, 9 November 2002 3:16 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Debian ? Hi, I am pretty new to linux, I am trying to set up mapserver with php-mapscript under debian (woody 3.0 install) My problem is that I get an error which says that I need to recompile php with --system-regex I think it was as it was complaining that php4's regex was bad. I am sorry about the vagueness of this, but I have been at this 25+ hours straight and it will take a bit of digging to get back to where I was. (I trashed the file system baaaad) Under debian, I am using an install program (apt-get) to install stuff rather than using makefiles, so I don't have control of the options passed to the ./config script I don't think. Can anyone point me in the direction of somewhere that may explain this please ? From Antti.Roppola at brs.gov.au Sun Nov 10 19:55:08 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Mon, 11 Nov 2002 14:55:08 +1100 Subject: [mapserver-users] Performance issues Message-ID: <4D6E6CCBC9CED61192720060B06B3DD7C3FADE@ACTMAIL2> Hi, Was this an issue on your server, or was it in the hosting environment? Near as I can tell, our organisation's web proxy is a significant bottleneck, I am hoping that fiddling with caching pragmas in the sent pages may get us better performance. Anyone been experimenting? You could append the time taken to generate each page on the bottom of the page. I am guessing your pages are rendering as fast as they ever did, but take longer to navigate your proxy/firewall/DMZ. Antti -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Saturday, 9 November 2002 10:33 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Performance issues I too, would like to thank all the people who answered my questions, and helped me get my Beta app running (which is ulitmately going to be the interface for a University Sponsored Watershed Management System). http://208.201.43.230/maplab-2.0rc3/projects/gmf_apps/tutorial/tutorial.phtml Performance Question: >From behind my firewall, on a 100 MB link, pages load quickly, works great. Outside the firewall (T1), sometimes GIFS don't load, or the scale bar, etc... this is running on a 1 GHZ w/ 1 GB RAM, RH 7.3 What do I need to "tweak" either in mapserver or apache to boost image delivery? Ultimately, 100's of users will be accessing this. From jnovak at novacell.com Sun Nov 10 20:07:52 2002 From: jnovak at novacell.com (Administrator) Date: Sun, 10 Nov 2002 20:07:52 -0800 Subject: [mapserver-users] Performance issues Message-ID: <41CC46B3925E384BA64B1FB5041C38FA499D@www.novacell.com> Thomas, Is the map Walnut Creek CA ? Just curious, as I'm on the peninsula south of SF. I saw something similar to your issue, although both internally and externally. I had my web server, IIS, configured for only 5 concurrent connections. The Rosa applet got very unhappy about the small number of connections and apparently was somewhat confused by it. I would see random subsets of the buttons on the toolbar appearing as I repeatedly refreshed the page. BTW, I noticed that your app zooms in properly given a mouse click but does nothing when presented with a rectangular selection area. John Novak -----Original Message----- From: Antti.Roppola at brs.gov.au [mailto:Antti.Roppola at brs.gov.au] Sent: Sunday, November 10, 2002 7:55 PM To: tpcolson at nexussoft.com Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Performance issues Hi, Was this an issue on your server, or was it in the hosting environment? Near as I can tell, our organisation's web proxy is a significant bottleneck, I am hoping that fiddling with caching pragmas in the sent pages may get us better performance. Anyone been experimenting? You could append the time taken to generate each page on the bottom of the page. I am guessing your pages are rendering as fast as they ever did, but take longer to navigate your proxy/firewall/DMZ. Antti -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Saturday, 9 November 2002 10:33 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Performance issues I too, would like to thank all the people who answered my questions, and helped me get my Beta app running (which is ulitmately going to be the interface for a University Sponsored Watershed Management System). http://208.201.43.230/maplab-2.0rc3/projects/gmf_apps/tutorial/tutorial. phtml Performance Question: >From behind my firewall, on a 100 MB link, pages load quickly, works great. Outside the firewall (T1), sometimes GIFS don't load, or the scale bar, etc... this is running on a 1 GHZ w/ 1 GB RAM, RH 7.3 What do I need to "tweak" either in mapserver or apache to boost image delivery? Ultimately, 100's of users will be accessing this. From antonienko at el-valles.com Sun Nov 10 23:04:16 2002 From: antonienko at el-valles.com (Antonio Hernandez Sanchez) Date: Mon, 11 Nov 2002 08:04:16 +0100 Subject: [mapserver-users] New list for spanish users Message-ID: <003201c28950$90442810$0100a8c0@antonienko> Please, excuse me for using spanish here, but this is a message about a new mapserver list in spanish language. Regards. -------------- He creado una lista para usuarios hispano-parlantes de mapserver, para que podamos entendernos en nuestro propio idioma. Si quer?is daros de alta, pod?is hacerlo en la siguiente p?gina: http://groups.yahoo.com/group/mapserver-es/join Acabo de crearla, as? que el n?mero de usuarios dados de alta es de (dejadme contar...) s?, 1, exactamente 1. :-) Espero que sea de utilidad para todos. Saludos! -- Antonio Hern?ndez From srodriguez at maguiregroup.com Mon Nov 11 05:40:16 2002 From: srodriguez at maguiregroup.com (Seth Rodriguez) Date: Mon, 11 Nov 2002 08:40:16 -0500 Subject: [mapserver-users] beginner getting started Message-ID: <000701c28987$df5efdd0$7a05a8c0@12GVD11> I have been asked by the boss to develop some new marketable GIS skills. Our company does a lot of work in the transportation industry. One task in our transportation work is to do public involvement. So I have suggested developing project websites with web-based project mapping using MapServer, which I was introduced to at an ArcView training. To assess the usability of the software, I wanted to implement a test to show the boss. Unfortunately, my programming experience is limited to a bit of avenue, AML, VB, and html, none of which I would say I am fluent in. Fortunately, the description of the software notes that programming is not required for basic use. I apologize for my novice questions, but I am having some problems off the bat. I have downloaded the newest version (3.6.3) and the demo, but have not found any executables in the zips. I am assuming that this is due to a corrupted download. I also noticed that the software is known to run on 95, 98, and NT. I am running XP on my machine. Will this be a problem? I can move to another machine if needed. I hope that I am not biting off too much with this task. Luckily for me, I am a quick learner. Would anyone out there please consider taking a young, ambitious consultant under their wing to help him impress his boss? I will be forever grateful. Thanks for your time. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bjarni.Pjetursson at tietoenator.com Mon Nov 11 05:47:09 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Mon, 11 Nov 2002 14:47:09 +0100 Subject: [mapserver-users] Suggestion for added functionality: Nautic miles Message-ID: <18E0CC75605BD411907800508B8BB8D00165F08A@odin.enator.dk> Hi list, I would like to suggest support for nautic miles in MapServer. Looking at the source code, it should be easy to implement along with the other units like meters and kilometers. Regards Bjarni Thor Pjetursson TietoEnator Consulting, Denmark From tpcolson at nexussoft.com Mon Nov 11 06:15:50 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Mon, 11 Nov 2002 09:15:50 -0500 Subject: [mapserver-users] beginner getting started Message-ID: <8A13872FF821F4488B4A629647DC0C71023F86@mailman.nexussoft.com> What are your Linux Skills? It works much better "out of the box" on Red Hat. I'd stay away from "Winders". -----Original Message----- From: Seth Rodriguez [mailto:srodriguez at maguiregroup.com] Sent: Monday, November 11, 2002 8:40 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] beginner getting started I have been asked by the boss to develop some new marketable GIS skills. Our company does a lot of work in the transportation industry. One task in our transportation work is to do public involvement. So I have suggested developing project websites with web-based project mapping using MapServer, which I was introduced to at an ArcView training. To assess the usability of the software, I wanted to implement a test to show the boss. Unfortunately, my programming experience is limited to a bit of avenue, AML, VB, and html, none of which I would say I am fluent in. Fortunately, the description of the software notes that programming is not required for basic use. I apologize for my novice questions, but I am having some problems off the bat. I have downloaded the newest version (3.6.3) and the demo, but have not found any executables in the zips. I am assuming that this is due to a corrupted download. I also noticed that the software is known to run on 95, 98, and NT. I am running XP on my machine. Will this be a problem? I can move to another machine if needed. I hope that I am not biting off too much with this task. Luckily for me, I am a quick learner. Would anyone out there please consider taking a young, ambitious consultant under their wing to help him impress his boss? I will be forever grateful. Thanks for your time. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ericfrost at HRandAssociates.com Mon Nov 11 06:44:21 2002 From: Ericfrost at HRandAssociates.com (Eric - HRA) Date: Mon, 11 Nov 2002 08:44:21 -0600 Subject: [mapserver-users] Unsubscribe Message-ID: <001301c28990$d28ce460$8a088c98@HRA.com> Please remove my name from the list. -------------- next part -------------- An HTML attachment was scrubbed... URL: From evilc at evilc.com Mon Nov 11 07:25:02 2002 From: evilc at evilc.com (evilC) Date: Mon, 11 Nov 2002 15:25:02 -0000 Subject: [mapserver-users] Debian ? In-Reply-To: <4D6E6CCBC9CED61192720060B06B3DD7C3FADD@ACTMAIL2> Message-ID: <000101c28996$81294360$7b2bcfd9@Frink> Thanks for the info -----Original Message----- From: Antti.Roppola at brs.gov.au [mailto:Antti.Roppola at brs.gov.au] Sent: 11 November 2002 03:48 To: evilc at evilc.com; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Debian ? Hello, There are detailed instructions for building PHP/Mapscript under Debian on the Wiki. I just installed PHP using apt and then inserted my manually built PHP (using system regex). It's a very small change and if you do it correctly, you won't break package management/dependancies. I believe Paul Baker has debs that will build a CGI PHP install that uses the system regex. That would be even neater. You may also want to add deb-src entries to your sources.list and build your own PHP package by changing the build rules. Antti -----Original Message----- From: evilC [mailto:evilc at evilc.com] Sent: Saturday, 9 November 2002 3:16 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Debian ? Hi, I am pretty new to linux, I am trying to set up mapserver with php-mapscript under debian (woody 3.0 install) My problem is that I get an error which says that I need to recompile php with --system-regex I think it was as it was complaining that php4's regex was bad. I am sorry about the vagueness of this, but I have been at this 25+ hours straight and it will take a bit of digging to get back to where I was. (I trashed the file system baaaad) Under debian, I am using an install program (apt-get) to install stuff rather than using makefiles, so I don't have control of the options passed to the ./config script I don't think. Can anyone point me in the direction of somewhere that may explain this please ? From ychen at yorktel.com Mon Nov 11 07:30:28 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Mon, 11 Nov 2002 10:30:28 -0500 Subject: [mapserver-users] beginner getting started Message-ID: <4C5998A3E78C674A92183D4813806E82035DF4@ytcmail.yorktel.com> Although I've read in this list that MapServer runs on Windows, in the long run, I'd have to agree with Tom that you should try a Linux platform ( or UNIX if you have access to one ). >From your description I take you might not have experienced Linux/UNIX yet. It does cost 'a little' more to set up a UNIX than a Linux system. If you have a spare computer you can either download or buy ( inexpensively ) installation CD for Linux. Red Hat is a popular commercialized brand. I personally run Mandrake 8.0 with MapServer running either using shape files or directly retrieve data from Oracle. It is not 'that' difficult to set it up. -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Monday, November 11, 2002 9:16 AM To: Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started What are your Linux Skills? It works much better "out of the box" on Red Hat. I'd stay away from "Winders". -----Original Message----- From: Seth Rodriguez [mailto:srodriguez at maguiregroup.com] Sent: Monday, November 11, 2002 8:40 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] beginner getting started I have been asked by the boss to develop some new marketable GIS skills. Our company does a lot of work in the transportation industry. One task in our transportation work is to do public involvement. So I have suggested developing project websites with web-based project mapping using MapServer, which I was introduced to at an ArcView training. To assess the usability of the software, I wanted to implement a test to show the boss. Unfortunately, my programming experience is limited to a bit of avenue, AML, VB, and html, none of which I would say I am fluent in. Fortunately, the description of the software notes that programming is not required for basic use. I apologize for my novice questions, but I am having some problems off the bat. I have downloaded the newest version (3.6.3) and the demo, but have not found any executables in the zips. I am assuming that this is due to a corrupted download. I also noticed that the software is known to run on 95, 98, and NT. I am running XP on my machine. Will this be a problem? I can move to another machine if needed. I hope that I am not biting off too much with this task. Luckily for me, I am a quick learner. Would anyone out there please consider taking a young, ambitious consultant under their wing to help him impress his boss? I will be forever grateful. Thanks for your time. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From tpcolson at nexussoft.com Mon Nov 11 07:40:49 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Mon, 11 Nov 2002 10:40:49 -0500 Subject: [mapserver-users] beginner getting started Message-ID: <8A13872FF821F4488B4A629647DC0C71023F89@mailman.nexussoft.com> and here's the link http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH72 -----Original Message----- From: Thomas P. Colson Sent: Monday, November 11, 2002 10:40 AM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started Here's a good link for RH installation: Hint: Don't install RH with RH PHP installed. Hint 2: Make sure Apache is up and running before you compile any of the libraries. Hint 3: Make sure you get GIF image support running, and tested with the PHP info script. You'll pull your hair out trying to get the demos to work without GIF support (they can work, with a lot of code hacking). -----Original Message----- From: Yu-Hsin Chen [mailto:ychen at yorktel.com] Sent: Monday, November 11, 2002 10:30 AM To: Thomas P. Colson; Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started Although I've read in this list that MapServer runs on Windows, in the long run, I'd have to agree with Tom that you should try a Linux platform ( or UNIX if you have access to one ). >From your description I take you might not have experienced Linux/UNIX yet. It does cost 'a little' more to set up a UNIX than a Linux system. If you have a spare computer you can either download or buy ( inexpensively ) installation CD for Linux. Red Hat is a popular commercialized brand. I personally run Mandrake 8.0 with MapServer running either using shape files or directly retrieve data from Oracle. It is not 'that' difficult to set it up. -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Monday, November 11, 2002 9:16 AM To: Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started What are your Linux Skills? It works much better "out of the box" on Red Hat. I'd stay away from "Winders". -----Original Message----- From: Seth Rodriguez [mailto:srodriguez at maguiregroup.com] Sent: Monday, November 11, 2002 8:40 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] beginner getting started I have been asked by the boss to develop some new marketable GIS skills. Our company does a lot of work in the transportation industry. One task in our transportation work is to do public involvement. So I have suggested developing project websites with web-based project mapping using MapServer, which I was introduced to at an ArcView training. To assess the usability of the software, I wanted to implement a test to show the boss. Unfortunately, my programming experience is limited to a bit of avenue, AML, VB, and html, none of which I would say I am fluent in. Fortunately, the description of the software notes that programming is not required for basic use. I apologize for my novice questions, but I am having some problems off the bat. I have downloaded the newest version (3.6.3) and the demo, but have not found any executables in the zips. I am assuming that this is due to a corrupted download. I also noticed that the software is known to run on 95, 98, and NT. I am running XP on my machine. Will this be a problem? I can move to another machine if needed. I hope that I am not biting off too much with this task. Luckily for me, I am a quick learner. Would anyone out there please consider taking a young, ambitious consultant under their wing to help him impress his boss? I will be forever grateful. Thanks for your time. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From tpcolson at nexussoft.com Mon Nov 11 07:40:29 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Mon, 11 Nov 2002 10:40:29 -0500 Subject: [mapserver-users] beginner getting started Message-ID: <8A13872FF821F4488B4A629647DC0C71023F88@mailman.nexussoft.com> Here's a good link for RH installation: Hint: Don't install RH with RH PHP installed. Hint 2: Make sure Apache is up and running before you compile any of the libraries. Hint 3: Make sure you get GIF image support running, and tested with the PHP info script. You'll pull your hair out trying to get the demos to work without GIF support (they can work, with a lot of code hacking). -----Original Message----- From: Yu-Hsin Chen [mailto:ychen at yorktel.com] Sent: Monday, November 11, 2002 10:30 AM To: Thomas P. Colson; Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started Although I've read in this list that MapServer runs on Windows, in the long run, I'd have to agree with Tom that you should try a Linux platform ( or UNIX if you have access to one ). >From your description I take you might not have experienced Linux/UNIX yet. It does cost 'a little' more to set up a UNIX than a Linux system. If you have a spare computer you can either download or buy ( inexpensively ) installation CD for Linux. Red Hat is a popular commercialized brand. I personally run Mandrake 8.0 with MapServer running either using shape files or directly retrieve data from Oracle. It is not 'that' difficult to set it up. -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Monday, November 11, 2002 9:16 AM To: Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started What are your Linux Skills? It works much better "out of the box" on Red Hat. I'd stay away from "Winders". -----Original Message----- From: Seth Rodriguez [mailto:srodriguez at maguiregroup.com] Sent: Monday, November 11, 2002 8:40 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] beginner getting started I have been asked by the boss to develop some new marketable GIS skills. Our company does a lot of work in the transportation industry. One task in our transportation work is to do public involvement. So I have suggested developing project websites with web-based project mapping using MapServer, which I was introduced to at an ArcView training. To assess the usability of the software, I wanted to implement a test to show the boss. Unfortunately, my programming experience is limited to a bit of avenue, AML, VB, and html, none of which I would say I am fluent in. Fortunately, the description of the software notes that programming is not required for basic use. I apologize for my novice questions, but I am having some problems off the bat. I have downloaded the newest version (3.6.3) and the demo, but have not found any executables in the zips. I am assuming that this is due to a corrupted download. I also noticed that the software is known to run on 95, 98, and NT. I am running XP on my machine. Will this be a problem? I can move to another machine if needed. I hope that I am not biting off too much with this task. Luckily for me, I am a quick learner. Would anyone out there please consider taking a young, ambitious consultant under their wing to help him impress his boss? I will be forever grateful. Thanks for your time. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Mon Nov 11 07:37:18 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Mon, 11 Nov 2002 09:37:18 -0600 (CST) Subject: [mapserver-users] MapServer - aplication (FWD) Message-ID: <200211111537.gABFbIG15461@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: jvinas at amcondeminas.com To: applications at lists.gis.umn.edu Cc: enric at todopesca.com Subject: MapServer - aplication Date: Fri, 8 Nov 2002 12:16:19 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mallit.fr.umn.edu id gA8BDqG14214 Dear Sirs, We are a group of some friends that 3/4 years ago start a -free- (non profitable for us) web site about fishing in Spain. After this time, we are still poors, but very happy, bacuse our web site is being visited by abt 3000 fishers/daily. http://www.todopesca.com , and we had the opportunity to meet with expert angleers and we make a lot of new friends. Now we are studing several new proyects in order to give additional/interesting information to our "customers", one of this could be install/develope a Spain River/reservoir/Cost maps server, that could help our anglers to look for their preferible place for fishing, with full details of topography, deep, etc. There are some things in Spain, all dispersed but nothing specific for fishing. So, now I'm starting to take a look on your product, that seems that could help us in this proyect, but please any suggestion, recomendation, etc from yr experience would be highly appreciated, we are not fully dedicated to programming, and all our time, is just some hours can be steral fm our families. Thnks in advance, and best regards Jesus Vinyas mailto:jesus at todopesca.com Please use the abome mentione e_mailk, preferable than this other.------------------------------------------------------------------- Jes?s Vinyas +34 9 32957021 - S.C.I. L.Mgr A.M. Condeminas SA fax +34 9 32957011 movil +34 696486514 Po Colon, 11- Prpal mailto:jvinas at amcondeminas.com 08004 Barcelona http://www.condeminas.es Spain ------------- End Forwarded Message ------------- From srodriguez at maguiregroup.com Mon Nov 11 07:50:55 2002 From: srodriguez at maguiregroup.com (Seth Rodriguez) Date: Mon, 11 Nov 2002 10:50:55 -0500 Subject: [mapserver-users] beginner getting started In-Reply-To: <4C5998A3E78C674A92183D4813806E82035DF4@ytcmail.yorktel.com> Message-ID: <002001c2899a$1fdf6c20$7a05a8c0@12GVD11> I have been told by my MIS department that we are getting new Novell servers after the New Year which will have Apache. In the meantime, we will try to test it on an NT machine. I was originally hoping to just test the software on my own pc linked to our local network, but I am now assuming that the components need to be installed/compiled on the server. I am not sure what I was thinking. I have read through the how to at http://mapserver.gis.umn.edu/doc36/win32_compile-howto.html, but I am still a bit lost on how to compile everything, particularly all the modules that I had to download. Any help there?? Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -----Original Message----- From: Yu-Hsin Chen [mailto:ychen at yorktel.com] Sent: Monday, November 11, 2002 10:30 AM To: Thomas P. Colson; Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started Although I've read in this list that MapServer runs on Windows, in the long run, I'd have to agree with Tom that you should try a Linux platform ( or UNIX if you have access to one ). >From your description I take you might not have experienced Linux/UNIX yet. It does cost 'a little' more to set up a UNIX than a Linux system. If you have a spare computer you can either download or buy ( inexpensively ) installation CD for Linux. Red Hat is a popular commercialized brand. I personally run Mandrake 8.0 with MapServer running either using shape files or directly retrieve data from Oracle. It is not 'that' difficult to set it up. -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Monday, November 11, 2002 9:16 AM To: Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started What are your Linux Skills? It works much better "out of the box" on Red Hat. I'd stay away from "Winders". -----Original Message----- From: Seth Rodriguez [mailto:srodriguez at maguiregroup.com] Sent: Monday, November 11, 2002 8:40 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] beginner getting started I have been asked by the boss to develop some new marketable GIS skills. Our company does a lot of work in the transportation industry. One task in our transportation work is to do public involvement. So I have suggested developing project websites with web-based project mapping using MapServer, which I was introduced to at an ArcView training. To assess the usability of the software, I wanted to implement a test to show the boss. Unfortunately, my programming experience is limited to a bit of avenue, AML, VB, and html, none of which I would say I am fluent in. Fortunately, the description of the software notes that programming is not required for basic use. I apologize for my novice questions, but I am having some problems off the bat. I have downloaded the newest version (3.6.3) and the demo, but have not found any executables in the zips. I am assuming that this is due to a corrupted download. I also noticed that the software is known to run on 95, 98, and NT. I am running XP on my machine. Will this be a problem? I can move to another machine if needed. I hope that I am not biting off too much with this task. Luckily for me, I am a quick learner. Would anyone out there please consider taking a young, ambitious consultant under their wing to help him impress his boss? I will be forever grateful. Thanks for your time. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From DMartin at erac.com Mon Nov 11 07:54:47 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 11 Nov 2002 09:54:47 -0600 Subject: [mapserver-users] beginner getting started Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F3D6@STL-EXBE-I03.corp.erac.com> I'd have to disagree. I use it every day, and it works quite nicely "out of the box" under "Winders". Go with what you know, and if it's windows, it works fine in IIS. -Dan Martin -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Monday, November 11, 2002 8:16 AM To: Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started What are your Linux Skills? It works much better "out of the box" on Red Hat. I'd stay away from "Winders". -----Original Message----- From: Seth Rodriguez [mailto:srodriguez at maguiregroup.com] Sent: Monday, November 11, 2002 8:40 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] beginner getting started I have been asked by the boss to develop some new marketable GIS skills. Our company does a lot of work in the transportation industry. One task in our transportation work is to do public involvement. So I have suggested developing project websites with web-based project mapping using MapServer, which I was introduced to at an ArcView training. To assess the usability of the software, I wanted to implement a test to show the boss. Unfortunately, my programming experience is limited to a bit of avenue, AML, VB, and html, none of which I would say I am fluent in. Fortunately, the description of the software notes that programming is not required for basic use. I apologize for my novice questions, but I am having some problems off the bat. I have downloaded the newest version (3.6.3) and the demo, but have not found any executables in the zips. I am assuming that this is due to a corrupted download. I also noticed that the software is known to run on 95, 98, and NT. I am running XP on my machine. Will this be a problem? I can move to another machine if needed. I hope that I am not biting off too much with this task. Luckily for me, I am a quick learner. Would anyone out there please consider taking a young, ambitious consultant under their wing to help him impress his boss? I will be forever grateful. Thanks for your time. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From DMartin at erac.com Mon Nov 11 09:08:56 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 11 Nov 2002 11:08:56 -0600 Subject: [mapserver-users] beginner getting started Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B60@STL-EXBE-I03.corp.erac.com> As someone who uses MapServer on Windows with no Windows specific problems, I would like to hear from you guys some reasons behind your statements. I'd like to know what it is I'm missing out on. If there is some specific advantage other than your passion for the platform, I'd like to know about it. I've never heard of any myself, so if there is it would help me to know about it. Passion is certainly admirable. But if passion is the only reason, I'm honestly a little bewildered to see new users steered towards a platform without specific reasons. Windows users might be turned off from MapServer by believing it doesn't work well under "Winders", when in fact it runs very well. I'd hate to see that happen, because MapServer is great! -Dan Martin -----Original Message----- From: Yu-Hsin Chen [mailto:ychen at yorktel.com] Sent: Monday, November 11, 2002 9:30 AM To: Thomas P. Colson; Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started Although I've read in this list that MapServer runs on Windows, in the long run, I'd have to agree with Tom that you should try a Linux platform ( or UNIX if you have access to one ). >From your description I take you might not have experienced Linux/UNIX yet. It does cost 'a little' more to set up a UNIX than a Linux system. If you have a spare computer you can either download or buy ( inexpensively ) installation CD for Linux. Red Hat is a popular commercialized brand. I personally run Mandrake 8.0 with MapServer running either using shape files or directly retrieve data from Oracle. It is not 'that' difficult to set it up. -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Monday, November 11, 2002 9:16 AM To: Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started What are your Linux Skills? It works much better "out of the box" on Red Hat. I'd stay away from "Winders". -----Original Message----- From: Seth Rodriguez [mailto:srodriguez at maguiregroup.com] Sent: Monday, November 11, 2002 8:40 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] beginner getting started I have been asked by the boss to develop some new marketable GIS skills. Our company does a lot of work in the transportation industry. One task in our transportation work is to do public involvement. So I have suggested developing project websites with web-based project mapping using MapServer, which I was introduced to at an ArcView training. To assess the usability of the software, I wanted to implement a test to show the boss. Unfortunately, my programming experience is limited to a bit of avenue, AML, VB, and html, none of which I would say I am fluent in. Fortunately, the description of the software notes that programming is not required for basic use. I apologize for my novice questions, but I am having some problems off the bat. I have downloaded the newest version (3.6.3) and the demo, but have not found any executables in the zips. I am assuming that this is due to a corrupted download. I also noticed that the software is known to run on 95, 98, and NT. I am running XP on my machine. Will this be a problem? I can move to another machine if needed. I hope that I am not biting off too much with this task. Luckily for me, I am a quick learner. Would anyone out there please consider taking a young, ambitious consultant under their wing to help him impress his boss? I will be forever grateful. Thanks for your time. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From tpcolson at nexussoft.com Mon Nov 11 09:19:03 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Mon, 11 Nov 2002 12:19:03 -0500 Subject: [mapserver-users] beginner getting started Message-ID: <8A13872FF821F4488B4A629647DC0C7102C9A5@mailman.nexussoft.com> Daniel,I think this calls for a detailed user survey. There are several cookie cutter survey cgi-forms out there. I'd be interested to see what the major install base is. BTW,mapserver ROCKS on RH, at least in my env. -----Original Message----- From: Martin, Daniel [mailto:DMartin at erac.com] Sent: Monday, November 11, 2002 12:09 PM To: 'Yu-Hsin Chen'; Thomas P. Colson; Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started As someone who uses MapServer on Windows with no Windows specific problems, I would like to hear from you guys some reasons behind your statements. I'd like to know what it is I'm missing out on. If there is some specific advantage other than your passion for the platform, I'd like to know about it. I've never heard of any myself, so if there is it would help me to know about it. Passion is certainly admirable. But if passion is the only reason, I'm honestly a little bewildered to see new users steered towards a platform without specific reasons. Windows users might be turned off from MapServer by believing it doesn't work well under "Winders", when in fact it runs very well. I'd hate to see that happen, because MapServer is great! -Dan Martin -----Original Message----- From: Yu-Hsin Chen [mailto:ychen at yorktel.com] Sent: Monday, November 11, 2002 9:30 AM To: Thomas P. Colson; Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started Although I've read in this list that MapServer runs on Windows, in the long run, I'd have to agree with Tom that you should try a Linux platform ( or UNIX if you have access to one ). >From your description I take you might not have experienced Linux/UNIX yet. It does cost 'a little' more to set up a UNIX than a Linux system. If you have a spare computer you can either download or buy ( inexpensively ) installation CD for Linux. Red Hat is a popular commercialized brand. I personally run Mandrake 8.0 with MapServer running either using shape files or directly retrieve data from Oracle. It is not 'that' difficult to set it up. -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Monday, November 11, 2002 9:16 AM To: Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started What are your Linux Skills? It works much better "out of the box" on Red Hat. I'd stay away from "Winders". -----Original Message----- From: Seth Rodriguez [mailto:srodriguez at maguiregroup.com] Sent: Monday, November 11, 2002 8:40 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] beginner getting started I have been asked by the boss to develop some new marketable GIS skills. Our company does a lot of work in the transportation industry. One task in our transportation work is to do public involvement. So I have suggested developing project websites with web-based project mapping using MapServer, which I was introduced to at an ArcView training. To assess the usability of the software, I wanted to implement a test to show the boss. Unfortunately, my programming experience is limited to a bit of avenue, AML, VB, and html, none of which I would say I am fluent in. Fortunately, the description of the software notes that programming is not required for basic use. I apologize for my novice questions, but I am having some problems off the bat. I have downloaded the newest version (3.6.3) and the demo, but have not found any executables in the zips. I am assuming that this is due to a corrupted download. I also noticed that the software is known to run on 95, 98, and NT. I am running XP on my machine. Will this be a problem? I can move to another machine if needed. I hope that I am not biting off too much with this task. Luckily for me, I am a quick learner. Would anyone out there please consider taking a young, ambitious consultant under their wing to help him impress his boss? I will be forever grateful. Thanks for your time. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From nacional at biosci.cbs.umn.edu Mon Nov 11 09:49:50 2002 From: nacional at biosci.cbs.umn.edu (Pericles S. Nacionales) Date: 11 Nov 2002 11:49:50 -0600 Subject: [mapserver-users] beginner getting started In-Reply-To: <000701c28987$df5efdd0$7a05a8c0@12GVD11> References: <000701c28987$df5efdd0$7a05a8c0@12GVD11> Message-ID: <1037036991.5083.17.camel@arceuthobium.ecology.umn.edu> Seth, It should work on Windows XP although I haven't tried compiling it there (I don't have XP on my machine). It sounds like you've downloaded the source code. If you'd like to compile it yourself, you'll MS VC/C++ and lots of time (you'll also have to compile other libraries needed by MapServer). If you don't want to start there, download one of the binaries at http://mapserver.gis.umn.edu/win32binaries.html or at http://www.dmsolutions.ca/dl/webtools/dl/. DM Solutions provides a php/mapscript dll for Windows. If you are familiar with php, you might consider looking into it. By the way, I use MapServer both on Linux and Windows, and it works well on both. If you are familiar with Linux, you should try it there as well. It's much easier to compile MapServer in Linux... although there are pitfalls, as already mentioned by others. Good luck! -Perry On Mon, 2002-11-11 at 07:40, Seth Rodriguez wrote: > I have been asked by the boss to develop some new marketable GIS skills. > Our company does a lot of work in the transportation industry. One task > in our transportation work is to do public involvement. So I have > suggested developing project websites with web-based project mapping > using MapServer, which I was introduced to at an ArcView training. To > assess the usability of the software, I wanted to implement a test to > show the boss. Unfortunately, my programming experience is limited to a > bit of avenue, AML, VB, and html, none of which I would say I am fluent > in. Fortunately, the description of the software notes that programming > is not required for basic use. > > > > I apologize for my novice questions, but I am having some problems off > the bat. I have downloaded the newest version (3.6.3) and the demo, but > have not found any executables in the zips. I am assuming that this is > due to a corrupted download. I also noticed that the software is known > to run on 95, 98, and NT. I am running XP on my machine. Will this be a > problem? I can move to another machine if needed. > > > > I hope that I am not biting off too much with this task. Luckily for me, > I am a quick learner. Would anyone out there please consider taking a > young, ambitious consultant under their wing to help him impress his > boss? I will be forever grateful. > > > > Thanks for your time. > > > > Seth Rodriguez > > Environmental Scientist > > GIS Analyst > > Maguire Group Inc. > > 564 Forbes Avenue, Suite 1212 > > Pittsburgh, PA 15219 > > (412) 281-6393 > > (412) 281-7908 FAX > > > From tpcolson at nexussoft.com Mon Nov 11 10:05:24 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Mon, 11 Nov 2002 13:05:24 -0500 Subject: [mapserver-users] How to get rid of stock credits Message-ID: <8A13872FF821F4488B4A629647DC0C71023F8B@mailman.nexussoft.com> By editing line 386 of "build_phtml.php" in the htdocs directory, one can change the default credits to NOT change everytime GMAP factory is opened. -----Original Message----- From: Dean Gadoury [mailto:gadoury at dmsolutions.ca] Sent: Tuesday, November 05, 2002 1:51 PM To: Thomas P. Colson Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] How to get rid of stock credits MapLab specific questions can be posted the the maplab list. To subscribe see: http://lists.dmsolutions.ca/mailman/listinfo/maplab-users To answer your question though: You can get rid of that text by editing the html code for the page. The trick is that it is found in x_contents.php, where x is the name you gave your application. You can also modify other page elements in this file, like colours, fonts or even the layout, but I will include 2 major cautionary notes. 1. If you modify any code in this file and re-open the project in GMapFactory, your changes will be overwritten automatically by GMF. So if you delete the credit line using your favorite text editor, then open the project in GMF again the credit line will re-appear. This is the expected and desired behaviour of GMF. So go ahead and make changes, but it is best to make sure your application is finalized first. As long as you don't open the project in GMF again you should have no problems. 2. Unless you really know what you're doing you shouldn't edit anything inside the php code tags: I hope that answers your question. Dean Thomas P. Colson wrote: >How to get rid of "this application was built using GMapFactory" credit at bottom of page? > > > > -- ___________________________ Dean Gadoury DM Solutions Group 72 Chamberlain Ave. Third Floor Ottawa, Ontario. K1S 1V9 613 565-5056 ext. 24 gadoury at dmsolutions.ca www.dmsolutions.ca From gthornberry at sdimaps.com Mon Nov 11 10:30:03 2002 From: gthornberry at sdimaps.com (Gerald Thornberry) Date: 11 Nov 2002 13:30:03 -0500 Subject: [mapserver-users] beginner getting started In-Reply-To: <8A13872FF821F4488B4A629647DC0C7102C9A5@mailman.nexussoft.com> References: <8A13872FF821F4488B4A629647DC0C7102C9A5@mailman.nexussoft.com> Message-ID: <1037039403.2522.124.camel@wilson> Is this really necessary? If nothing else, why don't you at least start a new thread. Neither one of you is answering the new user's questions anymore. You can call it "my OS can beat up your OS". If someone wants to truly conduct a survey, the results would, in fact, be interesting. Until then, this thread is morphing into a "Windows sucks!/Linux sucks!" holy war like on every other list out there. For MapServer's sake, mind if we just keep this professional? -- Gerald Thornberry Technical Support Manager Spatial Data Integrations, Inc. (502)568-3628 From Chip.Hankley at gasai.com Mon Nov 11 10:33:06 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Mon, 11 Nov 2002 12:33:06 -0600 Subject: [mapserver-users] beginner getting started Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABF08@postoffice.GASAI.Com> > I am running XP on my machine. Will this be a problem? I can move > to another machine if needed. This shouldn't be a problem. The first thing you need to do is make sure that you have a functioning web service. I'm not an XP person, but Win2K Pro gives you the option to install IIS (Internet Information Service) as a web server. You could also go through the process of installing Apache (free). Start off by looking up "IIS" in help, and see how to install it. As others have mentioned before, the OS you use is irrelevant. All platforms come with their pro's and con's... if you are comfortable working in the windows environment, then stick with that... otherwise you'll be adding one more thing to the things you need to figure out. The executables are not bundled with the demo (at least they didn't used to be). From the main web site, look under downloads. You will see that there are "pre-compiled binaries" - you should choose one of these. This will have an executable (mapserv.exe) - this should get you started. > I hope that I am not biting off too much with this task. There is undoubtedly a learning curve... From tpcolson at nexussoft.com Mon Nov 11 10:46:18 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Mon, 11 Nov 2002 13:46:18 -0500 Subject: [mapserver-users] Formating numbers? Message-ID: <8A13872FF821F4488B4A629647DC0C71023F8C@mailman.nexussoft.com> I have a .dbf file linked to a shape file, with polygon lengths and areas, represented as such: Length 22819.79883560000 Area:16,112,356.43490000000 Mapserver Query returns: Length: 2.28197988356e+004 Area: 1.61123564349e+007 Any way to format that to xxx,xxx.xxx (feet) and xxx,xxx.xxx (Sq. Feet)? in the query.phtml window? From Steve_Palmer at lpsg.com Mon Nov 11 10:49:19 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Mon, 11 Nov 2002 12:49:19 -0600 Subject: [mapserver-users] beginner getting started Message-ID: <750F5C5447AF18408DC73220B98FEAF7866F12@lesexch02.lpsg.com> Hear, hear! -----Original Message----- From: Gerald Thornberry [mailto:gthornberry at sdimaps.com] Sent: Monday, November 11, 2002 11:30 AM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started Is this really necessary? If nothing else, why don't you at least start a new thread. Neither one of you is answering the new user's questions anymore. You can call it "my OS can beat up your OS". If someone wants to truly conduct a survey, the results would, in fact, be interesting. Until then, this thread is morphing into a "Windows sucks!/Linux sucks!" holy war like on every other list out there. For MapServer's sake, mind if we just keep this professional? -- Gerald Thornberry Technical Support Manager Spatial Data Integrations, Inc. (502)568-3628 -------------- next part -------------- An HTML attachment was scrubbed... URL: From DMartin at erac.com Mon Nov 11 11:05:13 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 11 Nov 2002 13:05:13 -0600 Subject: [mapserver-users] beginner getting started Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B61@STL-EXBE-I03.corp.erac.com> As Linux users are quick to point out to Windows users, install base isn't a measure of quality or features. I'd really like to know what the shortcomings of MapServer on Windows are. What makes MapServer rock on RH? Why doesn't it rock as much on Windows? -Dan Martin -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Monday, November 11, 2002 11:19 AM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started Daniel,I think this calls for a detailed user survey. There are several cookie cutter survey cgi-forms out there. I'd be interested to see what the major install base is. BTW,mapserver ROCKS on RH, at least in my env. -----Original Message----- From: Martin, Daniel [mailto:DMartin at erac.com] Sent: Monday, November 11, 2002 12:09 PM To: 'Yu-Hsin Chen'; Thomas P. Colson; Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started As someone who uses MapServer on Windows with no Windows specific problems, I would like to hear from you guys some reasons behind your statements. I'd like to know what it is I'm missing out on. If there is some specific advantage other than your passion for the platform, I'd like to know about it. I've never heard of any myself, so if there is it would help me to know about it. Passion is certainly admirable. But if passion is the only reason, I'm honestly a little bewildered to see new users steered towards a platform without specific reasons. Windows users might be turned off from MapServer by believing it doesn't work well under "Winders", when in fact it runs very well. I'd hate to see that happen, because MapServer is great! -Dan Martin -----Original Message----- From: Yu-Hsin Chen [mailto:ychen at yorktel.com] Sent: Monday, November 11, 2002 9:30 AM To: Thomas P. Colson; Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started Although I've read in this list that MapServer runs on Windows, in the long run, I'd have to agree with Tom that you should try a Linux platform ( or UNIX if you have access to one ). >From your description I take you might not have experienced Linux/UNIX yet. It does cost 'a little' more to set up a UNIX than a Linux system. If you have a spare computer you can either download or buy ( inexpensively ) installation CD for Linux. Red Hat is a popular commercialized brand. I personally run Mandrake 8.0 with MapServer running either using shape files or directly retrieve data from Oracle. It is not 'that' difficult to set it up. -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Monday, November 11, 2002 9:16 AM To: Seth Rodriguez; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] beginner getting started What are your Linux Skills? It works much better "out of the box" on Red Hat. I'd stay away from "Winders". -----Original Message----- From: Seth Rodriguez [mailto:srodriguez at maguiregroup.com] Sent: Monday, November 11, 2002 8:40 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] beginner getting started I have been asked by the boss to develop some new marketable GIS skills. Our company does a lot of work in the transportation industry. One task in our transportation work is to do public involvement. So I have suggested developing project websites with web-based project mapping using MapServer, which I was introduced to at an ArcView training. To assess the usability of the software, I wanted to implement a test to show the boss. Unfortunately, my programming experience is limited to a bit of avenue, AML, VB, and html, none of which I would say I am fluent in. Fortunately, the description of the software notes that programming is not required for basic use. I apologize for my novice questions, but I am having some problems off the bat. I have downloaded the newest version (3.6.3) and the demo, but have not found any executables in the zips. I am assuming that this is due to a corrupted download. I also noticed that the software is known to run on 95, 98, and NT. I am running XP on my machine. Will this be a problem? I can move to another machine if needed. I hope that I am not biting off too much with this task. Luckily for me, I am a quick learner. Would anyone out there please consider taking a young, ambitious consultant under their wing to help him impress his boss? I will be forever grateful. Thanks for your time. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at medinaco.org Mon Nov 11 12:25:55 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 11 Nov 2002 15:25:55 -0500 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: <200211112024.gABKOfX16877@yogi.medinaco.net> If you run the script at the command line and then immediately do "cat mapserver.log" what does it show? If you also do "ls -l mapserver.log" what does it show? Lowell F. The following message was sent by "krung" on Sun, 10 Nov 2002 00:09:08 +0700. > Hi Lowell, Puneet > > I tried as you told me. If I ran with command line, mapserver.log was created whem error occured. But when run on Apache, mapserver's never created as error occured. (access right with this directory'd set to 777 already) So I checked it at error_log of httpd log file, but it's non-sense to me. It showed only "Premature of script headers: /usr/mapserver/testmap.pl". > > And I tried to change script logic flow as you, Puneet, told me. It's the same error as before (Internal Server Error). > > Do I have to specially configure when I create mapserver program? Any comments, help, advice would be graceful. > > Thank you > Krung > > > ---------- Original Message ---------------------------------- > From: "Lowell Filak" > Date: Thu, 07 Nov 2002 08:24:06 -0500 > > >You can try adding the line noted below and see if a file mapserver.log exists in the current directory and if it reports an error. > >If the mapserver.log file isn't created then try changing the path of the log file to somewhere writeable by the apache process. > >HTH > >Lowell F. > > > >The following message was sent by "Krung Saengpole" on Thu, 7 Nov 2002 18:45:20 +0700. > > > >> Hello all, > >> > >> I had trouble getting perl mapscript run on Apache 1.3.26 under RH 7.2. Mapscript compiled from mapserver 3.6.3. > >> > >> My script is: > >> > >> #!/usr/bin/perl > >> use mapscript; > >> use CGI qw/:standard/; > > > >$ENV{MS_ERRORFILE} = "mapserver.log"; <--Try adding this line. > > > >> > >> print header(); > >> print start_html(); > >> $map = new mapObj('mapfile.map'); > >> $img = $map->draw(); # <---- error took place here > >> $img->saveImage('file.png', $mapscript::MS_PNG,1,1,0); > >> .... > >> .... > >> > >> What I did wrong with this script or anything else? But I could run this script at command line. I'm very new to Linux. I tried to write a script that open database and run under Apache, it had no problem. So, I thought it should not be wrong with Apache configuration. > >> > >> Thank you in advance. > >> Krung. > > > > > > From DMartin at erac.com Mon Nov 11 13:50:43 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 11 Nov 2002 15:50:43 -0600 Subject: [mapserver-users] JS -- Query result in a new window Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B63@STL-EXBE-I03.corp.erac.com> Off hand I don't see anything wrong with your code. My first suggestion is to make sure you are getting inside the if statement. Simply add an alert. if (document.mapserv.mode.value == "nquery") { alert('Got Here'); document.mapserv.target = "_blank"; } If you don't get the alert, then add another alert just prior to the if statement: alert(document.mapserv.mode.value); -Dan Martin > -----Original Message----- > From: Till Adams [mailto:adams at terrestris.de] > Sent: Monday, November 25, 2002 6:10 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] JS -- Query result in a new window > > > > Dear listers, > > I'm trying to get this machine doing, what I want ... but it doesn't > want to. > I use MS 3.6.1 and the Mapplet and just want to open a query in a new > window and not in my map window. My JS code is as follows: > > > > Looks fine, but it doesn't work. Every idea is appreciated. Thank you > very much in advance and have a nice weekend! > 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 tbartlett at dddd.com.au Mon Nov 11 13:59:47 2002 From: tbartlett at dddd.com.au (Thomas Bartlett) Date: Tue, 12 Nov 2002 08:59:47 +1100 Subject: [mapserver-users] Mapplet problems. References: <3DFF131E4E6D2D4198CDD758F35A5353010ABF08@postoffice.GASAI.Com> Message-ID: <002001c289cd$a6cf0000$1701a8c0@dddd.com.au> G'Day All, I have only started using MapServ but it is really good to work with. At present I am running it on an XP machine with IIS 5.1 and Internet Explorer 6.0.2. I just download the MapServ Win binarys and it all work fine (with a HTML interface). However when I tried to run Mapplet, I keep getting the following error, exception: com.ms.security.SecurityExceptionEX [mapplet.init]: cannot access "localhost":80 I can't figure it out. It is an XP problem or a Mapplet issue ?? I have tried changing a number of things in the demo.html, the demo_init.html, I have even gone through the code supplied with Mapplet (I didn't change or re-compile it though). Any Ideas. Tom Bartlett ----- Original Message ----- From: "Hankley, Chip" To: "Seth Rodriguez" ; Sent: Tuesday, November 12, 2002 5:33 AM Subject: RE: [mapserver-users] beginner getting started > > I am running XP on my machine. Will this be a problem? I can move > > to another machine if needed. > > This shouldn't be a problem. The first thing you need to do is make sure > that you have a functioning web service. I'm not an XP person, but Win2K Pro > gives you the option to install IIS (Internet Information Service) as a web > server. You could also go through the process of installing Apache (free). > Start off by looking up "IIS" in help, and see how to install it. > > As others have mentioned before, the OS you use is irrelevant. All platforms > come with their pro's and con's... if you are comfortable working in the > windows environment, then stick with that... otherwise you'll be adding one > more thing to the things you need to figure out. > > The executables are not bundled with the demo (at least they didn't used to > be). From the main web site, look under downloads. You will see that there > are "pre-compiled binaries" - you should choose one of these. This will have > an executable (mapserv.exe) - this should get you started. > > > I hope that I am not biting off too much with this task. > > There is undoubtedly a learning curve... From tbartlett at dddd.com.au Mon Nov 11 14:26:01 2002 From: tbartlett at dddd.com.au (Thomas Bartlett) Date: Tue, 12 Nov 2002 09:26:01 +1100 Subject: [mapserver-users] beginner getting started References: <000701c28987$df5efdd0$7a05a8c0@12GVD11> <1037036991.5083.17.camel@arceuthobium.ecology.umn.edu> Message-ID: <008001c289d1$50f07020$1701a8c0@dddd.com.au> G'Day Seth, I'm running MapServ on XP without significant problems. I only have a simple HTML setting running at the moment, and have no intension of running PHP or Perl to do anything spectacular !! Seth you need (as suggested by Perry) 1. IIS running on your machine. You need to XP CD, then goto Control Panel, Add Remove Program, then its add/remove windows component. One of which will be IIS (Internet Information Server) 2. Download the binary files (see locations below). If you want any more help please contain me off the list. Cheers Thomas Bartlett ----- Original Message ----- From: "Pericles S. Nacionales" To: "Seth Rodriguez" Cc: Sent: Tuesday, November 12, 2002 4:49 AM Subject: Re: [mapserver-users] beginner getting started > Seth, > > It should work on Windows XP although I haven't tried compiling it there > (I don't have XP on my machine). It sounds like you've downloaded the > source code. If you'd like to compile it yourself, you'll MS VC/C++ and > lots of time (you'll also have to compile other libraries needed by > MapServer). If you don't want to start there, download one of the > binaries at http://mapserver.gis.umn.edu/win32binaries.html or at > http://www.dmsolutions.ca/dl/webtools/dl/. DM Solutions provides a > php/mapscript dll for Windows. If you are familiar with php, you might > consider looking into it. > > By the way, I use MapServer both on Linux and Windows, and it works well > on both. If you are familiar with Linux, you should try it there as > well. It's much easier to compile MapServer in Linux... although there > are pitfalls, as already mentioned by others. > > Good luck! > -Perry > > On Mon, 2002-11-11 at 07:40, Seth Rodriguez wrote: > > I have been asked by the boss to develop some new marketable GIS skills. > > Our company does a lot of work in the transportation industry. One task > > in our transportation work is to do public involvement. So I have > > suggested developing project websites with web-based project mapping > > using MapServer, which I was introduced to at an ArcView training. To > > assess the usability of the software, I wanted to implement a test to > > show the boss. Unfortunately, my programming experience is limited to a > > bit of avenue, AML, VB, and html, none of which I would say I am fluent > > in. Fortunately, the description of the software notes that programming > > is not required for basic use. > > > > > > > > I apologize for my novice questions, but I am having some problems off > > the bat. I have downloaded the newest version (3.6.3) and the demo, but > > have not found any executables in the zips. I am assuming that this is > > due to a corrupted download. I also noticed that the software is known > > to run on 95, 98, and NT. I am running XP on my machine. Will this be a > > problem? I can move to another machine if needed. > > > > > > > > I hope that I am not biting off too much with this task. Luckily for me, > > I am a quick learner. Would anyone out there please consider taking a > > young, ambitious consultant under their wing to help him impress his > > boss? I will be forever grateful. > > > > > > > > Thanks for your time. > > > > > > > > Seth Rodriguez > > > > Environmental Scientist > > > > GIS Analyst > > > > Maguire Group Inc. > > > > 564 Forbes Avenue, Suite 1212 > > > > Pittsburgh, PA 15219 > > > > (412) 281-6393 > > > > (412) 281-7908 FAX > > > > > > > From vinko at cprsig.cl Mon Nov 11 16:32:29 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Mon, 11 Nov 2002 19:32:29 -0500 Subject: [mapserver-users] Map Scale Message-ID: <20021112003229.GA7574@landsat.cprsig.cl> Hello, I've been looking at the archives, but didn't find a clear explanation about this issue: The scale number shown by Mapserver is measured in what? and in what ways it can be useful for output? Because it doesn't make sense viewing the image, compared to what is 'normal' in real paper maps. Thanks, -- Vinko Vrsalovic http://www.cprsig.cl From gthornberry at sdimaps.com Mon Nov 11 14:35:17 2002 From: gthornberry at sdimaps.com (Gerald Thornberry) Date: 11 Nov 2002 17:35:17 -0500 Subject: [mapserver-users] beginner getting started In-Reply-To: <4ACBA1414DD9EE418CC250E4AAA9035A16F3DD@STL-EXBE-I03.corp.erac.com> References: <4ACBA1414DD9EE418CC250E4AAA9035A16F3DD@STL-EXBE-I03.corp.erac.com> Message-ID: <1037054117.2593.262.camel@wilson> Clarification: The help that the respondents originally rendered in this thread was great. Subsequent responses, however, were becoming increasingly emotionally charged rather than informative and it galled me that: 1. The new user was no longer being served by their own thread 2. Yet another counter-productive OS holy war was brewing My post was a gut response to the same, old Windows vs.Linux argument, when they both suck and don't suck in their own ways. I was trying to call attention to the unprofessional, argumentative _tone_ of the thread rather than say that any _person_ was unprofessional. Bottom line: I wasn't trying to call anybody names. If I offended anyone, I apologize. I prefer to use Linux and OpenBSD myself. As a Tech Support Manager, though, I try to simply stay agnostic and be a "solve the problem with the right wrench" kind of person. Often that involves using Microsoft Windows OSs. An objective comparison of operating systems would, in fact, be very relevant to the MapServer forum. If someone takes the time to genuinely compare them I hope you post the results. It would benefit the MapServer user-base, especially new users, very much. The MapServer list is a public forum, and I'm certainly not its moderator. I'm just a subscriber who didn't feel like hearing a rehash of tired, old Linux vs. Windows rants. I encourage anyone who has advice, instruction, or opinion about MapServer to speak openly (as I did). Gerald -- Gerald Thornberry Technical Support Manager Spatial Data Integrations, Inc. (502)568-3628 From Rich at greenwoodmap.com Mon Nov 11 15:09:45 2002 From: Rich at greenwoodmap.com (Richard Greenwood) Date: Mon, 11 Nov 2002 16:09:45 -0700 Subject: [mapserver-users] Mapplet problems. In-Reply-To: <002001c289cd$a6cf0000$1701a8c0@dddd.com.au> References: <3DFF131E4E6D2D4198CDD758F35A5353010ABF08@postoffice.GASAI.Com> Message-ID: <5.1.1.6.0.20021111160604.00ab3480@mail.GreenwoodMap.com> I'm guessing that maybe Java is disabled in your browser. (Check Tools, Security, Custom Level, Scripting). Or try another browser. Or try this site: http://www2.tetonwyo.org/mapserver and select the Java interface which used mapplet). Then at least you can tell if it's your browser or your server/application. Rich At 08:59 AM 11/12/2002 +1100, you wrote: >G'Day All, > >I have only started using MapServ but it is really good to work with. At >present I am running it on an XP machine with IIS 5.1 and Internet Explorer >6.0.2. I just download the MapServ Win binarys and it all work fine (with a >HTML interface). However when I tried to run Mapplet, I keep getting the >following error, > > exception: com.ms.security.SecurityExceptionEX [mapplet.init]: cannot >access "localhost":80 > >I can't figure it out. It is an XP problem or a Mapplet issue ?? I have >tried changing a number of things in the demo.html, the demo_init.html, I >have even gone through the code supplied with Mapplet (I didn't change or >re-compile it though). > >Any Ideas. > >Tom Bartlett > > > >----- Original Message ----- >From: "Hankley, Chip" >To: "Seth Rodriguez" ; > >Sent: Tuesday, November 12, 2002 5:33 AM >Subject: RE: [mapserver-users] beginner getting started > > > > > I am running XP on my machine. Will this be a problem? I can move > > > to another machine if needed. > > > > This shouldn't be a problem. The first thing you need to do is make sure > > that you have a functioning web service. I'm not an XP person, but Win2K >Pro > > gives you the option to install IIS (Internet Information Service) as a >web > > server. You could also go through the process of installing Apache (free). > > Start off by looking up "IIS" in help, and see how to install it. > > > > As others have mentioned before, the OS you use is irrelevant. All >platforms > > come with their pro's and con's... if you are comfortable working in the > > windows environment, then stick with that... otherwise you'll be adding >one > > more thing to the things you need to figure out. > > > > The executables are not bundled with the demo (at least they didn't used >to > > be). From the main web site, look under downloads. You will see that there > > are "pre-compiled binaries" - you should choose one of these. This will >have > > an executable (mapserv.exe) - this should get you started. > > > > > I hope that I am not biting off too much with this task. > > > > There is undoubtedly a learning curve... Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From rviancos at imagendeempresas.cl Mon Nov 11 15:08:33 2002 From: rviancos at imagendeempresas.cl (=?iso-8859-1?Q?Ren=E9?= =?iso-8859-1?Q?_Vi=E1ncos?=) Date: Mon, 11 Nov 2002 20:08:33 -0300 Subject: [mapserver-users] Mapplet problems. In-Reply-To: <002001c289cd$a6cf0000$1701a8c0@dddd.com.au> References: <3DFF131E4E6D2D4198CDD758F35A5353010ABF08@postoffice.GASAI.Com> Message-ID: <5.1.0.14.0.20021111200709.009f7010@mail.imagendeempresas.cl> i've a very good idea: Try with Linux.... Ren? Viancos From rviancos at imagendeempresas.cl Mon Nov 11 15:40:36 2002 From: rviancos at imagendeempresas.cl (=?iso-8859-1?Q?Ren=E9?= =?iso-8859-1?Q?_Vi=E1ncos?=) Date: Mon, 11 Nov 2002 20:40:36 -0300 Subject: [mapserver-users] =?iso-8859-1?Q?lista_en_espa=F1ol_de_mapserver?= Message-ID: <5.1.0.14.0.20021111203606.009fcd10@mail.imagendeempresas.cl> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: c77f4.jpg Type: image/jpeg Size: 641 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: c781e.jpg Type: image/jpeg Size: 641 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: c782c.jpg Type: image/jpeg Size: 641 bytes Desc: not available URL: From ed at topozone.com Mon Nov 11 15:57:48 2002 From: ed at topozone.com (Ed McNierney) Date: Mon, 11 Nov 2002 18:57:48 -0500 Subject: [mapserver-users] Map Scale Message-ID: <13858AA1A74F30419F319ACB66A9D1220194A2@host218.209.113.211.conversent.net> Vinko - The scale number has no units - a scale ratio, as in "1:25,000" scale. Scale ratios basically make no sense with a digital image, unless you specify the physical output (display or print) resolution of that image in pixels per some physical unit. By default, MapServer assumes that the output device has a resolution of 72 pixels per inch, and computes the scale ratio that way. For example, if MapServer generated a line that it knows is 12 miles long (because MapServer knows such things), and the resulting image is 144 pixels long (which MapServer also knows since it generated the image), then at 72 pixels per inch the image will be two inches long, which is a scale ratio of 12 miles = 2 inches or 6 miles = 1 inch or 380,160 inches = 1 inch. That's a scale of 1:380,160, which is what MapServer will report. You can use the RESOLUTION keyword in the MAP file to change the presumed output resolution. Unless you control the output device completely, reporting the scale as a ratio will never be accurate - but it's what most users expect, so it's worth doing. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com ed at topozone.com -----Original Message----- From: Vinko Vrsalovic [mailto:vinko at cprsig.cl] Sent: Mon 11/11/2002 7:32 PM To: mapserver-users at lists.gis.umn.edu Cc: Subject: [mapserver-users] Map Scale Hello, I've been looking at the archives, but didn't find a clear explanation about this issue: The scale number shown by Mapserver is measured in what? and in what ways it can be useful for output? Because it doesn't make sense viewing the image, compared to what is 'normal' in real paper maps. Thanks, -- Vinko Vrsalovic http://www.cprsig.cl From DMartin at erac.com Mon Nov 11 16:23:48 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 11 Nov 2002 18:23:48 -0600 Subject: [mapserver-users] beginner getting started Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B64@STL-EXBE-I03.corp.erac.com> When writing the thread I was being VERY careful to chose my words because I wanted to make 100% sure I didn't offend anyone. Yet they did. For that I apologize to the list. I would like to know what offended the members of the list, so I can avoid it in the future. I've read, and re-read the thread. I can't find the holy war. I can't find the Windows bashing. I can't find the Linux bashing. I can't find the ranting. Maybe I'm just blind to my own words. I really don't want to be stuck with a cloud of concern over my head every time I post that it might offend members of the list. I do feel that way now, and for now I think I'll keep off the list. Please do let me know, privately or publicly. -Dan Martin > -----Original Message----- > From: Gerald Thornberry [mailto:gthornberry at sdimaps.com] > Sent: Monday, November 11, 2002 4:35 PM > To: mapserver > Subject: RE: [mapserver-users] beginner getting started > > > Clarification: > > The help that the respondents originally rendered in this thread was > great. Subsequent responses, however, were becoming increasingly > emotionally charged rather than informative and it galled me that: > > 1. The new user was no longer being served by their own thread > 2. Yet another counter-productive OS holy war was brewing > > My post was a gut response to the same, old Windows vs.Linux argument, > when they both suck and don't suck in their own ways. I was trying to > call attention to the unprofessional, argumentative _tone_ of > the thread > rather than say that any _person_ was unprofessional. Bottom line: I > wasn't trying to call anybody names. If I offended anyone, I > apologize. > > I prefer to use Linux and OpenBSD myself. As a Tech Support Manager, > though, I try to simply stay agnostic and be a "solve the problem with > the right wrench" kind of person. Often that involves using Microsoft > Windows OSs. An objective comparison of operating systems would, in > fact, be very relevant to the MapServer forum. If someone takes the > time to genuinely compare them I hope you post the results. It would > benefit the MapServer user-base, especially new users, very much. > > The MapServer list is a public forum, and I'm certainly not its > moderator. I'm just a subscriber who didn't feel like > hearing a rehash > of tired, old Linux vs. Windows rants. I encourage anyone who has > advice, instruction, or opinion about MapServer to speak openly (as I > did). > > Gerald > > -- > Gerald Thornberry > Technical Support Manager > Spatial Data Integrations, Inc. > (502)568-3628 > From ahallam at digitalearth.com.au Mon Nov 11 16:26:26 2002 From: ahallam at digitalearth.com.au (Andrew Hallam) Date: Tue, 12 Nov 2002 11:26:26 +1100 Subject: [mapserver-users] beginner getting started In-Reply-To: <1037054117.2593.262.camel@wilson> References: <1037054117.2593.262.camel@wilson> Message-ID: <9355343.1037100386@[192.168.0.11]> I run MapServer on Windows 2000 Server. In my opinion, there are two key issues that you need to consider when planning to use MapServer on Windows: 1. Unless you have Visual C++ and know how to compile, you will be reliant on downloading binary versions of MapServer. The binary versions may, or may not, have all the features you require compiled into them. e.g. You may be able to get binary versions that support FeatureX or FeatureY, but not FeatureX and FeatureY. I suggest you check you requirements against the available binaries. 2. If the web server will be on a network connected to the Internet you have to let IIS respond to HTTP requests that contain "exe" files. i.e. mapserv.exe. That means you cannot use URLScan to block all the automated crack attempts that your server will receive from Code Red style worms and malicious individuals. e.g. Request like "c/winnt/system32/cmd.exe", "/MSADC/root.exe" and "/scripts/root.exe" will not get blocked so you have to be extra careful with your security settings and patches. When using Linux you obviously don't have to worry about Windows security issues like Code Red et al attempting to get in via IIS, but you still have to worry about security issues like the OpenSLL exploit. My $0.02. Regards Andrew Hallam Digital Earth Pty Ltd http://www.digitalearth.com.au From pkishor at GeoAnalytics.com Mon Nov 11 16:31:23 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 11 Nov 2002 18:31:23 -0600 Subject: [mapserver-users] beginner getting started In-Reply-To: <4ACBA1414DD9EE418CC250E4AAA9035A192B61@STL-EXBE-I03.corp.erac.com> Message-ID: <1258B8C9-F5D6-11D6-AFD0-0003936306C2@geoanalytics.com> Dan, All reasonable questions deserve a reasonable answer ;-) On Monday, November 11, 2002, at 01:05 PM, Martin, Daniel wrote: > As Linux users?are quick to point out to Windows users, install base > isn't a measure of quality or features. > ? > I'd really like to know what the shortcomings of MapServer on Windows > are.? What makes MapServer rock on RH?? Why doesn't it rock?as much on > Windows? > mapserver by itself works just as well on both Windows and most all versions/variations of Unix. Windows actually is a pretty good opensource development platform, and if you throw cygwin in the mix, you get most everything *nix has as well. There are a few key differences, however -- 1. Perl/Mapscript support -- does not work on Windows afaik. 2. Windows doesn't come with compilers, so you have to shell out for a commercial compiler (MS). Most all *nix come with the c compiler (gcc) pre-installed. Otherwise you have to depend on someone else preparing the binaries for you. Which means, you can't really experiment with various configurations of mapserver at will unless you have the compiler. The above two, in my view, are perhaps the most significant areas in which *nix wins over Win (!). 3. If you need Postgres/PostGIS support you need *nix, or Cygwin (although there are rumors of a Win build for Postgres, I have not seen it). 4. Some other *nix niceties can be useful depending on the situation... for example, I can work on my Linux box remotely using ssh... of course, for Win there are other workarounds -- you could vpn. The *nix philosophy is different -- there are a lot of small, small programs that can work in tandem and do things for you, and your application can get well integrated into the system. But, there are equal number of creative solutions and utils in Win as well. At this time mapserver seems to be equally popular with both *nix and Win users (and Mac users, ahem!). For most part, it rocks just as well on Win. The general advice is (most preferable first) -- go with what is most appropriate, go with what you know, go with what you can afford, go with what you believe in, go with what you are forced to work with From pramsey at refractions.net Mon Nov 11 17:33:53 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 11 Nov 2002 17:33:53 -0800 Subject: [mapserver-users] beginner getting started References: <1258B8C9-F5D6-11D6-AFD0-0003936306C2@geoanalytics.com> Message-ID: <3DD05A81.D671A310@refractions.net> Puneet Kishor wrote: > 3. If you need Postgres/PostGIS support you need *nix, or Cygwin > (although there are rumors of a Win build for Postgres, I have not seen > it). Puneet, et al, There was a beta of a Windows-native PostgreSQL floating around about 4 months ago, and one of our users even got PostGIS installed and working on it, but since then everything has gone silent. From this I guess we can infer that (a) windows-native PgSQL does exist (b) PostGIS will be usable on window-native PgSQL when it is released (c) at some point windows users may be gratified with a release. Note that you can run Mapserver on Windows and connect to a PostgreSQL/PostGIS system running on UNIX via a TCP/IP network. The PostgreSQL client libraries do TCP/IP connections quite happily, and the Mapserver/PostGIS adapter has been tested with all sorts of funny client/server, big-endian/little-endian combinations. And of course you can run PostgreSQL/PostGIS under windows using the cygwin helper suite (www.cygwin.com). We have lots of users that do so. P. From morissette at dmsolutions.ca Mon Nov 11 17:58:49 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 11 Nov 2002 20:58:49 -0500 Subject: [mapserver-users] MapServer Platform/OS Survey (was: beginner getting started) References: <8A13872FF821F4488B4A629647DC0C7102C9A5@mailman.nexussoft.com> Message-ID: <3DD06059.82F0F0F7@dmsolutions.ca> Thomas P. Colson wrote: > > Daniel,I think this calls for a detailed user survey. There are > several cookie cutter survey cgi-forms out there. I'd be interested > to see what the major install base is. For those interested in a survey, there's a small one in the MapServer wiki that was started a few months ago by Tyler Mitchell. This should at least give you an idea of which platforms are used to run MapServer: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?Platforms_And_Processors Daniel P.S. Note that the objective of this survey was not to decide which one of Windows or Unix/Linux was better, but to find the smallest processor that was used to run sites with MapServer apps. Until now the one to beat is a Pentium 120... anyone running on a P90, P75, or even a 486? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From krung at cad.go.th Mon Nov 11 18:18:37 2002 From: krung at cad.go.th (krung) Date: Tue, 12 Nov 2002 09:18:37 +0700 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: <200211120918.AA41222476@cad.go.th> Lowell, If I ran at the command line "cat mapserver.log", it showed the error I tend to make in mapfile, e.g. I changed "UNITS KILOMETERS" to "UNITS KILO", it showed that it didn't know "KILO". If that mapfile worked without error, no new message's in that log file. And with this error-free script run on Apache, it stoped with "Internal Server Error" with no new message in mapserver.log and at the error_log of Apache, it showed only one line "Premature end of script header:/mapserver/testmap.pl". With this error_log file, I'm very sure it printed out only one line of error per access to this script. Thanks Krung ---------- Original Message ---------------------------------- From: "Lowell Filak" Date: Mon, 11 Nov 2002 15:25:55 -0500 >If you run the script at the command line and then immediately do "cat mapserver.log" what does it show? >If you also do "ls -l mapserver.log" what does it show? >Lowell F. > >The following message was sent by "krung" on Sun, 10 Nov 2002 00:09:08 +0700. > >> Hi Lowell, Puneet >> >> I tried as you told me. If I ran with command line, mapserver.log was created whem error occured. But when run on Apache, mapserver's never created as error occured. (access right with this directory'd set to 777 already) So I checked it at error_log of httpd log file, but it's non-sense to me. It showed only "Premature of script headers: /usr/mapserver/testmap.pl". >> >> And I tried to change script logic flow as you, Puneet, told me. It's the same error as before (Internal Server Error). >> >> Do I have to specially configure when I create mapserver program? Any comments, help, advice would be graceful. >> >> Thank you >> Krung >> >> From morissette at dmsolutions.ca Mon Nov 11 18:50:24 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 11 Nov 2002 21:50:24 -0500 Subject: [mapserver-users] Set Colors with php_mapscript in 3.7 References: <1036925297.547.20.camel@katrin> Message-ID: <3DD06C70.4C041EFA@dmsolutions.ca> Nicol Hermann wrote: > > how can i set colors with php_mapscript in Mapserver 3.7? > I am using the following code with 3.6.3 which works fine. > > $classObj = ms_newClassObj($layer); > $classObj -> set("color", $map->addColor(255, 255, 0) ); > $classObj -> set("outlinecolor", $map->addColor(0, 0, 0) ); > > The same code causes a fatal error with the CVS Version of 3.7: > The way colors are handled internally has changed in 3.7, and as a result of that the internal color table, and the addColor() method that was used to allocate colors are gone. They have been replaced with instances of colorObj everywhere a color is used in MapScript and you set the colors using the $color->setRGB(r, g, b) method. Now, another change in 3.7 that affects you is that the $class->color parameter is gone, as well as most of the class parameters that have been moved to a new styleObj. This was to get rid of the duplication of parameters for overlaycolor, overlaysymbol, etc. So in 3.7 your code would become something like this: $classObj = ms_newClassObj($layer); $style = ms_newStyleObj($classObj); $style->color->setRGB(255, 255, 0); $style->outlinecolor->setRGB(0, 0, 0); Note that 3.6 mapfiles using the old CLASS COLOR parameters are still going to load properly for backwards compatibility, but in MapScript you must use the new styleObj to assign your colors. Finally, the file mapserver/mapscript/php3/README in the 3.7 nightly builds (or from CVS) is usually up to date with respect to the state of PHP MapScript. So you should refer to it to find out what else has changed in PHP MapScript in 3.7. I also placed a live copy of this file that will be automatically updated every morning from CVS at: http://www2.dmsolutions.ca/mapserver/dl/mapserver-3.7-dev-PHP-MAPSCRIPT-README.txt Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From pkishor at GeoAnalytics.com Mon Nov 11 18:50:26 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 11 Nov 2002 20:50:26 -0600 Subject: [mapserver-users] Map Scale In-Reply-To: <20021112003229.GA7574@landsat.cprsig.cl> Message-ID: <7EFF887D-F5E9-11D6-AFD0-0003936306C2@geoanalytics.com> On Monday, November 11, 2002, at 06:32 PM, Vinko Vrsalovic wrote: > Hello, > > I've been looking at the archives, but didn't find a clear explanation > about this issue: The scale number shown by Mapserver is measured in > what? and in what ways it can be useful for output? > technically scale is a ratio... hence, it doesn't have units technically. A scale of 1:xxx means 1 unit on your display (computer or paper) represents xxx units in the real world. So, 1 pix will be xxx pixels, 1 cm will be xxx cms, etc. now customarily folks give different units to the different components of scale (the numerator and denominator). For example, Brits used to refer to 1" to 4 miles maps in olden times in India. Of course, it means what it says... 1" on the paper map is 4 miles in the real world. In your application you can use some Javascript to give the user feedback of the area depicted on the display. Just use appropriate transformations to convert pixels to relevant geographic coords. hth. From pkishor at GeoAnalytics.com Mon Nov 11 19:12:50 2002 From: pkishor at GeoAnalytics.com (pkishor_98) Date: Tue, 12 Nov 2002 03:12:50 -0000 Subject: [mapserver-users] Re: Couldn't run perl mapscript under Apache In-Reply-To: <200211120918.AA41222476@cad.go.th> Message-ID: --- In mapserver-users at y..., "krung" wrote: > Apache, it showed only one line "Premature end of script > header:/mapserver/testmap.pl". With this error_log file, > I'm very sure it printed out only one line of error per > access to this script. it will show only one line unless you run perl with the -w switch #!/usr/bin/perl -w Please use the -w switch, or use diagnostics. > > Thanks > Krung > > ---------- Original Message ---------------------------------- > From: "Lowell Filak" > Date: Mon, 11 Nov 2002 15:25:55 -0500 > > >If you run the script at the command line and then immediately do "cat mapserver.log" what does it show? > >If you also do "ls -l mapserver.log" what does it show? > >Lowell F. > > > >The following message was sent by "krung" on Sun, 10 Nov 2002 00:09:08 +0700. > > > >> Hi Lowell, Puneet > >> > >> I tried as you told me. If I ran with command line, mapserver.log was created whem error occured. But when run on Apache, mapserver's never created as error occured. (access right with this directory'd set to 777 already) So I checked it at error_log of httpd log file, but it's non-sense to me. It showed only "Premature of script headers: /usr/mapserver/testmap.pl". > >> > >> And I tried to change script logic flow as you, Puneet, told me. It's the same error as before (Internal Server Error). > >> > >> Do I have to specially configure when I create mapserver program? Any comments, help, advice would be graceful. > >> > >> Thank you > >> Krung > >> > >> From pkishor at GeoAnalytics.com Mon Nov 11 20:35:43 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 11 Nov 2002 22:35:43 -0600 Subject: [mapserver-users] beginner getting started In-Reply-To: <4ACBA1414DD9EE418CC250E4AAA9035A192B64@STL-EXBE-I03.corp.erac.com> Message-ID: <342E9274-F5F8-11D6-A19C-0003936306C2@geoanalytics.com> On Monday, November 11, 2002, at 06:23 PM, Martin, Daniel wrote: > When writing the thread I was being VERY careful to chose my words > because I > wanted to make 100% sure I didn't offend anyone. you didn't > Yet they did. For that I > apologize to the list. you don't have to > > I would like to know what offended the members of the list, so I can > avoid > it in the future. I've read, and re-read the thread. I can't find > the holy > war. I can't find the Windows bashing. I can't find the Linux > bashing. I > can't find the ranting. there was none. > Maybe I'm just blind to my own words. > > I really don't want to be stuck with a cloud of concern over my head > every > time I post that it might offend members of the list. you don't have to. > I do feel that way > now, and for now I think I'll keep off the list. you shouldn't. > > Please do let me know, privately or publicly. there. I just did. this is a list. people will agree, people will demurr. who cares. its just mapserver, not a freakin' political stump speech. of course, as long as threads don't become idiotic ad nauseam... do stay and contribute. ;-) > > -Dan Martin > > > > > >> -----Original Message----- >> From: Gerald Thornberry [mailto:gthornberry at sdimaps.com] >> Sent: Monday, November 11, 2002 4:35 PM >> To: mapserver >> Subject: RE: [mapserver-users] beginner getting started >> >> >> Clarification: >> >> The help that the respondents originally rendered in this thread was >> great. Subsequent responses, however, were becoming increasingly >> emotionally charged rather than informative and it galled me that: >> >> 1. The new user was no longer being served by their own thread >> 2. Yet another counter-productive OS holy war was brewing >> >> My post was a gut response to the same, old Windows vs.Linux argument, >> when they both suck and don't suck in their own ways. I was trying to >> call attention to the unprofessional, argumentative _tone_ of >> the thread >> rather than say that any _person_ was unprofessional. Bottom line: I >> wasn't trying to call anybody names. If I offended anyone, I >> apologize. >> >> I prefer to use Linux and OpenBSD myself. As a Tech Support Manager, >> though, I try to simply stay agnostic and be a "solve the problem with >> the right wrench" kind of person. Often that involves using Microsoft >> Windows OSs. An objective comparison of operating systems would, in >> fact, be very relevant to the MapServer forum. If someone takes the >> time to genuinely compare them I hope you post the results. It would >> benefit the MapServer user-base, especially new users, very much. >> >> The MapServer list is a public forum, and I'm certainly not its >> moderator. I'm just a subscriber who didn't feel like >> hearing a rehash >> of tired, old Linux vs. Windows rants. I encourage anyone who has >> advice, instruction, or opinion about MapServer to speak openly (as I >> did). >> >> Gerald >> >> -- >> Gerald Thornberry >> Technical Support Manager >> Spatial Data Integrations, Inc. >> (502)568-3628 >> From morissette at dmsolutions.ca Mon Nov 11 20:52:13 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 11 Nov 2002 23:52:13 -0500 Subject: [mapserver-users] WFS support References: Message-ID: <3DD088FD.C6FD94C1@dmsolutions.ca> > Matthew Hatcher wrote: > > What is the current progress of the WFS support within mapserver? I've > had a look at some of the source code and it seems to be fairly well > progressed, but I haven't been able to get a compilation environment > working under Win32 yet, so haven't been able to test it. > You're right there is some useable WFS support in MapServer and it's been there for a few weeks. I've just added a copy of my draft docs for it in the wiki at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?WFSMapServer You can use it already, but there are a few things missing before it's really useful, mainly the attribute filter and query support, these should be added in the near future. > Does anybody have any builds of mapserver (3.6.x or 3.7) that has all > the input and wms formats built in? I'm not bothered about PDF, SWF or > SDE, but I'd like OGR and GDAL, and WMS/WFS as a minimum. > There is no win32 build with WFS on our download site yet, and the Windows makefiles in CVS are not updated to build with WFS either. So your options are either to wait a few weeks until we have time to package prebuilt win32 binaries, or use Linux if you can, or finally if you feel brave and want to try building yourself on windows then see the "special build considerations" in the WFS draft HOWTOs. Note that if you try the build yourself then you're left on your own since supporting everyone doing their own windows builds is just too time consuming. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From morissette at dmsolutions.ca Mon Nov 11 21:46:40 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 12 Nov 2002 00:46:40 -0500 Subject: [mapserver-users] WFS support References: <3DD088FD.C6FD94C1@dmsolutions.ca> <028d01c28a0c$49c6c840$c800a8c0@referencia.cl> Message-ID: <3DD095C0.A1E10285@dmsolutions.ca> Juanse wrote: > > Sorry to bother, but can you explaime in brief what WFS stand for; and what > does it does or is different than WMS (Web map server?). > WFS stands for Web Feature Service. The difference with WMS is that WMS returns an image (GIF, PNG) of selected layers, and WFS returns vector features encoded in GML format. GML stands for Geography Markup Language and is an XML encoding of vector feature information (attributes and coordinates information). When you're browsing maps, zooming, etc then you want to use a WMS server, it's still the most efficient way to browse maps built from remote data sources. However since a WMS sends you only a raster image of the data then it's not possible to do anything intelligent with it like performing attribute queries, or other operations that you would normally do on vector data such as buffers, etc. That's where WFS becomes useful... it allows you to connect to a remote server to request features that match some attribute filter expression for the area of your map, and then your client app (or a cascading server) can use the feature information just like if it was coming out of a local shapefile or a connection to PostGIS or another GIS database. This is in no way a complete description of WFS and of everything you can do with it, but I hope that will help you (and others on the list) understand the difference. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From johnhagstrand at interageresearch.com Tue Nov 12 00:48:00 2002 From: johnhagstrand at interageresearch.com (John Hagstrand) Date: Tue, 12 Nov 2002 02:48:00 -0600 Subject: [mapserver-users] wms getFeatureInfo In-Reply-To: <7CDD7B94357FD5119E800002A537C46EB0FE56@s5-ccr-r1.ccrs.nrca n.gc.ca> Message-ID: <4.3.2.7.0.20021112024529.015f4f18@pop.registeredsite.com> Peter, Thank you very much for the reply. I am doing the query on a polygon layer, and my request looks like yours. Did you also have to do something in your mapfile? If not, then how do you tell mapserver what info to return to a getFeatureInfo request? Thanks, John At 07:43 AM 11/8/2002, Peter.Bruton at CCRS.NRCan.gc.ca wrote: >Hello; > >I received the same sort of message the first time I executed a >GetFeatureInfo request on a point layer. In my case the problem was that >there were no features located in the location at the specified "x"/"y" >location. > >There does not appear to be a way to set a search radius for the >GetFeatureInfo request, so your "x"/"y" location must be exact where >executing the request on a point layer. If you are executing a >GetFeatureInfo request on a polygon layer this sort of problem should not >occur. > >I have provided an example GetFeatureInfo request below. We still have to a >bit of work on our site so I have omitted the PREFIX. > >.........VERSION=1.1.0&REQUEST=GetFeatureInfo&SRS=EPSG%3A4269&BBOX=-178.838, >31.8844,179.94,89.8254&WIDTH=560&HEIGHT=350&QUERY_LAYERS=places_symb_7.5m&X= >113&Y=189 > >I hope this helps. > >Peter Bruton > >-----Original Message----- >From: John Hagstrand [mailto:johnhagstrand at interageresearch.com] >Sent: Friday, November 08, 2002 7:08 AM >To: mapserver-users at lists.gis.umn.edu >Subject: [mapserver-users] wms getFeatureInfo > > >Hello, > >When I execute the WMS getFeatureInfo command, I get this error message. > >GetFeatureInfo results: > > Search returned no results. > >What am I doing wrong? > >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 ------------------------------------------------- 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 Nov 12 04:44:15 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 12 Nov 2002 07:44:15 -0500 Subject: [mapserver-users] WFS support In-Reply-To: <3DD088FD.C6FD94C1@dmsolutions.ca> Message-ID: <3DD0B14F.27285.47AACF94@localhost> Daniel, Thank you for providing this update. It is a very interesting development. Kudos to all involved. I noticed in the limitations for WFS Server that there are no plans for transaction support. I have not familiarized myself with the spec and I realize the that MapServer is not a GIS system that would be more suited to dealing with transactions, but I was wondering if a limited capability to add objects to a special layer or repository would not be a useful feature to Mapserver users. If this is well defined within the spec, I can imagine a site that would allow remote users the ability to add points, lines, etc to a write and view only repository on the server. These added objects could be added to a defined shapefile (yes, there are some locking issues that would need to be dealt with) or a PostGIS or MySQL database and the same could be defined as viewable layer(s). Just something to consider, -Steve W. From tpcolson at nexussoft.com Tue Nov 12 04:48:00 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Tue, 12 Nov 2002 07:48:00 -0500 Subject: [mapserver-users] MapServer Platform/OS Survey (was: beginner getting started) Message-ID: <8A13872FF821F4488B4A629647DC0C71023F8E@mailman.nexussoft.com> P120 ??!?!?! On that note....has anyone gotten any better performance using PHP accelerators, or such? -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Monday, November 11, 2002 8:59 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] MapServer Platform/OS Survey (was: beginner getting started) Thomas P. Colson wrote: > > Daniel,I think this calls for a detailed user survey. There are > several cookie cutter survey cgi-forms out there. I'd be interested > to see what the major install base is. For those interested in a survey, there's a small one in the MapServer wiki that was started a few months ago by Tyler Mitchell. This should at least give you an idea of which platforms are used to run MapServer: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?Platforms_And_Processors Daniel P.S. Note that the objective of this survey was not to decide which one of Windows or Unix/Linux was better, but to find the smallest processor that was used to run sites with MapServer apps. Until now the one to beat is a Pentium 120... anyone running on a P90, P75, or even a 486? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From lfilak at medinaco.org Tue Nov 12 05:32:35 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Tue, 12 Nov 2002 08:32:35 -0500 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: <200211121331.gACDVMX23923@yogi.medinaco.net> Okay. First problem solved. Now please try adding the -w switch to your script as Puneet has suggested and report what happens. Lowell F. The following message was sent by "krung" on Tue, 12 Nov 2002 09:18:37 +0700. > Lowell, > > If I ran at the command line "cat mapserver.log", it showed the error I tend to make in mapfile, e.g. I changed "UNITS KILOMETERS" to "UNITS KILO", it showed that it didn't know "KILO". If that mapfile worked without error, no new message's in that log file. And with this error-free script run on Apache, it stoped with "Internal Server Error" with no new message in mapserver.log and at the error_log of Apache, it showed only one line "Premature end of script header:/mapserver/testmap.pl". With this error_log file, I'm very sure it printed out only one line of error per access to this script. > > Thanks > Krung > > ---------- Original Message ---------------------------------- > From: "Lowell Filak" > Date: Mon, 11 Nov 2002 15:25:55 -0500 > > >If you run the script at the command line and then immediately do "cat mapserver.log" what does it show? > >If you also do "ls -l mapserver.log" what does it show? > >Lowell F. > > > >The following message was sent by "krung" on Sun, 10 Nov 2002 00:09:08 +0700. > > > >> Hi Lowell, Puneet > >> > >> I tried as you told me. If I ran with command line, mapserver.log was created whem error occured. But when run on Apache, mapserver's never created as error occured. (access right with this directory'd set to 777 already) So I checked it at error_log of httpd log file, but it's non-sense to me. It showed only "Premature of script headers: /usr/mapserver/testmap.pl". > >> > >> And I tried to change script logic flow as you, Puneet, told me. It's the same error as before (Internal Server Error). > >> > >> Do I have to specially configure when I create mapserver program? Any comments, help, advice would be graceful. > >> > >> Thank you > >> Krung > >> > >> > From morissette at dmsolutions.ca Tue Nov 12 06:26:18 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 12 Nov 2002 09:26:18 -0500 Subject: [mapserver-users] PointZ References: Message-ID: <3DD10F8A.76A22A59@dmsolutions.ca> "Lowther, David W" wrote: > > I've seen a couple of things in the archives and in practice letting me know > that mapserver doesn't like shapefiles with z (i.e. PointZ) but nothing > explaining why... It's easy enough to work around, but I was just curious. > Why doesn't mapserver like these shapefiles? > It's simply because MapServer uses a version of shapelib that doesn't support the shapefile with z values. Note that you could read those files today using an OGR CONNECTION since OGR comes with the latest version of shapelib which supports the shapefiles with Z values. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From rich at greenwoodmap.com Tue Nov 12 06:43:21 2002 From: rich at greenwoodmap.com (Richard Greenwood) Date: Tue, 12 Nov 2002 07:43:21 -0700 Subject: [mapserver-users] mapplet enhancement Message-ID: <5.1.0.14.0.20021112074257.00a7efa0@mail.greenwoodmap.com> I started working on a minor enhancement to mapplet this morning to add line drawing for use in a distance measuring tool. I know Rosa supports something like this. Has anyone done this with mapplet? Or is anybody already working on it? Rich Richard W. Greenwood, PLS (307) 733-0203 Rich at GreenwoodMap.com www.GreenwoodMap.com From morissette at dmsolutions.ca Tue Nov 12 07:00:19 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 12 Nov 2002 10:00:19 -0500 Subject: [mapserver-users] WFS support References: <3DD0B14F.27285.47AACF94@localhost> Message-ID: <3DD11783.9120F716@dmsolutions.ca> woodbri at swoodbridge.com wrote: > > I noticed in the limitations for WFS Server that there are no plans > for transaction support. I have not familiarized myself with the spec > and I realize the that MapServer is not a GIS system that would be > more suited to dealing with transactions, but I was wondering if a > limited capability to add objects to a special layer or repository > would not be a useful feature to Mapserver users. If this is well > defined within the spec, I can imagine a site that would allow remote > users the ability to add points, lines, etc to a write and view only > repository on the server. These added objects could be added to a > defined shapefile (yes, there are some locking issues that would need > to be dealt with) or a PostGIS or MySQL database and the same could > be defined as viewable layer(s). > Hi Steve, We should not forget that MapServer is a toolkit to serve maps and navigation interfaces. This is what it was designed and built for and that's why it outperforms most (all?) other systems for fast webmapping interfaces. It is currently built and optimized for read-only access to the data, so I'm not convinced that it would be a smart idea to start bloating MapServer itself to support database updates. My opinion may change eventually, but for now I would be hesitant to go in that direction. However, this doesn't mean that you should be prevented from using WFS transactions in a complete webmapping application. Since MapServer is just a toolkit, you could use it with another toolkit which would be built and optimized for database and/or WFS transactions and then build a complete webmapping site that combines fast navigation interfaces with MapServer and WFS transactions with another tool. This other tool could be a WFS built on top of OGR, or on top of PostGIS, or any other data engine that MapServer supports already. So any update made to the data source using the WFS interface would be reflected immediately on your MapServer map and the user would never notice that you are actually using two tools to build your application. BTW, I think we'll have a transactional WFS at some point in the not too distant future. If you can live with Java Servlets then there is already Geoserver (http://geoserver.sourceforge.net/html/index.php) which supports WFS. I haven't tested it so I cannot tell you how well it goes or if it supports transactions. Other options also include building a WFS interface on top of OGR directly (in C/C++), or on top of PostGIS. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From Steve_Palmer at lpsg.com Tue Nov 12 07:08:52 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Tue, 12 Nov 2002 09:08:52 -0600 Subject: [mapserver-users] Map Scale Message-ID: <750F5C5447AF18408DC73220B98FEAF7866F4D@lesexch02.lpsg.com> That's about as succinct an explanation as I've heard/seen. So if the map units were in meters, would one plug in a resolution value of 182.88 pixels per centimeter (72 * 2.54) to derive the scale? -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Monday, November 11, 2002 4:58 PM To: vinko at cprsig.cl; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Map Scale Vinko - The scale number has no units - a scale ratio, as in "1:25,000" scale. Scale ratios basically make no sense with a digital image, unless you specify the physical output (display or print) resolution of that image in pixels per some physical unit. By default, MapServer assumes that the output device has a resolution of 72 pixels per inch, and computes the scale ratio that way. For example, if MapServer generated a line that it knows is 12 miles long (because MapServer knows such things), and the resulting image is 144 pixels long (which MapServer also knows since it generated the image), then at 72 pixels per inch the image will be two inches long, which is a scale ratio of 12 miles = 2 inches or 6 miles = 1 inch or 380,160 inches = 1 inch. That's a scale of 1:380,160, which is what MapServer will report. You can use the RESOLUTION keyword in the MAP file to change the presumed output resolution. Unless you control the output device completely, reporting the scale as a ratio will never be accurate - but it's what most users expect, so it's worth doing. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com ed at topozone.com -----Original Message----- From: Vinko Vrsalovic [mailto:vinko at cprsig.cl] Sent: Mon 11/11/2002 7:32 PM To: mapserver-users at lists.gis.umn.edu Cc: Subject: [mapserver-users] Map Scale Hello, I've been looking at the archives, but didn't find a clear explanation about this issue: The scale number shown by Mapserver is measured in what? and in what ways it can be useful for output? Because it doesn't make sense viewing the image, compared to what is 'normal' in real paper maps. Thanks, -- Vinko Vrsalovic http://www.cprsig.cl -------------- next part -------------- An HTML attachment was scrubbed... URL: From srodriguez at maguiregroup.com Tue Nov 12 07:14:32 2002 From: srodriguez at maguiregroup.com (Seth Rodriguez) Date: Tue, 12 Nov 2002 10:14:32 -0500 Subject: [mapserver-users] trying to test my install with the sample data Message-ID: <000d01c28a5e$34dd6a40$7a05a8c0@12GVD11> Hey all. Thanx to all for your much appreciated help and patience. I believe that I have gotten the third win32 binary (ms36gif_gdal_pg_wms.zip ) loaded properly using IIS on my desktop winXP machine, and I am trying to test it with the sample data. Using the directions offered at MapServer 3.5 Demo Instructions, I have edited the demo_init.html and demo.map files as instructed with no problem. Here is where I have hit a bump. To make sure that my web server and mapserver cgi program are running properly, I typed http://localhost/scripts/mapserv.exe into my internet explorer window. The tutorial says I should get the message - no query information to decode. Query_string set, but empty. I got the message as - No query information to decode. QUERY_STRING not set. Any idea what I have done wrong? Also, I am when I run mapserv.exe, I get that annoying open/save message box that seems to be preventing my app from working properly. Please help. The end seems so close yet so far away. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From gadoury at dmsolutions.ca Tue Nov 12 07:27:15 2002 From: gadoury at dmsolutions.ca (Dean Gadoury) Date: Tue, 12 Nov 2002 10:27:15 -0500 Subject: [maplab-users] RE: [mapserver-users] How to get rid of stock credits References: <8A13872FF821F4488B4A629647DC0C71023F8B@mailman.nexussoft.com> Message-ID: <3DD11DD3.4010004@dmsolutions.ca> That is a very good point, and is a better solution if you want to eliminate the line in all you applications, or put in one of your own. Just a note though, the line to edit may be different under different platforms and/or configurations. For example on my Windows system in MapLab version 2.0rc3-dev the line to edit is 365. For the sake of clarity here is the contents of that line: ."this application was built using GMapFactory" Thomas P. Colson wrote: >By editing line 386 of "build_phtml.php" in the htdocs directory, one can change the default credits to NOT change everytime GMAP factory is opened. >-----Original Message----- >From: Dean Gadoury [mailto:gadoury at dmsolutions.ca] >Sent: Tuesday, November 05, 2002 1:51 PM >To: Thomas P. Colson >Cc: mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] How to get rid of stock credits > > >MapLab specific questions can be posted the the maplab list. To >subscribe see: http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > >To answer your question though: You can get rid of that text by editing >the html code for the page. The trick is that it is found in >x_contents.php, where x is the name you gave your application. You can >also modify other page elements in this file, like colours, fonts or >even the layout, but I will include 2 major cautionary notes. > >1. If you modify any code in this file and re-open the project in >GMapFactory, your changes will be overwritten automatically by GMF. So >if you delete the credit line using your favorite text editor, then open >the project in GMF again the credit line will re-appear. This is the >expected and desired behaviour of GMF. So go ahead and make changes, but >it is best to make sure your application is finalized first. As long as >you don't open the project in GMF again you should have no problems. > >2. Unless you really know what you're doing you shouldn't edit anything >inside the php code tags: > >I hope that answers your question. > >Dean > >Thomas P. Colson wrote: > > > >>How to get rid of "this application was built using GMapFactory" credit at bottom of page? >> >> >> >> >> >> > > > -- ___________________________ Dean Gadoury DM Solutions Group 72 Chamberlain Ave. Third Floor Ottawa, Ontario. K1S 1V9 613 565-5056 ext. 24 gadoury at dmsolutions.ca www.dmsolutions.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at ou.edu Tue Nov 12 07:49:01 2002 From: dlowther at ou.edu (Lowther, David W) Date: Tue, 12 Nov 2002 09:49:01 -0600 Subject: [mapserver-users] trying to test my install with the sample d ata Message-ID: the open save msg box can be avoided by disallowing execute access from that directory in your webserver. -----Original Message----- From: Seth Rodriguez [mailto:srodriguez at maguiregroup.com] Sent: Tuesday, November 12, 2002 9:15 AM To: mapserver-users at lists.gis.umn.edu; 'Thomas Bartlett'; 'Shaun Kolomeitz' Subject: [mapserver-users] trying to test my install with the sample data Hey all. Thanx to all for your much appreciated help and patience. I believe that I have gotten the third win32 binary ( ms36gif_gdal_pg_wms.zip ) loaded properly using IIS on my desktop winXP machine, and I am trying to test it with the sample data. Using the directions offered at MapServer 3.5 Demo Instructions, I have edited the demo_init.html and demo.map files as instructed with no problem. Here is where I have hit a bump. To make sure that my web server and mapserver cgi program are running properly, I typed http://localhost/scripts/mapserv.exe into my internet explorer window. The tutorial says I should get the message - no query information to decode. Query_string set, but empty. I got the message as - No query information to decode. QUERY_STRING not set. Any idea what I have done wrong? Also, I am when I run mapserv.exe, I get that annoying open/save message box that seems to be preventing my app from working properly. Please help. The end seems so close yet so far away... Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Tue Nov 12 07:52:24 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Tue, 12 Nov 2002 09:52:24 -0600 (CST) Subject: [mapserver-users] SOS (FWD) Message-ID: <200211121552.gACFqOG16572@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Rosa Aguilar" To: Subject: SOS Date: Tue, 12 Nov 2002 11:51:23 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 I am a really new user of Mapserver. In fact, I am having trouble compiling the code. I guest I have the required libraries ann source files, But When i try to compile I got an error SO i dont get mapserv.exe I downloaded gdal, however i don't know how to produce ?*.exe ?. I run the following: configure make all --> "Nothing to do......" Please any help :-( Ing. Rosa Mar?a Aguilar Centro de Procesamiento Digital de Im?genes Tlf: 9034660 - 9034781 ------------- End Forwarded Message ------------- From tpcolson at nexussoft.com Tue Nov 12 08:07:20 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Tue, 12 Nov 2002 11:07:20 -0500 Subject: [mapserver-users] SOS (FWD) Message-ID: <8A13872FF821F4488B4A629647DC0C71023F91@mailman.nexussoft.com> What's your environment? W2K? Unix? -----Original Message----- From: Thomas E. Burk [mailto:teb at mallit.fr.umn.edu] Sent: Tuesday, November 12, 2002 10:52 AM To: mapserver-users at lists.gis.umn.edu Cc: rosaa at fii.org Subject: [mapserver-users] SOS (FWD) ------------- Begin Forwarded Message ------------- From: "Rosa Aguilar" To: Subject: SOS Date: Tue, 12 Nov 2002 11:51:23 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 I am a really new user of Mapserver. In fact, I am having trouble compiling the code. I guest I have the required libraries ann source files, But When i try to compile I got an error SO i dont get mapserv.exe I downloaded gdal, however i don't know how to produce ?*.exe ?. I run the following: configure make all --> "Nothing to do......" Please any help :-( Ing. Rosa Mar?a Aguilar Centro de Procesamiento Digital de Im?genes Tlf: 9034660 - 9034781 ------------- End Forwarded Message ------------- From steve.lime at dnr.state.mn.us Tue Nov 12 08:17:48 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 12 Nov 2002 10:17:48 -0600 Subject: [mapserver-users] Fwd: SOS Message-ID: -------------- next part -------------- An embedded message was scrubbed... From: "Rosa Aguilar" Subject: SOS Date: Tue, 12 Nov 2002 11:51:23 +0100 Size: 1631 URL: From pkishor at GeoAnalytics.com Tue Nov 12 08:22:49 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 12 Nov 2002 10:22:49 -0600 Subject: FW: [mapserver-users] beginner getting started Message-ID: fyi a list of free compilers for windoze. I installed dev-c++ and I too found it to be very nice. > -----Original Message----- > From: Homme Zwaagstra [mailto:hrz at geodata.soton.ac.uk] > Sent: Tuesday, November 12, 2002 4:46 AM > To: pkishor at geoanalytics.com > Subject: Re: [mapserver-users] beginner getting started > > > > > 2. Windows doesn't come with compilers, so you have to > shell out for a > > commercial compiler (MS). > > A list of free, non-commercial compilers is available at: > > http://www.bloodshed.net/compilers/index.html#free_comps > >I have tried and been impressed with Dev-C++ in particular, although >I have not gone as far as compiling Mapserver with it! From rmurray at NRCan.gc.ca Tue Nov 12 08:57:44 2002 From: rmurray at NRCan.gc.ca (Murray, Ross) Date: Tue, 12 Nov 2002 11:57:44 -0500 Subject: [mapserver-users] I give up; WMS (client) Message-ID: <3E3C279AF3F9D411BAA00002A529150E02C51904@s0-ott-x10.nrn.nrcan.gc.ca> Uncle! I have been trying for days now to retrieve a layer (any layer) into my MapServer application from a remote MapServer source. I am sure I have a correctly compiled programme: MapServer version 3.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=SDE INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE and I am sure all the paths, including the one to the epsg file, are correctly specified. My server end gets its stuff from an SDE layer and the display is fine. I use the same programme, the same templates, and differ only in these lines in the map file in server WEB object < METADATA < WMS_TITLE "Surficial geology - Milne Inlet, NU" < WMS_ONLINERESOURCE "http://s5-ott-issbeta/Scripts/mapserv.exe?map=C%3a%2fInetpub%2fsurficial%2f maps%2fmilne.map&" --- in client WEB object > METADATA > WMS_TITLE "Surficial geology - Milne Inlet, NU" > WMS_ONLINERESOURCE "http://w5-ott-isstsd2/Scripts/mapserv.exe?map=C%3a%2fInetpub%2fwwwroot%2fma pserv_site%2fmilne.map&" and, in server end LAYER object (slightly altered with x's) < DATA "GSC10196200002PLY,shape" < CONNECTION "xxx.xxx.nrcan.gc.ca,port:5151,null,xxxx,xxxx" < CONNECTIONTYPE sde < NAME milne --- client end LAYER object > CONNECTION "http://s5-ott-issbeta/Scripts/mapserv.exe?map=C%3a%2fInetpub%2fsurficial%2f maps%2fmilne.map&REQUEST=GetMap&VERSION=1.1.0&FORMAT=image/png&LAYERS=milne& TRANSPARENT=true" > CONNECTIONTYPE WMS > NAME milne It does not work. I get a blank image (but the scalebar is fine). On the advice of a knowledgable colleague I tried connecting to a demo layer using this for the LAYER object LAYER NAME "GMap_WMS_Demo_Server-park" STATUS ON TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?SERVICE=WMS&VERSION=1.1.0&LAY ERS=park&QUERY_LAYERS=park&FORMAT=image/gif&TRANSPARENT=TRUE" UNITS METERS SIZEUNITS PIXELS TOLERANCE 3 TOLERANCEUNITS PIXELS METADATA "wms_srs" "EPSG:4269 EPSG:4326" "wms_title" "Parks" "wms_boundingbox" "EPSG:4269 -2346800 -67422.39844 2840370 3830120" "wms_queriable" "1" "wms_latlonboundingbox" "-173.433 41.4271 -13.0481 83.7466" END PROJECTION "" "proj=lcc" "ellps=WGS84" "lat_1=49" "lat_2=77" "lat_0=49" "lon_0=-95" "x_0=0" "y_0=0" END #End layer projection END #End of raster layer "GMap_WMS_Demo_Server-park" Again a nice scalebar but a blank image. Can anyone suggest why this image is blank, or can anyone point me in the direction of how to debug something like this? I am most grateful to all the kind help I have received. <> -------------- next part -------------- A non-text attachment was scrubbed... Name: Murray, Ross.vcf Type: application/octet-stream Size: 399 bytes Desc: not available URL: From nacional at biosci.cbs.umn.edu Tue Nov 12 09:05:53 2002 From: nacional at biosci.cbs.umn.edu (Pericles S. Nacionales) Date: 12 Nov 2002 11:05:53 -0600 Subject: [mapserver-users] SOS (FWD) In-Reply-To: <200211121552.gACFqOG16572@mallit.fr.umn.edu> References: <200211121552.gACFqOG16572@mallit.fr.umn.edu> Message-ID: <1037120772.8657.4.camel@arceuthobium.ecology.umn.edu> Rosa, Try one of the "MapServer Compilation HOWTOs" at http://mapserver.gis.umn.edu/doc36/. It should get you at least started. -Perry On Tue, 2002-11-12 at 09:52, Thomas E. Burk wrote: > > ------------- Begin Forwarded Message ------------- > > From: "Rosa Aguilar" > To: > Subject: SOS > Date: Tue, 12 Nov 2002 11:51:23 +0100 > MIME-Version: 1.0 > Content-Transfer-Encoding: 8bit > X-Priority: 3 (Normal) > X-MSMail-Priority: Normal > Importance: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > > > I am a really new user of Mapserver. In fact, I am having trouble compiling > the code. > I guest I have the required libraries ann source files, But When i try to > compile I got an error SO i dont get mapserv.exe > I downloaded gdal, however i don't know how to produce ?*.exe ?. I run the > following: > configure > make all --> "Nothing to do......" > Please any help :-( > > > > Ing. Rosa Mar?a Aguilar > Centro de Procesamiento Digital de Im?genes > Tlf: 9034660 - 9034781 > > > ------------- End Forwarded Message ------------- > > > From bfischer at mpls.houstoneng.com Tue Nov 12 09:10:34 2002 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Tue, 12 Nov 2002 11:10:34 -0600 Subject: [mapserver-users] I give up; WMS (client) Message-ID: <8879CCE0F0187742B7302A93A8B87B0924111B@mpls.houstoneng.com> Murray, Here are a couple of WMS layers I have been using. I hope this might help you out. # RRBDINviewer.map MAP NAME "RRBDINViewer" EXTENT 345221 5009802 896629 5620242 SIZE 500 500 FONTSET "d:/rrbdin/tools/mapserv36/fonts/fontset.list" SYMBOLSET "d:/rrbdin/tools/mapserv36/symbols/symbol.sym" SHAPEPATH "d:/rrbdin/tools/mapviewer/shapefiles" UNITS METERS Projection "init=epsg:26914" END WEB IMAGEPATH "d:/rrbdin/tools/mapserv36/temp_mapserv/" TEMPLATE rrbdinviewer_main.html Metadata wms_title "RRBDIN" # WMS_onlineresource "http://www.rrbdin.org/tools/mapserv36/cgi-bin/mapserv.exe?map=tools/map viewer/rrbdinviewer.map" END MINSCALE 1000 MAXSCALE 7000000 EMPTY '../../mapviewer/query_miss.html' END .... LAYER NAME bathmetry METADATA "wms_title" "Elevation/Bathymetry" "wms_srs" "EPSG:42304 EPSG:4269 EPSG:4326" END TYPE RASTER STATUS OFF CONNECTIONTYPE WMS CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?VERSION=1.1.0&REQUEST=get MAP&LAYERS=bathymetry,prov_bound,drainage,drain_fn,popplaces&SRS=EPSG:42 304&BBox=-2200000,-712631,3072800,3840000&Transparent=false&FORMAT=image /gif" PROJECTION "init=epsg:42304" END End #layer DmSolutions LAYER NAME "usgslandsat7" METADATA "wms_title" "US_Landsat7" "wms_srs" "epsg:4326" "wms_connectiontimeout" "1000" END TYPE RASTER STATUS OFF CONNECTIONTYPE WMS CONNECTION "http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?ServiceName=USGS_W MS_LANDSAT7&VERSION=1.0.0&REQUEST=map&Layers=LANDSAT7&SRS=EPSG:4326&REAS PECT=false&Format=gif" PROJECTION "init=epsg:4326" END END #layer usgslandsat7 Brian -----Original Message----- From: Murray, Ross [mailto:rmurray at NRCan.gc.ca] Sent: Tuesday, November 12, 2002 10:58 AM To: Mapserver-Users (E-mail) Subject: [mapserver-users] I give up; WMS (client) Uncle! I have been trying for days now to retrieve a layer (any layer) into my MapServer application from a remote MapServer source. I am sure I have a correctly compiled programme: MapServer version 3.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=SDE INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE and I am sure all the paths, including the one to the epsg file, are correctly specified. My server end gets its stuff from an SDE layer and the display is fine. I use the same programme, the same templates, and differ only in these lines in the map file in server WEB object < METADATA < WMS_TITLE "Surficial geology - Milne Inlet, NU" < WMS_ONLINERESOURCE "http://s5-ott-issbeta/Scripts/mapserv.exe?map=C%3a%2fInetpub%2fsurficia l%2f maps%2fmilne.map&" --- in client WEB object > METADATA > WMS_TITLE "Surficial geology - Milne Inlet, NU" > WMS_ONLINERESOURCE "http://w5-ott-isstsd2/Scripts/mapserv.exe?map=C%3a%2fInetpub%2fwwwroot% 2fma pserv_site%2fmilne.map&" and, in server end LAYER object (slightly altered with x's) < DATA "GSC10196200002PLY,shape" < CONNECTION "xxx.xxx.nrcan.gc.ca,port:5151,null,xxxx,xxxx" < CONNECTIONTYPE sde < NAME milne --- client end LAYER object > CONNECTION "http://s5-ott-issbeta/Scripts/mapserv.exe?map=C%3a%2fInetpub%2fsurficia l%2f maps%2fmilne.map&REQUEST=GetMap&VERSION=1.1.0&FORMAT=image/png&LAYERS=mi lne& TRANSPARENT=true" > CONNECTIONTYPE WMS > NAME milne It does not work. I get a blank image (but the scalebar is fine). On the advice of a knowledgable colleague I tried connecting to a demo layer using this for the LAYER object LAYER NAME "GMap_WMS_Demo_Server-park" STATUS ON TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?SERVICE=WMS&VERSION=1.1.0 &LAY ERS=park&QUERY_LAYERS=park&FORMAT=image/gif&TRANSPARENT=TRUE" UNITS METERS SIZEUNITS PIXELS TOLERANCE 3 TOLERANCEUNITS PIXELS METADATA "wms_srs" "EPSG:4269 EPSG:4326" "wms_title" "Parks" "wms_boundingbox" "EPSG:4269 -2346800 -67422.39844 2840370 3830120" "wms_queriable" "1" "wms_latlonboundingbox" "-173.433 41.4271 -13.0481 83.7466" END PROJECTION "" "proj=lcc" "ellps=WGS84" "lat_1=49" "lat_2=77" "lat_0=49" "lon_0=-95" "x_0=0" "y_0=0" END #End layer projection END #End of raster layer "GMap_WMS_Demo_Server-park" Again a nice scalebar but a blank image. Can anyone suggest why this image is blank, or can anyone point me in the direction of how to debug something like this? I am most grateful to all the kind help I have received. <> From Rich at greenwoodmap.com Tue Nov 12 09:14:11 2002 From: Rich at greenwoodmap.com (Richard Greenwood) Date: Tue, 12 Nov 2002 10:14:11 -0700 Subject: [mapserver-users] SOS (FWD) In-Reply-To: <200211121552.gACFqOG16572@mallit.fr.umn.edu> Message-ID: <5.1.1.6.0.20021112101027.00a7ea78@mail.GreenwoodMap.com> Start out, please, by telling us what platform you are trying to compile to - windows or linux? If you are on windows, there is no configure script. You generally need to edit the makefile.vc a bit and then run: nmake /f makefile.vc And if you are on windows, have you tried the pre-compiled binaries? That might save you having to compile at all. Rich At 09:52 AM 11/12/2002 -0600, you wrote: >------------- Begin Forwarded Message ------------- > >From: "Rosa Aguilar" >To: >Subject: SOS >Date: Tue, 12 Nov 2002 11:51:23 +0100 >MIME-Version: 1.0 >Content-Transfer-Encoding: 8bit >X-Priority: 3 (Normal) >X-MSMail-Priority: Normal >Importance: Normal >X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > > >I am a really new user of Mapserver. In fact, I am having trouble compiling >the code. >I guest I have the required libraries ann source files, But When i try to >compile I got an error SO i dont get mapserv.exe >I downloaded gdal, however i don't know how to produce ?*.exe ?. I run the >following: >configure >make all --> "Nothing to do......" >Please any help :-( > > > > Ing. Rosa Mar?a Aguilar >Centro de Procesamiento Digital de Im?genes > Tlf: 9034660 - 9034781 > > >------------- End Forwarded Message ------------- Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From Alec_Millar at hc-sc.gc.ca Tue Nov 12 10:19:39 2002 From: Alec_Millar at hc-sc.gc.ca (Alec Millar) Date: Tue, 12 Nov 2002 13:19:39 -0500 Subject: [mapserver-users] unsubscribe Message-ID: unsubscribe From rmurray at NRCan.gc.ca Tue Nov 12 10:54:06 2002 From: rmurray at NRCan.gc.ca (Murray, Ross) Date: Tue, 12 Nov 2002 13:54:06 -0500 Subject: [mapserver-users] I give up; WMS (client) Message-ID: <3E3C279AF3F9D411BAA00002A529150E02C51905@s0-ott-x10.nrn.nrcan.gc.ca> -----Original Message----- From: Debbie Pagurek [ mailto:pagurekd at agr.gc.ca] Sent: Tuesday, November 12, 2002 1:26 PM To: rmurray at NRCan.gc.ca Subject: Re: [mapserver-users] I give up; WMS (client) Hmmm... try setting STATUS DEFAULT instead of STATUS ON for your layers. Nope. That weren't it. I notice that your metadata tags look different from mine . . . Nope. That weren't it neither. For your SDE layer . . . It probably isn't the SDE layer, since that layer looks great in the service that calls it as an SDE layer instead of as a WMS layer. Indeed, if I type http://s5-ott-issbeta/Scripts/mapserv.exe?map=C%3a%2fInetpub%2fsurficial%2fm aps%2fmilne.map &REQUEST=GetMap&VERSION=1.1.0 I get precisely the map image I want. for your second example, . . . Here's one that works: http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?wmtver=1.0.0&Request=GetMap It does look nice on its own, but it still won't come up if I call it as a layer in my WMS client. Interestingly, it is a blank image but without the background colour I assigned. Lastly, I'd just make sure that your projection parameters are OK i.e. do the bounds you give make sense? Try setting it up without using any projection stuff and see if you can get it to work. They are, they do, and it doesn't. Good luck, and let me know if any of this helped. Thanks anyway for your concern. -------------- next part -------------- An HTML attachment was scrubbed... URL: From DMartin at erac.com Tue Nov 12 09:38:54 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 12 Nov 2002 11:38:54 -0600 Subject: [mapserver-users] trying to test my install with the sample d ata Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B66@STL-EXBE-I03.corp.erac.com> Seth, "No query information to decode. QUERY_STRING not set." This is a good message, believe it or not. With an empty query string (meaning nothing like ?someVar=blah&someOtherVar=blah after mapserv.exe) this is exactly what you should get. That tells me, at the very least, you have the permissions set up correctly and mapserv.exe is ready to go. MapServer requires certain things be passed to it. If you work with the demo, the initialization page sets up the query string. If you are getting the prompt to Save or Open, this usually indicates bad headers being returned from the CGI app (mapserv.exe). This usually tells me you probably haven't installed the proper libraries. For the ms36_gdal_pg_wms.zip distribution you need the ms35_libs.zip, which is found near the bottom of the same web page. Extract every file, except readme.txt, into your C:\WINNT\SYSTEM32 directory. If you have already done that step, let us know. -Dan -----Original Message----- From: Seth Rodriguez [mailto:srodriguez at maguiregroup.com] Sent: Tuesday, November 12, 2002 9:15 AM To: mapserver-users at lists.gis.umn.edu; 'Thomas Bartlett'; 'Shaun Kolomeitz' Subject: [mapserver-users] trying to test my install with the sample data Hey all. Thanx to all for your much appreciated help and patience. I believe that I have gotten the third win32 binary (ms36gif_gdal_pg_wms.zip) loaded properly using IIS on my desktop winXP machine, and I am trying to test it with the sample data. Using the directions offered at MapServer 3.5 Demo Instructions, I have edited the demo_init.html and demo.map files as instructed with no problem. Here is where I have hit a bump. To make sure that my web server and mapserver cgi program are running properly, I typed http://localhost/scripts/mapserv.exe into my internet explorer window. The tutorial says I should get the message - no query information to decode. Query_string set, but empty. I got the message as - No query information to decode. QUERY_STRING not set. Any idea what I have done wrong? Also, I am when I run mapserv.exe, I get that annoying open/save message box that seems to be preventing my app from working properly. Please help. The end seems so close yet so far away. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX From mapserver at peligroso.gaiaenv.com Tue Nov 12 14:48:32 2002 From: mapserver at peligroso.gaiaenv.com (Mapserver account for mailing list) Date: Tue, 12 Nov 2002 15:48:32 -0700 (MST) Subject: [mapserver-users] SDE joins Message-ID: <200211122248.gACMmWkH006780@peligroso.gaiaenv.com> I have found no obvious mechanism to undertake tabular joins in mapserver for SDE layers. Any hacks? Will this be a feature in the future? Thanks in advance. My current solution involves triggers in SQL Server and data duplication (not a preferred method). Cheers, Jim From mapserver at peligroso.gaiaenv.com Tue Nov 12 15:17:03 2002 From: mapserver at peligroso.gaiaenv.com (Mapserver account for mailing list) Date: Tue, 12 Nov 2002 16:17:03 -0700 (MST) Subject: [mapserver-users] SDE performance Message-ID: <200211122317.gACNH3Mo006903@peligroso.gaiaenv.com> We have been running MapServer (MS) on Linux since 1998 and have been using it recently to connect to SDE. As our repositories of information grow inside SDE, we have been using MS to hit those very same datasets as we do in ArcMap. Connectivity to the data sets is not a problem, but performance is. Our MS is running on a Linux server while our SDE runs on a Win2K server. Performance from other Win2K servers and workstations to SDE, on databases of varying sizes, is very good (largest DB is ~32GB). When hitting the SDE from the Linux server, performance is horrible. I began tracing the problem about a week ago and have hypothesized that the performance issue lies in how MS is connecting to SDE. The SDE server is 'big and fast' and is not the bottleneck (other apps hit SDE with prowess). The network connectivity between the Linux server and the SDE server is not the issue as it is on a gig ether connection (yes, a decent backplane on the switch) and workstations with a 100Mbit connection retrieve the same data faster. The processor on the Linux box is fast as well. It gets pinned for a period of time initially, but processor load is very short and in sporadic bursts (mostly initially). I have monitored the network load between the 2 boxes and the processor, and memory loads on each box as I spawn a 'map' via MS. Even very simple layers with little data to display take a long time to display. Processor, memory, and network hits are intermittent and not what I would call large for the infrastructure. My theory is that the latency between MS request and display has to do more with the number of connections/authentications (viz., for each layer) that occur between MS and SDE. (Steve, ideas?) The nature of the map file and a brief peek at the source seemed to point to frequent connections occurring. If this is the case, would it not make more sense to permit a nesting of layer objects inside a 'connection object' so that one single connection could be made for multiple layer requests (I am not proposing this, simply exemplifying how the number of connection transactions could be reduced). Persistent connections are obviously not a solution for a web-based CGI, but a persistent connection during a single MS request does make sense to me. Perhaps I am missing something Suggestions from Steve or anyone with similar configs would be appreciated. MS with tiled shapefiles was blazing, but the sheer volume of data we manage makes that option defunct. Thanks in advance for your help. Cheers, Jim From jimmy at deefa.com Tue Nov 12 14:53:50 2002 From: jimmy at deefa.com (James Healy) Date: 13 Nov 2002 09:53:50 +1100 Subject: [mapserver-users] SDE joins In-Reply-To: <200211122248.gACMmWkH006780@peligroso.gaiaenv.com> References: <200211122248.gACMmWkH006780@peligroso.gaiaenv.com> Message-ID: <1037141632.49233.19.camel@jimmy> Hi there... I have some custom made shp and dbf files that i make with output from various scripts, and at the moment i've got it displaying as several layers by using expressions on the dbf fields... my question is, is it possible to pass the criteria for the expression via a URL or some other means, besides hard coding it into the map file? thanks James -- ****************************************************** By reading this email, you are old enough to have almost certainly broken the law somewhere, sometime. There are so many of them and they are so complicated it is highly unlikely you haven't. So remove carefully remove all sharp objects from your person and slowly approach the nearest police station with your hands in the air. work: worker at aycs.org.au / personal: jimmy at deefa.com msn: jimmy at deefa.com / ICQ: 6370237 web: www.deefa.com ****************************************************** From pramsey at refractions.net Tue Nov 12 16:24:10 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 12 Nov 2002 16:24:10 -0800 Subject: [mapserver-users] SDE performance References: <200211122317.gACNH3Mo006903@peligroso.gaiaenv.com> Message-ID: <3DD19BAA.8010609@refractions.net> Mapserver account for mailing list wrote: > Would it not > make more sense to permit a nesting of layer objects inside a > 'connection object' so that one single connection could be made for > multiple layer requests (I am not proposing this, simply exemplifying > how the number of connection transactions could be reduced). For PostGIS and OracleSpatial, this is also an issue. As the number of layers which are generated from the database for a given map growns, the number of redundant connection calls also grows. For PostgreSQL, it is not a *huge* issue, because connection overhead is relatively low. For OracleSpatial it *is* quite a large issue, because Oracle connection time overhead is relatively large. The same thing might hold for SDE. Bottom line, it is silly to be creating and tearing down these connections over and over when the data is being read from the same place. One possibility would be to abstract the connection making process a bit, so that a 'getConnection' function first checks a hash to see if there is already a connection with parameters which match the requested connection. It would probably have to reside on the mapObj though... P. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From tbartlett at dddd.com.au Tue Nov 12 16:26:23 2002 From: tbartlett at dddd.com.au (Thomas Bartlett) Date: Wed, 13 Nov 2002 11:26:23 +1100 Subject: [mapserver-users] Moving scalebar Message-ID: <016901c28aab$4c536650$1701a8c0@dddd.com.au> G'Day All, Has anyone else noticed a problem whereby the location (or maybe alignment) of the scalebar changes sometimes when the page is refreshed. At the moment I have the scalebar sitting in a cell within a table underneath the map. However every so often when I zoom or refresh the map the scalebar moves. This means that the right part of the bar is hidden behind the next cell in the row? Any ideas?? Thomas Bartlett ---------------------------------------------------------------------------------------------------------- GIS Technician Digital (Digest) Data Design Pty Ltd Military GIS Professionals and Consultants http://www.dddd.com.au/ Telephone: 02 6286 9555 Facsimile: 02 6286 9888 Postal : PO Box 683 MAWSON ACT 2607 -------------- next part -------------- An HTML attachment was scrubbed... URL: From krung at cad.go.th Tue Nov 12 21:48:01 2002 From: krung at cad.go.th (krung) Date: Wed, 13 Nov 2002 12:48:01 +0700 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: <200211131248.AA41681156@cad.go.th> Lowell and Puneet, I'd tried switch -w already, the same result. I suspect that my Apache has suexec enabled. It might cause the problem. I'll try to disable it but don't know how to now. I'll try with it. Thank you very much for your help and patience. Krung ---------- Original Message ---------------------------------- From: "Lowell Filak" Date: Tue, 12 Nov 2002 08:32:35 -0500 >Okay. >First problem solved. >Now please try adding the -w switch to your script as Puneet has suggested and report what happens. >Lowell F. > >The following message was sent by "krung" on Tue, 12 Nov 2002 09:18:37 +0700. > >> Lowell, >> >> If I ran at the command line "cat mapserver.log", it showed the error I tend to make in mapfile, e.g. I changed "UNITS KILOMETERS" to "UNITS KILO", it showed that it didn't know "KILO". If that mapfile worked without error, no new message's in that log file. And with this error-free script run on Apache, it stoped with "Internal Server Error" with no new message in mapserver.log and at the error_log of Apache, it showed only one line "Premature end of script header:/mapserver/testmap.pl". With this error_log file, I'm very sure it printed out only one line of error per access to this script. >> >> Thanks >> Krung From pucher at atlas.gis.univie.ac.at Wed Nov 13 02:16:47 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Wed, 13 Nov 2002 11:16:47 +0100 Subject: [mapserver-users] Newe MapServer Application Message-ID: <3DD2268F.3010707@atlas.gis.univie.ac.at> Dear Mapserver-list members, The Department of Geography and Regional Research of the University of Vienna, Austria is proud to present their latest MapServer project, which was launched yesterday evening under the title "Reason for eviction - non-Ayrian" (http://www.ns-verbrechen.at) The contents of this website are primarily based on the research and publication work carried out by Herbert Exenberger, Johann Koss and Brigitte Ungar-Klein, namely the book "Reason for eviction - non-Ayrian. The eviction of Jewish tenants from council flats in Vienna in 1938 and 1939. " published by Picus The texts taken from a touring exhibition of the same name, shown in various parts of Vienna, aiming to increase sensitivity for the subject of Aryanisation, were adapted for the Internet. The data collected for this site refer to Jewish men and women who lost their lives during the NS regime - be it that they were deported and murdered in a concentration camp, or that they died in Vienna or elsewhere. Survivors were not included in the data for reason of data privacy. The data mainly rely on sources from the documentation archive of the Austrian Resistance, i.e. "the name register of Austrian holocaust victims". The system is based on MapServer and PostGIS, offering a complete german and english interface. Have fun!! 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 jhart at frw.uva.nl Wed Nov 13 02:57:40 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Wed, 13 Nov 2002 11:57:40 +0100 Subject: [mapserver-users] SDE performance References: <200211122317.gACNH3Mo006903@peligroso.gaiaenv.com> <3DD19BAA.8010609@refractions.net> Message-ID: <3DD23024.6080102@frw.uva.nl> My impression is that this would not be very hard to implement: just a global array with pointers to every CONNECTION opened in all LAYERS. The applications itself (PostGIS, SDE, Oracle) could test for already open connections. The only thing MapServer itself would have to do is closing all connections at the end. This would certainly be of great help for Oracle and SDE users; large connection overheads have been mentioned regularly on this list. Even for PostGIS there are advantages; think about reusing complex queries with spatial operators and TMP tables. IMHO certainly worth looking into! Jan Hartmann Paul Ramsey wrote: > One possibility would be to abstract the connection making process a > bit, so that a 'getConnection' function first checks a hash to see if > there is already a connection with parameters which match the requested > connection. It would probably have to reside on the mapObj though... > > P. > Jan Hartmann Department of Geography University of Amsterdam From frauke.trurnit at gmx.de Wed Nov 13 05:08:47 2002 From: frauke.trurnit at gmx.de (Frauke Trurnit) Date: Wed, 13 Nov 2002 14:08:47 +0100 (MET) Subject: [mapserver-users] msOpenSHPFile(): Unable to access file. References: <25368.1037191889@www48.gmx.net> Message-ID: <16071.1037192927@www48.gmx.net> Hello, I have installed MapServer 3.6.3 on Linux. Now I'm not able to create a map with a single layer. My mapfile looks like that: NAME test_frauke SIZE 400 300 EXTENT -12548000 5083000 -6575000 2348000 SHAPEPATH "/usr/local/httpd/htdocs/frauke/daten/" LAYER NAME Staten DATA states STATUS DEFAULT TYPE POLYGON CLASS COLOR 255 255 128 OUTLINECOLOR 0 0 0 END END END The effect is: msOpenSHPFile(): Unable to access file. (states) Thanks for help! Frauke Trurnit -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! From lfilak at medinaco.org Wed Nov 13 05:16:42 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 13 Nov 2002 08:16:42 -0500 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: <200211131315.gADDFRX06547@yogi.medinaco.net> Next idea. Please send your script. Thanks. Lowell F. The following message was sent by "krung" on Wed, 13 Nov 2002 12:48:01 +0700. > Lowell and Puneet, > > I'd tried switch -w already, the same result. I suspect that my Apache has suexec enabled. It might cause the problem. I'll try to disable it but don't know how to now. I'll try with it. > > Thank you very much for your help and patience. > > Krung > > > ---------- Original Message ---------------------------------- > From: "Lowell Filak" > Date: Tue, 12 Nov 2002 08:32:35 -0500 > > >Okay. > >First problem solved. > >Now please try adding the -w switch to your script as Puneet has suggested and report what happens. > >Lowell F. > > > >The following message was sent by "krung" on Tue, 12 Nov 2002 09:18:37 +0700. > > > >> Lowell, > >> > >> If I ran at the command line "cat mapserver.log", it showed the error I tend to make in mapfile, e.g. I changed "UNITS KILOMETERS" to "UNITS KILO", it showed that it didn't know "KILO". If that mapfile worked without error, no new message's in that log file. And with this error-free script run on Apache, it stoped with "Internal Server Error" with no new message in mapserver.log and at the error_log of Apache, it showed only one line "Premature end of script header:/mapserver/testmap.pl". With this error_log file, I'm very sure it printed out only one line of error per access to this script. > >> > >> Thanks > >> Krung > From Michael.Soracco at noaa.gov Wed Nov 13 05:26:56 2002 From: Michael.Soracco at noaa.gov (Michael Soracco) Date: Wed, 13 Nov 2002 08:26:56 -0500 Subject: [mapserver-users] msOpenSHPFile(): Unable to access file. References: <25368.1037191889@www48.gmx.net> <16071.1037192927@www48.gmx.net> Message-ID: <3DD25320.940AFFC6@noaa.gov> Frauke- I'm somewhat new to this, but I'll take a stab at it. Try setting your SHAPEPATH relative to the webservers path i.e. SHAPEPATH "frauke/daten" -m Frauke Trurnit wrote: > Hello, > > I have installed MapServer 3.6.3 on Linux. Now I'm not able to create a > map > with a single layer. My mapfile looks like that: > > NAME test_frauke > SIZE 400 300 > EXTENT -12548000 5083000 -6575000 2348000 > SHAPEPATH "/usr/local/httpd/htdocs/frauke/daten/" > > LAYER > NAME Staten > DATA states > STATUS DEFAULT > TYPE POLYGON > > CLASS > COLOR 255 255 128 > OUTLINECOLOR 0 0 0 > END > END > END > > The effect is: msOpenSHPFile(): Unable to access file. (states) > > Thanks for help! > > Frauke Trurnit > > > > -- > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Nov 13 06:03:08 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 13 Nov 2002 09:03:08 -0500 Subject: [mapserver-users] msOpenSHPFile(): Unable to access file. In-Reply-To: <16071.1037192927@www48.gmx.net> Message-ID: <3DD2154C.24942.4D195FC2@localhost> Frauke, So this implies that you have shape files at: /usr/local/httpd/htdocs/frauke/daten/states.shp /usr/local/httpd/htdocs/frauke/daten/states.shx /usr/local/httpd/htdocs/frauke/daten/states.dbf AND the the permissions are readable by the webserver process. -Steve On 13 Nov 2002 at 14:08, Frauke Trurnit wrote: > Hello, > > I have installed MapServer 3.6.3 on Linux. Now I'm not able to create > a map with a single layer. My mapfile looks like that: > > NAME test_frauke > SIZE 400 300 > EXTENT -12548000 5083000 -6575000 2348000 > SHAPEPATH "/usr/local/httpd/htdocs/frauke/daten/" > > LAYER > NAME Staten > DATA states > STATUS DEFAULT > TYPE POLYGON > > CLASS > COLOR 255 255 128 > OUTLINECOLOR 0 0 0 > END > END > END > > The effect is: msOpenSHPFile(): Unable to access file. (states) > > Thanks for help! > > Frauke Trurnit > > > > -- > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! > > From steve.lime at dnr.state.mn.us Wed Nov 13 08:34:27 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 13 Nov 2002 10:34:27 -0600 Subject: [mapserver-users] Newe MapServer Application Message-ID: Wow, one of the most interesting mapping applications I've ever seen. Fast as hell and looks fabulous. Kudos! Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Alexander Pucher 11/13/02 04:16AM >>> Dear Mapserver-list members, The Department of Geography and Regional Research of the University of Vienna, Austria is proud to present their latest MapServer project, which was launched yesterday evening under the title "Reason for eviction - non-Ayrian" (http://www.ns-verbrechen.at) The contents of this website are primarily based on the research and publication work carried out by Herbert Exenberger, Johann Koss and Brigitte Ungar-Klein, namely the book "Reason for eviction - non-Ayrian. The eviction of Jewish tenants from council flats in Vienna in 1938 and 1939. " published by Picus The texts taken from a touring exhibition of the same name, shown in various parts of Vienna, aiming to increase sensitivity for the subject of Aryanisation, were adapted for the Internet. The data collected for this site refer to Jewish men and women who lost their lives during the NS regime - be it that they were deported and murdered in a concentration camp, or that they died in Vienna or elsewhere. Survivors were not included in the data for reason of data privacy. The data mainly rely on sources from the documentation archive of the Austrian Resistance, i.e. "the name register of Austrian holocaust victims". The system is based on MapServer and PostGIS, offering a complete german and english interface. Have fun!! 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 m.spring at gmx.de Wed Nov 13 09:29:36 2002 From: m.spring at gmx.de (m.spring at gmx.de) Date: Wed, 13 Nov 2002 18:29:36 +0100 Subject: [mapserver-users] msOpenSHPFile(): Unable to access file. In-Reply-To: <3DD2154C.24942.4D195FC2@localhost> (woodbri@swoodbridge.com's message of "Wed, 13 Nov 2002 09:03:08 -0500") References: <3DD2154C.24942.4D195FC2@localhost> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 woodbri at swoodbridge.com writes: > So this implies that you have shape files at: > > /usr/local/httpd/htdocs/frauke/daten/states.shp > /usr/local/httpd/htdocs/frauke/daten/states.shx > /usr/local/httpd/htdocs/frauke/daten/states.dbf If you do not want to make your shapes downloadable, you should definitely find another place outside the webserver document tree for them! Regarding your problem: I do never use SHAPEPATH, but instead repeat the path inside the DATA token which I always quote. Hope this helps Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard iD8DBQE90owAxxUzQSse11ARAjoLAJ96ZWZ4a4+whkpConxvucbk6zaIqQCfZYda 5UBcg2O/kERp7ETgqDWjVzA= =tGuw -----END PGP SIGNATURE----- From r00t at ntelos.net Wed Nov 13 09:48:23 2002 From: r00t at ntelos.net (Jim Burnett) Date: Wed, 13 Nov 2002 12:48:23 -0500 Subject: [mapserver-users] Newe MapServer Application References: Message-ID: <026601c28b3c$df83f160$de01a8c0@JOEL> very cool. Good job!! ----- Original Message ----- From: "Steve Lime" To: ; Sent: Wednesday, November 13, 2002 11:34 AM Subject: Re: [mapserver-users] Newe MapServer Application > Wow, one of the most interesting mapping applications I've ever seen. > Fast as > hell and looks fabulous. Kudos! > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Alexander Pucher 11/13/02 04:16AM > >>> > Dear Mapserver-list members, > > The Department of Geography and Regional Research of the University of > > Vienna, Austria is proud to present their latest MapServer project, > which was launched yesterday evening under the title > > "Reason for eviction - non-Ayrian" (http://www.ns-verbrechen.at) > > The contents of this website are primarily based on the research and > publication work carried out by Herbert Exenberger, Johann Koss and > Brigitte Ungar-Klein, namely the book "Reason for eviction - > non-Ayrian. > The eviction of Jewish tenants from council flats in Vienna in 1938 and > > 1939. " published by Picus The texts taken from a touring exhibition of > > the same name, shown in various parts of Vienna, aiming to increase > sensitivity for the subject of Aryanisation, were adapted for the > Internet. The data collected for this site refer to Jewish men and > women > who lost their lives during the NS regime - be it that they were > deported and murdered in a concentration camp, or that they died in > Vienna or elsewhere. Survivors were not included in the data for reason > > of data privacy. The data mainly rely on sources from the documentation > > archive of the Austrian Resistance, i.e. "the name register of Austrian > > holocaust victims". > > > The system is based on MapServer and PostGIS, offering a complete > german > and english interface. > > Have fun!! > > 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 otesta at s6.coopenet.com.ar Wed Nov 13 10:26:19 2002 From: otesta at s6.coopenet.com.ar (Oscar Testa) Date: Wed, 13 Nov 2002 15:26:19 -0300 Subject: [mapserver-users] PHP QueryByrect Message-ID: <200211131826.gADIQJP24313@backbone.s6.coopenet.com.ar> Hello, I'm using PHP/Mapscript with Mapserver 3.6.3 in a win2k machine. When i use querybypoint function, the result is correct, but when i try to use querybyrect didn't return any element, and the result is a MS_FAILURE return code. Any idea?? Oscar From christym at geoplan.ufl.edu Wed Nov 13 13:18:10 2002 From: christym at geoplan.ufl.edu (christy) Date: Wed, 13 Nov 2002 16:18:10 -0500 Subject: [mapserver-users] [layername_desc] Message-ID: <3DD2C192.296FD41@geoplan.ufl.edu> Hello all! I've been outputting the DESCRIPTION of specific LAYERs in html query templates with no problem using [layername_desc]. For example, a layer called "nwi" has the DESCRIPTION "National Wetlands Inventory" and this description is obtained using [nwi_desc]. Is there a way to dynamically output the DESCRIPTION for any QLAYER selected? For example, in one query the QLAYER might be "majrds" with a DESCRIPTION of "Major Roads". In a second query the QLAYER is "cntbnd" and the DESCRIPTION is "County Boundaries". I'm trying to write a generic query template that is not specific to any one layer and therefore can output the DESCRIPTION of any layer queried. I've tried using "[[qlayer]_desc]" in my html code. But, this doesn't work. For the "majrds" example above, I'd get "[majrds_desc]" instead of the actual description which is "Major Roads". Any ideas?? Thanks, Christy -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Wed Nov 13 13:55:29 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Wed, 13 Nov 2002 16:55:29 -0500 Subject: [mapserver-users] Problems with Perl mapscript and save() Message-ID: <7CDD7B94357FD5119E800002A537C46E230459@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I'm trying to run a batch process on a bunch of mapfiles, so I wrote a little perl/mapscript script to help me along (Find it below). I'm having 2 problems, one seems to have something to do with re-entrancy and the destruction/creation of the object, and the other with the save() function. Here is the output I get when I run my script: [root at grumbler root]# ./mapfiledit.pl -d english/ -w newmapfiles/ english/10.map newmapfiles/10.map (in cleanup) Not a HASH reference at /usr/lib/perl5/site_perl/5.6.1/i386-linux/mapscript.pm line 2415. english/105.map newmapfiles/105.map Can't call method "save" on unblessed reference at ./mapfiledit.pl line 35. The errors seem to have something to do with the destruction of the object, but I can't really figure out what the cause is. Also, possibly related, the save() function does nothing! Here is the code, it is simple: #!/usr/bin/perl -w use strict; use mapscript; use Getopt::Std; our($opt_d,$opt_h,$opt_w); getopts('hd:w:'); if ( $opt_h ) { print "MapFile Mass Updater\n\n\t-d\tDirectory where mapfiles are located\n\n\t-w Directory to write files to.\n\n\t-h\tThis help.\n\n"; exit; } if (! $opt_d ) { print "\nYou MUST provide the directory name to work on with the -d option. See -h for help.\n\n"; exit; } if (! $opt_w ) { print "\nYou MUST provide the directory name to write to with the -w option. See -h for help.\n\n"; exit; } sub workmapfile { my $mapfile = $_[0].$_[1]; print $mapfile."\n"; my $map = new mapObj($mapfile); $map->{scalebar}->{imagecolor}->{red} = 204; $map->{scalebar}->{imagecolor}->{green} = 204; $map->{scalebar}->{imagecolor}->{blue} = 204; my $outputfile = $opt_w.$_[1]; print $outputfile."\n"; $map->save($outputfile); } sub walkmapdir { my $mapfiledir = $_[0]; opendir(MAPDIR,$mapfiledir); while ( my $direntry = readdir(MAPDIR) ) { if ( $direntry ne '.' && $direntry ne '..' ) { if ( $direntry =~ /.*\.map$/ ) { workmapfile($_[0],$direntry); } } } } if ( -d $opt_d ) { if ( substr($opt_d,-1,1) ne "/" ) { $opt_d = $opt_d."/" } walkmapdir($opt_d) } Am I doing anything wrong ??? Anybody have any idea how to get around this ? Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canada Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From pkishor at GeoAnalytics.com Wed Nov 13 18:54:12 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 13 Nov 2002 20:54:12 -0600 Subject: [mapserver-users] how does swig work? Message-ID: <5A9B8A96-F77C-11D6-BC62-0003936306C2@geoanalytics.com> Perl gurus, I am trying to understand where swig comes into the picture. When I configure/make mapserver, a bunch of perlvars get generated. The Makefile.PL uses these perlvars to generate the make file. Where does swig come in the picture? I don't have swig on my machine. Is mapserver already swigged? I want to understand this because -- (1) for the heck of it; (2) experiment with new versions of swig (well, I really don't know what I am talking about -- I really would like to experiment with the new version of perl 5.8.0, if possible. Tia, pk/ From pkishor at GeoAnalytics.com Wed Nov 13 18:50:43 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 13 Nov 2002 20:50:43 -0600 Subject: [mapserver-users] Problems with Perl mapscript and save() In-Reply-To: <7CDD7B94357FD5119E800002A537C46E230459@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: On Wednesday, November 13, 2002, at 03:55 PM, Jean-Francois.Doyon at CCRS.NRCan.gc.ca wrote: > Hello, > > I'm trying to run a batch process on a bunch of mapfiles, so I wrote a > little perl/mapscript script to help me along (Find it below). > > I'm having 2 problems, one seems to have something to do with > re-entrancy > and the destruction/creation of the object, and the other with the > save() > function. > > Here is the output I get when I run my script: > > [root at grumbler root]# ./mapfiledit.pl -d english/ -w newmapfiles/ > english/10.map > newmapfiles/10.map > (in cleanup) Not a HASH reference at > /usr/lib/perl5/site_perl/5.6.1/i386-linux/mapscript.pm line 2415. > from a recent thread on this topic, here is Joe Bussell's reply that works (Lowell and a few others had helped me with this a while back as well) -- === The cleanup errors are due to a poorly written interface to SWIG. The code that connects PERL to the underliing C functionality creates ties using perl hashes. Some interconnects are not proper hashes. I have no idea why at this point, but I do know a hack that will eliminate the cleanup warnings. In your mapscript.pm file everywhere you find a DESTROY method you should return directly if the input is not a hash. I offer the following example: sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); delete $ITERATORS{$self}; if (exists $OWNER{$self}) { mapscriptc::delete_rectObj($self); delete $OWNER{$self}; } } === the above replace is in about 5-6 different places in mapscript.pm. That will take care of that. From jnovak at novacell.com Thu Nov 14 00:41:00 2002 From: jnovak at novacell.com (Administrator) Date: Thu, 14 Nov 2002 00:41:00 -0800 Subject: [mapserver-users] how does swig work? Message-ID: <41CC46B3925E384BA64B1FB5041C38FA3283@www.novacell.com> SWIG is an open source software package www.swig.org that automagically generates PERL interfaces for the c structures mapserver uses. I think that map.h is one of the places to look, as I recall a bunch of SWIG related defines in that header in particular. I have not yet poked at the scripting support, but I'd wager that the 3.6.3 distribution comes with the PERL SWIG output included. John Novak Novacell Technologies -----Original Message----- From: Puneet Kishor [mailto:pkishor at geoanalytics.com] Sent: Wednesday, November 13, 2002 6:54 PM To: Mapserver Subject: [mapserver-users] how does swig work? Perl gurus, I am trying to understand where swig comes into the picture. When I configure/make mapserver, a bunch of perlvars get generated. The Makefile.PL uses these perlvars to generate the make file. Where does swig come in the picture? I don't have swig on my machine. Is mapserver already swigged? I want to understand this because -- (1) for the heck of it; (2) experiment with new versions of swig (well, I really don't know what I am talking about -- I really would like to experiment with the new version of perl 5.8.0, if possible. Tia, pk/ From pagurekd at agr.gc.ca Thu Nov 14 08:37:14 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Thu, 14 Nov 2002 11:37:14 -0500 Subject: [mapserver-users] bug list query Message-ID: Hey everyone, is the bugzilla page on the mapserver site working OK? I am trying to search to see if anyone has reported a bug with SDE queries and I can't get ANY bugs listed. So if someone can answer this, that would be great. Better yet, if someone could tell me specifically if a bug concerning SDE queries has been posted that would be great. And even better yet, if someone could automagically tell me how to get my queries to an SDE layer working, that would be FABULOUS! (mapserver v3.6.1, LINUX platform) D. Pagurek From teb at mallit.fr.umn.edu Thu Nov 14 08:59:17 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Thu, 14 Nov 2002 10:59:17 -0600 (CST) Subject: [mapserver-users] mapserv CGI, Tomcat 4.0.2, Win2000 problems (FWD) Message-ID: <200211141659.gAEGxHG18559@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Sender: gooteri at isis-ms.jrc.it Date: Thu, 14 Nov 2002 17:46:43 +0100 To: mapserver-info at lists.gis.umn.edu From: "Erik Van der Goot" Subject: mapserv CGI, Tomcat 4.0.2, Win2000 problems Mime-Version: 1.0 Dear all, I would like to use mapserver to produce simple maps, basically to be included into an html page through the tag. The problem is that I seem to 'hang' mapserv.exe when accessing through the web. I am using Tomcat 4 standalone as my web server. I have created a MapServer webapp inthe Tomcat WebApps directory, and in the web.xml I have enabled the cgi-servlet. I have installed the mapserver software in the webapps\MapServer\WEB-INF\cgi directory and set the url pattern to cgi-bin So far so good.. If I type the url of the mapserv.exe, it works, in the sense that I get the correct error message. So I AM talking to mapserv.exe through HTTP I have then downloaded and installed the demo. I have with some trial and error edited all the paths in the demo-init.html. When I click on the init button, the browser just sits there. I CAN however see the .GIF files being produced on the server, but i get nothing back, no error, nothing, just a blank page and a little whirling globe (yes I use IE...) So I am almost there but something is not working.... When I try to produce a map through the URL directly (using my own data) it behaves the same way. Whenever I make a mistake in the filenames it gives me an error, so ok, i AM talking to the program, but when I type http://myserver/MapServer/cgi-bin/mapserv.exe?map=SoDa/soda.map&mode=map I get nothing but a waiting browser... Any help would be greatly appreciated Erik ------------- End Forwarded Message ------------- From Steve_Palmer at lpsg.com Thu Nov 14 09:27:01 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Thu, 14 Nov 2002 11:27:01 -0600 Subject: [mapserver-users] Hide Layers on HTML legend where filtered results are null Message-ID: <750F5C5447AF18408DC73220B98FEAF7867073@lesexch02.lpsg.com> I've waded through hundreds and hundreds of archived messages and have not found any guidance and am hoping someone can point me in the right direction. I am displaying layers on an HTML legend The content of those layers is controlled by passing a filter value as part of my GET string (map_mylayername_filter=somevalue) If the filter doesn't "find" any records, I would like to be able to hide that layer on my legend Any tips/guidance that anyone could provide would be greatly appreciated MapServer 3.6.1, WinNT/IIS4 - Win2000/IIS5 Thanks **************************************************************************** ********************************* Steve Palmer GIS Developer 406-728-9323 x206 -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Thu Nov 14 10:02:22 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 14 Nov 2002 12:02:22 -0600 Subject: [mapserver-users] Fwd: mapserv CGI, Tomcat 4.0.2, Win2000 problems Message-ID: An embedded message was scrubbed... From: "Erik Van der Goot" Subject: mapserv CGI, Tomcat 4.0.2, Win2000 problems Date: Thu, 14 Nov 2002 17:46:43 +0100 Size: 3056 URL: From steve.lime at dnr.state.mn.us Thu Nov 14 10:19:34 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 14 Nov 2002 12:19:34 -0600 Subject: [mapserver-users] how does swig work? Message-ID: Swig is used to write scripting language wrapper code automatically from existing C/C++ libraries. Swig creates the glue between C and the language of choice. This usually involves a C file written in the appropritiate low level language API (nasty, nasty stuff) and then some supporting files written in the scripting language itself. One could write these by hand and most languages give you the tools to do just that, but then you're limited to just that language. PHP/MapScript is maintained that way. Swig allows you to target multiple languages. Swig works off of an "interface" file that allows you to dictate how the resulting module will work. Check out mapscript/mapscript.i in the MapServer distribution to see what we wrote for MapScript. For distributions I run Swig (1.1.883) to generate language specific files before the tar file is built. If you're using the CVS you'll need to Swig things yourself. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 11/13/02 08:54PM >>> Perl gurus, I am trying to understand where swig comes into the picture. When I configure/make mapserver, a bunch of perlvars get generated. The Makefile.PL uses these perlvars to generate the make file. Where does swig come in the picture? I don't have swig on my machine. Is mapserver already swigged? I want to understand this because -- (1) for the heck of it; (2) experiment with new versions of swig (well, I really don't know what I am talking about -- I really would like to experiment with the new version of perl 5.8.0, if possible. Tia, pk/ From krbaker at metacarta.com Thu Nov 14 10:23:43 2002 From: krbaker at metacarta.com (Keith Baker) Date: 14 Nov 2002 13:23:43 -0500 Subject: [mapserver-users] Making a Legend? Message-ID: <1037298223.25082.166.camel@mosor.internal.metacarta.com> I'd like to make just a legend on a separate page from everything else. This is what I am trying: # Start of map file # GLOBAL CONFIG NAME Vmap0 STATUS ON SIZE 600 600 EXTENT -180 -90 180 90 IMAGETYPE PNG INTERLACE OFF SHAPEPATH "/mapdata/vmap0/" SYMBOLSET "/mapdata/vmap.sym" FONTSET "/mapdata/vmap.font" #We don't like drawing Oceans so we'll leave the background ocean color IMAGECOLOR 131 157 255 LEGEND STATUS ON LABEL TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 12 END END LAYER NAME ground TYPE POLYGON STATUS DEFAULT TILEINDEX ground_tile CLASS COLOR 251 188 61 END END LAYER NAME population TYPE POLYGON STATUS DEFAULT TILEINDEX pop_tile MAXSCALE 100 CLASS # COLOR 255 0 0 COLOR 255 240 82 END END and I send the query: http://10.1.0.19/cgi-bin/mapserv?mode=legend&map=/mapdata/vmap.map&MAPEXT=-180.000000%2081.449275%20180.000000%20-81.449275&MAPSIZE=621%20281 I get a small image with no content? what do I do? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 232 bytes Desc: This is a digitally signed message part URL: From teb at mallit.fr.umn.edu Thu Nov 14 08:59:17 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Thu, 14 Nov 2002 10:59:17 -0600 (CST) Subject: [mapserver-users] mapserv CGI, Tomcat 4.0.2, Win2000 problems (FWD) Message-ID: <200211141659.gAEGxHG18559@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Sender: gooteri at isis-ms.jrc.it Date: Thu, 14 Nov 2002 17:46:43 +0100 To: mapserver-info at lists.gis.umn.edu From: "Erik Van der Goot" Subject: mapserv CGI, Tomcat 4.0.2, Win2000 problems Mime-Version: 1.0 Dear all, I would like to use mapserver to produce simple maps, basically to be included into an html page through the tag. The problem is that I seem to 'hang' mapserv.exe when accessing through the web. I am using Tomcat 4 standalone as my web server. I have created a MapServer webapp inthe Tomcat WebApps directory, and in the web.xml I have enabled the cgi-servlet. I have installed the mapserver software in the webapps\MapServer\WEB-INF\cgi directory and set the url pattern to cgi-bin So far so good.. If I type the url of the mapserv.exe, it works, in the sense that I get the correct error message. So I AM talking to mapserv.exe through HTTP I have then downloaded and installed the demo. I have with some trial and error edited all the paths in the demo-init.html. When I click on the init button, the browser just sits there. I CAN however see the .GIF files being produced on the server, but i get nothing back, no error, nothing, just a blank page and a little whirling globe (yes I use IE...) So I am almost there but something is not working.... When I try to produce a map through the URL directly (using my own data) it behaves the same way. Whenever I make a mistake in the filenames it gives me an error, so ok, i AM talking to the program, but when I type http://myserver/MapServer/cgi-bin/mapserv.exe?map=SoDa/soda.map&mode=map I get nothing but a waiting browser... Any help would be greatly appreciated Erik ------------- End Forwarded Message ------------- From DMartin at erac.com Thu Nov 14 11:37:22 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 14 Nov 2002 13:37:22 -0600 Subject: [mapserver-users] Hide Layers on HTML legend where filtered r esults are null Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B68@STL-EXBE-I03.corp.erac.com> Steve, Without Mapscript, I suspect that's going to be hard to do. The two ways I know of to hide a layer in the legend is: 1) Setting the status to off -> requires not using an opt_flag of 2. 2) Using the order_metadata feature, and setting the metadata value to a negative number. In this case the status is irrelevant. I'm don't think you can do either as the result of a filter without Mapscript. Perhaps someone else knows a way.... -Dan -----Original Message----- From: Palmer, Steve [mailto:Steve_Palmer at lpsg.com] Sent: Thursday, November 14, 2002 11:27 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Hide Layers on HTML legend where filtered results are null I've waded through hundreds and hundreds of archived messages and have not found any guidance and am hoping someone can point me in the right direction. I am displaying layers on an HTML legend The content of those layers is controlled by passing a filter value as part of my GET string (map_mylayername_filter=somevalue) If the filter doesn't "find" any records, I would like to be able to hide that layer on my legend Any tips/guidance that anyone could provide would be greatly appreciated MapServer 3.6.1, WinNT/IIS4 - Win2000/IIS5 Thanks **************************************************************************** ********************************* Steve Palmer GIS Developer 406-728-9323 x206 -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at otsys.com Thu Nov 14 08:03:31 2002 From: joe at otsys.com (Joe Bussell) Date: Thu, 14 Nov 2002 08:03:31 -0800 Subject: [mapserver-users] how does swig work? In-Reply-To: <5A9B8A96-F77C-11D6-BC62-0003936306C2@geoanalytics.com> References: <5A9B8A96-F77C-11D6-BC62-0003936306C2@geoanalytics.com> Message-ID: <20021114160331.GA19633@otsys.com> I had fun getting PERL 5.8 working with mapserver. I offer the following snippet from an earlier post which may save you some headaches: The interface code in mapscript_wrap.c is broken for PERL 5.8. Specifically, the macro XS(boot_mapscript) must be declared if the PERL object is not declared. In my world line 431 which reads SWIGEXPORT(void) boot_mapscript(CV* cv); should be replaced with XS(boot_mapscript); On Wed, Nov 13, 2002 at 08:54:12PM -0600, Puneet Kishor wrote: > Perl gurus, > > I am trying to understand where swig comes into the picture. When I > configure/make mapserver, a bunch of perlvars get generated. The > Makefile.PL uses these perlvars to generate the make file. Where does > swig come in the picture? I don't have swig on my machine. Is mapserver > already swigged? > > I want to understand this because -- (1) for the heck of it; (2) > experiment with new versions of swig (well, I really don't know what I > am talking about -- I really would like to experiment with the new > version of perl 5.8.0, if possible. > > Tia, > > pk/ > > -- Cordially, Joe Bussell On Time Systems www.TrafficDodger.com From morissette at dmsolutions.ca Thu Nov 14 12:38:03 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 14 Nov 2002 15:38:03 -0500 Subject: [mapserver-users] Re: labelObj question - PHP References: <3DC71D2B.4070802@nacse.org> <3DCA9C09.209@nacse.org> Message-ID: <3DD409AB.C011A830@dmsolutions.ca> Dylan Keon wrote: > > Since there isn't a getLabel method, what is the PHP syntax for setting > label parameters? The closest I could find in the archives is something > like $layerClass->{label}->set('size', 20); but that didn't work. > Well, I didn't try it myself before writing this, but what you did should work: $layerClass->{label}->set('size', 20) Are you sure that's it's not something else that you're missing such as the label type (TRUETYPE)? One way to test that your label size is being set properly could be to call $map->save("/tmp/test.map") after setting the label size and see if the value is correct. If it is then it must be something else you're missing in your label defn. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From Steve_Palmer at lpsg.com Thu Nov 14 13:28:56 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Thu, 14 Nov 2002 15:28:56 -0600 Subject: [mapserver-users] Hide Layers on HTML legend where filtered r esults are null Message-ID: <750F5C5447AF18408DC73220B98FEAF786708E@lesexch02.lpsg.com> Thanks to Dan & Peter for their prompt replies. Works like a charm if I "hard-code" those values in my map file. Currently, I have all the layers in my mapfile set with... METADATA "legend_order" "0" End I know before I initialize the map if there won't be any results to display as a result of my filter If I try and pass the values to my map template as part of my GET string (e.g., map_mylayername_metadata_legend_order=-1) it seems to ignore it - shouldn't this method work? Thanks -----Original Message----- From: Martin, Daniel [mailto:DMartin at erac.com] Sent: Thursday, November 14, 2002 12:37 PM To: Palmer, Steve; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Hide Layers on HTML legend where filtered r esults are null Steve, Without Mapscript, I suspect that's going to be hard to do. The two ways I know of to hide a layer in the legend is: 1) Setting the status to off -> requires not using an opt_flag of 2. 2) Using the order_metadata feature, and setting the metadata value to a negative number. In this case the status is irrelevant. I'm don't think you can do either as the result of a filter without Mapscript. Perhaps someone else knows a way.... -Dan -----Original Message----- From: Palmer, Steve [mailto:Steve_Palmer at lpsg.com] Sent: Thursday, November 14, 2002 11:27 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Hide Layers on HTML legend where filtered results are null I've waded through hundreds and hundreds of archived messages and have not found any guidance and am hoping someone can point me in the right direction. I am displaying layers on an HTML legend The content of those layers is controlled by passing a filter value as part of my GET string (map_mylayername_filter=somevalue) If the filter doesn't "find" any records, I would like to be able to hide that layer on my legend Any tips/guidance that anyone could provide would be greatly appreciated MapServer 3.6.1, WinNT/IIS4 - Win2000/IIS5 Thanks **************************************************************************** ********************************* Steve Palmer GIS Developer 406-728-9323 x206 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhv at cape.com Thu Nov 14 13:58:58 2002 From: nhv at cape.com (Norman Vine) Date: Thu, 14 Nov 2002 16:58:58 -0500 Subject: [mapserver-users] how does swig work? References: Message-ID: <033401c28c29$099f2e50$a637ba8c@sfdev3> Steve Lime writes: > > For distributions I run Swig (1.1.883) to generate language specific > files before the tar file is built. FYI - I have been using SWIG Version 1.3.16u-20021019-1050 for Python mapscript successfully. Norman From Simon.Kirkness at fisheries.nsw.gov.au Thu Nov 14 15:50:38 2002 From: Simon.Kirkness at fisheries.nsw.gov.au (Simon Kirkness) Date: Fri, 15 Nov 2002 10:50:38 +1100 Subject: [mapserver-users] Addition to Mapserver examples. Message-ID: Hi All, Wow what a learning curve for the inexperienced. Check out this site and see what you think. http://fishfiles.fisheries.nsw.gov.au add it to your list of examples if it seems O.K. Check out other developments with similar projects, probably using different software at www.canri.nsw.gov.au And thank you very much to all involved in creating Mapserver and providing support. Regards Simon Kirkness simonkirkness at hotmail.com <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< Simon Kirkness NSW Fisheries Project Officer Threatened Species Port Stephens Fisheries Centre Ph: (02) 4916 3810 Fax: (02) 4916 3880 Email: kirkness at fisheries.nsw.gov.au Note: This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of NSW Fisheries. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: InterScan_Disclaimer.txt URL: From DMartin at erac.com Thu Nov 14 15:58:14 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 14 Nov 2002 17:58:14 -0600 Subject: [mapserver-users] Hide Layers on HTML legend where filtered r esults are null Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F3F1@STL-EXBE-I03.corp.erac.com> Steve, You are definitely on the right track. I didn't even think of that. Unfortunately, you've gone beyond my understanding. I've yet to work with the URL based dynamic changes to the map file. I tinkered with your example below, but I also was unable to affect change in the metadata from the URL. I'd bet one of the developers knows why it's not working. ;) -Dan -----Original Message----- From: Palmer, Steve [mailto:Steve_Palmer at lpsg.com] Sent: Thursday, November 14, 2002 3:29 PM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Hide Layers on HTML legend where filtered r esults are null Thanks to Dan & Peter for their prompt replies. Works like a charm if I "hard-code" those values in my map file. Currently, I have all the layers in my mapfile set with... METADATA "legend_order" "0" End I know before I initialize the map if there won't be any results to display as a result of my filter If I try and pass the values to my map template as part of my GET string (e.g., map_mylayername_metadata_legend_order=-1) it seems to ignore it - shouldn't this method work? Thanks -----Original Message----- From: Martin, Daniel [mailto:DMartin at erac.com] Sent: Thursday, November 14, 2002 12:37 PM To: Palmer, Steve; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Hide Layers on HTML legend where filtered r esults are null Steve, Without Mapscript, I suspect that's going to be hard to do. The two ways I know of to hide a layer in the legend is: 1) Setting the status to off -> requires not using an opt_flag of 2. 2) Using the order_metadata feature, and setting the metadata value to a negative number. In this case the status is irrelevant. I'm don't think you can do either as the result of a filter without Mapscript. Perhaps someone else knows a way.... -Dan -----Original Message----- From: Palmer, Steve [mailto:Steve_Palmer at lpsg.com] Sent: Thursday, November 14, 2002 11:27 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Hide Layers on HTML legend where filtered results are null I've waded through hundreds and hundreds of archived messages and have not found any guidance and am hoping someone can point me in the right direction. I am displaying layers on an HTML legend The content of those layers is controlled by passing a filter value as part of my GET string (map_mylayername_filter=somevalue) If the filter doesn't "find" any records, I would like to be able to hide that layer on my legend Any tips/guidance that anyone could provide would be greatly appreciated MapServer 3.6.1, WinNT/IIS4 - Win2000/IIS5 Thanks **************************************************************************** ********************************* Steve Palmer GIS Developer 406-728-9323 x206 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pradeepkumar at infotech.stph.net Thu Nov 14 21:26:26 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Fri, 15 Nov 2002 10:56:26 +0530 Subject: [mapserver-users] Supported Formats List Message-ID: HI User List Can some one post me the complete list of all the Vector and Raster formats supported by Mapserver Regards Pradeep -------------- next part -------------- An HTML attachment was scrubbed... URL: From krung at cad.go.th Thu Nov 14 21:24:54 2002 From: krung at cad.go.th (krung) Date: Fri, 15 Nov 2002 12:24:54 +0700 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: <200211151224.AA14483794@cad.go.th> Lowell. My script is very simple below; #!/usr/bin/perl -w use mapscript; use DBI qw/:standard/; print header(); $map = new mapObj("test.map") or die "couldn't open map file\n"; $img = $map->draw(); $img->saveImage("images/test.png", $mapscript::MS_PNG,1,1,0); print ""; Thanks Krung ---------- Original Message ---------------------------------- From: "Lowell Filak" Date: Wed, 13 Nov 2002 08:16:42 -0500 >Next idea. >Please send your script. >Thanks. >Lowell F. > >The following message was sent by "krung" on Wed, 13 Nov 2002 12:48:01 +0700. > >> Lowell and Puneet, >> >> I'd tried switch -w already, the same result. I suspect that my Apache has suexec enabled. It might cause the problem. I'll try to disable it but don't know how to now. I'll try with it. >> >> Thank you very much for your help and patience. >> >> Krung >> >> >> ---------- Original Message ---------------------------------- >> From: "Lowell Filak" >> Date: Tue, 12 Nov 2002 08:32:35 -0500 >> >> >Okay. >> >First problem solved. >> >Now please try adding the -w switch to your script as Puneet has suggested and report what happens. >> >Lowell F. >> > >> >The following message was sent by "krung" on Tue, 12 Nov 2002 09:18:37 +0700. >> > >> >> Lowell, >> >> >> >> If I ran at the command line "cat mapserver.log", it showed the error I tend to make in mapfile, e.g. I changed "UNITS KILOMETERS" to "UNITS KILO", it showed that it didn't know "KILO". If that mapfile worked without error, no new message's in that log file. And with this error-free script run on Apache, it stoped with "Internal Server Error" with no new message in mapserver.log and at the error_log of Apache, it showed only one line "Premature end of script header:/mapserver/testmap.pl". With this error_log file, I'm very sure it printed out only one line of error per access to this script. >> >> >> >> Thanks >> >> Krung >> > > > From krung at cad.go.th Thu Nov 14 21:34:02 2002 From: krung at cad.go.th (krung) Date: Fri, 15 Nov 2002 12:34:02 +0700 Subject: [mapserver-users] Truetype font. Message-ID: <200211151234.AA15139154@cad.go.th> Hello all, I had trouble labeling map images with Thai charaters. Some fonts showed nothing. Some fonts showed but not every character. I'd like to know what type of font to be used with mapserver. Font that show some characters was ASCII code. If I change to UNICODE due to www.unicode.org for Thai font, It showed nothing. Thanks, Krung From warmerdam at pobox.com Thu Nov 14 21:56:48 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 15 Nov 2002 00:56:48 -0500 Subject: [mapserver-users] Supported Formats List References: Message-ID: <3DD48CA0.3080800@pobox.com> Pradeep wrote: > HI User List > > Can some one post me the complete list of all the Vector and > Raster formats supported by Mapserver Pradeep, Supported format lists for GDAL and OGR can be found at the following URLs. The exact formats supported by a given build may vary depending on build options. http://www.remotesensing.org/gdal/formats_list.html http://gdal.velocet.ca/projects/opengis/ogrhtml/ogr_formats.html The -v commandline switch to mapserv can be helpful in determine what formats are builtin. eg. warmerda at gdal[428]% ./mapserv -v MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From morissette at dmsolutions.ca Thu Nov 14 22:39:49 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 15 Nov 2002 01:39:49 -0500 Subject: [mapserver-users] Supported Formats List References: Message-ID: <3DD496B5.6BC71613@dmsolutions.ca> Pradeep wrote: > > Can some one post me the complete list of all the Vector and Raster formats supported by Mapserver By default it supports Shapefiles directly You can optionally build with the following extensions: - PostGIS - ESRI SDE - Oracle Spatial - TIFF - GD Formats (GIF, JPEG, PNG) - GDAL - about 30 raster formats, see http://www.remotesensing.org/gdal/formats_list.html - OGR about a dozen vector formats, see http://gdal.velocet.ca/projects/opengis/ogrhtml/ogr_formats.html I hope I didn't forget any. Note that the GDAL and OGR lists may not be fully up to date, for instance I know that OGR supports GML but it's not listed in the supported formats page yet. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jcgarin.dittt at gouv.nc Thu Nov 14 22:41:08 2002 From: jcgarin.dittt at gouv.nc (jcgarin.dittt at gouv.nc) Date: Fri, 15 Nov 2002 17:41:08 +1100 Subject: [mapserver-users] Supported Databases Message-ID: Hye, I am new in MAPSERVER knowledge and making research on the "free" possibilities of developping a web application for public information and documents requests on cadastral information. Our data is on ARCGIS - ESRI but we would like not to buy more licence to do this extra website. I am looking for a list of the supported databases for updating and reading purposes with MAPSERVER. Is dbf completly supported ? others common database ? In wich language do it has to be programmed ? Thanks for your help. Jean-charles GARIN Bureau de l'Information G?ographique DITTT Gouvernement Nouvelle-Cal?donie -------------- next part -------------- An HTML attachment was scrubbed... URL: From keon at nacse.org Thu Nov 14 22:59:12 2002 From: keon at nacse.org (Dylan Keon) Date: Thu, 14 Nov 2002 22:59:12 -0800 Subject: [mapserver-users] labelObj question - PHP References: <3DC71D2B.4070802@nacse.org> <3DCA9C09.209@nacse.org> <3DD409AB.C011A830@dmsolutions.ca> Message-ID: <3DD49B40.2070507@nacse.org> >> Since there isn't a getLabel method, what is the PHP syntax for >> setting label parameters? The closest I could find in the archives >> is something like $layerClass->{label}->set('size', 20); but that >> didn't work. > > Well, I didn't try it myself before writing this, but what you did > should work: $layerClass->{label}->set('size', 20) > > Are you sure that's it's not something else that you're missing > such as the label type (TRUETYPE)? > > $layerClass->{label}->set('size', 20) Thanks, Daniel. For the list archives: that is the correct syntax. Knowing that helped me troubleshoot my problem, which was that I had the class index order reversed when using $layer->getClass(). The other label parameters (such as TRUETYPE) are already set in the mapfile, I just needed to change the label size dynamically. Thanks again, Dylan From keon at nacse.org Thu Nov 14 23:18:28 2002 From: keon at nacse.org (Dylan Keon) Date: Thu, 14 Nov 2002 23:18:28 -0800 Subject: [mapserver-users] transparent PNG scalebar? Message-ID: <3DD49FC4.5030205@nacse.org> Anyone successfully generating transparent PNG scalebar images? My PNG scalebars always have a white background, even though TRANSPARENT ON is set in the mapfile. It makes no difference whether IMAGECOLOR is set to 255 255 255 or is not set. MS version 3.6.3. Thanks. From keon at nacse.org Thu Nov 14 23:27:39 2002 From: keon at nacse.org (Dylan Keon) Date: Thu, 14 Nov 2002 23:27:39 -0800 Subject: [mapserver-users] Re: transparent PNG scalebar? References: <3DD49FC4.5030205@nacse.org> Message-ID: <3DD4A1EB.7010007@nacse.org> Dylan Keon wrote: > Anyone successfully generating transparent PNG scalebar images? My PNG > scalebars always have a white background, even though TRANSPARENT ON is > set in the mapfile. It makes no difference whether IMAGECOLOR is set to > 255 255 255 or is not set. MS version 3.6.3. Aaarghh. Never mind...I just realized that by setting IMAGECOLOR, BACKGROUNDCOLOR, and COLOR to the appropriate values I can achieve what I was trying to do with TRANSPARENT. Sorry. Time to go to sleep :-) --Dylan From nida at webstar.co.uk Fri Nov 15 03:28:40 2002 From: nida at webstar.co.uk (nida Khan) Date: Fri, 15 Nov 2002 11:28:40 -0000 Subject: [mapserver-users] oracle8.1.7 and mapserver Message-ID: <014501c28c9a$27223280$a901a8c0@private.webstar.co.uk> Hi Everyone, Is there anyway to connect to Oracle 8.1.7 database on Solaris via Mapserver? I've compiled Mapserver with Postgress, but have no idea how to do it for Oracle now! I would really appreciate if anyone can guide me to right documentation or just give me some codes!!!! Looking forward for your replies Regards Nida. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tpcolson at nexussoft.com Fri Nov 15 05:27:18 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Fri, 15 Nov 2002 08:27:18 -0500 Subject: [mapserver-users] Addition to Mapserver examples. Message-ID: <8A13872FF821F4488B4A629647DC0C71023F97@mailman.nexussoft.com> Really nice! What platform are your running it on? Details about your mapserver build? It loads really fast...I want to know why.... as mine doesn't! -----Original Message----- From: Simon Kirkness [mailto:Simon.Kirkness at fisheries.nsw.gov.au] Sent: Thursday, November 14, 2002 6:51 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Addition to Mapserver examples. Hi All, Wow what a learning curve for the inexperienced. Check out this site and see what you think. http://fishfiles.fisheries.nsw.gov.au add it to your list of examples if it seems O.K. Check out other developments with similar projects, probably using different software at www.canri.nsw.gov.au And thank you very much to all involved in creating Mapserver and providing support. Regards Simon Kirkness simonkirkness at hotmail.com <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< Simon Kirkness NSW Fisheries Project Officer Threatened Species Port Stephens Fisheries Centre Ph: (02) 4916 3810 Fax: (02) 4916 3880 Email: kirkness at fisheries.nsw.gov.au Note: This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of NSW Fisheries. From marichalperez at yahoo.es Fri Nov 15 05:34:58 2002 From: marichalperez at yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Fri, 15 Nov 2002 13:34:58 -0000 Subject: [mapserver-users] Problem with filling Message-ID: <000801c28cab$ccf61210$0600a8c0@manolo> Hi, all. I?m having a extrange problem with symbol filling. My symbol file is very simple: Symbol Name 'horiz' Type VECTOR TRANSPARENT 0 Points 0 1 1 1 END END Ok. Now, if I want to fill a layer with this symbol I do: LAYER NAME "thename" DATA ?thedata? STATUS DEFAULT TYPE POLYGON CLASS NAME "thename " SYMBOL 1 .. END END Well, the map is rendered well, but only in CGI applications. If I use php_mapscript, the layer is rendered always in black color. Anybody have seen this before?. See it yourself in the attached images Is this a bug?. Thanks in advance, Manolo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cgi.jpg Type: image/jpeg Size: 2192 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: php.jpg Type: image/jpeg Size: 2428 bytes Desc: not available URL: From ychen at yorktel.com Fri Nov 15 05:34:10 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Fri, 15 Nov 2002 08:34:10 -0500 Subject: [mapserver-users] oracle8.1.7 and mapserver Message-ID: <4C5998A3E78C674A92183D4813806E82035DFF@ytcmail.yorktel.com> Nida: You need to compile MapServer with oraclespacial. Your Oracle RDBMS needs to have Spacial option loaded. Hopefully you've already got this part, it is a good learning curve if you havn't. What web server are you using? You might need to modify the configuration a little. Once you have all the correct environment and settings it WILL work. I'm running MapServer on a Mandrake Linux server accessing Oracle 8.0.5 data on a UnixWare server through CGI. Yu-Hsin -----Original Message----- From: nida Khan [mailto:nida at webstar.co.uk] Sent: Friday, November 15, 2002 6:29 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] oracle8.1.7 and mapserver Hi Everyone, Is there anyway to connect to Oracle 8.1.7 database on Solaris via Mapserver? I've compiled Mapserver with Postgress, but have no idea how to do it for Oracle now! I would really appreciate if anyone can guide me to right documentation or just give me some codes!!!! Looking forward for your replies Regards Nida. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nida at webstar.co.uk Fri Nov 15 06:28:25 2002 From: nida at webstar.co.uk (nida Khan) Date: Fri, 15 Nov 2002 14:28:25 -0000 Subject: [mapserver-users] oracle8.1.7 and mapserver References: <4C5998A3E78C674A92183D4813806E82035DFF@ytcmail.yorktel.com> Message-ID: <006e01c28cb3$428bfba0$a901a8c0@private.webstar.co.uk> Hi, Thank you so much Yu-Hsin for your reply, luckily I found a windows binary for oracle on some site! It works fine when it reads a shape file, but when I try to connect to oracle database it does'nt any image! as if it didnt find any thing (nothing in log file either). I've got a demo data from "mapviewer" in my oracle database! and this is what I'm using in my layer (this is a example layer from postgres) NAME ORA EXTENT -159.6 28.77 -71.4667 70.5 SIZE 400 300 LAYER # start of the "cities" layer object CONNECTIONTYPE oraclespatial NAME "cheshire" CONNECTION scott/tiger at MYDB DATA "select geom from cities" #FILTER "city = 'Albany' " STATUS DEFAULT TYPE POINT CLASS COLOR 120 120 220 OUTLINECOLOR 10 10 0 END # end of class object END # end of layer object END # end of map file (from my Oracle db) SQL> select * from cities where city='Albany'; LOCATION(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES) -------------------------------------------------------------------------------- CITY ST POP90 RANK90 ------------------------------------------ -- ---------- ---------- SDO_GEOMETRY(2001, NULL, SDO_POINT_TYPE(-73.799017, 42.66575, NULL), NULL, NULL) Albany NY 101082 192 Now is there anything I need to change in the layer to get this data from the database??? I really appreciate your help! Kind Regards Nida. ----- Original Message ----- From: Yu-Hsin Chen To: nida Khan ; mapserver-users at lists.gis.umn.edu Sent: Friday, November 15, 2002 1:34 PM Subject: RE: [mapserver-users] oracle8.1.7 and mapserver Nida: You need to compile MapServer with oraclespacial. Your Oracle RDBMS needs to have Spacial option loaded. Hopefully you've already got this part, it is a good learning curve if you havn't. What web server are you using? You might need to modify the configuration a little. Once you have all the correct environment and settings it WILL work. I'm running MapServer on a Mandrake Linux server accessing Oracle 8.0.5 data on a UnixWare server through CGI. Yu-Hsin -----Original Message----- From: nida Khan [mailto:nida at webstar.co.uk] Sent: Friday, November 15, 2002 6:29 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] oracle8.1.7 and mapserver Hi Everyone, Is there anyway to connect to Oracle 8.1.7 database on Solaris via Mapserver? I've compiled Mapserver with Postgress, but have no idea how to do it for Oracle now! I would really appreciate if anyone can guide me to right documentation or just give me some codes!!!! Looking forward for your replies Regards Nida. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nida at webstar.co.uk Fri Nov 15 06:48:26 2002 From: nida at webstar.co.uk (nida Khan) Date: Fri, 15 Nov 2002 14:48:26 -0000 Subject: [mapserver-users] oracle8.1.7 and mapserver References: <4C5998A3E78C674A92183D4813806E82035DFF@ytcmail.yorktel.com> Message-ID: <008601c28cb6$0e0154e0$a901a8c0@private.webstar.co.uk> I gave wrong example! :( here is the right example layer defination LAYER NAME counties TYPE polygon STATUS default MAXSCALE 1000000 CONNECTIONTYPE oraclespatial CONNECTION 'scott/tiger at PHAR' DATA "GEOM from counties" CLASS NAME 'county' COLOR 220 224 230 OUTLINECOLOR 0 0 0 END END where I have counties table with a column geom very anxious! Regards Nida. ----- Original Message ----- From: Yu-Hsin Chen To: nida Khan ; mapserver-users at lists.gis.umn.edu Sent: Friday, November 15, 2002 1:34 PM Subject: RE: [mapserver-users] oracle8.1.7 and mapserver Nida: You need to compile MapServer with oraclespacial. Your Oracle RDBMS needs to have Spacial option loaded. Hopefully you've already got this part, it is a good learning curve if you havn't. What web server are you using? You might need to modify the configuration a little. Once you have all the correct environment and settings it WILL work. I'm running MapServer on a Mandrake Linux server accessing Oracle 8.0.5 data on a UnixWare server through CGI. Yu-Hsin -----Original Message----- From: nida Khan [mailto:nida at webstar.co.uk] Sent: Friday, November 15, 2002 6:29 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] oracle8.1.7 and mapserver Hi Everyone, Is there anyway to connect to Oracle 8.1.7 database on Solaris via Mapserver? I've compiled Mapserver with Postgress, but have no idea how to do it for Oracle now! I would really appreciate if anyone can guide me to right documentation or just give me some codes!!!! Looking forward for your replies Regards Nida. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gerry.creager at tamu.edu Fri Nov 15 07:05:51 2002 From: gerry.creager at tamu.edu (Gerry Creager N5JXS) Date: Fri, 15 Nov 2002 09:05:51 -0600 Subject: [mapserver-users] New Alpha site online Message-ID: <3DD50D4F.4070705@tamu.edu> Another site available for use as an example of Mapserver's utility: http://mesodev.met.tamu.edu is the alpha demonstration site for the Texas Mesonet. It's undergoing frequent modification and update. We're still trying to figure out how to do some things. And, honestly, we're still evaluating whether Mapserver is the best tool or if it's overkill! Thanks, Gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet, Academy for Advanced Telecommunications Texas A&M University, College Station, TX Office: 979.458.4020 FAX: 979.847.8578 Cell: 979.229.5301 Page: 979.228.0173 -or- gcreager at my2way.com From pkishor at GeoAnalytics.com Fri Nov 15 07:14:46 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 15 Nov 2002 09:14:46 -0600 Subject: [mapserver-users] Couldn't run perl mapscript under Apache In-Reply-To: <200211151224.AA14483794@cad.go.th> Message-ID: On Thursday, November 14, 2002, at 11:24 PM, krung wrote: > Lowell. > > My script is very simple below; > > #!/usr/bin/perl -w > use mapscript; > use DBI qw/:standard/; > > print header(); > $map = new mapObj("test.map") or die "couldn't open map file\n"; > $img = $map->draw(); > $img->saveImage("images/test.png", $mapscript::MS_PNG,1,1,0); > print ""; > > try this... ===================== #!/usr/bin/perl -w # 1. import the modules use CGI::Pretty qw(:standard); use CGI::Carp qw(fatalsToBrowser); use mapscript; use DBI qw(:standard); # 2. set dir and url paths my $apppath = "/absolute/path/to/your/tmp/dir"; my $appurl = "/url/to/your/tmp/dir"; # set your mapfile my $mapfile = "/absolute/path/to/your/mapfile"; # create a new map object my $map = new mapObj("$mapfile") or die $mapscript::ms_error->{message}; # set a tmp map image name my $imgname = $map->{name} . time() . ".png"; # create the map my $img = $map->draw() or die('Unable to draw map'); # save the map $img->saveImage($apppath . $imgname, $map->{imagetype}, $map->{interlace}, $map->{transparent}, $map->{imagequality}); # 3. output print header, start_html; print ""; print end_html; ===================== now compare this with your script (I have only numbered the significant difference... rest is stylistic). 1. you didn't import the CGI modules (maybe you did, but didn't show it here... anyway). 2. the image has to be written to an absolute path by your perl script (perhaps not, but that is how I do it), but has to be retreived by your browser from a relative path. Defining the paths in variables at the top allows me to make changes to the paths without mucking around in the actual application. 3. print the correct headers and enders (you were missing your start_html). In any case, set the paths (#2 above) correctly, making sure relative and absolute paths are correctly set. Also, verrrry important, make sure that your tmp directory is writable by Apache (you can check in your httpd.conf file what user apache runs as), or make the tmp directory `chmod 777 tmpdir`. Of course, make sure your perl script is `chmod +x yourperlscript.pl` as well. Most of this may be old hat for you, but I am covering all the bases. From tpcolson at nexussoft.com Fri Nov 15 07:16:04 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Fri, 15 Nov 2002 10:16:04 -0500 Subject: [mapserver-users] New Alpha site online Message-ID: <8A13872FF821F4488B4A629647DC0C71023F99@mailman.nexussoft.com> What platform is it on? What options did you build mapserver w/ ? I guess I'm doing a little survey. I see all these sites that list users post, and they look really great, load fast, etc... as opposed to my own loads-sometimes-maybe-not "alpa" page. I want to know what I'm missing! -----Original Message----- From: Gerry Creager N5JXS [mailto:gerry.creager at tamu.edu] Sent: Friday, November 15, 2002 10:06 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] New Alpha site online Another site available for use as an example of Mapserver's utility: http://mesodev.met.tamu.edu is the alpha demonstration site for the Texas Mesonet. It's undergoing frequent modification and update. We're still trying to figure out how to do some things. And, honestly, we're still evaluating whether Mapserver is the best tool or if it's overkill! Thanks, Gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet, Academy for Advanced Telecommunications Texas A&M University, College Station, TX Office: 979.458.4020 FAX: 979.847.8578 Cell: 979.229.5301 Page: 979.228.0173 -or- gcreager at my2way.com From tpcolson at nexussoft.com Fri Nov 15 07:26:45 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Fri, 15 Nov 2002 10:26:45 -0500 Subject: [mapserver-users] HTM Legend: How to force "click thru" to new page? Message-ID: <8A13872FF821F4488B4A629647DC0C7102C9A6@mailman.nexussoft.com> I've implemented a nifty HTML legend IAW http://mapserver.gis.umn.edu/doc36/html-legend-howto.html And it works GREAT!. Thing is, I'm trying to make it so when the legend url is clicked, it opens up a new browser page as opposed to reloading the mapserver page with the url that is in the legend. Any ideas? Here's my Legend.html [leg_layer_html order_metadata=WMS_ORDER opt_flag=15] [if name=layer_type value=4] [/if] [if name=layer_type oper=neq value=4][/if] [metadata name=description] [/leg_layer_html] and in my .map file... LEGEND STATUS ON OUTLINECOLOR 195 195 195 IMAGECOLOR 195 195 195 TRANSPARENT ON INTERLACE OFF POSITION UR KEYSIZE 20 10 KEYSPACING 5 5 TEMPLATE "/var/www/html/maplab-2.0rc3/htdocs/mapbrowser/legend_template.html" POSTLABELCACHE TRUE LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 195 195 195 OUTLINECOLOR 195 195 195 SHADOWCOLOR 195 195 195 SHADOWSIZE 1 1 BACKGROUNDCOLOR 195 195 195 BACKGROUNDSHADOWCOLOR 195 195 195 BACKGROUNDSHADOWSIZE 1 1 PARTIALS TRUE FORCE FALSE END END From tpcolson at nexussoft.com Fri Nov 15 07:52:58 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Fri, 15 Nov 2002 10:52:58 -0500 Subject: [mapserver-users] HTM Legend: How to force "click thru" to new page? Message-ID: <8A13872FF821F4488B4A629647DC0C71023F9B@mailman.nexussoft.com> And to answer my own question... [leg_layer_html order_metadata=WMS_ORDER opt_flag=15] [if name=layer_type value=4] [/if] [if name=layer_type oper=neq value=4][/if] [metadata name=description] [/leg_layer_html] -----Original Message----- From: Thomas P. Colson Sent: Friday, November 15, 2002 10:27 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] HTM Legend: How to force "click thru" to new page? I've implemented a nifty HTML legend IAW http://mapserver.gis.umn.edu/doc36/html-legend-howto.html And it works GREAT!. Thing is, I'm trying to make it so when the legend url is clicked, it opens up a new browser page as opposed to reloading the mapserver page with the url that is in the legend. Any ideas? Here's my Legend.html [leg_layer_html order_metadata=WMS_ORDER opt_flag=15] [if name=layer_type value=4] [/if] [if name=layer_type oper=neq value=4][/if] [metadata name=description] [/leg_layer_html] and in my .map file... LEGEND STATUS ON OUTLINECOLOR 195 195 195 IMAGECOLOR 195 195 195 TRANSPARENT ON INTERLACE OFF POSITION UR KEYSIZE 20 10 KEYSPACING 5 5 TEMPLATE "/var/www/html/maplab-2.0rc3/htdocs/mapbrowser/legend_template.html" POSTLABELCACHE TRUE LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 195 195 195 OUTLINECOLOR 195 195 195 SHADOWCOLOR 195 195 195 SHADOWSIZE 1 1 BACKGROUNDCOLOR 195 195 195 BACKGROUNDSHADOWCOLOR 195 195 195 BACKGROUNDSHADOWSIZE 1 1 PARTIALS TRUE FORCE FALSE END END From ed at topozone.com Fri Nov 15 08:11:18 2002 From: ed at topozone.com (Ed McNierney) Date: Fri, 15 Nov 2002 11:11:18 -0500 Subject: [mapserver-users] HTM Legend: How to force "click thru" to new page? Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3938@host218.209.113.211.conversent.net> Thomas - Just use the "target" property of the tag. You can name a new window "legendwin", for example, and have all the legend links open into that (one) window that's not the parent map window: - 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: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Friday, November 15, 2002 10:27 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] HTM Legend: How to force "click thru" to new page? I've implemented a nifty HTML legend IAW http://mapserver.gis.umn.edu/doc36/html-legend-howto.html And it works GREAT!. Thing is, I'm trying to make it so when the legend url is clicked, it opens up a new browser page as opposed to reloading the mapserver page with the url that is in the legend. Any ideas? Here's my Legend.html [leg_layer_html order_metadata=WMS_ORDER opt_flag=15] [if name=layer_type value=4] [/if] [if name=layer_type oper=neq value=4][/if] [metadata name=description] [/leg_layer_html] and in my .map file... LEGEND STATUS ON OUTLINECOLOR 195 195 195 IMAGECOLOR 195 195 195 TRANSPARENT ON INTERLACE OFF POSITION UR KEYSIZE 20 10 KEYSPACING 5 5 TEMPLATE "/var/www/html/maplab-2.0rc3/htdocs/mapbrowser/legend_template.html" POSTLABELCACHE TRUE LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 195 195 195 OUTLINECOLOR 195 195 195 SHADOWCOLOR 195 195 195 SHADOWSIZE 1 1 BACKGROUNDCOLOR 195 195 195 BACKGROUNDSHADOWCOLOR 195 195 195 BACKGROUNDSHADOWSIZE 1 1 PARTIALS TRUE FORCE FALSE END END From ychen at yorktel.com Fri Nov 15 09:15:29 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Fri, 15 Nov 2002 12:15:29 -0500 Subject: [mapserver-users] oracle8.1.7 and mapserver Message-ID: <4C5998A3E78C674A92183D4813806E82035E01@ytcmail.yorktel.com> Nida: Judging from your 'counties table with a column geom' it doesn't appear to me you're using Oracle Spacial option. You will need to have that option to work with MapServer. Is your 'geom' column of data type SDO_GEOMETRY? You have to make sure Oracle Spacial option is in the database. By default, when spacial option is installed you'll have an MDSYS user id and schema associated with that user. If you don't see that, you'll have to install it first. You should have an 'md' directory under $ORACLE_HOME. Under md there is an admin directory which contains all installation scripts. Your map file looks OK if your counties is a table contain geom column which is of SDO_GEOMETRY data type. Yu-Hsin -----Original Message----- From: nida Khan [mailto:nida at webstar.co.uk] Sent: Friday, November 15, 2002 9:48 AM To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oracle8.1.7 and mapserver I gave wrong example! :( here is the right example layer defination LAYER NAME counties TYPE polygon STATUS default MAXSCALE 1000000 CONNECTIONTYPE oraclespatial CONNECTION 'scott/tiger at PHAR' DATA "GEOM from counties" CLASS NAME 'county' COLOR 220 224 230 OUTLINECOLOR 0 0 0 END END where I have counties table with a column geom very anxious! Regards Nida. ----- Original Message ----- From: Yu-Hsin Chen To: nida Khan ; mapserver-users at lists.gis.umn.edu Sent: Friday, November 15, 2002 1:34 PM Subject: RE: [mapserver-users] oracle8.1.7 and mapserver Nida: You need to compile MapServer with oraclespacial. Your Oracle RDBMS needs to have Spacial option loaded. Hopefully you've already got this part, it is a good learning curve if you havn't. What web server are you using? You might need to modify the configuration a little. Once you have all the correct environment and settings it WILL work. I'm running MapServer on a Mandrake Linux server accessing Oracle 8.0.5 data on a UnixWare server through CGI. Yu-Hsin -----Original Message----- From: nida Khan [mailto:nida at webstar.co.uk] Sent: Friday, November 15, 2002 6:29 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] oracle8.1.7 and mapserver Hi Everyone, Is there anyway to connect to Oracle 8.1.7 database on Solaris via Mapserver? I've compiled Mapserver with Postgress, but have no idea how to do it for Oracle now! I would really appreciate if anyone can guide me to right documentation or just give me some codes!!!! Looking forward for your replies Regards Nida. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nida at webstar.co.uk Fri Nov 15 09:19:15 2002 From: nida at webstar.co.uk (nida Khan) Date: Fri, 15 Nov 2002 17:19:15 -0000 Subject: [mapserver-users] oracle8.1.7 and mapserver References: <4C5998A3E78C674A92183D4813806E82035E01@ytcmail.yorktel.com> Message-ID: <011101c28ccb$1fad5c60$a901a8c0@private.webstar.co.uk> Hi Again, my counties table does have a sdo_geometry data type here is desc of my table SQL> desc counties Name Null? Type ----------------------------------------- -------- ---------------------------- GEOM MDSYS.SDO_GEOMETRY COUNTY VARCHAR2(31) FIPSSTCO VARCHAR2(5) STATE VARCHAR2(30) STATE_ABRV VARCHAR2(2) FIPSST VARCHAR2(2) LANDSQMI NUMBER TOTPOP NUMBER POPPSQMI NUMBER I am wondering how mapserver knows where the database resides? Where do I define my database connection parameters?? IS there any quick test to find out if mapserver is looking into right database? My database is on remote machine and I'm running mapserver from my machine... I also have oracle client on my machine talking to same database. I heartly appreciate your help! Kind Regards Nida. ----- Original Message ----- From: Yu-Hsin Chen To: nida Khan ; mapserver-users at lists.gis.umn.edu Sent: Friday, November 15, 2002 5:15 PM Subject: RE: [mapserver-users] oracle8.1.7 and mapserver Nida: Judging from your 'counties table with a column geom' it doesn't appear to me you're using Oracle Spacial option. You will need to have that option to work with MapServer. Is your 'geom' column of data type SDO_GEOMETRY? You have to make sure Oracle Spacial option is in the database. By default, when spacial option is installed you'll have an MDSYS user id and schema associated with that user. If you don't see that, you'll have to install it first. You should have an 'md' directory under $ORACLE_HOME. Under md there is an admin directory which contains all installation scripts. Your map file looks OK if your counties is a table contain geom column which is of SDO_GEOMETRY data type. Yu-Hsin -----Original Message----- From: nida Khan [mailto:nida at webstar.co.uk] Sent: Friday, November 15, 2002 9:48 AM To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oracle8.1.7 and mapserver I gave wrong example! :( here is the right example layer defination LAYER NAME counties TYPE polygon STATUS default MAXSCALE 1000000 CONNECTIONTYPE oraclespatial CONNECTION 'scott/tiger at PHAR' DATA "GEOM from counties" CLASS NAME 'county' COLOR 220 224 230 OUTLINECOLOR 0 0 0 END END where I have counties table with a column geom very anxious! Regards Nida. ----- Original Message ----- From: Yu-Hsin Chen To: nida Khan ; mapserver-users at lists.gis.umn.edu Sent: Friday, November 15, 2002 1:34 PM Subject: RE: [mapserver-users] oracle8.1.7 and mapserver Nida: You need to compile MapServer with oraclespacial. Your Oracle RDBMS needs to have Spacial option loaded. Hopefully you've already got this part, it is a good learning curve if you havn't. What web server are you using? You might need to modify the configuration a little. Once you have all the correct environment and settings it WILL work. I'm running MapServer on a Mandrake Linux server accessing Oracle 8.0.5 data on a UnixWare server through CGI. Yu-Hsin -----Original Message----- From: nida Khan [mailto:nida at webstar.co.uk] Sent: Friday, November 15, 2002 6:29 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] oracle8.1.7 and mapserver Hi Everyone, Is there anyway to connect to Oracle 8.1.7 database on Solaris via Mapserver? I've compiled Mapserver with Postgress, but have no idea how to do it for Oracle now! I would really appreciate if anyone can guide me to right documentation or just give me some codes!!!! Looking forward for your replies Regards Nida. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dblasby at refractions.net Fri Nov 15 11:23:17 2002 From: dblasby at refractions.net (David Blasby) Date: Fri, 15 Nov 2002 11:23:17 -0800 Subject: [mapserver-users] maperror.h - MESSAGELENGTH isnt long enough for my messages Message-ID: <3DD549A5.F6F39708@refractions.net> I've been having trouble figuring out why I kept crashing mapserver. The problem is that the maximum size of the error message to return is 2k, and my error message is a bit longer. In order to be more helpful (and quit answering the same questions) the postgis error message send back the user manal. Anyone mind if I up this to 4k? and the ROUTINELENGTH to a larger value too? I dont think we're allocating more than one so it shouldnt cause any problems down the road. Either that or have msSetError(...) use vsnprintf() instead of just vsprintf(). dave From srodriguez at maguiregroup.com Fri Nov 15 11:59:10 2002 From: srodriguez at maguiregroup.com (Seth Rodriguez) Date: Fri, 15 Nov 2002 14:59:10 -0500 Subject: [mapserver-users] sample data test Message-ID: <005001c28ce1$78130d80$7a05a8c0@12GVD11> I am stumped with getting my app running properly. Here is where I am at. I installed IIS on my windows XP machine. I downloaded the third binary and the library zip in the windows list. I put the mapserv.exe at C:\Inetpub\Scripts. I extracted the sample data to C:\Inetpub\wwwroot\itasca. I put the epsg file at C:\Proj\nad. I edited the map doc and the initialize doc according the sample tutorial instructions. I tested my mapserv CGI program (with some help from the community) and it seems to be responding properly. To do the final test of the demo_init.html, I loaded it in Internet Explorer and clicked on the Initialize button. This prompted a save/download popup. I chose to open the file, which should simply run the exe from its location. Once I choose this option, the mapserv.exe seems to run, i.e. a dos window quickly pops up and then goes away without an error message. All of this seems so good so far, but once the mapserv.exe run, my window stays at the demo_init.html document. It is my understanding that the exe should engage the demo.html document and the map should load with three layers turned on, but I get nothing. Thanx to those in the community how have gotten me to where I am now. However, I do need a bit more help. Anyone out there know why my CGI program doesn't seem to be hitting my demo.html? Is there some code I need to edit? Please help. Thanx in advance for your time. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From ychen at yorktel.com Fri Nov 15 12:12:19 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Fri, 15 Nov 2002 15:12:19 -0500 Subject: [mapserver-users] oracle8.1.7 and mapserver Message-ID: <4C5998A3E78C674A92183D4813806E82035E02@ytcmail.yorktel.com> Nida: MapServer's connection to Oracle is taken care of by the underlying SQLNet. Judging from you did not get any error message I think you're connected to Oracle OK. How about try to stick the following in your map file in the CLASS section: SYMBOL 4 SIZE 3 right between your NAME and COLOR lines. Of course you need to have a symbol file and 4 need to be defined. Yu-Hsin -----Original Message----- From: nida Khan [mailto:nida at webstar.co.uk] Sent: Fri 11/15/2002 12:19 PM To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu Cc: Subject: Re: [mapserver-users] oracle8.1.7 and mapserver Hi Again, my counties table does have a sdo_geometry data type here is desc of my table SQL> desc counties Name Null? Type ----------------------------------------- -------- ---------------------------- GEOM MDSYS.SDO_GEOMETRY COUNTY VARCHAR2(31) FIPSSTCO VARCHAR2(5) STATE VARCHAR2(30) STATE_ABRV VARCHAR2(2) FIPSST VARCHAR2(2) LANDSQMI NUMBER TOTPOP NUMBER POPPSQMI NUMBER I am wondering how mapserver knows where the database resides? Where do I define my database connection parameters?? IS there any quick test to find out if mapserver is looking into right database? My database is on remote machine and I'm running mapserver from my machine... I also have oracle client on my machine talking to same database. I heartly appreciate your help! Kind Regards Nida. ----- Original Message ----- From: Yu-Hsin Chen To: nida Khan ; mapserver-users at lists.gis.umn.edu Sent: Friday, November 15, 2002 5:15 PM Subject: RE: [mapserver-users] oracle8.1.7 and mapserver Nida: Judging from your 'counties table with a column geom' it doesn't appear to me you're using Oracle Spacial option. You will need to have that option to work with MapServer. Is your 'geom' column of data type SDO_GEOMETRY? You have to make sure Oracle Spacial option is in the database. By default, when spacial option is installed you'll have an MDSYS user id and schema associated with that user. If you don't see that, you'll have to install it first. You should have an 'md' directory under $ORACLE_HOME. Under md there is an admin directory which contains all installation scripts. Your map file looks OK if your counties is a table contain geom column which is of SDO_GEOMETRY data type. Yu-Hsin -----Original Message----- From: nida Khan [mailto:nida at webstar.co.uk] Sent: Friday, November 15, 2002 9:48 AM To: Yu-Hsin Chen; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oracle8.1.7 and mapserver I gave wrong example! :( here is the right example layer defination LAYER NAME counties TYPE polygon STATUS default MAXSCALE 1000000 CONNECTIONTYPE oraclespatial CONNECTION 'scott/tiger at PHAR' DATA "GEOM from counties" CLASS NAME 'county' COLOR 220 224 230 OUTLINECOLOR 0 0 0 END END where I have counties table with a column geom very anxious! Regards Nida. ----- Original Message ----- From: Yu-Hsin Chen To: nida Khan ; mapserver-users at lists.gis.umn.edu Sent: Friday, November 15, 2002 1:34 PM Subject: RE: [mapserver-users] oracle8.1.7 and mapserver Nida: You need to compile MapServer with oraclespacial. Your Oracle RDBMS needs to have Spacial option loaded. Hopefully you've already got this part, it is a good learning curve if you havn't. What web server are you using? You might need to modify the configuration a little. Once you have all the correct environment and settings it WILL work. I'm running MapServer on a Mandrake Linux server accessing Oracle 8.0.5 data on a UnixWare server through CGI. Yu-Hsin -----Original Message----- From: nida Khan [mailto:nida at webstar.co.uk] Sent: Friday, November 15, 2002 6:29 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] oracle8.1.7 and mapserver Hi Everyone, Is there anyway to connect to Oracle 8.1.7 database on Solaris via Mapserver? I've compiled Mapserver with Postgress, but have no idea how to do it for Oracle now! I would really appreciate if anyone can guide me to right documentation or just give me some codes!!!! Looking forward for your replies Regards Nida. From otesta at s6.coopenet.com.ar Fri Nov 15 12:49:56 2002 From: otesta at s6.coopenet.com.ar (Oscar Testa) Date: Fri, 15 Nov 2002 17:49:56 -0300 Subject: [mapserver-users] Mapserver and datawarehouse Message-ID: <200211152049.gAFKnuV22991@backbone.s6.coopenet.com.ar> Hello, I'm using Mapserver 3.6.3 with PHP/Mapscript and Postgis. All works fine, good, very good!!!! I'm very happy with the performance and look and feel. But now i want more and more and more...... Exist any tool of datawarehouse to attach to mapserver??? i.e.: i select a set of clients (via mapserver) in the map and want to explore information about this clients in the dw. Something like this.... Best regards, Oscar From jrhwork at hotmail.com Fri Nov 15 13:16:19 2002 From: jrhwork at hotmail.com (Jackson Harper) Date: Fri, 15 Nov 2002 13:16:19 -0800 Subject: [mapserver-users] Geocoding server Message-ID: Hi, I'm looking for a geocode server, I've heard rumors of an OSS Geocode Server but have not been able to find anything. Can anyone send me a link? Jackson _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From DMartin at erac.com Fri Nov 15 13:53:14 2002 From: DMartin at erac.com (Martin, Daniel) Date: Fri, 15 Nov 2002 15:53:14 -0600 Subject: [mapserver-users] sample data test Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F3F3@STL-EXBE-I03.corp.erac.com> Sure sounds to me like you aren't going through the server. Is the URL in your browser http://localhost/somepage.htm or is it C:\inetpub\wwwroot\somepage.htm. If it is the latter, you would have the exact problem you mention. -Dan -----Original Message----- From: Seth Rodriguez [mailto:srodriguez at maguiregroup.com] Sent: Friday, November 15, 2002 1:59 PM To: 'Mapserver-Users (E-mail)'; 'TCHaddad'; Mike Abatecola Subject: [mapserver-users] sample data test I am stumped with getting my app running properly. Here is where I am at. I installed IIS on my windows XP machine. I downloaded the third binary and the library zip in the windows list. I put the mapserv.exe at C:\Inetpub\Scripts. I extracted the sample data to C:\Inetpub\wwwroot\itasca. I put the epsg file at C:\Proj\nad. I edited the map doc and the initialize doc according the sample tutorial instructions. I tested my mapserv CGI program (with some help from the community) and it seems to be responding properly. To do the final test of the demo_init.html, I loaded it in Internet Explorer and clicked on the Initialize button. This prompted a save/download popup. I chose to open the file, which should simply run the exe from its location. Once I choose this option, the mapserv.exe seems to run, i.e. a dos window quickly pops up and then goes away without an error message. All of this seems so good so far, but once the mapserv.exe run, my window stays at the demo_init.html document. It is my understanding that the exe should engage the demo.html document and the map should load with three layers turned on, but I get nothing. Thanx to those in the community how have gotten me to where I am now. However, I do need a bit more help. Anyone out there know why my CGI program doesn't seem to be hitting my demo.html? Is there some code I need to edit? Please help. Thanx in advance for your time. Seth Rodriguez Environmental Scientist GIS Analyst Maguire Group Inc. 564 Forbes Avenue, Suite 1212 Pittsburgh, PA 15219 (412) 281-6393 (412) 281-7908 FAX -------------- next part -------------- An HTML attachment was scrubbed... URL: From pagurekd at agr.gc.ca Fri Nov 15 13:28:05 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Fri, 15 Nov 2002 16:28:05 -0500 Subject: [mapserver-users] windows binaries with SDE support? Message-ID: Does anyone happen to have mapserver 3.6.3 Windows binaries with SDE support built in? Is it possible for me to get hold of that? Thanks, D. Pagurek From pucher at atlas.gis.univie.ac.at Fri Nov 15 14:58:00 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Fri, 15 Nov 2002 23:58:00 +0100 Subject: [mapserver-users] Transparency problem Message-ID: <3DD57BF8.7060805@atlas.gis.univie.ac.at> Hi, I use PHP/MapScript to render a simple choroplete map using data stored in PostGIS. I have a layer of administative areas, drawn in 5 classes through the mapfile with colors stored in a configuration file. To assign the correct colors to the mapfile, I do this (lets presume a blue map): $bez = $map->getLayerByName(bez); $class0 = $bez-> getClass(0); $class0->set("color",$map->addColor($cfg_blue1[0],$cfg_blue1[1],$cfg_blue1[2])); $class1 = $bez-> getClass(1); $class1->set("color",$map->addColor($cfg_blue2[0],$cfg_blue2[1],$cfg_blue2[2])); $class2 = $bez-> getClass(2); $class2->set("color",$map->addColor($cfg_blue3[0],$cfg_blue3[1],$cfg_blue3[2])); $class3 = $bez-> getClass(3); $class3->set("color",$map->addColor($cfg_blue4[0],$cfg_blue4[1],$cfg_blue4[2])); $class4 = $bez-> getClass(4); $class4->set("color",$map->addColor($cfg_blue5[0],$cfg_blue5[1],$cfg_blue5[2])); $colors = array($cfg_blue1, $cfg_blue2, $cfg_blue3, $cfg_blue4, $cfg_blue5); where all the $cfg... variables are the actual color values in the config file. In the last line, I create an array containing the colors. I use this to draw a Legend with the GD functions offered by PHP. So atfer drawing the map with $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); I use a function that takes the recently drawn map as the basemap and renders the legend on it using the $colors array. Everything worked fine until today when I changed the mapfile, setting the layer to TRANSPARENCY 30. From this moment, the legend doesn't render correct. Normally, it used to draw 5 rectangles, filled with the $colors array values (which were the same colors as the ones used in the layer classes), but now it filles all legend rectangles with only one color. How can changing the mapfile influence a PHP function, that has nothing to do with this mapfile? 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 -------------------------------------------------------- Virtual Map Forum: http://www.gis.univie.ac.at/vmf -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From Steve_Palmer at lpsg.com Fri Nov 15 15:01:00 2002 From: Steve_Palmer at lpsg.com (Palmer, Steve) Date: Fri, 15 Nov 2002 17:01:00 -0600 Subject: [mapserver-users] Hide Layers on HTML legend where filtered r esults are null Message-ID: <750F5C5447AF18408DC73220B98FEAF786712C@lesexch02.lpsg.com> Thanks - I managed to hack out a Javascript method to hide said layers - ugly but works like a charm Steve -----Original Message----- From: Martin, Daniel [mailto:DMartin at erac.com] Sent: Thursday, November 14, 2002 4:58 PM To: Palmer, Steve; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Hide Layers on HTML legend where filtered r esults are null Steve, You are definitely on the right track. I didn't even think of that. Unfortunately, you've gone beyond my understanding. I've yet to work with the URL based dynamic changes to the map file. I tinkered with your example below, but I also was unable to affect change in the metadata from the URL. I'd bet one of the developers knows why it's not working. ;) -Dan -----Original Message----- From: Palmer, Steve [mailto:Steve_Palmer at lpsg.com] Sent: Thursday, November 14, 2002 3:29 PM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Hide Layers on HTML legend where filtered r esults are null Thanks to Dan & Peter for their prompt replies. Works like a charm if I "hard-code" those values in my map file. Currently, I have all the layers in my mapfile set with... METADATA "legend_order" "0" End I know before I initialize the map if there won't be any results to display as a result of my filter If I try and pass the values to my map template as part of my GET string (e.g., map_mylayername_metadata_legend_order=-1) it seems to ignore it - shouldn't this method work? Thanks -----Original Message----- From: Martin, Daniel [mailto:DMartin at erac.com] Sent: Thursday, November 14, 2002 12:37 PM To: Palmer, Steve; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Hide Layers on HTML legend where filtered r esults are null Steve, Without Mapscript, I suspect that's going to be hard to do. The two ways I know of to hide a layer in the legend is: 1) Setting the status to off -> requires not using an opt_flag of 2. 2) Using the order_metadata feature, and setting the metadata value to a negative number. In this case the status is irrelevant. I'm don't think you can do either as the result of a filter without Mapscript. Perhaps someone else knows a way.... -Dan -----Original Message----- From: Palmer, Steve [mailto:Steve_Palmer at lpsg.com] Sent: Thursday, November 14, 2002 11:27 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Hide Layers on HTML legend where filtered results are null I've waded through hundreds and hundreds of archived messages and have not found any guidance and am hoping someone can point me in the right direction. I am displaying layers on an HTML legend The content of those layers is controlled by passing a filter value as part of my GET string (map_mylayername_filter=somevalue) If the filter doesn't "find" any records, I would like to be able to hide that layer on my legend Any tips/guidance that anyone could provide would be greatly appreciated MapServer 3.6.1, WinNT/IIS4 - Win2000/IIS5 Thanks **************************************************************************** ********************************* Steve Palmer GIS Developer 406-728-9323 x206 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Fri Nov 15 15:26:56 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Fri, 15 Nov 2002 18:26:56 -0500 Subject: [mapserver-users] Unsetting parameters in Perl/MapScript Message-ID: <7CDD7B94357FD5119E800002A537C46E230466@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, How does one "unset" a parameter set in a mapfile ? I load a mapfile that has the ERROR template set in the WEB object, and I want to remove it entirely. I've tried $map->{web}->{error} = "", but that just sets it to empty ... if I try undef $map->{web}->{error}, I get a segfault !, I tried setting it with = 0 (false), but then it just takes the value 0 and uses it as a string ... Any ideas ? Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canada Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From TCHaddad at cshore.com Fri Nov 15 18:40:27 2002 From: TCHaddad at cshore.com (TCHaddad) Date: Fri, 15 Nov 2002 21:40:27 -0500 Subject: [mapserver-users] Raster overlay question Message-ID: <200211152140.AA223936776@cshore.com> Hello list, Until now, my use of raster data within Mapserver has been limited to displaying tiled Tiffs as backgrounds to my vector data. However I have some raster data which I am interested in using as an overlay on top of vector data (and other rasters) if possible. Are translucent solid colors possible for any of the raster formats that Mapserver handle? I would probably classify my data into about 12 classes, one of which I would not draw (invisible), and the remainder of which I would like to draw with a translucent color so that vectors and background imagery can be seen through the colors. I guess what I am wondering is if Mapserver supports "Opacity" for raster classes... my current mapserv version is: Mapserver version 3.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TIFF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE thanks for any suggestions or ideas, TH From woodbri at swoodbridge.com Fri Nov 15 19:22:09 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 15 Nov 2002 22:22:09 -0500 Subject: [mapserver-users] Geocoding server In-Reply-To: Message-ID: <3DD57391.8182.5A4178FC@localhost> Hi Jackson, I have a Geocode Server/Service that I developed and license. It is not OpenSource Software but I am willing to license the source so if this is for a business you don't feel like your licensing a black box that might someday stop working. I currently use Census TigerLine 2000 data to drive it. You can check it out at: http://iMapTools.com/demos/ I only have street data and map data loaded for the US east of the Mississippi river on my demo. I will Geocode, addresses, zip codes and place names. It does fuzzy (phonic) searches. Best regards, -Stephen Woodbridge On 15 Nov 2002 at 13:16, Jackson Harper wrote: > > Hi, > > I'm looking for a geocode server, I've heard rumors of an OSS Geocode > Server but have not been able to find anything. Can anyone send me a > link? > > Jackson > > > > > _________________________________________________________________ MSN > 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=features/virus > > From warmerdam at pobox.com Fri Nov 15 20:08:35 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 15 Nov 2002 23:08:35 -0500 Subject: [mapserver-users] Raster overlay question References: <200211152140.AA223936776@cshore.com> Message-ID: <3DD5C4C3.5070205@pobox.com> TCHaddad wrote: > Hello list, > > Until now, my use of raster data within Mapserver has been limited to displaying tiled > Tiffs as backgrounds to my vector data. > > However I have some raster data which I am interested in using as an overlay on top of > vector data (and other rasters) if possible. Are translucent solid colors possible for > any of the raster formats that Mapserver handle? > > I would probably classify my data into about 12 classes, one of which I would not draw > (invisible), and the remainder of which I would like to draw with a translucent color > so that vectors and background imagery can be seen through the colors. > > I guess what I am wondering is if Mapserver supports "Opacity" for raster classes... TH, I believe that currently (3.7 dev) class colors cannot include an opacity value, so the only thing you can do is assign an opaque color or make the class transparent. In 3.7 raster files that have red, green, blue and alpha bands can be displayed with alpha blending to the map layers if processed through the GDAL raster driver, and using GD 2, to produce 24bit output images. So in theory you could achieve your effect by expanding the file with RGBA class colors into an RGBA file to overlay but there are reasons this wouldn't be a great idea: o The input files would be substantially larger. o You need to use 3.7 dev. o The 24bit output files would likely be substantially larger. However, if you really want to pursue such an option I could try to help. I would like to see Map file color keywords be able to specify an RGBA color, instead of just RGB but even then alpha blending can only practically be done on 24bit output, not colormap output files. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From morissette at dmsolutions.ca Sat Nov 16 10:03:05 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sat, 16 Nov 2002 13:03:05 -0500 Subject: [mapserver-users] Transparency problem References: <3DD57BF8.7060805@atlas.gis.univie.ac.at> Message-ID: <3DD68859.5370E276@dmsolutions.ca> Alexander Pucher wrote: > > In the last line, I create an array containing the colors. I use this to > draw a Legend with the GD functions offered by PHP. > So atfer drawing the map with > > $image=$map->draw(); > $image_url=$image->saveWebImage(MS_PNG,1,1,0); > > I use a function that takes the recently drawn map as the basemap and > renders the legend on it using the $colors array. > ... > > How can changing the mapfile influence a PHP function, that has nothing > to do with this mapfile? > The first thing I would check is make sure that your MapScript and your PHP are built with exactly the same copy of the GD library. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From pucher at atlas.gis.univie.ac.at Sat Nov 16 14:03:59 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Sat, 16 Nov 2002 23:03:59 +0100 Subject: [mapserver-users] Transparency problem References: <3DD57BF8.7060805@atlas.gis.univie.ac.at> <3DD68859.5370E276@dmsolutions.ca> Message-ID: <3DD6C0CF.2050808@atlas.gis.univie.ac.at> Daniel Morissette wrote: >Alexander Pucher wrote: > > >>In the last line, I create an array containing the colors. I use this to >>draw a Legend with the GD functions offered by PHP. >>So atfer drawing the map with >> >>$image=$map->draw(); >>$image_url=$image->saveWebImage(MS_PNG,1,1,0); >> >>I use a function that takes the recently drawn map as the basemap and >>renders the legend on it using the $colors array. >> >> >> >... > > >>How can changing the mapfile influence a PHP function, that has nothing >>to do with this mapfile? >> >> >> > >The first thing I would check is make sure that your MapScript and your >PHP are built with exactly the same copy of the GD library. > > > Yes, they are (gd 1.8.4)!! 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 -------------------------------------------------------- Virtual Map Forum: http://www.gis.univie.ac.at/vmf -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From atsimpson at directvinternet.com Sat Nov 16 16:46:46 2002 From: atsimpson at directvinternet.com (Drew Simpson) Date: Sat, 16 Nov 2002 18:46:46 -0600 Subject: [mapserver-users] gdal with jpeg2000 Message-ID: Has anyone had any success with the csv version of gdal and mapscript? I downloaded, compiled and installed jasper. I downloaded, compiled and installed the latest gdal from the csv. Jasper and gdal command line utilities seem to work fine. Am able to convert tif's to jp2, etc. I downloaded and compiled mapserver. mapserv works fine: I successfully compiled and installed mapscript, but if I try and use it I get Can't load '/home/asimpson/lib/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so' for module mapscript: /home/asimpson/lib/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so: undefined symbol: IsLocal__19OGRSpatialReference at /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. at /home/asimpson/lib/site_perl/5.6.1/i386-linux/mapscript.pm line 7 Compilation failed in require at ./jp2_test.pl line 10. BEGIN failed--compilation aborted at ./jp2_test.pl line 10. To further complicate the issue, all software is installed under my account, but I think I have my environment pointing to all the local installs. Probably showing my ignorance with this post, but have run out of ideas. Any help would be great, Thanks Drew. ===================== UNAME OUTPUT ======================== $ uname -a Linux mymachine 2.4.18-10 #1 Wed Aug 7 11:39:21 EDT 2002 i686 unknown =========================================================== ===================== PERL SCRIPT ========================= #!/usr/bin/perl use lib '/home/asimpson/lib/site_perl/5.6.1/i386-linux'; # mapscript location use mapscript; ============================================================ ===================== MAPSERV OUTPUT ====================== ./mapserv -v MapServer version 3.6.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE =========================================================== ===================== LDD OUTPUT ========================== ldd /home/asimpson/lib/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so libgdal.1.1.so => /home/asimpson/lib/libgdal.1.1.so (0x400df000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40259000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40277000) libpng.so.2 => /usr/lib/libpng.so.2 (0x402b6000) libz.so.1 => /usr/lib/libz.so.1 (0x402d8000) libproj.so.0 => /usr/local/lib/libproj.so.0 (0x402e6000) libm.so.6 => /lib/i686/libm.so.6 (0x40334000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) libungif.so.4 => /usr/lib/libungif.so.4 (0x40356000) libdl.so.2 => /lib/libdl.so.2 (0x4035e000) libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x40361000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x403a4000) ============================================================ From peter at rukavina.net Sat Nov 16 19:46:08 2002 From: peter at rukavina.net (Peter Rukavina) Date: Sat, 16 Nov 2002 23:46:08 -0400 Subject: [mapserver-users] How I got PHP + GD + Freetype + MapScript to work with proper text label angle Message-ID: <1B7EF548-F9DF-11D6-B7F5-00039357A724@rukavina.net> Several users have reported problems with text label angle after using MapServer 3.6 + GD-2 + FreeType2. I had the same problem: text labels would appear on the map, but at either (a) a seemingly weird angle to the line their were labeling and/or (b) each individual letter in the text labels rotated at a weird angle. Advice on this mailing list was to backstep to GD-1.8.4. I experimented with various combinations of all of the above, and found the following worked for me: 1. RedHat 7.2 with 2.4.7 kernel 2. PHP 4.2.3 3. GD 1.8.4 3. Freetype-pre1.4 When I compiled the Freetype and GD libraries, I modified the base installation directory to /usr/local/src/mapserver-dev to ensure that conflicting versions of either weren't being picked up by mistake. Here's how I got things working: 1. GD 1.8.4 Important lines in the Makefile are: CFLAGS=-O -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBTTF LIBS=-lgd -lpng -lz -lm -lttf -ljpeg INCLUDEDIRS=-I. -I/usr/local/src/mapserver-dev/include/freetype -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include LIBDIRS=-L. -L/usr/local/src/mapserver-dev -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib INSTALL_LIB=/usr/local/src/mapserver-dev/lib INSTALL_INCLUDE=/usr/local/src/mapserver-dev/include INSTALL_BIN=/usr/local/bin 2. Freetype-pre1.4 I couldn't get freetype-1.3.1 to compile for me, as it appears that the --without-x switch is broken (confirmed by others) so that if you don't have the proper X setup available it won't compile. I downloaded the pre-1.4 version from the Freetype "unstable" FTP area. Configured with: ./configure --prefix=/usr/local/src/mapserver-dev 3. PHP 4.2.3 Configured with: ./configure --with-sybase-ct=/opt/sybase --enable-track-vars --with-mysql=no --with-system-regex --with-gd=/usr/local/src/mapserver-dev --with-zlib --with-jpeg-dir=/usr --with-png-dir=/usr --without-ttf Note that the "--without-ttf" seems important, and perhaps counter-intuitively so. 4. Mapserver 3.6 Configured with: ./configure --prefix=/usr/local/src/mapserver-dev -with-gd=static,/usr/local/src/mapserver-dev --with-freetype=/usr/local/src/mapserver-dev --enable-force-freetype1 --enable-runpath --with-php=../php-4.2.3 Once I did all of the above, the resulting was a PHP executable and a MapServer PHP module that, together, produce fine, well-angled labels. Peter Rukavina Charlottetown, Prince Edward Island From akrherz at iitap.iastate.edu Sat Nov 16 20:41:43 2002 From: akrherz at iitap.iastate.edu (Daryl Herzmann) Date: Sat, 16 Nov 2002 23:41:43 -0500 (EST) Subject: [mapserver-users] MapServer + Weather Data Message-ID: Hi, Back in August, I posted a question about getting weather data into mapserver, in particular, wind barbs. http://mapserver.gis.umn.edu/wilma/mapserver-users/0208/msg00335.html I finally poked around with this task this evening and am horribly stuck :) I have attached the ESRI Weather font output, which is what I assume I should be using to build wind barbs? So I query my wind speeds out of the PostGIS database which is an attribute and am able to use the "weather" font to label the data points, but the symbols are wrong for the values. So my question is how to associate the integer value of wind speed in knots with the font? (hehe, then my next question is how to include visibility too, since this font file has that capability.) Thanks, Daryl -------------- next part -------------- A non-text attachment was scrubbed... Name: esri_map.png Type: image/png Size: 3209 bytes Desc: URL: From pramsey at refractions.net Sat Nov 16 22:50:14 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Sat, 16 Nov 2002 22:50:14 -0800 Subject: [mapserver-users] MapServer + Weather Data References: Message-ID: <3DD73C26.7000909@refractions.net> I am guessing you could do it with some clever SQL, which turns your weather information into values which map to your display requirements. You would want the wind speed mapping to letters which correspond to the symbols in your font set. You would then use that field as your LABELITEM in an annotation layer. You would also get the direction, and use that as the LABELANGLEITEM. The result should be the symbols you want, rotated in the correct directions. Daryl Herzmann wrote: > Hi, > Back in August, I posted a question about getting weather data into > mapserver, in particular, wind barbs. > > http://mapserver.gis.umn.edu/wilma/mapserver-users/0208/msg00335.html > > I finally poked around with this task this evening and am horribly stuck :) > > I have attached the ESRI Weather font output, which is what I assume I > should be using to build wind barbs? So I query my wind speeds out of the > PostGIS database which is an attribute and am able to use the "weather" > font to label the data points, but the symbols are wrong for the values. > > So my question is how to associate the integer value of wind speed > in knots with the font? > > (hehe, then my next question is how to include visibility too, since > this font file has that capability.) > > Thanks, > Daryl > > > ------------------------------------------------------------------------ > From uffe at routeware.dk Sun Nov 17 12:16:27 2002 From: uffe at routeware.dk (Uffe Kousgaard) Date: Sun, 17 Nov 2002 21:16:27 +0100 Subject: [mapserver-users] Geocoding server References: Message-ID: <001a01c28e76$35daebe0$6501a8c0@dual866> Hi, We have just launched a geocoding server at our website. It ain't open source or free, but source code is available. Kind regards Uffe Kousgaard www.routeware.dk ----- Original Message ----- From: "Jackson Harper" To: Sent: Friday, November 15, 2002 10:16 PM Subject: [mapserver-users] Geocoding server > Hi, > > I'm looking for a geocode server, I've heard rumors of an OSS Geocode Server > but have not been able to find anything. Can anyone send me a link? > > Jackson From krung at cad.go.th Sun Nov 17 22:25:42 2002 From: krung at cad.go.th (krung) Date: Mon, 18 Nov 2002 13:25:42 +0700 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: <200211181325.AA3014938@cad.go.th> Puneet, Sorry, It's my mistake. I mistyped from 'use CGI qw/:standard/;' to 'use DBI qw/:standard/;' in mail message but not in my real script. I tried as you suggested me. The same situation took place as before. But for now, when I ran the script at command line. Some warnings appeared below: [Sun Nov 17 07:46:39 2002] testmap.pl (in cleanup) Not a HASH reference at /usr/lib/perl5/site_perl/5.6.1/i386-linux-thread-multi/mapscript.pm line 1144. [Sun Nov 17 07:46:39 2002] testmap.pl (in cleanup) Not a HASH reference at /usr/lib/perl5/site_perl/5.6.1/i386-linux-thread-multi/mapscript.pm line 2415 I checked for these lines of warning. It's sub DESTROY of image object and map object respectively. How do I have to do next? And another question, why a few days ago these warning messages didn't show (also with switch -w) though I didn't change anything with my system. Thanks. Krung. ---------- Original Message ---------------------------------- From: Puneet Kishor Date: Fri, 15 Nov 2002 09:14:46 -0600 > >On Thursday, November 14, 2002, at 11:24 PM, krung wrote: > >> Lowell. >> >> My script is very simple below; >> >> #!/usr/bin/perl -w >> use mapscript; >> use DBI qw/:standard/; >> >> print header(); >> $map = new mapObj("test.map") or die "couldn't open map file\n"; >> $img = $map->draw(); >> $img->saveImage("images/test.png", $mapscript::MS_PNG,1,1,0); >> print ""; >> >> > >try this... >===================== >#!/usr/bin/perl -w > ># 1. import the modules >use CGI::Pretty qw(:standard); >use CGI::Carp qw(fatalsToBrowser); >use mapscript; >use DBI qw(:standard); > ># 2. set dir and url paths >my $apppath = "/absolute/path/to/your/tmp/dir"; >my $appurl = "/url/to/your/tmp/dir"; > ># set your mapfile >my $mapfile = "/absolute/path/to/your/mapfile"; > ># create a new map object >my $map = new mapObj("$mapfile") or die $mapscript::ms_error->{message}; > ># set a tmp map image name >my $imgname = $map->{name} . time() . ".png"; > ># create the map >my $img = $map->draw() or die('Unable to draw map'); > ># save the map >$img->saveImage($apppath . $imgname, $map->{imagetype}, >$map->{interlace}, $map->{transparent}, $map->{imagequality}); > ># 3. output >print header, start_html; >print ""; >print end_html; >===================== From jhart at frw.uva.nl Mon Nov 18 04:03:46 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Mon, 18 Nov 2002 13:03:46 +0100 Subject: [mapserver-users] MapServer + Weather Data References: <3DD73C26.7000909@refractions.net> Message-ID: <3DD8D722.7000001@frw.uva.nl> Daryl, I have been plotting TrueType symbols in two ways: MapServer only and MapServer/PostGIS. Perhaps people know better solutions; if so let me know. -----------------> MapServer only: <-------------------- 1) Define your symbols in a separate symbol file: symbol name 'wind1' type truetype font 'Esri_Weather' character "b" # symbol number in character map end symbol name 'wind2' type truetype font 'Esri_Weather' character ""=c" end and so on for all the symbols you need 2) In the main section of your MapFile, indicate where your fonts and symbols live: FONTSET "" # see: http://mapserver.gis.umn.edu/doc36/fontset.html SYMBOLSET "" 3) Create an annotation layer in your MapFile and create classes for each wind speed you want to have mapped: class expression "([wind_speed] = 1)" symbol "wind1" size ... color ... end class expression "([wind_speed] = 2)" symbol "wind2" size ... color ... end ... and so on -------------------> MapServer/PostGIS <--------------------------- 1) In your PostGIS DATA statement, create a subselect to convert wind speeds to the character-numbers of the Esri_Weather font symbols you want to use: select the_geom from (select oid case when wind_speed = 1 then chr(98) when wind_speed = 2 then chr(99) ... end as wind_speed_symbol from wind_table ) as foo 2) Create an annotation layer in your MapFile with just one class: layer LabelItem wind_speed_symbol class label type truetype font Esri_Weather size ... color ... end end end As Paul says, you can just add a field like wind_direction in the DATA select and use LABELANGLEITEM to orientate the symbol. Regards, Jan Hartmann > Daryl Herzmann wrote: > >> Hi, >> Back in August, I posted a question about getting weather data into >> mapserver, in particular, wind barbs. >> http://mapserver.gis.umn.edu/wilma/mapserver-users/0208/msg00335.html >> >> I finally poked around with this task this evening and am horribly >> stuck :) >> >> I have attached the ESRI Weather font output, which is what I assume >> I should be using to build wind barbs? So I query my wind speeds out >> of the PostGIS database which is an attribute and am able to use the >> "weather" font to label the data points, but the symbols are wrong for >> the values. >> >> So my question is how to associate the integer value of wind speed >> in knots with the font? >> (hehe, then my next question is how to include visibility too, since >> this font file has that capability.) >> >> Thanks, >> Daryl >> >> >> ------------------------------------------------------------------------ >> > > > Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From lfilak at medinaco.org Mon Nov 18 05:47:01 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 18 Nov 2002 08:47:01 -0500 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: <200211181345.gAIDjZX09528@yogi.medinaco.net> Those two messages are just warnings and do not keep the script from working properly unless you are running mod_perl or use strict. After you ran the script at the command line you should have had an images/test.png file created at the same time. Did you? If you open it in your browser does it look like what you expected? Note that when you ran it at the command line you should have seen the html header, start tag, & end tag printed to the screen also. Did you? Puneet is correct in that your script still doesn't contain start_html or end_html. Lowell F. The following message was sent by "krung" on Mon, 18 Nov 2002 13:25:42 +0700. > Puneet, > > Sorry, It's my mistake. I mistyped from 'use CGI qw/:standard/;' to 'use DBI qw/:standard/;' in mail message but not in my real script. I tried as you suggested me. The same situation took place as before. But for now, when I ran the script at command line. Some warnings appeared below: > > [Sun Nov 17 07:46:39 2002] testmap.pl (in cleanup) Not a HASH reference at /usr/lib/perl5/site_perl/5.6.1/i386-linux-thread-multi/mapscript.pm line 1144. > [Sun Nov 17 07:46:39 2002] testmap.pl (in cleanup) Not a HASH reference at /usr/lib/perl5/site_perl/5.6.1/i386-linux-thread-multi/mapscript.pm line 2415 > > I checked for these lines of warning. It's sub DESTROY of image object and map object respectively. How do I have to do next? And another question, why a few days ago these warning messages didn't show (also with switch -w) though I didn't change anything with my system. > > Thanks. > Krung. > > ---------- Original Message ---------------------------------- > From: Puneet Kishor > Date: Fri, 15 Nov 2002 09:14:46 -0600 > > > > >On Thursday, November 14, 2002, at 11:24 PM, krung wrote: > > > >> Lowell. > >> > >> My script is very simple below; > >> > >> #!/usr/bin/perl -w > >> use mapscript; > >> use DBI qw/:standard/; > >> > >> print header(); > >> $map = new mapObj("test.map") or die "couldn't open map file\n"; > >> $img = $map->draw(); > >> $img->saveImage("images/test.png", $mapscript::MS_PNG,1,1,0); > >> print ""; > >> > >> > > > >try this... > >===================== > >#!/usr/bin/perl -w > > > ># 1. import the modules > >use CGI::Pretty qw(:standard); > >use CGI::Carp qw(fatalsToBrowser); > >use mapscript; > >use DBI qw(:standard); > > > ># 2. set dir and url paths > >my $apppath = "/absolute/path/to/your/tmp/dir"; > >my $appurl = "/url/to/your/tmp/dir"; > > > ># set your mapfile > >my $mapfile = "/absolute/path/to/your/mapfile"; > > > ># create a new map object > >my $map = new mapObj("$mapfile") or die $mapscript::ms_error->{message}; > > > ># set a tmp map image name > >my $imgname = $map->{name} . time() . ".png"; > > > ># create the map > >my $img = $map->draw() or die('Unable to draw map'); > > > ># save the map > >$img->saveImage($apppath . $imgname, $map->{imagetype}, > >$map->{interlace}, $map->{transparent}, $map->{imagequality}); > > > ># 3. output > >print header, start_html; > >print ""; > >print end_html; > >===================== > From lfilak at medinaco.org Mon Nov 18 06:17:52 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 18 Nov 2002 09:17:52 -0500 Subject: [mapserver-users] Unsetting parameters in Perl/MapScript Message-ID: <200211181416.gAIEGQX10013@yogi.medinaco.net> Are you able to undef the web object and build a new one? Lowell F. The following message was sent by Jean-Francois.Doyon at ccrs.nrcan.gc.ca on Fri, 15 Nov 2002 18:26:56 -0500. > Hello, > > How does one "unset" a parameter set in a mapfile ? > > I load a mapfile that has the ERROR template set in the WEB object, and I > want to remove it entirely. > > I've tried $map->{web}->{error} = "", but that just sets it to empty ... if > I try undef $map->{web}->{error}, I get a segfault !, I tried setting it > with = 0 (false), but then it just takes the value 0 and uses it as a string > ... > > Any ideas ? > > Thanks, > > Jean-Fran?ois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Canada Center for Remote Sensing > Natural Resources Canada > http://atlas.gc.ca > Phone: (613) 992-4902 > Fax: (613) 947-2410 > From sctweedy at NRCan.gc.ca Mon Nov 18 07:20:57 2002 From: sctweedy at NRCan.gc.ca (Tweedy, Scott) Date: Mon, 18 Nov 2002 10:20:57 -0500 Subject: [mapserver-users] WMS layers Message-ID: <5ACEEE96F4F9D41190790002A528B51E02740B6B@s0-ott-x11.nrn.nrcan.gc.ca> I've been experimenting with WMS layers and creating a WMS application and I have a question about image quality and georeferencing with MapServer and maybe MapLab. Unfortunately, the application is on an Intranet or I could give the actual URL examples. If I create a .map file and call that file through MapServer as a WMS GetMap request: http:///cgi-bin/mapserv.exe?map=wms.map&version=1.1.0&request=GetM ap the file comes up exactly as I want it, the images are crisp and accurate. If I add a layer definition in a .map file for one of the same layers in the same .map file used previously and view the .map file on the Intranet or through MapLab the WMS layer is rendered very poorly. The colours are all different, lines are very pixilated and the location of the element (whether it's a point, line, polygon or raster layer) is not correct. If necessary I can send screen shots of the problem. Is there something I'm missing? Shouldn't a map layer added as a WMS layer in a .map file look the same as that same layer does when using a WMS GetMap request? Am I missing something? I'm using: MapServer version 3.5 (beta) 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 MapLab 2.0rc2 php 4.2.2 MapScript 3.6 From ed at topozone.com Mon Nov 18 07:50:31 2002 From: ed at topozone.com (Ed McNierney) Date: Mon, 18 Nov 2002 10:50:31 -0500 Subject: [mapserver-users] WMS layers Message-ID: <13858AA1A74F30419F319ACB66A9D1221F394C@host218.209.113.211.conversent.net> Scott - Could you post screen shots of the two images you're comparing? I'm not completely clear on what these two usage scenarios are - in particular: "If I add a layer definition in a .map file for one of the same layers in the same .map file used previously and view the .map file on the Intranet or through MapLab the WMS layer is rendered very poorly." Are you working with two DIFFERENT .map files, or the same .map file viewed in two different contexts? Are your layers raster layers, vector, or both? If they're raster layers, are they being viewed at the same scale in both contexts (image resizing/resampling can degrade the image quality a lot). Your comment, "Shouldn't a map layer added as a WMS layer in a .map file look the same as that same layer does when using a WMS GetMap request?" still puzzles me. How are you looking at a "WMS layer" in a .map file OTHER than by using a WMS GetMap request? Sorry if I'm sounding dense, but if you could clarify what these two scenarios are it would help me. Thanks. - 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: Tweedy, Scott [mailto:sctweedy at NRCan.gc.ca] Sent: Monday, November 18, 2002 10:21 AM To: MapLab Users (E-mail); MapServer Users (E-mail) Subject: [mapserver-users] WMS layers I've been experimenting with WMS layers and creating a WMS application and I have a question about image quality and georeferencing with MapServer and maybe MapLab. Unfortunately, the application is on an Intranet or I could give the actual URL examples. If I create a .map file and call that file through MapServer as a WMS GetMap request: http:///cgi-bin/mapserv.exe?map=wms.map&version=1.1.0&request=GetM ap the file comes up exactly as I want it, the images are crisp and accurate. If I add a layer definition in a .map file for one of the same layers in the same .map file used previously and view the .map file on the Intranet or through MapLab the WMS layer is rendered very poorly. The colours are all different, lines are very pixilated and the location of the element (whether it's a point, line, polygon or raster layer) is not correct. If necessary I can send screen shots of the problem. Is there something I'm missing? Shouldn't a map layer added as a WMS layer in a .map file look the same as that same layer does when using a WMS GetMap request? Am I missing something? I'm using: MapServer version 3.5 (beta) 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 MapLab 2.0rc2 php 4.2.2 MapScript 3.6 From ARyan at co.linn.or.us Mon Nov 18 08:20:52 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Mon, 18 Nov 2002 08:20:52 -0800 Subject: [mapserver-users] Mapscript alternatives Message-ID: <614FCE5F14A6D41180C200010240D6A2EE5A44@LINNMS> Greetings. I use a pre-compiled Win32 binary of mapserver and I've got a pretty good handle on the CGI portion, mapserv. I figured out HTML and javascript, but I feel limited and want to jump into Mapscript. However, prior to using mapserver I'd never even heard of perl, python or PHP, nor have I done any C compiling. My question is: What are the pros/cons of each? How hard is it to get started (from scratch) in these things? Is one more powerful than another? How? Any suggestions or links would be great. Thanks for your time. Adam Linn County -------------- next part -------------- An HTML attachment was scrubbed... URL: From cthomas at rand.org Mon Nov 18 08:58:31 2002 From: cthomas at rand.org (Thomas, Cord) Date: Mon, 18 Nov 2002 08:58:31 -0800 Subject: [mapserver-users] Mapscript alternatives Message-ID: <2732967B446AFD4E9CDE5E37D642548B9D4F5F@smmail2.rand.org> Ryan Given the history of Mapscript and the mapserver community, i encourage you to use PHP as this has been most widely used. Given that you have limited experience in development, this is probably the best choice. My personal desire is to see a wider variety of scripting and development efforts, such as Java, VBScript (ASP, shudder), etc - but until that day, i would suggest PHP - there are many examples available and many of the participants in this list can help. Cord -----Original Message----- From: Ryan, Adam [mailto:ARyan at co.linn.or.us] Sent: Monday, November 18, 2002 8:21 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Mapscript alternatives Greetings. I use a pre-compiled Win32 binary of mapserver and I've got a pretty good handle on the CGI portion, mapserv. I figured out HTML and javascript, but I feel limited and want to jump into Mapscript. However, prior to using mapserver I'd never even heard of perl, python or PHP, nor have I done any C compiling. My question is: What are the pros/cons of each? How hard is it to get started (from scratch) in these things? Is one more powerful than another? How? Any suggestions or links would be great. Thanks for your time. Adam Linn County -------------- next part -------------- An HTML attachment was scrubbed... URL: From johannesbuehler at oderbruecke.de Mon Nov 18 09:59:20 2002 From: johannesbuehler at oderbruecke.de (Johannes Bühler) Date: Mon, 18 Nov 2002 18:59:20 +0100 Subject: [mapserver-users] mapserver db2 spatial extender Message-ID: <20021118185920.488a719d.johannesbuehler@oderbruecke.de> hi, does anyone have some experience using the the db2 spatial extender with mapserver. Is db2 spatial extender supported by mapserver like Postgis and Oracle? thanks Johannes Buehler -- -- Johannes Buehler __O Feldtstr. 45 =`\<, 14789 Greifswald (=)/(=) johannes.buehler at uni-greifswald.de ----------- From lfilak at medinaco.org Mon Nov 18 10:02:25 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 18 Nov 2002 13:02:25 -0500 Subject: [mapserver-users] Mapscript alternatives Message-ID: <200211181800.gAII0wX13794@yogi.medinaco.net> In my biased opinion: As a sysadmin/gis-lead/programmer by using Perl I can use the same languge for everything I need to do. I'm no expert in Perl and I don't feel it was hard to get started. My $0.02. Lowell F. The following message was sent by "Ryan, Adam" on Mon, 18 Nov 2002 08:20:52 -0800. > > Greetings. > > I use a pre-compiled Win32 binary of mapserver and I've got a pretty good > handle on the CGI portion, mapserv. I figured out HTML and javascript, but > I feel limited and want to jump into Mapscript. However, prior to using > mapserver I'd never even heard of perl, python or PHP, nor have I done any C > compiling. > > My question is: What are the pros/cons of each? How hard is it to get > started (from scratch) in these things? Is one more powerful than another? > How? > > Any suggestions or links would be great. Thanks for your time. > > Adam > Linn County > > From krung at cad.go.th Mon Nov 18 10:36:02 2002 From: krung at cad.go.th (krung) Date: Tue, 19 Nov 2002 01:36:02 +0700 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: <200211190136.AA68682010@cad.go.th> >Those two messages are just warnings and do not keep the script from working properly unless you are running mod_perl or use strict. OK, I'll try doing with mod_perl later coz I never used it on Linux, only on Windows. >After you ran the script at the command line you should have had an images/test.png file created at the same time. >Did you? Yes. >If you open it in your browser does it look like what you expected? No. >Note that when you ran it at the command line you should have seen the html header, start tag, & end tag printed to the screen also. >Did you? Yes. >Puneet is correct in that your script still doesn't contain start_html or end_html. I'd tried it already. >Lowell F. > From sgillies at frii.com Mon Nov 18 10:43:12 2002 From: sgillies at frii.com (Sean Gillies) Date: Mon, 18 Nov 2002 11:43:12 -0700 Subject: [mapserver-users] Mapscript alternatives In-Reply-To: <614FCE5F14A6D41180C200010240D6A2EE5A44@LINNMS> References: <614FCE5F14A6D41180C200010240D6A2EE5A44@LINNMS> Message-ID: <3DD934C0.1050709@frii.com> Adam, PHP is the best supported flavor of mapscript, but will be the more limiting. It may very well provide everything you need. Perl mapscript is less well supported than PHP, but more powerful. It gives you the option of hooking up many other great modules to your mapscript apps. Perl is not going to be very easy to learn for someone with no C experience, and there is also the issue of a major Perl language revision on the horizon. Python mapscript is even less well supported than Perl. Only sketchy documentation (my fault as much as anyone's). It is much more easy to learn than Perl and also allows you to exploit many useful packages. For my recent employer, I wrote a Python mapscript app that used the Python Imaging Library to combine raster layers and apply custom image enhancements on-the-fly. I could have done this with Perl, perhaps, but not with PHP. cheers, Sean Ryan, Adam wrote: > > Greetings. > > I use a pre-compiled Win32 binary of mapserver and I've got a pretty > good handle on the CGI portion, mapserv. I figured out HTML and > javascript, but I feel limited and want to jump into Mapscript. > However, prior to using mapserver I'd never even heard of perl, python > or PHP, nor have I done any C compiling. > > My question is: What are the pros/cons of each? How hard is it to get > started (from scratch) in these things? Is one more powerful than > another? How? > > Any suggestions or links would be great. Thanks for your time. > > Adam > Linn County > -- Sean Gillies sgillies at frii.com From TCHaddad at cshore.com Mon Nov 18 11:32:42 2002 From: TCHaddad at cshore.com (TCHaddad) Date: Mon, 18 Nov 2002 14:32:42 -0500 Subject: [mapserver-users] Mapscript alternatives Message-ID: <200211181432.AA695468368@cshore.com> But it sounds like Adam is on Windows, and there doesn't seem to be a lot of windows users on the Perl mapscript path... or maybe they are all very quiet... ---------- Original Message ---------------------------------- From: "Lowell Filak" Date: Mon, 18 Nov 2002 13:02:25 -0500 >In my biased opinion: >As a sysadmin/gis-lead/programmer by using Perl I can use the same languge for everything I need to do. >I'm no expert in Perl and I don't feel it was hard to get started. >My $0.02. >Lowell F. > >The following message was sent by "Ryan, Adam" on Mon, 18 Nov 2002 08:20:52 -0800. > >> >> Greetings. >> >> I use a pre-compiled Win32 binary of mapserver and I've got a pretty good >> handle on the CGI portion, mapserv. I figured out HTML and javascript, but >> I feel limited and want to jump into Mapscript. However, prior to using >> mapserver I'd never even heard of perl, python or PHP, nor have I done any C >> compiling. >> >> My question is: What are the pros/cons of each? How hard is it to get >> started (from scratch) in these things? Is one more powerful than another? >> How? >> >> Any suggestions or links would be great. Thanks for your time. >> >> Adam >> Linn County >> >> > > From pramsey at refractions.net Mon Nov 18 12:11:21 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 18 Nov 2002 12:11:21 -0800 Subject: [mapserver-users] mapserver db2 spatial extender References: <20021118185920.488a719d.johannesbuehler@oderbruecke.de> Message-ID: <3DD94969.6050102@refractions.net> Johannes BXhler wrote: > does anyone have some experience using the the db2 > spatial extender with mapserver. Is db2 spatial > extender supported by mapserver like Postgis and > Oracle? Nope, there is no DB2 connector. If you're just doing attribute queries, you can script up something using the PHP DB2 connector and the PHP/Mapscript binding. If you need actual geometries in the database, you'll have write or get written a DB2 connector for Mapserver (we could do that for you, for example). P. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From Chip.Hankley at gasai.com Mon Nov 18 12:31:04 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Mon, 18 Nov 2002 14:31:04 -0600 Subject: [mapserver-users] Accessing Vertices of a Shape - PHP MapScript Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABF3D@postoffice.GASAI.Com> I'm trying to develop a type of geocoding application. More specifically, I want to use geo-coded data in a PHP MapScript application. I can easily zoom to an address range, but the next step that I want to take is to place a "pushpin" at the estimated address location. Doing this would require that I estimate how far along a line segment a certain address is. What I had in mind was to sequentially work through the xy values of the vertices for the line segment in question, calculating percent distance along the line as I go, in order to determine where to place the push-pin. It doesn't look like there's a way to access the vertices information of a shape object in MapScript... anybody have any other ideas on how to do this? Chip Hankley From johannesbuehler at oderbruecke.de Mon Nov 18 13:03:37 2002 From: johannesbuehler at oderbruecke.de (Johannes Bühler) Date: Mon, 18 Nov 2002 22:03:37 +0100 Subject: [mapserver-users] mapserver db2 spatial extender In-Reply-To: <3DD94969.6050102@refractions.net> References: <20021118185920.488a719d.johannesbuehler@oderbruecke.de> <3DD94969.6050102@refractions.net> Message-ID: <20021118220337.388f3727.johannesbuehler@oderbruecke.de> > On Mon, 18 Nov 2002 12:11:21 -0800 > Paul Ramsey wrote: > Nope, there is no DB2 connector. If you're just > doing attribute queries, you can script up > something using the PHP DB2 > connector and the > PHP/Mapscript binding. If you need actual > > geometries in the database, Yes I need geometries > you'll have write or get written a DB2 connector > for Mapserver (we could do that for you, for > example). thats sounds good. is it difficult to write such a connector? What kind of information do you need to write this connector? Johannes Buehler -- -- Johannes Buehler __O Feldtstr. 45 =`\<, 14789 Greifswald (=)/(=) johannesbuehler at oderbruecke.de ----------- From pkishor at GeoAnalytics.com Mon Nov 18 13:27:28 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 18 Nov 2002 15:27:28 -0600 Subject: [mapserver-users] Couldn't run perl mapscript under Apache Message-ID: Krung, Lowell Filak> Those two messages are just warnings and do not Lowell Filak> keep the script from working properly unless you Lowell Filak> are running mod_perl or use strict. Krung> OK, I'll try doing with mod_perl later coz I never Krung> used it on Linux, only on Windows. What does that mean Krung? Lowell is telling you that you will receive the "Not a HASH reference... " error if you are running under mod_perl. He is not asking you to run the script under mod_perl. Lowell makes no mention of Windows. Lets keep things simple. For now, lets just assume you are running under Linux, and get it working there first (besides, perl/mapscript doesn't even work under Windows, as far as I know). Lowell Filak> After you ran the script at the command line Lowell Filak> you should have had an images/test.png Lowell Filak> file created at the same time. Did you? Krung> Yes. Lowell Filak> If you open it in your browser does it look Lowell Filak> like what you expected? Krung> No. what does that mean? So, the image was created, but it did not look like what you expected? What did you expect? What did you get instead? How big was the image (in bytes)? Let us insure that you are at least getting some image. Lowell Filak> Note that when you ran it at the command line Lowell Filak> you should have seen the html header, start Lowell Filak> tag, & end tag printed to the screen also. Lowell Filak> Did you? Krung> Yes. This implies the script ran just fine. There were no errors (except for the "Not a HASH reference... " errors. Is that so? You _have_ to give us the following -- 1. the exact script you are using. If you omit anything obvious from that script, please note what you are omitting. Best is, to make a very simple, basic script, try it out, and then send us that script exactly the way it is on your computer. 2. the scipt has to be executable. Make sure you chmod +x yourscript.pl 3. the directory where your data are stored should be readable by the web server account. 4. the directory where you are writing the temporary images should be writable by the web server account. 5. the apache settings should be correct to allow cgi execution. 6. You have to tell us all the errors you see (on the screen and in the log files). Unless we get all the information from you we will be solving this one well into 2003. Please let us know all the information as above, as well as any relevant computer-setup info. Lets get this working as its been a long while. If you prefer, please feel free to email me off the list (and to Lowell, if he doesn't mind... please ask him first) so we don't inundate the list with this chatter. Once we get it all working we can post the solution to the list. Regards, Puneet. From jeff at propertykey.com Mon Nov 18 14:33:08 2002 From: jeff at propertykey.com (Jeff Hoffmann) Date: Mon, 18 Nov 2002 16:33:08 -0600 Subject: [mapserver-users] Geocoding server In-Reply-To: References: Message-ID: <3DD96AA4.9070108@propertykey.com> Jackson Harper wrote: > > Hi, > > I'm looking for a geocode server, I've heard rumors of an OSS Geocode > Server but have not been able to find anything. Can anyone send me a link? > If you're willing to do a little hacking to get it to work in your application, you can look into Daniel Egnor's geocoder that won the Google programming contest a while back. It geocodes based on TIGER files (you can download them from the Census Bureau web site) & I'm pretty sure it's GPL. You can download the code at http://ofb.net/~egnor/google.html -- Jeff Hoffmann PropertyKey.com From keon at nacse.org Mon Nov 18 14:51:32 2002 From: keon at nacse.org (Dylan Keon) Date: Mon, 18 Nov 2002 14:51:32 -0800 Subject: [mapserver-users] WMS layer is blank Message-ID: <3DD96EF4.3060406@nacse.org> Hi listers, I'm trying to display a WMS layer (Terraserver DOQ) in a simple interface. I've tried everything I can think of to get it to display, but just get a blank image. The extent and epsg codes are correct. The other layer in the mapfile (a shapefile) appears, but not the WMS layer. I compiled MapServer with --enable-debug...the WMS request URL printed to the server log is good. I can copy that URL to a browser and the correct DOQ image appears. The mapfile is below. Thanks for any help. Dylan ################### mapfile ###################### NAME "wms_test" SIZE 600 400 STATUS ON EXTENT 371000 5250000 492000 5353000 #minx miny maxx maxy UNITS METERS SHAPEPATH "/tmp/gis" IMAGETYPE PNG PROJECTION "init=epsg:26910" #NAD83 UTM zone 10N END WEB IMAGEPATH "/www/temp/" IMAGEURL "/temp/" END LAYER NAME ONP_boundary TYPE POLYGON STATUS DEFAULT DATA onp_bnd TRANSPARENCY 50 CLASS NAME "ONP boundary" OUTLINECOLOR 0 0 0 COLOR 243 248 245 END END LAYER NAME ortho METADATA "wms_title" "USGS Digital Ortho-Quadrangles" "wms_srs" "EPSG:26910" END STATUS DEFAULT TYPE RASTER MINSCALE 1000 MAXSCALE 200000 CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FORMAT=png&styles=" PROJECTION "init=epsg:26910" #NAD83 UTM zone 10N END END END ######################################### From morissette at dmsolutions.ca Mon Nov 18 14:54:15 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 18 Nov 2002 17:54:15 -0500 Subject: [mapserver-users] Accessing Vertices of a Shape - PHP MapScript References: <3DFF131E4E6D2D4198CDD758F35A5353010ABF3D@postoffice.GASAI.Com> Message-ID: <3DD96F97.150D94E@dmsolutions.ca> "Hankley, Chip" wrote: > \> It doesn't look like there's a way to access the vertices information of a > shape object in MapScript... anybody have any other ideas on how to do this? > There is a way... it's just a bit tricky. :) A shapeObj is composed of a number of lineObj which in turn are composed of a number of pointObj which contain the vertices. For instance to dump all vertices in a shape you would have to do something like this: for($i=0; $i < $shape->numlines; $i++) { $line = $shape->line($i); for($j=0; $j<$line->numpoints; $j++) { $point = $line->point($j); // Do something with the vertices: // $point->x, $point->y } } Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jeffb at erlandsen.com Mon Nov 18 16:24:42 2002 From: jeffb at erlandsen.com (Jeff Berry) Date: Mon, 18 Nov 2002 16:24:42 -0800 Subject: [mapserver-users] Fixed pan buttons with PHP Mapscript Message-ID: I'd like to be able to add 4 buttons around the map representing the 4 cardinal directions, that when clicked will pan the map precisely half the current extent of the map in the specified direction. I'm using PHP Mapscript. I'm pretty new to PHP and definitely new to Mapscript, and this is my first real attempt at customizing Mapserver with Mapscript. So, I'm sort of shooting in the dark here and am not sure how to approach this. My main question is how can I get access to the coordinates for the current map extent? I've looked through the class descriptons for MapScript and see the MapObj has rectObj as a member. So, I assume I can get to the current map extent through the rectObj, but I'm uncertain on exactly how to do this, as far as the actual code. I imagine someone has already done this, so if there is anyone willing to share their code for a fixed pan button with a rookie, it would be a big help. Thanks, Jeff Berry Erlandsen & Associates P.O. Box 2029 Chelan, WA 98816 (509) 682-4189 jeffb at erlandsen.com From Antti.Roppola at brs.gov.au Mon Nov 18 18:21:12 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Tue, 19 Nov 2002 13:21:12 +1100 Subject: [mapserver-users] Fixed pan buttons with PHP Mapscript Message-ID: <4D6E6CCBC9CED61192720060B06B3DD7C3FB2E@ACTMAIL2> Hi Jeff, Use $map->extent-> to find the current extent of your map (it's a rectObj). >From there, it would be a simple matter to set up some buttons that increment the view by half the current displayed width: $xmax = $map->extent->{xmax}; $xmin = $map->extent->{xmin}; $xinc = ($xmax - $xmin ) / 2; // Move across half a view in the X if ($pan=="right") { // or whatever your "pan right" button does $map->setextent( ($xmin + $xinc), $ymin, ($xmax + $xinc), $ymax); } if ($pan=="left") { // or whatever your "pan left" button does $map->setextent( ($xmin - $xinc), $ymin, ($xmax - $xinc), $ymax); } ... Same sort of thing again for your other directions. Cheers, Antti -----Original Message----- From: Jeff Berry [mailto:jeffb at erlandsen.com] Sent: Tuesday, 19 November 2002 11:25 AM To: MapServer Subject: [mapserver-users] Fixed pan buttons with PHP Mapscript I'd like to be able to add 4 buttons around the map representing the 4 cardinal directions, that when clicked will pan the map precisely half the current extent of the map in the specified direction. I'm using PHP Mapscript. I'm pretty new to PHP and definitely new to Mapscript, and this is my first real attempt at customizing Mapserver with Mapscript. So, I'm sort of shooting in the dark here and am not sure how to approach this. My main question is how can I get access to the coordinates for the current map extent? I've looked through the class descriptons for MapScript and see the MapObj has rectObj as a member. So, I assume I can get to the current map extent through the rectObj, but I'm uncertain on exactly how to do this, as far as the actual code. I imagine someone has already done this, so if there is anyone willing to share their code for a fixed pan button with a rookie, it would be a big help. Thanks, Jeff Berry Erlandsen & Associates P.O. Box 2029 Chelan, WA 98816 (509) 682-4189 jeffb at erlandsen.com From pigeonflight at yahoo.co.uk Mon Nov 18 18:52:18 2002 From: pigeonflight at yahoo.co.uk (=?iso-8859-1?q?David=20Bain?=) Date: Tue, 19 Nov 2002 02:52:18 +0000 (GMT) Subject: [mapserver-users] map server webhosting Message-ID: <20021119025218.3631.qmail@web11704.mail.yahoo.com> Is there such a thing as a "mapserver friendly host" specifically as it relates to PHP. Do you have any recommendations of hosting companies that would be good to work with? ===== David Bain Internet and Networking http://dbain.com - pigeonflight at yahoo.co.uk ================================================ __ http://www.globalhostdirectory.com __fT\ [Find the ideal web hosting provider] =============================================== __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com From morissette at dmsolutions.ca Mon Nov 18 19:37:36 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 18 Nov 2002 22:37:36 -0500 Subject: [mapserver-users] WMS layer is blank References: <3DD96EF4.3060406@nacse.org> Message-ID: <3DD9B200.6BC34F34@dmsolutions.ca> Dylan Keon wrote: > > Hi listers, > > I'm trying to display a WMS layer (Terraserver DOQ) in a simple > interface. I've tried everything I can think of to get it to display, > but just get a blank image. The extent and epsg codes are correct. The > other layer in the mapfile (a shapefile) appears, but not the WMS layer. > > I compiled MapServer with --enable-debug...the WMS request URL printed > to the server log is good. I can copy that URL to a browser and the > correct DOQ image appears. The mapfile is below. Thanks for any help. > I was able to reproduce this problem with MapServer 3.6 and filed a bug in bugzilla: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=223 Note that we've been doing some work (with Frank W.) recently to improve WMS support in 3.7 and the layer does show up in 3.7... so it might be worth a try if you are able to compile the latest 3.7 from CVS. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From pradeepkumar at infotech.stph.net Mon Nov 18 20:32:48 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Tue, 19 Nov 2002 10:02:48 +0530 Subject: [mapserver-users] Debugging a CGI in MSVC Message-ID: Greetings I have the mapserver sources running on windows, compiled using the MSVC compiler,I wish to debug it, and follow the code flow setting some break points in the code, as far as now I was unsuccessful trying to debug the CGI exe, I have used __asm {int 3}; statement to programatically set break points in the code, but still the VC debugger fails to launch. In essense can any user working in windows environment tell me How to debug a CGI application? Thanks for your time Pradeep. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jnovak at novacell.com Mon Nov 18 21:07:59 2002 From: jnovak at novacell.com (Administrator) Date: Mon, 18 Nov 2002 21:07:59 -0800 Subject: [mapserver-users] Debugging a CGI in MSVC Message-ID: <41CC46B3925E384BA64B1FB5041C38FA328E@www.novacell.com> Go to Project->Settings->Debug->General and place a string in the Program Arguments box that resembles: QUERY_STRING=mode=browse&layer=DAWorks&zoomdir=0&zoomsize=2&img=..%2Ftmp %2FDEMO10352555823296.png&imgxy=299.5+299.5&imgext=-175.552728+-160.5527 28+175.552728+190.552728&map=C%3A%5CInetpub%5Cwwwroot%5Cnovacell%5Cdemo. map&savequery=true&program=%5Ccgi-bin%5Cmapservercgi.exe&map_web_imagepa th=C%3A%5Cinetpub%5Cwwwroot%5Ctmp%5C&map_web_imageurl=..%2Ftmp%2F&CMD=ZO OM_IN&INPUT_TYPE=auto_rect&INPUT_COORD=73%2C224%3B213%2C300&minx=&miny=& maxx=&maxy=&imagewidth=&imageheight= I use a running web app to generate the string I wnat, then prepend the QUERY_STRING=. This triggers a special debugging case in mapserv.c main that will set up the CGI stuff for debug execution. JN From: Pradeep [mailto:pradeepkumar at infotech.stph.net] Sent: Monday, November 18, 2002 8:33 PM To: Mapserver-Users; mapserver-dev Subject: [mapserver-users] Debugging a CGI in MSVC Importance: High Greetings I have the mapserver sources running on windows, compiled using the MSVC compiler,I wish to debug it, and follow the code flow setting some break points in the code, as far as now I was unsuccessful trying to debug the CGI exe, I have used __asm {int 3}; statement to programatically set break points in the code, but still the VC debugger fails to launch. In essense can any user working in windows environment tell me How to debug a CGI application? Thanks for your time Pradeep. -------------- next part -------------- An HTML attachment was scrubbed... URL: From keon at nacse.org Mon Nov 18 21:56:28 2002 From: keon at nacse.org (Dylan Keon) Date: Mon, 18 Nov 2002 21:56:28 -0800 Subject: [mapserver-users] WMS layer is blank References: <3DD96EF4.3060406@nacse.org> <3DD9B200.6BC34F34@dmsolutions.ca> Message-ID: <3DD9D28C.2010301@nacse.org> >>I'm trying to display a WMS layer (Terraserver DOQ) in a simple >>interface. I've tried everything I can think of to get it to display, >>but just get a blank image. The extent and epsg codes are correct. The >>other layer in the mapfile (a shapefile) appears, but not the WMS layer. >> >>I compiled MapServer with --enable-debug...the WMS request URL printed >>to the server log is good. I can copy that URL to a browser and the >>correct DOQ image appears. The mapfile is below. Thanks for any help. > I was able to reproduce this problem with MapServer 3.6 and filed a bug > in bugzilla: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=223 > > Note that we've been doing some work (with Frank W.) recently to improve > WMS support in 3.7 and the layer does show up in 3.7... so it might be > worth a try if you are able to compile the latest 3.7 from CVS. OK, thanks. I've been trying to compile 3.7 but run into a consistent error (see below). Seems to be a problem with mappdf from libwww. I'm compiling against libwww-5.4.0. Any suggestions? 3.6.3 compiles just fine using exactly the same configuration. Thanks, Dylan gcc -c -g -O2 -Wall -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_THREAD -I/usr/local/src/gd-1.8.4 -I/usr/local/src/proj-4.4.5/src -I/usr/local/src/gdal-1.1.7/ogr/ogrsf_frmts -I/usr/local/src/gdal-1.1.7/ogr -I/usr/local/src/gdal-1.1.7/ogr/../port -I/usr/local/src/gdal-1.1.7/port -I/usr/local/src/gdal-1.1.7/core -I/usr/local/src/gdal-1.1.7/ogr -I/usr/local/src/gdal-1.1.7/ogr/ogrsf_frmts -I/usr/local/pgsql/include -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H mappdf.c -o mappdf.o mappdf.c: In function `msFreeImagePDF': mappdf.c:975: union has no member named `swf' mappdf.c: In function `msDrawTextPDF': mappdf.c:1027: warning: assignment makes integer from pointer without a cast make: *** [mappdf.o] Error 1 From johannesbuehler at oderbruecke.de Mon Nov 18 23:12:46 2002 From: johannesbuehler at oderbruecke.de (Johannes Bühler) Date: Tue, 19 Nov 2002 08:12:46 +0100 Subject: [mapserver-users] mapserver db2 spatial extender In-Reply-To: <3DD970BC.1020409@refractions.net> References: <20021118185920.488a719d.johannesbuehler@oderbruecke.de> <3DD94969.6050102@refractions.net> <20021118220337.388f3727.johannesbuehler@oderbruecke.de> <3DD970BC.1020409@refractions.net> Message-ID: <20021119081246.16f023e0.johannesbuehler@oderbruecke.de> > Well, if you already know C and have a test DB2 > database and development environment, you can > probably template off the > existing PostGIS or > Oracle connectors and get things working. So, > > medium difficult. I do not have any knowlegde in C (only Java). so it would be quite difficult for me to change the code by myself. > We are a consulting company, so we would do the > work under contract, set up our own DB2 > development environment, and > commit the code > back into the main Mapserver source tree for you > or your > clients use. If you're interested in a > development quotation, I would > be happy to > draw one up. thanks. but the thing is that i need the mapserver for my diploma theses, so it is not a commercial purpose. But anyway i think it is in general a good thing to let the mapserver work together with db2 and spatial extender especially with regard to the oracle support. Yours Johannes Buehler -- -- Johannes Buehler __O Feldtstr. 45 =`\<, 14789 Greifswald (=)/(=) johannesbuehler at oderbruecke.de ----------- From nicolasb at maich.gr Mon Nov 18 23:30:44 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Tue, 19 Nov 2002 09:30:44 +0200 Subject: [mapserver-users] Mapscript alternatives References: <614FCE5F14A6D41180C200010240D6A2EE5A44@LINNMS> <3DD934C0.1050709@frii.com> Message-ID: <3DD9E8A4.7060607@maich.gr> Sean Gillies wrote: > Adam, > > PHP is the best supported flavor of mapscript, but will be > the more limiting. It may very well provide everything > you need. > > Perl mapscript is less well supported than PHP, but more > powerful. It gives you the option of hooking up many other > great modules to your mapscript apps. Perl is not going to > be very easy to learn for someone with no C experience, > and there is also the issue of a major Perl language revision > on the horizon. > > Python mapscript is even less well supported than Perl. Only > sketchy documentation (my fault as much as anyone's). It is > much more easy to learn than Perl and also allows you to > exploit many useful packages. For my recent employer, I wrote > a Python mapscript app that used the Python Imaging Library > to combine raster layers and apply custom image enhancements > on-the-fly. I could have done this with Perl, perhaps, but > not with PHP. Even more obscure is the TclMapscript interface, which like Perl above, allows hooking/combining numerous libraries into your mapping application. A very powerfull combination is running mapserver/tclmapscript under tclhttpd, a powerfull web application server written in tcl. I believe though, that on WIN, tclmapscript binary is based on MS3.4 regards, nicolas boretos > > cheers, > Sean > From pigeonflight at yahoo.co.uk Tue Nov 19 04:24:20 2002 From: pigeonflight at yahoo.co.uk (=?iso-8859-1?q?David=20Bain?=) Date: Tue, 19 Nov 2002 12:24:20 +0000 (GMT) Subject: [mapserver-users] Any zope based mapscript product on the horizon Message-ID: <20021119122420.59394.qmail@web11705.mail.yahoo.com> Any zope based mapscript product on the Horizon. Based on the maturity of the code, how long would it take to create a zope implementation of the python mapscript? ===== David Bain Internet and Networking http://dbain.com - pigeonflight at yahoo.co.uk ================================================ __ http://www.globalhostdirectory.com __fT\ [Find the ideal web hosting provider] =============================================== __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com From assefa at dmsolutions.ca Tue Nov 19 06:20:47 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 19 Nov 2002 09:20:47 -0500 Subject: [mapserver-users] WMS layer is blank References: <3DD96EF4.3060406@nacse.org> <3DD9B200.6BC34F34@dmsolutions.ca> <3DD9D28C.2010301@nacse.org> Message-ID: <3DDA48BF.773B91E1@dmsolutions.ca> The correction has been done in mappdf.c. Please update to the latest version in CVS. Later, Dylan Keon wrote: > >>I'm trying to display a WMS layer (Terraserver DOQ) in a simple > >>interface. I've tried everything I can think of to get it to display, > >>but just get a blank image. The extent and epsg codes are correct. The > >>other layer in the mapfile (a shapefile) appears, but not the WMS layer. > >> > >>I compiled MapServer with --enable-debug...the WMS request URL printed > >>to the server log is good. I can copy that URL to a browser and the > >>correct DOQ image appears. The mapfile is below. Thanks for any help. > > > I was able to reproduce this problem with MapServer 3.6 and filed a bug > > in bugzilla: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=223 > > > > Note that we've been doing some work (with Frank W.) recently to improve > > WMS support in 3.7 and the layer does show up in 3.7... so it might be > > worth a try if you are able to compile the latest 3.7 from CVS. > > OK, thanks. I've been trying to compile 3.7 but run into a consistent > error (see below). Seems to be a problem with mappdf from libwww. I'm > compiling against libwww-5.4.0. Any suggestions? 3.6.3 compiles just > fine using exactly the same configuration. > > Thanks, > Dylan > > gcc -c -g -O2 -Wall -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA > -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR > -DUSE_WFS_LYR -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_THREAD > -I/usr/local/src/gd-1.8.4 -I/usr/local/src/proj-4.4.5/src > -I/usr/local/src/gdal-1.1.7/ogr/ogrsf_frmts > -I/usr/local/src/gdal-1.1.7/ogr -I/usr/local/src/gdal-1.1.7/ogr/../port > -I/usr/local/src/gdal-1.1.7/port -I/usr/local/src/gdal-1.1.7/core > -I/usr/local/src/gdal-1.1.7/ogr > -I/usr/local/src/gdal-1.1.7/ogr/ogrsf_frmts -I/usr/local/pgsql/include > -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H mappdf.c -o > mappdf.o > mappdf.c: In function `msFreeImagePDF': > mappdf.c:975: union has no member named `swf' > mappdf.c: In function `msDrawTextPDF': > mappdf.c:1027: warning: assignment makes integer from pointer without a cast > make: *** [mappdf.o] Error 1 -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From morissette at dmsolutions.ca Tue Nov 19 07:19:51 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 19 Nov 2002 10:19:51 -0500 Subject: [mapserver-users] Creating an abutter's list (was: Accessing Vertices of a Shape - PHP MapScript) References: Message-ID: <3DDA5697.1E7DC157@dmsolutions.ca> Kevin Flanders wrote: > > Is there a way of exploiting this functionality to create an abutter's list > function for municipal applications? If we can create a new shape that > mimics an existing/selected parcel, then can't we use that shape like we > would a user-defined query rectangle to intersect parcel features? > > I know there has been talk about abutters list before, but it doesn't seem > like there has been any resolution.... > If I understand well, the idea is to select all parcels that are adjacent to a selected parcel. It may not be possible to use QueryByShape for this because it looks for shapes that intersect or are located inside the shape you use for the query... so non-intersecting neighbors won't be selected. The best would be if we could create a new shape that is the parcel of interest with a buffer added around it and use that buffered parcel in a queryByShape(). Unfortunately for you there is no way to create such a vector buffer in MapServer. Another trick could be to sample points every few meters along the border of the parcel of interest and do a point query at every step with a tolerance of half the distance between the sampled points. You would compile a list of the returned parcel ids as you walk around the parcel and this would give you your list of abutters. I'll CC: to the list where others may have better suggestions. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From info at sosnetz.de Tue Nov 19 08:17:14 2002 From: info at sosnetz.de (=?iso-8859-15?q?Bj=F6rn=20Platzen?=) Date: Tue, 19 Nov 2002 17:17:14 +0100 Subject: [mapserver-users] how to show only visible polygons in the legend Message-ID: <200211191717.14863.info@sosnetz.de> Hello list. I just made my first small mapserver web-app using the html-templating way. Now my problem is, that I have a layer with 6 polygones and the customer wishes to see just these in the legend that are visible in the actual extend. To see what I mean, you might have a look at http://parkinfo.wuppertal.de. The application is already up and running. We are using MS 3.5 with ESRI-Shapefiles. btw.: Is there a way to generate a legend with more than one column (like in ArcView)? Thanks in advance, Bjoern -- small office solutions in der dong 33 - 47445 moers postfach 300101 - 47426 moers tel. (0 28 41) 3 68 73-0 fax (0 28 41) 3 68 73-29 info at sosnetz.de - http://www.sosnetz.de From steve.lime at dnr.state.mn.us Tue Nov 19 08:31:59 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Nov 2002 10:31:59 -0600 Subject: [mapserver-users] Creating an abutter's list (was: Accessing Vertices of a Shape - PHP MapScript) Message-ID: What we really should do is update the code for featurequery or shapequery to honor the TOLERANCE parameters. That is, if non-zero for a layer use a distance search instead of an intersection test. It would be expensive (you'd need to compute the distance between vertices and edges) but it would work. I think the bulk of the computational code already exists and would just need to be put in place. Another possibility that would probably work fine with parcel data since they tend to be regular in shape would be to take the bounding box for the parcel in question, expand it ever so slightly and do a query by rect. If anyone has a good buffering algorithm that would be a nice addition to MapScript. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 11/19/02 09:19AM >>> Kevin Flanders wrote: > > Is there a way of exploiting this functionality to create an abutter's list > function for municipal applications? If we can create a new shape that > mimics an existing/selected parcel, then can't we use that shape like we > would a user-defined query rectangle to intersect parcel features? > > I know there has been talk about abutters list before, but it doesn't seem > like there has been any resolution.... > If I understand well, the idea is to select all parcels that are adjacent to a selected parcel. It may not be possible to use QueryByShape for this because it looks for shapes that intersect or are located inside the shape you use for the query... so non-intersecting neighbors won't be selected. The best would be if we could create a new shape that is the parcel of interest with a buffer added around it and use that buffered parcel in a queryByShape(). Unfortunately for you there is no way to create such a vector buffer in MapServer. Another trick could be to sample points every few meters along the border of the parcel of interest and do a point query at every step with a tolerance of half the distance between the sampled points. You would compile a list of the returned parcel ids as you walk around the parcel and this would give you your list of abutters. I'll CC: to the list where others may have better suggestions. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From lfilak at medinaco.org Tue Nov 19 08:51:31 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Tue, 19 Nov 2002 11:51:31 -0500 Subject: [mapserver-users] Creating an abutter's list (was: Accessing Vertices of a Shape - PHP MapScript) Message-ID: <200211191650.gAJGo3X26623@yogi.medinaco.net> That's the best idea/work-a-round I've heard yet. Lowell F. The following message was sent by Daniel Morissette on Tue, 19 Nov 2002 10:19:51 -0500. > Kevin Flanders wrote: > > > > Is there a way of exploiting this functionality to create an abutter's list > > function for municipal applications? If we can create a new shape that > > mimics an existing/selected parcel, then can't we use that shape like we > > would a user-defined query rectangle to intersect parcel features? > > > > I know there has been talk about abutters list before, but it doesn't seem > > like there has been any resolution.... > > > > > If I understand well, the idea is to select all parcels that are > adjacent to a selected parcel. It may not be possible to use > QueryByShape for this because it looks for shapes that intersect or are > located inside the shape you use for the query... so non-intersecting > neighbors won't be selected. > > The best would be if we could create a new shape that is the parcel of > interest with a buffer added around it and use that buffered parcel in a > queryByShape(). Unfortunately for you there is no way to create such a > vector buffer in MapServer. > > Another trick could be to sample points every few meters along the > border of the parcel of interest and do a point query at every step with > a tolerance of half the distance between the sampled points. You would > compile a list of the returned parcel ids as you walk around the parcel > and this would give you your list of abutters. > > I'll CC: to the list where others may have better suggestions. > > Daniel > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ From ed at topozone.com Tue Nov 19 09:32:52 2002 From: ed at topozone.com (Ed McNierney) Date: Tue, 19 Nov 2002 12:32:52 -0500 Subject: [mapserver-users] Creating an abutter's list (was: Accessing Vertices of a Shape - PHP MapScript) Message-ID: <13858AA1A74F30419F319ACB66A9D1220194B8@host218.209.113.211.conversent.net> Folks - Daniel's proposal is for ADJACENT parcels, which tend to not be what's required in municipal applications. The typical "abutters list" requires all parcels that have any point within them lying within some distance (say, 300 feet) of any point within the subject parcel. In densely subdivided areas, this may include parcels that are several parcels away from the subject parcel. Unfortunately, the standard for such applications is pretty high. Accidentally omitting people from a list used for sending out legal notices can be a nightmare for the municipality, so the answers need to be quite accurate, and not "close enough". Steve, you need to get out East more often . Parcels outside of the Public Land Survey System states are anything BUT regular in shape! Buffering seems to be the only way to go..... - 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: Lowell Filak [mailto:lfilak at medinaco.org] Sent: Tuesday, November 19, 2002 11:52 AM To: Daniel Morissette; kevin at peoplegis.com Cc: mapserver-users Subject: Re: [mapserver-users] Creating an abutter's list (was: Accessing Vertices of a Shape - PHP MapScript) That's the best idea/work-a-round I've heard yet. Lowell F. The following message was sent by Daniel Morissette on Tue, 19 Nov 2002 10:19:51 -0500. > Kevin Flanders wrote: > > > > Is there a way of exploiting this functionality to create an abutter's list > > function for municipal applications? If we can create a new shape that > > mimics an existing/selected parcel, then can't we use that shape like we > > would a user-defined query rectangle to intersect parcel features? > > > > I know there has been talk about abutters list before, but it doesn't seem > > like there has been any resolution.... > > > > > If I understand well, the idea is to select all parcels that are > adjacent to a selected parcel. It may not be possible to use > QueryByShape for this because it looks for shapes that intersect or are > located inside the shape you use for the query... so non-intersecting > neighbors won't be selected. > > The best would be if we could create a new shape that is the parcel of > interest with a buffer added around it and use that buffered parcel in a > queryByShape(). Unfortunately for you there is no way to create such a > vector buffer in MapServer. > > Another trick could be to sample points every few meters along the > border of the parcel of interest and do a point query at every step with > a tolerance of half the distance between the sampled points. You would > compile a list of the returned parcel ids as you walk around the parcel > and this would give you your list of abutters. > > I'll CC: to the list where others may have better suggestions. > > Daniel > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ From kevinflanders at rcn.com Tue Nov 19 09:40:20 2002 From: kevinflanders at rcn.com (Kevin Flanders) Date: Tue, 19 Nov 2002 12:40:20 -0500 Subject: [mapserver-users] abutters lists.... Message-ID: It's great to see so many reactions to this abutters list need....and buffering seems to be the way to go. I totally agree with Ed that "close" is not going to be enough....especially for legal abutter's lists that are subject to questions. How would we go about addressing the code to open the door to this functionality? Kevin From morissette at dmsolutions.ca Tue Nov 19 09:47:01 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 19 Nov 2002 12:47:01 -0500 Subject: [mapserver-users] Creating an abutter's list (was: Accessing Vertices of a Shape - PHP MapScript) References: <13858AA1A74F30419F319ACB66A9D1220194B8@host218.209.113.211.conversent.net> Message-ID: <3DDA7915.1F80E84@dmsolutions.ca> Ed McNierney wrote: > > Daniel's proposal is for ADJACENT parcels, which tend to not be what's required in municipal applications. The typical "abutters list" requires all parcels that have any point within them lying within some distance (say, 300 feet) of any point within the subject parcel. In densely subdivided areas, this may include parcels that are several parcels away from the subject parcel. > Agreed that real buffering is the best solution. Steve's suggestion to honor the tolerance with the shape query would work too. As an interim solution, you could set the tolerance to 300 feet and then do your query using MS_MULTIPLE (in MapScript) and it will return you any parcel within 300 feet. You would still have to walk along the edge of the parcel of interest with a fairly small step value (a few feet max), and you should calculate a search tolerance (a little over 300 feet) to match the step value and make sure you catch *any* polygon within 300 feet. I agree that this would still return an approximation, but you should not miss any parcel if your step and search radius are set properly. In the worst cases you may end up with extra parcels that you would have to filter out. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From mbp at geomtech.com Tue Nov 19 10:09:44 2002 From: mbp at geomtech.com (Mark Phillips) Date: Tue, 19 Nov 2002 12:09:44 -0600 Subject: [mapserver-users] Creating an abutter's list (was: Accessing Vertices of a Shape - PHP MapScript) In-Reply-To: <3DDA5697.1E7DC157@dmsolutions.ca> (message from Daniel Morissette on Tue, 19 Nov 2002 10:19:51 -0500) References: <3DDA5697.1E7DC157@dmsolutions.ca> Message-ID: <200211191809.MAA04900@wisdom.geomtech.com> > ... > The best would be if we could create a new shape that is the parcel of > interest with a buffer added around it and use that buffered parcel in a > queryByShape(). Unfortunately for you there is no way to create such a > vector buffer in MapServer. > > Another trick could be to sample points every few meters along the > border of the parcel of interest and do a point query at every step with > a tolerance of half the distance between the sampled points. You would > ... Although both of these methods would probably work in most cases, it seems to me that in both cases if there are parcels that are close to but don't actually touch your given parcel, the algorithm could falsely include them in the result. With a judicious choice of buffer size or sample point density you could minimize the chances of this happening in practice, but it seems to me that the best solution would be to do an actual search through the shapefile for parcels that share an edge with the given one. In fact, this computation could be done once for the whole shapefile, producing a parcel adjacency graph that could be stored along with the shapefile and used for lightening fast adjacency lookups. Of course I'm speaking in pure algorithmic terms here, with no regard to what might be possible with existing functions in mapserver / mapscript, and I realize that part of the point is to find a way to do it with existing functions. If there is a way to do it with existing functions that is easy and fast and works in all practical cases, then perhaps there's no need to implement a new algorithm. If the new algorithm seems like a good idea, however, I could be interested in working on it. I've been playing with mapserver, shapelib, etc and would welcome a project that would give me a chance to dive in deeper. I also have a particular interest in municipal applications. [I imagine this function could be in a shared library that could be optionally loaded into mapscript applications, so as to avoid bloating the actual mapscript code itself.] Before diving in, however, I'd like to ask whether this sounds like a reasonable solution. Is there a better way? Are there hurdles or other problems with what I'm suggesting that I've overlooked? --Mark Mark Phillips @ Geometry Technologies LLC P.O. Box 1170 Black Mountain, NC 28711 828-664-1748 mbp at geomtech.com http://www.geomtech.com From cthomas at rand.org Tue Nov 19 10:54:14 2002 From: cthomas at rand.org (Thomas, Cord) Date: Tue, 19 Nov 2002 10:54:14 -0800 Subject: [mapserver-users] Creating an abutter's list (was: Accessing Vertices of a Shape - PHP MapScript) Message-ID: <2732967B446AFD4E9CDE5E37D642548B9D4F6D@smmail2.rand.org> Mark I think your idea sounds like a very good idea; however, as Ed points out, the need for most municipalities is to create an "abutters list" of people nearby (some distance, often 300 feet, sometimes more) for notification of change. In this example, the graph of adjoining parcels/properties would not be reasonable as such a graph would be necessary for all imaginable distances. That said, since most municipalities require a standard set of distances, say 100, 300, 500 feet, this graph could be developed by simply interating through distance searches for all points in the property to all points in all other properties and producing N graphs for N distance sets. And, as you point out, this could then be used in a module that would return the graph results for the given distance very quickly and accurately. The module could include 2 methods - buildGraph (distance) and findAbutters (propertyHash, distance) out Hash. Cord -----Original Message----- From: Mark Phillips [mailto:mbp at geomtech.com] Sent: Tuesday, November 19, 2002 10:10 AM To: morissette at dmsolutions.ca Cc: kevin at peoplegis.com; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Creating an abutter's list (was: Accessing Vertices of a Shape - PHP MapScript) > ... > The best would be if we could create a new shape that is the parcel of > interest with a buffer added around it and use that buffered parcel in a > queryByShape(). Unfortunately for you there is no way to create such a > vector buffer in MapServer. > > Another trick could be to sample points every few meters along the > border of the parcel of interest and do a point query at every step with > a tolerance of half the distance between the sampled points. You would > ... Although both of these methods would probably work in most cases, it seems to me that in both cases if there are parcels that are close to but don't actually touch your given parcel, the algorithm could falsely include them in the result. With a judicious choice of buffer size or sample point density you could minimize the chances of this happening in practice, but it seems to me that the best solution would be to do an actual search through the shapefile for parcels that share an edge with the given one. In fact, this computation could be done once for the whole shapefile, producing a parcel adjacency graph that could be stored along with the shapefile and used for lightening fast adjacency lookups. Of course I'm speaking in pure algorithmic terms here, with no regard to what might be possible with existing functions in mapserver / mapscript, and I realize that part of the point is to find a way to do it with existing functions. If there is a way to do it with existing functions that is easy and fast and works in all practical cases, then perhaps there's no need to implement a new algorithm. If the new algorithm seems like a good idea, however, I could be interested in working on it. I've been playing with mapserver, shapelib, etc and would welcome a project that would give me a chance to dive in deeper. I also have a particular interest in municipal applications. [I imagine this function could be in a shared library that could be optionally loaded into mapscript applications, so as to avoid bloating the actual mapscript code itself.] Before diving in, however, I'd like to ask whether this sounds like a reasonable solution. Is there a better way? Are there hurdles or other problems with what I'm suggesting that I've overlooked? --Mark Mark Phillips @ Geometry Technologies LLC P.O. Box 1170 Black Mountain, NC 28711 828-664-1748 mbp at geomtech.com http://www.geomtech.com From Rich at greenwoodmap.com Tue Nov 19 11:05:57 2002 From: Rich at greenwoodmap.com (Richard Greenwood) Date: Tue, 19 Nov 2002 12:05:57 -0700 Subject: [mapserver-users] Creating an abutter's list (was: Accessing Vertices of a Shape - PHP MapScript) In-Reply-To: <3DDA5697.1E7DC157@dmsolutions.ca> References: Message-ID: <5.1.1.6.0.20021119115507.00a968d0@mail.GreenwoodMap.com> I've used a buffered polygon to select adjoining polygons in non-topological GIS software with good success. One quick way to approximate a buffer would be to scale the source polygon around its centroid by a small factor, such as 1.1. I'm not that hot of a PHP programmer to offer you the code in PHP, but the basic polygon scaling algorithm is to walk the vertex list and calculate the vector from the centroid to the vertex, then created the new scaled vertex from the vector_length * scale_factor. Or maybe just add a fixed amount to the length of the vector. Rich At 10:19 AM 11/19/2002 -0500, you wrote: >Kevin Flanders wrote: > > > > Is there a way of exploiting this functionality to create an abutter's list > > function for municipal applications? If we can create a new shape that > > mimics an existing/selected parcel, then can't we use that shape like we > > would a user-defined query rectangle to intersect parcel features? > > > > I know there has been talk about abutters list before, but it doesn't seem > > like there has been any resolution.... > > > > >If I understand well, the idea is to select all parcels that are >adjacent to a selected parcel. It may not be possible to use >QueryByShape for this because it looks for shapes that intersect or are >located inside the shape you use for the query... so non-intersecting >neighbors won't be selected. > >The best would be if we could create a new shape that is the parcel of >interest with a buffer added around it and use that buffered parcel in a >queryByShape(). Unfortunately for you there is no way to create such a >vector buffer in MapServer. > >Another trick could be to sample points every few meters along the >border of the parcel of interest and do a point query at every step with >a tolerance of half the distance between the sampled points. You would >compile a list of the returned parcel ids as you walk around the parcel >and this would give you your list of abutters. > >I'll CC: to the list where others may have better suggestions. > >Daniel >-- >------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ >------------------------------------------------------------ Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From kevinflanders at rcn.com Tue Nov 19 11:07:12 2002 From: kevinflanders at rcn.com (Kevin Flanders) Date: Tue, 19 Nov 2002 14:07:12 -0500 Subject: [mapserver-users] abutters lists Message-ID: While graphs sounds feasible and fast, wouldn't it be wiser to focus on the buffer approach which would be on the fly, and could be implemented to work with any dataset and user chosen distance? This would open up the opportunity to do route buffering (ie. find abutters to a street or street segment, etc.). Kevin From pramsey at refractions.net Tue Nov 19 11:14:12 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 19 Nov 2002 11:14:12 -0800 Subject: [mapserver-users] Creating an abutter's list (was: Accessing Vertices of a Shape - PHP MapScript) References: <13858AA1A74F30419F319ACB66A9D1220194B8@host218.209.113.211.conversent.net> <3DDA7915.1F80E84@dmsolutions.ca> Message-ID: <3DDA8D84.2030909@refractions.net> Why not use PostGIS as your data source and simply test on Distance(the_geom,my_geom) < 300 ? As the mapserver home page says, "mapserver is not a full-featured GIS system, nor does it aspire to be". Incidentally, when GEOS (geos.refractions.net) is integrated with PostGIS (RSN, RSN, RSN) you will be able to do the exact topological test for edge adjacency. P. Daniel Morissette wrote: > Ed McNierney wrote: > >>Daniel's proposal is for ADJACENT parcels, which tend to not be what's required in municipal applications. The typical "abutters list" requires all parcels that have any point within them lying within some distance (say, 300 feet) of any point within the subject parcel. In densely subdivided areas, this may include parcels that are several parcels away from the subject parcel. >> > > > Agreed that real buffering is the best solution. Steve's suggestion to > honor the tolerance with the shape query would work too. > > As an interim solution, you could set the tolerance to 300 feet and then > do your query using MS_MULTIPLE (in MapScript) and it will return you > any parcel within 300 feet. You would still have to walk along the edge > of the parcel of interest with a fairly small step value (a few feet > max), and you should calculate a search tolerance (a little over 300 > feet) to match the step value and make sure you catch *any* polygon > within 300 feet. > > I agree that this would still return an approximation, but you should > not miss any parcel if your step and search radius are set properly. In > the worst cases you may end up with extra parcels that you would have to > filter out. > > Daniel -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From pagurekd at agr.gc.ca Tue Nov 19 12:59:27 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Tue, 19 Nov 2002 15:59:27 -0500 Subject: [mapserver-users] Rosa applet and Mapserver queries Message-ID: Hi all, I am a bit confused about mapserver queries and rosa applet. I have one application that works perfectly using the js_action part of rosa. It pops open a new window with query results and then I form a new URL to then go back to the opener window and "refresh" the map with a highlighted polygon. I am working on another application now and I don't really want to have to use js_action... it works when I use the mapserver mode=query but not mode=nquery. My map file contains a new url (an ftp url, so a download dialog appears on a query) that should open when a polygon is queried. This is working with mode=query, but then when I go back to the original page, and try to zoom in or whatever, it doesn't work because the mode is still on query, even though I've selected the zoom in button. the error is:mapserv(): Web application error. Query mode needs a point, imgxy and mapxy are not set. I hope i've explained this well... maybe someone can give me some examples of how they've done queries without using JS_ACTION? Thanks, D. Pagurek From gis at farmvilleva.com Tue Nov 19 13:01:02 2002 From: gis at farmvilleva.com (John M. Duggan, LSIT) Date: Tue, 19 Nov 2002 16:01:02 -0500 Subject: [mapserver-users] See through layers Message-ID: <002201c2900e$c5920c20$9cf619d0@JMDSurvey> Hi all, I'm still trying to refine my map server, and have come to a point where I would like to make a layer of polygons that are filled but still able to see the layers underneath it? Any solution would be most helpful Thanks, John M. Duggan LSIT gis at farmvilleva.com http://www.farmvilleva.com (434) 392-3333 -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Tue Nov 19 13:14:09 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Nov 2002 15:14:09 -0600 Subject: [mapserver-users] abutters lists.... Message-ID: Ed: Hey, it was worth a shot. Everything is square here. I see two needs. One for a buffering algorithm (I've looked and haven't found much of anything.) The other is for a process to compute the distance between arbitrary shapes. The point to vector code already exists. Anyone want to help? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> kevinflanders at rcn.com 11/19/02 11:40AM >>> It's great to see so many reactions to this abutters list need....and buffering seems to be the way to go. I totally agree with Ed that "close" is not going to be enough....especially for legal abutter's lists that are subject to questions. How would we go about addressing the code to open the door to this functionality? Kevin From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Tue Nov 19 14:20:38 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Tue, 19 Nov 2002 17:20:38 -0500 Subject: [mapserver-users] See through layers Message-ID: <7CDD7B94357FD5119E800002A537C46E230481@s5-ccr-r1.ccrs.nrcan.gc.ca> Look into using the TRANSPARENCY keyword, as documented in the Layer Object. J.F. -----Original Message----- From: John M. Duggan, LSIT [mailto:gis at farmvilleva.com] Sent: Tuesday, November 19, 2002 4:01 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] See through layers Hi all, I'm still trying to refine my map server, and have come to a point where I would like to make a layer of polygons that are filled but still able to see the layers underneath it? Any solution would be most helpful Thanks, John M. Duggan LSIT gis at farmvilleva.com http://www.farmvilleva.com (434) 392-3333 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhv at cape.com Tue Nov 19 15:00:45 2002 From: nhv at cape.com (Norman Vine) Date: Tue, 19 Nov 2002 18:00:45 -0500 Subject: [mapserver-users] abutters lists.... References: Message-ID: <001401c2901f$7ed55010$0836ba8c@sfdev3> Steve Lime writes: > > I see two needs. One for a buffering algorithm (I've looked and haven't > found much of anything.) > > The other is for a process to compute the distance between arbitrary > shapes. Here is distance from polygon to a line code that should extend to distance from polygon to polygon easily http://geometryalgorithms.com/Archive/algorithm_0112/algorithm_0112.htm Norman From Antti.Roppola at brs.gov.au Tue Nov 19 15:15:03 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Wed, 20 Nov 2002 10:15:03 +1100 Subject: [mapserver-users] abutters lists Message-ID: <4D6E6CCBC9CED61192720060B06B3DD7C3FB42@ACTMAIL2> This all relates to stuff I have been pondering... One question I have is just how much does .shp constrain us doing these sorts of operations? Once upon a time, I wrote some code to generate adjacency matrices for forest compartments. Doing this in Arc/INFO was great, the LPOLY,RPOLY topology meant I could do the whole thing in a couple of database queries. Shape OTOH will let you have "adjacent" boundaries that don't quite touch, or indeed overlap, which makes these kinds of operations a bit more tricky. Point being that the format you store spatial data in influences what you can do with said spatial data. This is where I see things like PostGIS fitting in. Rather than trying to do it all inside Mapserver, would it be more sensible to expect your feature source to do these sorts of operations for you? In this case, all Mapserver would ned to know is how to display the feature returned. Cheers, Antti -----Original Message----- From: Kevin Flanders [mailto:kevinflanders at rcn.com] Sent: Wednesday, 20 November 2002 6:07 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] abutters lists While graphs sounds feasible and fast, wouldn't it be wiser to focus on the buffer approach which would be on the fly, and could be implemented to work with any dataset and user chosen distance? This would open up the opportunity to do route buffering (ie. find abutters to a street or street segment, etc.). Kevin From woodbri at swoodbridge.com Tue Nov 19 15:47:44 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 19 Nov 2002 18:47:44 -0500 Subject: [mapserver-users] abutters lists.... In-Reply-To: Message-ID: <3DDA8750.308.6E168CF2@localhost> The buffering algorithm is tricky, but an interesting problem. Growing the vectors from the centriod only works for convex polygons, it will fail for concave polygons like: +---------+ +---------+ | | | | | +------+ | | | +----------------------------+ The right way to do this, I think, is to walk around the polygon and construct offsets, then interest the offsets and re-chain the segments into a new polygon, you also have to eliminate loops on the new polygon caused by the fact that the offset can eliminate some features from the new polygon. For example with a large enough offset the notch in the above would be eliminated from the topology of the new offset polygon changing it from 6 vertices to 4 vertices. -Steve W. On 19 Nov 2002 at 15:14, Steve Lime wrote: > Ed: Hey, it was worth a shot. Everything is square here. > > I see two needs. One for a buffering algorithm (I've looked and > haven't found much of anything.) > > The other is for a process to compute the distance between arbitrary > shapes. The point to vector code already exists. > > Anyone want to help? > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> kevinflanders at rcn.com 11/19/02 11:40AM >>> > It's great to see so many reactions to this abutters list need....and > buffering seems to be the way to go. I totally agree with Ed that > "close" is not going to be enough....especially for legal abutter's > lists that are subject to questions. > > How would we go about addressing the code to open the door to this > functionality? > > > > Kevin > > > From keon at nacse.org Tue Nov 19 16:05:42 2002 From: keon at nacse.org (Dylan Keon) Date: Tue, 19 Nov 2002 16:05:42 -0800 Subject: [mapserver-users] WMS layer is blank References: <3DD96EF4.3060406@nacse.org> <3DD9B200.6BC34F34@dmsolutions.ca> Message-ID: <3DDAD1D6.2080809@nacse.org> Daniel Morissette wrote: > I was able to reproduce this problem with MapServer 3.6 and filed a > bug in bugzilla: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=223 > Note that we've been doing some work (with Frank W.) recently to > improve WMS support in 3.7 and the layer does show up in 3.7... so it > might be worth a try if you are able to compile the latest 3.7 from > CVS. I successfully compiled the latest 3.7 CVS version (thanks Frank, Assefa, and Daniel), and can report that this version is able to display WMS layers retrieved from terraservice. However, now I seem to be running into the 24-bit vs 8-bit problem (I think). The DOQ image retrieved directly into the browser looks great, but the image retrieved and rendered by MapServer looks pretty bad. Please have a look at http://www.nacse.org/~keon/temp/wms to see what I mean. Ignoring the issues about 24-bit file size vs. 8-bit, etc. for the moment, any suggestions on how to get the good-looking image in my interface? :-) I'm using gd 1.8.4, would switching to 2.0.7 help? Thanks, Dylan -- ************************************************ Dylan Keon GIS/Database Research Specialist Northwest Alliance for Computational Science and Engineering (NACSE) Oregon State University Corvallis, OR 97331 keon at nacse.org (541) 737-6608 ************************************************ From nhv at cape.com Tue Nov 19 17:15:44 2002 From: nhv at cape.com (Norman Vine) Date: Tue, 19 Nov 2002 20:15:44 -0500 Subject: [mapserver-users] abutters lists.... References: <3DDA8750.308.6E168CF2@localhost> Message-ID: <00db01c29032$5b385c20$0836ba8c@sfdev3> woodbri at swoodbridge.com writes: > > The buffering algorithm is tricky, but an interesting problem. > Growing the vectors from the centriod only works for convex polygons, > it will fail for concave polygons like: > > +---------+ +---------+ > | | | | > | +------+ | > | | > +----------------------------+ > > The right way to do this, I think, is to walk around the polygon and > construct offsets, then interest the offsets and re-chain the > segments into a new polygon, you also have to eliminate loops on the > new polygon caused by the fact that the offset can eliminate some > features from the new polygon. For example with a large enough offset > the notch in the above would be eliminated from the topology of the > new offset polygon changing it from 6 vertices to 4 vertices. or another way of saying the 'same' draw a circle of the desired radius around each point then the projection of the original linesegments out to the corresponding tangent vectors of the circles and the outer 'arcs' of said circles are the segments of the 'buffer' polygon Cheers Norman From woodbri at swoodbridge.com Tue Nov 19 18:20:30 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 19 Nov 2002 21:20:30 -0500 Subject: [mapserver-users] abutters lists.... In-Reply-To: <00db01c29032$5b385c20$0836ba8c@sfdev3> Message-ID: <3DDAAB1E.21354.6EA268D0@localhost> Yes, that is exactly right, if not better said. :) After doing some research on the web, this looks like a potential candidate for code that might do what we need. This problem has been researched extensively for doing NC machining. Anyway, part way down this page: http://www.cosy.sbg.ac.at/~held/projects/vroni/vroni.html is a link to email the author for info on how to get his ANSI C source and to discuss usage issues if any. The 6th example down the page shows offset contours of a very complex polygon. -Steve W. On 19 Nov 2002 at 20:15, Norman Vine wrote: > woodbri at swoodbridge.com writes: > > > > The buffering algorithm is tricky, but an interesting problem. > > Growing the vectors from the centriod only works for convex > > polygons, it will fail for concave polygons like: > > > > +---------+ +---------+ > > | | | | > > | +------+ | > > | | > > +----------------------------+ > > > > The right way to do this, I think, is to walk around the polygon and > > construct offsets, then interest the offsets and re-chain the > > segments into a new polygon, you also have to eliminate loops on the > > new polygon caused by the fact that the offset can eliminate some > > features from the new polygon. For example with a large enough > > offset the notch in the above would be eliminated from the topology > > of the new offset polygon changing it from 6 vertices to 4 vertices. > > or another way of saying the 'same' > > draw a circle of the desired radius around each point > > then the projection of the original linesegments out to the > corresponding tangent vectors of the circles and the outer > 'arcs' of said circles are the segments of the 'buffer' polygon > > Cheers > > Norman > > From mapserver at peligroso.gaiaenv.com Tue Nov 19 18:24:35 2002 From: mapserver at peligroso.gaiaenv.com (Mapserver account for mailing list) Date: Tue, 19 Nov 2002 19:24:35 -0700 (MST) Subject: [mapserver-users] Projection and queries - msQueryByPoint(): Search returned no results Message-ID: <200211200224.gAK2OZBk005867@peligroso.gaiaenv.com> Hi all, I am having difficulties with, what I believe to be, Proj4 inside MS. ~~~~~~~ SETUP ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ (these are the relevant packages) Linux MS 3.6.3 proj-4.4.5 gd-2.0.4 ~~~~~~~ SITUATION ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ My map object contains the following projection object: PROJECTION "proj=tmerc" "lat_0=50.000000000" "lon_0=-96.000000000" "k=0.998000" "x_0=3000000.000" "y_0=1000000.000" "ellps=GRS80" "units=m" END I have narrowed my map file to two single layers. The layer I am querying contains the following projection definition: PROJECTION "proj=latlong" "ellps=GRS80" END I am attempting to execute a query on a layer object using QLAYER CGI directive. ~~~~~~~ PROBLEM~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ I believe I am receiving "msQueryByPoint(): Search returned no results" unjustly. The same polygon can return successful results sometimes, and not others. I suppose I would need to pass the actual coords (the same pixel location) to make sure it is not purely random. ~~~~~~~ SLEUTHING~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ 1) Checked the archived mailing list a. saw some tolerance stuff and played with the settings (both TOLERANCE and TOLERANCEUNITS) b. No dice 2) Stripped out projection object and definition in the layer object a. QUERY WORKS!!!! I have deduced the issue lies with my projecting. Anyone else come across this issue? Yes, the Proj4 lib pointer reside in /etc/ld.so.conf and the version in lib shows libproj.so.0.3.1. I needed to add the install path /usr/local/bin/proj to /etc/ld.so.conf prior to getting proj to work (this didn't seem to make senseand may not have made any difference as we were heavily dicking with SDE at the time). It seems like the image coordinates are not being transformed correctly. Thanks for any insight. Cheers, Jim From warmerdam at pobox.com Tue Nov 19 19:00:38 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 19 Nov 2002 22:00:38 -0500 Subject: [mapserver-users] WMS layer is blank References: <3DD96EF4.3060406@nacse.org> <3DD9B200.6BC34F34@dmsolutions.ca> <3DDAD1D6.2080809@nacse.org> Message-ID: <3DDAFAD6.5060309@pobox.com> Dylan Keon wrote: > I successfully compiled the latest 3.7 CVS version (thanks Frank, > Assefa, and Daniel), and can report that this version is able to display > WMS layers retrieved from terraservice. > > However, now I seem to be running into the 24-bit vs 8-bit problem (I > think). The DOQ image retrieved directly into the browser looks great, > but the image retrieved and rendered by MapServer looks pretty bad. > Please have a look at http://www.nacse.org/~keon/temp/wms to see what I > mean. Ignoring the issues about 24-bit file size vs. 8-bit, etc. for > the moment, any suggestions on how to get the good-looking image in my > interface? :-) I'm using gd 1.8.4, would switching to 2.0.7 help? Dylan, If you upgrade to GD 2.x then you can use MapServer 24-bit mode. You would also need a declaration something like this in your mapfile: IMAGETYPE png24 OUTPUTFORMAT NAME png24 DRIVER "GDAL/PNG" IMAGEMODE RGB TRANSPARENT OFF END Actually, returning JPEG data (like the terraserver) might be much better: IMAGETYPE jpeg24 OUTPUTFORMAT NAME jpeg24 DRIVER "GDAL/JPEG" IMAGEMODE RGB TRANSPARENT OFF END I have also been considering implementing a dithering scheme in MapServer for converting 24bit to 8bit. Would you be willing to test it if I implemented it? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From john_mapserver at hotmail.com Tue Nov 19 19:26:02 2002 From: john_mapserver at hotmail.com (John Newton) Date: Tue, 19 Nov 2002 19:26:02 -0800 Subject: [mapserver-users] abutters lists.... References: <3DDA8750.308.6E168CF2@localhost> Message-ID: I have been researching buffering for a few weeks, and found a partial algorithm described in the following paper: http://www.cg.tuwien.ac.at/studentwork/CESCG99/SKrivograd/ However, to optimize for large number of vertices, it would require the ability to build a spatial index on the fly. (The end of the paper refers to it as "plane subdivision".) By "large number of vertices", I mean more that 100-500 (your mileage may vary). I am interested in buffering polygons with potentially 1k to 10k vertices, which would require some sort of index (quad-tree?). Has anyone seen an OpenSource quad tree or r-tree? -john ----- Original Message ----- From: To: "Steve Lime" ; ; ; Sent: Tuesday, November 19, 2002 3:47 PM Subject: Re: [mapserver-users] abutters lists.... > The buffering algorithm is tricky, but an interesting problem. > Growing the vectors from the centriod only works for convex polygons, > it will fail for concave polygons like: > > +---------+ +---------+ > | | | | > | +------+ | > | | > +----------------------------+ > > The right way to do this, I think, is to walk around the polygon and > construct offsets, then interest the offsets and re-chain the > segments into a new polygon, you also have to eliminate loops on the > new polygon caused by the fact that the offset can eliminate some > features from the new polygon. For example with a large enough offset > the notch in the above would be eliminated from the topology of the > new offset polygon changing it from 6 vertices to 4 vertices. > > -Steve W. > > On 19 Nov 2002 at 15:14, Steve Lime wrote: > > > Ed: Hey, it was worth a shot. Everything is square here. > > > > I see two needs. One for a buffering algorithm (I've looked and > > haven't found much of anything.) > > > > The other is for a process to compute the distance between arbitrary > > shapes. The point to vector code already exists. > > > > Anyone want to help? > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> kevinflanders at rcn.com 11/19/02 11:40AM >>> > > It's great to see so many reactions to this abutters list need....and > > buffering seems to be the way to go. I totally agree with Ed that > > "close" is not going to be enough....especially for legal abutter's > > lists that are subject to questions. > > > > How would we go about addressing the code to open the door to this > > functionality? > > > > > > > > Kevin > > > > > > > From warmerdam at pobox.com Tue Nov 19 21:37:15 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 20 Nov 2002 00:37:15 -0500 Subject: [mapserver-users] 24bit to 8 bit with dithering Message-ID: <3DDB1F8B.2050705@pobox.com> Folks, I have completed implementation of 24bit to 8bit dithering in the draw-from GDAL code. It turns out this requires the very latest GDAL (ie. build from CVS later than right now), so I require the ENABLE_DITHER macro to be added to the makefile. Dithering is enabled if the PROCESSING keyword is used with the layer to set the "DITHER=ON" directive. Currently the dithering uses the existing color table (that created by the usual color cube logic), so results are still questionable, but better than they were. I am also interested in incorporating optimal colortable selection at some point. I would also note that the approach is pretty cpu intensive, and there is a fair overhead per raster file processed, so using it for many 24bit "tiles" from separate files in a single draw would be the worst case. This technlogy is not appropriate for servers wanting to maximize performance. The following is an example of using the new support: NAME TEST STATUS ON SIZE 400 300 EXTENT 0 0 400 300 IMAGECOLOR 255 255 0 PROJECTION "proj=utm" "zone=12" "datum=WGS84" END IMAGETYPE png8_t OUTPUTFORMAT NAME png8_t DRIVER "GD/PNG" IMAGEMODE PC256 TRANSPARENT OFF END LAYER NAME grey TYPE raster STATUS default DATA data/pct22.tif PROJECTION "proj=utm" "zone=12" "ellps=WGS84" "towgs84=1,0,0" END END LAYER NAME rgb TYPE raster STATUS default DATA data/rgb.tif OFFSITE 111 222 111 PROCESSING "DITHER=ON" PROJECTION "proj=utm" "zone=12" "ellps=WGS84" "towgs84=1,0,0" END END END # of map file The output without dithering as a colormapped png file (2.8K) is: http://pobox.com/~warmerdam/rgb_overlay_res_to8bit.png With dithering (18K) is: http://pobox.com/~warmerdam/rgb_overlay_res_to8bit_dithered.png Anyone brave enough to build the latest GDAL and MapServer 3.7 from CVS are welcome to contact me for help in using the new dithering option. 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 pramsey at refractions.net Tue Nov 19 21:58:30 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 19 Nov 2002 21:58:30 -0800 Subject: [mapserver-users] abutters lists.... In-Reply-To: References: <3DDA8750.308.6E168CF2@localhost> Message-ID: <1037771910.3ddb2486cdc4a@www> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From pradeepkumar at infotech.stph.net Tue Nov 19 23:09:13 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Wed, 20 Nov 2002 12:39:13 +0530 Subject: [mapserver-users] Help needed MapServer Visual C++ 6.0 Project Workspace Message-ID: Dear Deb, Hello, I am compiling mapserver in vc++ and landed with the same kind of errors that you have reported, please refer the mail below, I have also tried the reply sent to your mail by altering the project settings as suggested by "j1mm" and still I found the following error "Command line error D2004 : '/U' requires an argument", can you please tell me how to solve this problem. If possible Can u Please give me steps to configure the VC++ workspace for mapserver step by step. Thanks for your time Pradeep j1mmm at hotmail.com wrote on VC, project menu and click setting C++ tab, category: Preprocessor in undefine sysbols -- put ex. -DUSE_JPEG -DUSE_GD_GIF and all your needed predefine in addtional include directory -- put directory of needed OBJ, ex. -I./gd-1.8.4 -I./tiff-v3.5.6-beta/libtiff -I./jpeg-6b -I./regex-0.12 -I. /gdal-1.1.5/ogr/ogrsf_frmts -I./gdal-1.1.5/ogr -I./gdal-1.1.5/ogr/../port Link tab, category Input in additional library path -- put your needed Lib path,ex /gd-1.8.4/gd.lib ./jpeg-6b/jpeg.lib ./lpng1011/libpng.lib ./zlib-1.1.3/zlib.lib ./freetype-2.0.1/obj/freetype.lib all these vary setting is exist in Makefile.vc hope useful j1mmm at hotmail.com ----- Original Message ----- From: To: Sent: Saturday, November 17, 2001 9:14 PM Subject: [mapserver-users] MapServer Visual C++ 6.0 Project Workspace. > Hi, > > Has anbody tried compiling Mapserver 3.5 using Visual C++ 6.0 . Can you > please provide me with the workspace file. > Am getting the following error when i try to compile > > Linking... > mapserv.obj : error LNK2005: _main already defined in legend.obj > scalebar.obj : error LNK2005: _main already defined in legend.obj > shp2img.obj : error LNK2005: _main already defined in legend.obj > shpindex.obj : error LNK2005: _main already defined in legend.obj > shptree.obj : error LNK2005: _main already defined in legend.obj > sortshp.obj : error LNK2005: _main already defined in legend.obj > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageDestroy > maputil.obj : error LNK2001: unresolved external symbol _gdImageDestroy > scalebar.obj : error LNK2001: unresolved external symbol _gdImageDestroy > shp2img.obj : error LNK2001: unresolved external symbol _gdImageDestroy > legend.obj : error LNK2001: unresolved external symbol _gdImageDestroy > maplegend.obj : error LNK2001: unresolved external symbol _gdImageDestroy > mapscale.obj : error LNK2001: unresolved external symbol _gdImageDestroy > mapserv.obj : error LNK2001: unresolved external symbol _gdImageDestroy > mapfile.obj : error LNK2001: unresolved external symbol > _gdImageColorAllocate > mapraster.obj : error LNK2001: unresolved external symbol > _gdImageColorAllocate > mapsymbol.obj : error LNK2001: unresolved external symbol > _gdImageColorAllocate > mapxbase.obj : error LNK2001: unresolved external symbol _strcasecmp > shptree.obj : error LNK2001: unresolved external symbol _strcasecmp > mapfile.obj : error LNK2001: unresolved external symbol _strcasecmp > maphash.obj : error LNK2001: unresolved external symbol _strcasecmp > mapserv.obj : error LNK2001: unresolved external symbol _strcasecmp > maputil.obj : error LNK2001: unresolved external symbol _strcasecmp > mapfile.obj : error LNK2001: unresolved external symbol _regfree > mapparser.obj : error LNK2001: unresolved external symbol _regfree > mapserv.obj : error LNK2001: unresolved external symbol _regfree > mapfile.obj : error LNK2001: unresolved external symbol _regexec > mapparser.obj : error LNK2001: unresolved external symbol _regexec > mapserv.obj : error LNK2001: unresolved external symbol _regexec > maputil.obj : error LNK2001: unresolved external symbol _regexec > mapfile.obj : error LNK2001: unresolved external symbol _regcomp > mapparser.obj : error LNK2001: unresolved external symbol _regcomp > mapserv.obj : error LNK2001: unresolved external symbol _regcomp > maputil.obj : error LNK2001: unresolved external symbol _regcomp > maplabel.obj : error LNK2001: unresolved external symbol _gdFontGiant > maplabel.obj : error LNK2001: unresolved external symbol _gdFontLarge > maplabel.obj : error LNK2001: unresolved external symbol _gdFontMediumBold > maplabel.obj : error LNK2001: unresolved external symbol _gdFontSmall > maplabel.obj : error LNK2001: unresolved external symbol _gdFontTiny > maplabel.obj : error LNK2001: unresolved external symbol _gdImageString > maplegend.obj : error LNK2001: unresolved external symbol _gdImageCreate > mapscale.obj : error LNK2001: unresolved external symbol _gdImageCreate > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageCreate > maputil.obj : error LNK2001: unresolved external symbol _gdImageCreate > maplegend.obj : error LNK2001: unresolved external symbol > _gdImageColorTransparent > mapscale.obj : error LNK2001: unresolved external symbol > _gdImageColorTransparent > mapsymbol.obj : error LNK2001: unresolved external symbol > _gdImageColorTransparent > maputil.obj : error LNK2001: unresolved external symbol > _gdImageColorTransparent > mapprimitive.obj : error LNK2001: unresolved external symbol > _gdImageSetPixel > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetPixel > mapprimitive.obj : error LNK2001: unresolved external symbol _gdImageLine > mapscale.obj : error LNK2001: unresolved external symbol _gdImageLine > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageLine > mapraster.obj : error LNK2001: unresolved external symbol _gdImageRectangle > mapscale.obj : error LNK2001: unresolved external symbol _gdImageRectangle > mapraster.obj : error LNK2001: unresolved external symbol > _gdImageFilledRectangle > mapscale.obj : error LNK2001: unresolved external symbol > _gdImageFilledRectangle > mapserv.obj : error LNK2001: unresolved external symbol _strncasecmp > sortshp.obj : error LNK2001: unresolved external symbol _strncasecmp > mapsymbol.obj : error LNK2001: unresolved external symbol > _gdImageFilledPolygon > mapsymbol.obj : error LNK2001: unresolved external symbol > _gdImageFillToBorder > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageArc > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetTile > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImagePolygon > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageCopy > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetStyle > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetBrush > maputil.obj : error LNK2001: unresolved external symbol _gdImageInterlace > shpindex.obj : error LNK2001: unresolved external symbol _SHPClose > shpindex.obj : error LNK2001: unresolved external symbol _SHPReadBounds > shpindex.obj : error LNK2001: unresolved external symbol _SHPGetInfo > shpindex.obj : error LNK2001: unresolved external symbol _SHPOpen > Debug/mapserver.exe : fatal error LNK1120: 32 unresolved externals > Error executing link.exe. > > mapserver.exe - 73 error(s), 109 warning(s) > > > Debasish Sahu. > Senior Software Engineer > RMS India. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pradeepkumar at infotech.stph.net Tue Nov 19 23:08:44 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Wed, 20 Nov 2002 12:38:44 +0530 Subject: [mapserver-users] Design Documents Message-ID: Message David, Any news from you about the programmatic flow and Architectural Design of Mapserver? I have been eagerly waiting for your mail. Kind Regards Pradeep Proj Lead InfoTech Enterprises Ltd. Hyderabad India. -----Original Message----- From: David Barclay [mailto:david.barclay at ngis.com.au] Sent: Friday, November 08, 2002 6:35 AM To: 'pradeepkumar at infotech.stph.net' Subject: RE: [mapserver-users] Design Documents Heya Pradeep, Will see what I can find for you over the weekend, I will be able to elaborate on: The programmatic flow of MapServer. Architectural Design of Mapserver. External Library information is a bit limited at this stage, but a bit of scouring on the weekend should get you enough to get you on level pegging. What are the functions that need to be exposed as Interfaces in COM ( A Guideline). <--- Interesting really, depends on your project requirements, are you looking to develop a intensive COM DLL or an resource economic DLL with specific functions in mind? If the latter you will need to specify what sort of functionality you are hoping to achieve and from that I can map the required interfaces. You may want to also have a look at the DM Solutions "Mapscript" add -on for mapserver that provides PHP access to the API for ideas on how to get started with your COM model. I'm also a registered user of "Artifact" -----> like Copernic for programmers http://www.artifactsoftware.net/ username: lancaster We've been trying to get mapserver launched in here so a wider development community has input on mapserver development. But otherwise, if you get stuck on any IT related issue, the guys and girls in here will generally help you out. Well I'd better get cracking now, but will get back to you with the info shortly. I'd be interested to hear about any developments you make in regard to COM development for mapserver. We kinda went the other way on it when .NET was released but would be able to apply it to some inhouse projects for testing/feedback and the like. Kindest regards, ____________________________________________ DAVID BARCLAY Web Architect/Developer david.barclay at ngis.com.au ____________________________________________ _ NGIS Australia National Geographic Information Systems Phone: (08) 9355 2444 Fax: (08) 9355 2722 Lv 1, 47 Burswood Rd Burswood, WA, 6100 -----Original Message----- From: Pradeep [mailto:pradeepkumar at infotech.stph.net] Sent: Thursday, 7 November 2002 6:10 PM To: Mapserver-Users; David Barclay Subject: RE: [mapserver-users] Design Documents Importance: High Hello David, Thank you, I am particularly interested in these areas: a.. The programmatic flow of MapServer. b.. What are the functions that need to be exposed as Interfaces in COM ( A Guideline). c.. Information on the various external libraries(gd,libjpeg,freetype,regex...etc.) interaction with MapServer. d.. Any information on the Architectural Design of mapserver. I will be very thankful if you can help me with the documentation on any of these areas. Regards Pradeep. Proj Lead InfoTech Enterprises Ltd. Hyderabad India. -----Original Message----- From: David Barclay [mailto:david.barclay at ngis.com.au] Sent: Thursday, November 07, 2002 12:09 PM To: 'pradeepkumar at infotech.stph.net' Subject: RE: [mapserver-users] Design Documents Heya Pradeep, We've been working pretty heavily with Mapserver over the last few months in order to develop a .NET wrapper for Mapserver. What areas of mapserver are you looking for documentation/info on, I may be able to help. Kindest regards, ____________________________________________ DAVID BARCLAY Web Architect/Developer david.barclay at ngis.com.au ____________________________________________ _ NGIS Australia National Geographic Information Systems Phone: (08) 9355 2444 Fax: (08) 9355 2722 Lv 1, 47 Burswood Rd Burswood, WA, 6100 -----Original Message----- From: Pradeep [mailto:pradeepkumar at infotech.stph.net] Sent: Thursday, 7 November 2002 1:39 PM To: Mapserver-Users Subject: [mapserver-users] Design Documents Importance: High Hi User List, I am assigned to create a COM DLL for mapserver, I need help regarding the design of mapserver Can any one help me with some kind of documents on the programmatic design and also the architectural design of mapserver? All your help will be greatly appreciated. Regards Pradeep. Proj Lead InfoTech Enterprises Ltd. Hyderabad India. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacobi at dfki.de Wed Nov 20 03:22:36 2002 From: jacobi at dfki.de (Sven Jacobi) Date: Wed, 20 Nov 2002 12:22:36 +0100 Subject: [mapserver-users] Polygon raster or what? Message-ID: <200211201049.gAKAnuZn011185@corp-200.dfki.uni-sb.de> Hello, I want to display several layers of distinguish types. How can I find out what type I have to use ? I have no idea of how to determine the type of the associated shapefile... I get a message like that every time I change the type of the layer: "msDrawShape(): General error message. Only polygon shapes can be drawn using a POLYGON layer definition." Thanks for any advise. Cheers, Sven From pradeepkumar at infotech.stph.net Wed Nov 20 04:16:28 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Wed, 20 Nov 2002 17:46:28 +0530 Subject: [mapserver-users] Help needed MapServer Visual C++ 6.0 Project Workspace In-Reply-To: <41CC46B3925E384BA64B1FB5041C38FA3291@www.novacell.com> Message-ID: MessageDear John, thank you very much for your response, I have altered my dsp based on your workspace setting, and now its building well, but I fins that the dsp file you sent was meant for creating a mapserver.lib instead of the mapserv.exe which we are supposed to build, Can you tell me what I am missing? and how to build an exe? or do you have a seperate dsp for mapserv.exe? can you send me that Thank you very much Pradeep -----Original Message----- From: Administrator [mailto:jnovak at novacell.com] Sent: Wednesday, November 20, 2002 12:59 PM To: pradeepkumar at infotech.stph.net; DebasishS at riskinc.com Subject: RE: [mapserver-users] Help needed MapServer Visual C++ 6.0 Project Workspace Folks, I've attached my project file that I've used to build 3.6.3. I've pretty much turned every optional component on so you may have to remove settings you don't want. John Novak Novacell Technologies -----Original Message----- From: Pradeep [mailto:pradeepkumar at infotech.stph.net] Sent: Tuesday, November 19, 2002 11:09 PM To: Mapserver-Users; mapserver-dev; DebasishS at riskinc.com Subject: [mapserver-users] Help needed MapServer Visual C++ 6.0 Project Workspace Importance: High Dear Deb, Hello, I am compiling mapserver in vc++ and landed with the same kind of errors that you have reported, please refer the mail below, I have also tried the reply sent to your mail by altering the project settings as suggested by "j1mm" and still I found the following error "Command line error D2004 : '/U' requires an argument", can you please tell me how to solve this problem. If possible Can u Please give me steps to configure the VC++ workspace for mapserver step by step. Thanks for your time Pradeep j1mmm at hotmail.com wrote on VC, project menu and click setting C++ tab, category: Preprocessor in undefine sysbols -- put ex. -DUSE_JPEG -DUSE_GD_GIF and all your needed predefine in addtional include directory -- put directory of needed OBJ, ex. -I./gd-1.8.4 -I./tiff-v3.5.6-beta/libtiff -I./jpeg-6b -I./regex-0.12 -I. /gdal-1.1.5/ogr/ogrsf_frmts -I./gdal-1.1.5/ogr -I./gdal-1.1.5/ogr/../port Link tab, category Input in additional library path -- put your needed Lib path,ex /gd-1.8.4/gd.lib ./jpeg-6b/jpeg.lib ./lpng1011/libpng.lib ./zlib-1.1.3/zlib.lib ./freetype-2.0.1/obj/freetype.lib all these vary setting is exist in Makefile.vc hope useful j1mmm at hotmail.com ----- Original Message ----- From: To: Sent: Saturday, November 17, 2001 9:14 PM Subject: [mapserver-users] MapServer Visual C++ 6.0 Project Workspace. > Hi, > > Has anbody tried compiling Mapserver 3.5 using Visual C++ 6.0 . Can you > please provide me with the workspace file. > Am getting the following error when i try to compile > > Linking... > mapserv.obj : error LNK2005: _main already defined in legend.obj > scalebar.obj : error LNK2005: _main already defined in legend.obj > shp2img.obj : error LNK2005: _main already defined in legend.obj > shpindex.obj : error LNK2005: _main already defined in legend.obj > shptree.obj : error LNK2005: _main already defined in legend.obj > sortshp.obj : error LNK2005: _main already defined in legend.obj > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageDestroy > maputil.obj : error LNK2001: unresolved external symbol _gdImageDestroy > scalebar.obj : error LNK2001: unresolved external symbol _gdImageDestroy > shp2img.obj : error LNK2001: unresolved external symbol _gdImageDestroy > legend.obj : error LNK2001: unresolved external symbol _gdImageDestroy > maplegend.obj : error LNK2001: unresolved external symbol _gdImageDestroy > mapscale.obj : error LNK2001: unresolved external symbol _gdImageDestroy > mapserv.obj : error LNK2001: unresolved external symbol _gdImageDestroy > mapfile.obj : error LNK2001: unresolved external symbol > _gdImageColorAllocate > mapraster.obj : error LNK2001: unresolved external symbol > _gdImageColorAllocate > mapsymbol.obj : error LNK2001: unresolved external symbol > _gdImageColorAllocate > mapxbase.obj : error LNK2001: unresolved external symbol _strcasecmp > shptree.obj : error LNK2001: unresolved external symbol _strcasecmp > mapfile.obj : error LNK2001: unresolved external symbol _strcasecmp > maphash.obj : error LNK2001: unresolved external symbol _strcasecmp > mapserv.obj : error LNK2001: unresolved external symbol _strcasecmp > maputil.obj : error LNK2001: unresolved external symbol _strcasecmp > mapfile.obj : error LNK2001: unresolved external symbol _regfree > mapparser.obj : error LNK2001: unresolved external symbol _regfree > mapserv.obj : error LNK2001: unresolved external symbol _regfree > mapfile.obj : error LNK2001: unresolved external symbol _regexec > mapparser.obj : error LNK2001: unresolved external symbol _regexec > mapserv.obj : error LNK2001: unresolved external symbol _regexec > maputil.obj : error LNK2001: unresolved external symbol _regexec > mapfile.obj : error LNK2001: unresolved external symbol _regcomp > mapparser.obj : error LNK2001: unresolved external symbol _regcomp > mapserv.obj : error LNK2001: unresolved external symbol _regcomp > maputil.obj : error LNK2001: unresolved external symbol _regcomp > maplabel.obj : error LNK2001: unresolved external symbol _gdFontGiant > maplabel.obj : error LNK2001: unresolved external symbol _gdFontLarge > maplabel.obj : error LNK2001: unresolved external symbol _gdFontMediumBold > maplabel.obj : error LNK2001: unresolved external symbol _gdFontSmall > maplabel.obj : error LNK2001: unresolved external symbol _gdFontTiny > maplabel.obj : error LNK2001: unresolved external symbol _gdImageString > maplegend.obj : error LNK2001: unresolved external symbol _gdImageCreate > mapscale.obj : error LNK2001: unresolved external symbol _gdImageCreate > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageCreate > maputil.obj : error LNK2001: unresolved external symbol _gdImageCreate > maplegend.obj : error LNK2001: unresolved external symbol > _gdImageColorTransparent > mapscale.obj : error LNK2001: unresolved external symbol > _gdImageColorTransparent > mapsymbol.obj : error LNK2001: unresolved external symbol > _gdImageColorTransparent > maputil.obj : error LNK2001: unresolved external symbol > _gdImageColorTransparent > mapprimitive.obj : error LNK2001: unresolved external symbol > _gdImageSetPixel > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetPixel > mapprimitive.obj : error LNK2001: unresolved external symbol _gdImageLine > mapscale.obj : error LNK2001: unresolved external symbol _gdImageLine > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageLine > mapraster.obj : error LNK2001: unresolved external symbol _gdImageRectangle > mapscale.obj : error LNK2001: unresolved external symbol _gdImageRectangle > mapraster.obj : error LNK2001: unresolved external symbol > _gdImageFilledRectangle > mapscale.obj : error LNK2001: unresolved external symbol > _gdImageFilledRectangle > mapserv.obj : error LNK2001: unresolved external symbol _strncasecmp > sortshp.obj : error LNK2001: unresolved external symbol _strncasecmp > mapsymbol.obj : error LNK2001: unresolved external symbol > _gdImageFilledPolygon > mapsymbol.obj : error LNK2001: unresolved external symbol > _gdImageFillToBorder > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageArc > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetTile > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImagePolygon > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageCopy > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetStyle > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetBrush > maputil.obj : error LNK2001: unresolved external symbol _gdImageInterlace > shpindex.obj : error LNK2001: unresolved external symbol _SHPClose > shpindex.obj : error LNK2001: unresolved external symbol _SHPReadBounds > shpindex.obj : error LNK2001: unresolved external symbol _SHPGetInfo > shpindex.obj : error LNK2001: unresolved external symbol _SHPOpen > Debug/mapserver.exe : fatal error LNK1120: 32 unresolved externals > Error executing link.exe. > > mapserver.exe - 73 error(s), 109 warning(s) > > > Debasish Sahu. > Senior Software Engineer > RMS India. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Peter.Bruton at ccrs.nrcan.gc.ca Wed Nov 20 04:37:19 2002 From: Peter.Bruton at ccrs.nrcan.gc.ca (Peter.Bruton at ccrs.nrcan.gc.ca) Date: Wed, 20 Nov 2002 07:37:19 -0500 Subject: [mapserver-users] See through layers Message-ID: <7CDD7B94357FD5119E800002A537C46EB0FE8E@s5-ccr-r1.ccrs.nrcan.gc.ca> Hi; Two potential options are: 1) use the TRANSPARANCY property to "see through" the top layer and view the layers underneath. 2) use a non-solid (diagonal lines, horizontal lines, truetype-based fill pattern) fill type to see through the top layer and view the layers underneath. Have a good day. Peter Bruton -----Original Message----- From: John M. Duggan, LSIT [mailto:gis at farmvilleva.com] Sent: Tuesday, November 19, 2002 4:01 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] See through layers Hi all, I'm still trying to refine my map server, and have come to a point where I would like to make a layer of polygons that are filled but still able to see the layers underneath it? Any solution would be most helpful Thanks, John M. Duggan LSIT gis at farmvilleva.com http://www.farmvilleva.com (434) 392-3333 -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at khi2.fr Wed Nov 20 05:28:34 2002 From: guillaume.sueur at khi2.fr (Guillaume SUEUR) Date: Wed, 20 Nov 2002 14:28:34 +0100 Subject: [mapserver-users] Rosa buttons management Message-ID: <3DDB8E02.9020409@khi2.fr> Hi there, Would you know a way to drive Rosa Applet from outside the map image ? I'd like to design my own toolbar and put it outside the map. I can hide the applet's buttons by using fake url for their images. But I can't set the TB_SELECTED_BUTTON from the outside. Any idea ? If there isn't, I will do the improvement for all folks. Thanks -- --------------------------- Guillaume SUEUR Ing?nieur d?veloppement SIG GEOSIGNAL 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From guillaume.sueur at khi2.fr Wed Nov 20 05:51:33 2002 From: guillaume.sueur at khi2.fr (Guillaume SUEUR) Date: Wed, 20 Nov 2002 14:51:33 +0100 Subject: [mapserver-users] Rosa buttons Message-ID: <3DDB9365.10601@khi2.fr> Forget my previous question, I found the setButtonPress() thing. It selects the right button but submits the form as well. Why ? -- --------------------------- Guillaume SUEUR Ing?nieur d?veloppement SIG GEOSIGNAL 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From assefa at dmsolutions.ca Wed Nov 20 07:03:00 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 20 Nov 2002 10:03:00 -0500 Subject: [mapserver-users] Rosa buttons management References: <3DDB8E02.9020409@khi2.fr> Message-ID: <3DDBA424.F5841901@dmsolutions.ca> There isn't a way with the current version. If you add this, please check the method setSelectedButton in Rosa2000.java and base the new method on that. Later, Guillaume SUEUR wrote: > Hi there, > > Would you know a way to drive Rosa Applet from outside the map image ? > I'd like to design my own toolbar and put it outside the map. I can hide > the applet's buttons by using fake url for their images. But I can't set > the TB_SELECTED_BUTTON from the outside. Any idea ? > If there isn't, I will do the improvement for all folks. > > Thanks > > -- > --------------------------- > Guillaume SUEUR > Ing?nieur d?veloppement SIG > GEOSIGNAL > 25bis Avenue Marcel Dassault > 31505 TOULOUSE CEDEX 5 > ---------------------------- -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at dmsolutions.ca Wed Nov 20 07:32:33 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 20 Nov 2002 10:32:33 -0500 Subject: [mapserver-users] Rosa buttons References: <3DDB9365.10601@khi2.fr> Message-ID: <3DDBAB11.7E8C9E34@dmsolutions.ca> You are right. I missed that utility function ;) It should normally do a submit only if _INPUT paramater of the selected button is set to auto_xxx or submit. Guillaume SUEUR wrote: > Forget my previous question, I found the setButtonPress() thing. It > selects the right button but submits the form as well. Why ? > > -- > --------------------------- > Guillaume SUEUR > Ing?nieur d?veloppement SIG > GEOSIGNAL > 25bis Avenue Marcel Dassault > 31505 TOULOUSE CEDEX 5 > ---------------------------- -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From kunzmann at masterplan.de Wed Nov 20 07:40:02 2002 From: kunzmann at masterplan.de (Jan Kunzmann) Date: Wed, 20 Nov 2002 16:40:02 +0100 Subject: [mapserver-users] Coordinate transformation in Java (latlong to LCC) Message-ID: <3DDBACD2.6010307@masterplan.de> Hi there folks, I know this is a kind of of-topic question, but I really need help... I need to convert lat-long coordinates to Lambert Conic Conformal (2SP) coordinates and vice versa, as figured at http://www.remotesensing.org/geotiff/proj_list/lambert_conic_conformal_2sp.html I already found the PROJ.4 library being capable of doing this simple conversion, but I need to do it in Java. I searched the web and found some complex packages, but they are too complicated to understand for me, and none of them is as easy as (x,y) := convert(x,y, originlat, originlong, sp1lat, sp2lat) Does anyone know where I can find such a class, or can send me the algorithm (it's already on the remotesensing page but it's unreadable for me...)? Thanks in advance, Jan From kunzmann at masterplan.de Wed Nov 20 07:48:32 2002 From: kunzmann at masterplan.de (Jan Kunzmann) Date: Wed, 20 Nov 2002 16:48:32 +0100 Subject: [mapserver-users] Polygon raster or what? References: <200211201049.gAKAnuZn011185@corp-200.dfki.uni-sb.de> Message-ID: <3DDBAED0.1000906@masterplan.de> Hi Sven, > I want to display several layers of distinguish types. > How can I find out what type I have to use ? Try the perl code at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex5 It helped me a lot when i had the very same problem. Greez, Jan From guillaume.sueur at khi2.fr Wed Nov 20 07:46:09 2002 From: guillaume.sueur at khi2.fr (Guillaume SUEUR) Date: Wed, 20 Nov 2002 16:46:09 +0100 Subject: [mapserver-users] Rosa buttons References: <3DDB9365.10601@khi2.fr> <3DDBAB11.7E8C9E34@dmsolutions.ca> Message-ID: <3DDBAE41.1040301@khi2.fr> why on a auto_xxx stuff ? After the selection of the button, I still need to draw the point or line or polygon on the image. It should only submit on submit buttons, like the button selection by click does. Don't you agree ? Guillaume -- --------------------------- Guillaume SUEUR Ing?nieur d?veloppement SIG GEOSIGNAL 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From bronsema at dmsolutions.ca Wed Nov 20 08:09:07 2002 From: bronsema at dmsolutions.ca (William A. Bronsema, C.E.T.) Date: Wed, 20 Nov 2002 11:09:07 -0500 Subject: [mapserver-users] [Fwd: About setfilter in layer object] Message-ID: <3DDBB3A3.5070900@dmsolutions.ca> -------- Original Message -------- Subject: About setfilter in layer object Date: Mon, 18 Nov 2002 16:00:24 +0000 From: "ajimenez at ecosconsult.com.br" Hello William: I write you because i have a litter question, the setfilter() method of the layer object work fine for PostGIS data when the filter condition is over a non integer data field in the database?, i am do some test using setfilter() and this method only work fine when the filter field is an integer, if it is a string or float field the setfilter() don't work. What you can say me about this. Best Regards, -- Lic. Amaury Jim?nez Marrero EcosConsult. R. Mons. Ivo Zanlorenzi 847 cj.4 Curitiba. PR. Brasil. 80.740-590 Telef: ++55-41-3391461 From Michael.Soracco at noaa.gov Wed Nov 20 10:07:04 2002 From: Michael.Soracco at noaa.gov (Michael Soracco) Date: Wed, 20 Nov 2002 13:07:04 -0500 Subject: [mapserver-users] Coordinate transformation in Java (latlong to LCC) References: <3DDBACD2.6010307@masterplan.de> Message-ID: <3DDBCF48.1B3D9ADA@noaa.gov> Jan- Here's a class that will do it using the equations per Snyder's Handbook (as seen in GCTP). Although I did not write the snipet (I can put you in contact with the original author offline if needed), I have used it routinely in a Java applet. You will see comments in the code describing the inputs (XY) and a parameter array which identifies the SP1,2 , ellipsoid, etc. -m Jan Kunzmann wrote: > Hi there folks, > > I know this is a kind of of-topic question, but I really need help... > > I need to convert lat-long coordinates to Lambert Conic Conformal (2SP) > coordinates and vice versa, as figured at > http://www.remotesensing.org/geotiff/proj_list/lambert_conic_conformal_2sp.html > > I already found the PROJ.4 library being capable of doing this simple > conversion, but I need to do it in Java. I searched the web and found > some complex packages, but they are too complicated to understand for > me, and none of them is as easy as > > (x,y) := convert(x,y, originlat, originlong, sp1lat, sp2lat) > > Does anyone know where I can find such a class, or can send me the > algorithm (it's already on the remotesensing page but it's unreadable > for me...)? > > Thanks in advance, > Jan -- //// Michael Soracco SES, Inc. for NOAA/NESDIS at NOAA Science Center (WWB) 5200 Auth Road, Room 607 Camp Springs, MD 20746 Voice: 301.763.8142 x117 FAX: 301.763.8131 Michael.Soracco at noaa.gov -------------- next part -------------- /** LCC - Lambert Conformal Conic Projection class */ package /*ENTER YOUR PATH*/; public class LCC extends Projection { private double stdpar1=0, stdpar2=0, centmer=0, origlat=0; private double sin_po = 0; // sin of 1st std par private double cos_po = 0; // cos of 1nd std par private double false_east, false_north; private double ns = 0; //ratio of angle between meridian private double f0 = 0; //flattening of ellipsoid private double rh = 0; //height above ellipsoid private double ms1, ms2; private double ts0, ts1, ts2; public LCC (){ // new state plane projection, nothing set } public LCC (double[] param){ setParam(param); } /** Convert from Planar coords to Geographic @param x easting value @param y northing value @return lat lon coordinates */ public synchronized GeoCoord XYToGeo(double x, double y){ this.x = x; this.y = y; return (XYToGeo()); } /** Convert from Planar coords to Geographic @param location easting and northing values @return lat lon coordinates */ public synchronized GeoCoord XYToGeo(XYCoord location){ this.x = location.x; this.y = location.y; return (XYToGeo()); } /** Convert from Planar coords to Geographic @return GeoCoord class with lat lon coordinates */ private GeoCoord XYToGeo(){ double rh1; /* height above ellipsoid */ double con; /* sign variable */ double ts; /* small t */ double theta; /* angle */ double xx = x; double yy = y; long errflag = 0; double lat = 0, lon = 0; xx -= false_east; yy = rh - y + false_north; if(ns > 0){ rh1 = Math.sqrt(xx * xx + yy * yy); con = 1.0; }else{ rh1 = -Math.sqrt(xx * xx + yy * yy); con = -1.0; } theta = 0.0; if(rh1 != 0){ theta = Math.atan2((con * xx), (con * yy)); } if((rh1 != 0) || (ns > 0.0)){ con = 1.0 /ns; ts = Math.pow((rh1/(majorAxis * f0)), con); try{ lat =phi2z(eccen,ts,errflag); }catch(ConvergenceException e){ System.out.println(e); return null; } }else{ lat =(-HALF_PI); } lon = adjust_lon(theta/ns + centmer); return (new GeoCoord(rtd(lat),rtd(lon))); } /** Convert from Geographic coords to Lambert Conformal Conic. @param g The latitude and longitude. @return The easting and northing values, null on error. */ public synchronized XYCoord GeoToXY(GeoCoord g){ double con; // temporary angle variable double rh1; // height above ellipsoid double sinphi; // sin value double theta; // angle double ts; // small value t double lat = g.getLatRad(); double lon = g.getLonRad(); con = Math.abs(Math.abs(lat - HALF_PI)); if(con > EPSLN){ sinphi = Math.sin(lat); ts = tsfnz(eccen,lat,sinphi); rh1 = majorAxis * f0 * Math.pow(ts,ns); }else{ con = lat * ns; if(con <= 0) { System.out.println("Point cannot be projected to Lambert"); return null; } rh1 = 0; } theta = ns * adjust_lon(lon - centmer); double x = rh1 * Math.sin(theta) + false_east; double y = rh - rh1 * Math.cos(theta) + false_north; return (new XYCoord(x,y)); } public double[] getParam(){ return param; } /** @param param A double array with the following elements:

  • param[0] - Semi-major axis in meters
  • param[1] - Semi-minor axis in meters. If 0, then param[0] is a sphere number.
  • param[2] - First standard parallel in decimal degrees.
  • param[3] - Second standard parallel in decimal degrees.
  • param[4] - Central meridian in decimal degrees.
  • param[5] - Latitide of origin in decimal degrees.
  • param[6] - False Easting.
  • param[7] - False Northing.
EPSLN){ ns = Math.log(ms1/ms2) / Math.log(ts1/ts2); } f0 = ms1/(ns * Math.pow(ts1,ns)); rh = majorAxis * f0 * Math.pow(ts0,ns); return 0; } /** @return Text descriptions of the elements needed for initialization using an array of doubles. */ public String[] getParamDefs(){ String[] paramdef = new String[8]; paramdef[0] = "Major Axis [m] or sphere number"; paramdef[1] = "Minor Axis [m] or zero"; paramdef[2] = "First Standard parallel [degrees]"; paramdef[3] = "Second Standard parallel [degrees]"; paramdef[4] = "Central Meridian [degrees]"; paramdef[5] = "Latitude of Origin [degrees]"; paramdef[6] = "False Easting [m]"; paramdef[7] = "False Northing [m]"; return paramdef; } } From gis_consultant at hotmail.com Wed Nov 20 10:24:01 2002 From: gis_consultant at hotmail.com (C F) Date: Wed, 20 Nov 2002 11:24:01 -0700 Subject: [mapserver-users] SDE performance Message-ID: Regarding MapServer creating a NEW db connection for each db layer.... is anyone else taking this seriously? I thought this would be just the beginning of the discussion but there doesn't seem to be too much interest in this besides us few. This seems like a pretty unnecessary performance constraint. I would think that it would be a fairly easy fix, but it's not my place to be making those assumptions... But I just thought I'd bring it up again in case everyone forgot :) >From: Jan Hartmann >To: mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] SDE performance >Date: Wed, 13 Nov 2002 11:57:40 +0100 > >My impression is that this would not be very hard to implement: just a >global array with pointers to every CONNECTION opened in all LAYERS. The >applications itself (PostGIS, SDE, Oracle) could test for already open >connections. The only thing MapServer itself would have to do is closing >all connections at the end. >This would certainly be of great help for Oracle and SDE users; large >connection overheads have been mentioned regularly on this list. Even for >PostGIS there are advantages; think about reusing complex queries with >spatial operators and TMP tables. IMHO certainly worth looking into! > >Jan Hartmann > > >Paul Ramsey wrote: >>One possibility would be to abstract the connection making process a bit, >>so that a 'getConnection' function first checks a hash to see if there is >>already a connection with parameters which match the requested connection. >>It would probably have to reside on the mapObj though... >> >>P. >> > >Jan Hartmann >Department of Geography >University of Amsterdam _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From mzm at imagecatinc.com Wed Nov 20 10:59:01 2002 From: mzm at imagecatinc.com (Michael Mio) Date: Wed, 20 Nov 2002 10:59:01 -0800 Subject: [mapserver-users] Resizing Layers Message-ID: Hello everyone. I was wondering what I needed to add into my MAP file if I want my vector layers to get smaller as I zoom in. I have a raster image with some vector layers overlayed. I'd like the vectors to reduce in size as the user zooms in on the map. Any help would be greatly appreciated. Thank you. *************** Michael Mio ImageCat, Inc. From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Wed Nov 20 11:37:59 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Jean-Francois.Doyon at ccrs.nrcan.gc.ca) Date: Wed, 20 Nov 2002 14:37:59 -0500 Subject: [mapserver-users] Coordinate transformation in Java (latlong to LCC) Message-ID: <7CDD7B94357FD5119E800002A537C46E23048C@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I once upon a time fumbled upon a SWIG interface for PROJ.4 ... It was written for use with SWIG/Python, but maybe you could fairly easily use it to generate a Java interface ? Find it attached. Good luck! J.F. -----Original Message----- From: Michael Soracco [mailto:Michael.Soracco at noaa.gov] Sent: Wednesday, November 20, 2002 1:07 PM To: Jan Kunzmann Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Coordinate transformation in Java (latlong to LCC) Jan- Here's a class that will do it using the equations per Snyder's Handbook (as seen in GCTP). Although I did not write the snipet (I can put you in contact with the original author offline if needed), I have used it routinely in a Java applet. You will see comments in the code describing the inputs (XY) and a parameter array which identifies the SP1,2 , ellipsoid, etc. -m Jan Kunzmann wrote: > Hi there folks, > > I know this is a kind of of-topic question, but I really need help... > > I need to convert lat-long coordinates to Lambert Conic Conformal (2SP) > coordinates and vice versa, as figured at > http://www.remotesensing.org/geotiff/proj_list/lambert_conic_conformal_2sp.h tml > > I already found the PROJ.4 library being capable of doing this simple > conversion, but I need to do it in Java. I searched the web and found > some complex packages, but they are too complicated to understand for > me, and none of them is as easy as > > (x,y) := convert(x,y, originlat, originlong, sp1lat, sp2lat) > > Does anyone know where I can find such a class, or can send me the > algorithm (it's already on the remotesensing page but it's unreadable > for me...)? > > Thanks in advance, > Jan -- //// Michael Soracco SES, Inc. for NOAA/NESDIS at NOAA Science Center (WWB) 5200 Auth Road, Room 607 Camp Springs, MD 20746 Voice: 301.763.8142 x117 FAX: 301.763.8131 Michael.Soracco at noaa.gov -------------- next part -------------- A non-text attachment was scrubbed... Name: pyProjectionLib-0.2.tgz Type: application/octet-stream Size: 25601 bytes Desc: not available URL: From teb at mallit.fr.umn.edu Wed Nov 20 11:30:37 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Wed, 20 Nov 2002 13:30:37 -0600 (CST) Subject: [mapserver-users] question re: mapserver 3.6 demo installation (FWD) Message-ID: <200211201930.gAKJUbG22881@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Whalen,Jake [Dartmouth]" To: "'mdp at lists.gis.umn.edu'" Subject: question re: mapserver 3.6 demo installation Date: Wed, 20 Nov 2002 13:52:27 -0400 MIME-Version: 1.0 Hello, I installed mapserver 3.6 and tried to run the demo from my server. When I go to the "demo.html" page on my server, the map window comes up, but it's black and there isn't any functionality. The legend and sidebars don't appear either. Under properties, the legend url reads: file:///C:/Program%20Files/MapServer/demo/itasca/[legend] Why is legend in brackets? Is this a pathing problem? Thanks Jake Whalen ------------- End Forwarded Message ------------- From tpcolson at nexussoft.com Wed Nov 20 12:12:29 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Wed, 20 Nov 2002 15:12:29 -0500 Subject: [mapserver-users] question re: mapserver 3.6 demo installation (FWD) Message-ID: <8A13872FF821F4488B4A629647DC0C71023FA1@mailman.nexussoft.com> either you don't have the tmp directories set up, or you're using gif images without the suppport. check your var/log/httpd/error.log to see exactly what the web server is requesting....check yer log files.... -----Original Message----- From: Thomas E. Burk [mailto:teb at mallit.fr.umn.edu] Sent: Wednesday, November 20, 2002 2:31 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] question re: mapserver 3.6 demo installation (FWD) ------------- Begin Forwarded Message ------------- From: "Whalen,Jake [Dartmouth]" To: "'mdp at lists.gis.umn.edu'" Subject: question re: mapserver 3.6 demo installation Date: Wed, 20 Nov 2002 13:52:27 -0400 MIME-Version: 1.0 Hello, I installed mapserver 3.6 and tried to run the demo from my server. When I go to the "demo.html" page on my server, the map window comes up, but it's black and there isn't any functionality. The legend and sidebars don't appear either. Under properties, the legend url reads: file:///C:/Program%20Files/MapServer/demo/itasca/[legend] Why is legend in brackets? Is this a pathing problem? Thanks Jake Whalen ------------- End Forwarded Message ------------- From steve.lime at dnr.state.mn.us Wed Nov 20 12:12:32 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 20 Nov 2002 14:12:32 -0600 Subject: [mapserver-users] SDE performance Message-ID: I think folks will take it seriously, but the timing may a bit bad with folks rushing to polish of work in 3.7. At a minimum this should be logged in Bugzilla so it doesn't get lost. If someone would like to work on a fix that doesn't involve global variables, but rather a connection pool that becomes part of the main mapObj then I (as the SDE guy) would be happy to work to implement it. I don't think it's too hard, just a bunch of bookeeping since you might leverage multiple SDE/Oracle or PostGIS connections in a single run. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "C F" 11/20/02 12:24PM >>> Regarding MapServer creating a NEW db connection for each db layer.... is anyone else taking this seriously? I thought this would be just the beginning of the discussion but there doesn't seem to be too much interest in this besides us few. This seems like a pretty unnecessary performance constraint. I would think that it would be a fairly easy fix, but it's not my place to be making those assumptions... But I just thought I'd bring it up again in case everyone forgot :) >From: Jan Hartmann >To: mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] SDE performance >Date: Wed, 13 Nov 2002 11:57:40 +0100 > >My impression is that this would not be very hard to implement: just a >global array with pointers to every CONNECTION opened in all LAYERS. The >applications itself (PostGIS, SDE, Oracle) could test for already open >connections. The only thing MapServer itself would have to do is closing >all connections at the end. >This would certainly be of great help for Oracle and SDE users; large >connection overheads have been mentioned regularly on this list. Even for >PostGIS there are advantages; think about reusing complex queries with >spatial operators and TMP tables. IMHO certainly worth looking into! > >Jan Hartmann > > >Paul Ramsey wrote: >>One possibility would be to abstract the connection making process a bit, >>so that a 'getConnection' function first checks a hash to see if there is >>already a connection with parameters which match the requested connection. >>It would probably have to reside on the mapObj though... >> >>P. >> > >Jan Hartmann >Department of Geography >University of Amsterdam _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From steve.lime at dnr.state.mn.us Wed Nov 20 12:26:13 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 20 Nov 2002 14:26:13 -0600 Subject: [mapserver-users] abutters lists.... Message-ID: I've dropped Mr. Held a note asking about restrictions in embedding his code, or something derived from it into MapServer. We'll see. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 11/19/02 08:20PM >>> Yes, that is exactly right, if not better said. :) After doing some research on the web, this looks like a potential candidate for code that might do what we need. This problem has been researched extensively for doing NC machining. Anyway, part way down this page: http://www.cosy.sbg.ac.at/~held/projects/vroni/vroni.html is a link to email the author for info on how to get his ANSI C source and to discuss usage issues if any. The 6th example down the page shows offset contours of a very complex polygon. -Steve W. On 19 Nov 2002 at 20:15, Norman Vine wrote: > woodbri at swoodbridge.com writes: > > > > The buffering algorithm is tricky, but an interesting problem. > > Growing the vectors from the centriod only works for convex > > polygons, it will fail for concave polygons like: > > > > +---------+ +---------+ > > | | | | > > | +------+ | > > | | > > +----------------------------+ > > > > The right way to do this, I think, is to walk around the polygon and > > construct offsets, then interest the offsets and re-chain the > > segments into a new polygon, you also have to eliminate loops on the > > new polygon caused by the fact that the offset can eliminate some > > features from the new polygon. For example with a large enough > > offset the notch in the above would be eliminated from the topology > > of the new offset polygon changing it from 6 vertices to 4 vertices. > > or another way of saying the 'same' > > draw a circle of the desired radius around each point > > then the projection of the original linesegments out to the > corresponding tangent vectors of the circles and the outer > 'arcs' of said circles are the segments of the 'buffer' polygon > > Cheers > > Norman > > From steve.lime at dnr.state.mn.us Wed Nov 20 12:29:16 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 20 Nov 2002 14:29:16 -0600 Subject: [mapserver-users] abutters lists.... Message-ID: MapServer already employs a quad tree algorithm for spatial indexing, don't know if it would be of use. Way back I used an r-tree implementation from the University of Athens. Worked great but was a bit unstable, so when Frank wrote his first version of the quad tree code I made the switch. Steve >>> "John Newton" 11/19/02 09:26PM >>> I have been researching buffering for a few weeks, and found a partial algorithm described in the following paper: http://www.cg.tuwien.ac.at/studentwork/CESCG99/SKrivograd/ However, to optimize for large number of vertices, it would require the ability to build a spatial index on the fly. (The end of the paper refers to it as "plane subdivision".) By "large number of vertices", I mean more that 100-500 (your mileage may vary). I am interested in buffering polygons with potentially 1k to 10k vertices, which would require some sort of index (quad-tree?). Has anyone seen an OpenSource quad tree or r-tree? -john ----- Original Message ----- From: To: "Steve Lime" ; ; ; Sent: Tuesday, November 19, 2002 3:47 PM Subject: Re: [mapserver-users] abutters lists.... > The buffering algorithm is tricky, but an interesting problem. > Growing the vectors from the centriod only works for convex polygons, > it will fail for concave polygons like: > > +---------+ +---------+ > | | | | > | +------+ | > | | > +----------------------------+ > > The right way to do this, I think, is to walk around the polygon and > construct offsets, then interest the offsets and re-chain the > segments into a new polygon, you also have to eliminate loops on the > new polygon caused by the fact that the offset can eliminate some > features from the new polygon. For example with a large enough offset > the notch in the above would be eliminated from the topology of the > new offset polygon changing it from 6 vertices to 4 vertices. > > -Steve W. > > On 19 Nov 2002 at 15:14, Steve Lime wrote: > > > Ed: Hey, it was worth a shot. Everything is square here. > > > > I see two needs. One for a buffering algorithm (I've looked and > > haven't found much of anything.) > > > > The other is for a process to compute the distance between arbitrary > > shapes. The point to vector code already exists. > > > > Anyone want to help? > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> kevinflanders at rcn.com 11/19/02 11:40AM >>> > > It's great to see so many reactions to this abutters list need....and > > buffering seems to be the way to go. I totally agree with Ed that > > "close" is not going to be enough....especially for legal abutter's > > lists that are subject to questions. > > > > How would we go about addressing the code to open the door to this > > functionality? > > > > > > > > Kevin > > > > > > > From steve.lime at dnr.state.mn.us Wed Nov 20 12:37:36 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 20 Nov 2002 14:37:36 -0600 Subject: [mapserver-users] Resizing Layers Message-ID: Hmmmm... You want to go backwards. Normally folks want features to appear larger as they zoom in and that's how the scaling system that's in place works. Are the vectors and the image always on, or does the image flip on at a certain scale? Steve >>> "Michael Mio" 11/20/02 12:59PM >>> Hello everyone. I was wondering what I needed to add into my MAP file if I want my vector layers to get smaller as I zoom in. I have a raster image with some vector layers overlayed. I'd like the vectors to reduce in size as the user zooms in on the map. Any help would be greatly appreciated. Thank you. *************** Michael Mio ImageCat, Inc. From steve.lime at dnr.state.mn.us Wed Nov 20 12:53:58 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 20 Nov 2002 14:53:58 -0600 Subject: [mapserver-users] Unsetting parameters in Perl/MapScript Message-ID: What you need is the perl equivalent to NULL in C. I know you can pass undef as an argument to SWIG generated functions and it is interpreted as NULL on the C side. Have you tried: $map->{web}->{error} = undef; The Perl interface also has a set/get syntax similar to the PHP version. Supposedly the hash notation is supposed to reference that underlying code, but perhaps it's not. Anyway, try the above and we'll work something out to fix the problem if it fails. For most numeric parameters setting them to -1 (unless true/false applies) often works. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Lowell Filak" 11/18/02 08:17AM >>> Are you able to undef the web object and build a new one? Lowell F. The following message was sent by Jean-Francois.Doyon at ccrs.nrcan.gc.ca on Fri, 15 Nov 2002 18:26:56 -0500. > Hello, > > How does one "unset" a parameter set in a mapfile ? > > I load a mapfile that has the ERROR template set in the WEB object, and I > want to remove it entirely. > > I've tried $map->{web}->{error} = "", but that just sets it to empty ... if > I try undef $map->{web}->{error}, I get a segfault !, I tried setting it > with = 0 (false), but then it just takes the value 0 and uses it as a string > ... > > Any ideas ? > > Thanks, > > Jean-Frantois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Canada Center for Remote Sensing > Natural Resources Canada > http://atlas.gc.ca > Phone: (613) 992-4902 > Fax: (613) 947-2410 > From pagurekd at agr.gc.ca Wed Nov 20 13:29:24 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Wed, 20 Nov 2002 16:29:24 -0500 Subject: [mapserver-users] GML from WMS GetFeatureInfo Message-ID: Hi all, does anyone out there have a Mapserver application working that returns GML from a WMS GetFeatureInfo request? I'd like to compare my results with another site. Oh... and if you could tell me what version of mapserver you're using, that would be great. Thanks in advance, Debbie Pagurek From DMartin at erac.com Wed Nov 20 13:36:43 2002 From: DMartin at erac.com (Martin, Daniel) Date: Wed, 20 Nov 2002 15:36:43 -0600 Subject: [mapserver-users] question re: mapserver 3.6 demo installatio n (FWD) Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B6A@STL-EXBE-I03.corp.erac.com> You'll need to use the demo_init.html as your starting point, not demo.html. The init file MUST be edited, it's not ready to go out of the box. If you haven't been there already, http://mapserver.gis.umn.edu/doc36/demo_readme.html is the best place to get started with the demo. -Dan > -----Original Message----- > From: Thomas E. Burk [mailto:teb at mallit.fr.umn.edu] > Sent: Wednesday, November 20, 2002 1:31 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] question re: mapserver 3.6 demo > installation > (FWD) > > > ------------- Begin Forwarded Message ------------- > > From: "Whalen,Jake [Dartmouth]" > To: "'mdp at lists.gis.umn.edu'" > Subject: question re: mapserver 3.6 demo installation > Date: Wed, 20 Nov 2002 13:52:27 -0400 > MIME-Version: 1.0 > > Hello, > > I installed mapserver 3.6 and tried to run the demo from my > server. When I > go to the "demo.html" page on my server, the map window comes > up, but it's > black and there isn't any functionality. The legend and sidebars don't > appear either. Under properties, the legend url reads: > file:///C:/Program%20Files/MapServer/demo/itasca/[legend] > > Why is legend in brackets? Is this a pathing problem? > > > Thanks > > Jake Whalen > > ------------- End Forwarded Message ------------- > > From pramsey at refractions.net Wed Nov 20 13:40:21 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 20 Nov 2002 13:40:21 -0800 Subject: [mapserver-users] Coordinate transformation in Java (latlong to LCC) References: <7CDD7B94357FD5119E800002A537C46E23048C@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <3DDC0145.4060409@refractions.net> The proj4j project (part of geotools) may have already implemented an LCC projection. Might be worth checking out. http://www.geotools.org Jean-Francois.Doyon at ccrs.nrcan.gc.ca wrote: > Hello, > > I once upon a time fumbled upon a SWIG interface for PROJ.4 ... It was > written for use with SWIG/Python, but maybe you could fairly easily use it > to generate a Java interface ? Find it attached. > > Good luck! > J.F. > > -----Original Message----- > From: Michael Soracco [mailto:Michael.Soracco at noaa.gov] > Sent: Wednesday, November 20, 2002 1:07 PM > To: Jan Kunzmann > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Coordinate transformation in Java > (latlong to LCC) > > > Jan- > > Here's a class that will do it using the equations per Snyder's Handbook (as > seen > in GCTP). Although I did not write the snipet (I can put you in contact > with the > original author offline if needed), I have used it routinely in a Java > applet. You > will see comments in the code describing the inputs (XY) and a parameter > array > which identifies the SP1,2 , ellipsoid, etc. > > -m > > Jan Kunzmann wrote: > > >>Hi there folks, >> >>I know this is a kind of of-topic question, but I really need help... >> >>I need to convert lat-long coordinates to Lambert Conic Conformal (2SP) >>coordinates and vice versa, as figured at >> > > http://www.remotesensing.org/geotiff/proj_list/lambert_conic_conformal_2sp.h > tml > >>I already found the PROJ.4 library being capable of doing this simple >>conversion, but I need to do it in Java. I searched the web and found >>some complex packages, but they are too complicated to understand for >>me, and none of them is as easy as >> >>(x,y) := convert(x,y, originlat, originlong, sp1lat, sp2lat) >> >>Does anyone know where I can find such a class, or can send me the >>algorithm (it's already on the remotesensing page but it's unreadable >>for me...)? >> >>Thanks in advance, >>Jan > > > -- > //// > Michael Soracco > SES, Inc. for NOAA/NESDIS > at NOAA Science Center (WWB) > 5200 Auth Road, Room 607 > Camp Springs, MD 20746 > Voice: 301.763.8142 x117 > FAX: 301.763.8131 > Michael.Soracco at noaa.gov > -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From pramsey at refractions.net Wed Nov 20 13:49:13 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 20 Nov 2002 13:49:13 -0800 Subject: [mapserver-users] SDE performance References: Message-ID: <3DDC0359.1070201@refractions.net> C F wrote: > Regarding MapServer creating a NEW db connection for each db > layer.... is anyone else taking this seriously? I thought this would > be just the beginning of the discussion but there doesn't seem to be > too much interest in this besides us few. This seems like a pretty > unnecessary performance constraint. I would think that it would be a > fairly easy fix, but it's not my place to be making those > assumptions... But I just thought I'd bring it up again in case > everyone forgot :) It is one of those "how bad is the pain" issues. Until someone has a map service which has multiple db-generated layers and connection overhead is totally killing them, the pain won't be bad enough. We stand ready to do the work for the first person who cuts us said contract. :) Right now, most of the pain seems to adhere to Oracle and SDE, which have much higher connection overheads than PostgreSQL. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From mapserver at peligroso.gaiaenv.com Wed Nov 20 13:54:51 2002 From: mapserver at peligroso.gaiaenv.com (Mapserver account for mailing list) Date: Wed, 20 Nov 2002 14:54:51 -0700 (MST) Subject: [mapserver-users] Projection and queries - msQueryByPoint():Search returned no results Message-ID: <200211202154.gAKLspiR009565@peligroso.gaiaenv.com> Thanks Perry. Tried that, but no dice. Same issue. -----Original Message----- From: Pericles S. Nacionales [mailto:nacional at biosci.cbs.umn.edu] Sent: November 19, 2002 9:28 PM To: Mapserver account for mailing list Subject: Re: [mapserver-users] Projection and queries - msQueryByPoint():Search returned no results Jim, You might want to try: PROJECTION "proj=longlat" "ellps=GRS80" END Good luck! -Perry From sig at manobi.sn Wed Nov 20 15:31:08 2002 From: sig at manobi.sn (David Boggio) Date: Wed, 20 Nov 2002 23:31:08 -0000 Subject: [mapserver-users] Fatal error: Call to undefined function: querybyattributes() Message-ID: <000001c290ec$e7944250$b101000a@David> Hi, I have installed Mapserver 3.6.1, and I'm trying to use the QueryByAttributes function in my script. But I keep getting this error message : Fatal error: Call to undefined function: querybyattributes() Can anyone help me? Thanks David Boggio --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/2002 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashrafhanna at hotmail.com Wed Nov 20 15:35:19 2002 From: ashrafhanna at hotmail.com (Ashraf Hanna) Date: Thu, 21 Nov 2002 10:35:19 +1100 Subject: [mapserver-users] MapServer on Windows 95/98/Me using PWS or Xitami Message-ID: Hello All, I have got a question which might look a trivial \ silly. Has anyone tried to run mapserver on windows 95/98/ME using the Microsoft Personal Web Server (MS-PWS) or the freely available Xitami, (I guess I should ask, is it possible?) and some help would be much appreciated. Ashraf Hanna From morissette at dmsolutions.ca Wed Nov 20 19:12:39 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 20 Nov 2002 22:12:39 -0500 Subject: [mapserver-users] Fatal error: Call to undefined function: querybyattributes() References: <000001c290ec$e7944250$b101000a@David> Message-ID: <3DDC4F27.C948F212@dmsolutions.ca> > David Boggio wrote: > > I have installed Mapserver 3.6.1, and I'm trying to use the > QueryByAttributes function in my script. > But I keep getting this error message : > > Fatal error: Call to undefined function: querybyattributes() > Note that queryByAttributes() is available only in the layerObj. Are you using $map->queryByAttributes() by any chance? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From bwragg at mappingandbeyond.com Wed Nov 20 19:59:14 2002 From: bwragg at mappingandbeyond.com (Benjamin Wragg) Date: Thu, 21 Nov 2002 14:29:14 +1030 Subject: [mapserver-users] MapServer Performance Message-ID: <002401c29112$6467fa90$0100a8c0@mapping12> Hi Guys, I'm just about to start playing with MapServer a bit, but I was just wondering how the performance is along side some of the other map servers like ArcIMS. Thanks, Benjamin Wragg From sig at manobi.sn Thu Nov 21 02:06:46 2002 From: sig at manobi.sn (David Boggio) Date: Thu, 21 Nov 2002 10:06:46 -0000 Subject: [mapserver-users] Fatal error: Call to undefined function: querybyattributes() In-Reply-To: <3DDC4F27.C948F212@dmsolutions.ca> Message-ID: <000201c29145$b32a9b00$b101000a@David> Thanks Daniel. That was the problem. I'm not getting the fatal error anymore. Now I'm having other problems (no match found), but I'm trying to solve them by myself for the moment. -----Message d'origine----- De : Daniel Morissette [mailto:morissette at dmsolutions.ca] Envoy? : jeudi 21 novembre 2002 03:13 ? : David Boggio Cc : mapserver-users at lists.gis.umn.edu Objet : Re: [mapserver-users] Fatal error: Call to undefined function: querybyattributes() > David Boggio wrote: > > I have installed Mapserver 3.6.1, and I'm trying to use the > QueryByAttributes function in my script. But I keep getting this error > message : > > Fatal error: Call to undefined function: querybyattributes() > Note that queryByAttributes() is available only in the layerObj. Are you using $map->queryByAttributes() by any chance? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/2002 From sig at manobi.sn Thu Nov 21 03:45:18 2002 From: sig at manobi.sn (David Boggio) Date: Thu, 21 Nov 2002 11:45:18 -0000 Subject: [mapserver-users] Fatal error: Call to undefined function: querybyattributes() In-Reply-To: <3DDC4F27.C948F212@dmsolutions.ca> Message-ID: <000201c29153$76e16030$b101000a@David> Hi, I've been able to use querybyattributes on a layer, thanks to Daniel's help. It works fine with a single item : $oLayer = $gpoMap->getlayerbyname("connexions"); //get neighborhood layer $oLayer->setfilter("\"3c84fb819c517\""); $oLayer->querybyattributes(MS_MULTIPLE); $img = $gpoMap->drawQuery(); But I can't find the syntax for a multiple query. I tried : $oLayer->setfilter("\"3c84fb819c517\"|\"3c691cde3d1a7\""); But it does not seem to work. The query only returns the first point. Has any got the right syntax? Thanks David Boggio -----Message d'origine----- De : owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] De la part de Daniel Morissette Envoy? : jeudi 21 novembre 2002 03:13 ? : David Boggio Cc : mapserver-users at lists.gis.umn.edu Objet : Re: [mapserver-users] Fatal error: Call to undefined function: querybyattributes() > David Boggio wrote: > > I have installed Mapserver 3.6.1, and I'm trying to use the > QueryByAttributes function in my script. But I keep getting this error > message : > > Fatal error: Call to undefined function: querybyattributes() > Note that queryByAttributes() is available only in the layerObj. Are you using $map->queryByAttributes() by any chance? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002 From armin.burger at libero.it Thu Nov 21 04:33:13 2002 From: armin.burger at libero.it (Armin Burger) Date: Thu, 21 Nov 2002 13:33:13 +0100 Subject: [mapserver-users] Fatal error: Call to undefined function: querybyattributes() Message-ID: <200211211233.gALCXnae025512@lists.gis.umn.edu> David, for more than one item I don't know exactly if this kind of definition works. A filter definition like the following should work anyway: setFilter("('[YOUR_FIELD]'='3c84fb819c517' OR '[YOUR_FIELD]'='3c691cde3d1a7')") with the field names (at least for shapefiles) in upper case. Armin > Hi, > I've been able to use querybyattributes on a layer, thanks to Daniel's > help. > It works fine with a single item : > $oLayer = $gpoMap->getlayerbyname("connexions"); //get > neighborhood layer > $oLayer->setfilter("\"3c84fb819c517\""); > $oLayer->querybyattributes(MS_MULTIPLE); > $img = $gpoMap->drawQuery(); > But I can't find the syntax for a multiple query. I tried : > $oLayer->setfilter("\"3c84fb819c517\"|\"3c691cde3d1a7\""); > But it does not seem to work. The query only returns the first point. > Has any got the right syntax? > Thanks > David Boggio > -----Message d'origine----- > De : owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] De la part de Daniel > Morissette > Envoy? : jeudi 21 novembre 2002 03:13 > ? : David Boggio > Cc : mapserver-users at lists.gis.umn.edu > Objet : Re: [mapserver-users] Fatal error: Call to undefined function: > querybyattributes() >> David Boggio wrote: >> >> I have installed Mapserver 3.6.1, and I'm trying to use the >> QueryByAttributes function in my script. But I keep getting this error >> message : >> >> Fatal error: Call to undefined function: querybyattributes() >> > Note that queryByAttributes() is available only in the layerObj. Are > you using $map->queryByAttributes() by any chance? > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/2002 > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002 From dlowther at ou.edu Thu Nov 21 05:18:15 2002 From: dlowther at ou.edu (Lowther, David W) Date: Thu, 21 Nov 2002 07:18:15 -0600 Subject: [mapserver-users] MapServer Performance Message-ID: Benjamin, I have been using Mapserver for about 2-3 months now. Before that we used a CGI app written around MapObjects and at times we played with ArcIMS to compare performance. In my experience, Mapserver FAR FAR FAR outperforms ESRI products. The real shock for me was that I could load a layer of 55,000 parcels into Arcview 3x, turn the layer on, THEN click refresh on my Mapserver page with those same parcels in the map and the Mapserver page returned well before Arcview finished drawing - consistently. I don't know HOW Mapserver is so fast, but it is. So far performance has been equally as good with other vector layers as well as raster layers. All this, for free, platform independant. I guess while I am on my grateful box I'll add that the support from this mailing list and the user community in general is outstanding. HUGE thanks to all that make and support Mapserver, Dave Lowther Geo Information Systems University of Oklahoma -----Original Message----- From: Benjamin Wragg [mailto:bwragg at mappingandbeyond.com] Sent: Wednesday, November 20, 2002 9:59 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] MapServer Performance Hi Guys, I'm just about to start playing with MapServer a bit, but I was just wondering how the performance is along side some of the other map servers like ArcIMS. Thanks, Benjamin Wragg From jhart at frw.uva.nl Thu Nov 21 05:34:46 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 21 Nov 2002 14:34:46 +0100 Subject: [mapserver-users] SDE performance References: Message-ID: <3DDCE0F6.9060006@frw.uva.nl> (cross-posted to mapserver-dev) Using one database connection for multiple layers could be easier than you think with callback functions. Just create TWO arrays: one with the CONNECTION strings and one an array of function pointers. All pointers are initialized to NULL. With each new CONNECTION, the main program copies the CONNECTION string into the CONNECTION array and passes the array number to the database subprogram (SDE, PostGIS, Oracle). This checks if this connection duplicates a prior one and uses it if it finds one. Else it opens a new connection. In the case of a new CONNECTION it puts the address of a closing function into the second array at the same position as where it got the CONNECTION string from. In the case of an existing CONNECTION it leaves this array element NULL. At the end of the main program the main application loops through the array of function pointers and executes every one that is not NULL. There are two benefits to this: - The main programmer (let's call him Steve) would have to add only a dozen or so lines of pretty trivial code and can put his mind to more urgent matters. Everything else, including the closing mechanisms, has to be done by the database programmers, which is the way it should be - Even more important: database programmers would not be forced to use this mechanism. If they want to close each layer themselves, they are free to do so, as long as they don't touch the functions array. Existing code can be used alongside the new mechanism and adapted when the individual programmers can find time. The only thing that would have to be changed initially would be the manner of passing the CONNECTION to the database program: not a string, but a number pointing into the CONNECTIONstrings array. The following is a working demo: #include // CONNECTION string array char *connStrings[50]; // good old-fashioned C: array of funtion pointers returning int and // accepting int as parameter int (*funcs[50])(int); // closing functions, to be defined by database programmers int closeSDE(i) { printf("SDE closed from connection opened with: %s\n",connStrings[i] ); } int closePostGIS(i) { printf("PostGIS closed from connection opened with: %s\n",connStrings[i] ); } int closeOracle(i) { printf("Oracle closed from connection opened with: %s\n",connStrings[i] ); } main() { int i; // initialize arrays for (i=0;i<50;i++) { connStrings[i] = NULL; funcs[i] = NULL; } // First connection (SDE) connStrings[0] = "Connection string for SDE"; // SDE program opens connection and sets: funcs[0] = closeSDE; // Second connection (PostGIS) connStrings[1] = "Connection string for PostGIS"; // PostGIS program opens connection and sets: funcs[1] = closePostGIS; // Third and following connections (all SDE) connStrings[2] = "Connection string for SDE"; connStrings[3] = "Connection string for SDE"; connStrings[4] = "Connection string for SDE"; // SDE program uses existing connection and doesn't set closing function // Sixth connection connStrings[5] = "Connection string for Oracle"; // Oracle program opens connection and sets: funcs[5] = closeOracle; // Seventh connection connStrings[6] = "Connection string for PostGIS"; // PostGIS program uses existing connection and doesn't set closing function // main program closes all connections at the end for (i=0;i<50;i++) { if (funcs[i]) (*funcs[i])(i); //obfuscated but working! } } How about it? Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl Steve Lime wrote: > I think folks will take it seriously, but the timing may a bit bad with > folks > rushing to polish of work in 3.7. At a minimum this should be logged > in > Bugzilla so it doesn't get lost. If someone would like to work on a fix > > that doesn't involve global variables, but rather a connection pool > that > becomes part of the main mapObj then I (as the SDE guy) would be > happy to work to implement it. I don't think it's too hard, just a > bunch > of bookeeping since you might leverage multiple SDE/Oracle or PostGIS > connections in a single run. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>>>"C F" 11/20/02 12:24PM >>> > > Regarding MapServer creating a NEW db connection for each db layer.... > is > anyone else taking this seriously? I thought this would be just the > beginning of the discussion but there doesn't seem to be too much > interest > in this besides us few. This seems like a pretty unnecessary > performance > constraint. I would think that it would be a fairly easy fix, but it's > not > my place to be making those assumptions... But I just thought I'd bring > it > up again in case everyone forgot :) > > > >>From: Jan Hartmann >>To: mapserver-users at lists.gis.umn.edu >>Subject: Re: [mapserver-users] SDE performance >>Date: Wed, 13 Nov 2002 11:57:40 +0100 >> >>My impression is that this would not be very hard to implement: just a > > >>global array with pointers to every CONNECTION opened in all LAYERS. > > The > >>applications itself (PostGIS, SDE, Oracle) could test for already open > > >>connections. The only thing MapServer itself would have to do is > > closing > >>all connections at the end. >>This would certainly be of great help for Oracle and SDE users; large > > >>connection overheads have been mentioned regularly on this list. Even > > for > >>PostGIS there are advantages; think about reusing complex queries with > > >>spatial operators and TMP tables. IMHO certainly worth looking into! >> >>Jan Hartmann >> >> >>Paul Ramsey wrote: >> >>>One possibility would be to abstract the connection making process a > > bit, > >>>so that a 'getConnection' function first checks a hash to see if > > there is > >>>already a connection with parameters which match the requested > > connection. > >>>It would probably have to reside on the mapObj though... >>> >>>P. >>> >> >>Jan Hartmann >>Department of Geography >>University of Amsterdam > > > > _________________________________________________________________ > Help STOP SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > From Chip.Hankley at gasai.com Thu Nov 21 05:36:18 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Thu, 21 Nov 2002 07:36:18 -0600 Subject: [mapserver-users] MapServer on Windows 95/98/Me using PWS or Xitami Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABF59@postoffice.GASAI.Com> I've set it up on ME with Apache. I found that PWS just didn't work very well on ME. (Apache is free too, you know). FWIW, I found that it was not a particularly stable environment. Chip -----Original Message----- From: Ashraf Hanna [mailto:ashrafhanna at hotmail.com] Sent: Wednesday, November 20, 2002 5:35 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] MapServer on Windows 95/98/Me using PWS or Xitami Hello All, I have got a question which might look a trivial \ silly. Has anyone tried to run mapserver on windows 95/98/ME using the Microsoft Personal Web Server (MS-PWS) or the freely available Xitami, (I guess I should ask, is it possible?) and some help would be much appreciated. Ashraf Hanna From daniel.berstein at dmapas.com Thu Nov 21 04:16:16 2002 From: daniel.berstein at dmapas.com (Daniel Berstein) Date: Thu, 21 Nov 2002 09:16:16 -0300 Subject: [mapserver-users] MapServer on Windows 95/98/Me using PWS or Xitami Message-ID: <01C2913E.A628D950.daniel.berstein@dmapas.com> I've used Xitami with no problems at all. Regards, Daniel Berstein Z. Jefe de Proyectos, dmapas.com Eduardo Hyatt 583, Providencia, Santiago CHILE *(56) (2) 222 22 60 -----Mensaje original----- De: Ashraf Hanna [SMTP:ashrafhanna at hotmail.com] Enviado el: Miercoles, 20 de Noviembre de 2002 20:35 Para: mapserver-users at lists.gis.umn.edu Asunto: [mapserver-users] MapServer on Windows 95/98/Me using PWS or Xitami Hello All, I have got a question which might look a trivial \ silly. Has anyone tried to run mapserver on windows 95/98/ME using the Microsoft Personal Web Server (MS-PWS) or the freely available Xitami, (I guess I should ask, is it possible?) and some help would be much appreciated. Ashraf Hanna From tpcolson at nexussoft.com Thu Nov 21 06:30:23 2002 From: tpcolson at nexussoft.com (Thomas P. Colson) Date: Thu, 21 Nov 2002 09:30:23 -0500 Subject: [mapserver-users] MapServer Performance Message-ID: <8A13872FF821F4488B4A629647DC0C71023FA5@mailman.nexussoft.com> Do you have a link so we can see this mapserver app of yours? I'd like to see this fast refresh...what platform/build options are you using? -----Original Message----- From: Lowther, David W [mailto:dlowther at ou.edu] Sent: Thursday, November 21, 2002 8:18 AM To: 'bwragg at mappingandbeyond.com'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] MapServer Performance Benjamin, I have been using Mapserver for about 2-3 months now. Before that we used a CGI app written around MapObjects and at times we played with ArcIMS to compare performance. In my experience, Mapserver FAR FAR FAR outperforms ESRI products. The real shock for me was that I could load a layer of 55,000 parcels into Arcview 3x, turn the layer on, THEN click refresh on my Mapserver page with those same parcels in the map and the Mapserver page returned well before Arcview finished drawing - consistently. I don't know HOW Mapserver is so fast, but it is. So far performance has been equally as good with other vector layers as well as raster layers. All this, for free, platform independant. I guess while I am on my grateful box I'll add that the support from this mailing list and the user community in general is outstanding. HUGE thanks to all that make and support Mapserver, Dave Lowther Geo Information Systems University of Oklahoma -----Original Message----- From: Benjamin Wragg [mailto:bwragg at mappingandbeyond.com] Sent: Wednesday, November 20, 2002 9:59 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] MapServer Performance Hi Guys, I'm just about to start playing with MapServer a bit, but I was just wondering how the performance is along side some of the other map servers like ArcIMS. Thanks, Benjamin Wragg From vrielink at sarvision.com Thu Nov 21 07:01:39 2002 From: vrielink at sarvision.com (Arjen Vrielink) Date: Thu, 21 Nov 2002 16:01:39 +0100 Subject: [mapserver-users] Mapserver and PostgreSQL Message-ID: <3DDCF553.5030501@sarvision.nl> Hello All, I was wondering if I could connect to a PostgreSQL database directly from Mapserver. The problem is that we have SuSE 8.1 doing the installation of PostgreSQL so we don't have the pg src code on our machine which you need to install / compile PostGIS. Not being convinced about the benefits of POSTGIS after reading the documentation I decided I could live without it. That is, until I tried to get Mapserver connect to my Postgres db --> There are no error messages but I don't get the layer displayed either (I use an ESRI shapefile which I dumped to SQL code for testing). So my basic question is: do I really need Postgis (and what are the benefits of Postgis anyway)? if I really need postgis, I will get the postgres source code and install it manually on my linux box. Suggestions would be appreciated, thanks using: Linux 2.4.something PostgreSQL 7.2 Mapserver 3.6 (PHP 4.3.0RC1) arjen, SarVision Wageningen The Netherlands From hassm at msue.msu.edu Thu Nov 21 06:45:32 2002 From: hassm at msue.msu.edu (Michael D. Hass) Date: Thu, 21 Nov 2002 09:45:32 -0500 Subject: [mapserver-users] MapServer on Windows 95/98/Me using PWS or Xitami In-Reply-To: Message-ID: <3.0.1.32.20021121094532.010a3778@msue.msu.edu> I've used MS on win95 and PWS on a laptop and its worked OK. Its good for a testbed or for demos where web access isn't available. regards, Mike Hass At 10:35 AM 11/21/02 +1100, Ashraf Hanna wrote: >Hello All, > >I have got a question which might look a trivial \ silly. > >Has anyone tried to run mapserver on windows 95/98/ME using the Microsoft >Personal Web Server (MS-PWS) or the freely available Xitami, (I guess I >should ask, is it possible?) and some help would be much appreciated. > >Ashraf Hanna > > From sig at manobi.sn Thu Nov 21 07:12:05 2002 From: sig at manobi.sn (David Boggio) Date: Thu, 21 Nov 2002 15:12:05 -0000 Subject: [mapserver-users] Fatal error: Call to undefined function: querybyattributes() In-Reply-To: <200211211233.gALCXnae025512@lists.gis.umn.edu> Message-ID: <001c01c29170$5a7b9b50$b101000a@David> Armin, Thanks a lot, your syntax works perfectly. I had not tried to put the field name between quotes, although I thought I had tried everything! Isn't there a IN operator ? For example : setFilter("('[YOUR_FIELD]' IN ('3c84fb819c517','3c691cde3d1a7'))") Thanks again David Boggio -----Message d'origine----- De : owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] De la part de Armin Burger Envoy? : jeudi 21 novembre 2002 12:33 ? : mapserver-users at lists.gis.umn.edu Objet : Re: RE : [mapserver-users] Fatal error: Call to undefined function: querybyattributes() David, for more than one item I don't know exactly if this kind of definition works. A filter definition like the following should work anyway: setFilter("('[YOUR_FIELD]'='3c84fb819c517' OR '[YOUR_FIELD]'='3c691cde3d1a7')") with the field names (at least for shapefiles) in upper case. Armin > Hi, > I've been able to use querybyattributes on a layer, thanks to Daniel's > help. It works fine with a single item : > $oLayer = $gpoMap->getlayerbyname("connexions"); //get neighborhood > layer > $oLayer->setfilter("\"3c84fb819c517\""); > $oLayer->querybyattributes(MS_MULTIPLE); > $img = $gpoMap->drawQuery(); > But I can't find the syntax for a multiple query. I tried : > $oLayer->setfilter("\"3c84fb819c517\"|\"3c691cde3d1a7\""); > But it does not seem to work. The query only returns the first point. > Has any got the right syntax? Thanks > David Boggio > -----Message d'origine----- > De : owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] De la part de Daniel > Morissette Envoy? : jeudi 21 novembre 2002 03:13 > ? : David Boggio > Cc : mapserver-users at lists.gis.umn.edu > Objet : Re: [mapserver-users] Fatal error: Call to undefined function: > querybyattributes() >> David Boggio wrote: >> >> I have installed Mapserver 3.6.1, and I'm trying to use the >> QueryByAttributes function in my script. But I keep getting this error >> message : >> >> Fatal error: Call to undefined function: querybyattributes() >> > Note that queryByAttributes() is available only in the layerObj. Are > you using $map->queryByAttributes() by any chance? > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/2002 > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002 From dionnaldbeh at lycos.com Thu Nov 21 07:41:18 2002 From: dionnaldbeh at lycos.com (Dionnald Beh) Date: Thu, 21 Nov 2002 22:41:18 +0700 Subject: [mapserver-users] Please help to solve the Itasca Demo Problems Message-ID: Dear members: I am an undergraduate from University Technology Malaysia and i am a newcomer in this list. My name is Dionnald Beh Boon Heng. For your informatiion, i am trying the Itasca Demo. But, unfortunately i faced a problem. I entered the Mapserver Demo Interface successfully, but, the main map, legend and scalebar do not appear on it. I have no idea to solve this problem. Perhaps, anyone from this mailing list can help me to solve this problem. I am using Windows 2000 Server with MS IIS to run the Itasca Demo. I am worry about it. So, I hope to recieve the reply soon. Thank you. Dionnald Beh Boon Heng Faculty of Geoinformation, Univerity Technology Malaysia, 81300 Skudai, Johor Darul Takzim, Malaysia. _____________________________________________________________ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus From DMartin at erac.com Thu Nov 21 07:48:25 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 21 Nov 2002 09:48:25 -0600 Subject: [mapserver-users] MapServer on Windows 95/98/Me using PWS or Xitami Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B6B@STL-EXBE-I03.corp.erac.com> I personally have not, but I have a lot of experience running PWS - including the use of CGI in PWS. I see no reason why it wouldn't work in PWS. I've found very few things (more like none) that work in IIS but don't work under PWS. Unfortunately, I'm no longer running any PWS systems, or I'd test it out for you. I know nothing about Xitami though. -Dan > -----Original Message----- > From: Ashraf Hanna [mailto:ashrafhanna at hotmail.com] > Sent: Wednesday, November 20, 2002 5:35 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] MapServer on Windows 95/98/Me using PWS or > Xitami > > > Hello All, > > I have got a question which might look a trivial \ silly. > > Has anyone tried to run mapserver on windows 95/98/ME using > the Microsoft > Personal Web Server (MS-PWS) or the freely available Xitami, > (I guess I > should ask, is it possible?) and some help would be much appreciated. > > Ashraf Hanna > From oscar_neto at hotmail.com Thu Nov 21 08:20:24 2002 From: oscar_neto at hotmail.com (Oscar Mesquita Neto) Date: Thu, 21 Nov 2002 13:20:24 -0300 Subject: [mapserver-users] MapServer on Windows 95/98/Me using PWS or Xitami Message-ID: Hi, I've used Mapserver & MS-PWS in my development environment (PHP, Rosa applet, Win 2000). No problems either. Oscar >From: Daniel Berstein >Reply-To: "daniel.berstein at dmapas.com" >To: "'Ashraf Hanna'" , >"mapserver-users at lists.gis.umn.edu" >Subject: RE: [mapserver-users] MapServer on Windows 95/98/Me using PWS or >Xitami >Date: Thu, 21 Nov 2002 09:16:16 -0300 > >I've used Xitami with no problems at all. > >Regards, > >Daniel Berstein Z. >Jefe de Proyectos, dmapas.com >Eduardo Hyatt 583, Providencia, Santiago CHILE >*(56) (2) 222 22 60 > > >-----Mensaje original----- >De: Ashraf Hanna [SMTP:ashrafhanna at hotmail.com] >Enviado el: Miercoles, 20 de Noviembre de 2002 20:35 >Para: mapserver-users at lists.gis.umn.edu >Asunto: [mapserver-users] MapServer on Windows 95/98/Me using PWS or Xitami > >Hello All, > >I have got a question which might look a trivial \ silly. > >Has anyone tried to run mapserver on windows 95/98/ME using the Microsoft >Personal Web Server (MS-PWS) or the freely available Xitami, (I guess I >should ask, is it possible?) and some help would be much appreciated. > >Ashraf Hanna _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From morissette at dmsolutions.ca Thu Nov 21 08:35:40 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 21 Nov 2002 11:35:40 -0500 Subject: [mapserver-users] Fatal error: Call to undefined function: querybyattributes() References: <001c01c29170$5a7b9b50$b101000a@David> Message-ID: <3DDD0B5C.B209FE60@dmsolutions.ca> David Boggio wrote: > > Thanks a lot, your syntax works perfectly. I had not tried to put the > field name between quotes, although I thought I had tried everything! > Isn't there a IN operator ? > > For example : setFilter("('[YOUR_FIELD]' IN > ('3c84fb819c517','3c691cde3d1a7'))") > You could probably use a REGEX: - $layer->set("filteritem", "YOUR_FIELD") - $layer->setFilter("/3c84fb819c517|3c691cde3d1a7/") -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From jhart at frw.uva.nl Thu Nov 21 09:19:10 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 21 Nov 2002 18:19:10 +0100 Subject: [mapserver-users] MapServer Performance References: <8A13872FF821F4488B4A629647DC0C71023FA5@mailman.nexussoft.com> Message-ID: <3DDD158E.2080903@frw.uva.nl> Thomas P. Colson wrote: > Do you have a link so we can see this mapserver app of yours? I'd like to see this fast refresh...what platform/build options are you using? > -----Original Message----- I had the same experience of MapServer being faster than ArcView desktop in some cases. I think MapServer does some generalizing when rasterizing vectors. ArcView always plots all lines, even if they transform to one and the same image pixel, while MapServer prunes them (I think). The effect is very noticeable when you zoomout far from detailed maps. Also, Steve put in some quad-tree wizardry I would like to know more about. Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl > From: Lowther, David W [mailto:dlowther at ou.edu] > Sent: Thursday, November 21, 2002 8:18 AM > To: 'bwragg at mappingandbeyond.com'; mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] MapServer Performance > > > Benjamin, > > I have been using Mapserver for about 2-3 months now. Before that we used a > CGI app written around MapObjects and at times we played with ArcIMS to > compare performance. In my experience, Mapserver FAR FAR FAR outperforms > ESRI products. The real shock for me was that I could load a layer of 55,000 > parcels into Arcview 3x, turn the layer on, THEN click refresh on my > Mapserver page with those same parcels in the map and the Mapserver page > returned well before Arcview finished drawing - consistently. > > I don't know HOW Mapserver is so fast, but it is. So far performance has > been equally as good with other vector layers as well as raster layers. All > this, for free, platform independant. > > I guess while I am on my grateful box I'll add that the support from this > mailing list and the user community in general is outstanding. > > HUGE thanks to all that make and support Mapserver, > > Dave Lowther > Geo Information Systems > University of Oklahoma > > -----Original Message----- > From: Benjamin Wragg [mailto:bwragg at mappingandbeyond.com] > Sent: Wednesday, November 20, 2002 9:59 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] MapServer Performance > > > Hi Guys, > > I'm just about to start playing with MapServer a bit, but I was just > wondering how the performance is along side some of the other map > servers like ArcIMS. > > Thanks, > > Benjamin Wragg > > From erik.van-der-goot at jrc.it Thu Nov 21 09:46:12 2002 From: erik.van-der-goot at jrc.it (Erik Van der Goot) Date: Thu, 21 Nov 2002 18:46:12 +0100 Subject: [mapserver-users] Tomcat Win2000 and Mapserver unresolved. Guru's please Message-ID: <5.1.0.14.2.20021121183940.03993c38@isis-ms.jrc.it> Some time ago I posted a question w.r.t. the above. My main observation is that I see the call to the CGI-BIN work, I get 4 GIF images in the specified TEMP directory on the server but then mapserver hangs. I get nothing back in the browser and I have to manually kill the mapserver.exe process using the Windows taskmanager. Could someone please tell me what mapserver is up to after it has produced the 4 GIFs ? That way I can perhaps deduce what i am doing wrong.. By the way, what exactly is the function of the "program" parameter in the URL??? Thanks a lot Erik From DMartin at erac.com Thu Nov 21 09:45:49 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 21 Nov 2002 11:45:49 -0600 Subject: [mapserver-users] Please help to solve the Itasca Demo Proble ms Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F400@STL-EXBE-I03.corp.erac.com> Dionnald, Have you worked through the documentation at http://mapserver.gis.umn.edu/doc36/demo_readme.html ? -Dan Martin > -----Original Message----- > From: Dionnald Beh [mailto:dionnaldbeh at lycos.com] > Sent: Thursday, November 21, 2002 9:41 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Please help to solve the Itasca > Demo Problems > > > Dear members: > > I am an undergraduate from University Technology Malaysia and > i am a newcomer in this list. My name is Dionnald Beh Boon > Heng. For your informatiion, i am trying the Itasca Demo. > But, unfortunately i faced a problem. > > I entered the Mapserver Demo Interface successfully, but, the > main map, legend and scalebar do not appear on it. I have no > idea to solve this problem. Perhaps, anyone from this mailing > list can help me to solve this problem. > > I am using Windows 2000 Server with MS IIS to run the Itasca Demo. > > I am worry about it. So, I hope to recieve the reply soon. > > Thank you. > > Dionnald Beh Boon Heng > Faculty of Geoinformation, > Univerity Technology Malaysia, > 81300 Skudai, > Johor Darul Takzim, > Malaysia. > > > _____________________________________________________________ > Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. > http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus > From jhart at frw.uva.nl Thu Nov 21 09:50:54 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 21 Nov 2002 18:50:54 +0100 Subject: [mapserver-users] Mapserver and PostgreSQL References: <3DDCF553.5030501@sarvision.nl> Message-ID: <3DDD1CFE.2020002@frw.uva.nl> Arjen Vrielink wrote: > Hello All, > > I was wondering if I could connect to a PostgreSQL database directly > from Mapserver. The problem is that we have SuSE 8.1 doing the > installation of PostgreSQL so we don't have the pg src code on our > machine which you need to install / compile PostGIS. Not being convinced > about the benefits of POSTGIS after reading the documentation I decided > I could live without it. That is, until I tried to get Mapserver connect > to my Postgres db --> There are no error messages but I don't get the > layer displayed either (I use an ESRI shapefile which I dumped to SQL > code for testing). So my basic question is: do I really need Postgis > (and what are the benefits of Postgis anyway)? if I really need postgis, > I will get the postgres source code and install it manually on my linux > box. > > Suggestions would be appreciated, thanks > > using: > Linux 2.4.something > PostgreSQL 7.2 > Mapserver 3.6 > (PHP 4.3.0RC1) > > arjen, > SarVision > Wageningen > The Netherlands > > Arjen, You are not obliged to use PostGIS . MapServer will run quite happily on its own (with great functionality). However, if you are on a Linux platform, I would certainly advise to add PostGreSQL with the PostGIS extension (you cannot connect MapServer to PostgreSQL without it). Reasons: - You can import every database from Windows (including Access) into PostgreSQL by a few mouseclicks using pgAdmin. These data can be uniformly queried by full-featured SQL and combined with GIS maps - You can import most vector GIS files by using shp2pgsql or ogr2ogr and let MapServer build maps based on them. Most important, you can create maps based on combinations of geographical queries (e.g. everything within a certain distance of selected objects), and regular attribute queries (e.g. everything with a certain name). For this you need the PostgreSQL source code. Personally I don't use the locations of standard distributions like SUSE for this: it's very difficult to remember where they put things. I download the source code under my $HOME directory and configure everything with ./configure --prefix=$HOME. After that you need to install the PostGIS extension. If you managed to compile and install MapServer, this should be no problem at all. Perhaps you should wait a few days until PostgreSQL 7.3 is released. Hope this helps. Vriendelijke groeten, Jan Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From teb at mallit.fr.umn.edu Thu Nov 21 09:54:34 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Thu, 21 Nov 2002 11:54:34 -0600 (CST) Subject: [mapserver-users] Tomcat Win2000 and Mapserver unresolved. Guru's please (FWD) Message-ID: <200211211754.gALHsYG23813@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Sender: gooteri at isis-ms.jrc.it Date: Thu, 21 Nov 2002 18:56:22 +0100 To: mapserver-info at lists.gis.umn.edu From: "Erik Van der Goot" Subject: Tomcat Win2000 and Mapserver unresolved. Guru's please Mime-Version: 1.0 Some time ago I posted a question w.r.t. the above. My main observation is that I see the call to the CGI-BIN work, I get 4 GIF images in the specified TEMP directory on the server but then mapserver hangs. I get nothing back in the browser and I have to manually kill the mapserver.exe process using the Windows taskmanager. Could someone please tell me what mapserver is up to after it has produced the 4 GIFs ? That way I can perhaps deduce what i am doing wrong.. By the way, what exactly is the function of the "program" parameter in the URL??? Thanks a lot Erik ------------- End Forwarded Message ------------- From steve.lime at dnr.state.mn.us Thu Nov 21 10:14:30 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 21 Nov 2002 12:14:30 -0600 Subject: [mapserver-users] Fwd: Tomcat Win2000 and Mapserver unresolved. Guru's please Message-ID: An embedded message was scrubbed... From: "Erik Van der Goot" Subject: Tomcat Win2000 and Mapserver unresolved. Guru's please Date: Thu, 21 Nov 2002 18:56:22 +0100 Size: 2183 URL: From keon at nacse.org Thu Nov 21 10:16:16 2002 From: keon at nacse.org (Dylan Keon) Date: Thu, 21 Nov 2002 10:16:16 -0800 Subject: [mapserver-users] MapServer Performance References: Message-ID: <3DDD22F0.4000305@nacse.org> I've had the same experience as Dave. Prior to experimenting with MapServer I used ArcIMS to develop web-based mapping applications. Although ArcIMS offers more features out of the box (buffering, ease of setting up a standard interface, etc), it doesn't hold a candle to MapServer in terms of speed, certainly not when both are used on similar hardware. I put together a test interface for browsing all Oregon DRGs (somewhere around 1900 quads, ~20GB of data). This was on an old P3 550MHz box running Linux. The combination of MapServer, gdaltindex, and scale dependency (1:24k DRGs set to MAXSCALE 50000) allow search times of about a second when a user navigates around. Pretty impressive for that hardware, in my opinion. Some listers (e.g., Ed McNierney) are running fast MapServer applications against terabytes of data. Search the list archives and you'll find some good info. -- ************************************************ Dylan Keon GIS/Database Research Specialist Northwest Alliance for Computational Science and Engineering (NACSE) Oregon State University Corvallis, OR 97331 keon at nacse.org (541) 737-6608 ************************************************ Lowther, David W wrote: > Benjamin, > > I have been using Mapserver for about 2-3 months now. Before that we used a > CGI app written around MapObjects and at times we played with ArcIMS to > compare performance. In my experience, Mapserver FAR FAR FAR outperforms > ESRI products. The real shock for me was that I could load a layer of 55,000 > parcels into Arcview 3x, turn the layer on, THEN click refresh on my > Mapserver page with those same parcels in the map and the Mapserver page > returned well before Arcview finished drawing - consistently. > > I don't know HOW Mapserver is so fast, but it is. So far performance has > been equally as good with other vector layers as well as raster layers. All > this, for free, platform independant. > > I guess while I am on my grateful box I'll add that the support from this > mailing list and the user community in general is outstanding. > > HUGE thanks to all that make and support Mapserver, > > Dave Lowther > Geo Information Systems > University of Oklahoma > > -----Original Message----- > From: Benjamin Wragg [mailto:bwragg at mappingandbeyond.com] > Sent: Wednesday, November 20, 2002 9:59 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] MapServer Performance > > > Hi Guys, > > I'm just about to start playing with MapServer a bit, but I was just > wondering how the performance is along side some of the other map > servers like ArcIMS. > > Thanks, > > Benjamin Wragg From kames at keyspanenergy.com Thu Nov 21 11:24:46 2002 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Thu, 21 Nov 2002 14:24:46 -0500 Subject: [mapserver-users] Mapserver and PostgreSQL References: <3DDCF553.5030501@sarvision.nl> <3DDD1CFE.2020002@frw.uva.nl> Message-ID: <3DDD32FE.BAC33828@keyspanenergy.com> I'd not heard of shp2pgsql before. Is there a windows version of shp2pgsql around? I looked in my Mapserver directory and don't see it. Thanks, Kieran Jan Hartmann wrote: > Arjen Vrielink wrote: > > Hello All, > > > > I was wondering if I could connect to a PostgreSQL database directly > > from Mapserver. The problem is that we have SuSE 8.1 doing the > > installation of PostgreSQL so we don't have the pg src code on our > > machine which you need to install / compile PostGIS. Not being convinced > > about the benefits of POSTGIS after reading the documentation I decided > > I could live without it. That is, until I tried to get Mapserver connect > > to my Postgres db --> There are no error messages but I don't get the > > layer displayed either (I use an ESRI shapefile which I dumped to SQL > > code for testing). So my basic question is: do I really need Postgis > > (and what are the benefits of Postgis anyway)? if I really need postgis, > > I will get the postgres source code and install it manually on my linux > > box. > > > > Suggestions would be appreciated, thanks > > > > using: > > Linux 2.4.something > > PostgreSQL 7.2 > > Mapserver 3.6 > > (PHP 4.3.0RC1) > > > > arjen, > > SarVision > > Wageningen > > The Netherlands > > > > > > Arjen, > > You are not obliged to use PostGIS . MapServer will run quite happily on > its own (with great functionality). However, if you are on a Linux > platform, I would certainly advise to add PostGreSQL with the PostGIS > extension (you cannot connect MapServer to PostgreSQL without it). Reasons: > > - You can import every database from Windows (including Access) into > PostgreSQL by a few mouseclicks using pgAdmin. These data can be > uniformly queried by full-featured SQL and combined with GIS maps > - You can import most vector GIS files by using shp2pgsql or ogr2ogr and > let MapServer build maps based on them. Most important, you can create > maps based on combinations of geographical queries (e.g. everything > within a certain distance of selected objects), and regular attribute > queries (e.g. everything with a certain name). > > For this you need the PostgreSQL source code. Personally I don't use the > locations of standard distributions like SUSE for this: it's very > difficult to remember where they put things. I download the source code > under my $HOME directory and configure everything with ./configure > --prefix=$HOME. After that you need to install the PostGIS extension. If > you managed to compile and install MapServer, this should be no problem > at all. Perhaps you should wait a few days until PostgreSQL 7.3 is released. > > Hope this helps. > > Vriendelijke groeten, > > Jan > > Jan Hartmann > Department of Geography > University of Amsterdam > jhart at frw.uva.nl From ed at topozone.com Thu Nov 21 11:35:58 2002 From: ed at topozone.com (Ed McNierney) Date: Thu, 21 Nov 2002 14:35:58 -0500 Subject: [mapserver-users] MapServer Performance Message-ID: <13858AA1A74F30419F319ACB66A9D1221F3972@mercator.topozone.com> Folks - I have been very pleased with MapServer performance on a variety of applications. Good data design is also a very important part of any application. I have never done head-to-head comparisons with ArcIMS, because I could not afford a copy of ArcIMS. If anyone has a SPECIFIC project in mind, I'd be happy to help with performance tuning. There are far too many parameters possible to spend time on a "here's how to totally optimize every conceivable MapServer app on any hardware you like".... - 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: Dylan Keon [mailto:keon at nacse.org] Sent: Thursday, November 21, 2002 1:16 PM To: 'bwragg at mappingandbeyond.com' Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] MapServer Performance I've had the same experience as Dave. Prior to experimenting with MapServer I used ArcIMS to develop web-based mapping applications. Although ArcIMS offers more features out of the box (buffering, ease of setting up a standard interface, etc), it doesn't hold a candle to MapServer in terms of speed, certainly not when both are used on similar hardware. I put together a test interface for browsing all Oregon DRGs (somewhere around 1900 quads, ~20GB of data). This was on an old P3 550MHz box running Linux. The combination of MapServer, gdaltindex, and scale dependency (1:24k DRGs set to MAXSCALE 50000) allow search times of about a second when a user navigates around. Pretty impressive for that hardware, in my opinion. Some listers (e.g., Ed McNierney) are running fast MapServer applications against terabytes of data. Search the list archives and you'll find some good info. -- ************************************************ Dylan Keon GIS/Database Research Specialist Northwest Alliance for Computational Science and Engineering (NACSE) Oregon State University Corvallis, OR 97331 keon at nacse.org (541) 737-6608 ************************************************ Lowther, David W wrote: > Benjamin, > > I have been using Mapserver for about 2-3 months now. Before that we used a > CGI app written around MapObjects and at times we played with ArcIMS to > compare performance. In my experience, Mapserver FAR FAR FAR outperforms > ESRI products. The real shock for me was that I could load a layer of 55,000 > parcels into Arcview 3x, turn the layer on, THEN click refresh on my > Mapserver page with those same parcels in the map and the Mapserver page > returned well before Arcview finished drawing - consistently. > > I don't know HOW Mapserver is so fast, but it is. So far performance has > been equally as good with other vector layers as well as raster layers. All > this, for free, platform independant. > > I guess while I am on my grateful box I'll add that the support from this > mailing list and the user community in general is outstanding. > > HUGE thanks to all that make and support Mapserver, > > Dave Lowther > Geo Information Systems > University of Oklahoma > > -----Original Message----- > From: Benjamin Wragg [mailto:bwragg at mappingandbeyond.com] > Sent: Wednesday, November 20, 2002 9:59 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] MapServer Performance > > > Hi Guys, > > I'm just about to start playing with MapServer a bit, but I was just > wondering how the performance is along side some of the other map > servers like ArcIMS. > > Thanks, > > Benjamin Wragg From vrielink at sarvision.com Thu Nov 21 11:45:34 2002 From: vrielink at sarvision.com (Arjen Vrielink) Date: Thu, 21 Nov 2002 20:45:34 +0100 Subject: [mapserver-users] Mapserver and PostgreSQL In-Reply-To: <3DDD1CFE.2020002@frw.uva.nl> References: <3DDCF553.5030501@sarvision.nl> <3DDD1CFE.2020002@frw.uva.nl> Message-ID: <200211212045.34940.vrielink@sarvision.com> Jan, bedankt voor je hulp ;) The use of PostgreSQL is not the issue here (I already build some sort of homebrew PHP tool for my own needs by building classes to extract and draw geometric attributes from a Postgres db) i.e. I just love Postgres! I was just wondering about the Postgis thing. I still think Postgis doesn't really add much GIS functionality to Postgres other than the conversion thing and some abstraction of Postgres built in functionality. But by being a key player in the Mapserver - Postgres connection they hold some pretty strong cards... hmm, I'm convinced after all. So I will do as you adviced and wait for the 7.3 release of Postgres and install both Postgres and Postgis from source code to conquer my spot in the webGIS community. Thanks! Arjen On Thursday 21 November 2002 18:50, Jan Hartmann wrote: > Arjen Vrielink wrote: > > Hello All, > > > > I was wondering if I could connect to a PostgreSQL database directly > > from Mapserver. The problem is that we have SuSE 8.1 doing the > > installation of PostgreSQL so we don't have the pg src code on our > > machine which you need to install / compile PostGIS. Not being convinced > > about the benefits of POSTGIS after reading the documentation I decided > > I could live without it. That is, until I tried to get Mapserver connect > > to my Postgres db --> There are no error messages but I don't get the > > layer displayed either (I use an ESRI shapefile which I dumped to SQL > > code for testing). So my basic question is: do I really need Postgis > > (and what are the benefits of Postgis anyway)? if I really need postgis, > > I will get the postgres source code and install it manually on my linux > > box. > > > > Suggestions would be appreciated, thanks > > > > using: > > Linux 2.4.something > > PostgreSQL 7.2 > > Mapserver 3.6 > > (PHP 4.3.0RC1) > > > > arjen, > > SarVision > > Wageningen > > The Netherlands > > Arjen, > > You are not obliged to use PostGIS . MapServer will run quite happily on > its own (with great functionality). However, if you are on a Linux > platform, I would certainly advise to add PostGreSQL with the PostGIS > extension (you cannot connect MapServer to PostgreSQL without it). Reasons: > > - You can import every database from Windows (including Access) into > PostgreSQL by a few mouseclicks using pgAdmin. These data can be > uniformly queried by full-featured SQL and combined with GIS maps > - You can import most vector GIS files by using shp2pgsql or ogr2ogr and > let MapServer build maps based on them. Most important, you can create > maps based on combinations of geographical queries (e.g. everything > within a certain distance of selected objects), and regular attribute > queries (e.g. everything with a certain name). > > For this you need the PostgreSQL source code. Personally I don't use the > locations of standard distributions like SUSE for this: it's very > difficult to remember where they put things. I download the source code > under my $HOME directory and configure everything with ./configure > --prefix=$HOME. After that you need to install the PostGIS extension. If > you managed to compile and install MapServer, this should be no problem > at all. Perhaps you should wait a few days until PostgreSQL 7.3 is > released. > > Hope this helps. > > > Vriendelijke groeten, > > Jan > > Jan Hartmann > Department of Geography > University of Amsterdam > jhart at frw.uva.nl From sgillies at frii.com Thu Nov 21 11:46:13 2002 From: sgillies at frii.com (Sean Gillies) Date: Thu, 21 Nov 2002 12:46:13 -0700 Subject: [mapserver-users] MapServer Performance In-Reply-To: <8A13872FF821F4488B4A629647DC0C71023FA5@mailman.nexussoft.com> References: <8A13872FF821F4488B4A629647DC0C71023FA5@mailman.nexussoft.com> <3DDD158E.2080903@frw.uva.nl> Message-ID: <3DDD3805.5080601@frii.com> If you refresh your browser window, the content should come from your browser cache, not from the server. Refreshing a page is not necessarily a great test of performance. I never found Mapserver to be as fast as ArcView on my desktop, but found it to be competitive with other web map software. I should say that I never bothered to make a serious trial. Performance is good enough, but Mapserver's edge is platform-independence and extend- ibility with Mapscript. With other software, you have to live with the functionality that the developers give you. With Mapserver, you are the developer, and the sky is the limit. Sean Jan Hartmann wrote: > > > Thomas P. Colson wrote: > > > Do you have a link so we can see this mapserver app of yours? I'd like > > to see this fast refresh...what platform/build options are you using? > > -----Original Message----- > > > I had the same experience of MapServer being faster than ArcView desktop > in some cases. I think MapServer does some generalizing when rasterizing > vectors. ArcView always plots all lines, even if they transform to one > and the same image pixel, while MapServer prunes them (I think). The > effect is very noticeable when you zoomout far from detailed maps. Also, > Steve put in some quad-tree wizardry I would like to know more about. > > Jan Hartmann > Department of Geography > University of Amsterdam > jhart at frw.uva.nl > > > > From: Lowther, David W [mailto:dlowther at ou.edu] > > Sent: Thursday, November 21, 2002 8:18 AM > > To: 'bwragg at mappingandbeyond.com'; mapserver-users at lists.gis.umn.edu > > Subject: RE: [mapserver-users] MapServer Performance > > > > > > Benjamin, > > > > I have been using Mapserver for about 2-3 months now. Before that we > > used a > > CGI app written around MapObjects and at times we played with ArcIMS to > > compare performance. In my experience, Mapserver FAR FAR FAR outperforms > > ESRI products. The real shock for me was that I could load a layer of > > 55,000 > > parcels into Arcview 3x, turn the layer on, THEN click refresh on my > > Mapserver page with those same parcels in the map and the Mapserver page > > returned well before Arcview finished drawing - consistently. > > > > I don't know HOW Mapserver is so fast, but it is. So far performance has > > been equally as good with other vector layers as well as raster > > layers. All > > this, for free, platform independant. > > > > I guess while I am on my grateful box I'll add that the support from > this > > mailing list and the user community in general is outstanding. > > > > HUGE thanks to all that make and support Mapserver, > > > > Dave Lowther > > Geo Information Systems > > University of Oklahoma > > > > -----Original Message----- > > From: Benjamin Wragg [mailto:bwragg at mappingandbeyond.com] > > Sent: Wednesday, November 20, 2002 9:59 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] MapServer Performance > > > > > > Hi Guys, > > > > I'm just about to start playing with MapServer a bit, but I was just > > wondering how the performance is along side some of the other map > > servers like ArcIMS. > > > > Thanks, > > > > Benjamin Wragg > > > > > > From Peter.Bruton at ccrs.nrcan.gc.ca Thu Nov 21 12:04:58 2002 From: Peter.Bruton at ccrs.nrcan.gc.ca (Peter.Bruton at ccrs.nrcan.gc.ca) Date: Thu, 21 Nov 2002 15:04:58 -0500 Subject: [mapserver-users] creating truetype font files Message-ID: <7CDD7B94357FD5119E800002A537C46EB0FE96@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello; I am trying to create a truetype font file for use in MapServer. My Mapserver install in version 3.6.3 on a LINUX platform. To create the font, I used High Logic's Font Creator 3.1.1. I selected "Unicode" as the font template. For testing purposes I simply added 1 glyph at the font cell with the exclamation point caption. After saving the newly created font, I installed it on my PC (Microsoft Windows 2000 OS). Then I viewed the font file using the OS's Character Map. The glyph appeared correctly. I then opened up Microsoft WORD and tested the font. The font correctly rendered the glyph. After transferring the new font file to my LINUX box, I used FreeType's "ftdump" to examine the fonts properties. They were as follows: [bruton at grumbler fonts]$ ftdump mysecondfont.ttf There is 1 face in this file. ----- Face number: 0 ----- font name entries family: NewUnicodeFont style: Regular postscript: NewUnicodeFont font type entries FreeType driver: truetype sfnt wrapped: yes type: scalable direction: horizontal fixed width: no glyph names: yes EM size: 2048 global BBox: (25,0):(1280,1280) ascent: 1854 descent: -434 text height: 2355 charmaps 0: platform: 1, encoding: 0 1: platform: 3, encoding: 1 Based upon the results of previous ftdumps I performed on truetype fonts files (ESRI truetype fonts such as esri_39.ttf and esri_33.ttf) I have successfully used in a MapServer map file to symbolize points, I expected this font to work properly. It seems that MapServer accepts "Windows Unicode" as a valid character mapping (platform = 3 and platform specific encoding = 1). I added the new font file to the "fonts.list" file and then added a new symbol based upon this file to my "symbols.sym" file. SYMBOL NAME uuuuuu TYPE TRUETYPE FONT mysecondfont FILLED TRUE ANTIALIAS TRUE CHARACTER "!" END This symbol was then used to symbolize points from an ArcView point shapefile. The points were being successfully rendered when I used a previously defined symbol. However, when I changed the existing symbol to the newly added symbol, the points were no longer rendered on the map. Another interesting behavior is the font files appearance in MapLab. My organization uses DM Solutions MapLab (2.0rc2) to create/edit and maintain map files. The MapEdit module of MapLab displays a sample of all font files contained in the "font.list" file when a map author clicks on the "Font" property of a Classes Label object. With the exception of the font file I created, all other fonts have characters displayed. Any assistance in creating valid truetype font file is appreciated. Have a good day. Peter Bruton GeoAccess Division Canada Centre for Remote Sensing 615 Booth Street, Room 650 Ottawa, Ontario, K1A 0E9, Canada telephone 1-613-947-0465 fax 1-613-947-2410 From brclark at usgs.gov Thu Nov 21 12:24:11 2002 From: brclark at usgs.gov (Brian Clark) Date: Thu, 21 Nov 2002 14:24:11 -0600 Subject: [mapserver-users] Raster pixel value Message-ID: <3DDD40EB.2010709@usgs.gov> Is there a way, using Mapserver, to pick a point on a raster and return the pixel value? Such as elevations from a DEM? Thanks in advance, -- **************************************************************** Brian R. Clark, Hydrologist Email: brclark at usgs.gov U.S. Geological Survey, WRD Phone: (501)228-3655 Arkansas District Fax: (501)228-3601 401 Hardin Road Little Rock, Arkansas 72211 **************************************************************** From sctweedy at NRCan.gc.ca Thu Nov 21 12:40:30 2002 From: sctweedy at NRCan.gc.ca (Tweedy, Scott) Date: Thu, 21 Nov 2002 15:40:30 -0500 Subject: [mapserver-users] Mapping a raster colour to Transparent Message-ID: <5ACEEE96F4F9D41190790002A528B51E02740BAD@s0-ott-x11.nrn.nrcan.gc.ca> Is there any way to use MapServer to map a specific colour value in an input file to end up being transparent in the output PNG or GIF? What I am trying to do is take all the pixel values of "white" from an input TIFF image and map those values so that they are transparent when they are viewed in a mapping application. If anyone knows if this is possible, or how to do it, I would appreciate it very much. Thanks in advance, st From warmerdam at pobox.com Thu Nov 21 12:53:29 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 21 Nov 2002 15:53:29 -0500 Subject: [mapserver-users] Mapping a raster colour to Transparent References: <5ACEEE96F4F9D41190790002A528B51E02740BAD@s0-ott-x11.nrn.nrcan.gc.ca> Message-ID: <3DDD47C9.1040508@pobox.com> Tweedy, Scott wrote: > Is there any way to use MapServer to map a specific colour value in an input > file to end up being transparent in the output PNG or GIF? > > What I am trying to do is take all the pixel values of "white" from an input > TIFF image and map those values so that they are transparent when they are > viewed in a mapping application. > > If anyone knows if this is possible, or how to do it, I would appreciate it > very much. Scott, If the input file is RGB (24bit) then I think this is only supported in 3.7 where you would say "OFFSITE red_value green_value blue_value". If it is a pseudo-colored or greyscale file then you can use "OFFSITE n". Good luck, -- ---------------------------------------+-------------------------------------- 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 warmerdam at pobox.com Thu Nov 21 12:55:19 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 21 Nov 2002 15:55:19 -0500 Subject: [mapserver-users] Raster pixel value References: <3DDD40EB.2010709@usgs.gov> Message-ID: <3DDD4837.2090208@pobox.com> Brian Clark wrote: > Is there a way, using Mapserver, to pick a point on a raster and return > the pixel value? Such as elevations from a DEM? Brian, I don't believe this is possible within mapserver. The current architecture for rasters in MapServer is such that pretty much the only API interface between mapserver and the raster support is the msDrawRasterLayer() call. This is different than shapefiles where there are mapserver functions to fetch individual shapes from a shapefile accessable from mapscript. So, not it isn't available, and it would not be trivial to do so. 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 keon at nacse.org Thu Nov 21 12:57:10 2002 From: keon at nacse.org (Dylan Keon) Date: Thu, 21 Nov 2002 12:57:10 -0800 Subject: [mapserver-users] Mapping a raster colour to Transparent References: <5ACEEE96F4F9D41190790002A528B51E02740BAD@s0-ott-x11.nrn.nrcan.gc.ca> Message-ID: <3DDD48A6.60801@nacse.org> Tweedy, Scott wrote: > Is there any way to use MapServer to map a specific colour value in an > input file to end up being transparent in the output PNG or GIF? Check out the OFFSITE parameter. If you have a standard colormap (for a DRG, for example), like this: # value red green blue 0 255 255 255 1 0 0 0 2 255 255 255 3 91 159 230 4 230 45 30 ... give OFFSITE the value of the pixels you want to be transparent, like this: LAYER NAME drg_index STATUS ON TYPE raster OFFSITE 0 TILEINDEX drg_index TILEITEM "location" MAXSCALE 50000 MINSCALE 2000 END --Dylan -- ************************************************ Dylan Keon GIS/Database Research Specialist Northwest Alliance for Computational Science and Engineering (NACSE) Oregon State University Corvallis, OR 97331 keon at nacse.org (541) 737-6608 ************************************************ From rjames57 at yahoo.com Thu Nov 21 13:05:08 2002 From: rjames57 at yahoo.com (randy james) Date: Thu, 21 Nov 2002 13:05:08 -0800 (PST) Subject: [mapserver-users] creating truetype font files In-Reply-To: <7CDD7B94357FD5119E800002A537C46EB0FE96@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <20021121210508.98178.qmail@web12506.mail.yahoo.com> I've had a few problems with fonts on my system, i was using a font that did not use unicode mapping and had the problems you discribe. When you added the glyph to 0033 was the glyph the shape of an explanation mark? I ask because all the problems i had were related to the fact that when the glyph at a unicode cell was not the glyph that should have been there, the character did not show up. hope this helps Cheers --- Peter.Bruton at ccrs.nrcan.gc.ca wrote: > Hello; > > I am trying to create a truetype font file for use > in MapServer. My > Mapserver install in version 3.6.3 on a LINUX > platform. > > To create the font, I used High Logic's Font Creator > 3.1.1. I selected > "Unicode" as the font template. For testing > purposes I simply added 1 glyph > at the font cell with the exclamation point caption. > After saving the newly > created font, I installed it on my PC (Microsoft > Windows 2000 OS). Then I > viewed the font file using the OS's Character Map. > The glyph appeared > correctly. I then opened up Microsoft WORD and > tested the font. The font > correctly rendered the glyph. > > After transferring the new font file to my LINUX > box, I used FreeType's > "ftdump" to examine the fonts properties. They were > as follows: > > > [bruton at grumbler fonts]$ ftdump mysecondfont.ttf > There is 1 face in this file. > > ----- Face number: 0 ----- > > font name entries > family: NewUnicodeFont > style: Regular > postscript: NewUnicodeFont > > font type entries > FreeType driver: truetype > sfnt wrapped: yes > type: scalable > direction: horizontal > fixed width: no > glyph names: yes > EM size: 2048 > global BBox: (25,0):(1280,1280) > ascent: 1854 > descent: -434 > text height: 2355 > > charmaps > 0: platform: 1, encoding: 0 > 1: platform: 3, encoding: 1 > > Based upon the results of previous ftdumps I > performed on truetype fonts > files (ESRI truetype fonts such as esri_39.ttf and > esri_33.ttf) I have > successfully used in a MapServer map file to > symbolize points, I expected > this font to work properly. It seems that MapServer > accepts "Windows > Unicode" as a valid character mapping (platform = 3 > and platform specific > encoding = 1). > > I added the new font file to the "fonts.list" file > and then added a new > symbol based upon this file to my "symbols.sym" > file. > > SYMBOL > NAME uuuuuu > TYPE TRUETYPE > FONT mysecondfont > FILLED TRUE > ANTIALIAS TRUE > CHARACTER "!" > END > > This symbol was then used to symbolize points from > an ArcView point > shapefile. The points were being successfully > rendered when I used a > previously defined symbol. However, when I changed > the existing symbol to > the newly added symbol, the points were no longer > rendered on the map. > > Another interesting behavior is the font files > appearance in MapLab. My > organization uses DM Solutions MapLab (2.0rc2) to > create/edit and maintain > map files. The MapEdit module of MapLab displays a > sample of all font files > contained in the "font.list" file when a map author > clicks on the "Font" > property of a Classes Label object. With the > exception of the font file I > created, all other fonts have characters displayed. > > Any assistance in creating valid truetype font file > is appreciated. > > Have a good day. > > Peter Bruton > GeoAccess Division > Canada Centre for Remote Sensing > 615 Booth Street, Room 650 > Ottawa, Ontario, K1A 0E9, Canada > telephone 1-613-947-0465 > fax 1-613-947-2410 > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus ? Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From S.Kolomeitz at toowoomba.qld.gov.au Thu Nov 21 13:50:43 2002 From: S.Kolomeitz at toowoomba.qld.gov.au (Shaun Kolomeitz) Date: Fri, 22 Nov 2002 07:50:43 +1000 Subject: [mapserver-users] Raster images in a DB Message-ID: Dear MapServers, Has anyone thought of developing a mechanism to store raster images in a database ? The reason I ask is that we have all of our current and historical imagery within ArcSDE and it runs like a cut cat (ie great !). Tiling, raster resampling etc are all done within the db and utilised by the clients (like ArcMap, ArcIMS) at request time. Has anyone dabbled in this area ? Would PostGreSQL or MySQL be the likely contenders ? Are current methods working fine without this ? Regards, Shaun Kolomeitz eBusiness Manager, Toowoomba City Council Phone: 07 4688 6863 Mail to:S.Kolomeitz at toowoomba.qld.gov.au ----------------------------------------------------------- This email message (and any accompanying file attachments) may contain confidential or privileged information and is intended for the sole use of the addressee(s) named above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, please notify Toowoomba City Council immediately and destroy any copies of the original message. Any unauthorised review, use, alteration, disclosure or distribution of this email (including any attachments) by an unintended recipient is prohibited. While all care is taken, Council cannot guarantee that this email message (and any accompanying file attachments) are free of viruses. The Council accepts no responsibility for the content of any email which is sent by an employee which is of a personal nature or which represents the personal view of the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Timothy.Mackey at ga.gov.au Thu Nov 21 13:55:35 2002 From: Timothy.Mackey at ga.gov.au (Timothy.Mackey at ga.gov.au) Date: Fri, 22 Nov 2002 08:55:35 +1100 Subject: [mapserver-users] PDF generation Message-ID: Hi all, My organisation is interested in producing PDF output from mapserver using PERL (rather than PHP) mapscript, similar to what Antti has done: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapscriptPDF Is anybody out ther already doing it? If not, is anybody interested in writing something for us? We might even be able to come up with some cash.... regards, Tim Mackey Webmaster Geoscience Australia timothy.mackey at ga.gov.au http://www.ga.gov.au From jmccue at geovue.com Thu Nov 21 13:57:36 2002 From: jmccue at geovue.com (John McCue) Date: Thu, 21 Nov 2002 16:57:36 -0500 Subject: [mapserver-users] Using spatial indexes with tiled indexes Message-ID: Is it possible to use spatial indexes with tile indexes? We would like to have one tile index for a particular layer, and make a spatial index for each of the tiles. Thanks in advance! John From steve.lime at dnr.state.mn.us Thu Nov 21 14:06:46 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 21 Nov 2002 16:06:46 -0600 Subject: [mapserver-users] Raster pixel value Message-ID: Not yet although this is a planned addition. Volunteers? Steve >>> Brian Clark 11/21/02 02:24PM >>> Is there a way, using Mapserver, to pick a point on a raster and return the pixel value? Such as elevations from a DEM? Thanks in advance, -- **************************************************************** Brian R. Clark, Hydrologist Email: brclark at usgs.gov U.S. Geological Survey, WRD Phone: (501)228-3655 Arkansas District Fax: (501)228-3601 401 Hardin Road Little Rock, Arkansas 72211 **************************************************************** From dlowther at ou.edu Thu Nov 21 14:12:00 2002 From: dlowther at ou.edu (Lowther, David W) Date: Thu, 21 Nov 2002 16:12:00 -0600 Subject: [mapserver-users] MapServer Performance Message-ID: I do indeed have a link. I would just like to add one qualification: We are having major outbound bandwidth problems. The problems that I anticipate many of you having when accessing the site will be resolved within a week or so by colocating servers. That's life in a university environment where being able to serve and download Shania Twain's latest mp3 is more important than anything else... Then again, maybe it's my priorities that are out of whack. http://geo.ou.edu/ncdemo.htm http://geo.ou.edu/okstatedemo.htm Both of these are under development. WinNT4.0 IIS4 P4 2ghz 1gb RAM 64MB Video. As far as build I'm using one of the 3.6.3 win binary downloads. Nothing fancy. Data is in shapefiles. Dave Geo Information Systems University of Oklahoma -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Thursday, November 21, 2002 8:30 AM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] MapServer Performance Do you have a link so we can see this mapserver app of yours? I'd like to see this fast refresh...what platform/build options are you using? -----Original Message----- From: Lowther, David W [mailto:dlowther at ou.edu] Sent: Thursday, November 21, 2002 8:18 AM To: 'bwragg at mappingandbeyond.com'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] MapServer Performance Benjamin, I have been using Mapserver for about 2-3 months now. Before that we used a CGI app written around MapObjects and at times we played with ArcIMS to compare performance. In my experience, Mapserver FAR FAR FAR outperforms ESRI products. The real shock for me was that I could load a layer of 55,000 parcels into Arcview 3x, turn the layer on, THEN click refresh on my Mapserver page with those same parcels in the map and the Mapserver page returned well before Arcview finished drawing - consistently. I don't know HOW Mapserver is so fast, but it is. So far performance has been equally as good with other vector layers as well as raster layers. All this, for free, platform independant. I guess while I am on my grateful box I'll add that the support from this mailing list and the user community in general is outstanding. HUGE thanks to all that make and support Mapserver, Dave Lowther Geo Information Systems University of Oklahoma -----Original Message----- From: Benjamin Wragg [mailto:bwragg at mappingandbeyond.com] Sent: Wednesday, November 20, 2002 9:59 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] MapServer Performance Hi Guys, I'm just about to start playing with MapServer a bit, but I was just wondering how the performance is along side some of the other map servers like ArcIMS. Thanks, Benjamin Wragg From r00t at ntelos.net Thu Nov 21 14:14:50 2002 From: r00t at ntelos.net (Jim Burnett) Date: Thu, 21 Nov 2002 17:14:50 -0500 Subject: [mapserver-users] Help needed on phpgis project...... Message-ID: <010c01c291ab$693e7050$de01a8c0@domain.emasi.com> Its time to create a complete management tool for phpGIS! Read more here.... http://www.phpgis.org/help.php Thanks -Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Hankley at gasai.com Thu Nov 21 14:23:38 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Thu, 21 Nov 2002 16:23:38 -0600 Subject: [mapserver-users] Mapping a raster colour to Transparent Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABF68@postoffice.GASAI.Com> Scott... are you talking about making some portion of a raster based layer transparent? If so, use the OFFSITE parameter. Chip -----Original Message----- From: Tweedy, Scott [mailto:sctweedy at NRCan.gc.ca] Sent: Thursday, November 21, 2002 2:41 PM To: MapServer Users (E-mail) Subject: [mapserver-users] Mapping a raster colour to Transparent Is there any way to use MapServer to map a specific colour value in an input file to end up being transparent in the output PNG or GIF? What I am trying to do is take all the pixel values of "white" from an input TIFF image and map those values so that they are transparent when they are viewed in a mapping application. If anyone knows if this is possible, or how to do it, I would appreciate it very much. Thanks in advance, st From vatsavai at cs.umn.edu Thu Nov 21 14:26:10 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Thu, 21 Nov 2002 16:26:10 -0600 (CST) Subject: [mapserver-users] mdp cvs access Message-ID: <200211212226.QAA21743@pluto.cs.umn.edu> Hello All, Password for CVS access to mapserver_docs repository has been changed. Let me know if any contributer requiring access to msdoc user. Thanks Raju ---- From dlowther at ou.edu Thu Nov 21 14:36:30 2002 From: dlowther at ou.edu (Lowther, David W) Date: Thu, 21 Nov 2002 16:36:30 -0600 Subject: [mapserver-users] MapServer Performance Message-ID: I should clarify... I have a Refresh Map button / link in my implementation that redraws the map. Mainly used if a user tunr on / off layers and wants to see the results. Sorry for the confusion. Dave -----Original Message----- From: Sean Gillies [mailto:sgillies at frii.com] Sent: Thursday, November 21, 2002 1:46 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] MapServer Performance If you refresh your browser window, the content should come from your browser cache, not from the server. Refreshing a page is not necessarily a great test of performance. I never found Mapserver to be as fast as ArcView on my desktop, but found it to be competitive with other web map software. I should say that I never bothered to make a serious trial. Performance is good enough, but Mapserver's edge is platform-independence and extend- ibility with Mapscript. With other software, you have to live with the functionality that the developers give you. With Mapserver, you are the developer, and the sky is the limit. Sean Jan Hartmann wrote: > > > Thomas P. Colson wrote: > > > Do you have a link so we can see this mapserver app of yours? I'd like > > to see this fast refresh...what platform/build options are you using? > > -----Original Message----- > > > I had the same experience of MapServer being faster than ArcView desktop > in some cases. I think MapServer does some generalizing when rasterizing > vectors. ArcView always plots all lines, even if they transform to one > and the same image pixel, while MapServer prunes them (I think). The > effect is very noticeable when you zoomout far from detailed maps. Also, > Steve put in some quad-tree wizardry I would like to know more about. > > Jan Hartmann > Department of Geography > University of Amsterdam > jhart at frw.uva.nl > > > > From: Lowther, David W [mailto:dlowther at ou.edu] > > Sent: Thursday, November 21, 2002 8:18 AM > > To: 'bwragg at mappingandbeyond.com'; mapserver-users at lists.gis.umn.edu > > Subject: RE: [mapserver-users] MapServer Performance > > > > > > Benjamin, > > > > I have been using Mapserver for about 2-3 months now. Before that we > > used a > > CGI app written around MapObjects and at times we played with ArcIMS to > > compare performance. In my experience, Mapserver FAR FAR FAR outperforms > > ESRI products. The real shock for me was that I could load a layer of > > 55,000 > > parcels into Arcview 3x, turn the layer on, THEN click refresh on my > > Mapserver page with those same parcels in the map and the Mapserver page > > returned well before Arcview finished drawing - consistently. > > > > I don't know HOW Mapserver is so fast, but it is. So far performance has > > been equally as good with other vector layers as well as raster > > layers. All > > this, for free, platform independant. > > > > I guess while I am on my grateful box I'll add that the support from > this > > mailing list and the user community in general is outstanding. > > > > HUGE thanks to all that make and support Mapserver, > > > > Dave Lowther > > Geo Information Systems > > University of Oklahoma > > > > -----Original Message----- > > From: Benjamin Wragg [mailto:bwragg at mappingandbeyond.com] > > Sent: Wednesday, November 20, 2002 9:59 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] MapServer Performance > > > > > > Hi Guys, > > > > I'm just about to start playing with MapServer a bit, but I was just > > wondering how the performance is along side some of the other map > > servers like ArcIMS. > > > > Thanks, > > > > Benjamin Wragg > > > > > > From steve.lime at dnr.state.mn.us Thu Nov 21 15:13:31 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 21 Nov 2002 17:13:31 -0600 Subject: [mapserver-users] Using spatial indexes with tiled indexes Message-ID: Yes, you can index the tile indexes and the tiled data themselves. No problem at all... Steve >>> "John McCue" 11/21/02 03:57PM >>> Is it possible to use spatial indexes with tile indexes? We would like to have one tile index for a particular layer, and make a spatial index for each of the tiles. Thanks in advance! John From steve.lime at dnr.state.mn.us Thu Nov 21 15:12:20 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 21 Nov 2002 17:12:20 -0600 Subject: [mapserver-users] MapServer Performance Message-ID: You don't lie, the apps are smokin' fast... >>> "Lowther, David W" 11/21/02 04:12PM >>> I do indeed have a link. I would just like to add one qualification: We are having major outbound bandwidth problems. The problems that I anticipate many of you having when accessing the site will be resolved within a week or so by colocating servers. That's life in a university environment where being able to serve and download Shania Twain's latest mp3 is more important than anything else... Then again, maybe it's my priorities that are out of whack. http://geo.ou.edu/ncdemo.htm http://geo.ou.edu/okstatedemo.htm Both of these are under development. WinNT4.0 IIS4 P4 2ghz 1gb RAM 64MB Video. As far as build I'm using one of the 3.6.3 win binary downloads. Nothing fancy. Data is in shapefiles. Dave Geo Information Systems University of Oklahoma -----Original Message----- From: Thomas P. Colson [mailto:tpcolson at nexussoft.com] Sent: Thursday, November 21, 2002 8:30 AM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] MapServer Performance Do you have a link so we can see this mapserver app of yours? I'd like to see this fast refresh...what platform/build options are you using? -----Original Message----- From: Lowther, David W [mailto:dlowther at ou.edu] Sent: Thursday, November 21, 2002 8:18 AM To: 'bwragg at mappingandbeyond.com'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] MapServer Performance Benjamin, I have been using Mapserver for about 2-3 months now. Before that we used a CGI app written around MapObjects and at times we played with ArcIMS to compare performance. In my experience, Mapserver FAR FAR FAR outperforms ESRI products. The real shock for me was that I could load a layer of 55,000 parcels into Arcview 3x, turn the layer on, THEN click refresh on my Mapserver page with those same parcels in the map and the Mapserver page returned well before Arcview finished drawing - consistently. I don't know HOW Mapserver is so fast, but it is. So far performance has been equally as good with other vector layers as well as raster layers. All this, for free, platform independant. I guess while I am on my grateful box I'll add that the support from this mailing list and the user community in general is outstanding. HUGE thanks to all that make and support Mapserver, Dave Lowther Geo Information Systems University of Oklahoma -----Original Message----- From: Benjamin Wragg [mailto:bwragg at mappingandbeyond.com] Sent: Wednesday, November 20, 2002 9:59 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] MapServer Performance Hi Guys, I'm just about to start playing with MapServer a bit, but I was just wondering how the performance is along side some of the other map servers like ArcIMS. Thanks, Benjamin Wragg From woodbri at swoodbridge.com Thu Nov 21 17:11:09 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 21 Nov 2002 20:11:09 -0500 Subject: [mapserver-users] Mapping a raster colour to Transparent In-Reply-To: <5ACEEE96F4F9D41190790002A528B51E02740BAD@s0-ott-x11.nrn.nrcan.gc.ca> Message-ID: <3DDD3DDD.29375.66AE46@localhost> Scott, That would be the OFFSITE keyword in the LAYER section of the mapfile. -Steve W. On 21 Nov 2002 at 15:40, Tweedy, Scott wrote: > Is there any way to use MapServer to map a specific colour value in an > input file to end up being transparent in the output PNG or GIF? > > What I am trying to do is take all the pixel values of "white" from an > input TIFF image and map those values so that they are transparent > when they are viewed in a mapping application. > > If anyone knows if this is possible, or how to do it, I would > appreciate it very much. > > Thanks in advance, > st > From pramsey at refractions.net Thu Nov 21 17:27:11 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 21 Nov 2002 17:27:11 -0800 Subject: [mapserver-users] Mapserver and PostgreSQL References: <3DDCF553.5030501@sarvision.nl> <3DDD1CFE.2020002@frw.uva.nl> <200211212045.34940.vrielink@sarvision.com> Message-ID: <3DDD87EF.30706@refractions.net> Arjen Vrielink wrote: > I still think Postgis doesn't really > add much GIS functionality to Postgres other than the conversion thing and > some abstraction of Postgres built in functionality. But by being a key > player in the Mapserver - Postgres connection they hold some pretty strong > cards... hmm, I'm convinced after all. I hope to convince you more! Firstly, what we have now that native PostgreSQL does not have on its own: - Real GIS objects (polygons with holes, aggregate types) not toy geometric objects - The ability to spatially index spatial objects > 8K in size (if you think native PostgreSQL types are ready for real GIS, you need to stress it a little harder) - OpenGIS standards compliance, that means standard function names, standard object representations (binary and ascii) - Coordinate reprojection support in the database. (Transform() function) - Mapserver connector and support from numerous other open source GIS applications (GRASS, QGIS, OpenEV, OGR) Secondly, what we will soon have which native PostgreSQL will probably never bother with: - Full robust binary predicate support. Touches(), Contains(), Relate(), etc etc etc, all implemented with robust algorithms. More unbreakable than commercial GIS databases. - Full spatial operators support. Buffer(), Union(), Difference(). - Multikey indexes combining spatial and non-spatial columns. Is PostGIS preferable to shape files? Depends on what your needs are. Jan gave a pretty good summary of the kinds of higher level things you can do with PostGIS which you cannot do with shape files. When it comes to performance, (spatially indexed) shapefiles are unbeatable. When it comes to application flexibility, a PostGIS-based application is hard to beat. Paul -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From t.hodder at globalgold.co.uk Thu Nov 21 18:26:17 2002 From: t.hodder at globalgold.co.uk (Tom Hodder) Date: Fri, 22 Nov 2002 02:26:17 -0000 Subject: [mapserver-users] Message-ID: Hi, I'm a new user to mapserver and have setup the demo and done the tutorial so I have a limited understanding. What I now want to do is get a world basemap into my mapserver that I can experiment with. Are there any shapefiles available that include the whole world, with just the contintents or maybe a small amount of detail. I;ve looked at some of the resources online, but mose concentrate on smaller areas with more detail. I don't really want to create a shapefile for this using another piece of software if I can help it. Regards, Tom H From eblevins at insight.rr.com Thu Nov 21 18:57:05 2002 From: eblevins at insight.rr.com (Eric L. Blevins) Date: Thu, 21 Nov 2002 21:57:05 -0500 Subject: [mapserver-users] References: Message-ID: <059201c291d2$da485b90$0201a8c0@Gateway> Check this link http://www.cipotato.org/diva/data/MoreData.htm They have a few shape files and some links to other data as well. Eric L. Blevins www.WiFiMaps.com ----- Original Message ----- From: "Tom Hodder" To: Sent: Thursday, November 21, 2002 9:26 PM Subject: [mapserver-users] > Hi, > > I'm a new user to mapserver and have setup the demo and done the tutorial > so I have a limited understanding. > > What I now want to do is get a world basemap into my mapserver that I can > experiment with. Are there any shapefiles available that include the whole > world, with just the contintents or maybe a small amount of detail. I;ve > looked > at some of the resources online, but mose concentrate on smaller areas with > more detail. > > I don't really want to create a shapefile for this using another piece of > software if I can help it. > > Regards, > > Tom H > > From vinko at cprsig.cl Thu Nov 21 21:24:46 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Fri, 22 Nov 2002 00:24:46 -0500 Subject: [postgis-users] Re: [mapserver-users] Mapserver and PostgreSQL In-Reply-To: <3DDD87EF.30706@refractions.net> References: <3DDCF553.5030501@sarvision.nl> <3DDD1CFE.2020002@frw.uva.nl> <200211212045.34940.vrielink@sarvision.com> <3DDD87EF.30706@refractions.net> Message-ID: <20021122052446.GA24594@landsat.cprsig.cl> On Thu, Nov 21, 2002 at 05:27:11PM -0800, Paul Ramsey wrote: > Is PostGIS preferable to shape files? Depends on what your needs are. > Jan gave a pretty good summary of the kinds of higher level things you > can do with PostGIS which you cannot do with shape files. When it comes > to performance, (spatially indexed) shapefiles are unbeatable. When it > comes to application flexibility, a PostGIS-based application is hard to > beat. I agree on that last one, but I miss the ability to create Mapserver layers from PostgreSQL/PostGIS views. Is there a plan to support that anytime soon? Thanks, -- Vinko Vrsalovic http://www.cprsig.cl From vinko at cprsig.cl Thu Nov 21 21:59:21 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Fri, 22 Nov 2002 00:59:21 -0500 Subject: [mapserver-users] MapServer Performance In-Reply-To: <13858AA1A74F30419F319ACB66A9D1221F3972@mercator.topozone.com> References: <13858AA1A74F30419F319ACB66A9D1221F3972@mercator.topozone.com> Message-ID: <20021122055921.GA24635@landsat.cprsig.cl> On Thu, Nov 21, 2002 at 02:35:58PM -0500, Ed McNierney wrote: > Folks - > > I have been very pleased with MapServer performance on a variety of applications. Good data design is also a very important part of any application. > > I have never done head-to-head comparisons with ArcIMS, because I could not afford a copy of ArcIMS. If anyone has a SPECIFIC project in mind, I'd be happy to help with performance tuning. There are far too many parameters possible to spend time on a "here's how to totally optimize every conceivable MapServer app on any hardware you like".... > Well, I'm finishing a PostGIS/PHPMapScript app which classifies data dinamically from a set of on the fly parameters obtained by user input. It's working quite fine functionally speaking, and just came to the performance issue. The box that's running the app is a PIII 1.3 Ghz, 1 GB Ram, UW160 SCSI disks. This box runs Apache, PostgreSQL, PostGIS and PHPMapScript. To render a 'normal' view of the map it's lightning fast. But when showing a classified (in the 'adding classes' sense) view it takes on that box like a second or a bit more in finishing the calculations, and that seems to be a bit slow, given the machine specs and that's under a one user only load (I still haven't done a full profiling of the app, but top shows postmaster eating up to 73% of the CPU during that second). The way I'm doing it is: 1.- I first obtain the data (reading from a file) from which the set of features will be classified. 2.- Then I add a column to that table to hold the data for that classification and request (so that multiple requests can be handled at the same time). 3.- Then I update that column of the PostGIS table to hold the data for that particular classification from the data obtained in step 1. 4.- Then I add the layers with PHPMapscript using expressions (something like: ([DATA_USER] >= $class[$i] AND [DATA_USER] < $class[$i+1]) ) to the mapObj. 5.- Then I draw the map. I guess the difference in performance comes from the indexes done to the tables, because for 'static' rendering indexes are useful, but that data column varies from request to request, so indexes will not be useful... Any hints or suggestions? (BTW, now it should be clear why I wanted the possibility to create layers from views) -- Vinko Vrsalovic http://www.cprsig.cl From pramsey at refractions.net Thu Nov 21 21:02:40 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 21 Nov 2002 21:02:40 -0800 Subject: [postgis-users] Re: [mapserver-users] MapServer Performance References: <13858AA1A74F30419F319ACB66A9D1221F3972@mercator.topozone.com> <20021122055921.GA24635@landsat.cprsig.cl> Message-ID: <3DDDBA70.2020201@refractions.net> > The way I'm doing it is: > > 1.- I first obtain the data (reading from a file) from which the set of > features will be classified. > 2.- Then I add a column to that table to hold the data for that > classification and request (so that multiple requests can be handled at > the same time). > 3.- Then I update that column of the PostGIS table to hold the data for that > particular classification from the data obtained in step 1. > 4.- Then I add the layers with PHPMapscript using expressions (something > like: ([DATA_USER] >= $class[$i] AND [DATA_USER] < $class[$i+1]) ) to the mapObj. > 5.- Then I draw the map. Check out some of Jan's postings in the past regarding doing classification on the fly from PostGIS. One of the keys to good performance is pushing the calculations back into the database. So rather than adding X classes with expressions in them, do the classification in the db with a CASE expression and simplify the class expressions down the a CLASSITEM and a simple match (EXPRESSION "blah"). Also I do not entirely understand what is going on in steps 1 and 2. You are adding to the db for every query? Finally, you do not need views necessarily since you can now form a DATA statement out of arbitrary SQL. I am afraid we still do not have a comprehensive guide on this topic yet... sorry. P. From vinko at cprsig.cl Thu Nov 21 23:46:16 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Fri, 22 Nov 2002 02:46:16 -0500 Subject: [postgis-users] Re: [mapserver-users] MapServer Performance In-Reply-To: <3DDDBA70.2020201@refractions.net> References: <13858AA1A74F30419F319ACB66A9D1221F3972@mercator.topozone.com> <20021122055921.GA24635@landsat.cprsig.cl> <3DDDBA70.2020201@refractions.net> Message-ID: <20021122074616.GA25427@landsat.cprsig.cl> On Thu, Nov 21, 2002 at 09:02:40PM -0800, Paul Ramsey wrote: > Check out some of Jan's postings in the past regarding doing > classification on the fly from PostGIS. One of the keys to good > performance is pushing the calculations back into the database. So > rather than adding X classes with expressions in them, do the > classification in the db with a CASE expression and simplify the class > expressions down the a CLASSITEM and a simple match (EXPRESSION "blah"). Ok, I'll look at that, but I can't find Jan's postings about classification on the fly, could you please point me to the month, subject or URL for those articles? > Also I do not entirely understand what is going on in steps 1 and 2. You > are adding to the db for every query? For every access that needs to classify the data (there are some which don't need that). The problem is that the data comes from another DB (Oracle) in another machine (a Sun machine) in another application (independent from the one I'm implementing). So I need to retrieve the data from that application, and then classify the features according to it. > Finally, you do not need views necessarily since you can now form a DATA > statement out of arbitrary SQL. I am afraid we still do not have a > comprehensive guide on this topic yet... sorry. In the CVS for MS 3.7? PostGIS 0.7.3? I'm now running on PostGIS 0.7.3 with MS 3.6... Is there a simple example at least? Thanks!, -- Vinko Vrsalovic http://www.cprsig.cl From pramsey at refractions.net Thu Nov 21 22:16:02 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 21 Nov 2002 22:16:02 -0800 Subject: [postgis-users] Re: [mapserver-users] MapServer Performance References: <13858AA1A74F30419F319ACB66A9D1221F3972@mercator.topozone.com> <20021122055921.GA24635@landsat.cprsig.cl> <3DDDBA70.2020201@refractions.net> <20021122074616.GA25427@landsat.cprsig.cl> Message-ID: <3DDDCBA2.6050805@refractions.net> Vinko Vrsalovic wrote: > > In the CVS for MS 3.7? PostGIS 0.7.3? In order to get the best support for arbitrary SQL queries in the mapserver/postgis connector, you should pull the CVS version of 3.6, or take the release version of 3.6 and copy the CVS version of mappostgis.c into it. All the smarts is in the connector, so a recent version of PostGIS like 0.7.3 will be sufficient. P. From Andrew.Germishuys at arivia.co.za Thu Nov 21 23:03:55 2002 From: Andrew.Germishuys at arivia.co.za (Andrew Germishuys) Date: Fri, 22 Nov 2002 09:03:55 +0200 Subject: [mapserver-users] Message-ID: <593A7354182CCB4D8C70CC27D15C667508C48A@blvwex01.arivia.kom> unsubscribe From Horst.Duester at bd.so.ch Thu Nov 21 23:57:37 2002 From: Horst.Duester at bd.so.ch (=?iso-8859-1?Q?D=FCster_Horst?=) Date: Fri, 22 Nov 2002 08:57:37 +0100 Subject: AW: [mapserver-users] Raster pixel value Message-ID: <5B025B1F39D6D4119F5700508BEEEC662DFCB0@srsofaioi4546.ktso.ch> Brian, I had the same problem like you. We need elevation information from a DEM stored in ESRI Grid format. I solved it with PostGIS. - export Grid to shape file (points) - import shape file to PostGIS with OGR2OGR with option -with "elev-value > 0" to eliminate all no data records. - build index --> ready :-) To get the elevation for an arbitrary point at the DEM you need to use PHP: query: // desired point => $x, $y // desired search circle => $search // $x+-$search, $y+-$search => $xmin,$ymin ... select value,asText(wkb_geometry) as point from dhm_pnt where distance(GeometryFromText('POINT($x $y)',-1),wkb_geometry) <= $search and wkb_geometry && 'BOX3D($xmin $ymin, $xmax $ymax)'::box3d; Now you need to read these some points resulted from query to interpoplate the desired elevation for the user point with inverse distance weight mean. Our dhm_pnt table has 2.3 million records but works very very fast. The advantage of this approach you dont need MapServer. You likewise can get the coordinates from every other source p.e. HTML . Hope this helps Horst -----Urspr?ngliche Nachricht----- Von: Frank Warmerdam [mailto:warmerdam at pobox.com] Gesendet am: Donnerstag, 21. November 2002 21:55 An: Brian Clark Cc: mapserver Betreff: Re: [mapserver-users] Raster pixel value Brian Clark wrote: > Is there a way, using Mapserver, to pick a point on a raster and return > the pixel value? Such as elevations from a DEM? Brian, I don't believe this is possible within mapserver. The current architecture for rasters in MapServer is such that pretty much the only API interface between mapserver and the raster support is the msDrawRasterLayer() call. This is different than shapefiles where there are mapserver functions to fetch individual shapes from a shapefile accessable from mapscript. So, not it isn't available, and it would not be trivial to do so. 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 mh at svaj.dk Fri Nov 22 00:16:51 2002 From: mh at svaj.dk (Martin Hoegh) Date: Fri, 22 Nov 2002 09:16:51 +0100 Subject: [mapserver-users] Mapserver and PostgreSQL References: <3DDCF553.5030501@sarvision.nl> Message-ID: <001701c291ff$82cd3610$6700000a@svaj.local> Hi You don't need to install PostgreSQL from source, you just need to have a installed source tree. Do a make but not a make install. This way you can use a rpm version of PostgreSQL an still extent it with Postgis. This works fine with SuSE 8 and PostgreSQL 7.2. Remember to install the PostgreSQL development rpm. /Martin ----- Original Message ----- From: "Arjen Vrielink" To: Sent: Thursday, November 21, 2002 4:01 PM Subject: [mapserver-users] Mapserver and PostgreSQL > Hello All, > > I was wondering if I could connect to a PostgreSQL database directly > from Mapserver. The problem is that we have SuSE 8.1 doing the > installation of PostgreSQL so we don't have the pg src code on our > machine which you need to install / compile PostGIS. Not being convinced > about the benefits of POSTGIS after reading the documentation I decided > I could live without it. That is, until I tried to get Mapserver connect > to my Postgres db --> There are no error messages but I don't get the > layer displayed either (I use an ESRI shapefile which I dumped to SQL > code for testing). So my basic question is: do I really need Postgis > (and what are the benefits of Postgis anyway)? if I really need postgis, > I will get the postgres source code and install it manually on my linux box. > > Suggestions would be appreciated, thanks > > using: > Linux 2.4.something > PostgreSQL 7.2 > Mapserver 3.6 > (PHP 4.3.0RC1) > > arjen, > SarVision > Wageningen > The Netherlands > > > From jhart at frw.uva.nl Fri Nov 22 03:49:51 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Fri, 22 Nov 2002 12:49:51 +0100 Subject: [mapserver-users] Mapserver and PostgreSQL References: <3DDCF553.5030501@sarvision.nl> <3DDD1CFE.2020002@frw.uva.nl> <3DDD32FE.BAC33828@keyspanenergy.com> Message-ID: <3DDE19DF.9000305@frw.uva.nl> Kieran, It is in the PostGIS distribution: $PGHOME/contrib/postgis-0.7.3/loader. It is not compiled in by default: you have to do a "make" in that directory and copy "shp2pgsql" to some place in your path. I don't think there is a Windows binary available. There is Cygwin of course, but that has to be compiled from source. Perhaps someone on this list has a recent compiled version of shp2pgsql for Cygwin available? I would advise you to look at Frank Warmerdam's ogr2ogr. It can convert between most vector GIS formats, including PostGIS. Windows binaries are available (with many other things) at: http://prdownloads.sourceforge.net/openev/OpenEV_FW_141.zip or: ftp://ftp.remotesensing.org/pub/gdal/gdal-115a-ntbin.zip Jan Hartmann Kieran J. Ames wrote: > I'd not heard of shp2pgsql before. > Is there a windows version of shp2pgsql around? I looked in my Mapserver > directory and don't see it. > Thanks, > Kieran > From jhart at frw.uva.nl Fri Nov 22 04:11:58 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Fri, 22 Nov 2002 13:11:58 +0100 Subject: [mapserver-users] list archive Message-ID: <3DDE1F0E.10808@frw.uva.nl> Raju, what has happened to the list archive? I see only a dump of the raw archive for October and November. The search engine seems to work, but it is very difficult to find back individual postings or threads. Jan Hartmann From Mark.Balman at birdlife.org.uk Fri Nov 22 04:23:31 2002 From: Mark.Balman at birdlife.org.uk (Mark Balman) Date: Fri, 22 Nov 2002 12:23:31 -0000 Subject: [mapserver-users] Query problem Message-ID: Hi All I have a shapefile with polygons of animal distributions which are Historical, Known, Projected. I am using the
Map Controls

Pan
Zoom In Zoom Out

Zoom Size

Queries

Browsen
Anfragen
mehrere Anfragen

Legende
[legend]


default
footer.html: font size=+1 face=arial,helvetica>Query Map Examples

standard querymap cached query
-- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! From bultee at yahoo.fr Tue Nov 26 07:15:15 2002 From: bultee at yahoo.fr (=?iso-8859-1?q?Emmanuelle?=) Date: Tue, 26 Nov 2002 16:15:15 +0100 (CET) Subject: [mapserver-users] Starange results- vmap0 to shape file Message-ID: <20021126151515.70215.qmail@web14207.mail.yahoo.com> At last we got some results but we got this message. Not quite sure what the libref at libref(*)_line.shp corresponds to. Can anybody help on this? C:\>ogr2ogr polbnda.shp gltp:/vrf/v0soa/vmaplv0/soamafr ERROR 4: Failed to open Shapefile `libref at libref(*)_line.shp'. ERROR 1: Terminating translation prematurely after failed translation of layer libref at libref(*)_line Emmanuelle wrote: Hi Frank, There was some problem to use the ogr2ogr under windows. The command was unable to find the datasource [Unable to open datasource ] :-( joined the commands below. I am also not quite sure how can I make sure that the dbf file contains certain columns- such as code ISO, country names, region names. .\v0soa\vmaplv0\soamafr is the relative path of the data sources soamer is at the same level as dht. and lat. files T:\Projects\Analytix\02 Utils\Nima>ogr2ogr -f "ESRI Shapefile" polbnda.shp .\v0s oa\vmaplv0\soamafr FAILURE: Unable to open datasource `.\v0soa\vmaplv0\soamafr' with the following drivers. -> ESRI Shapefile -> UK .NTF -> SDTS -> TIGER -> IHO S-57 (ENC) -> MapInfo File -> DGN -> GML -> AVCBin -> OGDI -> FMEObjects Gateway Many thanks Emmanuelle -----Original Message----- From: Frank Warmerdam [mailto:warmerdam at pobox.com] Sent: Saturday, November 23, 2002 11:32 AM To: woodbri at swoodbridge.com Cc: Mapserver-Users Subject: Re: [mapserver-users] vmap0 to shape file woodbri at swoodbridge.com wrote: > OK, I tried this, if you don't have the xvt libraries and includes it > will not be easy and will only be fun if you like pain and headaches. > > Frank, > Does ogr2ogr support converting VPF to shapefiles? > What is the command syntax? > What are the limits on conversion? Steve, Yes, ogr2ogr can be used to translate VPF to shapefile, if you have a build with OGDI support (such as the OpenEV_FW binary builds). For instance, to extract the political boundaries you might do this: warmerda at gdal[589]% ogr2ogr polbnda.shp gltp:/vrf/usr4/mpp1/v0noa/vmaplv0/noamer 'polbnda at bnd(*)_area' warmerda at gdal[590]% ls -l polbnda* -rw-r--r-- 1 warmerda users 1052287 Nov 22 11:58 polbnda.dbf -rw-r--r-- 1 warmerda users 327 Nov 22 11:57 polbnda.prj -rw-r--r-- 1 warmerda users 10335532 Nov 22 11:58 polbnda.shp -rw-r--r-- 1 warmerda users 85980 Nov 22 11:58 polbnda.shx In the dataset name 'gltp:/vrf/usr4/mpp1/v0noa/vmaplv0/noamer' the gltp:/vrf part is not really in the filesystem. The VPF data was at /usr4/mpp1/v0noa. The "noamer" directory should be at the same level as the dht. and lat. files. The resulting political boundaries seem to include a "nam" attribute with the state names/province names. Not too sure about namtional level boundaries. I couldn't browse around in the data very easily since it was still fairly large. The limits? I'm not too sure what issues you will run into. The data model is VPF as exposed through the OGDI VPF (vrf) driver. 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 --------------------------------- Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en fran?ais ! --------------------------------- Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en fran?ais ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Tue Nov 26 07:55:59 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 26 Nov 2002 10:55:59 -0500 Subject: [mapserver-users] v. 3.7 release? References: Message-ID: <3DE3998F.329D1A39@dmsolutions.ca> John McCue wrote: > > Is there a time estimate for when version 3.7 might become the current > version of MapServer? There are a number of features that I would like to > implement from v3.7 as soon as it is ready. > It's getting closer every day, we had talked with Steve about releasing at end of November but it's not ready yet... I hope to see a release or at least a very stable beta before Christmas. This is just from my point of view, Steve may want to add some comments. BTW, the CVS version is starting to be in very good shape now, so if you (or others experienced users on the list) want to help then you can download the source from CVS (or nightly builds) and then try to port your applications to 3.7 and report issues that you find via bugzilla. The most imporant is to report things that used to work in 3.6 and don't work in 3.7. Also, if someone wanted to create and maintain a "3.6 to 3.7 migration guide" (a Wiki page), that would help a lot too. A good starting point for this would be the file HISTORY.TXT in the source package, and a few posts to the list: About migrating existing PHP code: ---- http://lists.dmsolutions.ca/pipermail/mapserver-users/2002-November/042694.html About the new 24 bits support: ---- http://lists.dmsolutions.ca/pipermail/mapserver-users/2002-October/042386.html http://lists.dmsolutions.ca/pipermail/mapserver-users/2002-November/042854.html About the new SWF Flash and PDF support: ---- http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html http://www2.dmsolutions.ca/mapserver/dl/PDFMapserverUserDoc.html Best Regards, Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From pagurekd at agr.gc.ca Tue Nov 26 08:00:56 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Tue, 26 Nov 2002 11:00:56 -0500 Subject: [mapserver-users] French characters in a map file Message-ID: Hi everyone, I am trying to translate one of my applications into French and I am running into problems with French characters in my mapfile, and the legend generation. see this excerpt from my mapfile layer: CLASS EXPRESSION '0' #dummy class for title NAME '?cozones' COLOR 255 255 255 OUTLINECOLOR 255 255 255 END # CLASS CLASS EXPRESSION '1' NAME 'Cordill?re arctique' COLOR 204 255 255 END # CLASS The first class name ?cozones appears properly in my legend, but the second one, Cordill?re arctique, does not. Please see the attached image of the resulting legend. So... does anyone know how to get French accents to appear properly in a legend?? Thanks, D. Pagurek -------------- next part -------------- A non-text attachment was scrubbed... Name: legenderr.gif Type: application/octet-stream Size: 3786 bytes Desc: not available URL: From t.hodder at globalgold.co.uk Tue Nov 26 08:44:24 2002 From: t.hodder at globalgold.co.uk (Tom Hodder) Date: Tue, 26 Nov 2002 16:44:24 -0000 Subject: [mapserver-users] project onto a globe? In-Reply-To: <20021126021851.GA9987@landsat.cprsig.cl> Message-ID: Hi, I've got some good results with mapserver so far, I am now wondering whether I can project the shapefile that I am using onto a globe? Sorry if this is documented somewhere and I haven't looked hard enough. Cheers, Tom H From joao at pmpf.rs.gov.br Tue Nov 26 08:58:25 2002 From: joao at pmpf.rs.gov.br (=?ISO-8859-1?Q?Jo=E3o_M=E1rio?=) Date: Tue, 26 Nov 2002 14:58:25 -0200 Subject: [mapserver-users] Error Creating View... Message-ID: <3DE3A831.4030709@pmpf.rs.gov.br> Hello to all I'm using PostGIS and Mapserver versions 0.7.3 and 3.6.3. I'm tried to create a view from the main table and call it in the mapfile, but it doesn't work.... The code is this: LAYER CONNECTIONTYPE postgis NAME Roads CONNECTION "user=postgres dbname=dbase" DATA "geometry_field from table_view" FILTER "id_sec=1" STATUS ON TYPE LINE # LABELITEM "tile_name" CLASS NAME "Road 1" TEMPLATE "Road_1.html" EXPRESSION ([tipo_log]=2) COLOR 85 85 85 SYMBOL 'line' SIZE 10 MINSIZE 3 MAXSIZE 15 OVERLAYCOLOR 168 168 0 OVERLAYSYMBOL 0 OVERLAYSIZE 3 OVERLAYMINSIZE 1 OVERLAYMAXSIZE 2 SIZE 15 # LABEL # TYPE truetype # FONT arial-bold # SIZE 14 # ANTIALIAS # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # PARTIALS OFF END CLASS NAME "Road" TEMPLATE "Road_2" EXPRESSION ([tipo_log]=1) COLOR 85 85 85 SYMBOL 'line' SIZE 5 MINSIZE 3 MAXSIZE 15 OVERLAYCOLOR 255 255 255 OVERLAYSYMBOL 0 OVERLAYSIZE 3 OVERLAYMINSIZE 1 OVERLAYMAXSIZE 2 SIZE 15 END END when i execute the following error apears: 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 tipo_log::text,asbinary(force_collection(force_2d(geometry_field)),'NDR'),OID::text from table_view WHERE (id_sec=1) and (geometry_field && setSRID( 'BOX3D(1430.3002 760.3,1730.1002 1120.3)'::BOX3D,find_srid('','table_view','geometry_field') )) What could be wrong? Thanks Jo?o From ed at topozone.com Tue Nov 26 09:12:06 2002 From: ed at topozone.com (Ed McNierney) Date: Tue, 26 Nov 2002 12:12:06 -0500 Subject: [mapserver-users] project onto a globe? Message-ID: <13858AA1A74F30419F319ACB66A9D1221F398A@mercator.topozone.com> Tom - I don't think I understand the question. Monitors and printers are flat (relatively) surfaces - so most map projections project a portion (or all) of the earth onto a flat surface. What exactly are you trying to do? - 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: Tom Hodder [mailto:t.hodder at globalgold.co.uk] Sent: Tuesday, November 26, 2002 11:44 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] project onto a globe? Hi, I've got some good results with mapserver so far, I am now wondering whether I can project the shapefile that I am using onto a globe? Sorry if this is documented somewhere and I haven't looked hard enough. Cheers, Tom H From t.hodder at globalgold.co.uk Tue Nov 26 09:42:44 2002 From: t.hodder at globalgold.co.uk (Tom Hodder) Date: Tue, 26 Nov 2002 17:42:44 -0000 Subject: [mapserver-users] project onto a globe? In-Reply-To: <13858AA1A74F30419F319ACB66A9D1221F398A@mercator.topozone.com> Message-ID: > > Tom - > > I don't think I understand the question. Monitors and printers > are flat (relatively) surfaces - so most map projections project > a portion (or all) of the earth onto a flat surface. What > exactly are you trying to do? > > - Ed > > sorry, i meant a 2d representation of a globe. I have it setup where its possible to zoom out to a world basemap, so I showed it to a marketing bod, it looks similar to this; http://mapserver.socialchange.net.au/cgi-bin/mapserv?map=..%2Fmaps%2Fworld%2 Fworld.map&layer=land_raster&zoomsize=2 (but this is not my version, as I'm developing it on an internal server) and they said can make it so that the complete map is projected onto a 2d globe centered about a given point, because that looks nicer. so i said I will see what I can do. Cheers Tom H From morissette at dmsolutions.ca Tue Nov 26 10:03:41 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 26 Nov 2002 13:03:41 -0500 Subject: [mapserver-users] French characters in a map file References: Message-ID: <3DE3B77D.5C0DFA8A@dmsolutions.ca> That's because GD's default fonts encoding is not ISOLatin1... i.e. it doesn't match the character set used by default on Windows. You have a few options: 1- Recompile GD with new ISO-8859-1 encoded bitmap fonts... I did that a while ago for another application. I could provide you with the modified GD source for that if you want to compile it yourself. 2- Use a TTF font in your GIF legend. 3- Use the HTML legend, then the French characters will be rendered in HTML. Daniel Debbie Pagurek wrote: > > Hi everyone, > I am trying to translate one of my applications into French and I am running into problems with French characters in my mapfile, and the legend generation. > > see this excerpt from my mapfile layer: > > CLASS > EXPRESSION '0' #dummy class for title > NAME '?cozones' > COLOR 255 255 255 > OUTLINECOLOR 255 255 255 > END # CLASS > CLASS > EXPRESSION '1' > NAME 'Cordill?re arctique' > COLOR 204 255 255 > END # CLASS > > The first class name ?cozones appears properly in my legend, but the second one, Cordill?re arctique, does not. Please see the attached image of the resulting legend. > > So... does anyone know how to get French accents to appear properly in a legend?? > > Thanks, > D. Pagurek > > ------------------------------------------------------------------------ > Name: legenderr.gif > legenderr.gif Type: GIF Image (image/gif) > Encoding: base64 From ed at topozone.com Tue Nov 26 10:27:02 2002 From: ed at topozone.com (Ed McNierney) Date: Tue, 26 Nov 2002 13:27:02 -0500 Subject: [mapserver-users] project onto a globe? Message-ID: <13858AA1A74F30419F319ACB66A9D1220194D9@mercator.topozone.com> Tom - If I understand correctly, what you folks in the UK call a "2D representation of a globe" is known as a "circle" over here . Is that right? There are certainly map projections available that project the surface of the entire Earth onto a circle, such as the Azimuthal Equidistant. However, they of necessity introduce gross distortions at the edges (away from the center point of the projection). This is also true of projections like Mercator and your example map, but those projections are common enough that they "look normal" to most people. You can see a good example of the Azimuthal Equidistant used to map the whole Earth (centered on North America) at: http://www-ccs.ucsd.edu/gmt/doc/html/GMT_Docs/node86.html - 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: Tom Hodder [mailto:t.hodder at globalgold.co.uk] Sent: Tuesday, November 26, 2002 12:43 PM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] project onto a globe? > > Tom - > > I don't think I understand the question. Monitors and printers > are flat (relatively) surfaces - so most map projections project > a portion (or all) of the earth onto a flat surface. What > exactly are you trying to do? > > - Ed > > sorry, i meant a 2d representation of a globe. I have it setup where its possible to zoom out to a world basemap, so I showed it to a marketing bod, it looks similar to this; http://mapserver.socialchange.net.au/cgi-bin/mapserv?map=..%2Fmaps%2Fworld%2 Fworld.map&layer=land_raster&zoomsize=2 (but this is not my version, as I'm developing it on an internal server) and they said can make it so that the complete map is projected onto a 2d globe centered about a given point, because that looks nicer. so i said I will see what I can do. Cheers Tom H From Chip.Hankley at gasai.com Tue Nov 26 10:36:57 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Tue, 26 Nov 2002 12:36:57 -0600 Subject: [mapserver-users] project onto a globe? Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABF83@postoffice.GASAI.Com> Tom - You'll have to give us a little more information. MapServer supports a HUGE array of map projections through PROJ4 ... so, yes, you can do it. See http://mapserver.gis.umn.edu/doc36/coordinates.html If you're talking about something else, then I don't know. Chip Hankley From siteman at netgis.nl Tue Nov 26 11:01:12 2002 From: siteman at netgis.nl (netGIS Site Manager) Date: Tue, 26 Nov 2002 20:01:12 +0100 Subject: [mapserver-users] Mapserver 3.7 ItemQuery Message-ID: <007601c2957e$30674f50$3501a8c0@delloptiplex> Hello listmembers! I recently joined this list, being a former MapInfo employee, I am trilled by all the functionallity with OGR! This beats MapXtreme on all fronts! I got a small pilot running at http://netgis.mine.nu/cgi-bin/mapserv.exe?map=%2Fdata%2Fzeeland.map. All works excellent. However, I can't get my itemquery to run. currently I have the querable layer like this: (Municipalities) LAYER NAME gemeente DATA gemeente_region STATUS DEFAULT TYPE POLYGON # FILTERITEM "MUNNAME" # FILTER "value" CLASS NAME "Gemeente" TEMPLATE zeeland_template.htm OUTLINECOLOR 0 0 0 END END The query I ran against it (when the # signs where out) was: http://netgis.mine.nu/cgi-bin/mapserv.exe?map=%2Fdata%2Fzeeland.map&qlayer=gemeente&mode=itemnquery&item=gemeente&value=GOES But I can't get it to work! I even switched to 3.7, but no difference. Eventually I completely lost track of my actions, an having the FILTER there without the # even made my entire layer disapear.. Can anyone tell me the exact syntax for the query? Is it documented somewhere cause I can't seem to find it... I would also like to take part in documenting the features in an objectmodel, who can tell me where I can join? kind regards! Milo van der Linden www.netgis.nl Hogeweg 63, 4328PB Burgh Haamstede Zeeland, The Netherlands milo at netgis.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From drew at zhrodague.net Tue Nov 26 11:12:30 2002 From: drew at zhrodague.net (Drew from Zhrodague) Date: Tue, 26 Nov 2002 14:12:30 -0500 (EST) Subject: [mapserver-users] project onto a globe? In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220194D9@mercator.topozone.com> Message-ID: > Tom - > > If I understand correctly, what you folks in the UK call a "2D representation of a globe" is known as a "circle" over here . > > Is that right? There are certainly map projections available that project the surface of the entire Earth onto a circle, such as the Azimuthal Equidistant. However, they of necessity introduce gross distortions at the edges (away from the center point of the projection). This is also true of projections like Mercator and your example map, but those projections are common enough that they "look normal" to most people. > > You can see a good example of the Azimuthal Equidistant used to map the whole Earth (centered on North America) at: > > http://www-ccs.ucsd.edu/gmt/doc/html/GMT_Docs/node86.html Anyone have a link for a brief desctiption of the different projections, for s non GIS people? I'd like to render our maps onto a flat-model, just not sure which projections do what. -- drew at zhrodague.net http://www.WiFiMaps.com From t.hodder at globalgold.co.uk Tue Nov 26 11:21:36 2002 From: t.hodder at globalgold.co.uk (Tom Hodder) Date: Tue, 26 Nov 2002 19:21:36 -0000 Subject: [mapserver-users] project onto a globe? In-Reply-To: Message-ID: >If I understand correctly, what you folks in the UK call a "2D representation of a globe" is known as a "circle" over here >. ;-) > > Tom - > Do you mean that you want the image to look like a globe? If so, you need > to use an orthographic projection. By virtue of making an image, you are > doing some kind of projection from the earth to the plane of the image. > > This is pretty much what I am trying to achieve. I've only starting reading about this stuff in the last couple of days so I'm missing chunks of information that are probably quite basic for experienced mappers. >You'll have to give us a little more information. MapServer supports a HUGE >array of map projections through PROJ4 ... so, yes, you can do it. > >See http://mapserver.gis.umn.edu/doc36/coordinates.html i going to read this thoroughly and see if what I can do with it. Thanks for the help so far. Tom From nacional at biosci.cbs.umn.edu Tue Nov 26 11:27:19 2002 From: nacional at biosci.cbs.umn.edu (Pericles S. Nacionales) Date: 26 Nov 2002 13:27:19 -0600 Subject: [mapserver-users] project onto a globe? In-Reply-To: References: Message-ID: <1038338839.3806.3.camel@arceuthobium.ecology.umn.edu> I think you mean reproject to orthographic projection... I don't know if proj.4 supports it but if it does then you most likely will be able to do it. -Perry N. On Tue, 2002-11-26 at 11:42, Tom Hodder wrote: > > > > > Tom - > > > > I don't think I understand the question. Monitors and printers > > are flat (relatively) surfaces - so most map projections project > > a portion (or all) of the earth onto a flat surface. What > > exactly are you trying to do? > > > > - Ed > > > > > sorry, i meant a 2d representation of a globe. > > I have it setup where its possible to zoom out to a world basemap, so I > showed it > to a marketing bod, it looks similar to this; > http://mapserver.socialchange.net.au/cgi-bin/mapserv?map=..%2Fmaps%2Fworld%2 > Fworld.map&layer=land_raster&zoomsize=2 > (but this is not my version, as I'm developing it on an internal server) > > and they said can make it so that the complete map is projected onto a 2d > globe > centered about a given point, because that looks nicer. so i said I will see > what > I can do. > > Cheers > > Tom H > From keon at nacse.org Tue Nov 26 11:34:01 2002 From: keon at nacse.org (Dylan Keon) Date: Tue, 26 Nov 2002 11:34:01 -0800 Subject: [mapserver-users] project onto a globe? References: Message-ID: <3DE3CCA9.3010500@nacse.org> Drew from Zhrodague wrote: > Anyone have a link for a brief desctiption of the different > projections, for s non GIS people? > > I'd like to render our maps onto a flat-model, just not sure which > projections do what. > These are good sites: http://www.colorado.edu/geography/gcraft/notes/mapproj/mapproj.html http://www.geography.hunter.cuny.edu/mp/mpbasics.html --Dylan From ed at topozone.com Tue Nov 26 11:57:04 2002 From: ed at topozone.com (Ed McNierney) Date: Tue, 26 Nov 2002 14:57:04 -0500 Subject: [mapserver-users] project onto a globe? Message-ID: <13858AA1A74F30419F319ACB66A9D1220194DA@mercator.topozone.com> Tom - The biggest distinction is whether you're trying to display a hemisphere or the entire Earth. If you look at a globe, you only see half the Earth at one time, whereas the sample map you pointed to shows the entire Earth at once. Projections that show only a hemisphere at a time are much more commmon and more "natural" - the Orthographic (mentioned below) and the Lambert Azimuthal Equal-Area are popular. The Orthographic is the one that most resembles a globe - it's actually what a globe would look like if viewed from an "infinite" distance. It is especially nice when used in its oblique form, where the center point is neither on the equator nor at the poles. Just remember that this will only provide half the Earth at a time, just like a real globe does. - Ed -----Original Message----- From: Tom Hodder [mailto:t.hodder at globalgold.co.uk] Sent: Tuesday, November 26, 2002 2:22 PM To: Mapserver-Users at Lists. Gis. Umn. Edu Subject: RE: [mapserver-users] project onto a globe? >If I understand correctly, what you folks in the UK call a "2D representation of a globe" is known as a "circle" over here >. ;-) > > Tom - > Do you mean that you want the image to look like a globe? If so, you need > to use an orthographic projection. By virtue of making an image, you are > doing some kind of projection from the earth to the plane of the image. > > This is pretty much what I am trying to achieve. I've only starting reading about this stuff in the last couple of days so I'm missing chunks of information that are probably quite basic for experienced mappers. >You'll have to give us a little more information. MapServer supports a HUGE >array of map projections through PROJ4 ... so, yes, you can do it. > >See http://mapserver.gis.umn.edu/doc36/coordinates.html i going to read this thoroughly and see if what I can do with it. Thanks for the help so far. Tom From nhv at cape.com Tue Nov 26 13:10:18 2002 From: nhv at cape.com (Norman Vine) Date: Tue, 26 Nov 2002 16:10:18 -0500 Subject: [mapserver-users] project onto a globe? References: Message-ID: <003d01c29590$399b8d40$4e37ba8c@sfdev3> Drew from Zhrodague writes: > > > Anyone have a link for a brief desctiption of the different > projections, for s non GIS people? http://www.colorado.edu/geography/gcraft/notes/mapproj/mapproj_f.html following not brief but highly reccomended reading The Proj4 documentation http://www.remotesensing.org/proj/ Norman From jmccue at geovue.com Tue Nov 26 13:20:51 2002 From: jmccue at geovue.com (John McCue) Date: Tue, 26 Nov 2002 16:20:51 -0500 Subject: [mapserver-users] project onto a globe? In-Reply-To: Message-ID: Tom - If Proj.4 doesn't support orthographic projection, and you want to implement it, a description and the math for it is at http://mathworld.wolfram.com/OrthographicProjection.html John From stepan.kafka at centrum.cz Tue Nov 26 13:31:31 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Tue, 26 Nov 2002 22:31:31 +0100 Subject: [mapserver-users] French characters in a map file In-Reply-To: Message-ID: <000701c29593$300d3be0$7e3c2fc3@HSGIS> I have good experience with convert names to UNICODE charset. It works for labels in map as well as legend labels. You aslo may use new legend template, where labels are in HTML text (see documentation). 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 Debbie > Pagurek > Odesl?no: 26. listopadu 2002 17:01 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] French characters in a map file > > > Hi everyone, > I am trying to translate one of my applications into French and I > am running into problems with French characters in my mapfile, > and the legend generation. > > see this excerpt from my mapfile layer: > > CLASS > EXPRESSION '0' #dummy class for title > NAME '?cozones' > COLOR 255 255 255 > OUTLINECOLOR 255 255 255 > END # CLASS > CLASS > EXPRESSION '1' > NAME 'Cordillcre arctique' > COLOR 204 255 255 > END # CLASS > > The first class name ?cozones appears properly in my legend, but > the second one, Cordillcre arctique, does not. Please see the > attached image of the resulting legend. > > So... does anyone know how to get French accents to appear > properly in a legend?? > > Thanks, > D. Pagurek > > From jmccue at geovue.com Tue Nov 26 13:44:28 2002 From: jmccue at geovue.com (John McCue) Date: Tue, 26 Nov 2002 16:44:28 -0500 Subject: [mapserver-users] project onto a globe? Message-ID: This site has descriptions and mathematics for many map projections: http://mathworld.wolfram.com/topics/MapProjections.html John McCue geoVue 200 Lincoln Street 5th Floor Boston, Massachusetts 02111 USA p 617.451.2520 x123 f 617.486.3066 www.geoVue.com LOCATION INTELLIGENCE jmccue at geovue.com From t.hodder at globalgold.co.uk Tue Nov 26 14:24:35 2002 From: t.hodder at globalgold.co.uk (Tom Hodder) Date: Tue, 26 Nov 2002 22:24:35 -0000 Subject: [mapserver-users] project onto a globe? In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220194DA@mercator.topozone.com> Message-ID: > Tom - > > The biggest distinction is whether you're trying to display a > hemisphere or the entire Earth. If you look at a globe, you only > see half the Earth at one time, whereas the sample map you > pointed to shows the entire Earth at once. > the hemisphere is fine, thats what im after. > Projections that show only a hemisphere at a time are much more > commmon and more "natural" - the Orthographic (mentioned below) > and the Lambert Azimuthal Equal-Area are popular. The project in hand is for a marketing promotion so popular/common/natural are good and accuracy is nice/optional/etc The > Orthographic is the one that most resembles a globe - it's > actually what a globe would look like if viewed from an > "infinite" distance. It is especially nice when used in its > oblique form, where the center point is neither on the equator > nor at the poles. > > Just remember that this will only provide half the Earth at a > time, just like a real globe does. > > - Ed > > I'm sure they can use the rotate buttons to look round there. Thanks for all the help, I'm blasting along the learning curve at top speed. Cheers, Tom From wesp at gdv.com Tue Nov 26 14:36:11 2002 From: wesp at gdv.com (Name) Date: 26 Nov 2002 22:36:11 -0000 Subject: [mapserver-users] Mapserver 3.7 ItemQuery In-Reply-To: <> References: <> Message-ID: <20021126223611.21093.qmail@www10.your-server.de> IIRC FILTER must be FILTER "[value]" On Tue, 26 Nov 2002 20:01:12 +0100, "netGIS Site Manager" wrote : > This is a multi-part message in MIME format. > > > Hello listmembers! > > I recently joined this list, being a former MapInfo employee, I am trilled by all the functionallity with OGR! This beats MapXtreme on all fronts! > > I got a small pilot running at http://netgis.mine.nu/cgi- bin/mapserv.exe?map=%2Fdata%2Fzeeland.map. All works excellent. > > However, I can't get my itemquery to run. > > currently I have the querable layer like this: > (Municipalities) > > LAYER > NAME gemeente > DATA gemeente_region > STATUS DEFAULT > TYPE POLYGON > # FILTERITEM "MUNNAME" > # FILTER "value" > CLASS > NAME "Gemeente" > TEMPLATE zeeland_template.htm > OUTLINECOLOR 0 0 0 > END > END > > The query I ran against it (when the # signs where out) was: > > http://netgis.mine.nu/cgi-bin/mapserv.exe?map=%2Fdata% 2Fzeeland.map&qlayer=gemeente&mode=itemnquery&item=gemeente&value=GOES > > But I can't get it to work! I even switched to 3.7, but no difference. Eventually I completely lost track of my actions, an having the FILTER there without the # even made my entire layer disapear.. > > Can anyone tell me the exact syntax for the query? Is it documented somewhere cause I can't seem to find it... > > I would also like to take part in documenting the features in an objectmodel, who can tell me where I can join? > > kind regards! > > Milo van der Linden > www.netgis.nl > Hogeweg 63, 4328PB Burgh Haamstede > Zeeland, The Netherlands > milo at netgis.nl > > > From nacional at biosci.cbs.umn.edu Tue Nov 26 15:37:23 2002 From: nacional at biosci.cbs.umn.edu (Pericles S. Nacionales) Date: 26 Nov 2002 17:37:23 -0600 Subject: [mapserver-users] project onto a globe? In-Reply-To: References: Message-ID: <1038353843.4322.30.camel@arceuthobium.ecology.umn.edu> OK, you got me thinking on this one. So, here's the output projection you'd want to include in your map file. I don't know if it'll work. PROJECTION "proj=ortho" "ellps=WGS84" "lat_0=52.0000" "lon_0=0.0000" "x_0=0.00" "y_0=0.00" END You can change the ellipse parameter to whatever spheroid you want to use, and lat_0 and lon_0 to whatever you'd want centered--I assume you'd want that to be UK/Europe. Here's more info: http://www.remotesensing.org/geotiff/proj_list/orthographic.html (Check the note on random issues) Let us know if it works. -Perry On Tue, 2002-11-26 at 13:21, Tom Hodder wrote: > > >If I understand correctly, what you folks in the UK call a "2D > representation of a globe" is known as a "circle" over here > >. > > ;-) > > > > > Tom - > > Do you mean that you want the image to look like a globe? If so, you need > > to use an orthographic projection. By virtue of making an image, you are > > doing some kind of projection from the earth to the plane of the image. > > > > > > This is pretty much what I am trying to achieve. > > I've only starting reading about > this stuff in the last couple of days so I'm missing chunks of information > that are probably quite basic for experienced mappers. > > >You'll have to give us a little more information. MapServer supports a HUGE > >array of map projections through PROJ4 ... so, yes, you can do it. > > > >See http://mapserver.gis.umn.edu/doc36/coordinates.html > > i going to read this thoroughly and see if what I can do with it. > > Thanks for the help so far. > > Tom > From mochaexpress at yahoo.com Tue Nov 26 16:29:49 2002 From: mochaexpress at yahoo.com (Caffeinate The World) Date: Tue, 26 Nov 2002 16:29:49 -0800 (PST) Subject: [mapserver-users] Why -lc and not -lgd -- checking for gdImagePng in -lc... no Message-ID: <20021127002949.51096.qmail@web13906.mail.yahoo.com> checking whether we should include JPEG support... using libjpeg from system -L/usr/pkg/lib -ljpeg checking which version of GD to use... using libgd from -L/usr/local/lib -lgd checking where FreeType is installed... using libfreetype from -L/usr/pkg/lib -lfreetype checking for FT_Init_FreeType in -lfreetype... no checking for TT_Init_FreeType in -lttf... no using libfreetype -L/usr/pkg/lib -lfreetype from system libs. checking where Zlib is installed... using libz from -L/usr/lib -lz checking where PNG is installed... using libpng from -L/usr/pkg/lib -lpng checking for gdImageGif in -lc... no checking for gdImagePng in -lc... no checking for gdImageJpeg in -lc... no checking for gdImageWBMP in -lc... no checking for gdImageStringFT in -lc... no checking for gdImageStringTTF in -lc... no --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From keon at nacse.org Tue Nov 26 17:49:38 2002 From: keon at nacse.org (Dylan Keon) Date: Tue, 26 Nov 2002 17:49:38 -0800 Subject: [mapserver-users] v. 3.7 release? References: <3DE3998F.329D1A39@dmsolutions.ca> Message-ID: <3DE424B2.8020601@nacse.org> Daniel Morissette wrote: > Also, if someone wanted to create and maintain a "3.6 to 3.7 migration > guide" (a Wiki page), that would help a lot too. A good starting point > for this would be the file HISTORY.TXT in the source package, and a few > posts to the list: Just to let others know...I've volunteered to work on this. Please contact me if you would like to contribute. I'll start on it sometime after this weekend. Thanks, Dylan -- ************************************************ Dylan Keon GIS/Database Research Specialist Northwest Alliance for Computational Science and Engineering (NACSE) Oregon State University Corvallis, OR 97331 keon at nacse.org (541) 737-6608 ************************************************ From morissette at dmsolutions.ca Tue Nov 26 17:54:58 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 26 Nov 2002 20:54:58 -0500 Subject: [mapserver-users] Why -lc and not -lgd -- checking for gdImagePng in -lc... no References: <20021127002949.51096.qmail@web13906.mail.yahoo.com> Message-ID: <3DE425F2.E1D8BF55@dmsolutions.ca> This would be too long to explain here, but even if you see -lc it's testing against -lgd internally with the path that you specified in the --with-gd option. Daniel Caffeinate The World wrote: > > checking whether we should include JPEG support... > using libjpeg from system -L/usr/pkg/lib -ljpeg > checking which version of GD to use... > using libgd from -L/usr/local/lib -lgd > checking where FreeType is installed... > using libfreetype from -L/usr/pkg/lib -lfreetype > checking for FT_Init_FreeType in -lfreetype... no > checking for TT_Init_FreeType in -lttf... no > using libfreetype -L/usr/pkg/lib -lfreetype from system libs. > checking where Zlib is installed... > using libz from -L/usr/lib -lz > checking where PNG is installed... > using libpng from -L/usr/pkg/lib -lpng > checking for gdImageGif in -lc... no > checking for gdImagePng in -lc... no > checking for gdImageJpeg in -lc... no > checkin! g for gdImageWBMP in -lc... no > checking for gdImageStringFT in -lc... no > checking for gdImageStringTTF in -lc... no > > ---------------------------------------------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now From gerry.creager at tamu.edu Tue Nov 26 18:59:52 2002 From: gerry.creager at tamu.edu (Gerry Creager N5JXS) Date: Tue, 26 Nov 2002 20:59:52 -0600 Subject: [mapserver-users] project onto a globe? References: Message-ID: <3DE43528.8020909@tamu.edu> The prototypical site for all things GIS for the non- or new GIS practitioner, in my mind, is the Geographer's Craft. Here's the map projections intro:http://www.colorado.edu/geography/gcraft/notes/mapproj/mapproj_f.html And the homepage: http://www.colorado.edu/geography/gcraft/contents.html Gerry Drew from Zhrodague wrote: >>Tom - >> >>If I understand correctly, what you folks in the UK call a "2D representation of a globe" is known as a "circle" over here . >> >>Is that right? There are certainly map projections available that project the surface of the entire Earth onto a circle, such as the Azimuthal Equidistant. However, they of necessity introduce gross distortions at the edges (away from the center point of the projection). This is also true of projections like Mercator and your example map, but those projections are common enough that they "look normal" to most people. >> >>You can see a good example of the Azimuthal Equidistant used to map the whole Earth (centered on North America) at: >> >>http://www-ccs.ucsd.edu/gmt/doc/html/GMT_Docs/node86.html > > > Anyone have a link for a brief desctiption of the different > projections, for s non GIS people? > > I'd like to render our maps onto a flat-model, just not sure which > projections do what. > > -- > > drew at zhrodague.net > http://www.WiFiMaps.com -- Gerry Creager -- gerry.creager at tamu.edu Network Engineering, Academy for Advanced Telecommunications Texas A&M University, College Station, TX Office: 979.458.4020 FAX: 979.847.8578 Cell: 979.229.5301 Page: 979.228.0173 -or- gcreager at my2way.com From NVohra at eq-technologic.com Tue Nov 26 20:22:16 2002 From: NVohra at eq-technologic.com (NVohra at eq-technologic.com) Date: Wed, 27 Nov 2002 09:52:16 +0530 Subject: [mapserver-users] Re: Annotations not appearing on map with phpMapscript - Solution Message-ID: Hello, I am sorry for not posting the solution before, but was just testing it thoroughly. The main difference in my original Layer definition, in the map file, and the working is that i kept LABELCACHE on in place of off. After that realisation, I found it to be quite straight forward. php file code : $layer = $map->getLayerByName('line3'); $class = $layer->getClass(0); $class->setExpression("([ID] == 15004 || [ID] == 14683)"); //testing for data with just two object ids $layer->draw($image); map file : LAYER NAME line3 TYPE annotation DATA line2 STATUS DEFAULT LABELCACHE off #originally this was LABELCACHE on, so not working LABELITEM "LABEL" CLASS EXPRESSION ([ID] == 0) #to avoid showing data from start NAME "ptclass" OUTLINECOLOR 199 216 252 COLOR 199 216 252 LABEL ANGLE AUTO BUFFER 3 FONT arial TYPE truetype SIZE 8 COLOR 0 0 0 OUTLINECOLOR 199 216 252 POSITION cc FORCE true BACKGROUNDCOLOR 255 255 255 END END END I found it working for the following environment: PHP ver4.0.6 with MapScript Version (Nov 27, 2001) and MapServer version 3.5 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 on WinNT. Nischal Vohra - - - - - - - - - - - - That one last shot's a Permanent Vacation And a how high can you fly with broken wings Life's a journey - not a destination And I just can't tell just what tomorrow brings - Aerosmith - - - - - - - - - - - - From mochaexpress at yahoo.com Tue Nov 26 20:30:25 2002 From: mochaexpress at yahoo.com (Caffeinate The World) Date: Tue, 26 Nov 2002 20:30:25 -0800 (PST) Subject: [mapserver-users] Why -lc and not -lgd -- checking for gdImagePng in -lc... no In-Reply-To: <3DE425F2.E1D8BF55@dmsolutions.ca> Message-ID: <20021127043025.95321.qmail@web13906.mail.yahoo.com> It's just odd that sometimes it fails to find any of those libraries. I verified the paths, and that gd is linked with them, but yet during configure, mapserver didn't find them. Daniel Morissette wrote:This would be too long to explain here, but even if you see -lc it's testing against -lgd internally with the path that you specified in the --with-gd option. Daniel Caffeinate The World wrote: > > checking whether we should include JPEG support... > using libjpeg from system -L/usr/pkg/lib -ljpeg > checking which version of GD to use... > using libgd from -L/usr/local/lib -lgd > checking where FreeType is installed... > using libfreetype from -L/usr/pkg/lib -lfreetype > checking for FT_Init_FreeType in -lfreetype... no > checking for TT_Init_FreeType in -lttf... no > using libfreetype -L/usr/pkg/lib -lfreetype from system libs. > checking where Zlib is installed... > using libz from -L/usr/lib -lz > checking where PNG is installed... > using libpng from -L/usr/pkg/lib -lpng > checking for gdImageGif in -lc... no > checking for gdImagePng in -lc... no > checking for gdImageJpeg in -lc... no > checkin! g for gdImageWBMP in -lc... no > checking for gdImageStringFT in -lc... no > checking for gdImageStringTTF in -lc... no > > ---------------------------------------------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From mochaexpress at yahoo.com Wed Nov 27 01:31:21 2002 From: mochaexpress at yahoo.com (Caffeinate The World) Date: Wed, 27 Nov 2002 01:31:21 -0800 (PST) Subject: [mapserver-users] Answer to Why Configure Fails to Detected GD Supported Graphics Formats Message-ID: <20021127093121.6235.qmail@web13902.mail.yahoo.com> I was confused for a few days on why 'configure' would fail to detect that my gd-2.0.7 library didn't have PNG, JPEG, etc. supported formats. Using ld and nm I verified that the associated libraries were linked with libgd.so, but Mapserver's configure script still said those formats weren't supported by my version of gd. It turned out my libgd.so was linked with libXpm.so and libX11.so. When configure compiled it's test program to check to see if it can use certain functions like gdImagePng() or gdImageGif(), the test app would aways fail cause it's linking with libgd.so but doesn't have any switches for -lXpm or -lX11 and if necessary proper -rpath (for *BSD). Consequently no supported graphic function was found. I would like to suggest we add --with-x11[=dir] and --with-xpm[=dir] to configure. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From bultee at yahoo.fr Wed Nov 27 01:42:00 2002 From: bultee at yahoo.fr (=?iso-8859-1?q?Emmanuelle?=) Date: Wed, 27 Nov 2002 10:42:00 +0100 (CET) Subject: Thanks Re: [mapserver-users] vmap0 to shape file In-Reply-To: <3DE3FFD5.3090700@pobox.com> Message-ID: <20021127094200.16356.qmail@web14201.mail.yahoo.com> Thank you for your help. We'll try again and I have very much appreciated all the help I got from the mapserver discussion group. Could you advise me where I could post or a friend of mine could post this kind of questions. Many thanks again, Emmanuelle Frank Warmerdam wrote: Emmanuelle wrote: > Hi Frank, > > There was some problem to use the ogr2ogr under windows. The command was > unable to find the datasource [Unable to open datasource ] :-( joined > the commands below. > > I am also not quite sure how can I make sure that the dbf file contains > certain columns- such as code ISO, country names, region names. > > .\v0soa\vmaplv0\soamafr is the relative path of the data sources > > soamer is at the same level as dht. and lat. files > > T:\Projects\Analytix\02 Utils\Nima>ogr2ogr -f "ESRI Shapefile" > polbnda.shp .\v0s > oa\vmaplv0\soamafr Emmanuelle, You need the gltp:/vrf/ prefix on the name. You should also use a full path to the dataset, not a relative path. Relative paths may not work due to the nature of OGDI. I would also note that Shapefiles are the default output format, so you don't need to select it with -f. eg. ogr2ogr polbnda.shp gltp:/vrf/.../v0soa/vmaplv0/soamfr Actually, as previously noted, you will also need to select the layer you want and rename that layer to polbnda. Please refer back to my earlier message where I detailed how to do this. As for what columns appear in the .dbf file ... you get whatever you get. The only thing you can control is to force it to discard some stuff you don't need. PS. I don't think this discussion belongs on the mapserver list. 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 --------------------------------- Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en fran?ais ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From klaus.zahradnik at sysinet.com Wed Nov 27 03:01:37 2002 From: klaus.zahradnik at sysinet.com (Klaus Zahradnik) Date: Wed, 27 Nov 2002 11:01:37 -0000 Subject: [mapserver-users] Postgres/Postgis on a different machine than mapserver Message-ID: <200211270852.gAR8qqK31473@mail.sysinet.com> Hy there! We have the following problem: We have one machine with Postgres/-gis and Mapserver installed and running. We also have a second machine, with only the Mapserver running on it. We want the second machine to use the database of the first one (since the first one is way bigger). Do we have to compile and install postgres and postgis on the second machine, just to be able to use the postgis database on the second machine? We tried just to connect to it, but get the unsupported error (sonce we did not install and compile postgres/gis on the second machine) best regards and thanks in advance Klaus Zahradnik From jhart at frw.uva.nl Wed Nov 27 02:29:36 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Wed, 27 Nov 2002 11:29:36 +0100 Subject: [mapserver-users] Error Creating View... References: <3DE3A831.4030709@pmpf.rs.gov.br> Message-ID: <3DE49E90.9000509@frw.uva.nl> Jo?o, This subject has been discussed several times on the PostGIS-users list. A few days ago it has been added to the PostGIS documentation ( http://postgis.refractions.net/docs/x549.html#AEN607 ). The thing to remember is that PostGIS uses items that are not available in views (or subselects): a unique identifier field (called OID in regular tables) and a projection number (SRID). Both are automatically available in regular tables, but in a view or a subselect you have to add them explicitly. You do this by adding "using UNIQUE= using SRID=" to the MapServer DATA statement. Of course, The should be included when creating the view. Hope this helps, Jan Hartmann Jo?o M?rio wrote: > Hello to all > > I'm using PostGIS and Mapserver versions 0.7.3 and 3.6.3. > > I'm tried to create a view from the main table and call it in the > mapfile, but it doesn't work.... > > The code is this: > > LAYER > CONNECTIONTYPE postgis > NAME Roads > CONNECTION "user=postgres dbname=dbase" > DATA "geometry_field from table_view" > FILTER "id_sec=1" > STATUS ON > TYPE LINE > # LABELITEM "tile_name" > CLASS > NAME "Road 1" > TEMPLATE "Road_1.html" > EXPRESSION ([tipo_log]=2) > COLOR 85 85 85 > SYMBOL 'line' > SIZE 10 > MINSIZE 3 > MAXSIZE 15 > OVERLAYCOLOR 168 168 0 > OVERLAYSYMBOL 0 > OVERLAYSIZE 3 > OVERLAYMINSIZE 1 > OVERLAYMAXSIZE 2 > SIZE 15 > # LABEL > # TYPE truetype > # FONT arial-bold > # SIZE 14 > # ANTIALIAS > # COLOR 0 0 0 > # OUTLINECOLOR 255 255 255 > # PARTIALS OFF > END > CLASS > NAME "Road" > TEMPLATE "Road_2" > EXPRESSION ([tipo_log]=1) > COLOR 85 85 85 > SYMBOL 'line' > SIZE 5 > MINSIZE 3 > MAXSIZE 15 > OVERLAYCOLOR 255 255 255 > OVERLAYSYMBOL 0 > OVERLAYSIZE 3 > OVERLAYMINSIZE 1 > OVERLAYMAXSIZE 2 > SIZE 15 > END > END > > when i execute the following error apears: > > 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 > tipo_log::text,asbinary(force_collection(force_2d(geometry_field)),'NDR'),OID::text > from table_view WHERE (id_sec=1) and (geometry_field && setSRID( > 'BOX3D(1430.3002 760.3,1730.1002 > 1120.3)'::BOX3D,find_srid('','table_view','geometry_field') )) > > What could be wrong? > > Thanks > > Jo?o > > Jan Hartmann Departmen of Geography University of Amsterdam jhart at frw.uva.nl From fx.gamoy at mapxplore.com Wed Nov 27 04:05:47 2002 From: fx.gamoy at mapxplore.com (fx gamoy) Date: Wed, 27 Nov 2002 12:05:47 -0000 Subject: [mapserver-users] installation mapscript with apache on win32 platform Message-ID: <001401c2960d$5246ad20$0201a8c0@mapxplore.com> i try to configure mapscript as a CGI with apache on a winNT plateform i have made some changes in the httpd.conf file LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php .phtml Action application/x-httpd-php "c:/php/php.exe" and IE return : Fatal error: dl() is not supported in multithreaded Web servers - use extension statements in your php.ini in D:\downloads\mapserver\maplab\maplab-2.0rc2\gmf_apps\eurosig\wrapper\utilities.php on line 51 Thanks for your help fx gamoy http://www.mapxlore.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at libero.it Wed Nov 27 04:26:17 2002 From: armin.burger at libero.it (Armin Burger) Date: Wed, 27 Nov 2002 13:26:17 +0100 Subject: [mapserver-users] Postgres/Postgis on a different machine than mapserver Message-ID: <200211271226.gARCQlae013512@lists.gis.umn.edu> Klaus, you can access Postgres/PostGIS with MapServer from another machine. I suppose that the other machine has MapServer with PostGIS support installed. So it could be a problem of the start parameters of Postgres. I think the default setting of PG is to be available only locally. You need the start parameter '-i' to have it available also via TCP/IP. It should also be necessary to add the other machine as host in the file 'pg_hba.conf'. You could test if you can access Postgres with the psql programm from the second PC. If it fails then probably Postgres is not running with the '-i' option or the host is not allowed to connect. Armin > Hy there! > We have the following problem: > We have one machine with Postgres/-gis and Mapserver installed and > running. > We also have a second machine, with only the Mapserver running on it. We > want the second machine to use the database of the first one (since the > first one is way bigger). > Do we have to compile and install postgres and postgis on the second > machine, just to be able to use the postgis database on the second > machine? > We tried just to connect to it, but get the unsupported error (sonce we > did > not install and compile postgres/gis on the second machine) > best regards and thanks in advance > Klaus Zahradnik From jhart at frw.uva.nl Wed Nov 27 04:24:54 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Wed, 27 Nov 2002 13:24:54 +0100 Subject: [mapserver-users] Postgres/Postgis on a different machine than mapserver References: <200211270852.gAR8qqK31473@mail.sysinet.com> Message-ID: <3DE4B996.30900@frw.uva.nl> Klaus, You don't need PostGIS on the MapServer machine. However, you need to have MapServer compiled with PostGIS support. With that, you can just give the Internet address, database name, port and user of the PostgreSQL/PostGIS database in the layer's CONNECTION line. Note that this could give poor performance, as the whole vector layer has to be sent over the line to be rasterized by MapServer. Once you get things running with simple PostGIS tables, try to restrict on the PostGIS side what you will send to MapServer, e.g. - use SQL selects instead of MapServer FILTERs - don't send whole tables; send subselects with just the variables you need (OID, the_geom and one CLASS variable). - create PostgreSQL views and use them in your MapServer DATA line. See http://postgis.refractions.net/docs/x549.html#AEN607 Jan Hartmann Klaus Zahradnik wrote: > Hy there! > We have the following problem: > > We have one machine with Postgres/-gis and Mapserver installed and running. > We also have a second machine, with only the Mapserver running on it. We > want the second machine to use the database of the first one (since the > first one is way bigger). > > Do we have to compile and install postgres and postgis on the second > machine, just to be able to use the postgis database on the second machine? > We tried just to connect to it, but get the unsupported error (sonce we did > not install and compile postgres/gis on the second machine) > > best regards and thanks in advance > Klaus Zahradnik > > Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From stewartjb at agr.gc.ca Wed Nov 27 04:51:19 2002 From: stewartjb at agr.gc.ca (Ben Stewart) Date: Wed, 27 Nov 2002 07:51:19 -0500 Subject: [mapserver-users] Query from a text string Message-ID: Hello: I am building a prototype for an application which highlights a polygon on a map, then downloads data from a remote URL. The user clicks the map, and a download box pops up with the highlighted polygon on the map behind it. The query is very straight forward. The querymap displays, and a function retrieves the polygon label, in a CGI variable from the shapefile. It uses java script to download an indexed dbase file with the same name as the label, from a remote URL. As a final step, I now want to take input from a text box and achieve the same functionality as I do when clicking on the map. Retrieving the ZIP file, is no problem, but as yet I am not able to bring up the query map. Can anyone suggest on how I might go about doing this? I notice that in a query string, the coordinates of a mouse click are usually passed to mapserver. If I'm querying from a text string, I can't provide the coordinates of a click. I can only provide the label, which as I mentioned is an attribute for that polygon. Template and Mapfile are provided below if it would help you to look at them, but I am just looking for some direction. Thank you, very much for your assistance. <-----MAPFILE------------------------------------------------------------> # #Start of Map File - "core.map" # MAP Name test Status on Size 240 165 Extent -2700000 -1175000 3500000 4500000 Units meters Shapepath "data" Symbolset symset.sym Fontset "/usr/www/httpd/htdocs/mapdata/style/fonts.txt" WEB TEMPLATE test.html IMAGEPATH "/usr/www/httpd/htdocs/mapdata/tmp/" IMAGEURL "/mapdata/tmp/" END # web QUERYMAP SIZE 240 165 STATUS ON STYLE HILITE COLOR 255 255 0 END #QUERYMAP # Start of Layer Definitions # # LAYER NAME mapsheet TYPE polygon STATUS default DATA "cliiwms" TEMPLATE test.html #TEMPLATE "http://sis.agr.gc.ca/cansis/nsdb/cli/cai[SHEET].zip" CLASSITEM 'cli_ag' CLASS NAME mapsheet EXPRESSION ([cli_ag] = 1) COLOR 255 255 204 OUTLINECOLOR 000 000 000 END #CLASS END #LAYER LAYER #Display labels at a specific resolution NAME mapsheetlabels TYPE polygon STATUS default DATA "cliiwms" MINSCALE 500000 MAXSCALE 12000000 #TEMPLATE "http://sis.agr.gc.ca/cansis/nsdb/cli/cai[SHEET].zip" TEMPLATE test.html LABELITEM "sheet" CLASSITEM 'mapsheet' CLASS NAME 'mapsheet' Expression ([cli_ag] = 1) # COLOR 255 255 204 # OUTLINECOLOR 0 0 0 LABEL COLOR 66 33 0 SIZE small FORCE on END #LABEL END #CLASS END # layer LAYER NAME themap TYPE line STATUS default DATA "cliwmsp" CLASS NAME 'details' COLOR 0 0 0 OUTLINECOLOR 0 0 0 END #CLASS END # layer LAYER NAME cities TYPE point STATUS default DATA "citieswms" MINSCALE 500000 MAXSCALE 12000000 LABELITEM "Name" CLASSITEM 'name' CLASS NAME 'City' SYMBOL "circle" SIZE 5 COLOR 250 0 0 LABEL COLOR 0 0 255 SIZE small OFFSET 5 5 POSITION auto END # label END # class END # layer END #MAPFILE <--------TEMPLATE------------------------------------------------------> Text Strings and Queries



My Little Text String Query


QUERY
BROWSE
  
From klaus.zahradnik at sysinet.com Wed Nov 27 07:08:20 2002 From: klaus.zahradnik at sysinet.com (Klaus Zahradnik) Date: Wed, 27 Nov 2002 15:08:20 -0000 Subject: [mapserver-users] Proj.4 - compiled in, but still not working Message-ID: <200211271259.gARCxYK01120@mail.sysinet.com> Hy guys! I compiled the mapserver like 15 times today already. On the other server the proj support is working like a charm, on the other one, I don't stand a chance to get it to work. Here is the config command: ./configure --with-php=/usr/src/php-4.2.3 --with-gd --with-png --with-jpeg --with-zlib --with-tiff --with-freetype=/usr/share/doc/freetype-2.0.9 --with-proj=/usr/src/proj-4.4.5 --with-postgis=/usr/local/pgsql/bin/pg_config --with-ming=/usr/src/ming-0.22a Here is the message I get during configure: checking whether we should include PROJ.4 support... checking for pj_transform in -lproj... yes checking for pj_latlong_from_proj in -lproj... yes using PROJ.4 from /usr/src/proj-4.4.5. Here is the error message from the apache-logfile: PHP Notice: Undefined index: MAP_NAME in /usr/local/apache/htdocs/mapserverdemos/plattform/htdocs/plattform.phtml on line 66 PHP Warning: MapServer Error in loadProjection(): Projection support is not available. in /usr/local/apache/htdocs/mapserverdemos/plattform/htdocs/plattform.phtml on line 69 PHP Fatal error: Failed to open map file plattform.map in /usr/local/apache/htdocs/mapserverdemos/plattform/htdocs/plattform.phtml on line 69 Any hints would be greatly appreciated! best regards Klaus From EZS at destraat.nl Wed Nov 27 06:08:01 2002 From: EZS at destraat.nl (Emil Zegers) Date: Wed, 27 Nov 2002 15:08:01 +0100 Subject: Betr.: [mapserver-users] Query from a text string Message-ID: Hello Ben, This is only a workaround, not a real solution but maybe worth to give a try: Create an extra file (dbf, table in your db) or field in your shapefile dbf containing the centerpoints of the polygons, query this file with the label and use the output to create the request to send to mapserver. Disadvantages: - points have to be updated separately when shapefile changes - points have to be in the polygon so manually editing of centerpoints might be required (or just use a script that creates a point in a polygon) - labels have to be unique Best regards, Emil Zegers >>> "Ben Stewart" 11/27 1:51 >>> Hello: I am building a prototype for an application which highlights a polygon on a map, then downloads data from a remote URL. The user clicks the map, and a download box pops up with the highlighted polygon on the map behind it. The query is very straight forward. The querymap displays, and a function retrieves the polygon label, in a CGI variable from the shapefile. It uses java script to download an indexed dbase file with the same name as the label, from a remote URL. As a final step, I now want to take input from a text box and achieve the same functionality as I do when clicking on the map. Retrieving the ZIP file, is no problem, but as yet I am not able to bring up the query map. Can anyone suggest on how I might go about doing this? I notice that in a query string, the coordinates of a mouse click are usually passed to mapserver. If I'm querying from a text string, I can't provide the coordinates of a click. I can only provide the label, which as I mentioned is an attribute for that polygon. Template and Mapfile are provided below if it would help you to look at them, but I am just looking for some direction. Thank you, very much for your assistance. ______________________________________________________ This message has been checked for all known viruses ______________________________________________________ From EZS at destraat.nl Wed Nov 27 06:06:25 2002 From: EZS at destraat.nl (Emil Zegers) Date: Wed, 27 Nov 2002 15:06:25 +0100 Subject: Betr.: [mapserver-users] Query from a text string Message-ID: <~B000013dc3.0000268c.mml.2656070646@gwia.syncera.nl> Hello Ben, This is only a workaround, not a real solution but maybe worth to give a try: Create an extra file (dbf, table in your db) or field in your shapefile dbf containing the centerpoints of the polygons, query this file with the label and use the output to create the request to send to mapserver. Disadvantages: - points have to be updated separately when shapefile changes - points have to be in the polygon so manually editing of centerpoints might be required (or just use a script that creates a point in a polygon) - labels have to be unique Best regards, Emil Zegers >>> "Ben Stewart" 11/27 1:51 >>> Hello: I am building a prototype for an application which highlights a polygon on a map, then downloads data from a remote URL. The user clicks the map, and a download box pops up with the highlighted polygon on the map behind it. The query is very straight forward. The querymap displays, and a function retrieves the polygon label, in a CGI variable from the shapefile. It uses java script to download an indexed dbase file with the same name as the label, from a remote URL. As a final step, I now want to take input from a text box and achieve the same functionality as I do when clicking on the map. Retrieving the ZIP file, is no problem, but as yet I am not able to bring up the query map. Can anyone suggest on how I might go about doing this? I notice that in a query string, the coordinates of a mouse click are usually passed to mapserver. If I'm querying from a text string, I can't provide the coordinates of a click. I can only provide the label, which as I mentioned is an attribute for that polygon. Template and Mapfile are provided below if it would help you to look at them, but I am just looking for some direction. Thank you, very much for your assistance. <-----MAPFILE------------------------------------------------------------> # #Start of Map File - "core.map" # MAP Name test Status on Size 240 165 Extent -2700000 -1175000 3500000 4500000 Units meters Shapepath "data" Symbolset symset.sym Fontset "/usr/www/httpd/htdocs/mapdata/style/fonts.txt" WEB TEMPLATE test.html IMAGEPATH "/usr/www/httpd/htdocs/mapdata/tmp/" IMAGEURL "/mapdata/tmp/" END # web QUERYMAP SIZE 240 165 STATUS ON STYLE HILITE COLOR 255 255 0 END #QUERYMAP # Start of Layer Definitions # # LAYER NAME mapsheet TYPE polygon STATUS default DATA "cliiwms" TEMPLATE test.html #TEMPLATE "http://sis.agr.gc.ca/cansis/nsdb/cli/cai[SHEET].zip" CLASSITEM 'cli_ag' CLASS NAME mapsheet EXPRESSION ([cli_ag] = 1) COLOR 255 255 204 OUTLINECOLOR 000 000 000 END #CLASS END #LAYER LAYER #Display labels at a specific resolution NAME mapsheetlabels TYPE polygon STATUS default DATA "cliiwms" MINSCALE 500000 MAXSCALE 12000000 #TEMPLATE "http://sis.agr.gc.ca/cansis/nsdb/cli/cai[SHEET].zip" TEMPLATE test.html LABELITEM "sheet" CLASSITEM 'mapsheet' CLASS NAME 'mapsheet' Expression ([cli_ag] = 1) # COLOR 255 255 204 # OUTLINECOLOR 0 0 0 LABEL COLOR 66 33 0 SIZE small FORCE on END #LABEL END #CLASS END # layer LAYER NAME themap TYPE line STATUS default DATA "cliwmsp" CLASS NAME 'details' COLOR 0 0 0 OUTLINECOLOR 0 0 0 END #CLASS END # layer LAYER NAME cities TYPE point STATUS default DATA "citieswms" MINSCALE 500000 MAXSCALE 12000000 LABELITEM "Name" CLASSITEM 'name' CLASS NAME 'City' SYMBOL "circle" SIZE 5 COLOR 250 0 0 LABEL COLOR 0 0 255 SIZE small OFFSET 5 5 POSITION auto END # label END # class END # layer END #MAPFILE <--------TEMPLATE------------------------------------------------------> Text Strings and Queries


My Little Text String Query


QUERY
BROWSE
  
__________ VChecked ______________________________________________________ This message has been checked for all known viruses ______________________________________________________ From nida at webstar.co.uk Wed Nov 27 06:37:04 2002 From: nida at webstar.co.uk (nida Khan) Date: Wed, 27 Nov 2002 14:37:04 -0000 Subject: [mapserver-users] status bar in no appearing ! Message-ID: <014401c29622$74bea1e0$a901a8c0@private.webstar.co.uk> Hi List, I'm a new bie in GIS world, I'm trying small task before I jump into anything big. so far I managed to get the map,legend working. now when I tried to put the scalebar, nothing happens, its not printing the image... it seems like it get the image path but does not create one! I'm sure its something small that I'm missing, but what??? here is code of my map and html file. NAME WALES EXTENT 127000.0 160000.0 380000.0 402000.0 SIZE 400 400 FONTSET "/var/www/html/wales/fonts/fonts.list" UNITS KILOMETERS WEB TEMPLATE wales2.html IMAGEPATH "/var/www/html/wales/tmp/" IMAGEURL "/wales/tmp/" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END LEGEND STATUS ON LABEL COLOR 0 0 0 SIZE MEDIUM ANTIALIAS TRUE END END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE small END STYLE 1 SIZE 160 2 COLOR 255 255 255 UNITS KILOMETERS INTERVALS 4 TRANSPARENT ON STATUS TRUE END html file Wales

Wales from Postgis with Zoom

SEARCH WINDOW: [imgext]
QUERY POINT: ([img.x], [img.y]) image coordinates or ([mapx], [mapy]) map coordinates
QUERY METRICS: number of layers with results=[nl], total number of results=[nr]


Regards Nida -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Wed Nov 27 07:30:44 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Wed, 27 Nov 2002 09:30:44 -0600 (CST) Subject: [mapserver-users] New Symbol Repository in MapServer Wiki (FWD) Message-ID: <200211271530.gARFUiG29097@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Wed, 27 Nov 2002 09:32:32 -0600 From: djf at visi.com To: mapserver-info at lists.gis.umn.edu Subject: New Symbol Repository in MapServer Wiki MIME-Version: 1.0 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 207.171.93.45 List, I have created a Wiki page to serve as a repository for MapServer symbol files. You can find it at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SymbolExamples My goal is to help new users get applications up and running, and to help experienced users who want to represent something more funky than a circle or a line (e.g. railroad track, class IV River, barbed wire, etc.) I know that many people have come up with creative solutions for symbols, please share them with the rest of the world. I also suggest a Tips section for helping people use symbols (beyond the standard docs). Thanks, David. David Fawcett MN Office of Environmental Assistance david.fawcett at moea.state.mn.us PS. We are having some major e-mail problems here, so I am posting under a personal e-mail. I have tried to post this a few times through my work e-mail and it doesn't appear to have gone through. I apologize if you have seen it before. ------------- End Forwarded Message ------------- From pramsey at refractions.net Wed Nov 27 08:49:12 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 27 Nov 2002 08:49:12 -0800 Subject: [mapserver-users] Postgres/Postgis on a different machine than mapserver References: <200211270852.gAR8qqK31473@mail.sysinet.com> <3DE4B996.30900@frw.uva.nl> Message-ID: <3DE4F788.50708@refractions.net> To be slightly more detailed: a) you need a PostGIS-enabled mapserver b) you need the PostgreSQL client libraries (libpq) libpq supports network connections transparently, exactly the same as normal connections, just specify a host in the connect string. P. Jan Hartmann wrote: > Klaus, > > You don't need PostGIS on the MapServer machine. However, you need to > have MapServer compiled with PostGIS support. With that, you can just > give the Internet address, database name, port and user of the > PostgreSQL/PostGIS database in the layer's CONNECTION line. > > Note that this could give poor performance, as the whole vector layer > has to be sent over the line to be rasterized by MapServer. Once you get > things running with simple PostGIS tables, try to restrict on the > PostGIS side what you will send to MapServer, e.g. > > - use SQL selects instead of MapServer FILTERs > - don't send whole tables; send subselects with just the variables you > need (OID, the_geom and one CLASS variable). > - create PostgreSQL views and use them in your MapServer DATA line. See > http://postgis.refractions.net/docs/x549.html#AEN607 > > Jan Hartmann > > Klaus Zahradnik wrote: > >> Hy there! >> We have the following problem: >> >> We have one machine with Postgres/-gis and Mapserver installed and >> running. >> We also have a second machine, with only the Mapserver running on it. We >> want the second machine to use the database of the first one (since the >> first one is way bigger). >> >> Do we have to compile and install postgres and postgis on the second >> machine, just to be able to use the postgis database on the second >> machine? >> We tried just to connect to it, but get the unsupported error (sonce >> we did >> not install and compile postgres/gis on the second machine) >> >> best regards and thanks in advance >> Klaus Zahradnik >> >> > > > > > > Jan Hartmann > Department of Geography > University of Amsterdam > jhart at frw.uva.nl > -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From richard.wood at newgrove.com Wed Nov 27 13:22:31 2002 From: richard.wood at newgrove.com (Richard Wood) Date: Wed, 27 Nov 2002 21:22:31 +0000 Subject: [mapserver-users] ITEMNQUERY with regular expression filter Message-ID: <1038432151.3de5379721cba@netmail.pipex.net> Hi, I've been trying for hours now to get ITEMNQUERY to return a set of selected points. I'd be really grateful for some help. The result I'm looking for is to select and zoom to more than one point with specific IDs. The regular expression seems to work (I tested it first as an EXPRESSION in the mapfile layer object). Thanks in advance (mapfile/CGI setting below). Richard Wood ___________________ mode : itemnquery qlayer : test filter : (([FEATID] eq 16895) or ([FEATID] eq 16880)) mapext : shapes the mapfile contains the following layer setting LAYER NAME test TYPE POINT DATA 'vectorEHCR\tblfeat' STATUS OFF FILTER '%filter%' CLASS SYMBOL 'FSSymbolHL' TEMPLATE 'selectTemplate.html' END END _________________ GIS Developer Newgrove Consultants Ltd. 118 Piccadilly London W1J 7NW Telephone: 00 44 (0) 207 569 6856 Fax: 00 44 (0) 207 569 6857 www.newgrove.com From ken at rockies.ca Wed Nov 27 15:43:25 2002 From: ken at rockies.ca (Ken Sanderson) Date: Wed, 27 Nov 2002 16:43:25 -0700 Subject: [mapserver-users] Getting Started Message-ID: Can anyone point me in the direction of some online documention in setting up the demo with IIS? I installed the MapServer as instructed, then put the demo in a folder on the website, but I am thinking I need to add something in the web server, such as with php.exe I added an extension for .php to point to that exe. Is there something similiar I need to do with mapserver.exe? Thanks, Ken From morissette at dmsolutions.ca Wed Nov 27 19:02:11 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 27 Nov 2002 22:02:11 -0500 Subject: [mapserver-users] Problems with querymap References: <31876.1038321505@www42.gmx.net> Message-ID: <3DE58733.8AE82E48@dmsolutions.ca> frauke.trurnit at gmx.de wrote: > > I try to use querymap, but have some problems with it. > When I press the button for the Query feature > the result is: msQueryByPoint(): Search returned no results. No matching > record(s) found. > You have to set a TEMPLATE value in the LAYERs or CLASSes that you want to make queryable. I didn't see any in your mapfile so that would be the first thing to check. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From pkishor at GeoAnalytics.com Wed Nov 27 19:31:04 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 27 Nov 2002 21:31:04 -0600 Subject: [mapserver-users] Getting Started In-Reply-To: Message-ID: you have to start at the very begining, a very good place to start On Wednesday, November 27, 2002, at 05:43 PM, Ken Sanderson wrote: > Can anyone point me in the direction of some online documention in > setting > up the demo with IIS? http://mapserver.gis.umn.edu/doc.html http://mapserver.gis.umn.edu/cgi-bin/wiki.pl happy thanksgiving. pk/ > > I installed the MapServer as instructed, then put the demo in a folder > on > the website, but I am thinking I need to add something in the web > server, > such as with php.exe I added an extension for .php to point to that > exe. Is > there something similiar I need to do with mapserver.exe? > > Thanks, > > Ken > From lp at INSER.CH Wed Nov 27 23:33:24 2002 From: lp at INSER.CH (Luca Palli) Date: Thu, 28 Nov 2002 08:33:24 +0100 Subject: [mapserver-users] Alpha querys Message-ID: <61D6E8202227D41197360050BACF5FE429270C@srvmail> It is possible to make alphanumeric query on fields of a dbf file with only mapserver, no extra server software? Tanks, Luca _____________________________________________________ Luca Palli mailto:lp at inser.ch INSER SA Ch. de Maillefer 36, CH-1052 Le-Mont-sur-Lausanne Tel +41 (0)21 643 77 11 Fax +41 (0)21 643 77 10 From attila at prometheus.org.yu Thu Nov 28 00:59:47 2002 From: attila at prometheus.org.yu (Attila Csipa) Date: Thu, 28 Nov 2002 09:59:47 +0100 Subject: [mapserver-users] fontset Message-ID: <200211280910.gAS9AwR16256@tina2.tippnet.co.yu> Is is possible to set the fontset map object attribute from mapscript ? I'm trying to lose the .map files and handle everything dynamically but I do not know how to set the fontlist (which is unmentioned in the mapscript reference). Regards, Attila Csipa From stepan.kafka at centrum.cz Thu Nov 28 01:17:29 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Thu, 28 Nov 2002 10:17:29 +0100 Subject: [mapserver-users] Alpha querys In-Reply-To: <61D6E8202227D41197360050BACF5FE429270C@srvmail> Message-ID: <000a01c296be$f9c22c80$7e3c2fc3@HSGIS> You may only query attribute tables of existing layers, not standalone DBF tables, I think. 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 Luca Palli > Odesl?no: 28. listopadu 2002 8:33 > Komu: 'mapserver-users at lists.gis.umn.edu' > P?edm?t: [mapserver-users] Alpha querys > > > It is possible to make alphanumeric query on fields of a dbf file > with only > mapserver, no extra server software? > > Tanks, > > Luca > > _____________________________________________________ > Luca Palli mailto:lp at inser.ch > > INSER SA > Ch. de Maillefer 36, CH-1052 Le-Mont-sur-Lausanne > Tel +41 (0)21 643 77 11 Fax +41 (0)21 643 77 10 > > From thomas.de.lange.wenneck at imr.no Thu Nov 28 01:20:01 2002 From: thomas.de.lange.wenneck at imr.no (Wenneck, Thomas De Lange) Date: Thu, 28 Nov 2002 10:20:01 +0100 Subject: [mapserver-users] installation mapscript with apache on win3 2 platform Message-ID: <3418BE5B6E6DD511991400B0D0D034E414513F@hipost.imr.no> I think you are trying to configure PHP as a SAPI module, instead of a CGI module. Drop the LoadModule and Addmodule and try: ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" Thomas -----Original Message----- From: fx gamoy [mailto:fx.gamoy at mapxplore.com] Sent: 27. november 2002 13:06 To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] installation mapscript with apache on win32 platform i try to configure mapscript as a CGI with apache on a winNT plateform i have made some changes in the httpd.conf file LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php .phtml Action application/x-httpd-php "c:/php/php.exe" and IE return : Fatal error: dl() is not supported in multithreaded Web servers - use extension statements in your php.ini in D:\downloads\mapserver\maplab\maplab-2.0rc2\gmf_apps\eurosig\wrapper\utiliti es.php on line 51 Thanks for your help fx gamoy http://www.mapxlore.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From fx.gamoy at mapxplore.com Thu Nov 28 02:34:26 2002 From: fx.gamoy at mapxplore.com (fx gamoy) Date: Thu, 28 Nov 2002 10:34:26 -0000 Subject: [mapserver-users] installation mapscript with apache on win32 platform References: <3418BE5B6E6DD511991400B0D0D034E414513F@hipost.imr.no> Message-ID: <006e01c296c9$b9aa64e0$0201a8c0@mapxplore.com> thanks it works my problem now is to use the porjection with my map. It works well with IIS using the PROJ_LIB environnement variable but don't work with apache which don't care about the window environnement variable Thanks fx GAMOY http://www.mapxplore.com/ ----- Original Message ----- From: Wenneck, Thomas De Lange To: 'fx gamoy' ; mapserver-users at lists.gis.umn.edu Sent: Thursday, November 28, 2002 9:20 AM Subject: RE: [mapserver-users] installation mapscript with apache on win32 platform I think you are trying to configure PHP as a SAPI module, instead of a CGI module. Drop the LoadModule and Addmodule and try: ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" Thomas -----Original Message----- From: fx gamoy [mailto:fx.gamoy at mapxplore.com] Sent: 27. november 2002 13:06 To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] installation mapscript with apache on win32 platform i try to configure mapscript as a CGI with apache on a winNT plateform i have made some changes in the httpd.conf file LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php .phtml Action application/x-httpd-php "c:/php/php.exe" and IE return : Fatal error: dl() is not supported in multithreaded Web servers - use extension statements in your php.ini in D:\downloads\mapserver\maplab\maplab-2.0rc2\gmf_apps\eurosig\wrapper\utilities.php on line 51 Thanks for your help fx gamoy http://www.mapxlore.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacobi at dfki.de Thu Nov 28 01:46:39 2002 From: jacobi at dfki.de (Sven Jacobi) Date: Thu, 28 Nov 2002 10:46:39 +0100 Subject: [mapserver-users] Mapserver and Zope Message-ID: <200211280945.gAS9jQZn022219@corp-200.dfki.uni-sb.de> Hi, I'm using Mapserver inside Zope and it really works fine. I start it with Python Scripts and External Methods, but now I want to make it a little bit more elegant. Instead of making a call to CGI every time I alter something in the map and so start a new programm every time, I want to do this via templates and "only" starting new threads. Has anybody some experience with that? I know a few persons are doing similar things, so it would be great to have common exchange as suggested from Michael Schulz. Let's get things started... Does anybody can give me some help in forward? Thanks, Sven :-) From mh at svaj.dk Thu Nov 28 02:19:51 2002 From: mh at svaj.dk (Martin Hoegh) Date: Thu, 28 Nov 2002 11:19:51 +0100 Subject: [mapserver-users] setting status of a layer using url Message-ID: <003601c296c7$b088aa40$6700000a@svaj.local> Hi It seems too me that it's not possible to set the status of a layer using an url e.g. map_mylayer_status=default. Can this be right? Martin H?gh -------------- next part -------------- An HTML attachment was scrubbed... URL: From nida at webstar.co.uk Thu Nov 28 02:12:54 2002 From: nida at webstar.co.uk (nida Khan) Date: Thu, 28 Nov 2002 10:12:54 -0000 Subject: [mapserver-users] status bar in no appearing ! References: <014401c29622$74bea1e0$a901a8c0@private.webstar.co.uk> Message-ID: <021401c296c6$b7e93440$a901a8c0@private.webstar.co.uk> Thank you very much everyone to help me out with this mystry problem... Actually my background was white, so was the imagecolor and text color, so after changing STATUS ON, I couldnt c that image... All I did was change the colors of the statusbar! U r a great List! Good 2 b here! Regards Nida. ----- Original Message ----- From: nida Khan To: mapserver-users at lists.gis.umn.edu Sent: Wednesday, November 27, 2002 2:37 PM Subject: [mapserver-users] status bar in no appearing ! Hi List, I'm a new bie in GIS world, I'm trying small task before I jump into anything big. so far I managed to get the map,legend working. now when I tried to put the scalebar, nothing happens, its not printing the image... it seems like it get the image path but does not create one! I'm sure its something small that I'm missing, but what??? here is code of my map and html file. NAME WALES EXTENT 127000.0 160000.0 380000.0 402000.0 SIZE 400 400 FONTSET "/var/www/html/wales/fonts/fonts.list" UNITS KILOMETERS WEB TEMPLATE wales2.html IMAGEPATH "/var/www/html/wales/tmp/" IMAGEURL "/wales/tmp/" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END LEGEND STATUS ON LABEL COLOR 0 0 0 SIZE MEDIUM ANTIALIAS TRUE END END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE small END STYLE 1 SIZE 160 2 COLOR 255 255 255 UNITS KILOMETERS INTERVALS 4 TRANSPARENT ON STATUS TRUE END html file Wales

Wales from Postgis with Zoom

SEARCH WINDOW: [imgext]
QUERY POINT: ([img.x], [img.y]) image coordinates or ([mapx], [mapy]) map coordinates
QUERY METRICS: number of layers with results=[nl], total number of results=[nr]


Regards Nida -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhart at frw.uva.nl Thu Nov 28 05:06:41 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 28 Nov 2002 14:06:41 +0100 Subject: [mapserver-users] setting status of a layer using url References: <003601c296c7$b088aa40$6700000a@svaj.local> Message-ID: <3DE614E1.5030802@frw.uva.nl> Right! In MapServer CGI you can turn layers on via the URL with the LAYER or LAYERS variable. These layers have to be defined in the MapFile with STATUS ON, STATUS OFF, or no STATUS defined. A layer is displayed automatically only when it has been defined with STATUS DEFAULT. You cannot turn such a layer off by scripting (I think). Jan Hartmann Martin Hoegh wrote: > Hi > > It seems too me that it?s not possible to set the status of a layer > using an url e.g. map_mylayer_status=default. Can this be right? > > > > Martin H?gh > > Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From fx.gamoy at mapxplore.com Thu Nov 28 06:18:23 2002 From: fx.gamoy at mapxplore.com (fx gamoy) Date: Thu, 28 Nov 2002 14:18:23 -0000 Subject: [mapserver-users] Apache php/mapscript and PROJ_LIB Message-ID: <011901c296e9$02c05260$0201a8c0@mapxplore.com> hello i use mapserver whith IIS on a windows NT plateform and everything is good. I have then installed apache (win32 binaries) in order to get better performance than with IIS/PHP. The only probleme with the apache configuration is that it's preform an error with my projection system. It don't care about the PROJ_LIB environnement variable i have defined on NT (control panel-> system) Is it an other way to define the PROJ_LIB variable??? (httpd.conf??? php.ini?? globprefs.php?? what is the better config???? IIS/PHP/NT? APACHE/PHP/NT?? APACHE/PHP/LINUX? Thanks fx gamoy http://www.mapxplore.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From erik.van-der-goot at jrc.it Thu Nov 28 06:05:36 2002 From: erik.van-der-goot at jrc.it (Erik Van der Goot) Date: Thu, 28 Nov 2002 15:05:36 +0100 Subject: [mapserver-users] Does anybody use Mapserver and Tomcat on Win2000?? Message-ID: <5.1.0.14.2.20021128150430.03bfee08@isis-ms.jrc.it> From LVN at hvm.dk Thu Nov 28 07:03:56 2002 From: LVN at hvm.dk (Lars V. Nielsen) Date: Thu, 28 Nov 2002 16:03:56 +0100 Subject: [mapserver-users] SCALE definition + OGR StyleItem Auto with MapInfo TAB Message-ID: <005501c296ef$5fc56f80$0501a8c0@odin> Hi List, Please forgive a newcomer's first questions about Mapserver if the answers are obvious. I'm puzzled as to the definition of "scale". If I produce a 500-by-500 pixel map image, showing an extent of 28km-by-28km, it tells me it's scale 158740.2432 ?!? I've calculated the "reference" unit to be about 17 cm, but what's the real definition of scale in Mapserver ? I'm making maps consisting partly of MapInfo TAB files. It shows perfectly. However, the OGR How-To page tells me it's possible to use the saved polygon styles, utilizing STYLEITEM "AUTO". However, the produced colors are nothing like they are when displayed thru MapInfo. Has anyone tried this feature, or can anyone confirm that this feature works as described ? I'm running Mapserver 3.6.3 (the GDAL/OGR/WMS-version) on Win2000. Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard & Meklenborg, Odense Denmark http://www.hvm.dk From morissette at dmsolutions.ca Thu Nov 28 07:12:30 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 28 Nov 2002 10:12:30 -0500 Subject: [mapserver-users] Apache php/mapscript and PROJ_LIB References: <011901c296e9$02c05260$0201a8c0@mapxplore.com> Message-ID: <3DE6325E.AAA041D8@dmsolutions.ca> > fx gamoy wrote: > > The only probleme with the apache configuration is that it's preform > an error with my projection system. It don't care about the PROJ_LIB > environnement variable i have defined on NT (control panel-> system) > Is it an other way to define the PROJ_LIB variable??? (httpd.conf??? > php.ini?? globprefs.php?? > what is the better config???? > IIS/PHP/NT? APACHE/PHP/NT?? APACHE/PHP/LINUX? Try using the following in your httpd.conf: SetEnv PROJ_LIB ... PassEnv PROJ_LIB Just using "PassEnv PROJ_LIB" may be enough too to ask Apache to pass the PROJ_LIB value from the system environment variable to the CGI scripts. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From attila at prometheus.org.yu Thu Nov 28 07:21:25 2002 From: attila at prometheus.org.yu (Attila Csipa) Date: Thu, 28 Nov 2002 16:21:25 +0100 Subject: [mapserver-users] mapscript woes Message-ID: <200211281532.gASFWeR24261@tina2.tippnet.co.yu> What am I doing wrong ? The added layer causes the PHP process to exit when I call $map->draw; The same setup (except for the color handling which changed in 3.7) under mapserver 3.6.3 worked fine. On a side note, if I try to change the color of a layer, I get the following message on the ms_newStyleObj constructor: Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0 I would really appreciate any help since I'm a bit stuck here :( $map = ms_newMapObj('data/subotica_test.map'); $map->set('name','subotica'); $map->set('width',600); $map->set('height',600); $map->setextent(398440.8, 101396.2, 410772.8, 113716.2); $map->web->set('imagepath' , '/var/www/html/gis/tmp/'); $map->web->set('imageurl' , '../tmp/'); $layer = ms_newLayerObj($map); $layer->set("data", "vodovod"); $layer->set('type', MS_LAYER_LINE); $layer->set("name", "vodovod"); $layer->set("status", MS_ON); $class = ms_newClassObj($layer); $style = ms_newStyleObj($class); $style->color->setRGB(150, 100, 0); $style->outlinecolor->setRGB(0, 0, 0); From morissette at dmsolutions.ca Thu Nov 28 07:35:08 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 28 Nov 2002 10:35:08 -0500 Subject: [mapserver-users] fontset References: <200211280910.gAS9AwR16256@tina2.tippnet.co.yu> Message-ID: <3DE637AC.731173C9@dmsolutions.ca> Attila Csipa wrote: > > Is is possible to set the fontset map object attribute from mapscript ? I'm > trying to lose the .map files and handle everything dynamically but I do not > know how to set the fontlist (which is unmentioned in the mapscript > reference). > Assuming you are using PHP MapScript, then you can do this using version 3.6.3 or more recent: two methods, setFontSet() and setSymbolSet() were added to set the fontset and symbolset values. The PHP MapScript docs on our website were for version 3.6.0, that's probably why you couldn't find it. I updated the page to version 3.6.3 a few minutes ago: http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_docs36.html Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From stephane.garon at intelec.ca Thu Nov 28 09:18:59 2002 From: stephane.garon at intelec.ca (=?iso-8859-1?Q?St=E9phane_Garon?=) Date: Thu, 28 Nov 2002 12:18:59 -0500 Subject: [mapserver-users] Use more than one world file Message-ID: <002e01c29702$3e6c9f30$2201a8c0@intelec.ca> Hi, I would like to know if I can use more than one world file. I need one for my ArcView application and one for my web application and they are not the same. Is it posible to set a path for the TFW file and an another for the TIFF? (I don't want to have to copy my TIFFs in two directorys). Thank you, St?phane. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at topozone.com Thu Nov 28 10:53:17 2002 From: ed at topozone.com (Ed McNierney) Date: Thu, 28 Nov 2002 13:53:17 -0500 Subject: [mapserver-users] Use more than one world file Message-ID: <13858AA1A74F30419F319ACB66A9D1220194E3@mercator.topozone.com> St?phane - Why do you need two world files? That sounds odd; the world file should be describing the scale of the projected image file, and should not need to change. Thanks! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com -----Original Message----- From: St?phane Garon [mailto:stephane.garon at intelec.ca] Sent: Thu 11/28/2002 12:18 PM To: mapserver-users at lists.gis.umn.edu Cc: Subject: [mapserver-users] Use more than one world file Hi, I would like to know if I can use more than one world file. I need one for my ArcView application and one for my web application and they are not the same. Is it posible to set a path for the TFW file and an another for the TIFF? (I don't want to have to copy my TIFFs in two directorys). Thank you, St?phane. From morissette at dmsolutions.ca Thu Nov 28 11:51:38 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 28 Nov 2002 14:51:38 -0500 Subject: [mapserver-users] mapscript woes References: <200211281532.gASFWeR24261@tina2.tippnet.co.yu> Message-ID: <3DE673CA.9D64D38C@dmsolutions.ca> Attila Csipa wrote: > > What am I doing wrong ? The added layer causes the PHP process to exit when I > call $map->draw; The same setup (except for the color handling which changed > in 3.7) under mapserver 3.6.3 worked fine. > > On a side note, if I try to change the color of a layer, I get the following > message on the ms_newStyleObj constructor: > Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0 > > I would really appreciate any help since I'm a bit stuck here :( > I tried running your script in 3.7 with a few modifications to work in my environment, also added code to call $map->draw(), and to fetch one of the existing layers in the map and change its color and everything works fine for me. I'm using PHP 4.2.3 on Linux with the latest 3.7 source from CVS. Are you using at least PHP 4.1.x? The last time we saw errors similars to the one you got (Unknown list entry type in request shutdown (0) in Unknown on line 0) it was in the PHP 4.0.x days. Unfortunately we cannot help much without a way to reproduce the problem. If you are able to provide more details to reproduce this on other machines then please file a bug in bugzilla. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From woodbri at swoodbridge.com Thu Nov 28 12:01:50 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 28 Nov 2002 15:01:50 -0500 Subject: [mapserver-users] Use more than one world file In-Reply-To: <002e01c29702$3e6c9f30$2201a8c0@intelec.ca> Message-ID: <3DE62FDE.13997.2357EA01@localhost> St?phane, I am not aware of anything that lets you set the path, but if you are on UNIX, you can use symbolic links to make the TIFFs appear in the other directory without actually copying them. -Steve On 28 Nov 2002 at 12:18, St?phane Garon wrote: > > Hi, > > I would like to know if I can use more than one world file. I need one > for my ArcView application and one for my web application and they are > not the same. Is it posible to set a path for the TFW file and an > another for the TIFF? (I don't want to haveto copy my TIFFs in two > directorys). > > Thank you, > > St?phane. From mapserver at peligroso.gaiaenv.com Thu Nov 28 12:33:40 2002 From: mapserver at peligroso.gaiaenv.com (Mapserver account for mailing list) Date: Thu, 28 Nov 2002 13:33:40 -0700 (MST) Subject: [mapserver-users] ITEMNQUERY with regular expression filter Message-ID: <200211282033.gASKXef6019280@peligroso.gaiaenv.com> I had problems with FILTER... I supplied my filter condition in parentheses, but not as a quoted string and it worked. Docs show otherwise. Cheers, Jim From lfilak at medinaco.org Thu Nov 28 13:56:03 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 28 Nov 2002 16:56:03 -0500 Subject: [mapserver-users] fontset Message-ID: <200211282154.gASLsFu26276@yogi.medinaco.net> At worst case you can always create a temporary mapfile. It won't eliminate the mapfile but it will remain dynamic. HTH Lowell F. The following message was sent by Attila Csipa on Thu, 28 Nov 2002 09:59:47 +0100. > Is is possible to set the fontset map object attribute from mapscript ? I'm > trying to lose the .map files and handle everything dynamically but I do not > know how to set the fontlist (which is unmentioned in the mapscript > reference). > > Regards, > Attila Csipa From stewartjb at agr.gc.ca Thu Nov 28 14:35:58 2002 From: stewartjb at agr.gc.ca (Ben Stewart) Date: Thu, 28 Nov 2002 17:35:58 -0500 Subject: [mapserver-users] msQueryByAttributes(): General error message. No query layer defined Message-ID: I am attempting to run an attribute query would anyone have a quick comment on this error. Thank you, kindly. From mapserver at peligroso.gaiaenv.com Thu Nov 28 15:55:16 2002 From: mapserver at peligroso.gaiaenv.com (GAIA) Date: Thu, 28 Nov 2002 16:55:16 -0700 (MST) Subject: [mapserver-users] Itemnquerymap and templates Message-ID: <200211282355.gASNtGKA020439@peligroso.gaiaenv.com> Hi all, Probably a simple one, but I am having difficulties finding anything in the docs or in the archives of this list (that works). I can successfully execute an itemnquerymap and have it return a map, but it does not get rendered into an html template. My preliminary investigation found http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html as an example of using itemquerymaps. The only difference between the syntax posted there and what I use is that the demo contains a QUERY object...which occurs inside a LAYER object. In my build of 3.6.3 this seems to return an error loadLayer(): Unknown identifier. (QUERY): Has this changed in 3.6.3 or am I missing something simple? Would someone please steer me to docs or provide the key components required to apply a template to an itemnquerymap. Thanks in advance. Cheers, Jim From lp at INSER.CH Fri Nov 29 00:29:22 2002 From: lp at INSER.CH (Luca Palli) Date: Fri, 29 Nov 2002 09:29:22 +0100 Subject: [mapserver-users] Does anybody use Mapserver and Tomcat on Wi n2000?? Message-ID: <61D6E8202227D41197360050BACF5FE429270F@srvmail> Yes, but it works only in browse mode. In map (for legend reference and scalbar is the same) mode Tomcat send the image as texts and change some bytes. For exemple the byte 90 is a reserved byte in Windows and Tomcat transform it to 3F "?". > -----Original Message----- > From: Erik Van der Goot [mailto:erik.van-der-goot at jrc.it] > Sent: jeudi, 28. novembre 2002 15:06 > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Does anybody use Mapserver and Tomcat on > Win2000?? > > > From jithesh at flashmail.com Fri Nov 29 00:43:04 2002 From: jithesh at flashmail.com (Jithesh P. Joseph) Date: Fri, 29 Nov 2002 00:43:04 -0800 Subject: [mapserver-users] mapserver hosting Message-ID: <3de72898.1ae.0@flashmail.com> Hi List, Is their any reliable hosting companies ready to host Mapserver (PHP/mapscript) on windows platform. Hope somebody give me a link. Regards Jithesh _______________________________________________________________ Get Your FREE FlashMail Address now at http://www.flashmail.com It's Free, Easy, & Fun !!! From Mark.Balman at birdlife.org.uk Fri Nov 29 02:23:21 2002 From: Mark.Balman at birdlife.org.uk (Mark Balman) Date: Fri, 29 Nov 2002 10:23:21 -0000 Subject: [mapserver-users] php mapscript newbie Message-ID: Hi All I have sucessfully created a simple app using mapserver and polished this up using Maplab. I am now wanting to enhance the functionality using php mapscript. I have read the PHP/Mapscript by example HOWTO document and have tried unsuccesfully to get a simple world map to display. I have tried the following (using Win98, Apache, mapserver 3.6) ------------------mapfile---------------------------------- MAP SIZE 600 300 STATUS ON SYMBOLSET ./symbols/symbols.sym EXTENT -180 -90 180 90 UNITS DD SHAPEPATH "./data" NAME test WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME world TYPE POLYGON STATUS ON DATA world CLASS COLOR 110 50 100 OUTLINECOLOR 200 200 200 END END END -------------phpmapscript------------------------------- draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); ?> Example 1: Displaying a map > ---------------------------------------------------------------------------- ---------------- When I try and open the file I get the following displayed in IE4 :( draw(); $image_url=$image->saveWebImage(MS_GIF,1,1,0); ?> > Can anyone enlighten me as to what I am doing wrong? Thanks in advance Mark From LVN at hvm.dk Fri Nov 29 02:52:26 2002 From: LVN at hvm.dk (Lars V. Nielsen) Date: Fri, 29 Nov 2002 11:52:26 +0100 Subject: [mapserver-users] More about SCALE calculations Message-ID: <004601c29795$687ae140$0d01a8c0@odin> Hi List, Just wanted to share my latest findings on the SCALE issue. After testing various combinations of extent (zoom), width and scales I've discovered a constant ! It seems these formulas will work (scale_number is > 1, i.e. scale = 1:scale_number) : Constant = (field width in meters) / ( (scale_number) * (pixel width) ) = 0.000352777... = 1 / 2834.6472.. I.e. Scale_number = (field width in meters) / ( (pixel width) * 0.000352777.. ) It's workable for now, but I'd still like to know what this constant represents (if anything) ?? 'cause I'm not sure whether more parameters should go into the equations, e.g. (server) screen size and resolution ??? Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard & Meklenborg, Odense Denmark http://www.hvm.dk From nida at webstar.co.uk Fri Nov 29 02:57:52 2002 From: nida at webstar.co.uk (nida Khan) Date: Fri, 29 Nov 2002 10:57:52 -0000 Subject: [mapserver-users] raster layer Message-ID: <019601c29796$2a31f1c0$a901a8c0@private.webstar.co.uk> The Gurus, I want to try out raster layer as my first layer and then add on layers from the database on my map. when I do this LAYER NAME "Layer_CIB" DATA "raster/tq38sw.tif" TYPE RASTER STATUS DEFAULT OFFSITE 0 END it gives me this error readWorldFile(): Unable to access file. Unable to open world file for reading. I've checked thousand times hte location of the file, I gave a absolute path as well, still invain. strange thing is, when I remove the file from that directory it display the html contents but ofcourse without the actual map! Please help here is my mapserver -v MapServer version 3.6.3 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 Regards Nida. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stepan.kafka at centrum.cz Fri Nov 29 04:43:30 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Fri, 29 Nov 2002 13:43:30 +0100 Subject: [mapserver-users] raster layer In-Reply-To: <019601c29796$2a31f1c0$a901a8c0@private.webstar.co.uk> Message-ID: <000201c297a4$ebb28090$7e3c2fc3@HSGIS> You must have *.tfw file at the same location as the tif one. If yes, check access rights for this file. You also may se geotiff instead of tiff with tfw file acompanied. 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 nida Khan Odesl?no: 29. listopadu 2002 11:58 Komu: mapserver-users at lists.gis.umn.edu Predmet: [mapserver-users] raster layer The Gurus, I want to try out raster layer as my first layer and then add on layers from the database on my map. when I do this LAYER NAME "Layer_CIB" DATA "raster/tq38sw.tif" TYPE RASTER STATUS DEFAULT OFFSITE 0 END it gives me this error readWorldFile(): Unable to access file. Unable to open world file for reading. I've checked thousand times hte location of the file, I gave a absolute path as well, still invain. strange thing is, when I remove the file from that directory it display the html contents but ofcourse without the actual map! Please help here is my mapserver -v MapServer version 3.6.3 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 Regards Nida. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sproull.j at emstechnologies.ca Fri Nov 29 05:57:45 2002 From: sproull.j at emstechnologies.ca (Jim Sproull) Date: 29 Nov 2002 08:57:45 -0500 Subject: [mapserver-users] PHP mapscript: drawing labels as top layer Message-ID: <1038578265.28281.76.camel@localhost.localdomain> Hi all, I'm developing a mapscript application using the latest (3.6.3) version of mapserver with the php module. I'm trying to perform the fairly basic function of drawing a map, followed by assigning a custom colour to a particular shape, followed by all relevant labels (from the label cache). Unfortunately, it seems no matter what I do, the shape always sits on top of the labels. Here's the general idea: // $this->mapObject is predefined $imgObj = $this->mapObject->prepareImage(); // My own method to get a particular shape $Shape = $this->getShape(); $Shape->draw($this->mapObject, $Layer, $imgObj); $this->mapObject->drawLabelCache($imgObj); $mapImage = $this->mapObject->draw(); $mapImage->pasteImage($imgObj, 0); This always pastes the shape object over the labels. If I draw the map object first, then draw the shape, then finally the label cache, it works. However that method draws the labels twice, and almost doubles the processing time. Is there a way to draw the proper layer order without duplicating labels? -- Jim Sproull EMS Technologies From daniel.berstein at dmapas.com Fri Nov 29 06:09:36 2002 From: daniel.berstein at dmapas.com (Daniel Berstein) Date: Fri, 29 Nov 2002 11:09:36 -0300 Subject: [mapserver-users] raster layer Message-ID: <01C29797.CE44B3A0.daniel.berstein@dmapas.com> Nida, do you have a world file for your raster image? Take a look at: http://mapserver.gis.umn.edu/doc/raster-howto.html#world_files Regards, Daniel Berstein Z. Jefe de Proyectos, dmapas.com Eduardo Hyatt 583, Providencia, Santiago CHILE *(56) (2) 222 22 60 -----Mensaje original----- De: nida Khan [SMTP:nida at webstar.co.uk] Enviado el: Viernes, 29 de Noviembre de 2002 7:58 Para: mapserver-users at lists.gis.umn.edu Asunto: [mapserver-users] raster layer The Gurus, I want to try out raster layer as my first layer and then add on layers from the database on my map. when I do this LAYER NAME "Layer_CIB" DATA "raster/tq38sw.tif" TYPE RASTER STATUS DEFAULT OFFSITE 0 END it gives me this error readWorldFile(): Unable to access file. Unable to open world file for reading. I've checked thousand times hte location of the file, I gave a absolute path as well, still invain. strange thing is, when I remove the file from that directory it display the html contents but ofcourse without the actual map! Please help here is my mapserver -v MapServer version 3.6.3 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 Regards Nida. <> From warmerdam at pobox.com Fri Nov 29 06:09:17 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 29 Nov 2002 09:09:17 -0500 Subject: [mapserver-users] SCALE definition + OGR StyleItem Auto with MapInfo TAB In-Reply-To: <001901c29784$75bd9070$0d01a8c0@odin> References: <005501c296ef$5fc56f80$0501a8c0@odin> <3DE63611.60407@pobox.com> <001901c29784$75bd9070$0d01a8c0@odin> Message-ID: <3DE7750D.3020209@pobox.com> Lars V. Nielsen wrote: > Hi Frank, > > Thanks for taking up this issue. Lars, Well, I haven't exactly taken it up. I am not promising much followup, but might have done some fixes if styleitem auto support was badly broken. > After more investigation this morning, I found that it seems it was my > raster backdrop that distorted the colors. When viewed alone they appear the > same as in MIPro. > > HOWEVER, the raster backdrop shouldn't change the color of polygons (or nay > vector features) put on top of it, should it ??? It certainly doesn't in > MapInfo Pro. The problem is that in 256 color mode it is entirely possible for a raster layer that is drawn first to "consume" all the colors in the palette. When this happens all subsequent vector drawing has to pick the closest available color from the paletted fixed by the previous layer draw. One solution to this is to "pre-color-compress" raster layers to use less than 256 colors. Another is to produce 24bit images, but this option is only available in 3.7 (cvs). I have also been considering adding a processing option to 3.7 to add a "color tolerance" for raster layers, allowing some degree of color compression for raster layers. This can be especially useful for greyscale layers which can consume 256 colors when 32 shades of grey would have given the user essentially equivelent color detail. Note, I haven't unpacked and inspected your images to ensure that this is the problem that you are encountering, but I find it hard to imagine it could be anything given the description. > I've calculated that 1:1 corresponds to 79,370,000 pixels. Is this an > arbitrary value, or ... ? I'm not the scale expert. Hopefully someone else will respond. There are also extensive discussions of scale issues in the email archive within the last eight weeks ... do some digging. I have taken the liberty of cc:ing this response to the mailing list since the color issue is a common problem. 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 Chip.Hankley at gasai.com Fri Nov 29 06:23:37 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Fri, 29 Nov 2002 08:23:37 -0600 Subject: [mapserver-users] php mapscript newbie Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABF8E@postoffice.GASAI.Com> Mark... if IE (or any other browser) is spitting out the actual PHP code (without some statement that says 'Error' or the like) - then the PHP is not being parsed, and the web server is serving it up to the client (your browser) as if it were text to display. Make sure that PHP is functioning correctly first... something simple like:

My name is

should simply print "My name is Mark"... if you get anything else, PHP isn't working. At first glance, what you have (MapScript) looks OK. Chip -----Original Message----- From: Mark Balman [mailto:Mark.Balman at birdlife.org.uk] Sent: Friday, November 29, 2002 4:23 AM To: 'mapserver-users at lists.gis.umn.edu' Subject: [mapserver-users] php mapscript newbie Hi All I have sucessfully created a simple app using mapserver and polished this up using Maplab. I am now wanting to enhance the functionality using php mapscript. I have read the PHP/Mapscript by example HOWTO document and have tried unsuccesfully to get a simple world map to display. I have tried the following (using Win98, Apache, mapserver 3.6) ------------------mapfile---------------------------------- MAP SIZE 600 300 STATUS ON SYMBOLSET ./symbols/symbols.sym EXTENT -180 -90 180 90 UNITS DD SHAPEPATH "./data" NAME test WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME world TYPE POLYGON STATUS ON DATA world CLASS COLOR 110 50 100 OUTLINECOLOR 200 200 200 END END END -------------phpmapscript------------------------------- draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); ?> Example 1: Displaying a map > ---------------------------------------------------------------------------- ---------------- When I try and open the file I get the following displayed in IE4 :( draw(); $image_url=$image->saveWebImage(MS_GIF,1,1,0); ?> > Can anyone enlighten me as to what I am doing wrong? Thanks in advance Mark From Chip.Hankley at gasai.com Fri Nov 29 06:26:55 2002 From: Chip.Hankley at gasai.com (Hankley, Chip) Date: Fri, 29 Nov 2002 08:26:55 -0600 Subject: [mapserver-users] raster layer Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABF8F@postoffice.GASAI.Com> Nida, > it gives me this error > readWorldFile(): Unable to access file. Unable to open > world file for reading. This indicates to me that your image doesn't have a valid world file, or that it isn't GeoTif. For the image to display correctly, it needs to have that. Is there a 'tq38sw.tfw' file in the directory? Chip From jeff at propertykey.com Fri Nov 29 06:49:01 2002 From: jeff at propertykey.com (Jeff Hoffmann) Date: Fri, 29 Nov 2002 08:49:01 -0600 Subject: [mapserver-users] More about SCALE calculations In-Reply-To: <004601c29795$687ae140$0d01a8c0@odin> References: <004601c29795$687ae140$0d01a8c0@odin> Message-ID: <3DE77E5D.3090409@propertykey.com> Lars V. Nielsen wrote: > Hi List, > > Just wanted to share my latest findings on the SCALE issue. > After testing various combinations of extent (zoom), width and scales I've > discovered a constant ! > > It seems these formulas will work (scale_number is > 1, i.e. scale = > 1:scale_number) : > > Constant = (field width in meters) / ( (scale_number) * (pixel width) ) = > 0.000352777... = 1 / 2834.6472.. > I.e. > Scale_number = (field width in meters) / ( (pixel width) * 0.000352777.. ) > > It's workable for now, but I'd still like to know what this constant > represents (if anything) ?? > 'cause I'm not sure whether more parameters should go into the equations, > e.g. (server) screen size and resolution ??? I'm not an expert, but my understanding of how this works is as follows: Mapserver assumes an on-screen resolution of 72 pixels/inch -- so a map that is, say, 360 pixels wide on screen would be assumed by mapserver to be 5 inches wide. The scale factor would be the the number of inches wide your map is divided by the (assumed) 5 inch wide map. A map that is 1 mile (5280 ft.) wide would have a scale of: (5280 ft * 12 in/ft * 72 pixels/inch)/360 pixels = 12672 (scale). That's for us Americans. As for the rest of the world, the resolution would be : 72 pixels/inch / 2.54 cm/inch = 28.3464 pixels/cm or 2834.64 pixels/m. That should explain the number you're using. It's not magic, but it seemed like it to me for a while. I'm fairly new to mapserver and had to struggle with it for a while to figure it out. You can change the screen resolution in the configuration file if you want, but it's a fake number anyway unless you know the actual screen resolution of the end-user's display device, so I can't see the point. The parameter you're looking for is RESOLUTION in the MAP object. -- Jeff Hoffmann PropertyKey.com From morissette at dmsolutions.ca Fri Nov 29 11:13:11 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 29 Nov 2002 14:13:11 -0500 Subject: [mapserver-users] PHP mapscript: drawing labels as top layer References: <1038578265.28281.76.camel@localhost.localdomain> Message-ID: <3DE7BC47.95BAEB93@dmsolutions.ca> Jim, Have you considered looping through all layers to draw each one in turn, then drawing your shape, and finally drawing the label cache: $img = $this->mapObject->prepareImage(); for($i=0; $i<$this->mapObject->numLayers; $i++) { $layer = $this->mapObject->getLayer($i); $layer->draw($img); } // My own method to get a particular shape $Layer = ... $Shape = $this->getShape(); $Shape->draw($this->mapObject, $Layer, $img); $this->mapObject->drawLabelCache($img); Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Jim Sproull wrote: > > Hi all, > > I'm developing a mapscript application using the latest (3.6.3) version > of mapserver with the php module. I'm trying to perform the fairly > basic function of drawing a map, followed by assigning a custom colour > to a particular shape, followed by all relevant labels (from the label > cache). Unfortunately, it seems no matter what I do, the shape always > sits on top of the labels. Here's the general idea: > > // $this->mapObject is predefined > $imgObj = $this->mapObject->prepareImage(); > > // My own method to get a particular shape > $Shape = $this->getShape(); > $Shape->draw($this->mapObject, $Layer, $imgObj); > > $this->mapObject->drawLabelCache($imgObj); > > $mapImage = $this->mapObject->draw(); > $mapImage->pasteImage($imgObj, 0); > > This always pastes the shape object over the labels. If I draw the map > object first, then draw the shape, then finally the label cache, it > works. However that method draws the labels twice, and almost doubles > the processing time. Is there a way to draw the proper layer order > without duplicating labels? > > -- > Jim Sproull > EMS Technologies From sproull.j at emstechnologies.ca Fri Nov 29 11:39:15 2002 From: sproull.j at emstechnologies.ca (Jim Sproull) Date: 29 Nov 2002 14:39:15 -0500 Subject: [mapserver-users] PHP mapscript: drawing labels as top layer In-Reply-To: <3DE7BC47.95BAEB93@dmsolutions.ca> References: <1038578265.28281.76.camel@localhost.localdomain> <3DE7BC47.95BAEB93@dmsolutions.ca> Message-ID: <1038598755.3092.9.camel@localhost.localdomain> Daniel, I had thought that drawing all layers separately would have drawn the labels, too. But you're right, using this method, the cache doesn't get drawn unless you explicitly call it. Thanks for the tip! This shaved almost 1/2 off the execution time. :) Has it been discussed to include this as an attribute to layerObj? drawlabelcache = true or something similar? Or is that getting too obtuse? Thanks again, Jim On Fri, 2002-11-29 at 14:13, Daniel Morissette wrote: > Jim, > > Have you considered looping through all layers to draw each one in turn, > then drawing your shape, and finally drawing the label cache: > > $img = $this->mapObject->prepareImage(); > for($i=0; $i<$this->mapObject->numLayers; $i++) > { > $layer = $this->mapObject->getLayer($i); > $layer->draw($img); > } > > // My own method to get a particular shape > $Layer = ... > $Shape = $this->getShape(); > $Shape->draw($this->mapObject, $Layer, $img); > > $this->mapObject->drawLabelCache($img); > > > Daniel -- Jim Sproull EMS Technologies From morissette at dmsolutions.ca Fri Nov 29 12:56:05 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 29 Nov 2002 15:56:05 -0500 Subject: [mapserver-users] PHP mapscript: drawing labels as top layer References: <1038578265.28281.76.camel@localhost.localdomain> <3DE7BC47.95BAEB93@dmsolutions.ca> <1038598755.3092.9.camel@localhost.localdomain> Message-ID: <3DE7D465.51590F6B@dmsolutions.ca> Jim Sproull wrote: > > Has it been discussed to include this as an attribute to layerObj? > drawlabelcache = true or something similar? Or is that getting too > obtuse? > It's there already. There is a LAYER parameter called LABELCACHE -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From vinko at cprsig.cl Fri Nov 29 18:08:27 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Fri, 29 Nov 2002 21:08:27 -0500 Subject: [mapserver-users] Error reporting on php/ms 3.6.3 Message-ID: <20021130020827.GA26938@landsat.cprsig.cl> Hi, Testing the dynamic classification app I have been talking about, I stumbled upon the limit of 50 classes defined in the source. The issue was solved by recompiling, and had no trouble at all. But the error that PHP gave is, at least, awful for a newbie: Fatal Error on line And no reason at all. I'm sure that if I had not been reading the list and using MapServer for as long as I have (a year or so) it would've been almost impossible to find the reason of that error. I seem to recall that error reporting was improved in 3.7, is this issue considered? -- Vinko Vrsalovic http://www.cprsig.cl From mapserver at peligroso.gaiaenv.com Sat Nov 30 06:32:06 2002 From: mapserver at peligroso.gaiaenv.com (GAIA) Date: Sat, 30 Nov 2002 07:32:06 -0700 (MST) Subject: [mapserver-users] SDE raster support Message-ID: <200211301432.gAUEW64f026867@peligroso.gaiaenv.com> Count a vote here too. If SDE support is going to be serious, we need to have raster support as well. We have a decent repository of imagery stored in SDE and are looking to capitalise on the single storage location. GAIA From mapserver at peligroso.gaiaenv.com Sat Nov 30 06:28:49 2002 From: mapserver at peligroso.gaiaenv.com (GAIA) Date: Sat, 30 Nov 2002 07:28:49 -0700 (MST) Subject: [mapserver-users] PHP (4.2.3) Mapscript as DSO Message-ID: <200211301428.gAUESndr026859@peligroso.gaiaenv.com> We support this initiative as well. Any way we can help, count us in. Our interest lies in performance (potential) and would like to access inherent variables such as PHP_AUTH_PW. Cheers, Jim From kpw at jump9.com Sat Nov 30 10:00:14 2002 From: kpw at jump9.com (Kevin Webb) Date: Sat, 30 Nov 2002 13:00:14 -0500 Subject: [mapserver-users] postgis problem Message-ID: <200211301801.gAUI0xae004250@lists.gis.umn.edu> Hi, I am running into some strange problems with PostGIS connectivity in Mapserver 3.6.3. I've created a simple one table PostGIS dataset using the shapefiles from the Itasca demo (lakespy2) and have edited my mapfile reflect my PostGIS server as the datasource for this layer (see layer config info below). However whenever I try to generate my map I get the following error: 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 asbinary(force_collection(force_2d()),'NDR'),OID::text from WHERE && setSRID('BOX3D(310076.012720145 5100431.37679792,638159.168888574 5428514.53296635)'::BOX3D, find_srid('','','') ) What's odd is that it is missing any references to the table or field names (no references to the_geom or my table lakespy2 anywhere in the query). If I run the select portion of my query manually against my postgis server after adding in the table and field names then everything works fine. Any thoughts on why mapserver would be omitting the table and field names? I assume I've just done something stupid with my map configuration, but I can't figure out what.. Here's my layer config: LAYER CONNECTIONTYPE postgis NAME lakespy2 TYPE POLYGON STATUS ON CONNECTION "user=postgres dbname=geodb" DATA "the_geom FROM lakespy2" CLASS NAME 'Lakes & Rivers' TEMPLATE "lakespy2.html" COLOR 49 117 185 END HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" TOLERANCE 3 DUMP TRUE # allow GML export METADATA WMS_TITLE "Lakes and Rivers" WMS_ABSTRACT "DLG lake and river polygons for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html for more information." WMS_SRS "EPSG:26915" END END # lakes Thanks in advance, Kevin Webb -- e: kpw at jump9.com p: (919)260-8375 w: kpw.jump9.com From vinko at cprsig.cl Sat Nov 30 14:02:02 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Sat, 30 Nov 2002 17:02:02 -0500 Subject: [mapserver-users] postgis problem In-Reply-To: <200211301801.gAUI0xae004250@lists.gis.umn.edu> References: <200211301801.gAUI0xae004250@lists.gis.umn.edu> Message-ID: <20021130220202.GA3439@landsat.cprsig.cl> On Sat, Nov 30, 2002 at 01:00:14PM -0500, Kevin Webb wrote: > Hi, > > I am running into some strange problems with PostGIS connectivity in > Mapserver 3.6.3. > 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 > asbinary(force_collection(force_2d()),'NDR'),OID::text from WHERE && > setSRID('BOX3D(310076.012720145 5100431.37679792,638159.168888574 > 5428514.53296635)'::BOX3D, find_srid('','','') ) I recommend you recompile mapserver with the latest mappostgis.c from CVS, it has a (whole lot) better error reporting. It shows the response from postgres, among other things... This line: > DATA "the_geom FROM lakespy2" should be: > DATA "the_geom from lakespy2" -- Vinko Vrsalovic http://www.cprsig.cl From vatsavai at cs.umn.edu Sat Nov 30 14:18:55 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Sat, 30 Nov 2002 16:18:55 -0600 (CST) Subject: [mapserver-users] requires resubscription by all Message-ID: <200211302218.QAA07243@pluto.cs.umn.edu> Hello Mapserver-users, Starting from tomorrow (December 1) we are migrating from majordomo to mailman for managing all mapserver-* mailing lists. As a result we are requsting all existing users to resubscribe to the lists using the instructions provided at the following url: http://lists.gis.umn.edu/mailman/listinfo Subscription is quite simple, but it may still be inconvenient for some users. However, please note that this way we can get rid of defunct users, which might improve the perfomance (time required between posting and delivery of mails to all subscribed members). Please send me email at vatsavai at cs.umn.edu in case of any kind of problem associated with this trasition. Hope you all will resubscribe to the mapserver-* lists without any problem and continue your support with building/developing/sharing mapserver. Thanks, Raju ---- PS: The subscription information may be available later today, but I request you to use this interface starting tomorrow (December 1, 2002). From vatsavai at cs.umn.edu Sat Nov 30 18:30:25 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Sat, 30 Nov 2002 20:30:25 -0600 (CST) Subject: [Mapserver-users] welcome Message-ID: <200212010230.UAA07546@pluto.cs.umn.edu> Test message after mapserver-users mailing list is created with mailman. Subscription information can be found at http://lists.gis.umn.edu/mailman/listinfo/mapserver-users Thanks Raju ----