From mark.wilson at rohoel.at Wed Aug 1 00:05:10 2001 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Wed, 1 Aug 2001 09:05:10 +0200 Subject: [mapserver-users] MapServer WorkBench Message-ID: I assume MapServer WorkBench only works if you run it locally?? I know nothing about tcl/tk but I vaguely recall that there was/is some sort of related browser plugin for tcl. Would that offer any possibilities for running Mapserver workbench remotely? Mark W. From mcilhagga at dmsolutions.ca Wed Aug 1 05:55:31 2001 From: mcilhagga at dmsolutions.ca (Dave McIlhagga) Date: Wed, 01 Aug 2001 08:55:31 -0400 Subject: [mapserver-users] MapServer WorkBench References: Message-ID: <3B67FC43.AB444844@dmsolutions.ca> Mark, We are just completing development of a web-based equivalent to the MapServer WorkBench that should be released to the MapServer community in about 3 weeks time. It is a JavaScript/HTML frontend with a Java Servlet running in the background. It provides complete access to all Map File elements. Much more information will be made available regarding the application through August. Dave mark.wilson at rohoel.at wrote: > > I assume MapServer WorkBench only works if you run it locally?? I know nothing > about tcl/tk but I vaguely recall that there was/is some sort of related browser > plugin for tcl. Would that offer any possibilities for running Mapserver > workbench remotely? > > Mark W. -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca ---------------------------- Innovative Spatial Solutions ---------------------------- EMail : McIlhagga at DMSolutions.ca Phone : 613-565-5056 Cell : 613-261-3913 Fax : 707-222-1943 Address : 116 Lisgar St., Suite 400, Ottawa, Ontario K2P 0C2 From tpoindex at nyx.net Wed Aug 1 07:22:09 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Wed, 1 Aug 2001 08:22:09 -0600 Subject: [mapserver-users] MapServer WorkBench In-Reply-To: ; from mark.wilson@rohoel.at on Wed, Aug 01, 2001 at 09:05:10AM +0200 References: Message-ID: <20010801082209.A2806@nyx10.nyx.net> On Wed, Aug 01, 2001 at 09:05:10AM +0200, mark.wilson at rohoel.at wrote: > > I assume MapServer WorkBench only works if you run it locally?? I know nothing > about tcl/tk but I vaguely recall that there was/is some sort of related browser > plugin for tcl. Would that offer any possibilities for running Mapserver > workbench remotely? Yes, currently MapServer Workbench runs on your local machine. Yes, there is a Tcl/Tk plug-in that allows Tcl programs to be run in Netscape or IE. However, there are a few problems with this approach and the Workbench. First, the workbench programs need the Mapscript/Tcl extension for operation (the editor can work without it.) Running extension in the plug-in take a little more work, you have to set your Tcl plug-in's policy file to be able to load this extension. The second problem is that the Workbench programs expect to read and write to local files, again a policy setting. Of course, with some work, these problems can be addressed. I don't have any immediate plans for remote operation, but I'll keep it in mind. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From teb at mallit.fr.umn.edu Wed Aug 1 07:50:14 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 1 Aug 2001 09:50:14 -0500 (CDT) Subject: [mapserver-users] Shapefile Polygon problem (fwd) Message-ID: <200108011450.JAA23209@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Originating-IP: [213.122.118.51] From: "robert brown" To: mapserver-info at lists.gis.umn.edu Subject: Shapefile Polygon problem Date: Wed, 01 Aug 2001 12:18:05 +0000 Mime-Version: 1.0 X-OriginalArrivalTime: 01 Aug 2001 12:18:05.0348 (UTC) FILETIME=[04509640:01C11A84] Hello all, I am a new Mapserver user and I am trying to display my own shapefiles. I have tried a dummy polygon (four sides), which worked fine and displayed in the browser. However, when I try to load more complex shapefiles, I get the following message: msDrawShapefileLayer(): General error message. POLYGON layers must be POLYGON shapefiles. This occurs on every one of my own shape files which were created in MapInfo and then translated into ESRI shape. I have checked the shapefiles in ArcView and all objects are correct according to the syntax I have used in the Map File. For example if I have a Polyline layer, all objects in my shapefile are polylines; if I have a POLYGON layer, all objects in my shapefile are polygons. This message occurs every time I try to load one of my shapefiles - even when I am trying to load a POLYLINE layer! Please could someone shed some light on this, as I am completely stumped! Thanks for your time, Rob ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From spaske at kapur-assoc.com Wed Aug 1 08:22:55 2001 From: spaske at kapur-assoc.com (Sam Paske) Date: Wed, 1 Aug 2001 10:22:55 -0500 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! In-Reply-To: <13858AA1A74F30419F319ACB66A9D122019146@mercator.topozone.com> Message-ID: Ed, Thanks for the clarification. It *really* does help one understand how things work if you can understand the underlying phylosophy. The part of this that I am most hazy on is where the IUSR_* stops and where the SYSTEM account starts. For example, some mapserver users are using the cgi version, which is fairly straightforward in that the cgi is invoked to execute with IUSR_* permissions. (At least that's how I understand it....) But other users are putting together more complicated servers where scripting hosts are executing. I confess thatI have very little knowledge of how, for instance, IIS->perl->IIS actually works. I believe the cgi version spawns a unique process for every map session (or request). But I don't understand how the scripting modules plug into IIS - are they running as a service, or are they invoked like the cgi version. The implication, in effect, would be that you would have a fairly priviledged user hitting the web server if the scripting module was running as more than IUSR_*. I have a little experience with Cold Fusion (CF), and I know that CF must run as SYSTEM or some equivalent. So it is possible to mix security contexts with IIS. (The saving factor is that CF manages it's own security by only accepting page requests that are "ok" with IIS and by not allowing things like access to the directory structure unless specifically permitted.) Getting back to the issue, I noticed that another user thought the problem might be with the path to the files. Has anyone tried to use a microsoft Distributed File System? From what I understand, it could be an alternative if you are using NT4/2000. Finally, there is a way for a user to access files on a remote machine and _not_ be a member of the domain. The key is that the "user" must exist on both machines and must have the same name and password. For example, if I want an anonymous web user (accessing IIS on the machine named "terramapper") to be able to see files on John Doe's computer (named "hal9000" let's say) I would need to have the anonymous web user use an account with a static name and password. So I create a local account called INETUSER and give it a password of "password" (couldn't resist). I do this on BOTH machines. I then have IIS use that account (technically INETUSER/TERRAMAPPER), and set the permissions of the web so that INETUSER can read the necesary files. I then go over to hal9000 and give INETUSER (technically INETUSER/HAL9000) the right to see a few shape files and directories. (I make sure that the files are not under My Documents for reasons I won't go into.) Then, paths and drive mapping aside, the IIS user should have the ability to see the remote files. Hope I didn't confuse the issue! Sam -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, July 31, 2001 7:11 PM To: Sam Paske; Hankley, Chip Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! Sam et al. - I think I covered a lot of this with my previous post, but there seems to be enough interest to warrant some clarification. I've worked with both Windows and UNIX networks for a long time, and I don't find either particularly hard to manage or easy to manage, but they're certainly different. It's really worth spending some time understanding the philosophy behind Windows networking before you expose your network assets to the world. One of the fundamental precepts of Windows NT/2000 security is that EVERY access to every resource on every system is done through a security context. For most purposes, it's simple enough to think of this as a user context or user login. For every operation there is always the notion of an authenticated user context. In particular, the comment "This user is considered anonymous and has not authenticated in any way" is correct from a Web site security point of view (no dialog box popped up when someone tried to access your Web page) but it is completely incorrect from a Windows networking point of view. When a Web site developer tells IIS to permit anonymous access to a Web site, or to a page on a site, Windows basically says "OK, since all those Web users look the same to me, and they haven't logged in anywhere, YOU give me a valid user account and password for them to use." This is the role served, by default, by the IUSR_ account. You can change that to any account you like, but obviously all Web visitors use the same account because there's no way to tell them apart. Although (as someone mentioned) the Web server itself (IIS) is running under the local SYSTEM account, it impersonates the IUSR_ account for all access to files and other resources. This includes every single file, even if your Web server is doing nothing but serving one, simple HTML file. The IUSR_ account must have Read access to that file. Windows networking supports local machine accounts and domain accounts. Local machine accounts can ONLY have access to resources on their local machine. Domain accounts can use resources on any machine on the network, provided they are granted access rights to those resources. You CAN'T sit down at machine FOO and set the permissions on a file to give BAR\IUSR_BAR Read access to that file. (BAR\IUSR_BAR means the local account IUSR_BAR on the MACHINE named BAR.) If FOO and BAR are members of a domain named BAZ, then you can grant access (on FOO) to any domain account (BAZ\Guest or BAZ\Administrator or anything). If you want IIS to grant an anonymous Web visitor rights to read any file that's not on the local IIS machine, you MUST change IIS' default (and conservative) setting and assign a domain user account for it to use. You can then set the access rights on any file or other resource to grant that domain user account access. That machine must have access to a domain controller so the IIS login account can be authenticated when the first anonymous access occurs. Always create an account that is used only for this purpose; don't share another account. Always realize that this account can potentially have access to any resource on your network, so be careful. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Sam Paske [mailto:spaske at kapur-assoc.com] Sent: Tuesday, July 31, 2001 5:32 PM To: Hankley, Chip Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! I remember wrestling with user priviledge issues when I first set up a mapserver site. I went around the issue a few times trying to get the cgi to work, yet restrict access to the map file (because that file contains drive and data path information, which could help compromise a server...). The user accessing the content, if coming from the internet, should be IUSR_* (the * could be a computer name or something else). This user is considered anonymous and has not authenticated in any way. Check your IIS directory security properties and see how your users are authenticating - you could be allowing a range of users to log on, from anonymous to domain authenticated. The domain of this user will most likely not be the domain(s) in which the machine is a member, but the machine name itself. In other words, IUSR_* is not a member of any domain. This is how our Win2000 server works. So if you want an internet user to have access to a file, you must explicitly grant IUSR_* access to the file, but that could be complicated if the file is on another machine in the domain. That machine may require _authorized_ (and authentic) users to be members of the domain, and that would not be a good idea for the anonymous internet account. Of course, this all depends on what user is accessing the file. Perhaps the anonymous user is not actually accessing the data files - the server software is. If the server software is accessing a file as admin (or similar), can it access the domain? I doubt it, because it is running under a local account, not a domain account. There are Microsoft protocols that can be used to access/execute files on other machines, but I am not too familiar with them. That is the extent of my Windows knowledge, and our guru is gone for the day. (And not because windows networks are sooo easy to administer.... :) Sam Paske Kapur AGS -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Hankley, Chip Sent: Tuesday, July 31, 2001 12:54 PM To: 'Richard Greenwood'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! Richard and I are having the same problem I think... I'm beginning to think that on NT, your data HAS to be on a local drive.... Lowell wrote: >You might try dumping a simple shapefile over on the share and adding it as >a layer in your .map file. Just to see if things on that level work. I tried this yesterday and got the same results. I used a map file with one simple polygon layer. Did it local, worked fine, on a share, didnt' work. >Have you tried blowing open the privs just to see if that fixes it? This is possible, does anyone know what USER IIS or PWS acts as on NT? Does it take on the credentials of whoever is logged in, or is it something more obsure, like %SYSTEM? Man, if anyone knows the definitive answer to this, please speak up! This has some significant ramifications for how I deploy some applications, and I'm totally stuck. Chip Hankley From pnaciona at gis.umn.edu Wed Aug 1 11:41:39 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 1 Aug 2001 13:41:39 -0500 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location In-Reply-To: Message-ID: Richard, et al. To get back on the original question, the reason it doesn't work is because the network drive isn't mapped when MapServer makes the read request. You probably need to find a way to map drives while running as a service. The web server itself can't help you here because it's MapServer that actually reads the file. I suppose you can write a script that maps a network path to your local machine, and that can run as an NT service. Chances are you'll need a user that can login as a service to do this. Could be more of a hassle with security issues. You can try though, and I would like to hear what happens. Good luck! Perry N. -----Original Message----- From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On Behalf Of Richard Greenwood Sent: Monday, July 30, 2001 5:14 PM To: mapserver-users at lists Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location Hello All, I am on an NT machine and I can't seem get my TileIndex to work when the TileItem Location references a mapped network drive, or a UNC path. I get an error: " msDrawRaster(): Unable to access file. " But it works fine with a local drive letter. Anybody have any knowledge of this problem? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From ed at topozone.com Wed Aug 1 11:57:10 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 1 Aug 2001 14:57:10 -0400 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! Message-ID: <13858AA1A74F30419F319ACB66A9D122019147@mercator.topozone.com> Sam - The fact that IIS runs as a service under the SYSTEM account is basically irrelevant. For all practical purposes, for a Web site with anonymous access, everything it does is under the security context of the IUSR_ or equivalent account. I have used MapServer with DFS mapped drives - it works fine. It is, however, subject to exactly the same security constraints. It's well worth looking into, because it offers a network-wide namespace organization. But it does not change the security constraints we've been discussing here. Your last point is interesting - and a little surprising. Presumably this is part of the reason the machinename is included by default in the anonymous user account - to prevent such access. I'll have to look into that a bit more (BTW, Windows accounts are usually typed as \, so your examples are HAL9000\INETUSER and TERRAMAPPER\INETUSER). - Ed -----Original Message----- From: Sam Paske [mailto:spaske at kapur-assoc.com] Sent: Wednesday, August 01, 2001 11:23 AM To: Ed McNierney Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! Ed, Thanks for the clarification. It *really* does help one understand how things work if you can understand the underlying phylosophy. The part of this that I am most hazy on is where the IUSR_* stops and where the SYSTEM account starts. For example, some mapserver users are using the cgi version, which is fairly straightforward in that the cgi is invoked to execute with IUSR_* permissions. (At least that's how I understand it....) But other users are putting together more complicated servers where scripting hosts are executing. I confess thatI have very little knowledge of how, for instance, IIS->perl->IIS actually works. I believe the cgi version spawns a unique process for every map session (or request). But I don't understand how the scripting modules plug into IIS - are they running as a service, or are they invoked like the cgi version. The implication, in effect, would be that you would have a fairly priviledged user hitting the web server if the scripting module was running as more than IUSR_*. I have a little experience with Cold Fusion (CF), and I know that CF must run as SYSTEM or some equivalent. So it is possible to mix security contexts with IIS. (The saving factor is that CF manages it's own security by only accepting page requests that are "ok" with IIS and by not allowing things like access to the directory structure unless specifically permitted.) Getting back to the issue, I noticed that another user thought the problem might be with the path to the files. Has anyone tried to use a microsoft Distributed File System? From what I understand, it could be an alternative if you are using NT4/2000. Finally, there is a way for a user to access files on a remote machine and _not_ be a member of the domain. The key is that the "user" must exist on both machines and must have the same name and password. For example, if I want an anonymous web user (accessing IIS on the machine named "terramapper") to be able to see files on John Doe's computer (named "hal9000" let's say) I would need to have the anonymous web user use an account with a static name and password. So I create a local account called INETUSER and give it a password of "password" (couldn't resist). I do this on BOTH machines. I then have IIS use that account (technically INETUSER/TERRAMAPPER), and set the permissions of the web so that INETUSER can read the necesary files. I then go over to hal9000 and give INETUSER (technically INETUSER/HAL9000) the right to see a few shape files and directories. (I make sure that the files are not under My Documents for reasons I won't go into.) Then, paths and drive mapping aside, the IIS user should have the ability to see the remote files. Hope I didn't confuse the issue! Sam -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, July 31, 2001 7:11 PM To: Sam Paske; Hankley, Chip Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! Sam et al. - I think I covered a lot of this with my previous post, but there seems to be enough interest to warrant some clarification. I've worked with both Windows and UNIX networks for a long time, and I don't find either particularly hard to manage or easy to manage, but they're certainly different. It's really worth spending some time understanding the philosophy behind Windows networking before you expose your network assets to the world. One of the fundamental precepts of Windows NT/2000 security is that EVERY access to every resource on every system is done through a security context. For most purposes, it's simple enough to think of this as a user context or user login. For every operation there is always the notion of an authenticated user context. In particular, the comment "This user is considered anonymous and has not authenticated in any way" is correct from a Web site security point of view (no dialog box popped up when someone tried to access your Web page) but it is completely incorrect from a Windows networking point of view. When a Web site developer tells IIS to permit anonymous access to a Web site, or to a page on a site, Windows basically says "OK, since all those Web users look the same to me, and they haven't logged in anywhere, YOU give me a valid user account and password for them to use." This is the role served, by default, by the IUSR_ account. You can change that to any account you like, but obviously all Web visitors use the same account because there's no way to tell them apart. Although (as someone mentioned) the Web server itself (IIS) is running under the local SYSTEM account, it impersonates the IUSR_ account for all access to files and other resources. This includes every single file, even if your Web server is doing nothing but serving one, simple HTML file. The IUSR_ account must have Read access to that file. Windows networking supports local machine accounts and domain accounts. Local machine accounts can ONLY have access to resources on their local machine. Domain accounts can use resources on any machine on the network, provided they are granted access rights to those resources. You CAN'T sit down at machine FOO and set the permissions on a file to give BAR\IUSR_BAR Read access to that file. (BAR\IUSR_BAR means the local account IUSR_BAR on the MACHINE named BAR.) If FOO and BAR are members of a domain named BAZ, then you can grant access (on FOO) to any domain account (BAZ\Guest or BAZ\Administrator or anything). If you want IIS to grant an anonymous Web visitor rights to read any file that's not on the local IIS machine, you MUST change IIS' default (and conservative) setting and assign a domain user account for it to use. You can then set the access rights on any file or other resource to grant that domain user account access. That machine must have access to a domain controller so the IIS login account can be authenticated when the first anonymous access occurs. Always create an account that is used only for this purpose; don't share another account. Always realize that this account can potentially have access to any resource on your network, so be careful. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Sam Paske [mailto:spaske at kapur-assoc.com] Sent: Tuesday, July 31, 2001 5:32 PM To: Hankley, Chip Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! I remember wrestling with user priviledge issues when I first set up a mapserver site. I went around the issue a few times trying to get the cgi to work, yet restrict access to the map file (because that file contains drive and data path information, which could help compromise a server...). The user accessing the content, if coming from the internet, should be IUSR_* (the * could be a computer name or something else). This user is considered anonymous and has not authenticated in any way. Check your IIS directory security properties and see how your users are authenticating - you could be allowing a range of users to log on, from anonymous to domain authenticated. The domain of this user will most likely not be the domain(s) in which the machine is a member, but the machine name itself. In other words, IUSR_* is not a member of any domain. This is how our Win2000 server works. So if you want an internet user to have access to a file, you must explicitly grant IUSR_* access to the file, but that could be complicated if the file is on another machine in the domain. That machine may require _authorized_ (and authentic) users to be members of the domain, and that would not be a good idea for the anonymous internet account. Of course, this all depends on what user is accessing the file. Perhaps the anonymous user is not actually accessing the data files - the server software is. If the server software is accessing a file as admin (or similar), can it access the domain? I doubt it, because it is running under a local account, not a domain account. There are Microsoft protocols that can be used to access/execute files on other machines, but I am not too familiar with them. That is the extent of my Windows knowledge, and our guru is gone for the day. (And not because windows networks are sooo easy to administer.... :) Sam Paske Kapur AGS -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Hankley, Chip Sent: Tuesday, July 31, 2001 12:54 PM To: 'Richard Greenwood'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! Richard and I are having the same problem I think... I'm beginning to think that on NT, your data HAS to be on a local drive.... Lowell wrote: >You might try dumping a simple shapefile over on the share and adding it as >a layer in your .map file. Just to see if things on that level work. I tried this yesterday and got the same results. I used a map file with one simple polygon layer. Did it local, worked fine, on a share, didnt' work. >Have you tried blowing open the privs just to see if that fixes it? This is possible, does anyone know what USER IIS or PWS acts as on NT? Does it take on the credentials of whoever is logged in, or is it something more obsure, like %SYSTEM? Man, if anyone knows the definitive answer to this, please speak up! This has some significant ramifications for how I deploy some applications, and I'm totally stuck. Chip Hankley From ed at topozone.com Wed Aug 1 12:27:57 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 1 Aug 2001 15:27:57 -0400 Subject: [mapserver-users] OGR Support for TIGER 2000 Data? Message-ID: <13858AA1A74F30419F319ACB66A9D122019148@mercator.topozone.com> I'm trying to use the current (nightly) build of MS 3.5 with OGR support. I'm working with the GDAL-1.1.5 distribution and I can't get it to read TIGER 2000 data I just downloaded from the Census Bureau's site. This is on a Windows 2000 system, and OGR otherwise seems OK (as far as I can tell) - I'm using the current GDAL11.DLL. Running ogrinfo on a file ("ogrinfo tgr25001.rt1") in the current directory reports "Unable to open datasource 'tgr25001.rt1' with the following drivers..." (and TIGER is listed). Any tips would be appreciated - TIA. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 From Rich at GreenwoodMap.com Wed Aug 1 12:33:50 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Wed, 01 Aug 2001 13:33:50 -0600 Subject: [mapserver-users] compiling MS 3.5 on NT Message-ID: <5.1.0.14.0.20010801131032.03417d20@mail.GreenwoodMap.com> Hi All, I'm having two problems compiling mapserver 3.5 under VC with all of the options that I want. 1. I can't seem to link true type support in, no matter what I do, when I run my compiled mapserv.exe I get the error: "loadlabel(): Unknown identifier. Keyword FONT is not valid without TrueType font support." 2. I am getting a nasty error from tiff_lib; mapserver crashes with the error: "Instruction at "xxx" referenced memory at "xxx". The memory could not be written." I only get this error from the executable that I have compiled, not the 3.5 executable that download from the umn.edu site, so I'm obviously doing something wrong. If anyone can shed any light on either of these issues, I'd appreciate it. Running ms 3.5 is not critical to my project so I am not losing any sleep over these problems, it is just that I have spent so much time trying to get a good executable that I'd like to figure out what I am doing wrong. Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From vieglais at ku.edu Wed Aug 1 14:48:01 2001 From: vieglais at ku.edu (Dave Vieglais) Date: Wed, 1 Aug 2001 16:48:01 -0500 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! In-Reply-To: <13858AA1A74F30419F319ACB66A9D122019147@mercator.topozone.com> Message-ID: <002501c11ad3$a2f21400$cec9ed81@life.ku.edu> For a good description of how to use mapped network drives with IIS and the security issues involved, try: http://support.microsoft.com/support/kb/articles/Q257/1/74.ASP http://support.microsoft.com/support/kb/articles/Q187/5/06.ASP is also quite relevant. Cheers, Dave V. >-----Original Message----- >From: Sam Paske [mailto:spaske at kapur-assoc.com] >Sent: Wednesday, August 01, 2001 11:23 AM >To: Ed McNierney >Cc: mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location >HELP! > > >Ed, > >Thanks for the clarification. It *really* does help one understand how >things work if you can understand the underlying phylosophy. >The part of >this that I am most hazy on is where the IUSR_* stops and where the >SYSTEM >account starts. > >For example, some mapserver users are using the cgi version, which is >fairly >straightforward in that the cgi is invoked to execute with IUSR_* >permissions. (At least that's how I understand it....) But other users >are >putting together more complicated servers where scripting hosts are >executing. I confess thatI have very little knowledge of how, for >instance, >IIS->perl->IIS actually works. I believe the cgi version >spawns a unique >process for every map session (or request). But I don't understand how >the >scripting modules plug into IIS - are they running as a service, or are >they >invoked like the cgi version. The implication, in effect, would be that >you >would have a fairly priviledged user hitting the web server if the >scripting >module was running as more than IUSR_*. > >I have a little experience with Cold Fusion (CF), and I know that CF >must >run as SYSTEM or some equivalent. So it is possible to mix security >contexts >with IIS. (The saving factor is that CF manages it's own security by >only >accepting page requests that are "ok" with IIS and by not allowing >things >like access to the directory structure unless specifically permitted.) > >Getting back to the issue, I noticed that another user thought the >problem >might be with the path to the files. Has anyone tried to use a >microsoft >Distributed File System? From what I understand, it could be an >alternative >if you are using NT4/2000. > >Finally, there is a way for a user to access files on a remote machine >and >_not_ be a member of the domain. The key is that the "user" must exist >on >both machines and must have the same name and password. For example, if >I >want an anonymous web user (accessing IIS on the machine named >"terramapper") to be able to see files on John Doe's computer (named >"hal9000" let's say) I would need to have the anonymous web user use an >account with a static name and password. So I create a local account >called >INETUSER and give it a password of "password" (couldn't resist). I do >this >on BOTH machines. I then have IIS use that account (technically >INETUSER/TERRAMAPPER), and set the permissions of the web so that >INETUSER >can read the necesary files. I then go over to hal9000 and >give INETUSER >(technically INETUSER/HAL9000) the right to see a few shape files and >directories. (I make sure that the files are not under My Documents for >reasons I won't go into.) Then, paths and drive mapping aside, the IIS >user >should have the ability to see the remote files. > >Hope I didn't confuse the issue! > >Sam > >-----Original Message----- >From: Ed McNierney [mailto:ed at topozone.com] >Sent: Tuesday, July 31, 2001 7:11 PM >To: Sam Paske; Hankley, Chip >Cc: mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location >HELP! > > >Sam et al. - > >I think I covered a lot of this with my previous post, but there seems >to be enough interest to warrant some clarification. I've worked with >both Windows and UNIX networks for a long time, and I don't find either >particularly hard to manage or easy to manage, but they're certainly >different. It's really worth spending some time understanding the >philosophy behind Windows networking before you expose your network >assets to the world. > >One of the fundamental precepts of Windows NT/2000 security is that >EVERY access to every resource on every system is done through a >security context. For most purposes, it's simple enough to think of >this as a user context or user login. For every operation there is >always the notion of an authenticated user context. In particular, the >comment "This user is considered anonymous and has not authenticated in >any way" is correct from a Web site security point of view (no dialog >box popped up when someone tried to access your Web page) but it is >completely incorrect from a Windows networking point of view. > >When a Web site developer tells IIS to permit anonymous access to a Web >site, or to a page on a site, Windows basically says "OK, since all >those Web users look the same to me, and they haven't logged in >anywhere, YOU give me a valid user account and password for them to >use." This is the role served, by default, by the IUSR_ >account. You can change that to any account you like, but >obviously all >Web visitors use the same account because there's no way to tell them >apart. > >Although (as someone mentioned) the Web server itself (IIS) is running >under the local SYSTEM account, it impersonates the IUSR_ >account for all access to files and other resources. This includes >every single file, even if your Web server is doing nothing but serving >one, simple HTML file. The IUSR_ account must have Read >access to that file. > >Windows networking supports local machine accounts and domain accounts. >Local machine accounts can ONLY have access to resources on their local >machine. Domain accounts can use resources on any machine on the >network, provided they are granted access rights to those resources. > >You CAN'T sit down at machine FOO and set the permissions on a file to >give BAR\IUSR_BAR Read access to that file. (BAR\IUSR_BAR means the >local account IUSR_BAR on the MACHINE named BAR.) If FOO and BAR are >members of a domain named BAZ, then you can grant access (on >FOO) to any >domain account (BAZ\Guest or BAZ\Administrator or anything). > >If you want IIS to grant an anonymous Web visitor rights to read any >file that's not on the local IIS machine, you MUST change IIS' default >(and conservative) setting and assign a domain user account for it to >use. You can then set the access rights on any file or other resource >to grant that domain user account access. That machine must >have access >to a domain controller so the IIS login account can be authenticated >when the first anonymous access occurs. > >Always create an account that is used only for this purpose; >don't share >another account. Always realize that this account can potentially have >access to any resource on your network, so be careful. > > - Ed > >Ed McNierney >Chief Mapmaker >TopoZone.com > >-----Original Message----- >From: Sam Paske [mailto:spaske at kapur-assoc.com] >Sent: Tuesday, July 31, 2001 5:32 PM >To: Hankley, Chip >Cc: mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location >HELP! > > >I remember wrestling with user priviledge issues when I first set up a >mapserver site. I went around the issue a few times trying to get the >cgi to >work, yet restrict access to the map file (because that file contains >drive >and data path information, which could help compromise a server...). > >The user accessing the content, if coming from the internet, should be >IUSR_* (the * could be a computer name or something else). This user is >considered anonymous and has not authenticated in any way. Check your >IIS >directory security properties and see how your users are authenticating >- >you could be allowing a range of users to log on, from anonymous to >domain >authenticated. > >The domain of this user will most likely not be the domain(s) in which >the >machine is a member, but the machine name itself. In other >words, IUSR_* >is >not a member of any domain. This is how our Win2000 server works. So if >you >want an internet user to have access to a file, you must explicitly >grant >IUSR_* access to the file, but that could be complicated if the file is >on >another machine in the domain. That machine may require _authorized_ >(and >authentic) users to be members of the domain, and that would not be a >good >idea for the anonymous internet account. > >Of course, this all depends on what user is accessing the file. Perhaps >the >anonymous user is not actually accessing the data files - the server >software is. If the server software is accessing a file as admin (or >similar), can it access the domain? I doubt it, because it is running >under >a local account, not a domain account. There are Microsoft protocols >that >can be used to access/execute files on other machines, but I am not too >familiar with them. > >That is the extent of my Windows knowledge, and our guru is >gone for the >day. (And not because windows networks are sooo easy to administer.... >:) > >Sam Paske >Kapur AGS > > > >-----Original Message----- >From: owner-mapserver-users at lists.gis.umn.edu >[mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Hankley, >Chip >Sent: Tuesday, July 31, 2001 12:54 PM >To: 'Richard Greenwood'; mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location >HELP! > > >Richard and I are having the same problem I think... > >I'm beginning to think that on NT, your data HAS to be on a local >drive.... > >Lowell wrote: > >You might try dumping a simple shapefile over on the share and adding >it >as > >a layer in your .map file. Just to see if things on that level work. > >I tried this yesterday and got the same results. I used a map file with >one >simple polygon layer. Did it local, worked fine, on a share, didnt' >work. > > >Have you tried blowing open the privs just to see if that fixes it? > >This is possible, does anyone know what USER IIS or PWS acts as on NT? >Does >it take on the credentials of whoever is logged in, or is it something >more >obsure, like %SYSTEM? > >Man, if anyone knows the definitive answer to this, please speak up! >This >has some significant ramifications for how I deploy some applications, >and >I'm totally stuck. > >Chip Hankley > From nwerneck at yahoo.com.br Wed Aug 1 15:00:10 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Wed, 1 Aug 2001 19:00:10 -0300 (ART) Subject: [mapserver-users] MIF to SHP Message-ID: <20010801220011.14073.qmail@web4307.mail.yahoo.com> Hi. What's the RIGHT way to create a MIF file to use with the mifshape program? bye --Nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From nvijayashree at propmart.com Thu Aug 2 03:24:53 2001 From: nvijayashree at propmart.com (Vijayashree) Date: Thu, 2 Aug 2001 15:54:53 +0530 Subject: [mapserver-users] integrating arcims with flash Message-ID: hello, Can anybody tell me how to integrate flash with arcims. I would like to do some interaction with maps when it is displayed. Thanks in advance vijayashree From LBallard at YesVirginia.org Thu Aug 2 06:12:17 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Thu, 2 Aug 2001 09:12:17 -0400 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location HE LP! Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CE22@communications> We recently started using image catalogs in FAT clients (ArcGIS 8.1 stuff) that include UNC mappings. We basically changed the location field From: s:\imagery3\drg\39078\d3clp.tif To: \\oglalla\imagery3\drg\39078\d3clp.tif in our imagecat.dbf file where oglalla is the name of a UNIX box running Samba sharing out imagery3 as a read-only file system. I then load the imagecat.dbf into SDE and it can be seen by clients through the SDE port and no drive mappings are necessary for any of my GIS clients. It's a bit off-topic but might be useful to some people. Lowell------ -----Original Message----- From: Dave Vieglais [mailto:vieglais at ku.edu] Sent: Wednesday, August 01, 2001 5:48 PM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! For a good description of how to use mapped network drives with IIS and the security issues involved, try: http://support.microsoft.com/support/kb/articles/Q257/1/74.ASP http://support.microsoft.com/support/kb/articles/Q187/5/06.ASP is also quite relevant. Cheers, Dave V. >-----Original Message----- >From: Sam Paske [mailto:spaske at kapur-assoc.com] >Sent: Wednesday, August 01, 2001 11:23 AM >To: Ed McNierney >Cc: mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location >HELP! > > >Ed, > >Thanks for the clarification. It *really* does help one understand how >things work if you can understand the underlying phylosophy. >The part of >this that I am most hazy on is where the IUSR_* stops and where the >SYSTEM >account starts. > >For example, some mapserver users are using the cgi version, which is >fairly >straightforward in that the cgi is invoked to execute with IUSR_* >permissions. (At least that's how I understand it....) But other users >are >putting together more complicated servers where scripting hosts are >executing. I confess thatI have very little knowledge of how, for >instance, >IIS->perl->IIS actually works. I believe the cgi version >spawns a unique >process for every map session (or request). But I don't understand how >the >scripting modules plug into IIS - are they running as a service, or are >they >invoked like the cgi version. The implication, in effect, would be that >you >would have a fairly priviledged user hitting the web server if the >scripting >module was running as more than IUSR_*. > >I have a little experience with Cold Fusion (CF), and I know that CF >must >run as SYSTEM or some equivalent. So it is possible to mix security >contexts >with IIS. (The saving factor is that CF manages it's own security by >only >accepting page requests that are "ok" with IIS and by not allowing >things >like access to the directory structure unless specifically permitted.) > >Getting back to the issue, I noticed that another user thought the >problem >might be with the path to the files. Has anyone tried to use a >microsoft >Distributed File System? From what I understand, it could be an >alternative >if you are using NT4/2000. > >Finally, there is a way for a user to access files on a remote machine >and >_not_ be a member of the domain. The key is that the "user" must exist >on >both machines and must have the same name and password. For example, if >I >want an anonymous web user (accessing IIS on the machine named >"terramapper") to be able to see files on John Doe's computer (named >"hal9000" let's say) I would need to have the anonymous web user use an >account with a static name and password. So I create a local account >called >INETUSER and give it a password of "password" (couldn't resist). I do >this >on BOTH machines. I then have IIS use that account (technically >INETUSER/TERRAMAPPER), and set the permissions of the web so that >INETUSER >can read the necesary files. I then go over to hal9000 and >give INETUSER >(technically INETUSER/HAL9000) the right to see a few shape files and >directories. (I make sure that the files are not under My Documents for >reasons I won't go into.) Then, paths and drive mapping aside, the IIS >user >should have the ability to see the remote files. > >Hope I didn't confuse the issue! > >Sam > >-----Original Message----- >From: Ed McNierney [mailto:ed at topozone.com] >Sent: Tuesday, July 31, 2001 7:11 PM >To: Sam Paske; Hankley, Chip >Cc: mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location >HELP! > > >Sam et al. - > >I think I covered a lot of this with my previous post, but there seems >to be enough interest to warrant some clarification. I've worked with >both Windows and UNIX networks for a long time, and I don't find either >particularly hard to manage or easy to manage, but they're certainly >different. It's really worth spending some time understanding the >philosophy behind Windows networking before you expose your network >assets to the world. > >One of the fundamental precepts of Windows NT/2000 security is that >EVERY access to every resource on every system is done through a >security context. For most purposes, it's simple enough to think of >this as a user context or user login. For every operation there is >always the notion of an authenticated user context. In particular, the >comment "This user is considered anonymous and has not authenticated in >any way" is correct from a Web site security point of view (no dialog >box popped up when someone tried to access your Web page) but it is >completely incorrect from a Windows networking point of view. > >When a Web site developer tells IIS to permit anonymous access to a Web >site, or to a page on a site, Windows basically says "OK, since all >those Web users look the same to me, and they haven't logged in >anywhere, YOU give me a valid user account and password for them to >use." This is the role served, by default, by the IUSR_ >account. You can change that to any account you like, but >obviously all >Web visitors use the same account because there's no way to tell them >apart. > >Although (as someone mentioned) the Web server itself (IIS) is running >under the local SYSTEM account, it impersonates the IUSR_ >account for all access to files and other resources. This includes >every single file, even if your Web server is doing nothing but serving >one, simple HTML file. The IUSR_ account must have Read >access to that file. > >Windows networking supports local machine accounts and domain accounts. >Local machine accounts can ONLY have access to resources on their local >machine. Domain accounts can use resources on any machine on the >network, provided they are granted access rights to those resources. > >You CAN'T sit down at machine FOO and set the permissions on a file to >give BAR\IUSR_BAR Read access to that file. (BAR\IUSR_BAR means the >local account IUSR_BAR on the MACHINE named BAR.) If FOO and BAR are >members of a domain named BAZ, then you can grant access (on >FOO) to any >domain account (BAZ\Guest or BAZ\Administrator or anything). > >If you want IIS to grant an anonymous Web visitor rights to read any >file that's not on the local IIS machine, you MUST change IIS' default >(and conservative) setting and assign a domain user account for it to >use. You can then set the access rights on any file or other resource >to grant that domain user account access. That machine must >have access >to a domain controller so the IIS login account can be authenticated >when the first anonymous access occurs. > >Always create an account that is used only for this purpose; >don't share >another account. Always realize that this account can potentially have >access to any resource on your network, so be careful. > > - Ed > >Ed McNierney >Chief Mapmaker >TopoZone.com > >-----Original Message----- >From: Sam Paske [mailto:spaske at kapur-assoc.com] >Sent: Tuesday, July 31, 2001 5:32 PM >To: Hankley, Chip >Cc: mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location >HELP! > > >I remember wrestling with user priviledge issues when I first set up a >mapserver site. I went around the issue a few times trying to get the >cgi to >work, yet restrict access to the map file (because that file contains >drive >and data path information, which could help compromise a server...). > >The user accessing the content, if coming from the internet, should be >IUSR_* (the * could be a computer name or something else). This user is >considered anonymous and has not authenticated in any way. Check your >IIS >directory security properties and see how your users are authenticating >- >you could be allowing a range of users to log on, from anonymous to >domain >authenticated. > >The domain of this user will most likely not be the domain(s) in which >the >machine is a member, but the machine name itself. In other >words, IUSR_* >is >not a member of any domain. This is how our Win2000 server works. So if >you >want an internet user to have access to a file, you must explicitly >grant >IUSR_* access to the file, but that could be complicated if the file is >on >another machine in the domain. That machine may require _authorized_ >(and >authentic) users to be members of the domain, and that would not be a >good >idea for the anonymous internet account. > >Of course, this all depends on what user is accessing the file. Perhaps >the >anonymous user is not actually accessing the data files - the server >software is. If the server software is accessing a file as admin (or >similar), can it access the domain? I doubt it, because it is running >under >a local account, not a domain account. There are Microsoft protocols >that >can be used to access/execute files on other machines, but I am not too >familiar with them. > >That is the extent of my Windows knowledge, and our guru is >gone for the >day. (And not because windows networks are sooo easy to administer.... >:) > >Sam Paske >Kapur AGS > > > >-----Original Message----- >From: owner-mapserver-users at lists.gis.umn.edu >[mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Hankley, >Chip >Sent: Tuesday, July 31, 2001 12:54 PM >To: 'Richard Greenwood'; mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location >HELP! > > >Richard and I are having the same problem I think... > >I'm beginning to think that on NT, your data HAS to be on a local >drive.... > >Lowell wrote: > >You might try dumping a simple shapefile over on the share and adding >it >as > >a layer in your .map file. Just to see if things on that level work. > >I tried this yesterday and got the same results. I used a map file with >one >simple polygon layer. Did it local, worked fine, on a share, didnt' >work. > > >Have you tried blowing open the privs just to see if that fixes it? > >This is possible, does anyone know what USER IIS or PWS acts as on NT? >Does >it take on the credentials of whoever is logged in, or is it something >more >obsure, like %SYSTEM? > >Man, if anyone knows the definitive answer to this, please speak up! >This >has some significant ramifications for how I deploy some applications, >and >I'm totally stuck. > >Chip Hankley > From Chip.Hankley at GASAI.Com Thu Aug 2 06:52:41 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 2 Aug 2001 08:52:41 -0500 Subject: [mapserver-users] Using data on Mapped Drives? Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3DE5@postoffice.GASAI.Com> OK, I'm just posting this for the sake of the Archive... the bulk of the information on this topic can be found under the following thread: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! The problem is one of permissions... specifically one of the default account that PWS or IIS uses when trying to access resources from the Web Server. This is very well explained in one of the posts from Ed McNierney in the above thread. If you are using IIS, follow his instructions. In PWS, the process is almost identical. If you took the default installation of PWS from the NT 4.0 Option pack, then: Start->Programs->Windows NT 4.0 Option Pack->Microsoft Personal Web Server->Internet Service Manager Under Internet Information Server, choose the machine, then the Web Site, right click on the web site and choose properties. Select the Directory Security Tab... hit the EDIT button under "Anonymous Access and Authentication Control" Select the EDIT button by "Allow Anonymous Access" Select "Browse" and choose a Username that has access to the resources you want the application to connect to. NOTE! Make sure you read the thread referenced above! There are security issues when doing this which you should be aware of. Cheers! Chip Hankley > I have a PHP MapScript project that _was_ working great. > > I moved the data off of the local drive to a shared > network drive, then changed the paths in the map file, > but my app now bombs out with the following error: > > Fatal error: MapServer Error in msDrawRaster(): > (S:\Projects\20000156\Images\drg2.tif) in zoom.php > on line 151 > > The offending line in php (151) is: > > $img = $map->draw(); > > Am I missing something? I can't seem to find anything > in the documentation that would prevent me from access- > ing data on an NT share. > > I'm using MS 3.4 w/ php 4.04pl1 on WinNT w/ PWS > > Thanks! > > Chip Hankley From bfischer at mpls.houstoneng.com Thu Aug 2 07:17:21 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Thu, 2 Aug 2001 09:17:21 -0500 Subject: [mapserver-users] Mapserver Binaries Message-ID: <8879CCE0F0187742B7302A93A8B87B090297D4@mpls.houstoneng.com> I was wondering if anyone else has a copy of mapserver 3.3011 executable for windows with all of the support compiled in. The one that can be downloaded from the Mapserver homepage ( http://mapserver.gis.umn.edu/win32binaries.html) seems to have a problem with it. I downloaded it and tried to unzip it with WinZip and get an error, so then I tried it with another decompression software and there are no files in the zip file. Is this a bad file or is there a problem on my side? Thanks, Brian From pkishor at GeoAnalytics.com Thu Aug 2 07:21:13 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 2 Aug 2001 09:21:13 -0500 Subject: [mapserver-users] integrating arcims with flash In-Reply-To: Message-ID: <200108021422.JAA18131@lists.gis.umn.edu> posting arcims questions to mapserver list is very bad karma. it can cause your java socket to get clogged up. pk/ On Thursday, August 2, 2001, at 05:24 AM, Vijayashree wrote: > hello, > > Can anybody tell me how to integrate flash with arcims. I would like to > do > some interaction with maps when it is displayed. > > Thanks in advance > vijayashree From assefa at dmsolutions.ca Thu Aug 2 07:35:28 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Thu, 02 Aug 2001 10:35:28 -0400 Subject: [mapserver-users] Mapserver Binaries References: <8879CCE0F0187742B7302A93A8B87B090297D4@mpls.houstoneng.com> Message-ID: <3B696530.D14CD789@dmsolutions.ca> Hi There, There is one on our download site at : http://www2.dmsolutions.ca/mapserver/dl/old_stuff/ms_3.3.011-win32.zip. Best Regards, Brian Fischer wrote: > I was wondering if anyone else has a copy of mapserver 3.3011 executable > for windows with all of the support compiled in. The one that can be > downloaded from the Mapserver homepage ( > http://mapserver.gis.umn.edu/win32binaries.html) seems to have a problem > with it. I downloaded it and tried to unzip it with WinZip and get an > error, so then I tried it with another decompression software and there > are no files in the zip file. Is this a bad file or is there a problem > on my side? > > Thanks, > Brian > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From pnaciona at gis.umn.edu Thu Aug 2 09:03:20 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Thu, 2 Aug 2001 11:03:20 -0500 Subject: [mapserver-users] Mapserver Binaries In-Reply-To: <8879CCE0F0187742B7302A93A8B87B090297D4@mpls.houstoneng.com> Message-ID: Brian, Did you try downloading it again? If you run into the same problem, still have my original 3.3.011 binaries and would be glad to send it to you. -Perry Pericles S. Nacionales Research Assistant GIS and Remote Sensing Lab Department of Forest Resources University of Minnesota (612) 624-3459 pnaciona at gis.umn.edu On Thu, 2 Aug 2001, Brian Fischer wrote: > I was wondering if anyone else has a copy of mapserver 3.3011 executable > for windows with all of the support compiled in. The one that can be > downloaded from the Mapserver homepage ( > http://mapserver.gis.umn.edu/win32binaries.html) seems to have a problem > with it. I downloaded it and tried to unzip it with WinZip and get an > error, so then I tried it with another decompression software and there > are no files in the zip file. Is this a bad file or is there a problem > on my side? > > Thanks, > Brian > > From mckenna at dmsolutions.ca Thu Aug 2 09:08:45 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Thu, 02 Aug 2001 12:08:45 -0400 Subject: [mapserver-users] OGR Support for TIGER 2000 Data? References: <13858AA1A74F30419F319ACB66A9D122019148@mercator.topozone.com> Message-ID: <3B697B0D.443A296A@dmsolutions.ca> > I'm trying to use the current (nightly) build of MS 3.5 with OGR > support. I'm working with the GDAL-1.1.5 distribution and I can't get > it to read TIGER 2000 data I just downloaded from the Census Bureau's > site. This is on a Windows 2000 system, and OGR otherwise seems OK (as > far as I can tell) - I'm using the current GDAL11.DLL. > > Running ogrinfo on a file ("ogrinfo tgr25001.rt1") in the current > directory reports "Unable to open datasource 'tgr25001.rt1' with the > following drivers..." (and TIGER is listed). > Hi Ed, I downloaded 'tgr25001.rt1' as well and tried to run ogrinfo and I get the same error message as you. This did work with previous versions of Tiger data (at the time we compiled the HOWTO); however, now when I try to look at 1998 Tiger data with ogrinfo it no longer seems to work (?). Daniel and I are looking at it and we'll let you know if we figure this out. Jeff -- Jeff McKenna GIS Specialist DM Solutions Group Inc. Ottawa, Ontario http://www.dmsolutions.ca/ From andreag at crs4.it Thu Aug 2 09:32:09 2001 From: andreag at crs4.it (A. Giacomelli) Date: Thu, 02 Aug 2001 18:32:09 +0200 Subject: [mapserver-users] Meeting References: <000001c114e4$ae03fb00$3e00a8c0@goodfella> <3B5ED3B3.588CCEB2@dmsolutions.ca> Message-ID: <3B698089.48F8BA90@crs4.it> > > BTW, I think the user group meeting is a fantastic idea. It would > certainly help to put faces to all of these names. :) > Hi, over the pond we are following your plans for the user meeting with some envy...(no, just kidding). I'm sure some nice things would come out of it. About the face issue (which I feel as well: with these myriads of mailing lists and electronic forums featuring thousands of "faceless" people) I think an application where you click on a country/city and you get the faces of the subscriber from that location would be an interesting mapserver show-off... :) Ok: I am somewhat trailing off-topic...that'll be all for now Keep up with the good work! Ciao -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia http://www.crs4.it/~andreag ========================================= From chuynh at ideorlando.org Thu Aug 2 09:31:20 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Thu, 2 Aug 2001 12:31:20 -0400 Subject: [mapserver-users] Mapserver Binaries In-Reply-To: <8879CCE0F0187742B7302A93A8B87B090297D4@mpls.houstoneng.com> Message-ID: Hi Brian, That's odd. I downloaded the one with GIF support and has no problem at all in unzipping it. The demo is running well on my NT Netscape Server. Though I have to play around with the map file a bit. The documentation is more for UNIX Server. You might want to re-download it. It will unzip to 7,8 executables including mapserv.exe. Don't double click on it. Open WinZip from the Start->Program and then load the zip file in. Hope that helps. -chan -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Brian Fischer Sent: Thursday, August 02, 2001 10:17 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Mapserver Binaries I was wondering if anyone else has a copy of mapserver 3.3011 executable for windows with all of the support compiled in. The one that can be downloaded from the Mapserver homepage ( http://mapserver.gis.umn.edu/win32binaries.html) seems to have a problem with it. I downloaded it and tried to unzip it with WinZip and get an error, so then I tried it with another decompression software and there are no files in the zip file. Is this a bad file or is there a problem on my side? Thanks, Brian From ed at topozone.com Thu Aug 2 09:42:02 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 2 Aug 2001 12:42:02 -0400 Subject: [mapserver-users] PROJ.4 interpretation of "geographic" Message-ID: <13858AA1A74F30419F319ACB66A9D122019149@mercator.topozone.com> I'm trying to discern the exact meaning of the "geographic" projection in PROJ.4, and I'm a little puzzled. In particular, I'm trying to figure out what ellipsoid is used to interpret the geographic coordinates. That is, is "geographic" the same as "proj=latlong ellps=clrk66" or "proj=latlong ellps=GRS80" or something else entirely? This should be findable somewhere, but I haven't been able to figure it out. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 From andreag at geoplan.ufl.edu Thu Aug 2 11:38:40 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Thu, 02 Aug 2001 14:38:40 -0400 Subject: [mapserver-users] request for javascript exs Message-ID: <3B699E30.691B81CD@geoplan.ufl.edu> OK I now have a few days where I can work on the 'mapserver & javascript' documentation. For part of it I want to show really generic examples of how to do various functions. If any of you could email me some of your javascript functions, I can make them generic and post it as part of the documentation. Note that I would need them by 08-07-01. Don't bother cleaning any scripts up - I can do that. Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From bruno_gendron at yahoo.com Thu Aug 2 13:26:12 2001 From: bruno_gendron at yahoo.com (=?iso-8859-1?q?Bruno=20Gendron?=) Date: Thu, 2 Aug 2001 22:26:12 +0200 (CEST) Subject: [mapserver-users] embedded scalebars and legends, labelrequires Message-ID: <20010802202612.2535.qmail@web4603.mail.yahoo.com> Hi I'm using the most recent (nightly build) Win32 binaries for version 3.5 with PNG and OGR support (mapserv.exe created on 08-01-01), and I still get the following error when I try to embed scalebars and/or legend: Fatal error: MapServer Error in msGetBitmapFont(): Invalid bitmap font. Must be one of tiny, small, medium, large or giant. Steve Lime said that this problem had been solved and committed to CVS. Also, will Truetype fonts be eventually supported in legends and scalebars ? Finally, I try to use the new LABELREQUIRES and REQUIRES mapfile parameters, but I always get the following error: Warning: MapServer Error in getString(): (["cities"] = 1): (169)..... Fatal error: Failed to open map file mapfiles\worldquery.map..... Any idea? Thanks ===== Bruno Gendron Consultant en TI et en geomatique / IT and GIS Consultant Lachine, QC Canada, Tel: 514-634-7024 "Quand on connait l'equilibre, on ne se passionne pour rien, on ne s'attache meme pas a la vie, car on est la vie." Emile Cioran ___________________________________________________________ Do You Yahoo!? -- Vos albums photos en ligne, Yahoo! Photos : http://fr.photos.yahoo.com From pnaciona at gis.umn.edu Thu Aug 2 16:34:16 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Thu, 2 Aug 2001 18:34:16 -0500 Subject: [mapserver-users] embedded scalebars and legends, labelrequires In-Reply-To: <20010802202612.2535.qmail@web4603.mail.yahoo.com> Message-ID: Bruno, I recompiled the Win32 binaries for 3.5 using code from the CVS repository. I hope it fixes your problems. If you still run into problems maybe you can attach your mapfile so folks can have a look at it. Those small typos can usually screw it up. -Perry N. -----Original Message----- From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On Behalf Of Bruno Gendron Sent: Thursday, August 02, 2001 3:26 PM To: mapserver-users at lists Subject: [mapserver-users] embedded scalebars and legends, labelrequires Hi I'm using the most recent (nightly build) Win32 binaries for version 3.5 with PNG and OGR support (mapserv.exe created on 08-01-01), and I still get the following error when I try to embed scalebars and/or legend: Fatal error: MapServer Error in msGetBitmapFont(): Invalid bitmap font. Must be one of tiny, small, medium, large or giant. Steve Lime said that this problem had been solved and committed to CVS. Also, will Truetype fonts be eventually supported in legends and scalebars ? Finally, I try to use the new LABELREQUIRES and REQUIRES mapfile parameters, but I always get the following error: Warning: MapServer Error in getString(): (["cities"] = 1): (169)..... Fatal error: Failed to open map file mapfiles\worldquery.map..... Any idea? Thanks ===== Bruno Gendron Consultant en TI et en geomatique / IT and GIS Consultant Lachine, QC Canada, Tel: 514-634-7024 "Quand on connait l'equilibre, on ne se passionne pour rien, on ne s'attache meme pas a la vie, car on est la vie." Emile Cioran ___________________________________________________________ Do You Yahoo!? -- Vos albums photos en ligne, Yahoo! Photos : http://fr.photos.yahoo.com From S.Kolomeitz at toowoomba.qld.gov.au Thu Aug 2 17:08:38 2001 From: S.Kolomeitz at toowoomba.qld.gov.au (Shaun Kolomeitz) Date: Fri, 3 Aug 2001 10:08:38 +1000 Subject: [mapserver-users] Australian MapServer Users Listing Message-ID: Appologies to the folk in the rest of the world. I am interested in getting email addresses of MapServer users, physical location and web address (of Mapserver Sites) around Australia. I am interested in the following info - 1) email address (eg fred at nurk.com.au) 2) Location(eg Toowoomba, QLD) 3) Web Address (eg.http://mygreatpapserver.com.au/Maps) 4) If you are just interested in hearing what people have done/are doing with MapServer 5) If you have installed, setup and developed MapServer products 6) What sort of problem did you solve/is the application for ? How long did it take and what resources were involved ? 7) If you provide MapServer consulting and training services 8) What you think of the experience of a) Installing Mapserver b) Developing mapserver and c) using mapserver websites The reason being, we are interested in developing our own local MapServer app, so some local contacts/experience would be invaluable. If anyone feels confident enough to provide training in setting up and developing with MapServer (and related products) in Australia I'd also like to know. Who knows, you might score a trip to the fabulous Darling Downs ! The second reason is once we get some experience using and developing MapServer products we'd like to partake in an Australian MapServer Users Group {A-MUG !} (much like the recent thread suggesting a meeting in the States) sharing our experiences with peers. Please email me directly and I will disribute to the rest of the group. I'd love to hear from you. Regards, Shaun Shaun Kolomeitz eBusiness Manager, Toowoomba City Council Voice: +61 (0)7 4688 6863 Fax: +61 (0)7 4638 3830 PO Box 3021 Toowoomba Queensland 4350 Australia 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 epkanegae at myrealbox.com Thu Aug 2 19:59:36 2001 From: epkanegae at myrealbox.com (Eduardo Patto Kanegae) Date: Fri, 03 Aug 2001 02:59:36 GMT Subject: [mapserver-users] Structured Geografic Language for GIS Message-ID: <996807576.775epkanegae@myrealbox.com> hi there... does anybody here have heard 'bout LEGAL(Linguagem Espacial para GeoProcessamento Algebrico) ? LEGAL is a structured query language for GIS objects. its author( Gilberto Camara - http://www.dpi.inpe.br/gilberto ) has developed a language so usefull as SQL to be used with Spring GIS software... go to http://www.dpi.inpe.br/dpi/teses/gilberto/ or http://www.dpi.inpe.br/dpi/teses/gilberto/cap6.pdf and there u'll find information about it(sorry, i think there is no english version of it) Eduardo Patto Kanegae From JohnHockaday at auslig.gov.au Fri Aug 3 00:19:14 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Fri, 3 Aug 2001 17:19:14 +1000 Subject: [mapserver-users] Australian MapServer Users Listing Message-ID: <53273E187450D311ACF6009027927B12022C0DFE@smtpgate.auslig.gov.au> Hi Saun, Here are some answers to your questions: 1. johnhockaday at auslig.gov.au 2. Canberra ACT 3. http://www.auslig.gov.au/servlet/asdd_power (just click on the green and yellow map of Australia to fire up mapserver.) We are about to use it for many other interfaces. 4. Yes I'm interested in what people have done. 5. Yes we set it up ourselves with support from this list. 6. Understanding the map file structure, getting some javascript to drag a box on the image. 7. No we are a commonwealth agency and can't afford to consult. ;--) 8. Mapserver is: a. easy to install b. documentation is limited but after understanding the map files setup was easy. c. very fast at the web sites that I have looked at. I hope that this helps. John Hockaday > -----Original Message----- > From: Shaun Kolomeitz [SMTP:S.Kolomeitz at toowoomba.qld.gov.au] > Sent: Friday, August 03, 2001 10:09 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Australian MapServer Users Listing > > > Appologies to the folk in the rest of the world. > > I am interested in getting email addresses of MapServer users, physical > location and web address (of Mapserver Sites) around Australia. I am > interested in the following info - > > 1) email address (eg fred at nurk.com.au) > 2) Location(eg Toowoomba, QLD) > 3) Web Address (eg.http://mygreatpapserver.com.au/Maps) > 4) If you are just interested in hearing what people have done/are doing > with MapServer > 5) If you have installed, setup and developed MapServer products > 6) What sort of problem did you solve/is the application for ? How long > did it take and what resources were involved ? > 7) If you provide MapServer consulting and training services > 8) What you think of the experience of a) Installing Mapserver b) > Developing mapserver and c) using mapserver websites > > The reason being, we are interested in developing our own local MapServer > app, so some local contacts/experience would be invaluable. If anyone > feels confident enough to provide training in setting up and developing > with MapServer (and related products) in Australia I'd also like to know. > Who knows, you might score a trip to the fabulous Darling Downs ! > > The second reason is once we get some experience using and developing > MapServer products we'd like to partake in an Australian MapServer Users > Group {A-MUG !} (much like the recent thread suggesting a meeting in the > States) sharing our experiences with peers. > > Please email me directly and I will disribute to the rest of the group. > I'd love to hear from you. > > Regards, > Shaun > > Shaun Kolomeitz > > eBusiness Manager, Toowoomba City Council > > Voice: +61 (0)7 4688 6863 > > Fax: +61 (0)7 4638 3830 > > PO Box 3021 Toowoomba Queensland 4350 Australia 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. > From matt at aruke.com Fri Aug 3 04:17:43 2001 From: matt at aruke.com (Matt Carlson) Date: Fri, 3 Aug 2001 20:17:43 +0900 Subject: [mapserver-users] panning off in 3.3.011? References: Message-ID: <001001c11c0d$ebf55140$0400a8c0@matt> i tried this on the mapserver demo at http://mapserver.gis.umn.edu/ms_demo/demo_init.html . zoom in a little and pick a point on the map. if you keep clicking on the exact same point the map moves around, quite a bit. if i keep centering on the same point, shouldn't the map stay in the same place? i added a 20% correction on my application and i get very close results, but it causes development on my application to be a little funky. for example, i have to make this calculation when i plot points on the map. any idea on what's causing this? thanks matt From ed at topozone.com Fri Aug 3 05:45:47 2001 From: ed at topozone.com (Ed McNierney) Date: Fri, 3 Aug 2001 08:45:47 -0400 Subject: [mapserver-users] panning off in 3.3.011? Message-ID: <13858AA1A74F30419F319ACB66A9D122CFAB@mercator.topozone.com> Matt - The map should stay in the same place if you keep centering on the same point AND that point is at the center of the map. That is, your example should work if the pixel you're clicking on is EXACTLY at the center of the map image. If you click just a bit to the right of center, the map will keep panning just a bit to the right every time. It's very difficult, without a grid, to hit the exact center of a 600x600 pixel image. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Matt Carlson [mailto:matt at aruke.com] Sent: Friday, August 03, 2001 7:18 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] panning off in 3.3.011? i tried this on the mapserver demo at http://mapserver.gis.umn.edu/ms_demo/demo_init.html . zoom in a little and pick a point on the map. if you keep clicking on the exact same point the map moves around, quite a bit. if i keep centering on the same point, shouldn't the map stay in the same place? i added a 20% correction on my application and i get very close results, but it causes development on my application to be a little funky. for example, i have to make this calculation when i plot points on the map. any idea on what's causing this? thanks matt From armin.burger at territoriumonline.com Fri Aug 3 05:58:00 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Fri, 3 Aug 2001 14:58:00 +0200 Subject: [mapserver-users] mapplet without complete refresh Message-ID: <200108031258.OAA25784@efferd.nettz.com> In the mail archive I found in a posting that it should be possible to use the mapplet and avoid a complete refresh of the entire page. Only the applet contents should be updated by zoom actions etc. This should be done with some JavaScript functions. Can anybody tell me how to do this? Is there an example in the gallery collection? My problem is that I want to change parameters like 'mode' or 'zoomdir' via JavaScript (with buttons), and with every complete refresh these parameters are reset to their default values. Maybe there's also another solution writing always back the current parameter settings to the refreshed page. I assume it could be done with some dummy html page containing all necessary form parameters that will be read and written into the refreshed page via javascript. Is this approach feasible? It could probably also be done with frames but I'd prefer a solution without them. Thanks for any hints. Armin -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia _ From teb at mallit.fr.umn.edu Fri Aug 3 07:30:47 2001 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 3 Aug 2001 09:30:47 -0500 (CDT) Subject: [mapserver-users] Mapplet problem - first time user (FWD) Message-ID: <200108031430.JAA24678@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Originating-IP: [213.122.116.162] From: "robert brown" To: mapserver-info at lists.gis.umn.edu Subject: Mapplet problem - first time user Date: Fri, 03 Aug 2001 11:48:18 +0000 Mime-Version: 1.0 X-OriginalArrivalTime: 03 Aug 2001 11:48:18.0152 (UTC) FILETIME=[2FE39E80:01C11C12] Hello all, I am trying to get the Mapplet working and have followed the 'How To' page. However, when I initialise the template file, the user interface appears and I think the applet gets accessed (there are no messages saying that it is not being accessed), but I get this message in the browser message bar: exception: com.ms.security.SecurityExceptionEx [mapplet.init]: cannot access "(my_host_name)": 80 I checked the access settings (I am using PWS on Windows '98), and the folder I have the mapplet.class in is accessible. Does the mapplet work with PWS, or only on a 'real' web server? I would be very grateful for any suggestions on this problem. Thanks for your time. Rob Brown ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at CCRS.NRCan.gc.ca Fri Aug 3 08:00:42 2001 From: Tom.Kralidis at CCRS.NRCan.gc.ca (Kralidis, Tom) Date: Fri, 3 Aug 2001 11:00:42 -0400 Subject: [mapserver-users] mapplet without complete refresh Message-ID: <7CDD7B94357FD5119E800002A537C46E22613D@s5-ccr-r1.ccrs.nrcan.gc.ca> Armin, Using the mapplet's swap() method will do this. However, you must control the coordinate calculations on the client (i.e. JavaScript), as well as other applicable MapServer variables. MapServer's CGI version handles these issues (irregular bounding box fitting to mapwidth/mapheight, etc.). I believe Steve has an application which does this in the Gallery section of the MapServer website, called "LandView", however it's quite a job to implement it. Perhaps a HOWTO document idea? Has anyone else got hints? Thanks ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= > -----Original Message----- > From: Armin Burger [mailto:armin.burger at territoriumonline.com] > Sent: Friday, August 03, 2001 8:58 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] mapplet without complete refresh > > > In the mail archive I found in a posting that it should be > possible to use > the mapplet and avoid a complete refresh of the entire page. > Only the applet > contents should be updated by zoom actions etc. This should > be done with > some JavaScript functions. Can anybody tell me how to do > this? Is there an > example in the gallery collection? > > My problem is that I want to change parameters like 'mode' or > 'zoomdir' via > JavaScript (with buttons), and with every complete refresh > these parameters > are reset to their default values. Maybe there's also another solution > writing always back the current parameter settings to the > refreshed page. I > assume it could be done with some dummy html page containing > all necessary > form parameters that will be read and written into the > refreshed page via > javascript. Is this approach feasible? > > It could probably also be done with frames but I'd prefer a > solution without > them. > > Thanks for any hints. > > Armin > > -- > Armin Burger > Territorium Online > Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia > _ > From Tom.Kralidis at CCRS.NRCan.gc.ca Fri Aug 3 08:31:48 2001 From: Tom.Kralidis at CCRS.NRCan.gc.ca (Kralidis, Tom) Date: Fri, 3 Aug 2001 11:31:48 -0400 Subject: [mapserver-users] Mapplet problem - first time user (FWD) Message-ID: <7CDD7B94357FD5119E800002A537C46E22613F@s5-ccr-r1.ccrs.nrcan.gc.ca> Hi, The "image" parameter tag of the applet contains a hostname which is not kosher. Do you have the right hostname to your box? You can use the "[host]" MapServer variable in your template. Also, if you are accessing remote layers, applets cannot access resources from outside the machine on which they are hosted. Hope this helps. ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= > -----Original Message----- > From: teb [mailto:teb at mallit.fr.umn.edu] > Sent: Friday, August 03, 2001 10:31 AM > To: mapserver-users at lists.gis.umn.edu > Cc: robbrown99 at hotmail.com > Subject: [mapserver-users] Mapplet problem - first time user (FWD) > > > > ------------- Begin Forwarded Message ------------- > > X-Originating-IP: [213.122.116.162] > From: "robert brown" > To: mapserver-info at lists.gis.umn.edu > Subject: Mapplet problem - first time user > Date: Fri, 03 Aug 2001 11:48:18 +0000 > Mime-Version: 1.0 > X-OriginalArrivalTime: 03 Aug 2001 11:48:18.0152 (UTC) > FILETIME=[2FE39E80:01C11C12] > > Hello all, > > I am trying to get the Mapplet working and have followed the 'How > To' page. However, when I initialise the template file, the user > interface appears and I > think the applet gets accessed (there are no messages saying that > it is not being accessed), but I get this message in the browser > message bar: > > > exception: com.ms.security.SecurityExceptionEx [mapplet.init]: > cannot access "(my_host_name)": 80 > > > I checked the access settings (I am using PWS on Windows '98), > and the folder I have the mapplet.class in is accessible. Does > the mapplet work with > PWS, or only on a 'real' web server? I would be very grateful for > any suggestions on this problem. Thanks for your time. > > Rob Brown > > ------------- End Forwarded Message ------------- > > From WMABERN at gwm.sc.edu Fri Aug 3 09:12:17 2001 From: WMABERN at gwm.sc.edu (Mark Abernathy) Date: Fri, 03 Aug 2001 12:12:17 -0400 Subject: [mapserver-users] Multiple LabelItems from dropdown? Message-ID: Hi folks, I have an airport layer with different classes of airports within it determined by a SYMBOL attribute in the shape file. I would like to be able to choose the Attribute to display at run time by feeding the labelitem i.e FAAID or Airport Name from a dropdown list box on my html form. In other words, I want the user to be able to diplay the Airport name if they want, or the FAA Id, etc... chosen from a dropdown. Can this be done? I haven't seen a question on this or an example of this in the archives. Does anyone have an example of doing this and what variable should I be passing to the map file and what is the syntax of that, please? Also, any suggestions on the coding of the html drop down? Thanks for any assistance. Below is a snip of my map file. # Start of AIRPORT Layer LAYER NAME AIRPORT TYPE Point DATA AIRPORT STATUS DEFAULT LABELITEM FAAID CLASSITEM "SYMBOL" CLASS EXPRESSION /1/ NAME "Public Airport" SYMBOL 13 SIZE 11 # legend symbol size COLOR 102 204 000 # legend symbol color - green LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 153 POSITION AUTO SIZE small PARTIALS TRUE BUFFER 2 END END # CLASS -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Fri Aug 3 09:57:20 2001 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 3 Aug 2001 11:57:20 -0500 (CDT) Subject: [mapserver-users] OGR STYLEITEM "AUTO" (FWD) Message-ID: <200108031657.LAA24899@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Originating-IP: [213.122.174.81] From: "robert brown" To: mapserver-info at lists.gis.umn.edu Subject: OGR STYLEITEM "AUTO" Date: Fri, 03 Aug 2001 16:03:07 +0000 Mime-Version: 1.0 X-OriginalArrivalTime: 03 Aug 2001 16:03:07.0625 (UTC) FILETIME=[C9200D90:01C11C35] Hello, I am trying to implement OGR using MapInfo tables. I have managed to get the data read and display it statically. However, when I try the STYLEITEM "AUTO" function, I get the following message: loadLayer(): Unknown identifier. (STYLEITEM):(217) Part of my map file looks like this: LAYER NAME "Contours_tab" TYPE LINE STATUS on CONNECTIONTYPE OGR CONNECTION "C:\Inetpub/wwwroot/Robert_Brown_MScDiss/GI/mapserv/gower/Contour sbounce.tab" STYLEITEM "AUTO" CLASSITEM "Height" CLASS NAME "5m Contours (OGR)" END END Does anyone know if this has anything to do with the MapServer version? I am using 3.4 - does this auto function work with this version? Also, am I right in guessing that the CLASSITEM refers a particular column in the MapInfo table - the HOWTO for OGR does not specify. Thanks for your help, Rob Brown ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckenna at dmsolutions.ca Fri Aug 3 10:25:12 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Fri, 03 Aug 2001 13:25:12 -0400 Subject: [mapserver-users] OGR STYLEITEM "AUTO" (FWD) References: <200108031657.LAA24899@mallit.fr.umn.edu> Message-ID: <3B6ADE78.5040B785@dmsolutions.ca> > Does anyone know if this has anything to do with the MapServer > version? I am using 3.4 - does this auto function work with this > version? > OGR support for Mapserver officially began with version 3.5 as discussed in the introduction of the HOWTO. You should get a recent 3.5 build. > Also, am I right in guessing that > the CLASSITEM refers a particular column in the MapInfo table - > the HOWTO for OGR does not specify. > Yes, CLASSITEM refers to a particular column in the MapInfo table, just like with shapefiles. Have fun. --- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at topozone.com Fri Aug 3 10:54:16 2001 From: ed at topozone.com (Ed McNierney) Date: Fri, 3 Aug 2001 13:54:16 -0400 Subject: [mapserver-users] OGR STYLEITEM "AUTO" (FWD) Message-ID: <13858AA1A74F30419F319ACB66A9D122CFBC@mercator.topozone.com> Rob - You need to be running MapServer 3.5 with OGR support. You can get the Win32 binaries at: http://mapserver.gis.umn.edu/win32binaries.html (look at the bottom of the page for the 3.5 builds). - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: teb [mailto:teb at mallit.fr.umn.edu] Sent: Friday, August 03, 2001 12:57 PM To: mapserver-users at lists.gis.umn.edu Cc: robbrown99 at hotmail.com Subject: [mapserver-users] OGR STYLEITEM "AUTO" (FWD) ------------- Begin Forwarded Message ------------- X-Originating-IP: [213.122.174.81] From: "robert brown" To: mapserver-info at lists.gis.umn.edu Subject: OGR STYLEITEM "AUTO" Date: Fri, 03 Aug 2001 16:03:07 +0000 Mime-Version: 1.0 X-OriginalArrivalTime: 03 Aug 2001 16:03:07.0625 (UTC) FILETIME=[C9200D90:01C11C35] Hello, I am trying to implement OGR using MapInfo tables. I have managed to get the data read and display it statically. However, when I try the STYLEITEM "AUTO" function, I get the following message: loadLayer(): Unknown identifier. (STYLEITEM):(217) Part of my map file looks like this: LAYER NAME "Contours_tab" TYPE LINE STATUS on CONNECTIONTYPE OGR CONNECTION "C:\Inetpub/wwwroot/Robert_Brown_MScDiss/GI/mapserv/gower/Contour sbounce.tab" STYLEITEM "AUTO" CLASSITEM "Height" CLASS NAME "5m Contours (OGR)" END END Does anyone know if this has anything to do with the MapServer version? I am using 3.4 - does this auto function work with this version? Also, am I right in guessing that the CLASSITEM refers a particular column in the MapInfo table - the HOWTO for OGR does not specify. Thanks for your help, Rob Brown ------------- End Forwarded Message ------------- From pkishor at GeoAnalytics.com Fri Aug 3 10:58:59 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 3 Aug 2001 12:58:59 -0500 Subject: [mapserver-users] Multiple LabelItems from dropdown? Message-ID: Hi Mark, The quickest way that come to my mind is... make a separate layer for each of the labels... that is, one airport layer with airport name as labelitem, another airport layer with faa id as label. Turn the status to off for all of them. then use the form to grab the labelitem and turn that specific layer on by setting its status to on. hth. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 -----Original Message----- From: Mark Abernathy [mailto:WMABERN at gwm.sc.edu] Sent: Friday, August 03, 2001 11:12 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Multiple LabelItems from dropdown? Hi folks, I have an airport layer with different classes of airports within it determined by a SYMBOL attribute in the shape file. I would like to be able to choose the Attribute to display at run time by feeding the labelitem i.e FAAID or Airport Name from a dropdown list box on my html form. In other words, I want the user to be able to diplay the Airport name if they want, or the FAA Id, etc... chosen from a dropdown. Can this be done? I haven't seen a question on this or an example of this in the archives. Does anyone have an example of doing this and what variable should I be passing to the map file and what is the syntax of that, please? Also, any suggestions on the coding of the html drop down? Thanks for any assistance. Below is a snip of my map file. # Start of AIRPORT Layer LAYER NAME AIRPORT TYPE Point DATA AIRPORT STATUS DEFAULT LABELITEM FAAID CLASSITEM "SYMBOL" CLASS EXPRESSION /1/ NAME "Public Airport" SYMBOL 13 SIZE 11 # legend symbol size COLOR 102 204 000 # legend symbol color - green LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 153 POSITION AUTO SIZE small PARTIALS TRUE BUFFER 2 END END # CLASS From pramsey at refractions.net Fri Aug 3 11:48:23 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Fri, 03 Aug 2001 11:48:23 -0700 Subject: [mapserver-users] Using PostGIS with MapServer Message-ID: <3B6AF1F7.17EB4F6E@refractions.net> Here is a brief description of a LAYER entry using PostGIS (http://postgis.refractions.net) as a spatial data source: PostGIS provides a SQL interface to large sets of spatial data. The 'CONNECTIONTYPE' is 'postgis'. The spatial data is stored in tables as a column alongside the attribute data. Correspondingly, for MapServer to build a PostGIS layer, it needs to know: - What database to connect to (CONNECTION) - While table to get the data from (DATA) - Which column in the table holds the spatial objects (DATA) - Any extra filtering information used to subset the data to be displayed (FILTER) The database connection is governed by the a 'connection string' which is a standard set of keys and values like this (with the default values in <>): "user= password= dbname= host= port=<5432>" An empty connection string is still valid, and any of the key/value pairs can be omitted. At a minimum you will generall supply the database name and username to connect with. The connection string goes in the 'CONNECTION' parameter of the LAYER object: CONNECTION "user=dbuser dbname=gisdatabase" A complete SQL query which pulls a windowed subset of spatial data from a PostGIS database might look like this: a) SELECT b) geom FROM roads c) WHERE d) geom && 'BOX3D(1423141 1512324 1513214 1652151)'::box3d e) AND f) type = 'highway' When Mapserver pulls data from the database, it constructs this kind of query. Parts a, c and e are just syntactical. Part d is derived from the current extents automatically. Parts b and f are supplied in the map file, in the 'DATA' and 'FILTER' lines of the layer definition repectively. The example below gives a complete layer, with filtering and expressions: note that the expressions in the CLASS objects do *not* use SQL logical syntax, they use Mapserver's internal syntax for describing logical comparisons. LAYER CONNECTIONTYPE postgis NAME "widehighways" # Connect to a remote spatial database CONNECTION "user=dbuser dbname=gisdatabase host=bigserver" # Get the lines from the 'geom' column of the 'roads' table DATA "geom from roads" STATUS ON TYPE LINE # Of the lines in the extents, only render the wide highways FILTER "type = 'highway' and numlanes >= 4" CLASS # Make the superhighways brighter and 2 pixels wide EXPRESSION ([numlanes] >= 6) COLOR 255 22 22 SYMBOL "solid" SIZE 2 END CLASS # All the rest are darker and only 1 pixel wide EXPRESSION ([numlanes] < 6) COLOR 205 92 82 END END -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From teb at mallit.fr.umn.edu Sat Aug 4 05:36:22 2001 From: teb at mallit.fr.umn.edu (teb) Date: Sat, 4 Aug 2001 07:36:22 -0500 (CDT) Subject: [mapserver-users] OGR styles and MapInfo Tables - cannot display style (FWD) Message-ID: <200108041236.HAA25438@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Originating-IP: [213.122.166.43] From: "robert brown" To: mapserver-info at lists.gis.umn.edu Subject: OGR styles and MapInfo Tables - cannot display style Date: Fri, 03 Aug 2001 21:59:47 +0000 Mime-Version: 1.0 X-OriginalArrivalTime: 03 Aug 2001 21:59:47.0303 (UTC) FILETIME=[9C53C770:01C11C67] Hello all, I am using OGR and trying to automatically style features created from MapInfo Tables. The STYLE "AUTO" function works fine, but the resulting features appear black. I tried saving the MapInfo tables with 'style overidden' features (which when reloaded in MapInfo display the saved style), but still no joy. I realise that OGR is still experimental, but in the HOW TO, I read that it should be possible to do this. Part of my map file looks like this (I do not think I am doing anything wrong here): LAYER NAME "Contours_tab" TYPE LINE STATUS OFF CONNECTIONTYPE OGR CONNECTION "C:\Inetpub/wwwroot/Robert_Brown_MScDiss/GI/mapserv/gower/Contour sbounce.tab" STYLEITEM "AUTO" CLASSITEM "Height" CLASS NAME "5m Contours (OGR)" END END Could the answer lie in either the version of MapInfo or MapServer (I am using the 3.5 nightly build with OGR support). Or perhaps it could be something to do with the way in which I am saving the MapInfo table? I would be grateful for any suggestions - I am really stuck after spending several hours trying to figure this out. Thanks for your help Rob ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From vguzman at bigfoot.com Mon Aug 6 08:34:35 2001 From: vguzman at bigfoot.com (Vladimir =?iso-8859-1?Q?Guzm=E1n?=) Date: Mon, 06 Aug 2001 10:34:35 -0500 Subject: [mapserver-users] labels Message-ID: <3B6EB90B.E8169421@bigfoot.com> Hi. I've got a question about labeling features. I would like to draw annotations alligned with the feature, I mean, if I've got a river going from south-west to north-east, I would like to draw the text alligned with the river, and not horizontally as the mapscript does by default. There is a way to do that? Thank you, Vladimir Guzm?n From steve.lime at dnr.state.mn.us Mon Aug 6 08:29:39 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 06 Aug 2001 10:29:39 -0500 Subject: [mapserver-users] Multiple LabelItems from dropdown? Message-ID: Another option would be to change the label item on-the-fly. You can use the CGI variable map_airport_labelitem for that purpose. You only need one layer then. You'll have to write a tiny bit of javascript code to make that control sticky but that's about it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 08/03/01 12:58PM >>> Hi Mark, The quickest way that come to my mind is... make a separate layer for each of the labels... that is, one airport layer with airport name as labelitem, another airport layer with faa id as label. Turn the status to off for all of them. then use the form to grab the labelitem and turn that specific layer on by setting its status to on. hth. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 -----Original Message----- From: Mark Abernathy [mailto:WMABERN at gwm.sc.edu] Sent: Friday, August 03, 2001 11:12 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Multiple LabelItems from dropdown? Hi folks, I have an airport layer with different classes of airports within it determined by a SYMBOL attribute in the shape file. I would like to be able to choose the Attribute to display at run time by feeding the labelitem i.e FAAID or Airport Name from a dropdown list box on my html form. In other words, I want the user to be able to diplay the Airport name if they want, or the FAA Id, etc... chosen from a dropdown. Can this be done? I haven't seen a question on this or an example of this in the archives. Does anyone have an example of doing this and what variable should I be passing to the map file and what is the syntax of that, please? Also, any suggestions on the coding of the html drop down? Thanks for any assistance. Below is a snip of my map file. # Start of AIRPORT Layer LAYER NAME AIRPORT TYPE Point DATA AIRPORT STATUS DEFAULT LABELITEM FAAID CLASSITEM "SYMBOL" CLASS EXPRESSION /1/ NAME "Public Airport" SYMBOL 13 SIZE 11 # legend symbol size COLOR 102 204 000 # legend symbol color - green LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 153 POSITION AUTO SIZE small PARTIALS TRUE BUFFER 2 END END # CLASS From WMABERN at gwm.sc.edu Mon Aug 6 09:05:32 2001 From: WMABERN at gwm.sc.edu (Mark Abernathy) Date: Mon, 06 Aug 2001 12:05:32 -0400 Subject: [mapserver-users] Multiple LabelItems from dropdown? Message-ID: This sounds like a better alternative as a few dozen almost duplicated layers would make the map file very large. Any small examples of the code neccessary to do this would be greatly appreciated as I am somewhat of a newbie in terms of coding, esp. java! Thanks for the input. Mark ~~~~~~~~~ Another option would be to change the label item on-the-fly. You can use the CGI variable map_airport_labelitem for that purpose. You only need one layer then. You'll have to write a tiny bit of javascript code to make that control sticky but that's about it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 08/03/01 12:58PM >>> Hi Mark, The quickest way that come to my mind is... make a separate layer for each of the labels... that is, one airport layer with airport name as labelitem, another airport layer with faa id as label. Turn the status to off for all of them. then use the form to grab the labelitem and turn that specific layer on by setting its status to on. hth. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 -----Original Message----- From: Mark Abernathy [mailto:WMABERN at gwm.sc.edu] Sent: Friday, August 03, 2001 11:12 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Multiple LabelItems from dropdown? Hi folks, I have an airport layer with different classes of airports within it determined by a SYMBOL attribute in the shape file. I would like to be able to choose the Attribute to display at run time by feeding the labelitem i.e FAAID or Airport Name from a dropdown list box on my html form. In other words, I want the user to be able to diplay the Airport name if they want, or the FAA Id, etc... chosen from a dropdown. Can this be done? I haven't seen a question on this or an example of this in the archives. Does anyone have an example of doing this and what variable should I be passing to the map file and what is the syntax of that, please? Also, any suggestions on the coding of the html drop down? Thanks for any assistance. Below is a snip of my map file. # Start of AIRPORT Layer LAYER NAME AIRPORT TYPE Point DATA AIRPORT STATUS DEFAULT LABELITEM FAAID CLASSITEM "SYMBOL" CLASS EXPRESSION /1/ NAME "Public Airport" SYMBOL 13 SIZE 11 # legend symbol size COLOR 102 204 000 # legend symbol color - green LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 153 POSITION AUTO SIZE small PARTIALS TRUE BUFFER 2 END END # CLASS -------------- next part -------------- An HTML attachment was scrubbed... URL: From chuynh at ideorlando.org Mon Aug 6 09:55:35 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Mon, 6 Aug 2001 12:55:35 -0400 Subject: [mapserver-users] Freetype font In-Reply-To: Message-ID: Hi, I'm trying to compile mapserver in VC++ 6.0 and hitting problem in compiling freetype.lib. Well it's actually not a problem per say but i've following Brian Fischer instructions in the listserve archive and I got about 12 warnings and no errors. Is it what it suppose to be? 'cause it starts to puzzle me. I include here the output of VC++ compiler: Compiling... freetype.c ..\..\ttgload.c(784) : warning C4018: '<' : signed/unsigned mismatch ..\..\ttinterp.c(3144) : warning C4018: '!=' : signed/unsigned mismatch ..\..\ttraster.c(2173) : warning C4244: '=' : conversion from 'long ' to 'short ', possible loss of data Ftxcmap.c ftxerr18.c Ftxgasp.c Ftxkern.c ftxpost.c Generating Code... ..\..\ttapi.c(578) : warning C4761: integral size mismatch in argument; conversion supplied ..\..\ttapi.c(601) : warning C4761: integral size mismatch in argument; conversion supplied ..\..\ttgload.c(1195) : warning C4761: integral size mismatch in argument; conversion supplied ..\..\ttobjs.c(575) : warning C4761: integral size mismatch in argument; conversion supplied ..\..\ttinterp.c(5051) : warning C4761: integral size mismatch in argument; conversion supplied ..\..\ttinterp.c(5051) : warning C4761: integral size mismatch in argument; conversion supplied ..\..\ttinterp.c(5066) : warning C4761: integral size mismatch in argument; conversion supplied ..\..\ttinterp.c(5073) : warning C4761: integral size mismatch in argument; conversion supplied ..\..\ttobjs.c(1312) : warning C4761: integral size mismatch in argument; conversion supplied Creating library... freetype.lib - 0 error(s), 12 warning(s) Thanks for your help. -chan From steve.lime at dnr.state.mn.us Mon Aug 6 10:14:58 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 06 Aug 2001 12:14:58 -0500 Subject: [mapserver-users] labels Message-ID: If you've got a linear rendition of your layers it's easy, just set ANGLE AUTO in your label object. Note that you must use truetype fonts for this to work. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Vladimir Guzm?n 08/06/01 10:34AM >>> Hi. I've got a question about labeling features. I would like to draw annotations alligned with the feature, I mean, if I've got a river going from south-west to north-east, I would like to draw the text alligned with the river, and not horizontally as the mapscript does by default. There is a way to do that? Thank you, Vladimir Guzm?n From Chip.Hankley at GASAI.Com Mon Aug 6 11:06:02 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 6 Aug 2001 13:06:02 -0500 Subject: [mapserver-users] labels Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3DF7@postoffice.GASAI.Com> Check this out in the test suite: http://maps.dnr.state.mn.us/mapserver_demos/tests/auto_rotate/test.html Chip Hankley -----Original Message----- From: Vladimir Guzm?n [mailto:vguzman at bigfoot.com] Sent: Monday, August 06, 2001 10:35 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] labels Hi. I've got a question about labeling features. I would like to draw annotations alligned with the feature, I mean, if I've got a river going from south-west to north-east, I would like to draw the text alligned with the river, and not horizontally as the mapscript does by default. There is a way to do that? Thank you, Vladimir Guzm?n From steve.lime at dnr.state.mn.us Mon Aug 6 11:33:40 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 06 Aug 2001 13:33:40 -0500 Subject: [mapserver-users] Multiple LabelItems from dropdown? Message-ID: Basically you either: - write a function run after the page has loaded to set the pulldown correctly or - use javascript to write the pulldown control in the body of the page Using the former would be like: function set_airport_labelitem(list) { var current_value = '[map_airport_labelitem]'; for(var i=0; i tag you'd add onload="set_airport_labelitem(document.formname.map_airport_labelitem)" or something like that. You'd write the HTML for the pulldown as normal with nothing or perhaps a default value selected and the javascript takes care of initializing it. If map_airport_labelitem is passed into MapServer then [map_airport_labelitem] will contain it's value for use in a template. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Mark Abernathy" 08/06/01 11:05AM >>> This sounds like a better alternative as a few dozen almost duplicated layers would make the map file very large. Any small examples of the code neccessary to do this would be greatly appreciated as I am somewhat of a newbie in terms of coding, esp. java! Thanks for the input. Mark ~~~~~~~~~ Another option would be to change the label item on-the-fly. You can use the CGI variable map_airport_labelitem for that purpose. You only need one layer then. You'll have to write a tiny bit of javascript code to make that control sticky but that's about it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 08/03/01 12:58PM >>> Hi Mark, The quickest way that come to my mind is... make a separate layer for each of the labels... that is, one airport layer with airport name as labelitem, another airport layer with faa id as label. Turn the status to off for all of them. then use the form to grab the labelitem and turn that specific layer on by setting its status to on. hth. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 -----Original Message----- From: Mark Abernathy [mailto:WMABERN at gwm.sc.edu] Sent: Friday, August 03, 2001 11:12 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Multiple LabelItems from dropdown? Hi folks, I have an airport layer with different classes of airports within it determined by a SYMBOL attribute in the shape file. I would like to be able to choose the Attribute to display at run time by feeding the labelitem i.e FAAID or Airport Name from a dropdown list box on my html form. In other words, I want the user to be able to diplay the Airport name if they want, or the FAA Id, etc... chosen from a dropdown. Can this be done? I haven't seen a question on this or an example of this in the archives. Does anyone have an example of doing this and what variable should I be passing to the map file and what is the syntax of that, please? Also, any suggestions on the coding of the html drop down? Thanks for any assistance. Below is a snip of my map file. # Start of AIRPORT Layer LAYER NAME AIRPORT TYPE Point DATA AIRPORT STATUS DEFAULT LABELITEM FAAID CLASSITEM "SYMBOL" CLASS EXPRESSION /1/ NAME "Public Airport" SYMBOL 13 SIZE 11 # legend symbol size COLOR 102 204 000 # legend symbol color - green LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 153 POSITION AUTO SIZE small PARTIALS TRUE BUFFER 2 END END # CLASS From mckenna at dmsolutions.ca Mon Aug 6 12:21:24 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Mon, 06 Aug 2001 15:21:24 -0400 Subject: [mapserver-users] OGR Support for TIGER 2000 Data? References: <13858AA1A74F30419F319ACB66A9D122CFA2@mercator.topozone.com> Message-ID: <3B6EEE34.16113E07@dmsolutions.ca> > > I'm trying to use the current (nightly) build of MS 3.5 with OGR > > support. I'm working with the GDAL-1.1.5 distribution and I can't get > > it to read TIGER 2000 data I just downloaded from the Census Bureau's > > site. This is on a Windows 2000 system, and OGR otherwise seems OK > (as > > far as I can tell) - I'm using the current GDAL11.DLL. > > > > Running ogrinfo on a file ("ogrinfo tgr25001.rt1") in the current > > directory reports "Unable to open datasource 'tgr25001.rt1' with the > > following drivers..." (and TIGER is listed). > > Hi Ed, Thanks for reporting this to us. What we've found is that for TIGER files the OGR Connection string is actually: ,. For example: CONNECTIONTYPE OGR CONNECTION "data/tgr25001,5" OGRINFO also takes a directory (e.g. "ogrinfo tgr25001"). A small demo of this is now live at http://www2.dmsolutions.ca/msapps/tig_demo/demo_init.html. There is a link to the demo's map file if you're curious to see its layer definitions. I am making the necessary additions to the OGR HOWTO as we speak, so that should be available very soon. -- Jeff McKenna GIS Specialist DM Solutions Group Inc. Ottawa, Ontario http://www.dmsolutions.ca/ From bitner at gyttja.org Mon Aug 6 12:40:22 2001 From: bitner at gyttja.org (David W Bitner) Date: Mon, 6 Aug 2001 14:40:22 -0500 Subject: [mapserver-users] Interactive Select/Query Message-ID: <003e01c11eaf$a236e060$6f6c2ec0@nohrsc.nws.gov> I am looking to modify our mapserver application so that we can select a number of features and then email the list of selected features back to us. The email part of the problem could be taken care of fairly readily through Javascript using the clients email program. The issue that remains is trying to select out just the features that the user wants to be sent back to us. I am sure that something is going to be have to be done using savequery. If at all possible, it would be great if things could be added to/ taken away from the selection by toggling on the feature either one by one or with a drag box with some sort of visual cue as to what has been selected. Does anyone have any examples or advice on this type of application? Thanks, David ********************************************************************* David William Bitner -- GIS/ Remote Sensing Specialist National Operational Hydrologic Remote Sensing Center National Weather Service, Chanhassen, MN 55317 work: bitner at nws.gov, http://www.nohrsc.nws.gov ********************************************************************* From Timothy.Mackey at agso.gov.au Mon Aug 6 15:34:23 2001 From: Timothy.Mackey at agso.gov.au (Timothy.Mackey at agso.gov.au) Date: Tue, 7 Aug 2001 08:34:23 +1000 Subject: [mapserver-users] Australian MapServer Users Listing Message-ID: <28DE833A781BD511839600D0B772248F4F5196@agsomail1.agso.gov.au> Hi Shaun, 1 timothy.mackey at agso.gov.au 2 Canberra, ACT 3 http://www.agso.gov.au/map 4 yes 5 yes - see URL above 6 many different applications - geology/geophysics etc for all of Australia, database interactivity, etc 7 No. We're government 8a Easy if you know some C programming, unix and use the mailing list 8b Easy if you understand GIS, read the docs and use the mailing list (but it gets harder as the application you're developing gets more complex) 8c Usually easy (and fast) Tim Mackey Internet Applications Manager AGSO - Geoscience Australia e-mail: timothy.mackey at agso.gov.au phone: (02) 6249 9813 fax: (02) 6249 9984 http://www.agso.gov.au/ ABN: 80 091 799 039 ----Original Message----- From: Shaun Kolomeitz [mailto:S.Kolomeitz at toowoomba.qld.gov.au] Sent: Friday, 3 August 2001 10:09 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Australian MapServer Users Listing Appologies to the folk in the rest of the world. I am interested in getting email addresses of MapServer users, physical location and web address (of Mapserver Sites) around Australia. I am interested in the following info - 1) email address (eg fred at nurk.com.au) 2) Location(eg Toowoomba, QLD) 3) Web Address (eg.http://mygreatpapserver.com.au/Maps) 4) If you are just interested in hearing what people have done/are doing with MapServer 5) If you have installed, setup and developed MapServer products 6) What sort of problem did you solve/is the application for ? How long did it take and what resources were involved ? 7) If you provide MapServer consulting and training services 8) What you think of the experience of a) Installing Mapserver b) Developing mapserver and c) using mapserver websites The reason being, we are interested in developing our own local MapServer app, so some local contacts/experience would be invaluable. If anyone feels confident enough to provide training in setting up and developing with MapServer (and related products) in Australia I'd also like to know. Who knows, you might score a trip to the fabulous Darling Downs ! The second reason is once we get some experience using and developing MapServer products we'd like to partake in an Australian MapServer Users Group {A-MUG !} (much like the recent thread suggesting a meeting in the States) sharing our experiences with peers. Please email me directly and I will disribute to the rest of the group. I'd love to hear from you. Regards, Shaun Shaun Kolomeitz eBusiness Manager, Toowoomba City Council Voice: +61 (0)7 4688 6863 Fax: +61 (0)7 4638 3830 PO Box 3021 Toowoomba Queensland 4350 Australia 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. From chuynh at ideorlando.org Mon Aug 6 17:35:40 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Mon, 6 Aug 2001 20:35:40 -0400 Subject: [mapserver-users] Need direction for enhancing Mapserver Message-ID: Hi everyone, First, I'd like to thank all the ones who have helped me with all my puzzle the past weeks. I now have the digital map of world up and running beautifully on my NT server with my own source . I will need a kind soul to direct me enhancing Mapserver to do the following: The interface would be very much like the MapServer Applications: MODIS Download Facility written by TerraSIP and UMN in the gallery link on mapserver webpage. Instead of only the Great Lakes area, I need to have a DGM world map like the Australian worldmap in the gallery. Besides all the zoom-in/zoom-out/pan east-west-north-south-ne-nw-se=sw function, the end-user can draw a rectangular-area/drag-a-box on the window map. The mapserver will grab that coordinate of the lower-left and upper-right corner of the selected area and convert that to lat/long. Once I have this lat/long, it will be fed into my already-written C++ program which produce a "peffile" in ASCII format (readable by notepad/wordpad) responsive to user selected area and avaliable for download from the webbrowser. Now, having said that, does mapserver support all that I want to do? If not, what is the best way I can tackle this? Is it worth of my time to re-compile mapserver, play with it and see what I can do with it and add my part into it? All suggestions and hints are appreciated. Thanks in advance. -chan From teb at mallit.fr.umn.edu Mon Aug 6 18:58:44 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Mon, 6 Aug 2001 20:58:44 -0500 (CDT) Subject: [mapserver-users] Arcview Avenue utility (fwd) Message-ID: <200108070158.UAA26234@mallit.fr.umn.edu> From psaravanakumar at uwc.ac.za Mon Aug 6 08:57:33 2001 Received: from lists.gis.umn.edu (lists.gis.umn.edu [128.101.73.109]) by mallit.fr.umn.edu (8.9.3+Sun/8.9.3) with ESMTP id IAA25899 for ; Mon, 6 Aug 2001 08:57:33 -0500 (CDT) Received: from uwcunx.uwc.ac.za (uwcunx.uwc.ac.za [196.11.235.8]) by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with SMTP id IAA15011 for ; Mon, 6 Aug 2001 08:59:12 -0500 (CDT) Received: (qmail 11779 invoked from network); 6 Aug 2001 18:01:48 -0000 Received: (ofmipd 192.102.9.71); 6 Aug 2001 18:01:26 -0000 Received: from UWC-Message_Server by Services-02.uwc.ac.za with Novell_GroupWise; Mon, 06 Aug 2001 15:56:10 +0200 Date: 6 Aug 2001 15:55:30 +0200 Message-Id: From: "Paramasivam Saravanakumar" To: mapserver-info at lists.gis.umn.edu X-Mailer: Novell GroupWise 5.5.4 Subject: Arcview Avenue utility Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Length: 974 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mallit.fr.umn.edu id IAA25899 Hi there, I am new to the Mapserver users/community. I have downloaded mapser and its demo and instlled sucessfully. It is working fine. I want to use my own data instead of demo data. I have downloaded the Ross Arcview utility from the user contributed utilities section. I don't know how to setup the defaults value in the mapserver avenue project. I have tried various configuration but, it didn't work. I use Windows NT 4.0 with service pack 6a, My webserver root is d:/inetpub/wwwroot Mapserver.exe is d:/inetpub/wwwroot/cgi-bin/ My tmp is d:/inetpub/wwwroot/ Please help me if anybody know how to configure the avenue utility for NT system. You help is really appreciated. Thank you very much. Regards P.Saravanakumar Post-Doctoral Fellow Coastal Management and Spatial Analyst Specialist International Ocean Institute of Southern Africa Botany Department University of the Western Cape Bellville 7535 South Africa Ph: +27 21 9593408 Email : kumar at uwc.ac.za From mapserver at cubok.com Mon Aug 6 22:40:08 2001 From: mapserver at cubok.com (Richard Ford) Date: Tue, 7 Aug 2001 15:40:08 +1000 Subject: [mapserver-users] Compilation/ESRI SHapeLIB Message-ID: <00a401c11f03$6c27dfc0$01bca8c0@Peach> G'Day All, I am experimenting with Mapserver as a way of making some models built with ArcView and ArcINFO viewable and interactable on the web. I have compiled the mapserver code ok and it works as a CGI process. However I have been trying to compile the PROJ libraries as they are needed by the shaplib libraries. And I need the shapelib libraries as they are what allow me to load esri shapefils. Correct me if I am wrong. Now when I ./configure I point to freetype and libtiff and they are found and work OK. I also have compiled and installed the PROJ libraries. Now the ./.configure won't work if it can't find the header and library files. I point to the right directory and the ./configure works as does the compile. However when I try and run it in Apache I get: ********************************************************************* Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost.localdomain and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.20 Server at localhost Port 80 *********************************************************************** The server log has this: *********************************************************************** mapserv: error while loading shared libraries: libproj.so.0: cannot load shared object file: No such file or directory mapserv: error while loading shared libraries: libproj.so.0: cannot load shared object file: No such file or directory [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of script headers: /usr/local/apache/cgi-bin/mapserv [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of script headers: /usr/local/apache/cgi-bin/mapserv ************************************************************************ I take it that the libraries can't be found or loaded? With PROJ disabled the mapserv runs fine. The libraries and all their symbolic links have the correct read and execute permissions. So why or what is wrong? :) As a matter of side interest. When I compiled and installed the PROJ library, the shapelib RPM would not want to install as it had a dependency problem finding the require PROJ libraries. However if I installed the PROJ libraries from an RPM and not from source, the shapelib RPM would install OK. As would the compilation of mapserver. However I would still get the above apache error? Is this a libtool or some other problem? >From what I have seen MapServer is the business.... I am keen to get my clients ArcView stuff on the web and I hope I can with MapServer! Cheers, Richard. From sylvain.speh at cemagref.fr Mon Aug 6 23:16:28 2001 From: sylvain.speh at cemagref.fr (Speh Sylvain) Date: Tue, 7 Aug 2001 08:16:28 +0200 Subject: [mapserver-users] How to color a polygon depending on one of its DBF attribute ? Message-ID: Hi list, Whichever is the map I'm looking at, they are all made on the same pattern : one class --> one color. I wonder how to get a layer whose polygons are filled with the color of an attribute or from a computed expression. Imagine there is a population layer ( 100 citizens for the less populous polygon , 10,000 for the more ). How can I color them like COLOR 43 196 x with x = 0 for 100 and x = 255 for 10,000, or else ( like/dark polygon ) ? Thanks for your advices. From mckenna at dmsolutions.ca Tue Aug 7 06:01:05 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Tue, 07 Aug 2001 09:01:05 -0400 Subject: [mapserver-users] OGR Support for TIGER 2000 Data? References: <13858AA1A74F30419F319ACB66A9D122CFE5@mercator.topozone.com> Message-ID: <3B6FE691.FABC6F34@dmsolutions.ca> > > Thank for figuring that out! However, I still can't get it to work. > I'm running the OGR tools I built (under Windows 2000) in the GDAL 1.1.5 > distribution. OGRINFO still refuses to recognize the data set. Are you > using a different OGR? > Hi Ed, I just checked out the latest CVS version of GDAL (v1.1.5) and built it (under Windows NT), and OGRINFO works fine for me. Hmm. I placed OGRINFO into the directory where the TIGER data resides (i.e. placed TGR25001.RT1, TGR25001.RT2... in the same directory as OGRINFO). The syntax I used for OGRINFO is: $ ogrinfo full/path/to/data This worked fine for me. Maybe someone else has some ideas? -- Jeff McKenna GIS Specialist DM Solutions Group Inc. Ottawa, Ontario http://www.dmsolutions.ca/ From mckenna at dmsolutions.ca Tue Aug 7 06:16:15 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Tue, 07 Aug 2001 09:16:15 -0400 Subject: [mapserver-users] Re: OGR References: Message-ID: <3B6FEA1F.FD3641D9@dmsolutions.ca> > > Thanks for the information, I have now installed version 3.5 - works > fine. I still cannot get the automatic styling to work though - this > time the features do actually load, but no style information is pulled > from the MapInfo table - I have made sure that the features have been > given style information in MapInfo with 'style override'. I realise > that OGR isn't fully working yet, but is there only a specific subset > of style information that is supported by OGR for MapInfo files (e.g. > colour, pattern, software version???). I would be very grateful if you > could shed some light on this - my MSc GIS dissertation is due very > shortly! Thanks for your time -sorry if I have bothered you. > Hi Rob, I am simply a user and documentation guy for OGR & Mapserver, so I can't answer your "style information" question (maybe others can?). However, if you can send me some of your data I will take a look at it with you. -- Jeff McKenna GIS Specialist DM Solutions Group Inc. Ottawa, Ontario http://www.dmsolutions.ca/ From pkishor at GeoAnalytics.com Tue Aug 7 06:36:42 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 7 Aug 2001 08:36:42 -0500 Subject: [mapserver-users] How to color a polygon depending on one of its DBF attribute ? In-Reply-To: Message-ID: <200108071338.IAA22667@lists.gis.umn.edu> On Tuesday, August 7, 2001, at 01:16 AM, Speh Sylvain wrote: > Hi list, > > Whichever is the map I'm looking at, they are all made on the same > pattern : > one class --> one color. > I wonder how to get a layer whose polygons are filled with the color of > an > attribute or from a computed expression. > Imagine there is a population layer ( 100 citizens for the less populous > polygon , 10,000 for the more ). > > How can I color them like > COLOR 43 196 x > with x = 0 for 100 and x = 255 for 10,000, or else ( like/dark > polygon ) ? > > Well, you will still have one class --> one color. However, no one is stopping you from breaking the layer into multiple classes. So, you have a pop layer, and you have classes like so (check the correct syntax)... classitem pop class name 0-100 expression /0-100/ # check the syntax for reg exps, or use sql kinda syntax color firstcolor class name 100-199 expression /100-199/ color secondcolor class name 200-299 expression /200-299/ color thirdcolor you get the gist. as a bonus, if you are drawing the legend, you will also get a nicely formatted, labeled legend. have fun, pk/ From jimburnett at ntelos.net Tue Aug 7 07:47:59 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Tue, 7 Aug 2001 10:47:59 -0400 Subject: [mapserver-users] Zooming and Panning using PHP/MapScript References: <005301c10a57$c9d7cc40$8200a8c0@nichebox1> Message-ID: <004a01c11f4f$f39e7490$2f01a8c0@morpheus> What versions of GD and mapserver should this run properly under? I can get the initial map to come up when I first goto the script, then when I click or try to change to another map file i have, it show the wonderful red "X". thanks! -jim ----- Original Message ----- From: "Rob Martinson" To: "'Hossam Abdel Sayed'" ; Sent: Wednesday, July 11, 2001 6:21 PM Subject: RE: [mapserver-users] Zooming and Panning using PHP/MapScript > Hossam, > > I have a small sample where I've been playing with functionality at: > > http://maps.nichebox.com/ This uses PHP4 sessions to maintain current > and max extents. > > Source for both files used can be found at: > http://maps.nichebox.com/mapserver/ > > It's small and simple, but it works. Hope this helps. > > Also, I'll be putting up a public QA database somewhere on this site > later this afternoon. Hopefully we can get some good user-to-user Q & A > going for specific implementation problems and ideas. Will post that URL > shortly. > > Rob Martinson > Nichebox - http://www.nichebox.com > Development - http://dev.nichebox.com > > > -----Original Message----- > > From: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > > Hossam Abdel Sayed > > Sent: Wednesday, July 11, 2001 10:46 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] Zooming and Panning using PHP/MapScript > > > > > > Hi Folks > > > > I'm trying to use PHP MapScript to zoom in/out and pan > > through the map by clicking on the map image. I gues that's > > pretty basic, but I'm still new to PHP/MapScript. > > > > I'm looking to basic zooming in/out or panning, pretty > > similar to the traditional Mapserver demo. > > > > I'll apreciate your help > > > > Hossam > > > > > > > > > > > > > > > > > > From jimburnett at ntelos.net Tue Aug 7 07:52:45 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Tue, 7 Aug 2001 10:52:45 -0400 Subject: [mapserver-users] seg faults Message-ID: <005501c11f50$9e448560$2f01a8c0@morpheus> I am getting these segmentation faults every now and then, when zooming, or panning. [Tue Aug 7 10:49:35 2001] [notice] child pid 18273 exit signal Segmentation fault (11) [Tue Aug 7 10:51:00 2001] [notice] child pid 18276 exit signal Segmentation fault (11) -jim- -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Tue Aug 7 07:52:12 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 07 Aug 2001 09:52:12 -0500 Subject: [mapserver-users] How to color a polygon depending on one of its DBF attribute ? Message-ID: Just to clarify, the syntax below is kinda wrong. Regex is best for strings not ranges, use logical expressions, eg. CLASS COLOR 43 196 0 EXPRESSION ([POP] >= 0 AND [POP] < 10000) END CLASS COLOR 43 196 255 EXPRESSION ([POP] >= 10000) END Of course there are other options depend on exactly what is in the population column (i.e. actual population totals vs a population class). Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 08/07/01 08:36AM >>> On Tuesday, August 7, 2001, at 01:16 AM, Speh Sylvain wrote: > Hi list, > > Whichever is the map I'm looking at, they are all made on the same > pattern : > one class --> one color. > I wonder how to get a layer whose polygons are filled with the color of > an > attribute or from a computed expression. > Imagine there is a population layer ( 100 citizens for the less populous > polygon , 10,000 for the more ). > > How can I color them like > COLOR 43 196 x > with x = 0 for 100 and x = 255 for 10,000, or else ( like/dark > polygon ) ? > > Well, you will still have one class --> one color. However, no one is stopping you from breaking the layer into multiple classes. So, you have a pop layer, and you have classes like so (check the correct syntax)... classitem pop class name 0-100 expression /0-100/ # check the syntax for reg exps, or use sql kinda syntax color firstcolor class name 100-199 expression /100-199/ color secondcolor class name 200-299 expression /200-299/ color thirdcolor you get the gist. as a bonus, if you are drawing the legend, you will also get a nicely formatted, labeled legend. have fun, pk/ From steve.lime at dnr.state.mn.us Tue Aug 7 07:54:37 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 07 Aug 2001 09:54:37 -0500 Subject: [mapserver-users] seg faults Message-ID: Assuming these are in the webserver logs these are webserver errors not mapserver errors. If the cgi version seg faults you'll see a 500 server error in the error log, not this. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jim Burnett" 08/07/01 09:52AM >>> I am getting these segmentation faults every now and then, when zooming, or panning. [Tue Aug 7 10:49:35 2001] [notice] child pid 18273 exit signal Segmentation fault (11) [Tue Aug 7 10:51:00 2001] [notice] child pid 18276 exit signal Segmentation fault (11) -jim- From jimburnett at ntelos.net Tue Aug 7 08:02:43 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Tue, 7 Aug 2001 11:02:43 -0400 Subject: [mapserver-users] seg faults References: Message-ID: <005c01c11f52$029eb7a0$2f01a8c0@morpheus> This is PHP Mapscript. And its just every now and then. Not consistent, ----- Original Message ----- From: "Stephen Lime" To: ; Sent: Tuesday, August 07, 2001 10:54 AM Subject: Re: [mapserver-users] seg faults Assuming these are in the webserver logs these are webserver errors not mapserver errors. If the cgi version seg faults you'll see a 500 server error in the error log, not this. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jim Burnett" 08/07/01 09:52AM >>> I am getting these segmentation faults every now and then, when zooming, or panning. [Tue Aug 7 10:49:35 2001] [notice] child pid 18273 exit signal Segmentation fault (11) [Tue Aug 7 10:51:00 2001] [notice] child pid 18276 exit signal Segmentation fault (11) -jim- From steve.lime at dnr.state.mn.us Tue Aug 7 07:59:18 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 07 Aug 2001 09:59:18 -0500 Subject: [mapserver-users] Compilation/ESRI SHapeLIB Message-ID: The mapserver binary can't find the shared libs it needs. The easiest way to fix this is to use the Apache directive SetEnv to set an environment variable called LD_LIBRARY_PATH. Add something like: SetEnv LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/lib:..other dirs with shared libraries... to httpd.conf and restart. Note that you don't need shapelib, there's a bastardized version already included in the distribution. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Richard Ford" 08/07/01 12:40AM >>> G'Day All, I am experimenting with Mapserver as a way of making some models built with ArcView and ArcINFO viewable and interactable on the web. I have compiled the mapserver code ok and it works as a CGI process. However I have been trying to compile the PROJ libraries as they are needed by the shaplib libraries. And I need the shapelib libraries as they are what allow me to load esri shapefils. Correct me if I am wrong. Now when I ./configure I point to freetype and libtiff and they are found and work OK. I also have compiled and installed the PROJ libraries. Now the ./.configure won't work if it can't find the header and library files. I point to the right directory and the ./configure works as does the compile. However when I try and run it in Apache I get: ********************************************************************* Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost.localdomain and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.20 Server at localhost Port 80 *********************************************************************** The server log has this: *********************************************************************** mapserv: error while loading shared libraries: libproj.so.0: cannot load shared object file: No such file or directory mapserv: error while loading shared libraries: libproj.so.0: cannot load shared object file: No such file or directory [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of script headers: /usr/local/apache/cgi-bin/mapserv [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of script headers: /usr/local/apache/cgi-bin/mapserv ************************************************************************ I take it that the libraries can't be found or loaded? With PROJ disabled the mapserv runs fine. The libraries and all their symbolic links have the correct read and execute permissions. So why or what is wrong? :) As a matter of side interest. When I compiled and installed the PROJ library, the shapelib RPM would not want to install as it had a dependency problem finding the require PROJ libraries. However if I installed the PROJ libraries from an RPM and not from source, the shapelib RPM would install OK. As would the compilation of mapserver. However I would still get the above apache error? Is this a libtool or some other problem? >From what I have seen MapServer is the business.... I am keen to get my clients ArcView stuff on the web and I hope I can with MapServer! Cheers, Richard. From mapserver at cubok.com Tue Aug 7 08:42:45 2001 From: mapserver at cubok.com (Richard Ford) Date: Wed, 8 Aug 2001 01:42:45 +1000 Subject: [mapserver-users] Compilation/ESRI SHapeLIB References: Message-ID: <025101c11f57$9bb28bb0$01bca8c0@Peach> I did do the ld.so.conf addition, I did not know about the /sbin/ldcong command. As Stephen pointed out there is shape file support built in. Will I still need PROJ. What else is PROJ used for and should I really consider it a mandatory library? Cheers, Richard. ----- Original Message ----- From: "Joel Schlagel" To: Sent: Wednesday, August 08, 2001 1:33 AM Subject: Re: [mapserver-users] Compilation/ESRI SHapeLIB > > > proj by default is added to /usr/local/lub, which is not necessarily in > default library search path, so you could add > > /usr/local/lib > > to the file > > /etc/ld.so.conf > > and run > > /sbin/ldconfig > > > joel > > > > ------------------------------------------------------------- > Joel.D.Schlagel at usace.army.mil > 603-646-4387 > ------------------------------------------------------------- > > > On Tue, 7 Aug 2001, Stephen Lime wrote: > > > The mapserver binary can't find the shared libs it needs. The easiest way to > > fix this is to use the Apache directive SetEnv to set an environment variable > > called LD_LIBRARY_PATH. Add something like: > > > > SetEnv LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/lib:..other dirs with shared libraries... > > > > to httpd.conf and restart. > > > > Note that you don't need shapelib, there's a bastardized version already included > > in the distribution. > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> "Richard Ford" 08/07/01 12:40AM >>> > > G'Day All, > > > > I am experimenting with Mapserver as a way of making some models built with > > ArcView and ArcINFO viewable and interactable on the web. > > > > I have compiled the mapserver code ok and it works as a CGI process. > > However I have been trying to compile the PROJ libraries as they are needed > > by the shaplib libraries. > > > > And I need the shapelib libraries as they are what allow me to load esri > > shapefils. Correct me if I am wrong. > > > > Now when I ./configure I point to freetype and libtiff and they are found > > and work OK. > > > > I also have compiled and installed the PROJ libraries. > > > > Now the ./.configure won't work if it can't find the header and library > > files. I point to the right directory and the ./configure works as does the > > compile. > > > > However when I try and run it in Apache I get: > > > > ********************************************************************* > > Internal Server Error > > The server encountered an internal error or misconfiguration and was unable > > to complete your request. > > Please contact the server administrator, root at localhost.localdomain and > > inform them of the time the error occurred, and anything you might have done > > that may have caused the error. > > > > More information about this error may be available in the server error log. > > > > > > Apache/1.3.20 Server at localhost Port 80 > > > > *********************************************************************** > > > > The server log has this: > > > > *********************************************************************** > > > > mapserv: error while loading shared libraries: libproj.so.0: cannot load > > shared object file: No such file or directory > > mapserv: error while loading shared libraries: libproj.so.0: cannot load > > shared object file: No such file or directory > > [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of > > script headers: /usr/local/apache/cgi-bin/mapserv > > [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of > > script headers: /usr/local/apache/cgi-bin/mapserv > > > > ************************************************************************ > > > > I take it that the libraries can't be found or loaded? With PROJ disabled > > the mapserv runs fine. > > > > The libraries and all their symbolic links have the correct read and execute > > permissions. > > > > So why or what is wrong? :) > > > > As a matter of side interest. When I compiled and installed the PROJ > > library, the shapelib RPM would not want to install as it had a dependency > > problem finding the require PROJ libraries. > > > > However if I installed the PROJ libraries from an RPM and not from source, > > the shapelib RPM would install OK. As would the compilation of mapserver. > > However I would still get the above apache error? > > > > Is this a libtool or some other problem? > > > > From what I have seen MapServer is the business.... I am keen to get my > > clients ArcView stuff on the web and I hope I can with MapServer! > > > > Cheers, > > Richard. > > > > > > > > > > > > > > From mapserver at cubok.com Tue Aug 7 08:41:17 2001 From: mapserver at cubok.com (Richard Ford) Date: Wed, 8 Aug 2001 01:41:17 +1000 Subject: [mapserver-users] Compilation/ESRI SHapeLIB References: Message-ID: <024b01c11f57$66f17300$01bca8c0@Peach> What do you mean by bastardised?? Is it limited or does it just suffice for basic reading and writing? Cheers, Richard. ----- Original Message ----- From: "Stephen Lime" To: ; Sent: Wednesday, August 08, 2001 12:59 AM Subject: Re: [mapserver-users] Compilation/ESRI SHapeLIB The mapserver binary can't find the shared libs it needs. The easiest way to fix this is to use the Apache directive SetEnv to set an environment variable called LD_LIBRARY_PATH. Add something like: SetEnv LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/lib:..other dirs with shared libraries... to httpd.conf and restart. Note that you don't need shapelib, there's a bastardized version already included in the distribution. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Richard Ford" 08/07/01 12:40AM >>> G'Day All, I am experimenting with Mapserver as a way of making some models built with ArcView and ArcINFO viewable and interactable on the web. I have compiled the mapserver code ok and it works as a CGI process. However I have been trying to compile the PROJ libraries as they are needed by the shaplib libraries. And I need the shapelib libraries as they are what allow me to load esri shapefils. Correct me if I am wrong. Now when I ./configure I point to freetype and libtiff and they are found and work OK. I also have compiled and installed the PROJ libraries. Now the ./.configure won't work if it can't find the header and library files. I point to the right directory and the ./configure works as does the compile. However when I try and run it in Apache I get: ********************************************************************* Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost.localdomain and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.20 Server at localhost Port 80 *********************************************************************** The server log has this: *********************************************************************** mapserv: error while loading shared libraries: libproj.so.0: cannot load shared object file: No such file or directory mapserv: error while loading shared libraries: libproj.so.0: cannot load shared object file: No such file or directory [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of script headers: /usr/local/apache/cgi-bin/mapserv [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of script headers: /usr/local/apache/cgi-bin/mapserv ************************************************************************ I take it that the libraries can't be found or loaded? With PROJ disabled the mapserv runs fine. The libraries and all their symbolic links have the correct read and execute permissions. So why or what is wrong? :) As a matter of side interest. When I compiled and installed the PROJ library, the shapelib RPM would not want to install as it had a dependency problem finding the require PROJ libraries. However if I installed the PROJ libraries from an RPM and not from source, the shapelib RPM would install OK. As would the compilation of mapserver. However I would still get the above apache error? Is this a libtool or some other problem? >From what I have seen MapServer is the business.... I am keen to get my clients ArcView stuff on the web and I hope I can with MapServer! Cheers, Richard. From morissette at dmsolutions.ca Tue Aug 7 08:43:07 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 07 Aug 2001 11:43:07 -0400 Subject: [mapserver-users] Re: OGR References: <3B6FEA1F.FD3641D9@dmsolutions.ca> Message-ID: <3B700C8B.8FC8FEBD@dmsolutions.ca> > > > > Thanks for the information, I have now installed version 3.5 - works > > fine. I still cannot get the automatic styling to work though - this > > time the features do actually load, but no style information is pulled > > from the MapInfo table - I have made sure that the features have been > > given style information in MapInfo with 'style override'. What's this "style override" thing? I never heard of it... and it may well be the source of your problems. You have nothing special to do to your TAB files to get their colors to load in MapServer... colors and styles are written to the TAB dataset by default in MapInfo. > I realise > > that OGR isn't fully working yet, but is there only a specific subset > > of style information that is supported by OGR for MapInfo files (e.g. > > colour, pattern, software version???). OGR is fully working... I mean there is always room for improvement but all the most common stuff is supported. See the section "Mapping of OGR Style Info to the Mapserver CLASS Members" in the OGR-HOWTO for the complete list of what's supported with the STYLEITEM "AUTO": http://mapserver.gis.umn.edu/doc/ogr-howto.html#d35e366 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Aug 7 08:52:18 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 7 Aug 2001 11:52:18 -0400 Subject: [mapserver-users] seg faults Message-ID: <7CDD7B94357FD5119E800002A537C46E22FB51@s5-ccr-r1.ccrs.nrcan.gc.ca> I'll assume this is with PHP/MapScript ? I used to get those as well. I noticed them when I was doing load testing on PHP/MapScript, and found that every once in a while one of the processes would segfault. Never really tracked down the problem, although it was suggested it may be SWIG related ... J.F. > ---------- > From: Jim Burnett[SMTP:jimburnett at ntelos.net] > Sent: Tuesday, August 07, 2001 10:52 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] seg faults > > I am getting these segmentation faults every now and then, when zooming, > or panning. > > [Tue Aug 7 10:49:35 2001] [notice] child pid 18273 exit signal > Segmentation fault (11) > [Tue Aug 7 10:51:00 2001] [notice] child pid 18276 exit signal > Segmentation fault (11) > > > -jim- > > From morissette at dmsolutions.ca Tue Aug 7 08:55:53 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 07 Aug 2001 11:55:53 -0400 Subject: [mapserver-users] seg faults References: <005c01c11f52$029eb7a0$2f01a8c0@morpheus> Message-ID: <3B700F89.3669B3BA@dmsolutions.ca> Jim Burnett wrote: > > This is PHP Mapscript. > And its just every now and then. Not consistent, > Did you check FAQ #4.5 and 4.6? http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html#4.5 If that's not your case then please provide more details: - OS - Web Server - PHP Version - PHP installed as CGI or as a module? - MapServer configure options - Do you dl() php_mapscript or load it in an 'extension' line in php.ini? - Can you try to isolate the location of the crash using print statements in your script? i.e. Which PHP call causes the crash. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Aug 7 09:01:12 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 07 Aug 2001 12:01:12 -0400 Subject: [mapserver-users] Compilation/ESRI SHapeLIB References: Message-ID: <3B7010C8.A16FB8AA@dmsolutions.ca> Stephen Lime wrote: > > The mapserver binary can't find the shared libs it needs. The easiest way to > fix this is to use the Apache directive SetEnv to set an environment variable > called LD_LIBRARY_PATH. Add something like: > > SetEnv LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/lib:..other dirs with shared libraries... > > to httpd.conf and restart. > See also http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html#4.2 It's about PHP MapScript but it applies to your case as well. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Tue Aug 7 09:10:30 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 07 Aug 2001 11:10:30 -0500 Subject: [mapserver-users] Compilation/ESRI SHapeLIB Message-ID: It's a modified version of Franks original version. It reads directly into MapServer shapeObj structs and has a few other functions added to support MapScript. It doesn't support the 3D shapes that shapelib 2.0 does. We will probably add support for measured shapes at some time. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Richard Ford" 08/07/01 10:41AM >>> What do you mean by bastardised?? Is it limited or does it just suffice for basic reading and writing? Cheers, Richard. ----- Original Message ----- From: "Stephen Lime" To: ; Sent: Wednesday, August 08, 2001 12:59 AM Subject: Re: [mapserver-users] Compilation/ESRI SHapeLIB The mapserver binary can't find the shared libs it needs. The easiest way to fix this is to use the Apache directive SetEnv to set an environment variable called LD_LIBRARY_PATH. Add something like: SetEnv LD_LIBRARY_PATH /lib:/usr/lib:/usr/local/lib:..other dirs with shared libraries... to httpd.conf and restart. Note that you don't need shapelib, there's a bastardized version already included in the distribution. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Richard Ford" 08/07/01 12:40AM >>> G'Day All, I am experimenting with Mapserver as a way of making some models built with ArcView and ArcINFO viewable and interactable on the web. I have compiled the mapserver code ok and it works as a CGI process. However I have been trying to compile the PROJ libraries as they are needed by the shaplib libraries. And I need the shapelib libraries as they are what allow me to load esri shapefils. Correct me if I am wrong. Now when I ./configure I point to freetype and libtiff and they are found and work OK. I also have compiled and installed the PROJ libraries. Now the ./.configure won't work if it can't find the header and library files. I point to the right directory and the ./configure works as does the compile. However when I try and run it in Apache I get: ********************************************************************* Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost.localdomain and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.20 Server at localhost Port 80 *********************************************************************** The server log has this: *********************************************************************** mapserv: error while loading shared libraries: libproj.so.0: cannot load shared object file: No such file or directory mapserv: error while loading shared libraries: libproj.so.0: cannot load shared object file: No such file or directory [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of script headers: /usr/local/apache/cgi-bin/mapserv [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of script headers: /usr/local/apache/cgi-bin/mapserv ************************************************************************ I take it that the libraries can't be found or loaded? With PROJ disabled the mapserv runs fine. The libraries and all their symbolic links have the correct read and execute permissions. So why or what is wrong? :) As a matter of side interest. When I compiled and installed the PROJ library, the shapelib RPM would not want to install as it had a dependency problem finding the require PROJ libraries. However if I installed the PROJ libraries from an RPM and not from source, the shapelib RPM would install OK. As would the compilation of mapserver. However I would still get the above apache error? Is this a libtool or some other problem? >From what I have seen MapServer is the business.... I am keen to get my clients ArcView stuff on the web and I hope I can with MapServer! Cheers, Richard. From v at w.cl Tue Aug 7 09:12:34 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Tue, 7 Aug 2001 12:12:34 -0400 (CLT) Subject: [mapserver-users] Compilation/ESRI SHapeLIB In-Reply-To: <00a401c11f03$6c27dfc0$01bca8c0@Peach> from "Richard Ford" at Aug 07, 2001 03:40:08 PM Message-ID: <200108071612.f77GCYO09408@antonia.nn.cl> > *********************************************************************** > > mapserv: error while loading shared libraries: libproj.so.0: cannot load > shared object file: No such file or directory > mapserv: error while loading shared libraries: libproj.so.0: cannot load > shared object file: No such file or directory > [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of > script headers: /usr/local/apache/cgi-bin/mapserv > [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of > script headers: /usr/local/apache/cgi-bin/mapserv > > ************************************************************************ > > I take it that the libraries can't be found or loaded? With PROJ disabled > the mapserv runs fine. > So why or what is wrong? :) Maybe you need to add the directory where libproj is to /etc/ld.conf and run ldconfig afterwards. -- V. From warmerdam at pobox.com Tue Aug 7 10:14:56 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 07 Aug 2001 13:14:56 -0400 Subject: [mapserver-users] Compilation/ESRI SHapeLIB References: <024b01c11f57$66f17300$01bca8c0@Peach> Message-ID: <3B702210.92BD181C@pobox.com> Richard Ford wrote: > > What do you mean by bastardised?? > > Is it limited or does it just suffice for basic reading and writing? Richard, Steve has optimized the shapelib code, partly by having it directly transform the incoming data into the internal format for MapServer instead of going through the intermediate format used by shapelib. It should read pretty much anything that the regular shapelib reads, but won't include some of the latest shapelib tweaks. > As Stephen pointed out there is shape file support built in. Will I still > need PROJ. What else is PROJ used for and should I really consider it a > mandatory library? If you have all your data into one coordinate system ... the coordinate system you want to serve data in, then you don't need PROJ.4 libraries for MapServer. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.lime at dnr.state.mn.us Tue Aug 7 10:25:49 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 07 Aug 2001 12:25:49 -0500 Subject: [mapserver-users] mapplet without complete refresh Message-ID: Actually the client must handle all aspects of the coordinate calculations, including box fitting. Basically you want to hand a "perfect" url off to the mapping engine so that no adjustment is necessary. I've got a couple examples running: http://maps.dnr.state.mn.us/landview http://maps.dnr.state.mn.us/compass/view_java.html Both of these use the mapplet and a javascript library I wrote to do the coordinate management and so on. View and save the source in Netscape of either of the above applications to study how this is done. The javascript and java code can be nabbed at: http://maps.dnr.state.mn.us/javascript http://maps.dnr.state.mn.us/java/mapplet The core code is straight forward, it's making pan/zoom/info buttons behave that make things messy. There is no howto for this, not yet anyway (authors?) but I'd be glad to answer specific questions. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Kralidis, Tom" 08/03/01 10:00AM >>> Armin, Using the mapplet's swap() method will do this. However, you must control the coordinate calculations on the client (i.e. JavaScript), as well as other applicable MapServer variables. MapServer's CGI version handles these issues (irregular bounding box fitting to mapwidth/mapheight, etc.). I believe Steve has an application which does this in the Gallery section of the MapServer website, called "LandView", however it's quite a job to implement it. Perhaps a HOWTO document idea? Has anyone else got hints? Thanks ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= > -----Original Message----- > From: Armin Burger [mailto:armin.burger at territoriumonline.com] > Sent: Friday, August 03, 2001 8:58 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] mapplet without complete refresh > > > In the mail archive I found in a posting that it should be > possible to use > the mapplet and avoid a complete refresh of the entire page. > Only the applet > contents should be updated by zoom actions etc. This should > be done with > some JavaScript functions. Can anybody tell me how to do > this? Is there an > example in the gallery collection? > > My problem is that I want to change parameters like 'mode' or > 'zoomdir' via > JavaScript (with buttons), and with every complete refresh > these parameters > are reset to their default values. Maybe there's also another solution > writing always back the current parameter settings to the > refreshed page. I > assume it could be done with some dummy html page containing > all necessary > form parameters that will be read and written into the > refreshed page via > javascript. Is this approach feasible? > > It could probably also be done with frames but I'd prefer a > solution without > them. > > Thanks for any hints. > > Armin > > -- > Armin Burger > Territorium Online > Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia > _ > From barberc at msu.edu Tue Aug 7 10:38:53 2001 From: barberc at msu.edu (Chris Barber) Date: Tue, 07 Aug 2001 13:38:53 -0400 Subject: [mapserver-users] PHP Mapscript: dl() errors Message-ID: <3B7027AD.5D08A6B0@msu.edu> While folks are discussing PHP errors, I've been getting errors in my system log that I'm unsure if they're being generated due to a problem w/ PHP Mapscript -or- my PHP installation. If it's my installation, maybe someone can point me in the right direction, please. The SYSLOG error: unix: |$(0x6dd)ALERT: Process [httpd] 1367543 generated trap, but has signal 11 held or ignored unix: epc 0xc35d2ac ra 0xfb60630 badvaddr 0xc35d2ac unix: Process has been killed to prevent infinite loop Error appears each time php_mapscript is loaded via dl(), but the running script completes w/o problem. When php_mapscript is loaded via 'php.ini' -- same error in logs and Apache fails to start. As long as dl() is used, everything seems to work ok, but I'm concerned about taking a performance hit from the error. OS: IRIX 6.5.11m Web Server: Apache 1.3.20 PHP: 4.0.6 (as module) MapServer: 3.5, nightly from 2001-07-31 Configure options: (paths truncated) --with-gd (1.8.4) --with-sde (v.80) --with-php --with-apxs Thanks, Chris Barber -- __________________________________________________ Christopher P. Barber Basic Science & Remote Sensing Initiative Dept. of Geography, Michigan State Univ. http://bsrsi.msu.edu Rm. 210 Manly Miles Bldg. 1405 S. Harrison Road East Lansing, MI 48823-5243 517.432.1883 Phone 517.353.2932 FAX barberc at msu.edu From steve.lime at dnr.state.mn.us Tue Aug 7 10:50:48 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 07 Aug 2001 12:50:48 -0500 Subject: [mapserver-users] Interactive Select/Query Message-ID: Assuming features have a key field, and you're not talking about managing 100's of features this way, you can probably get by with using just javascript and regular query or nquery. For example, a user could click "add" and then to a regular query. Clicking "add" needs to do 2 things set the mode and set another non-mapserver parameter to "add". Then after the query the resulting template could look at that non-mapserver parameter to decide what to do with the query results. I would suggest managing the results as simply a delimited string that is passed from page to page. In "add" mode you tag the newly selected ids to the string, in remove mode you remove them. What's cool is that you can turn that delimited string into an expression that can be passed to mapserver to show only those selected features. This would be done using a map constructed *after* the query is processed (i.e. using mode=map in the form element). At any time you could click a mail button that ideally would call another script to handle the mailing. Just an idea, but very doable. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "David W Bitner" 08/06/01 02:40PM >>> I am looking to modify our mapserver application so that we can select a number of features and then email the list of selected features back to us. The email part of the problem could be taken care of fairly readily through Javascript using the clients email program. The issue that remains is trying to select out just the features that the user wants to be sent back to us. I am sure that something is going to be have to be done using savequery. If at all possible, it would be great if things could be added to/ taken away from the selection by toggling on the feature either one by one or with a drag box with some sort of visual cue as to what has been selected. Does anyone have any examples or advice on this type of application? Thanks, David ********************************************************************* David William Bitner -- GIS/ Remote Sensing Specialist National Operational Hydrologic Remote Sensing Center National Weather Service, Chanhassen, MN 55317 work: bitner at nws.gov, http://www.nohrsc.nws.gov ********************************************************************* From jsmedsmo at gis.umn.edu Tue Aug 7 11:10:51 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Tue, 07 Aug 2001 13:10:51 -0500 Subject: [mapserver-users] [Fwd: Help] Message-ID: <3B702F2B.301C9297@gis.umn.edu> Yngrid Ocola wrote: > > Hello.. > > I need your atention, please... > I want to know if Mapserver allow me to build aplications on Visual > Basic(Interdev) under SQL 2000, my aplication is on line and need to put the > dots on the maps every 30 or 60 minutes. > > Thanks, > > Yngrid Ocola Ocola > Analista de Sistemas > Tel?fono Of. (511) 422-2627 > Celular (511) 9032250 From cathode at nichebox.com Tue Aug 7 11:55:43 2001 From: cathode at nichebox.com (Rob Martinson) Date: Tue, 7 Aug 2001 21:55:43 +0300 Subject: [mapserver-users] OGR Support for TIGER 2000 Data? In-Reply-To: <3B6FE691.FABC6F34@dmsolutions.ca> Message-ID: <001501c11f72$9094acc0$de00a8c0@nichebox1> Okay, this was a bit confusing to me but I now see what Jeff is saying. OGR must look at the entire directory of raw data to open any of the layers instead of a single .RT* file. I thought Jeff just meant that the full path to the file must be specified, but instead just the directory where the layers reside must be specified. For example, my TIGER data is in: /usr/local/mapdata/TIGER_2000/WA/53063/ In this directory I have files TGR53063.RT1 through TGR53063.RTZ. Instead of calling ogrinfo as: ogrinfo /usr/local/mapdata/TIGER_2000/WA/53063/TGR53063.RT1 Try calling as: ogrinfo /usr/local/mapdata/TIGER_2000/WA/53063 So OGR can look at the entire data structure. Works for me on this end now. Thanks Jeff! Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > Jeff McKenna > Sent: Tuesday, August 07, 2001 4:01 PM > To: Ed McNierney > Cc: Users > Subject: Re: [mapserver-users] OGR Support for TIGER 2000 Data? > > > > > > > Thank for figuring that out! However, I still can't get it > to work. > > I'm running the OGR tools I built (under Windows 2000) in the GDAL > > 1.1.5 distribution. OGRINFO still refuses to recognize the > data set. > > Are you using a different OGR? > > > > Hi Ed, > > I just checked out the latest CVS version of GDAL (v1.1.5) > and built it (under Windows NT), and OGRINFO works fine for > me. Hmm. I placed OGRINFO into the directory where the > TIGER data resides (i.e. placed TGR25001.RT1, TGR25001.RT2... > in the same directory as OGRINFO). The syntax I used for > OGRINFO is: $ ogrinfo full/path/to/data > > This worked fine for me. Maybe someone else has some ideas? > > > > > -- > > Jeff McKenna > GIS Specialist > DM Solutions Group Inc. > Ottawa, Ontario > http://www.dmsolutions.ca/ > From ed at topozone.com Tue Aug 7 12:10:33 2001 From: ed at topozone.com (Ed McNierney) Date: Tue, 7 Aug 2001 15:10:33 -0400 Subject: [mapserver-users] OGR Support for TIGER 2000 Data? Message-ID: <13858AA1A74F30419F319ACB66A9D12201915C@mercator.topozone.com> Dawn breaks on Marblehead (as they say around here...) Rob - Thanks! I have no problems at all and my OGRINFO tests work, and MapServer works. Jeff threw me off the trail by naming the directory in which he stored the TGR25001.* files "TGR25001". As a result, I thought he was simply specifying the root name of the files - and that OGR would simply look for TGR25001.* in the same directory as specified. Instead, he was specifying the name of the DIRECTORY holding all the TGR25001.* files. I'm happy - everything works. Thanks everyone for the help! Jeff, you might want to update your excellent example pages to make this distinction clearer. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Rob Martinson [mailto:cathode at nichebox.com] Sent: Tuesday, August 07, 2001 2:56 PM To: 'Jeff McKenna'; Ed McNierney Cc: 'Users' Subject: RE: [mapserver-users] OGR Support for TIGER 2000 Data? Okay, this was a bit confusing to me but I now see what Jeff is saying. OGR must look at the entire directory of raw data to open any of the layers instead of a single .RT* file. I thought Jeff just meant that the full path to the file must be specified, but instead just the directory where the layers reside must be specified. For example, my TIGER data is in: /usr/local/mapdata/TIGER_2000/WA/53063/ In this directory I have files TGR53063.RT1 through TGR53063.RTZ. Instead of calling ogrinfo as: ogrinfo /usr/local/mapdata/TIGER_2000/WA/53063/TGR53063.RT1 Try calling as: ogrinfo /usr/local/mapdata/TIGER_2000/WA/53063 So OGR can look at the entire data structure. Works for me on this end now. Thanks Jeff! Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > Jeff McKenna > Sent: Tuesday, August 07, 2001 4:01 PM > To: Ed McNierney > Cc: Users > Subject: Re: [mapserver-users] OGR Support for TIGER 2000 Data? > > > > > > > Thank for figuring that out! However, I still can't get it > to work. > > I'm running the OGR tools I built (under Windows 2000) in the GDAL > > 1.1.5 distribution. OGRINFO still refuses to recognize the > data set. > > Are you using a different OGR? > > > > Hi Ed, > > I just checked out the latest CVS version of GDAL (v1.1.5) > and built it (under Windows NT), and OGRINFO works fine for > me. Hmm. I placed OGRINFO into the directory where the > TIGER data resides (i.e. placed TGR25001.RT1, TGR25001.RT2... > in the same directory as OGRINFO). The syntax I used for > OGRINFO is: $ ogrinfo full/path/to/data > > This worked fine for me. Maybe someone else has some ideas? > > > > > -- > > Jeff McKenna > GIS Specialist > DM Solutions Group Inc. > Ottawa, Ontario > http://www.dmsolutions.ca/ > From jimburnett at ntelos.net Tue Aug 7 12:39:54 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Tue, 7 Aug 2001 15:39:54 -0400 Subject: [mapserver-users] queryUsingPoint seg fault on demo maps Message-ID: <018501c11f78$bbc1ee70$2f01a8c0@morpheus> I get a segfault when try to do a queryUsingPoint...I am testing with the demo maps....My map browsing works like zooming and panning, but now I want to query the map data when I click on an area, and return data from the attribute data. Like the area of the lake and miles and stuff. I get a segfault, and the rest of the script doesnt run.... also, I renamed the demo.map file to romney.map if ( $map_x && $map_y ) { $mapObj = ms_newMapObj("/home/htdocs/maptest/romney.map"); $ptClicked = ms_newPointObj(); $ptClicked->setXY($x,$y); $layerObj = $mapObj->getLayerByName("lakes"); $queryObj = $layerObj->queryUsingPoint( $ptClicked,MS_MULTIPLE,3 ); print "click X Y:" . $map_x . " x " . $map_y . "
\n"; print "mapObj->name:" . $mapObj->name . "
\n"; print "mapObj->numlayers:" . $mapObj->numlayers . "
\n"; print "layerObj->numqueries:" . $layerObj->numqueries . "
\n"; print "layerObj->other:" . $layerObj->queryitem . "
\n"; print "queryObj->numresults:" . $queryObj->numresults . "
\n"; } the layer definition in the map file... LAYER NAME lakes TYPE POLYGON STATUS ON DATA lakespy2 CLASS NAME 'Lakes & Rivers' COLOR 49 117 185 END HEADER "demo/lakespy2_header.html" FOOTER "demo/lakespy2_footer.html" QUERY TEMPLATE "demo/lakespy2.html" END TOLERANCE 3 END # lakes -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Tue Aug 7 13:28:48 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 07 Aug 2001 16:28:48 -0400 Subject: [mapserver-users] queryUsingPoint seg fault on demo maps References: <018501c11f78$bbc1ee70$2f01a8c0@morpheus> Message-ID: <3B704F80.B2CE5541@dmsolutions.ca> > Jim Burnett wrote: > > I get a segfault when try to do a queryUsingPoint...I am testing with > the demo maps....My map browsing works like zooming and panning, but > now I want to query the map data when I click on an area, and return > data from the attribute data. Like the area of the lake and miles and > stuff. > > Jim, Seems like you're running MapScript 3.4 with PHP 4.0.6 ... this combination is known to have a problem which is documented at the following URL: http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html#4.5 You'll have to either switch to MapServer 3.5 or backtrack to PHP 4.0.5. The following message in the archive also tells you how to patch your MapScript 3.4 if you really can't switch versions of PHP or MapServer: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0107/msg00204.html -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jimburnett at ntelos.net Tue Aug 7 14:08:06 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Tue, 7 Aug 2001 17:08:06 -0400 Subject: [mapserver-users] queryUsingPoint seg fault on demo maps References: <018501c11f78$bbc1ee70$2f01a8c0@morpheus> <3B704F80.B2CE5541@dmsolutions.ca> Message-ID: <019701c11f85$0e0d7940$2f01a8c0@morpheus> OK, I switched to GD1.8.4 and MapServer/Script 3.5 (nightly build) Instead of a complete crash, I get this. ( better then complete crash) Warning: MapServer Error in msQueryByPoint(): No matching record(s) found. in /drives/storage1/homes/htdocs/maptest/php/test.php on line 71 here is my code: I am using the shape file and map file provided in the demo, i just renamed it. if ( $map_x && $map_y ) { $mapObj = ms_newMapObj("/home/htdocs/maptest/romney.map"); $ptClicked = ms_newPointObj(); $ptClicked->setXY($x,$y); print $ptClicked . "
\n"; #$layerObj = $mapObj->getLayerByName("lakes"); $queryObj = $mapObj->queryByPoint( $ptClicked,MS_MULTIPLE,-1 ); #$qObj = ms_newQueryObj($layerObj); #$qObj->setexpression("/./"); #$queryObj = $layerObj->queryByPoint( $ptClicked,MS_MULTIPLE,3 ); print "click X Y:" . $map_x . " x " . $map_y . "
\n"; print "mapObj->name:" . $mapObj->name . "
\n"; print "mapObj->numlayers:" . $mapObj->numlayers . "
\n"; print "layerObj->numqueries:" . $layerObj->numqueries . "
\n"; print "layerObj->other:" . $layerObj->queryitem . "
\n"; print "queryObj->numresults:" . $queryObj->numresults . "
\n"; print "queryObj:" . $queryObj . "
\n"; } ----- Original Message ----- From: "Daniel Morissette" To: "Jim Burnett" Cc: Sent: Tuesday, August 07, 2001 4:28 PM Subject: Re: [mapserver-users] queryUsingPoint seg fault on demo maps > > Jim Burnett wrote: > > > > I get a segfault when try to do a queryUsingPoint...I am testing with > > the demo maps....My map browsing works like zooming and panning, but > > now I want to query the map data when I click on an area, and return > > data from the attribute data. Like the area of the lake and miles and > > stuff. > > > > > > Jim, > > Seems like you're running MapScript 3.4 with PHP 4.0.6 ... this > combination is known to have a problem which is documented at the > following URL: > http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html#4. 5 > > You'll have to either switch to MapServer 3.5 or backtrack to PHP 4.0.5. > > The following message in the archive also tells you how to patch your > MapScript 3.4 if you really can't switch versions of PHP or MapServer: > http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/01 07/msg00204.html > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > From jsmedsmo at gis.umn.edu Wed Aug 8 09:13:02 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Wed, 08 Aug 2001 11:13:02 -0500 Subject: [mapserver-users] Server Available Message-ID: <3B71650E.88A452CA@gis.umn.edu> Just a note to let you know that the MapServer web and list server is now available. For those of you who didn't notice, it was unavailable this morning. Jamie Smedsmo University of Minnesota Department of Forest Resources From jimburnett at ntelos.net Wed Aug 8 06:37:29 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 8 Aug 2001 09:37:29 -0400 Subject: [mapserver-users] queryUsingPoint seg fault on demo maps References: <018501c11f78$bbc1ee70$2f01a8c0@morpheus> <3B704F80.B2CE5541@dmsolutions.ca> <019701c11f85$0e0d7940$2f01a8c0@morpheus> Message-ID: <007501c1200f$44c82450$2f01a8c0@morpheus> OK, Now I downgraded to php-4.0.5 also. I still get Warning: MapServer Error in msQueryByPoint(): No matching record(s) found. in /drives/storage1/homes/htdocs/maptest/php/test.php on line 71 I can not seem to pull any data from the ms_demo data files. Here is my code and map file. Zooming, and Panning work fine, just cant query for some reason. What am I missing? $mapObj = ms_newMapObj("/home/htdocs/maptest/romney.map"); $ptClicked = ms_newPointObj(); $ptClicked->setXY($x,$y); $queryObj = $mapObj->queryByPoint( $ptClicked,MS_MULTIPLE,-1 ); LAYER NAME lakes METADATA "DESCRIPTION" "lakes" "RESULT_FIELDS" "AREA PERIMETER USCLASS LAKE_NAME" END TYPE POLYGON STATUS ON DATA lakespy2 CLASS NAME 'Lakes & Rivers' COLOR 49 117 185 TEMPLATE "demo/lakespy2.html" END TOLERANCE 3 END # lakes ----- Original Message ----- From: "Jim Burnett" To: "Daniel Morissette" Cc: Sent: Tuesday, August 07, 2001 5:08 PM Subject: Re: [mapserver-users] queryUsingPoint seg fault on demo maps > OK, I switched to GD1.8.4 and MapServer/Script 3.5 (nightly build) > Instead of a complete crash, I get this. ( better then complete crash) > > Warning: MapServer Error in msQueryByPoint(): No matching record(s) found. > in /drives/storage1/homes/htdocs/maptest/php/test.php on line 71 > > > here is my code: > I am using the shape file and map file provided in the demo, i just renamed > it. > > > if ( $map_x && $map_y ) { > $mapObj = ms_newMapObj("/home/htdocs/maptest/romney.map"); > > $ptClicked = ms_newPointObj(); > $ptClicked->setXY($x,$y); > print $ptClicked . "
\n"; > > #$layerObj = $mapObj->getLayerByName("lakes"); > $queryObj = $mapObj->queryByPoint( $ptClicked,MS_MULTIPLE,-1 ); > > #$qObj = ms_newQueryObj($layerObj); > #$qObj->setexpression("/./"); > > > #$queryObj = $layerObj->queryByPoint( $ptClicked,MS_MULTIPLE,3 ); > > print "click X Y:" . $map_x . " x " . $map_y . "
\n"; > print "mapObj->name:" . $mapObj->name . "
\n"; > print "mapObj->numlayers:" . $mapObj->numlayers . "
\n"; > print "layerObj->numqueries:" . $layerObj->numqueries . "
\n"; > print "layerObj->other:" . $layerObj->queryitem . "
\n"; > print "queryObj->numresults:" . $queryObj->numresults . "
\n"; > print "queryObj:" . $queryObj . "
\n"; > } > > > ----- Original Message ----- > From: "Daniel Morissette" > To: "Jim Burnett" > Cc: > Sent: Tuesday, August 07, 2001 4:28 PM > Subject: Re: [mapserver-users] queryUsingPoint seg fault on demo maps > > > > > Jim Burnett wrote: > > > > > > I get a segfault when try to do a queryUsingPoint...I am testing with > > > the demo maps....My map browsing works like zooming and panning, but > > > now I want to query the map data when I click on an area, and return > > > data from the attribute data. Like the area of the lake and miles and > > > stuff. > > > > > > > > > > Jim, > > > > Seems like you're running MapScript 3.4 with PHP 4.0.6 ... this > > combination is known to have a problem which is documented at the > > following URL: > > > http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html#4. > 5 > > > > You'll have to either switch to MapServer 3.5 or backtrack to PHP 4.0.5. > > > > The following message in the archive also tells you how to patch your > > MapScript 3.4 if you really can't switch versions of PHP or MapServer: > > > http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/01 > 07/msg00204.html > > > > -- > > ------------------------------------------------------------ > > Daniel Morissette morissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > > > > > > From mapserver at cubok.com Tue Aug 7 22:54:51 2001 From: mapserver at cubok.com (Richard Ford) Date: Wed, 8 Aug 2001 15:54:51 +1000 Subject: [mapserver-users] Compilation/ESRI SHapeLIB References: <200108071612.f77GCYO09408@antonia.nn.cl> Message-ID: <000d01c11fce$a56cf5b0$01bca8c0@Peach> G'Day All, I did the ldconfig thing. And it works. Funny thing is though, when I compiled PROJ with a --prefix=/usr/local/projlib and compiled map server against that directory. And added /usr/local/projlib to ld.so.conf and ran ldconfig, mapserver would still fail in the same way. However doing a straight ./configure of proj so that it would install to /usr/local/lib and adding that to ld.so.conf, mapserver did work? Strange? Richard. ----- Original Message ----- From: "Vinko Vrsalovic B." To: "Richard Ford" Cc: "Map" Sent: Wednesday, August 08, 2001 2:12 AM Subject: Re: [mapserver-users] Compilation/ESRI SHapeLIB > > > *********************************************************************** > > > > mapserv: error while loading shared libraries: libproj.so.0: cannot load > > shared object file: No such file or directory > > mapserv: error while loading shared libraries: libproj.so.0: cannot load > > shared object file: No such file or directory > > [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of > > script headers: /usr/local/apache/cgi-bin/mapserv > > [Tue Aug 7 15:19:45 2001] [error] [client 192.168.188.1] Premature end of > > script headers: /usr/local/apache/cgi-bin/mapserv > > > > ************************************************************************ > > > > I take it that the libraries can't be found or loaded? With PROJ disabled > > the mapserv runs fine. > > > So why or what is wrong? :) > > Maybe you need to add the directory where libproj is to /etc/ld.conf and > run ldconfig afterwards. > > -- > V. > From morissette at dmsolutions.ca Wed Aug 8 09:55:29 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 08 Aug 2001 12:55:29 -0400 Subject: [mapserver-users] queryUsingPoint seg fault on demo maps References: <018501c11f78$bbc1ee70$2f01a8c0@morpheus> <3B704F80.B2CE5541@dmsolutions.ca> <019701c11f85$0e0d7940$2f01a8c0@morpheus> <007501c1200f$44c82450$2f01a8c0@morpheus> Message-ID: <3B716F01.F3AB1E2A@dmsolutions.ca> Jim Burnett wrote: > > OK, Now I downgraded to php-4.0.5 also. Going back to PHP 4.0.5 was not necessary since you're using Mapscript 3.5... the message you get is not a bug... it's a normal error message saying that nothing was found. > I still get > Warning: MapServer Error in msQueryByPoint(): No matching record(s) found. > in /drives/storage1/homes/htdocs/maptest/php/test.php on line 71 > > I can not seem to pull any data from the ms_demo data files. > Here is my code and map file. > > Zooming, and Panning work fine, just cant query for some reason. What am I > missing? > > $mapObj = ms_newMapObj("/home/htdocs/maptest/romney.map"); > $ptClicked = ms_newPointObj(); > $ptClicked->setXY($x,$y); > $queryObj = $mapObj->queryByPoint( $ptClicked,MS_MULTIPLE,-1 ); > Are $x and $y in pixel coordinates? The query functions expect the search location in map coordinates... here's an example of code that should (hopefully ;) convert from pixel to map coordinates: $pix_x = ...; // click location in pixel units $pix_y = ...; $mapext = $mapObj->extent; $w = $mapObj->width; $h = $mapObj->height; $georef_x = $mapext->minx + ($pix_x/$w)*($mapext->maxx-$mapext->minx); $georef_y = $mapext->maxy - ($pix_y/$h)*($mapext->maxy-$mapext->miny); -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jimburnett at ntelos.net Wed Aug 8 10:08:46 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 8 Aug 2001 13:08:46 -0400 Subject: [mapserver-users] queryUsingPoint seg fault on demo maps References: <018501c11f78$bbc1ee70$2f01a8c0@morpheus> <3B704F80.B2CE5541@dmsolutions.ca> <019701c11f85$0e0d7940$2f01a8c0@morpheus> <007501c1200f$44c82450$2f01a8c0@morpheus> <3B716F01.F3AB1E2A@dmsolutions.ca> Message-ID: <008401c1202c$c92db3f0$2f01a8c0@morpheus> I figured it out, I had to make some changes in my map file, and also set my default map extents!! thanks!! -jim ----- Original Message ----- From: "Daniel Morissette" To: "Jim Burnett" Cc: Sent: Wednesday, August 08, 2001 12:55 PM Subject: Re: [mapserver-users] queryUsingPoint seg fault on demo maps > Jim Burnett wrote: > > > > OK, Now I downgraded to php-4.0.5 also. > > Going back to PHP 4.0.5 was not necessary since you're using Mapscript > 3.5... the message you get is not a bug... it's a normal error message > saying that nothing was found. > > > > I still get > > Warning: MapServer Error in msQueryByPoint(): No matching record(s) found. > > in /drives/storage1/homes/htdocs/maptest/php/test.php on line 71 > > > > I can not seem to pull any data from the ms_demo data files. > > Here is my code and map file. > > > > Zooming, and Panning work fine, just cant query for some reason. What am I > > missing? > > > > $mapObj = ms_newMapObj("/home/htdocs/maptest/romney.map"); > > $ptClicked = ms_newPointObj(); > > $ptClicked->setXY($x,$y); > > $queryObj = $mapObj->queryByPoint( $ptClicked,MS_MULTIPLE,-1 ); > > > > Are $x and $y in pixel coordinates? > > The query functions expect the search location in map coordinates... > here's an example of code that should (hopefully ;) convert from pixel > to map coordinates: > > $pix_x = ...; // click location in pixel units > $pix_y = ...; > $mapext = $mapObj->extent; > $w = $mapObj->width; > $h = $mapObj->height; > $georef_x = $mapext->minx + ($pix_x/$w)*($mapext->maxx-$mapext->minx); > $georef_y = $mapext->maxy - ($pix_y/$h)*($mapext->maxy-$mapext->miny); > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > From mapserver at cubok.com Tue Aug 7 23:08:33 2001 From: mapserver at cubok.com (Richard Ford) Date: Wed, 8 Aug 2001 16:08:33 +1000 Subject: [mapserver-users] Compilation/ESRI SHapeLIB References: <024b01c11f57$66f17300$01bca8c0@Peach> <3B702210.92BD181C@pobox.com> Message-ID: <003b01c11fd0$9bef89b0$01bca8c0@Peach> G'Dat Frank. Was that version 3.3? Or a later one? Cheers, Richard. ----- Original Message ----- From: "Frank Warmerdam" To: "Richard Ford" ; "UMN MapServer" Sent: Wednesday, August 08, 2001 3:14 AM Subject: Re: [mapserver-users] Compilation/ESRI SHapeLIB > Richard Ford wrote: > > > > What do you mean by bastardised?? > > > > Is it limited or does it just suffice for basic reading and writing? > > Richard, > > Steve has optimized the shapelib code, partly by having it directly > transform the incoming data into the internal format for MapServer instead > of going through the intermediate format used by shapelib. It should read > pretty much anything that the regular shapelib reads, but won't include some > of the latest shapelib tweaks. > > > As Stephen pointed out there is shape file support built in. Will I still > > need PROJ. What else is PROJ used for and should I really consider it a > > mandatory library? > > If you have all your data into one coordinate system ... the coordinate system > you want to serve data in, then you don't need PROJ.4 libraries for MapServer. > > Best regards, > > ---------------------------------------+---------------------------------- ---- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From Gregg.Petersen at parsons.com Wed Aug 8 10:23:05 2001 From: Gregg.Petersen at parsons.com (Gregg Petersen) Date: Wed, 8 Aug 2001 17:23:05 +0000 Subject: [mapserver-users] Can't select a point. Message-ID: <3a158bdc.080701@nettalk.parsons.com> Hello, I'm new to mapserver and have a site up with some basic layers. The problem is I can't query a point layer by itself. I am able to query the point if their is a polygon layer also selected and I select "Qery Multiple Layers". Thanks for any assistance. Layer info within the map file: ##################################################### #layer zdi layer data "./zdi" footer "zdi_footer.html" header "zdi_header.html" labelitem "LOCID" labelmaxscale 5500 maxscale 25000 name "zdi" status on type point #query query template "zdi.html" end # 1 class {Sample Locations} class color 0 255 0 name "Sample Locations" outlinecolor 0 0 0 symbol "county_highway_shield" #label label backgroundcolor 225 225 225 color 0 225 0 partials false position auto size medium type bitmap end end toleranceunits feet tolerance 10 end ##################################################### Gregg Petersen From v at w.cl Wed Aug 8 11:26:06 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Wed, 8 Aug 2001 14:26:06 -0400 (CLT) Subject: [mapserver-users] the infamous 'invalid _map_handle_' strikes again In-Reply-To: <3B716F01.F3AB1E2A@dmsolutions.ca> from "Daniel Morissette" at Aug 08, 2001 12:55:29 PM Message-ID: <200108081826.f78IQ7m29534@antonia.nn.cl> Well, I finally got the time to upgrade from PHP4.0.3 to PHP 4.0.6. I'm using the latest CVS build of MS3.5 (08-01) and when executing this code: dl("php_mapscript.so"); $map = ms_newMapObj("../buses.map"); $imag = $map->prepareImage(); $l_stgo=$map->getLayerByName("arcosbase"); $l_stgo->set("status",1); $l_stgo->draw($imag); $bar = $map->drawScalebar(); $url_bar = $bar->saveWebImage(MS_PNG,0,0,0); $map->drawLabelCache($imag); $url = $imag->saveWebImage(MS_PNG, 0,0,0); I get a: Fatal error: Object has an invalid '_map_handle_' property in /var/www/html/ms_demo/php/layer.php on line 11 If I change the $l_stgo->draw($imag); line to $imag=$map->draw(); it works perfectly. -- V. From Dan_Stevens at stricom.army.mil Thu Aug 9 02:54:46 2001 From: Dan_Stevens at stricom.army.mil (Dan_Stevens at stricom.army.mil) Date: Thu, 9 Aug 2001 05:54:46 -0400 Subject: [mapserver-users] FW: Need direction for enhancing Mapserver Message-ID: To all, I am the technical lead for the program Chan is interning under. This is a government program developing a repository for users to "compose" environmental scenarios from canned database (one degree square) terrain "tiles". There are three major objectives to Chan's project: Help her to develop hands on experience with all the elements of the environmental software we develop Provide her with a very practical software development project to grow her skills Save taxpayer (most of us : ) money Chan has already made tremendous progress and has met all of the program's basic requirements. Her repository software is running in a "text only" mode and functions as expected. She has exceeded expectations on the GUI side, and can already use the mapserver to query her world map to get the coordinates for a requested area, but the user must manually enter the text lat/long to actually retrieve the data, a process that is both "user unfriendly" and error prone. Chan is only dedicated to this effort for another 4 or 5 months in her training track, and the only thing lacking is being able to compile and link the back-end C++ software Chan mentioned with the GUI interface providing the several functions Chan describes below (apparently already supported by mapserver). Any help would be appreciated. Is there anyone who could support a half-hour telecon to talk through the functions she needs supported and help us determine a best approach to complete the project? Thanks Dan Stevens ----- Forwarded by Dan Stevens/E_DIR/STRIORL/US on 08/09/01 05:37 AM ----- "Chan B. Huynh" To: Subject: FW: Need direction for enhancing Mapserver 08/08/01 06:25 PM Dan, I forward you here what I send to the mapserver reflector. Just thought you might want to know what I have in mind. -chan -----Original Message----- From: Chan B. Huynh [mailto:chuynh at ideorlando.org] Sent: Monday, August 06, 2001 8:36 PM To: mapserver-users at lists.gis.umn.edu Subject: Need direction for enhancing Mapserver Hi everyone, First, I'd like to thank all the ones who have helped me with all my puzzle the past weeks. I now have the digital map of world up and running beautifully on my NT server with my own source . I will need a kind soul to direct me enhancing Mapserver to do the following: The interface would be very much like the MapServer Applications: MODIS Download Facility written by TerraSIP and UMN in the gallery link on mapserver webpage. Instead of only the Great Lakes area, I need to have a DGM world map like the Australian worldmap in the gallery. Besides all the zoom-in/zoom-out/pan east-west-north-south-ne-nw-se=sw function, the end-user can draw a rectangular-area/drag-a-box on the window map. The mapserver will grab that coordinate of the lower-left and upper-right corner of the selected area and convert that to lat/long. Once I have this lat/long, it will be fed into my already-written C++ program which produce a "peffile" in ASCII format (readable by notepad/wordpad) responsive to user selected area and avaliable for download from the webbrowser. Now, having said that, does mapserver support all that I want to do? If not, what is the best way I can tackle this? Is it worth of my time to re-compile mapserver, play with it and see what I can do with it and add my part into it? All suggestions and hints are appreciated. Thanks in advance. -chan From vatsavai at cs.umn.edu Thu Aug 9 08:49:43 2001 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Thu, 9 Aug 2001 10:49:43 -0500 (CDT) Subject: [mapserver-users] mail system working Message-ID: <200108091549.KAA09514@plato.cs.umn.edu> Hello MapServer-Users For last two days, the server hosting mailing list and web services is givinig trouble. I am looking into the cause, but mean time I will try to keep it running as smoothly as possible. If any one notice that a certain service is not available, then send me a mail at vrraju at gis.umn.edu. Thanks for your cooperation. Raju ---- From mapserver at cubok.com Thu Aug 9 07:04:10 2001 From: mapserver at cubok.com (Richard Ford) Date: Fri, 10 Aug 2001 00:04:10 +1000 Subject: [mapserver-users] Compilation/ESRI SHapeLIB References: <200108082247.f78MlYj13879@tba119427.dpi.qld.gov.au> Message-ID: <006a01c120dc$2abf2b30$01bca8c0@Peach> No, Didn't think to... as it was calling a separate program with it's own compilation issues.... I did hit refresh many times.... would apache actually cache the mapserv executable? Richard. > restarted apache, too? > > From kames at keyspanenergy.com Thu Aug 9 08:04:48 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Thu, 09 Aug 2001 11:04:48 -0400 Subject: [mapserver-users] OGR Support for TIGER 2000 Data? References: <13858AA1A74F30419F319ACB66A9D12201915C@mercator.topozone.com> Message-ID: <3B72A690.92E703CE@keyspanenergy.com> List It seems mapserver.gis.umn.edu is down. :( Questions... I'm trying to understand these TIGER files and can't quite grasp the record types. I'm wondering if ZIP CODES are available within these data, since my Zip code polygon files are a few years old. Thanks, Kieran Ed McNierney wrote: > Dawn breaks on Marblehead (as they say around here...) > > Rob - > > Thanks! I have no problems at all and my OGRINFO tests work, and > MapServer works. > > Jeff threw me off the trail by naming the directory in which he stored > the TGR25001.* files "TGR25001". As a result, I thought he was simply > specifying the root name of the files - and that OGR would simply look > for TGR25001.* in the same directory as specified. Instead, he was > specifying the name of the DIRECTORY holding all the TGR25001.* files. > > I'm happy - everything works. Thanks everyone for the help! Jeff, you > might want to update your excellent example pages to make this > distinction clearer. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Rob Martinson [mailto:cathode at nichebox.com] > Sent: Tuesday, August 07, 2001 2:56 PM > To: 'Jeff McKenna'; Ed McNierney > Cc: 'Users' > Subject: RE: [mapserver-users] OGR Support for TIGER 2000 Data? > > Okay, this was a bit confusing to me but I now see what Jeff is saying. > OGR must look at the entire directory of raw data to open any of the > layers instead of a single .RT* file. I thought Jeff just meant that the > full path to the file must be specified, but instead just the directory > where the layers reside must be specified. > > For example, my TIGER data is in: > > /usr/local/mapdata/TIGER_2000/WA/53063/ > > In this directory I have files TGR53063.RT1 through TGR53063.RTZ. > > Instead of calling ogrinfo as: > > ogrinfo /usr/local/mapdata/TIGER_2000/WA/53063/TGR53063.RT1 > > Try calling as: > > ogrinfo /usr/local/mapdata/TIGER_2000/WA/53063 > > So OGR can look at the entire data structure. Works for me on this end > now. Thanks Jeff! > > Rob Martinson > Nichebox - http://www.nichebox.com > Development - http://dev.nichebox.com > > > -----Original Message----- > > From: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > > Jeff McKenna > > Sent: Tuesday, August 07, 2001 4:01 PM > > To: Ed McNierney > > Cc: Users > > Subject: Re: [mapserver-users] OGR Support for TIGER 2000 Data? > > > > > > > > > > > > Thank for figuring that out! However, I still can't get it > > to work. > > > I'm running the OGR tools I built (under Windows 2000) in the GDAL > > > 1.1.5 distribution. OGRINFO still refuses to recognize the > > data set. > > > Are you using a different OGR? > > > > > > > Hi Ed, > > > > I just checked out the latest CVS version of GDAL (v1.1.5) > > and built it (under Windows NT), and OGRINFO works fine for > > me. Hmm. I placed OGRINFO into the directory where the > > TIGER data resides (i.e. placed TGR25001.RT1, TGR25001.RT2... > > in the same directory as OGRINFO). The syntax I used for > > OGRINFO is: $ ogrinfo full/path/to/data > > > > This worked fine for me. Maybe someone else has some ideas? > > > > > > > > > > -- > > > > Jeff McKenna > > GIS Specialist > > DM Solutions Group Inc. > > Ottawa, Ontario > > http://www.dmsolutions.ca/ > > From cathode at nichebox.com Thu Aug 9 10:30:51 2001 From: cathode at nichebox.com (Rob Martinson) Date: Thu, 9 Aug 2001 20:30:51 +0300 Subject: [mapserver-users] OGR Support for TIGER 2000 Data? In-Reply-To: <3B72A690.92E703CE@keyspanenergy.com> Message-ID: <002f01c120f9$0b2cde80$de00a8c0@nichebox1> Zip information via Zip Code Tabulation Areas from TIGER 2000 are now available at: http://www.census.gov/geo/ZCTA/zcta.html. Or as boundary files for each state from: http://www.census.gov/geo/www/cob/z52000.html. They have also made available online a database of ZIP codes compiled from '99 information. This is the most recent freely available ZIP information for the US that I know of. It contains zip codes, centroid, placename, zip type, and FIPS for the country. I have parsed a copy of this table and dumped them to a mySQL database on the server which I use quite often along side Mapserver. This table from November '99 is available at: http://www.census.gov/geo/www/tiger/zip1999.html Hope this helps... Rob Martinson Nichebox - http://www.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > Kieran J. Ames > Sent: Thursday, August 09, 2001 6:05 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] OGR Support for TIGER 2000 Data? > > > List > It seems mapserver.gis.umn.edu is down. :( > Questions... > I'm trying to understand these TIGER files and can't quite > grasp the record types. I'm wondering if ZIP CODES are > available within these data, since my Zip code polygon files > are a few years old. Thanks, Kieran > > > Ed McNierney wrote: > > > Dawn breaks on Marblehead (as they say around here...) > > > > Rob - > > > > Thanks! I have no problems at all and my OGRINFO tests work, and > > MapServer works. > > > > Jeff threw me off the trail by naming the directory in > which he stored > > the TGR25001.* files "TGR25001". As a result, I thought he > was simply > > specifying the root name of the files - and that OGR would > simply look > > for TGR25001.* in the same directory as specified. Instead, he was > > specifying the name of the DIRECTORY holding all the > TGR25001.* files. > > > > I'm happy - everything works. Thanks everyone for the help! Jeff, > > you might want to update your excellent example pages to make this > > distinction clearer. > > > > - Ed > > > > Ed McNierney > > Chief Mapmaker > > TopoZone.com > > ed at topozone.com > > (978) 251-4242 > > > > -----Original Message----- > > From: Rob Martinson [mailto:cathode at nichebox.com] > > Sent: Tuesday, August 07, 2001 2:56 PM > > To: 'Jeff McKenna'; Ed McNierney > > Cc: 'Users' > > Subject: RE: [mapserver-users] OGR Support for TIGER 2000 Data? > > > > Okay, this was a bit confusing to me but I now see what Jeff is > > saying. OGR must look at the entire directory of raw data > to open any > > of the layers instead of a single .RT* file. I thought Jeff > just meant > > that the full path to the file must be specified, but > instead just the > > directory where the layers reside must be specified. > > > > For example, my TIGER data is in: > > > > /usr/local/mapdata/TIGER_2000/WA/53063/ > > > > In this directory I have files TGR53063.RT1 through TGR53063.RTZ. > > > > Instead of calling ogrinfo as: > > > > ogrinfo /usr/local/mapdata/TIGER_2000/WA/53063/TGR53063.RT1 > > > > Try calling as: > > > > ogrinfo /usr/local/mapdata/TIGER_2000/WA/53063 > > > > So OGR can look at the entire data structure. Works for me > on this end > > now. Thanks Jeff! > > > > Rob Martinson > > Nichebox - http://www.nichebox.com > > Development - http://dev.nichebox.com > > > > > -----Original Message----- > > > From: owner-mapserver-users at lists.gis.umn.edu > > > [mailto:owner-mapserver-users at lists.gis.umn.edu] On > Behalf Of Jeff > > > McKenna > > > Sent: Tuesday, August 07, 2001 4:01 PM > > > To: Ed McNierney > > > Cc: Users > > > Subject: Re: [mapserver-users] OGR Support for TIGER 2000 Data? > > > > > > > > > > > > > > > > > Thank for figuring that out! However, I still can't get it > > > to work. > > > > I'm running the OGR tools I built (under Windows 2000) > in the GDAL > > > > 1.1.5 distribution. OGRINFO still refuses to recognize the > > > data set. > > > > Are you using a different OGR? > > > > > > > > > > Hi Ed, > > > > > > I just checked out the latest CVS version of GDAL > (v1.1.5) and built > > > it (under Windows NT), and OGRINFO works fine for me. Hmm. I > > > placed OGRINFO into the directory where the TIGER data > resides (i.e. > > > placed TGR25001.RT1, TGR25001.RT2... in the same directory as > > > OGRINFO). The syntax I used for OGRINFO is: $ ogrinfo > > > full/path/to/data > > > > > > This worked fine for me. Maybe someone else has some ideas? > > > > > > > > > > > > > > > -- > > > > > > Jeff McKenna > > > GIS Specialist > > > DM Solutions Group Inc. > > > Ottawa, Ontario > > > http://www.dmsolutions.ca/ > > > > > From morissette at dmsolutions.ca Thu Aug 9 11:32:07 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 09 Aug 2001 14:32:07 -0400 Subject: [mapserver-users] the infamous 'invalid _map_handle_' strikes again References: <200108081826.f78IQ7m29534@antonia.nn.cl> Message-ID: <3B72D727.8CDE4A19@dmsolutions.ca> "Vinko Vrsalovic B." wrote: > > Well, I finally got the time to upgrade from PHP4.0.3 to PHP 4.0.6. > > I'm using the latest CVS build of MS3.5 (08-01) and when executing this code: > ... > > I get a: > > Fatal error: Object has an invalid '_map_handle_' property in /var/www/html/ms_demo/php/layer.php on line 11 > > If I change the $l_stgo->draw($imag); line to $imag=$map->draw(); > it works perfectly. > Hummm this is bad! I don't have time to look into this now but I have filed the bug in bugzilla to make sure it doesn't fall in a crack... http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=30 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jef.mony at free.fr Thu Aug 9 13:58:17 2001 From: jef.mony at free.fr (=?ISO-8859-1?Q?Jean-Fran=E7ois_MONY?=) Date: Thu, 09 Aug 2001 22:58:17 +0200 (MEST) Subject: [mapserver-users] shape->intesects Message-ID: <997390697.3b72f969a1185@imp.free.fr> Hi, I'm using mapscript with php as a DSO from the mapserver 3.4 on linux. I've some questions on the intersects fonction of a shape object. I've tried it on multi-part polygon and the result was not really fine. After some search, I find that the total inclusion of a polygon in another was not take in count by this function. After a look on the mapscript.i, I thought that the problem came from : int intersects(shapeObj *shape) { switch(self->type) { case(MS_SHAPE_LINE): switch(shape->type) { case(MS_SHAPE_LINE): return msIntersectPolylines(self, shape); case(MS_SHAPE_POLYGON): return msIntersectPolylinePolygon(self, shape); } break; case(MS_SHAPE_POLYGON): switch(shape->type) { case(MS_SHAPE_LINE): return msIntersectPolylinePolygon(shape, self); case(MS_SHAPE_POLYGON): return msIntersectPolylines(self, shape); <<======= } break; } return -1; } But I've tried to recompil mapserver with the following modification, and nothing change. return msIntersectPolygons(self, shape); <<======= Is there somebody with a comment or an idea ? Thanks everybody Jean-Fran?ois MONY - jef.mony at free.fr Parc naturel r?gional de Lorraine Responsable informatique/SIG tel : 03-83-84-06-37 D?tach? aupr?s du laboratoire de phyto?cologie de l'universit? de Metz tel : 03-87-37-84-05 From steve.lime at dnr.state.mn.us Thu Aug 9 13:13:08 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 09 Aug 2001 15:13:08 -0500 Subject: [mapserver-users] Can't select a point. Message-ID: A tolerance unit of 10 feet is pretty small, have you tried screwing with that value at all? >>> Gregg Petersen 08/08/01 12:23PM >>> Hello, I'm new to mapserver and have a site up with some basic layers. The problem is I can't query a point layer by itself. I am able to query the point if their is a polygon layer also selected and I select "Qery Multiple Layers". Thanks for any assistance. Layer info within the map file: ##################################################### #layer zdi layer data "./zdi" footer "zdi_footer.html" header "zdi_header.html" labelitem "LOCID" labelmaxscale 5500 maxscale 25000 name "zdi" status on type point #query query template "zdi.html" end # 1 class {Sample Locations} class color 0 255 0 name "Sample Locations" outlinecolor 0 0 0 symbol "county_highway_shield" #label label backgroundcolor 225 225 225 color 0 225 0 partials false position auto size medium type bitmap end end toleranceunits feet tolerance 10 end ##################################################### Gregg Petersen From AWOOLEY at mountainland.org Thu Aug 9 15:13:23 2001 From: AWOOLEY at mountainland.org (ANDREW WOOLEY) Date: Thu, 09 Aug 2001 16:13:23 -0600 Subject: [mapserver-users] PHP ZoomPoint Message-ID: Folks, I am getting what seems to me to be strange results on my zoompoint method. I feel like I have followed the docs pretty closely and have even tried an example that I found in the email archives, but still have yet to get a useable result. I am using MapScript Version (Aug 1, 2001), a nightly build and when executing the code: $ptClicked = ms_newPointObj(); $ptClicked->setXY($mainmap_x,$mainmap_y); $extent = ms_newRectObj(); $extent->setextent($map->extent->minx, $map->extent->miny, $map->extent->maxx, $map->extent->maxy); $map->zoompoint(2, $ptClicked, 600, 600, $extent); When I echo the extent minx, etc. it gives reasonable coordinates for the map extent (1800193, 825044, 2115496, 542882), however, after this code executes and I echo the new extent, I get good values for some of the coordinates but not others (1877442.235, -78702.92, 2035093.735, 78702.92). Can someone explain to me what I am doing wrong and why the negative values show up? Thanks. Andrew Wooley GIS Operations Manager Mountainland Association of Governments Orem, UT phone: 801.229.3844 fax: 801.229.3801 email: awooley at mountainland.org From mckenna at dmsolutions.ca Thu Aug 9 15:34:48 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Thu, 09 Aug 2001 18:34:48 -0400 Subject: [mapserver-users] New PHPMapscript Installation and Classes Docs for v3.5 Message-ID: <3B731007.29D12AD1@dmsolutions.ca> Hello all, Just a quick note to say that 2 new documents for v3.5 are available to the Mapserver community: a PHPMapscript Installation HOWTO, and a PHPMapscript Classes Guide (describing all of the classes, properties and methods associated with the PHP/Mapscript module). http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html http://mapserver.gis.umn.edu/doc/phpmapscript-class-guide.html With all of the traffic on the list lately regarding PHPMapscript I am sure that these docs will be useful. And of course they will be improved over time. Have fun. -- Jeff McKenna GIS Specialist DM Solutions Group Inc. Ottawa, Ontario http://www.dmsolutions.ca/ From nwerneck at yahoo.com.br Thu Aug 9 16:01:39 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Thu, 9 Aug 2001 20:01:39 -0300 (ART) Subject: [mapserver-users] maximum number of classes Message-ID: <20010809230139.22619.qmail@web4307.mail.yahoo.com> The documentation says that there's a maximum number of 50 layers possibe to define in a map file... Is there also a maximum number of 50 classes to be defined on a layer??? Whyyyyy? :( ++nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From v at w.cl Thu Aug 9 16:51:26 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Thu, 9 Aug 2001 19:51:26 -0400 (CLT) Subject: [mapserver-users] PHP ZoomPoint In-Reply-To: from "ANDREW WOOLEY" at Aug 09, 2001 04:13:23 PM Message-ID: <200108092351.f79NpRG18386@antonia.nn.cl> > When I echo the extent minx, etc. it gives reasonable coordinates for the map extent (1800193, 825044, 2115496, 542882), however, after this code executes and I echo the new extent, I get good values for some of the coordinates but not others (1877442.235, -78702.92, 2035093.735, 78702.92). Can someone explain to me what I am doing wrong and why the negative values show up? Thanks. have you echoed the mainmap_x, mainmap_y variables to assure they're correct? (maybe you've mistyped the img name in the HTML file) is the shape projected? I had a similar problem with a shape with geographic coords, and the problem turned out to be a missing PROJECTION section on the LAYER section in the map file (it's not enough to declare the projection outside the layers) The size of the image is really 600x600, you may try with $map->width, $map->height instead of the fixed numbers. -- V. From assefa at dmsolutions.ca Thu Aug 9 16:57:49 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Thu, 09 Aug 2001 19:57:49 -0400 Subject: [mapserver-users] PHP ZoomPoint References: Message-ID: <3B73237C.DB294147@dmsolutions.ca> Hi There, I am not sure that I know waht would be the problem. If you send me your map file with one layer data, I can look at it early next week. Some thoughts : the zoompoint functionnality is affected by the parameters MINSCALE and MAXSCALE (in the Web oblect). If tou have set these parameters please remove them and do the same tests. Best Regards, ANDREW WOOLEY wrote: > Folks, > > I am getting what seems to me to be strange results on my zoompoint method. I feel like I have followed the docs pretty closely and have even tried an example that I found in the email archives, but still have yet to get a useable result. > > I am using MapScript Version (Aug 1, 2001), a nightly build and when executing the code: > > $ptClicked = ms_newPointObj(); > $ptClicked->setXY($mainmap_x,$mainmap_y); > > $extent = ms_newRectObj(); > $extent->setextent($map->extent->minx, $map->extent->miny, $map->extent->maxx, $map->extent->maxy); > > $map->zoompoint(2, $ptClicked, 600, 600, $extent); > > When I echo the extent minx, etc. it gives reasonable coordinates for the map extent (1800193, 825044, 2115496, 542882), however, after this code executes and I echo the new extent, I get good values for some of the coordinates but not others (1877442.235, -78702.92, 2035093.735, 78702.92). Can someone explain to me what I am doing wrong and why the negative values show up? Thanks. > > Andrew Wooley > GIS Operations Manager > Mountainland Association of Governments > Orem, UT > > phone: 801.229.3844 > fax: 801.229.3801 > email: awooley at mountainland.org -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From rob at socialchange.net.au Thu Aug 9 19:14:56 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Fri, 10 Aug 2001 12:14:56 +1000 Subject: [mapserver-users] FW: Need direction for enhancing Mapserver References: Message-ID: <3B7343A0.D44D03BD@socialchange.net.au> You need a "gazetteer service" - do you build it internally (stovepipe) or do you link to network addressable services. I'm working up a spec for the OpenGIS consortium for this service, and looking for sponsors for an implementation pilot. Q: Do want you implement mapserver as a gazetteer (possible) or link to other database services (more likely)? Regards Rob Atkinson Dan_Stevens at stricom.army.mil wrote: > on the GUI side, and can already use the mapserver to query her world map > to get the coordinates for a requested area, but the user must manually > enter the text lat/long to actually retrieve the data, a process that is > both "user unfriendly" and error prone. -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From eduardo at metodoinv.com.br Thu Aug 9 20:40:36 2001 From: eduardo at metodoinv.com.br (Eduardo Patto Kanegae) Date: Fri, 10 Aug 2001 00:40:36 -0300 Subject: [mapserver-users] what 'bout mapserver's future Message-ID: <008201c1214e$54505100$0c01a8c0@intranet> i've been studing 'n' trying MapServer since the last 12 months... i was searching for a good GPL+web+gis tool to avoid ArcIMS, cause it's too much expensive and so...i saw mapserver and this list. i've liked too much because: -it's free! it's GPL -it's simple to use(does anybody here has developed something with ESRI MapObjects with VisualBasic? :-( ) -it's fast -it's stable : it is at 3.x version... it's better than 0.2 or 0.5 .... -it's portable : u can use it under Linux or Windows with a little of modifications -... so, finally , my question is : -and what about the future? could mapserver loose its projects like Nautilus(EazeL)? and what i can do help keeping this project alive? []'s Eduardo Patto Kanegae From eduardo at metodoinv.com.br Thu Aug 9 20:41:30 2001 From: eduardo at metodoinv.com.br (Eduardo Patto Kanegae) Date: Fri, 10 Aug 2001 00:41:30 -0300 Subject: [mapserver-users] free DBF editor ? is there anyone? Message-ID: <008801c1214e$814c1fe0$0c01a8c0@intranet> ----- Original Message ----- From: Eduardo Patto Kanegae To: mapserver-users at lists.gis.umn.edu Sent: Tuesday, August 07, 2001 6:22 PM Subject: free DBF editor ? is there anyone? does anybody know an editor for DBF files maintance? i have to add fields to my shapefiles but don't have(too much expensive) ESRI ArvView.... any GPL tool or somethin like this... -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo at metodoinv.com.br Thu Aug 9 20:41:30 2001 From: eduardo at metodoinv.com.br (Eduardo Patto Kanegae) Date: Fri, 10 Aug 2001 00:41:30 -0300 Subject: [mapserver-users] [Freegis-list] free DBF editor ? is there anyone? Message-ID: <008801c1214e$814c1fe0$0c01a8c0@intranet> ----- Original Message ----- From: Eduardo Patto Kanegae To: mapserver-users at lists.gis.umn.edu Sent: Tuesday, August 07, 2001 6:22 PM Subject: free DBF editor ? is there anyone? does anybody know an editor for DBF files maintance? i have to add fields to my shapefiles but don't have(too much expensive) ESRI ArvView.... any GPL tool or somethin like this... -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkishor at GeoAnalytics.com Thu Aug 9 21:49:18 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 9 Aug 2001 23:49:18 -0500 Subject: [mapserver-users] what 'bout mapserver's future In-Reply-To: <008201c1214e$54505100$0c01a8c0@intranet> Message-ID: <200108100450.XAA07282@lists.gis.umn.edu> On Thursday, August 9, 2001, at 10:40 PM, Eduardo Patto Kanegae wrote: > i've been studing 'n' trying MapServer since the last 12 months... > i was searching for a good GPL+web+gis tool to avoid ArcIMS, cause > it's too much expensive and so...i saw mapserver and this list. > > i've liked too much because: > -it's free! it's GPL > -it's simple to use(does anybody here has developed something with ESRI > MapObjects with VisualBasic? :-( ) > -it's fast > -it's stable : it is at 3.x version... it's better than 0.2 or 0.5 .... > -it's portable : u can use it under Linux or Windows with a little of > modifications > -... > > so, finally , my question is : > -and what about the future? could mapserver loose its projects like > Nautilus(EazeL)? > and what i can do help keeping this project alive? Believe in it, and join the party, dude. The more people use it, the more people discover bugs and problems with it, the more people spread the word, the more people demo nice sites built with it, the better it is gonna be for Mapserver. > -- Puneet Kishor pkishor at eidesis.org From pkishor at GeoAnalytics.com Thu Aug 9 21:52:40 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 9 Aug 2001 23:52:40 -0500 Subject: [mapserver-users] free DBF editor ? is there anyone? In-Reply-To: <008801c1214e$814c1fe0$0c01a8c0@intranet> Message-ID: <200108100454.XAA07322@lists.gis.umn.edu> On Thursday, August 9, 2001, at 10:41 PM, Eduardo Patto Kanegae wrote: ? ----- Original Message ----- From: Eduardo Patto Kanegae To: mapserver-users at lists.gis.umn.edu Sent: Tuesday, August 07, 2001 6:22 PM Subject: free DBF editor ? is there anyone? does anybody know an editor for DBF files maintance? ? i have to add fields to my shapefiles but don't have(too much expensive) ESRI ArvView.... ? any GPL tool or somethin like this... ---- most spreadsheet kinda tools will open dbf files... try StarOffice... the spreadsheet as well as the database module will work with dbf files. Be careful with the row order... don't delete any rows or reorder them... they will get out of sync with your shp file and then you would be royally screwed. Otherwise, you can edit their contents to your heart's fill. Btw, you would be better off storing only a featureid in the dbf file and moving all the attributes to a real database such as MySQL. -- Puneet Kishor pkishor at eidesis.org From sylvain.speh at CLERMONT.cemagref.fr Thu Aug 9 23:13:19 2001 From: sylvain.speh at CLERMONT.cemagref.fr (Speh Sylvain) Date: Fri, 10 Aug 2001 08:13:19 +0200 Subject: [mapserver-users] free DBF editor ? is there anyone? Message-ID: Hi, On Windows,I tried Excel 2000, but I couln'd add any kind of column. Excel Apparently doesn't find the release of the DBFILE ( looking for a 3+ or a 4 one ). But I succeeded in changing text values. If this could help you ... -----Message d'origine----- De : Puneet Kishor [mailto:pkishor at GeoAnalytics.com] Envoy? : vendredi 10 ao?t 2001 06:53 ? : Eduardo Patto Kanegae Cc : MapServer-Users; FreeGIS Objet : Re: [mapserver-users] free DBF editor ? is there anyone? On Thursday, August 9, 2001, at 10:41 PM, Eduardo Patto Kanegae wrote: ? ----- Original Message ----- From: Eduardo Patto Kanegae To: mapserver-users at lists.gis.umn.edu Sent: Tuesday, August 07, 2001 6:22 PM Subject: free DBF editor ? is there anyone? does anybody know an editor for DBF files maintance? ? i have to add fields to my shapefiles but don't have(too much expensive) ESRI ArvView.... ? any GPL tool or somethin like this... ---- most spreadsheet kinda tools will open dbf files... try StarOffice... the spreadsheet as well as the database module will work with dbf files. Be careful with the row order... don't delete any rows or reorder them... they will get out of sync with your shp file and then you would be royally screwed. Otherwise, you can edit their contents to your heart's fill. Btw, you would be better off storing only a featureid in the dbf file and moving all the attributes to a real database such as MySQL. -- Puneet Kishor pkishor at eidesis.org From zhox at yeah.net Thu Aug 9 23:18:07 2001 From: zhox at yeah.net (Zhou Xu) Date: Fri, 10 Aug 2001 14:18:7 +0800 Subject: [mapserver-users] help! About Character-Set used in label Message-ID: <20010810062746.D028C1CC48569@smtp2.yeah.net> Hi, I am using mapserver and php/mapscript,but I am troubled by the Character-set. I mean there are a lot of Chinese characters in my data, but I can't put them as label on the rendered map, which is necessary for me. would you please share your experience with me? any words about this is appreciated. ------------------------------------------------------------------------------------------- Zhou,Xu ZiZhuYuan BaishengCun No.1 NGCC Post Code, 100044 Beijing, China Phone: +86 10 86851042 Fax: +86 10 68424101 Email: std at nsdi.gov.cn ------------------------------------------------------------------------------------------- From bronsema at dmsolutions.ca Fri Aug 10 05:23:12 2001 From: bronsema at dmsolutions.ca (William A. Bronsema, C.E.T.) Date: Fri, 10 Aug 2001 08:23:12 -0400 Subject: [mapserver-users] free DBF editor ? is there anyone? In-Reply-To: Message-ID: Speh Sylvain wrote: >On Windows,I tried Excel 2000, but I couln'd add any kind of column. Excel >Apparently doesn't find the release of the DBFILE ( looking for a 3+ or a 4 >one ). But I succeeded in changing text values. It is possible to add a column in Excel 2000 and 97 (and 95?). In order to do this, you need to re-define the "Name" range for the file so it includes the added column. Be VERY careful when modifying such a file in Excel because of Excel's nasty habit of modifying field types. Personally I don't recommend using Excel to make these modifications, but if it all you have to work with.... :) If you want more details on how to do this, let me know. Bill ----------------------------- William A. Bronsema, C.E.T. DM Solutions Group Inc. Ottawa, Ontario http://www.dmsolutions.ca/ From mcilhagga at dmsolutions.ca Fri Aug 10 06:00:17 2001 From: mcilhagga at dmsolutions.ca (Dave McIlhagga) Date: Fri, 10 Aug 2001 09:00:17 -0400 Subject: [mapserver-users] PHP / MapScript Useage References: <3B731007.29D12AD1@dmsolutions.ca> Message-ID: <3B73DAE1.5E289519@dmsolutions.ca> Hi Everyone, It's been about a year and a half now since we first released PHP / MapScript to the MapServer community. In that time, I have noticed on the list what appears to be a rapid growth in it's useage. We're continuing to seek opportunities for funding related to further enhancements to MapServer and ongoing support of PHP / MapScript. It would be a big help to us if we could get a sense of how large the user base is for the PHP/MapScript module and how it is being used. I would appreciate it if I could get a quick note from those of you using the module indicating: 1. Type of organization 2. Brief description of how PHP/MapScript is being used in your organization 3. Number of applications in use. Please respond directly to me as I'm sure the whole list doesn't need to see all of this. I will only use summary information only, not individual information to assist us. I'm expecting to get quite a few messages, so I can't promise I'll be responding to each message, but I will post a summary of our findings to the list in case anyone else out there is wondering. Thanks for all your assistance. With any luck, it will result in further enhancements to MapServer for all of us to enjoy. Dave -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca ---------------------------- Innovative Spatial Solutions ---------------------------- EMail : McIlhagga at DMSolutions.ca Phone : 613-565-5056 Cell : 613-261-3913 Fax : 707-222-1943 Address : 116 Lisgar St., Suite 400, Ottawa, Ontario K2P 0C2 From paul at toolscenter.org Fri Aug 10 06:07:54 2001 From: paul at toolscenter.org (Paul Selormey) Date: Fri, 10 Aug 2001 22:07:54 +0900 Subject: [mapserver-users] Re: [Freegis-list] free DBF editor ? is there anyone? References: <008801c1214e$814c1fe0$0c01a8c0@intranet> Message-ID: <003901c1219d$797f6a20$700201c0@nsepaul> Hello, I do not know of any or have one. However, I am currently playing a lot with shapefiles and could work on one if you can come with some specifications. Also, I work mainly on the Windows platform for developments and will not be able to handle Linux/Unix stuff immediately. Best regards, Paul. ----- Original Message ----- From: Eduardo Patto Kanegae To: MapServer-Users ; FreeGIS Sent: Friday, August 10, 2001 12:41 PM Subject: [Freegis-list] free DBF editor ? is there anyone? ----- Original Message ----- From: Eduardo Patto Kanegae To: mapserver-users at lists.gis.umn.edu Sent: Tuesday, August 07, 2001 6:22 PM Subject: free DBF editor ? is there anyone? does anybody know an editor for DBF files maintance? i have to add fields to my shapefiles but don't have(too much expensive) ESRI ArvView.... any GPL tool or somethin like this... -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at toolscenter.org Fri Aug 10 06:11:05 2001 From: paul at toolscenter.org (Paul Selormey) Date: Fri, 10 Aug 2001 22:11:05 +0900 Subject: [mapserver-users] Re: [Freegis-list] free DBF editor ? is there anyone? References: <008801c1214e$814c1fe0$0c01a8c0@intranet> Message-ID: <004101c1219d$ec050aa0$700201c0@nsepaul> Hello, Are you a computer programmer? MS VC++ database sample DBViewer has editing features you might wish to take a look. If you are not a programmer, I could send a compiled binary to you directly. Best regards, Paul. ----- Original Message ----- From: Eduardo Patto Kanegae To: MapServer-Users ; FreeGIS Sent: Friday, August 10, 2001 12:41 PM Subject: [Freegis-list] free DBF editor ? is there anyone? ----- Original Message ----- From: Eduardo Patto Kanegae To: mapserver-users at lists.gis.umn.edu Sent: Tuesday, August 07, 2001 6:22 PM Subject: free DBF editor ? is there anyone? does anybody know an editor for DBF files maintance? i have to add fields to my shapefiles but don't have(too much expensive) ESRI ArvView.... any GPL tool or somethin like this... -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at toolscenter.org Fri Aug 10 06:07:54 2001 From: paul at toolscenter.org (Paul Selormey) Date: Fri, 10 Aug 2001 22:07:54 +0900 Subject: [mapserver-users] Re: [Freegis-list] free DBF editor ? is there anyone? References: <008801c1214e$814c1fe0$0c01a8c0@intranet> Message-ID: <003901c1219d$797f6a20$700201c0@nsepaul> Hello, I do not know of any or have one. However, I am currently playing a lot with shapefiles and could work on one if you can come with some specifications. Also, I work mainly on the Windows platform for developments and will not be able to handle Linux/Unix stuff immediately. Best regards, Paul. ----- Original Message ----- From: Eduardo Patto Kanegae To: MapServer-Users ; FreeGIS Sent: Friday, August 10, 2001 12:41 PM Subject: [Freegis-list] free DBF editor ? is there anyone? ----- Original Message ----- From: Eduardo Patto Kanegae To: mapserver-users at lists.gis.umn.edu Sent: Tuesday, August 07, 2001 6:22 PM Subject: free DBF editor ? is there anyone? does anybody know an editor for DBF files maintance? i have to add fields to my shapefiles but don't have(too much expensive) ESRI ArvView.... any GPL tool or somethin like this... -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkishor at GeoAnalytics.com Fri Aug 10 06:47:22 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 10 Aug 2001 08:47:22 -0500 Subject: [mapserver-users] free DBF editor ? is there anyone? In-Reply-To: Message-ID: <200108101348.IAA12083@lists.gis.umn.edu> Quick tips on using Excel to work on dbfs -- 1. contiguous rectangular range named "Database" is saved as dbf. 2. width of column determines width of field (change width by dragging the column edges...) keep the width whole numbers. 3. the first row contains field names. Field names have to be 10 characters or less. 4. the values in the second row define the field. More on #4 above -- if a column is called "BIRTHDATE" (that is, "BIRTHDATE" is entered in the first row), that column won't automatically become a date column. If the second row in that column contains a valid date then that column will become a date column, otherwise it will default to text. Be careful, even an empty cell in the second row will screw up the column definition. Don't delete a row... that will screw up the alignment with the shape file! If you add a column (or delete one), select the entire range of cells, and redefine it as "Database" (you should see the range name just to the left of the entry box above the sheet. Hth, pk/ On Friday, August 10, 2001, at 01:13 AM, Speh Sylvain wrote: > Hi, > > On Windows,I tried Excel 2000, but I couln'd add any kind of column. > Excel > Apparently doesn't find the release of the DBFILE ( looking for a 3+ or > a 4 > one ). But I succeeded in changing text values. > > > If this could help you ... > > > > -----Message d'origine----- > De : Puneet Kishor [mailto:pkishor at GeoAnalytics.com] > Envoy? : vendredi 10 ao?t 2001 06:53 > ? : Eduardo Patto Kanegae > Cc : MapServer-Users; FreeGIS > Objet : Re: [mapserver-users] free DBF editor ? is there anyone? > > > On Thursday, August 9, 2001, at 10:41 PM, Eduardo Patto Kanegae wrote: > > ? > ----- Original Message ----- > From: Eduardo Patto Kanegae > To: mapserver-users at lists.gis.umn.edu > Sent: Tuesday, August 07, 2001 6:22 PM > Subject: free DBF editor ? is there anyone? > > does anybody know an editor for DBF files maintance? > ? > i have to add fields to my shapefiles but don't have(too much expensive) > ESRI ArvView.... > ? > any GPL tool or somethin like this... > ---- > > most spreadsheet kinda tools will open dbf files... try StarOffice... > the spreadsheet as well as the database module will work with dbf files. > Be careful with the row order... don't delete any rows or reorder > them... they will get out of sync with your shp file and then you would > be royally screwed. Otherwise, you can edit their contents to your > heart's fill. > > Btw, you would be better off storing only a featureid in the dbf file > and moving all the attributes to a real database such as MySQL. > -- Puneet Kishor pkishor at eidesis.org From morissette at dmsolutions.ca Fri Aug 10 07:26:46 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 10 Aug 2001 10:26:46 -0400 Subject: [mapserver-users] shape->intesects References: <997390697.3b72f969a1185@imp.free.fr> Message-ID: <3B73EF26.574FC9E@dmsolutions.ca> Jean-Fran?ois MONY wrote: > > I've some questions on the intersects fonction of a shape object. > I've tried it on multi-part polygon and the result was not really fine. > After some search, I find that the total inclusion of a polygon in another was > not take in count by this function. > > After a look on the mapscript.i, I thought that the problem came from : > > > But I've tried to recompil mapserver with the following modification, and > nothing change. > > return msIntersectPolygons(self, shape); <<======= > > Is there somebody with a comment or an idea ? > PHP MapScript uses a modified copy of mapscript.i that is C-compilable... it's in mapscript/php3/mapscript_i.c ... if you make your change there then you should see the change. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Fri Aug 10 07:31:29 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 10 Aug 2001 09:31:29 -0500 Subject: [mapserver-users] help! About Character-Set used in label Message-ID: This is more a GD issue than MapServer. GD bitmap fonts have very limited character sets so they won't be of much use. However, newer versions of GD with Freetype have been extended to deal with international character sets and should support just about anything as long as the correct character mappings are present in the font. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Zhou Xu 08/10/01 01:18AM >>> Hi, I am using mapserver and php/mapscript,but I am troubled by the Character-set. I mean there are a lot of Chinese characters in my data, but I can't put them as label on the rendered map, which is necessary for me. would you please share your experience with me? any words about this is appreciated. ------------------------------------------------------------------------------------------- Zhou,Xu ZiZhuYuan BaishengCun No.1 NGCC Post Code, 100044 Beijing, China Phone: +86 10 86851042 Fax: +86 10 68424101 Email: std at nsdi.gov.cn ------------------------------------------------------------------------------------------- From vieglais at ku.edu Fri Aug 10 07:36:58 2001 From: vieglais at ku.edu (Dave Vieglais) Date: Fri, 10 Aug 2001 09:36:58 -0500 Subject: [mapserver-users] FW: Need direction for enhancing Mapserver In-Reply-To: <3B7343A0.D44D03BD@socialchange.net.au> Message-ID: <001401c121a9$e91df9d0$d9c9ed81@life.ku.edu> Take a look at http://alexandria.sdc.ucsb.edu/~gjanee/gazettr/specification.html for an ADL's spec for a gazetteer service. I'm not sure if they have actually implemented it though (at least not publicly). Dave V. >-----Original Message----- >From: owner-mapserver-users at lists.gis.umn.edu >[mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of >Rob Atkinson >Sent: Thursday, August 09, 2001 9:15 PM >To: Dan_Stevens at stricom.army.mil >Cc: mapserver-users at lists.gis.umn.edu; Chan_Huynh at stricom.army.mil >Subject: Re: [mapserver-users] FW: Need direction for >enhancing Mapserver > > > >You need a "gazetteer service" - do you build it internally >(stovepipe) or do you link to network >addressable services. I'm working up a spec for the OpenGIS >consortium for this service, and looking >for sponsors for an implementation pilot. > >Q: Do want you implement mapserver as a gazetteer (possible) >or link to other database services >(more likely)? > >Regards > >Rob Atkinson > >Dan_Stevens at stricom.army.mil wrote: > >> on the GUI side, and can already use the mapserver to query >her world map >> to get the coordinates for a requested area, but the user >must manually >> enter the text lat/long to actually retrieve the data, a >process that is >> both "user unfriendly" and error prone. > > From steve.lime at dnr.state.mn.us Fri Aug 10 07:36:23 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 10 Aug 2001 09:36:23 -0500 Subject: [mapserver-users] maximum number of classes Message-ID: Hey, they seemed like reasonable limits at the time. The current limit on layers is 100, and for classes it's 50. You can certainly change them, but not at runtime. You'll have to edit map.h and change the values for MS_MAXLAYERS and MS_MAXCLASSES to suit your needs and re-compile. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nicolau Werneck 08/09/01 06:01PM >>> The documentation says that there's a maximum number of 50 layers possibe to define in a map file... Is there also a maximum number of 50 classes to be defined on a layer??? Whyyyyy? :( ++nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From morissette at dmsolutions.ca Fri Aug 10 07:34:31 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 10 Aug 2001 10:34:31 -0400 Subject: [mapserver-users] PHP ZoomPoint References: Message-ID: <3B73F0F7.7B731AC6@dmsolutions.ca> ANDREW WOOLEY wrote: > > When I echo the extent minx, etc. it gives reasonable coordinates for the map extent (1800193, 825044, 2115496, 542882), however, after this code executes and I echo the new extent, I get good values for some of the coordinates but not others (1877442.235, -78702.92, 2035093.735, 78702.92). Can someone explain to me what I am doing wrong and why the negative values show up? Thanks. > You wrote that your original extents were: (1800193, 825044, 2115496, 542882) I notice that YMin > YMax ... maybe that confused the ZoomPoint() function... try again with YMin < YMax ... and if it works this time then please file a bug in the MapServer bugzilla about this and we'll fix ZoomPoint() to deal with this properly. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From vrraju Fri Aug 10 09:00:37 2001 From: vrraju (Ranga Raju Vatsavai) Date: Fri, 10 Aug 101 11:00:36 -0500 (CDT) Subject: [mapserver-users] Post in mapserver mailing list (fwd) Message-ID: <200108101600.LAA13432@lists.gis.umn.edu> Forwarded message: From robert.schmitz-huebsch at web.de Sun Aug 5 03:36:17 2001 From: robert.schmitz-huebsch at web.de (Robert Schmitz-Huebsch) Date: Sun, 05 Aug 2001 12:36:17 +0200 Subject: Post in mapserver mailing list Message-ID: <3B6D21A1.B08509E4@web.de> Hi, I use Mapserver for my theoratical thesis at the University of Hannover, Germany (and maybe later, too :-)). I would like to participate in some of the discussions of the mapserver mailing listing or open a new thread, maybe. But I found that the HTML-Interface at http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users does not let me do so - do I have to sign up somewhere? Where? As a work around, could you be so kind and forward the following request to the list for me, please? ...maybe you have an idea about it already. Thanks, Robert ______________________________________________________________________________ Hi, I try to set up an attribute query with mapserver. All hits ought to be shown highlighted in the map. 130.75.85.56/uni2_init.html I have a shapefile layer with an attribute field called "qual". The values 0, 1 or 2 are saved in the column. I already used the following possibilities: HTML: mode="itemquery" (many different possible) item="qual" value="0,1,2" (you can choose with HTML-Interface) qlayer="therightlayer" .map-file: QUERYITEM="qual" EXPRESSION="?!??!" (is this really necessary?) Bye the way: ...what does "searchmap" do? Why do I always get the "no results found"-answer? Following the Mapserver Testsuite Example 4 (http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html), all this should be really a piece of cake.... Do I have to prepare the data in a special way? Is there a "White Paper" or full-featured FAQ for Mapserver yet? Please help! Thanks a lot for advice, Robert -------------- next part -------------- A non-text attachment was scrubbed... Name: robert.schmitz-huebsch.vcf Type: text/x-vcard Size: 226 bytes Desc: Visitenkarte f?r Robert Schmitz-Huebsch URL: From ncowham at forumone.com Fri Aug 10 09:01:58 2001 From: ncowham at forumone.com (Nyk Cowham) Date: Fri, 10 Aug 2001 12:01:58 -0400 Subject: [mapserver-users] Earth Force Green.org site launched Message-ID: Last week Forum One Communications finally launched the Earth Force GREEN site (http://www.green.org/). The site provides resources for educators who are teaching courses in watershed water quality monitoring. Educators can create a water monitoring project and add data to a central database of water quality data. They can then generate charts comparing this data over time and with other multiple comparator monitoring sites. We used MapServer and Perl Mapscript to provide an easy way for project owners to locate their monitoring site and find the watershed HUC code and lat/long coordinates of the site. Once they have selected their site location it will be added to the national map of GREEN monitoring sites (http://www.green.org/sites/map/index.cgi?map=greensites.map) Special thanks go to Stephen Lime for helping me add an additional method to mapscript to handle templates. Nyk Cowham Forum One Communications http://www.forumone.com/ Communicate Collaborate Change the world -------------- next part -------------- A non-text attachment was scrubbed... Name: Nyk Cowham.vcf Type: text/x-vcard Size: 220 bytes Desc: Nyk Cowham.vcf URL: From morissette at dmsolutions.ca Fri Aug 10 09:07:32 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 10 Aug 2001 12:07:32 -0400 Subject: [mapserver-users] what 'bout mapserver's future References: <008201c1214e$54505100$0c01a8c0@intranet> Message-ID: <3B7406C4.D373C0C9@dmsolutions.ca> Eduardo Patto Kanegae wrote: > > so, finally , my question is : > -and what about the future? could mapserver loose its projects like > Nautilus(EazeL)? > and what i can do help keeping this project alive? > MapServer can't "lose" it's project... it's an Open Source project so it will exist as long as people will contribute to it. That also means Microsoft (or another giant) cannot decide to buy the rights on MapServer tomorrow and shut it down. ;) However, as I wrote an Open Source project survives because of its users and its contributors... so what you (and everyone else reading this) can do to help depends on who you are and on your skills. In addition to "joining the party" and building/showing nice apps, you can contribute by: - If you're an application developer: - publish and document the source of your apps to help others getting started - join the documentation project and contribute some HOWTOs - review existing documentation and suggest fixes/improvements - support new users on the mailing list - help by regularily testing CVS snapshots on several architectures - If you're a C/C++ developer: - all of the above! :) - help with testing/fixing bugs reported on the list. - implement new features - If you're a company or an organization using Mapserver: - I'm sure you use it because it's better and not because it's free :) but anyway think about all the money you saved on server licenses and try to return something to the MapServer community, either by funding enhancements to MapServer or if you have experienced MapServer application developers in-house who would like to contribute to the MapServer project then your company could contribute by letting them do it on company time. All this will help keep MapServer alive... and keep in mind that almost everyone with a bit of experience with MapServer has something they can contribute. If you think you can help they don't hesitate and go ahead! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From AWOOLEY at mountainland.org Fri Aug 10 09:10:52 2001 From: AWOOLEY at mountainland.org (ANDREW WOOLEY) Date: Fri, 10 Aug 2001 10:10:52 -0600 Subject: [mapserver-users] PHP ZoomPoint Message-ID: Thanks to everyone who replied and offered their help. This list rocks. This is the correct answer: For my rect extent, I changed the maxy and the miny and it worked as advertised. Thanks very much for the assistance. Daniel, is this a bug or is it just my stupidity? It seems more likely to be the latter. Thanks again. Andrew Andrew Wooley GIS Operations Manager Mountainland Association of Governments Orem, UT phone: 801.229.3844 fax: 801.229.3801 email: awooley at mountainland.org >>> Daniel Morissette 08/10 8:34 AM >>> ANDREW WOOLEY wrote: > > When I echo the extent minx, etc. it gives reasonable coordinates for the map extent (1800193, 825044, 2115496, 542882), however, after this code executes and I echo the new extent, I get good values for some of the coordinates but not others (1877442.235, -78702.92, 2035093.735, 78702.92). Can someone explain to me what I am doing wrong and why the negative values show up? Thanks. > You wrote that your original extents were: (1800193, 825044, 2115496, 542882) I notice that YMin > YMax ... maybe that confused the ZoomPoint() function... try again with YMin < YMax ... and if it works this time then please file a bug in the MapServer bugzilla about this and we'll fix ZoomPoint() to deal with this properly. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Fri Aug 10 09:24:55 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 10 Aug 2001 12:24:55 -0400 Subject: [mapserver-users] PHP ZoomPoint References: Message-ID: <3B740AD7.E4D4A571@dmsolutions.ca> ANDREW WOOLEY wrote: > > This is the correct answer: For my rect extent, I changed the maxy and the miny and it worked as advertised. Thanks very much for the assistance. > > Daniel, is this a bug or is it just my stupidity? It seems more likely to be the latter. Thanks again. > Micro$oft would close this issue by saying "this is by design" (I love it when I read this on their website! :) However, even if you're expected to provide MinY < MaxY I think the function should be strong enough to deal with that common mistake... and for this reason I filed it as a bug which will hopefully be fixed before the official 3.5 release: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=33 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From AWOOLEY at mountainland.org Fri Aug 10 09:42:17 2001 From: AWOOLEY at mountainland.org (ANDREW WOOLEY) Date: Fri, 10 Aug 2001 10:42:17 -0600 Subject: [mapserver-users] PHP ZoomPoint Message-ID: Ah, the beauties of the open source model. No silly pride to get in the way. You guys rock! Thanks very much for the wonderful tools. OK, so now I am gushing. Sorry. Andrew Andrew Wooley GIS Operations Manager Mountainland Association of Governments Orem, UT phone: 801.229.3844 fax: 801.229.3801 email: awooley at mountainland.org >>> Daniel Morissette 08/10 10:24 AM >>> ANDREW WOOLEY wrote: > > This is the correct answer: For my rect extent, I changed the maxy and the miny and it worked as advertised. Thanks very much for the assistance. > > Daniel, is this a bug or is it just my stupidity? It seems more likely to be the latter. Thanks again. > Micro$oft would close this issue by saying "this is by design" (I love it when I read this on their website! :) However, even if you're expected to provide MinY < MaxY I think the function should be strong enough to deal with that common mistake... and for this reason I filed it as a bug which will hopefully be fixed before the official 3.5 release: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=33 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From mscharber at josh.ucsd.edu Fri Aug 10 09:49:38 2001 From: mscharber at josh.ucsd.edu (Michael Scharber) Date: Fri, 10 Aug 2001 09:49:38 -0700 (PDT) Subject: [mapserver-users] what 'bout mapserver's future In-Reply-To: <200108100450.XAA07282@lists.gis.umn.edu> Message-ID: I couldn't agree more with both of you. I've only just started playing with MapServer and already I am thoroughly impressed by both it's ease of use and rich functionality. One thing someone should write though, is an Oracle Spatial CONNECTIONTYPE (and support for it of course). That way someone with Oracle Spatial, but no SDE (could you imagine paying for and maintaining both), could just plug in their layers from "Spatial" and be up and running with MapServer in no time whatsoever. Anyway, thanks to MapServer I have renewed faith in publicly available spatial software...especially web mapping software like MapServer. Keep up the excellent work! :) Michael On Thu, 9 Aug 2001, Puneet Kishor wrote: > > On Thursday, August 9, 2001, at 10:40 PM, Eduardo Patto Kanegae wrote: > > > i've been studing 'n' trying MapServer since the last 12 months... > > i was searching for a good GPL+web+gis tool to avoid ArcIMS, cause > > it's too much expensive and so...i saw mapserver and this list. > > > > i've liked too much because: > > -it's free! it's GPL > > -it's simple to use(does anybody here has developed something with ESRI > > MapObjects with VisualBasic? :-( ) > > -it's fast > > -it's stable : it is at 3.x version... it's better than 0.2 or 0.5 .... > > -it's portable : u can use it under Linux or Windows with a little of > > modifications > > -... > > > > so, finally , my question is : > > -and what about the future? could mapserver loose its projects like > > Nautilus(EazeL)? > > and what i can do help keeping this project alive? > > Believe in it, and join the party, dude. The more people use it, the > more people discover bugs and problems with it, the more people spread > the word, the more people demo nice sites built with it, the better it > is gonna be for Mapserver. > > > > -- > Puneet Kishor > pkishor at eidesis.org > From warmerdam at pobox.com Fri Aug 10 10:42:45 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 10 Aug 2001 13:42:45 -0400 Subject: [mapserver-users] what 'bout mapserver's future References: Message-ID: <3B741D15.8090602@pobox.com> Michael Scharber wrote: >I couldn't agree more with both of you. I've only just started playing >with MapServer and already I am thoroughly impressed by both it's ease of >use and rich functionality. > >One thing someone should write though, is an Oracle Spatial CONNECTIONTYPE >(and support for it of course). That way someone with Oracle Spatial, but >no SDE (could you imagine paying for and maintaining both), could just >plug in their layers from "Spatial" and be up and running with MapServer >in no time whatsoever. > Michael, Who has Oracle Spatial and would be willing to work on such a thing? I happen to have recently received it (for NT) but haven't installed it yet. I imagine the PostGIS link could be fairly easily translated into an Oracle link if needed. 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 vieglais at ku.edu Fri Aug 10 11:06:25 2001 From: vieglais at ku.edu (Dave Vieglais) Date: Fri, 10 Aug 2001 13:06:25 -0500 Subject: [mapserver-users] MapServer COM interface In-Reply-To: Message-ID: <001c01c121c7$2bbf4b50$d9c9ed81@life.ku.edu> Speaking about the future of MapServer... I'm in the process of constructing a COM library for mapserver which will provide similar functionality to MapScript except for COM aware scripting languages such as VBA, VBScript and JavaScript on Win32 machines. The idea is to enable tighter integration of MapServer with IIS (for us poor souls that use Microsoft IIS for web services), and also to enable basic map drawing facilities in apps like Excel, Word and other "scriptable" apps. Right now the software has about half the functionality of regular MapScript (it can draw and zoom, save images, but not much more). I have no idea of how long it will be before the code will be ready for general testing/use but to give an indication, the work is being done in spare time, so it could take a while... Before I get too far down the road though, I wanted to check if anyone else was doing similar work- no point in duplicating effort. So if you are, and/or are intersted in sharing some effort, please drop me a line. cheers, Dave V. ========================= David A. Vieglais University of Kansas Natural History Museum & Biodiversity Research Center http://www.nhm.ukans.edu From steve.lime at dnr.state.mn.us Fri Aug 10 11:09:06 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 10 Aug 2001 13:09:06 -0500 Subject: [mapserver-users] PHP ZoomPoint Message-ID: Guess I should fix that then in the CGI version... Steve >>> "ANDREW WOOLEY" 08/10/01 11:42AM >>> Ah, the beauties of the open source model. No silly pride to get in the way. You guys rock! Thanks very much for the wonderful tools. OK, so now I am gushing. Sorry. Andrew Andrew Wooley GIS Operations Manager Mountainland Association of Governments Orem, UT phone: 801.229.3844 fax: 801.229.3801 email: awooley at mountainland.org >>> Daniel Morissette 08/10 10:24 AM >>> ANDREW WOOLEY wrote: > > This is the correct answer: For my rect extent, I changed the maxy and the miny and it worked as advertised. Thanks very much for the assistance. > > Daniel, is this a bug or is it just my stupidity? It seems more likely to be the latter. Thanks again. > Micro$oft would close this issue by saying "this is by design" (I love it when I read this on their website! :) However, even if you're expected to provide MinY < MaxY I think the function should be strong enough to deal with that common mistake... and for this reason I filed it as a bug which will hopefully be fixed before the official 3.5 release: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=33 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From ncowham at forumone.com Fri Aug 10 11:22:35 2001 From: ncowham at forumone.com (Nyk Cowham) Date: Fri, 10 Aug 2001 14:22:35 -0400 Subject: [mapserver-users] Earth Force Green.org site launched Message-ID: Lowell: As the developer I did in fact submit a request for a link to MapServer to be included on the credits page of the site before the site launched. However, the client argued that if we include links to MapServer, then why not also include links to Apache, MySQL, PHP and all the other software we have used (which they will not approve). I am having much better luck arguing for credits to National Atlas for providing the base map data. The credit to Forum One on the site was contractual condition before development on the site started and I was not involved in that. If there was provision in the Mapscript license that required branding for MapServer to be included for all uses that would have been a different matter. Essentially, we did not use the CGI application but Mapscript - which is a perl module/library. Again, if we credited Mapscript, then why not Template Toolkit which was also and important library we used for developing the application. If you can give me a compelling argument I can use for why Mapscript/MapServer should be credited and not the other technologies we used I will be happy to hear it. You can also try lobbying the client to include a credit for our use of mapscript. I have not been coy about crediting the MapServer project with providing excellent base technology for the application; including promotiton of MapServer at The Perl Conference in San Diego last month in both the talk on Geo::TigerLine and Geo::Walkabout and in the BOF, and on various Perl Monger lists. The GREEN site may be publically cited on any site promoting Mapscript/MapServer. Nyk Cowham > -----Original Message----- > From: Nyk Cowham > Sent: Friday, August 10, 2001 12:02 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Earth Force Green.org site launched > > > Last week Forum One Communications finally launched the Earth Force > GREEN site (http://www.green.org/). The site provides resources for > educators who are teaching courses in watershed water quality > monitoring. Educators can create a water monitoring project > and add data > to a central database of water quality data. They can then generate > charts comparing this data over time and with other multiple > comparator > monitoring sites. > > We used MapServer and Perl Mapscript to provide an easy way > for project > owners to locate their monitoring site and find the watershed HUC code > and lat/long coordinates of the site. Once they have selected > their site > location it will be added to the national map of GREEN > monitoring sites > (http://www.green.org/sites/map/index.cgi?map=greensites.map) > > Special thanks go to Stephen Lime for helping me add an additional > method to mapscript to handle templates. > > Nyk Cowham > Forum One Communications > http://www.forumone.com/ > Communicate Collaborate Change the world > From steve.lime at dnr.state.mn.us Fri Aug 10 12:00:51 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 10 Aug 2001 14:00:51 -0500 Subject: [mapserver-users] what 'bout mapserver's future Message-ID: There are 2 parties I've been in contact with that are pursuing this, and yes they've been introduced to each other but I don't know the extent of any discussions. They can chime in at anytime. Having not seen the Oracle C API I don't know which (OGR/PostGIS or SDE) it more closely resembles but I'm sure one of those can act as a model. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Frank Warmerdam 08/10/01 12:42PM >>> Michael Scharber wrote: >I couldn't agree more with both of you. I've only just started playing >with MapServer and already I am thoroughly impressed by both it's ease of >use and rich functionality. > >One thing someone should write though, is an Oracle Spatial CONNECTIONTYPE >(and support for it of course). That way someone with Oracle Spatial, but >no SDE (could you imagine paying for and maintaining both), could just >plug in their layers from "Spatial" and be up and running with MapServer >in no time whatsoever. > Michael, Who has Oracle Spatial and would be willing to work on such a thing? I happen to have recently received it (for NT) but haven't installed it yet. I imagine the PostGIS link could be fairly easily translated into an Oracle link if needed. 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 Matt.Wilkie at gov.yk.ca Fri Aug 10 12:05:47 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Fri, 10 Aug 2001 12:05:47 -0700 Subject: [mapserver-users] Earth Force Green.org site launched Message-ID: <6DD7370C9452D31192A10008C75D07530B6F545E@raptor.gov.yk.ca> > However, the client argued that if we include links to > MapServer, then why not also include links to Apache, > MySQL, PHP and all the other software we have used Why not indeed. Perhaps a page for "About this site's technology" where all of the players could be credited would be appropriate. just a thought, -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From ncowham at forumone.com Fri Aug 10 13:45:23 2001 From: ncowham at forumone.com (Nyk Cowham) Date: Fri, 10 Aug 2001 16:45:23 -0400 Subject: [mapserver-users] Earth Force Green.org site launched Message-ID: > > However, the client argued that if we include links to > > MapServer, then why not also include links to Apache, > > MySQL, PHP and all the other software we have used > > Why not indeed. Perhaps a page for "About this site's > technology" where all of the players could be credited > would be appropriate. > > just a thought, > > -matt Oh absolutely! As an open source developer working with mostly open source solutions I am encourage giving due credit to developers and showcasing the underlying technologies of the sites we build. However, this client is not interested in the fact that we use open source, and they do not want any references to underlying technology on their site. However, many of our other clients really don't care about what we do with the credits pages we add and I try whenever possible to use them as an advocacy platform for the open source software we use. Nyk. From eduardo at metodoinv.com.br Sat Aug 11 13:53:26 2001 From: eduardo at metodoinv.com.br (Eduardo Patto Kanegae) Date: Sat, 11 Aug 2001 17:53:26 -0300 Subject: [mapserver-users] how to save data without puting it on shapefiles .DBF's References: <200108100452.f7A4qS311318@omecihuatl.rz.uni-osnabrueck.de> Message-ID: <006501c122a7$ac43eca0$0c01a8c0@intranet> ----- Original Message ----- From: Eduardo Patto Kanegae To: mapserver-users at lists.gis.umn.edu Sent: Tuesday, August 07, 2001 6:22 PM Subject: free DBF editor ? is there anyone? does anybody know an editor for DBF files maintance? i have to add fields to my shapefiles but don't have(too much expensive) ESRI ArvView.... any GPL tool or somethin like this... ---- most spreadsheet kinda tools will open dbf files... try StarOffice... the spreadsheet as well as the database module will work with dbf files. Be careful with the row order... don't delete any rows or reorder them... they will get out of sync with your shp file and then you would be royally screwed. Otherwise, you can edit their contents to your heart's fill. Btw, you would be better off storing only a featureid in the dbf file and moving all the attributes to a real database such as MySQL. @@@yes, someone has already said this to me: "for each polygon/line/point at a shapefile @@@it's better to create a unique ID and save this same ID to a table in database. @@@but how could i do my theme queries after doing this? -- Puneet Kishor pkishor at eidesis.org _______________________________________________ Freegis-list mailing list Freegis-list at intevation.de http://intevation.de/mailman/listinfo/freegis-list From Antti.Roppola at brs.gov.au Sat Aug 11 20:54:10 2001 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Sun, 12 Aug 2001 13:54:10 +1000 Subject: [mapserver-users] free DBF editor ? is there anyone? Message-ID: <595FE28AB1EBD111920F0060B06B3DD70730C06D@ACTMAIL2> Perl will do it (use the XBase modules). use XBase; my $newtable = XBase->create("name" => "copy.dbf", "field_names" => [ "ID", "MSG" ], "field_types" => [ "N", "C" ], "field_lengths" => [ 6, 40 ], "field_decimals" => [ 0, undef ]); Cheers, Antti From clip at idirect.com Sun Aug 12 10:45:12 2001 From: clip at idirect.com (clip) Date: Sun, 12 Aug 2001 13:45:12 -0400 Subject: [mapserver-users] Zoom-out using Mapplet rubber-band box on Reference Map Image Message-ID: <3B76C0A8.15C59844@idirect.com> Is it possible to use the rubber-band zoom-box function of the "mapplet" java applet, on a reference map to "zoom-out". I'd like to be able to do this after users have zoomed-in and then want to zoom-out to a different area and extent on the reference map, rather then force them to return to the initial map extent and begin all over to zoom-in on the new area they are interested in. Tom Cadman Planner Regional Municipality of Durham From armin.burger at territoriumonline.com Mon Aug 13 01:17:51 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Mon, 13 Aug 2001 10:17:51 +0200 Subject: [mapserver-users] truetype support for 3.5 win binaries? Message-ID: <200108130817.KAA07587@efferd.nettz.com> Is there any win binary for ms 3.5 that has truetype support built in? The readme file says 'compiled with this distribution are: PNG, JPEG, TIFF/GeoTIFF, Proj4, Freetype 2.' but when I configure labels to use truetype I get the following error message: 'msGetLabelSize(): TrueType Font error. libgd was not built with TrueType font support'. I used the gif version (the readme file is probably the same for png and gif). The php enabled version from dm solutions offers tt support but the result of the output is a bit poor, no comparison to the good quality from the ms 3.4. I dont't have a clue, is it necessary to install Freetype additionally? Thanks for any help Armin -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia _ From kames at keyspanenergy.com Mon Aug 13 07:13:53 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Mon, 13 Aug 2001 10:13:53 -0400 Subject: [mapserver-users] Java Applet Development Message-ID: <3B77E0A1.4AE5CB93@keyspanenergy.com> Are there any users/developers who have played with a Java interface to MapServer data, other than the wonderful mapimage applet? I'm thinking of a measuring tool that could be used to make a rudimentary ruler, where a user could click from point-to-point-to-point, drawing a line and getting an indication of the length of the line that was drawn. The maps I render are typically only in the "town/neighborhood" range, and I can't speak to great-circles, projections vs decimal degrees, etc. But I would think that a map that has a given extent would have some sort of distance per pixel value that could be calculated and applied to a line drawing tool. Specifically, I'd like to be able to offer the user the ability to get an Ad-Hoc distance estimate when viewing a neighborhood by "tracing" a line over the streets they're viewing and figure out how many linear feet (meters/yards) were traveled: as opposed to "as the crow flies" straight line distances. Any Java-wise users out there that have explored this kind of functionality? Thanks, Kieran From morissette at dmsolutions.ca Mon Aug 13 07:29:09 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 13 Aug 2001 10:29:09 -0400 Subject: [mapserver-users] Java Applet Development References: <3B77E0A1.4AE5CB93@keyspanenergy.com> Message-ID: <3B77E435.D3F82CD3@dmsolutions.ca> Kieran, The ROSA applet can do exactly that... see section "4 - distance measurement tool" in the ROSA docs at http://www2.dmsolutions.ca/webtools/rosa/rosa_params.html You can see an example of it in use in Environment Canada's species at risk application at http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml The measured distance is displayed in the status bar of the browser window... no need to say that the distance is only approximative due to the projection issues that you mentioned. Best Regards, Daniel "Kieran J. Ames" wrote: > > Are there any users/developers who have played with a Java interface to > MapServer data, other than the wonderful mapimage applet? > I'm thinking of a measuring tool that could be used to make a > rudimentary ruler, where a user could click from > point-to-point-to-point, drawing a line and getting an indication of the > length of the line that was drawn. > The maps I render are typically only in the "town/neighborhood" range, > and I can't speak to great-circles, projections vs decimal degrees, etc. > But I would think that a map that has a given extent would have some > sort of distance per pixel value that could be calculated and applied to > a line drawing tool. Specifically, I'd like to be able to offer the user > the ability to get an Ad-Hoc distance estimate when viewing a > neighborhood by "tracing" a line over the streets they're viewing and > figure out how many linear feet (meters/yards) were traveled: as opposed > to "as the crow flies" straight line distances. > Any Java-wise users out there that have explored this kind of > functionality? > Thanks, > Kieran From mcilhagga at dmsolutions.ca Mon Aug 13 07:34:30 2001 From: mcilhagga at dmsolutions.ca (Dave McIlhagga) Date: Mon, 13 Aug 2001 10:34:30 -0400 Subject: [mapserver-users] Java Applet Development References: <3B77E0A1.4AE5CB93@keyspanenergy.com> Message-ID: <3B77E576.C4B416D3@dmsolutions.ca> Kieran, The ROSA applet supports this functionality directly: http://www2.dmsolutions.ca/mapserver/rosa/index.html Dave "Kieran J. Ames" wrote: > > Are there any users/developers who have played with a Java interface to > MapServer data, other than the wonderful mapimage applet? > I'm thinking of a measuring tool that could be used to make a > rudimentary ruler, where a user could click from > point-to-point-to-point, drawing a line and getting an indication of the > length of the line that was drawn. > The maps I render are typically only in the "town/neighborhood" range, > and I can't speak to great-circles, projections vs decimal degrees, etc. > But I would think that a map that has a given extent would have some > sort of distance per pixel value that could be calculated and applied to > a line drawing tool. Specifically, I'd like to be able to offer the user > the ability to get an Ad-Hoc distance estimate when viewing a > neighborhood by "tracing" a line over the streets they're viewing and > figure out how many linear feet (meters/yards) were traveled: as opposed > to "as the crow flies" straight line distances. > Any Java-wise users out there that have explored this kind of > functionality? > Thanks, > Kieran -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca ---------------------------- Innovative Spatial Solutions ---------------------------- EMail : McIlhagga at DMSolutions.ca Phone : 613-565-5056 Cell : 613-261-3913 Fax : 707-222-1943 Address : 116 Lisgar St., Suite 400, Ottawa, Ontario K2P 0C2 From bfischer at mpls.houstoneng.com Mon Aug 13 09:01:52 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Mon, 13 Aug 2001 11:01:52 -0500 Subject: [mapserver-users] Java Applet Development Message-ID: <8879CCE0F0187742B7302A93A8B87B090297DB@mpls.houstoneng.com> Kieran, The DM Solutions group also has an applet (Rosa Applet) that provides a measure tool. I am sure you will get plenty of responses, but incase you don't here is the web page for it (http://www2.dmsolutions.ca/mapserver/rosa/index.html) This should work for you. I would be a big user if this function was added to SDL's mapplet. -Brian -----Original Message----- From: Kieran J. Ames [mailto:kames at keyspanenergy.com] Sent: Monday, August 13, 2001 9:14 AM To: mapserver list Subject: [mapserver-users] Java Applet Development Are there any users/developers who have played with a Java interface to MapServer data, other than the wonderful mapimage applet? I'm thinking of a measuring tool that could be used to make a rudimentary ruler, where a user could click from point-to-point-to-point, drawing a line and getting an indication of the length of the line that was drawn. The maps I render are typically only in the "town/neighborhood" range, and I can't speak to great-circles, projections vs decimal degrees, etc. But I would think that a map that has a given extent would have some sort of distance per pixel value that could be calculated and applied to a line drawing tool. Specifically, I'd like to be able to offer the user the ability to get an Ad-Hoc distance estimate when viewing a neighborhood by "tracing" a line over the streets they're viewing and figure out how many linear feet (meters/yards) were traveled: as opposed to "as the crow flies" straight line distances. Any Java-wise users out there that have explored this kind of functionality? Thanks, Kieran From SDunning at nephrology.org Mon Aug 13 09:39:20 2001 From: SDunning at nephrology.org (Stephan Dunning) Date: Mon, 13 Aug 2001 11:39:20 -0500 Subject: [mapserver-users] small gmap bug? Message-ID: I could be wrong or this may have already been discovered, but I think I found a slight bug in the gmap75.php file that affects the zoom and query rectangles. The GMap75CheckClick() function includes the following code: if ($oPixelRect->minx > $oPixelRect->maxx) { // Use intval() to avoid dfTmp becoming a reference // to $oPixelRect->minx with PHP4 !?!?!? $dfTmp = intval($oPixelRect->minx); $oPixelRect->set("minx",$oPixelRect->maxx); $oPixelRect->set("maxx",$dfTmp); } if ($oPixelRect->miny < $oPixelRect->maxy) { $dfTmp = intval($oPixelRect->miny); $oPixelRect->set("miny", $oPixelRect->maxy); $oPixelRect->set("maxy", $dfTmp); } } Should - "if ($oPixelRect->miny < $oPixelRect->maxy)" be - "if ($oPixelRect->miny > $oPixelRect->maxy)" instead? Thanks, Stephan From chuynh at ideorlando.org Mon Aug 13 10:09:53 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Mon, 13 Aug 2001 13:09:53 -0400 Subject: [mapserver-users] FW: Need direction for enhancing Mapserver In-Reply-To: <001401c121a9$e91df9d0$d9c9ed81@life.ku.edu> Message-ID: somehow i cannot get the specified page. I tried http://alexandria.sdc.ucsb.edu the page said has moved to http://www.alexandria.sdc.ucsb.edu did try http://www.alexandria.sdc.ucsb.edu/~gjanee/gazettr/specification.html no luck! -chan -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Dave Vieglais Sent: Friday, August 10, 2001 10:37 AM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] FW: Need direction for enhancing Mapserver Take a look at http://alexandria.sdc.ucsb.edu/~gjanee/gazettr/specification.html for an ADL's spec for a gazetteer service. I'm not sure if they have actually implemented it though (at least not publicly). Dave V. >-----Original Message----- >From: owner-mapserver-users at lists.gis.umn.edu >[mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of >Rob Atkinson >Sent: Thursday, August 09, 2001 9:15 PM >To: Dan_Stevens at stricom.army.mil >Cc: mapserver-users at lists.gis.umn.edu; Chan_Huynh at stricom.army.mil >Subject: Re: [mapserver-users] FW: Need direction for >enhancing Mapserver > > > >You need a "gazetteer service" - do you build it internally >(stovepipe) or do you link to network >addressable services. I'm working up a spec for the OpenGIS >consortium for this service, and looking >for sponsors for an implementation pilot. > >Q: Do want you implement mapserver as a gazetteer (possible) >or link to other database services >(more likely)? > >Regards > >Rob Atkinson > >Dan_Stevens at stricom.army.mil wrote: > >> on the GUI side, and can already use the mapserver to query >her world map >> to get the coordinates for a requested area, but the user >must manually >> enter the text lat/long to actually retrieve the data, a >process that is >> both "user unfriendly" and error prone. > > From vieglais at ku.edu Mon Aug 13 10:18:47 2001 From: vieglais at ku.edu (Dave Vieglais) Date: Mon, 13 Aug 2001 12:18:47 -0500 Subject: [mapserver-users] FW: Need direction for enhancing Mapserver In-Reply-To: Message-ID: <000601c1241c$036c06a0$d9c9ed81@life.ku.edu> My appologies. The correct URL is: http://alexandria.sdc.ucsb.edu/~gjanee/gazetteer/specification.html sorry for the typos. >-----Original Message----- >From: Chan B. Huynh [mailto:chuynh at ideorlando.org] >Sent: Monday, August 13, 2001 12:10 PM >To: Dave Vieglais; mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] FW: Need direction for >enhancing Mapserver > > >somehow i cannot get the specified page. >I tried http://alexandria.sdc.ucsb.edu >the page said has moved to http://www.alexandria.sdc.ucsb.edu > >did try >http://www.alexandria.sdc.ucsb.edu/~gjanee/gazettr/specification.html >no luck! > >-chan > >-----Original Message----- >From: owner-mapserver-users at lists.gis.umn.edu >[mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Dave >Vieglais >Sent: Friday, August 10, 2001 10:37 AM >To: mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] FW: Need direction for enhancing >Mapserver > > >Take a look at > >http://alexandria.sdc.ucsb.edu/~gjanee/gazettr/specification.html > >for an ADL's spec for a gazetteer service. I'm not sure if they have >actually implemented it though (at least not publicly). > >Dave V. > >>-----Original Message----- >>From: owner-mapserver-users at lists.gis.umn.edu >>[mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of >>Rob Atkinson >>Sent: Thursday, August 09, 2001 9:15 PM >>To: Dan_Stevens at stricom.army.mil >>Cc: mapserver-users at lists.gis.umn.edu; Chan_Huynh at stricom.army.mil >>Subject: Re: [mapserver-users] FW: Need direction for >>enhancing Mapserver >> >> >> >>You need a "gazetteer service" - do you build it internally >>(stovepipe) or do you link to network >>addressable services. I'm working up a spec for the OpenGIS >>consortium for this service, and looking >>for sponsors for an implementation pilot. >> >>Q: Do want you implement mapserver as a gazetteer (possible) >>or link to other database services >>(more likely)? >> >>Regards >> >>Rob Atkinson >> >>Dan_Stevens at stricom.army.mil wrote: >> >>> on the GUI side, and can already use the mapserver to query >>her world map >>> to get the coordinates for a requested area, but the user >>must manually >>> enter the text lat/long to actually retrieve the data, a >>process that is >>> both "user unfriendly" and error prone. >> >> > From steve.lime at dnr.state.mn.us Mon Aug 13 10:26:39 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 13 Aug 2001 12:26:39 -0500 Subject: [mapserver-users] Fwd: Help connect data base for MySql and Module PHP Message-ID: An embedded message was scrubbed... From: "=?iso-8859-1?B?RGllZ28gSm9z6SBQYWRy824=?=" Subject: Help connect data base for MySql and Module PHP Date: Mon, 13 Aug 2001 09:38:14 +0000 Size: 1559 URL: From Jciavarelli at city.kamloops.bc.ca Mon Aug 13 11:45:02 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Mon, 13 Aug 2001 11:45:02 -0700 Subject: [mapserver-users] Java Applet Development Message-ID: Is the Rosa applet only available in the PHP environment? >>> Daniel Morissette 08/13/01 07:29AM >>> Kieran, The ROSA applet can do exactly that... see section "4 - distance measurement tool" in the ROSA docs at http://www2.dmsolutions.ca/webtools/rosa/rosa_params.html You can see an example of it in use in Environment Canada's species at risk application at http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml The measured distance is displayed in the status bar of the browser window... no need to say that the distance is only approximative due to the projection issues that you mentioned. Best Regards, Daniel "Kieran J. Ames" wrote: > > Are there any users/developers who have played with a Java interface to > MapServer data, other than the wonderful mapimage applet? > I'm thinking of a measuring tool that could be used to make a > rudimentary ruler, where a user could click from > point-to-point-to-point, drawing a line and getting an indication of the > length of the line that was drawn. > The maps I render are typically only in the "town/neighborhood" range, > and I can't speak to great-circles, projections vs decimal degrees, etc. > But I would think that a map that has a given extent would have some > sort of distance per pixel value that could be calculated and applied to > a line drawing tool. Specifically, I'd like to be able to offer the user > the ability to get an Ad-Hoc distance estimate when viewing a > neighborhood by "tracing" a line over the streets they're viewing and > figure out how many linear feet (meters/yards) were traveled: as opposed > to "as the crow flies" straight line distances. > Any Java-wise users out there that have explored this kind of > functionality? > Thanks, > Kieran From polt at snaptek.com Mon Aug 13 12:03:01 2001 From: polt at snaptek.com (Jason Poulter) Date: Mon, 13 Aug 2001 12:03:01 -0700 Subject: [mapserver-users] (no subject) Message-ID: <3B782464.8AE673F8@snaptek.com> unsubscribe mapserver-users polt at snaptek.com From morissette at dmsolutions.ca Mon Aug 13 12:13:04 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 13 Aug 2001 15:13:04 -0400 Subject: [mapserver-users] Java Applet Development References: Message-ID: <3B7826C0.C6B9B474@dmsolutions.ca> Janet Ciavarelli wrote: > > Is the Rosa applet only available in the PHP environment? > It is easier to control the values of the parameters if you use a scripting environment... either PHP, Perl, or any other web scripting language that emits HTML will do. The ROSA applet was not designed to work together with the mapserv CGI program, but I know of at least one user (Tim Mackey from AGSO) who made a small change to the mapserv CGI and got it to work with ROSA. See the following message from the archive for all the details: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0011/msg00077.html -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From zhox at yeah.net Mon Aug 13 17:14:48 2001 From: zhox at yeah.net (Zhou Xu) Date: Tue, 14 Aug 2001 8:14:48 +0800 Subject: [mapserver-users] truetype support for 3.5 win binaries? Message-ID: <20010814002638.6093B1CBDB893@smtp.yeah.net> I find the same error message, but when I give the full path of the font file, I succeeded. Maybe this can help. On 2001-8-13 10:17:00, you wrote: >Is there any win binary for ms 3.5 that has truetype support built in? The >readme file says > 'compiled with this distribution are: > PNG, JPEG, TIFF/GeoTIFF, Proj4, Freetype 2.' > >but when I configure labels to use truetype I get the following error >message: > >'msGetLabelSize(): TrueType Font error. libgd was not built with TrueType >font support'. > >I used the gif version (the readme file is probably the same for png and >gif). The php enabled version from dm solutions offers tt support but the >result of the output is a bit poor, no comparison to the good quality from >the ms 3.4. > >I dont't have a clue, is it necessary to install Freetype additionally? > >Thanks for any help > >Armin > >-- >Armin Burger >Territorium Online >Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia >_ ------------------------------------------------------------------------------------------- ZiZhuYuan BaishengCun No.1 NGCC Post Code, 100044 Beijing, China Phone: +86 10 86851042 Fax: +86 10 68424101 Email: std at nsdi.gov.cn ------------------------------------------------------------------------------------------- From clip at idirect.com Mon Aug 13 19:00:46 2001 From: clip at idirect.com (clip) Date: Mon, 13 Aug 2001 22:00:46 -0400 Subject: [mapserver-users] Does Windows binary with OGR use PHP? Message-ID: <3B78864E.2B5A8873@idirect.com> Does the Windows binary version of Mapserver cgi require PHP? From mapserver at cubok.com Mon Aug 13 19:05:52 2001 From: mapserver at cubok.com (Richard Ford) Date: Tue, 14 Aug 2001 12:05:52 +1000 Subject: [mapserver-users] Shapefiles Message-ID: <00e801c12465$a62b58c0$01bca8c0@Peach> G'Day All, Ok, I have been experimenting with Mapserver and I have a moderate grasp on the various files and configuration system. Not good enough to make a polished site - but good enough to test appropriateness of technology. :) Now I have a whole heap of shapefiles make in ESRI ArcView. How do I load them! :) I have made my own .map files and templates - heavily based on the MS_DEMO download. I have the shapefiles ready and shapepath set. Do I need to have the exact type set like raster, line, polygon, etc... As I have tried various shapefiles and colour options and all I get is a blank square were I was expecting some sort of image? *********************************************************** # # Start of map file # NAME LANCE STATUS ON SIZE 1200 1200 #SHADESET symbols/shade.sym #MARKERSET symbols/marker.sym #LINESET symbols/line.sym EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 #UNITS METERS SHAPEPATH "/usr/local/apache/htdcos/lance/risk_data" #IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "/usr/local/apache/htdocs/tmp/" IMAGEURL "/tmp/" # LOG "demo.log" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # #REFERENCE # IMAGE graphics/reference.tif # EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 # SIZE 120 120 # STATUS ON # COLOR -1 -1 -1 # OUTLINECOLOR 255 0 0 #END # # Start of legend LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of layer definitions # ################################## LAYER NAME "test" TYPE RASTER STATUS DEFAULT DATA disslv1 CLASS COLOR 250 140 250 END END #################################### END # Map File ************************************************* disslv1 is a shapefile (well the 3 files, .shp, .shx, .dbf) and nothing loads? I even changed the data to a known shapefile in the ms_demo directory and copied the same layer definition and I still got a blank box (But always with a working navigation system). Demo_init.html is set to load 'test' as a default layer.... clicking on the "re-display/query button still shows an empty square? I will not be meeting the creator of the shapefiles until Friday and I guess I will need more info about what is inside them to be able to define a layer to display them? I guess what I really wanted to do was to have a working system - though that just shows a basic map with 1 layer so he can see it. Proof of technology - to prove that mapserver is what we want to use and not ArcIMS - urghhh!. Many Thanks as I find my feet..... GIS expert - I am not. :) Richard Ford. richard at cubok.com www.cubok.com The views expressed here are solely my own and do not necessarily represent those of my employer. From v at w.cl Mon Aug 13 21:32:14 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Tue, 14 Aug 2001 00:32:14 -0400 (CLT) Subject: [mapserver-users] Does Windows binary with OGR use PHP? In-Reply-To: <3B78864E.2B5A8873@idirect.com> from "clip" at Aug 13, 2001 10:00:46 PM Message-ID: <200108140432.f7E4WEf08024@antonia.nn.cl> > > Does the Windows binary version of Mapserver cgi require PHP? > Nope. -- V. From v at w.cl Mon Aug 13 21:43:34 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Tue, 14 Aug 2001 00:43:34 -0400 (CLT) Subject: [mapserver-users] Shapefiles In-Reply-To: <00e801c12465$a62b58c0$01bca8c0@Peach> from "Richard Ford" at Aug 14, 2001 12:05:52 PM Message-ID: <200108140443.f7E4hYw08115@antonia.nn.cl> > #MARKERSET symbols/marker.sym > #LINESET symbols/line.sym You should set the SYMBOL parameter as shown in the docs. (concatenate the three .sym files in one and set that file as the SYMBOL parameter) > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 Is this extent correct?, you can use the perl script showextent.pl on the shape file to see if it is. (ie, perl showextent.pl shapefile on the directory where the shapefile is) > #UNITS METERS Why not set the units? > SHAPEPATH "/usr/local/apache/htdcos/lance/risk_data" Are this directory and its contents readable by the web server? > LAYER > NAME "test" > TYPE RASTER is the shapefile of raster type?!?!? > STATUS DEFAULT > DATA disslv1 disslv1.* should be in the shapepath directory > I even changed the data to a known shapefile in the ms_demo directory and > copied the same layer definition and I still got a blank box (But always > with a working navigation system). When I first started with Mapserver I got the same problem, it turned out to be the extent badly set. > I will not be meeting the creator of the shapefiles until Friday and I guess > I will need more info about what is inside them to be able to define a layer > to display them? I guess what I really wanted to do was to have a working You can open the shapfile with ArcView, press the info button (the 'i' rounded by a circle) and click on a symbol of the view and you'll see what is the type of the shapefile (polygon, polyline (it should be set as a polygon layer in the mapfile) or line) HTH, -- V. From mapserver at cubok.com Mon Aug 13 22:11:46 2001 From: mapserver at cubok.com (Richard Ford) Date: Tue, 14 Aug 2001 15:11:46 +1000 Subject: [mapserver-users] Shapefiles References: <200108140443.f7E4hYw08115@antonia.nn.cl> Message-ID: <028201c1247f$9eba2390$01bca8c0@Peach> > > #MARKERSET symbols/marker.sym > > #LINESET symbols/line.sym > > You should set the SYMBOL parameter as shown in the docs. Quickly - what do they do? I thought leave otu what I do not know to minimise problems. I was following the tutorial linked to from the mapserver documentaton page. > (concatenate the three .sym files in one and set that file as > the SYMBOL parameter) > > > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > > Is this extent correct?, you can use the perl script showextent.pl on > the shape file to see if it is. > > (ie, perl showextent.pl shapefile on the directory where the shapefile is) I will try this! > > #UNITS METERS > > Why not set the units? Again - keep it simple just to 'see' it load a shapefile. > > SHAPEPATH "/usr/local/apache/htdcos/lance/risk_data" > > Are this directory and its contents readable by the web server? yup and all permissions/owenrships are correct for r,w and x. > > LAYER > > NAME "test" > > TYPE RASTER > > is the shapefile of raster type?!?!? I assumed it was a raster. It did not load with polygon - but with raster the computer churned a bit - but still no display. I will be able to get ArcView installed on friday and then see what it is as you say below. > > STATUS DEFAULT > > DATA disslv1 > > disslv1.* should be in the shapepath directory Yup. All 3 associated files. > > I even changed the data to a known shapefile in the ms_demo directory and > > copied the same layer definition and I still got a blank box (But always > > with a working navigation system). > > When I first started with Mapserver I got the same problem, it turned > out to be the extent badly set. I will try that perl script. I thought if it is wrong, worst case I would have a truncated image - or a very small image surrounded by white? Or is my understanding of the EXTENT parameter incorrect? > > I will not be meeting the creator of the shapefiles until Friday and I guess > > I will need more info about what is inside them to be able to define a layer > > to display them? I guess what I really wanted to do was to have a working > > You can open the shapfile with ArcView, press the info button (the 'i' rounded > by a circle) and click on a symbol of the view and you'll see what is the type > of the shapefile (polygon, polyline (it should be set as a polygon layer in the > mapfile) or line) As said I will do this. There are so many GIS packages out there, open source and not. And it has been a steep learnign curve GIS wise. And we are keen to get our projetc moving. As such - it always pleases people to see progress. And at thsi early stage - great progress and a verification of our possible choice in MapServer - would be a display of "some kind!" a shapefile by it. :) Thanks for the input. Cheers, Richard. From mapserver at cubok.com Tue Aug 14 01:00:46 2001 From: mapserver at cubok.com (Richard Ford) Date: Tue, 14 Aug 2001 18:00:46 +1000 Subject: [mapserver-users] Shapefiles References: <200108140443.f7E4hYw08115@antonia.nn.cl> Message-ID: <02f501c12497$3ab2c2e0$01bca8c0@Peach> > > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > > Is this extent correct?, you can use the perl script showextent.pl on > the shape file to see if it is. > > (ie, perl showextent.pl shapefile on the directory where the shapefile is) ************************************************************************* [root at localhost risk_data]# perl showextent.pl disslv1.shp Can't locate mapscript.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at showextent.pl line 3. BEGIN failed--compilation aborted at showextent.pl line 3. ************************************************************************** I take it, I need to install Map script? I am using Mapserver 3.3.011 Cheers, Richard. From armin.burger at territoriumonline.com Tue Aug 14 01:23:15 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Tue, 14 Aug 2001 10:23:15 +0200 Subject: [mapserver-users] truetype support for 3.5 win binaries? Message-ID: <200108140823.KAA21776@efferd.nettz.com> I tried this with the path in the fontset file (with both slashes and backslashes) but I still got the same message. If the font cannot be found you get messages more like 'msGetLabelSize(): TrueType Font error. Could not find/open font ' With the php version of Mapserver the results were better using antialias. They were then identical with ms 3.4 and antialias. But the best results were still with 3.4 without antialiasing. The fonts were then produced only as one pixel thin lines. You could not distinguish them from the characters in the normal html text. armin > I find the same error message, but when I give the full path of the font > file, I succeeded. > Maybe this can help. > On 2001-8-13 10:17:00, you wrote: >>Is there any win binary for ms 3.5 that has truetype support built in? The >>readme file says >> 'compiled with this distribution are: >> PNG, JPEG, TIFF/GeoTIFF, Proj4, Freetype 2.' >> >>but when I configure labels to use truetype I get the following error >>message: >> >>'msGetLabelSize(): TrueType Font error. libgd was not built with TrueType >>font support'. >> >>I used the gif version (the readme file is probably the same for png and >>gif). The php enabled version from dm solutions offers tt support but the >>result of the output is a bit poor, no comparison to the good quality from >>the ms 3.4. >> >>I dont't have a clue, is it necessary to install Freetype additionally? >> >>Thanks for any help >> >>Armin >> >>-- >>Armin Burger >>Territorium Online >>Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia >>_ > ---------------------------------------------------------------------------- > --------------- > ZiZhuYuan BaishengCun No.1 > NGCC > Post Code, 100044 > Beijing, China > Phone: +86 10 86851042 > Fax: +86 10 68424101 > Email: std at nsdi.gov.cn > ---------------------------------------------------------------------------- > --------------- -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia email: armin.burger at territoriumonline.com http://www.territoriumonline.com tel: +39-0471-568185 / fax -- 568078 From mapserver at hotmail.com Tue Aug 14 04:40:23 2001 From: mapserver at hotmail.com (=?iso-8859-1?B?RGllZ28gSm9z6SBQYWRy824=?=) Date: Tue, 14 Aug 2001 11:40:23 +0000 Subject: [mapserver-users] Help connect data base for Mysql using PHP Message-ID: Hello My name is Diego Padron I am student of the School of Geography of the University of The Andes in Venezuela and at the moment I am trying to use the mapserver like tool for the development of a servant of maps. I need help regarding as connecting mapserver to a database in MySQL. with the purpose of negotiating it in a remote way.. Thank you for the help. Diego Padron Universidad de Los Andes Merida - Venezuela. _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From jef.mony at free.fr Tue Aug 14 05:00:03 2001 From: jef.mony at free.fr (=?ISO-8859-1?Q?Jean-Fran=E7ois_MONY?=) Date: Tue, 14 Aug 2001 14:00:03 +0200 (MEST) Subject: [mapserver-users] compilation Message-ID: <997790403.3b7912c336924@imp.free.fr> Hi, After some works the error message change. When I try to compile the CVS version of mpaserver using ./configure --with-gd - -with-tiff --with-jpeg --without-ttf --with-php=/usr/src/RPM/BUILD/php4.0.4pl1 - -with-apx (wich was good with mapserver 4) I have this message : configure: error: ./configure: --with-php=/usr/src/RPM/BUILD/php4.0.4pl1 : invalid option; use --help An idea ?? Thanks Jean-Fran?ois MONY - jef.mony at free.fr Parc naturel r?gional de Lorraine Responsable informatique/SIG tel : 03-83-84-06-37 fax : 03-81-33-60 D?tach? aupr?s du laboratoire de phyto?cologie de l'universit? de Metz tel : 03-87-37-84-05 fax : From steve.lime at dnr.state.mn.us Tue Aug 14 05:26:41 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 14 Aug 2001 07:26:41 -0500 Subject: [mapserver-users] Zoom-out using Mapplet rubber-band box on Reference Map Image Message-ID: Yes, just treat it like a second map on the page. That is, use a second form. The imgext is always the same and you use imgbox just as you would in your main map. The mapplet_apply method passes out the name of the applet it was invoked from so you can have multiple instances of the mapplet on one page, you just need to detect whether you're coming from the main image or the reference image and adjust the right form's imgbox and imgxy values accordingly. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> clip 08/12/01 12:50 PM >>> Is it possible to use the rubber-band zoom-box function of the "mapplet" java applet, on a reference map to "zoom-out". I'd like to be able to do this after users have zoomed-in and then want to zoom-out to a different area and extent on the reference map, rather then force them to return to the initial map extent and begin all over to zoom-in on the new area they are interested in. Tom Cadman Planner Regional Municipality of Durham From jsmedsmo at gis.umn.edu Tue Aug 14 06:17:08 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Tue, 14 Aug 2001 08:17:08 -0500 Subject: [mapserver-users] [Fwd: FAQ] Message-ID: <3B7924D4.7432CF81@gis.umn.edu> Hi All, I'll add this to the FAQ if one of you tells me the answer. Thanks, Jamie > Sujitra Thongjab wrote: > > > > > > ms_demo.zip > > 2.4 Common Error Messages > > Pointing a browser at http://host/ms_demo/demo_init.html and slapping > the 'initialize' button yields: > > Q: when i did all step untill 2.4 .After i pressed initialize button, > download pop-up window appeared, i dont' know what wrong?? > > i will so much appreciate if you reply my mail , thank you > > Sinserely yours, > > sujitra thongjab > > From CurnewS at DFO-MPO.GC.CA Tue Aug 14 07:28:17 2001 From: CurnewS at DFO-MPO.GC.CA (CurnewS at DFO-MPO.GC.CA) Date: Tue, 14 Aug 2001 10:28:17 -0400 Subject: [mapserver-users] no GIF Message-ID: I've just recently installed Mapserver ver. 3.5 with OGR and GIF support. I have also tried to install the demo for ver. 3.4 and 3.5. I have the new symbol file and have edited the appropriate files according to the readmes(see below). I am running Win NT 4.0 Server with Service Pack 6a and IIS 4.0. When I initialize the demo I get the Mapserver interface with a black screen. In the demo.map I have all the layers turned on. The GIF is not even generated in the "tmp" directory. I have included the demo_init.html, demo.html, and demo.map files. If anyone could help me with this it would be greatly appreciated. Thanks, Shannon -------------------- demo.map -------------------- # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "d:\inetpub\wwwroot\itasca\data\" IMAGECOLOR 255 255 255 SYMBOLSET "d:\inetpub\wwwroot\itasca\symbols\symbols34.sym" #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" #END # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "d:\inetpub\wwwroot\itasca\tmp" IMAGEURL "/tmp/" # LOG "demo.log" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics/reference.gif EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED END # # Start of layer definitions # LAYER NAME county TYPE POLYGON STATUS DEFAULT DATA ctybdpy2 CLASSITEM 'cty_name' CLASS EXPRESSION 'Itasca' OUTLINECOLOR 128 128 128 COLOR 225 225 185 END CLASS # every other county in the state EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 255 255 255 END END LAYER NAME cities TYPE POLYGON DATA mcd90py2 STATUS ON CLASSITEM city_name CLASS NAME "Cities & Towns" EXPRESSION /./ COLOR 255 225 90 END END LAYER NAME townships TYPE POLYLINE DATA twprgpy3 STATUS ON CLASS SYMBOL 'circle' SIZE 2 NAME 'Townships' COLOR 181 181 145 END END LAYER NAME lakes TYPE POLYGON STATUS ON DATA lakespy2 CLASS NAME 'Lakes & Rivers' TEMPLATE "lakespy2.html" COLOR 49 117 185 END HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" TOLERANCE 3 END # lakes LAYER NAME streams TYPE LINE STATUS ON DATA dlgstln2 CLASS NAME "Streams" TEMPLATE "dlgstln2.html" COLOR 49 117 185 END HEADER "dlgstln2_header.html" FOOTER "dlgstln2_footer.html" TOLERANCE 5 END # streams LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE LINE CLASS COLOR 0 0 0 END END # county roads LAYER NAME roads MAXSCALE 300000 STATUS ON DATA ctyrdln3 TYPE ANNOTATION LABELITEM "road_name" CLASS COLOR 255 255 255 SYMBOL 'symbols/images/ctyhwy.gif' LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END END # county road annotation LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE LINE CLASS NAME "Roads" COLOR 0 0 0 END END # highways LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE ANNOTATION LABELITEM "road_num" CLASSITEM "road_class" CLASS EXPRESSION "3" COLOR 0 0 0 # dummy color SYMBOL 'symbols/images/sthwy.gif' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "2" COLOR 0 0 0 # dummy color SYMBOL 'symbols/images/ushwy.gif' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "1" COLOR 0 0 0 # dummy color SYMBOL 'symbols/images/interstate.gif' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 255 255 255 END END END # highway annotation LAYER NAME cities TYPE ANNOTATION DATA mcd90py2 STATUS ON LABELITEM "city_name" CLASSITEM "city_name" LABELMAXSCALE 500000 CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END END END END ------------------------ demo_init.html ------------------------ MapServer Demo Interface

MapServer Demo Interface


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


--------------------- demo.html --------------------- MapServer Demo Interface

MapServer Demo Interface


 Powered by MapServer

Browse map
Query feature
Query multiple features


Select Layers to Display:

Zoom In Pan Zoom Out

Zoom Size

Legend




From pnaciona at gis.umn.edu Tue Aug 14 07:56:31 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 14 Aug 2001 09:56:31 -0500 Subject: [mapserver-users] no GIF In-Reply-To: Message-ID: Try adding a another slash "\" on your IMAGEPATH path. > IMAGEPATH "d:\inetpub\wwwroot\itasca\tmp" IMAGEPATH "d:\inetpub\wwwroot\itasca\tmp\" Also make sure that your IMAGEURL is actually "/tmp/" and not "/itasca/tmp/" Good luck! Perry Nacionales On Tue, 14 Aug 2001 CurnewS at DFO-MPO.GC.CA wrote: > I've just recently installed Mapserver ver. 3.5 with OGR and GIF support. I > have also tried to install the demo for ver. 3.4 and 3.5. I have the new > symbol file and have edited the appropriate files according to the > readmes(see below). I am running Win NT 4.0 Server with Service Pack 6a and > IIS 4.0. > > When I initialize the demo I get the Mapserver interface with a black > screen. In the demo.map I have all the layers turned on. The GIF is not > even generated in the "tmp" directory. > > I have included the demo_init.html, demo.html, and demo.map files. If > anyone could help me with this it would be greatly appreciated. > > Thanks, > Shannon > > > -------------------- > demo.map > -------------------- > > # > # Start of map file > # > NAME DEMO > STATUS ON > SIZE 600 600 > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > UNITS METERS > SHAPEPATH "d:\inetpub\wwwroot\itasca\data\" > IMAGECOLOR 255 255 255 > SYMBOLSET "d:\inetpub\wwwroot\itasca\symbols\symbols34.sym" > #IMAGETYPE PNG > > # > # Projection definition, consult the PROJ.4 documentation for parameter > discussion > # > #PROJECTION > # "proj=utm" > # "ellps=GRS80" > # "zone=15" > # "north" > # "no_defs" > #END > > # > # Start of web interface definition > # > WEB > HEADER demo_header.html > TEMPLATE demo.html > FOOTER demo_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "d:\inetpub\wwwroot\itasca\tmp" > IMAGEURL "/tmp/" > # LOG "demo.log" > END > > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > # > # Start of reference map > # > REFERENCE > IMAGE graphics/reference.gif > EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 > SIZE 120 120 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 255 255 255 > SIZE tiny > END > STYLE 1 > SIZE 50 2 > COLOR 255 255 255 > UNITS MILES > INTERVALS 1 > TRANSPARENT TRUE > STATUS TRUE > END > > # > # Start of symbol definitions (we're only using a few) > # > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED > END > > # > # Start of layer definitions > # > > LAYER > NAME county > TYPE POLYGON > STATUS DEFAULT > DATA ctybdpy2 > CLASSITEM 'cty_name' > CLASS > EXPRESSION 'Itasca' > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > CLASS # every other county in the state > EXPRESSION /./ > OUTLINECOLOR 128 128 128 > COLOR 255 255 255 > END > END > > LAYER > NAME cities > TYPE POLYGON > DATA mcd90py2 > STATUS ON > CLASSITEM city_name > CLASS > NAME "Cities & Towns" > EXPRESSION /./ > COLOR 255 225 90 > END > END > > LAYER > NAME townships > TYPE POLYLINE > DATA twprgpy3 > STATUS ON > CLASS > SYMBOL 'circle' > SIZE 2 > NAME 'Townships' > COLOR 181 181 145 > END > END > > LAYER > NAME lakes > TYPE POLYGON > STATUS ON > DATA lakespy2 > > CLASS > NAME 'Lakes & Rivers' > TEMPLATE "lakespy2.html" > COLOR 49 117 185 > END > > HEADER "lakespy2_header.html" > FOOTER "lakespy2_footer.html" > > TOLERANCE 3 > END # lakes > > LAYER > NAME streams > TYPE LINE > STATUS ON > DATA dlgstln2 > > CLASS > NAME "Streams" > TEMPLATE "dlgstln2.html" > COLOR 49 117 185 > END > > HEADER "dlgstln2_header.html" > FOOTER "dlgstln2_footer.html" > > TOLERANCE 5 > END # streams > > LAYER > NAME roads > MAXSCALE 300000 > STATUS ON > DATA ctyrdln3 > TYPE LINE > CLASS > COLOR 0 0 0 > END > END # county roads > > LAYER > NAME roads > MAXSCALE 300000 > STATUS ON > DATA ctyrdln3 > TYPE ANNOTATION > LABELITEM "road_name" > CLASS > COLOR 255 255 255 > SYMBOL 'symbols/images/ctyhwy.gif' > LABEL > MINFEATURESIZE 40 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 0 0 0 > END > END > END # county road annotation > > LAYER > NAME roads > MAXSCALE 600000 > STATUS ON > DATA majrdln3 > TYPE LINE > CLASS > NAME "Roads" > COLOR 0 0 0 > END > END # highways > > LAYER > NAME roads > MAXSCALE 600000 > STATUS ON > DATA majrdln3 > TYPE ANNOTATION > LABELITEM "road_num" > CLASSITEM "road_class" > CLASS > EXPRESSION "3" > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/images/sthwy.gif' > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 0 0 0 > END > END > CLASS > EXPRESSION "2" > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/images/ushwy.gif' > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 0 0 0 > END > END > CLASS > EXPRESSION "1" > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/images/interstate.gif' > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 255 255 255 > END > END > END # highway annotation > > LAYER > NAME cities > TYPE ANNOTATION > DATA mcd90py2 > STATUS ON > LABELITEM "city_name" > CLASSITEM "city_name" > LABELMAXSCALE 500000 > CLASS > EXPRESSION /./ > COLOR -1 -1 -1 > LABEL > COLOR 0 0 0 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE BITMAP > SIZE MEDIUM > POSITION CC > PARTIALS FALSE > BUFFER 2 > END > END > END > > END > > > ------------------------ > demo_init.html > ------------------------ > > > MapServer Demo Interface > > >

MapServer Demo Interface

>


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

> > > > > > >
> >
> >


> > > > > --------------------- > demo.html > --------------------- > > > MapServer Demo Interface > > >

MapServer Demo Interface

>
>
> >
> > > > >
> > > > > > >
height=600 border=0>
  color="#FFFFFF">Powered by MapServer
>
> >
>
>

> > Browse > map
> Query > feature
> Query multiple > features > >


> >

> Select Layers to Display:
> > >

> Zoom In > Pan > Zoom Out >

> Zoom Size >

> > Legend


>
> >

>

border="0">
>
> >
>
> > > > > > > >
> >


> > > From chuynh at ideorlando.org Tue Aug 14 08:03:25 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Tue, 14 Aug 2001 11:03:25 -0400 Subject: [mapserver-users] [Fwd: FAQ] In-Reply-To: <3B7924D4.7432CF81@gis.umn.edu> Message-ID: I think I ran into this error before. It's quite a while so I can't recall what I did exactly to debug it. But my understanding is that mapserv binary is probably corrupted (due to network problem!?) so that when the form in demo_init.html execute the line

It couldn't execute mapserv and instead it prompted up a download pop-up dialog for downloading mapserv. One option you can try is re-download mapserv binary and hopefully it'll work. -chan -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Jamie Smedsmo Sent: Tuesday, August 14, 2001 9:17 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] [Fwd: FAQ] Hi All, I'll add this to the FAQ if one of you tells me the answer. Thanks, Jamie > Sujitra Thongjab wrote: > > > > > > ms_demo.zip > > 2.4 Common Error Messages > > Pointing a browser at http://host/ms_demo/demo_init.html and slapping > the 'initialize' button yields: > > Q: when i did all step untill 2.4 .After i pressed initialize button, > download pop-up window appeared, i dont' know what wrong?? > > i will so much appreciate if you reply my mail , thank you > > Sinserely yours, > > sujitra thongjab > > From david.fawcett at moea.state.mn.us Tue Aug 14 08:17:40 2001 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Tue, 14 Aug 2001 10:17:40 -0500 Subject: [mapserver-users] [Fwd: FAQ] Message-ID: >From your description, it is not clear to me when this error is occurring. If you are using the Win32 binary, I see a potential problem in that when you call the binary, you need to use the name 'mapserv.exe'. Try changing the line from: > > To: > > > > David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 > ---------- > From: Chan B. Huynh[SMTP:chuynh at ideorlando.org] > Sent: Tuesday, August 14, 2001 10:03 AM > To: Jamie Smedsmo; mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] [Fwd: FAQ] > > I think I ran into this error before. It's quite a while so I can't recall > what I did exactly to debug it. But my understanding is that mapserv binary > is probably corrupted (due to network problem!?) so that when the form in > demo_init.html execute the line > > > > It couldn't execute mapserv and instead it prompted up a download pop-up > dialog for downloading mapserv. > > One option you can try is re-download mapserv binary and hopefully it'll > work. > > -chan > > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Jamie > Smedsmo > Sent: Tuesday, August 14, 2001 9:17 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] [Fwd: FAQ] > > > Hi All, > > I'll add this to the FAQ if one of you tells me the answer. > > Thanks, > Jamie > > > Sujitra Thongjab wrote: > > > > > > > > > > > > ms_demo.zip > > > > 2.4 Common Error Messages > > > > Pointing a browser at http://host/ms_demo/demo_init.html and slapping > > the 'initialize' button yields: > > > > Q: when i did all step untill 2.4 .After i pressed initialize button, > > download pop-up window appeared, i dont' know what wrong?? > > > > i will so much appreciate if you reply my mail , thank you > > > > Sinserely yours, > > > > sujitra thongjab > > > > > From CurnewS at DFO-MPO.GC.CA Tue Aug 14 08:45:13 2001 From: CurnewS at DFO-MPO.GC.CA (CurnewS at DFO-MPO.GC.CA) Date: Tue, 14 Aug 2001 11:45:13 -0400 Subject: [mapserver-users] no GIF Message-ID: Thanks, but I've already tried that with no luck. Could it possibly be my shapepath? Also, I'm using the Windows binary of mapserv.exe. Do I still have to install GD? > -----Original Message----- > From: Pericles S. Nacionales [SMTP:pnaciona at gis.umn.edu] > Sent: Tuesday, August 14, 2001 12:27 PM > To: CurnewS at DFO-MPO.GC.CA > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] no GIF > > Try adding a another slash "\" on your IMAGEPATH path. > > > IMAGEPATH "d:\inetpub\wwwroot\itasca\tmp" > > IMAGEPATH "d:\inetpub\wwwroot\itasca\tmp\" > > Also make sure that your IMAGEURL is actually "/tmp/" and not > "/itasca/tmp/" > > Good luck! > Perry Nacionales > > On Tue, 14 Aug 2001 CurnewS at DFO-MPO.GC.CA wrote: > > > I've just recently installed Mapserver ver. 3.5 with OGR and GIF > support. I > > have also tried to install the demo for ver. 3.4 and 3.5. I have the > new > > symbol file and have edited the appropriate files according to the > > readmes(see below). I am running Win NT 4.0 Server with Service Pack 6a > and > > IIS 4.0. > > > > When I initialize the demo I get the Mapserver interface with a black > > screen. In the demo.map I have all the layers turned on. The GIF is > not > > even generated in the "tmp" directory. > > > > I have included the demo_init.html, demo.html, and demo.map files. If > > anyone could help me with this it would be greatly appreciated. > > > > Thanks, > > Shannon > > > > > > -------------------- > > demo.map > > -------------------- > > > > # > > # Start of map file > > # > > NAME DEMO > > STATUS ON > > SIZE 600 600 > > EXTENT 388107.634400379 5203120.88405952 500896.339019834 > 5310243.30613897 > > UNITS METERS > > SHAPEPATH "d:\inetpub\wwwroot\itasca\data\" > > IMAGECOLOR 255 255 255 > > SYMBOLSET "d:\inetpub\wwwroot\itasca\symbols\symbols34.sym" > > #IMAGETYPE PNG > > > > # > > # Projection definition, consult the PROJ.4 documentation for parameter > > discussion > > # > > #PROJECTION > > # "proj=utm" > > # "ellps=GRS80" > > # "zone=15" > > # "north" > > # "no_defs" > > #END > > > > # > > # Start of web interface definition > > # > > WEB > > HEADER demo_header.html > > TEMPLATE demo.html > > FOOTER demo_footer.html > > MINSCALE 1000 > > MAXSCALE 1550000 > > IMAGEPATH "d:\inetpub\wwwroot\itasca\tmp" > > IMAGEURL "/tmp/" > > # LOG "demo.log" > > END > > > > QUERYMAP > > SIZE 200 200 > > STATUS ON > > STYLE HILITE > > COLOR 255 0 0 > > END > > > > # > > # Start of reference map > > # > > REFERENCE > > IMAGE graphics/reference.gif > > EXTENT 393234.393701263 5205405.16440722 495769.579718949 > 5307959.02579127 > > SIZE 120 120 > > STATUS ON > > COLOR -1 -1 -1 > > OUTLINECOLOR 255 0 0 > > END > > > > # > > # Start of legend > > # > > LEGEND > > KEYSIZE 18 12 > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > STATUS ON > > END > > > > # > > # Start of scalebar > > # > > SCALEBAR > > IMAGECOLOR 255 255 255 > > LABEL > > COLOR 255 255 255 > > SIZE tiny > > END > > STYLE 1 > > SIZE 50 2 > > COLOR 255 255 255 > > UNITS MILES > > INTERVALS 1 > > TRANSPARENT TRUE > > STATUS TRUE > > END > > > > # > > # Start of symbol definitions (we're only using a few) > > # > > SYMBOL > > NAME 'circle' > > TYPE ELLIPSE > > POINTS 1 1 END > > FILLED > > END > > > > # > > # Start of layer definitions > > # > > > > LAYER > > NAME county > > TYPE POLYGON > > STATUS DEFAULT > > DATA ctybdpy2 > > CLASSITEM 'cty_name' > > CLASS > > EXPRESSION 'Itasca' > > OUTLINECOLOR 128 128 128 > > COLOR 225 225 185 > > END > > CLASS # every other county in the state > > EXPRESSION /./ > > OUTLINECOLOR 128 128 128 > > COLOR 255 255 255 > > END > > END > > > > LAYER > > NAME cities > > TYPE POLYGON > > DATA mcd90py2 > > STATUS ON > > CLASSITEM city_name > > CLASS > > NAME "Cities & Towns" > > EXPRESSION /./ > > COLOR 255 225 90 > > END > > END > > > > LAYER > > NAME townships > > TYPE POLYLINE > > DATA twprgpy3 > > STATUS ON > > CLASS > > SYMBOL 'circle' > > SIZE 2 > > NAME 'Townships' > > COLOR 181 181 145 > > END > > END > > > > LAYER > > NAME lakes > > TYPE POLYGON > > STATUS ON > > DATA lakespy2 > > > > CLASS > > NAME 'Lakes & Rivers' > > TEMPLATE "lakespy2.html" > > COLOR 49 117 185 > > END > > > > HEADER "lakespy2_header.html" > > FOOTER "lakespy2_footer.html" > > > > TOLERANCE 3 > > END # lakes > > > > LAYER > > NAME streams > > TYPE LINE > > STATUS ON > > DATA dlgstln2 > > > > CLASS > > NAME "Streams" > > TEMPLATE "dlgstln2.html" > > COLOR 49 117 185 > > END > > > > HEADER "dlgstln2_header.html" > > FOOTER "dlgstln2_footer.html" > > > > TOLERANCE 5 > > END # streams > > > > LAYER > > NAME roads > > MAXSCALE 300000 > > STATUS ON > > DATA ctyrdln3 > > TYPE LINE > > CLASS > > COLOR 0 0 0 > > END > > END # county roads > > > > LAYER > > NAME roads > > MAXSCALE 300000 > > STATUS ON > > DATA ctyrdln3 > > TYPE ANNOTATION > > LABELITEM "road_name" > > CLASS > > COLOR 255 255 255 > > SYMBOL 'symbols/images/ctyhwy.gif' > > LABEL > > MINFEATURESIZE 40 > > MINDISTANCE 150 > > POSITION CC > > SIZE TINY > > COLOR 0 0 0 > > END > > END > > END # county road annotation > > > > LAYER > > NAME roads > > MAXSCALE 600000 > > STATUS ON > > DATA majrdln3 > > TYPE LINE > > CLASS > > NAME "Roads" > > COLOR 0 0 0 > > END > > END # highways > > > > LAYER > > NAME roads > > MAXSCALE 600000 > > STATUS ON > > DATA majrdln3 > > TYPE ANNOTATION > > LABELITEM "road_num" > > CLASSITEM "road_class" > > CLASS > > EXPRESSION "3" > > COLOR 0 0 0 # dummy color > > SYMBOL 'symbols/images/sthwy.gif' > > LABEL > > MINFEATURESIZE 50 > > MINDISTANCE 150 > > POSITION CC > > SIZE TINY > > COLOR 0 0 0 > > END > > END > > CLASS > > EXPRESSION "2" > > COLOR 0 0 0 # dummy color > > SYMBOL 'symbols/images/ushwy.gif' > > LABEL > > MINFEATURESIZE 50 > > MINDISTANCE 150 > > POSITION CC > > SIZE TINY > > COLOR 0 0 0 > > END > > END > > CLASS > > EXPRESSION "1" > > COLOR 0 0 0 # dummy color > > SYMBOL 'symbols/images/interstate.gif' > > LABEL > > MINFEATURESIZE 50 > > MINDISTANCE 150 > > POSITION CC > > SIZE TINY > > COLOR 255 255 255 > > END > > END > > END # highway annotation > > > > LAYER > > NAME cities > > TYPE ANNOTATION > > DATA mcd90py2 > > STATUS ON > > LABELITEM "city_name" > > CLASSITEM "city_name" > > LABELMAXSCALE 500000 > > CLASS > > EXPRESSION /./ > > COLOR -1 -1 -1 > > LABEL > > COLOR 0 0 0 > > SHADOWCOLOR 218 218 218 > > SHADOWSIZE 2 2 > > TYPE BITMAP > > SIZE MEDIUM > > POSITION CC > > PARTIALS FALSE > > BUFFER 2 > > END > > END > > END > > > > END > > > > > > ------------------------ > > demo_init.html > > ------------------------ > > > > > > MapServer Demo Interface > > > > > >

MapServer Demo Interface

> >


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

> > > > > > > >


> > > > > > > > > > --------------------- > > demo.html > > --------------------- > > > > > > MapServer Demo Interface > > > > > >

MapServer Demo Interface

> >
> >
> > > >
> > > > > > > > > >
> > > > > > > > > > > > > >
width=600 > > height=600 border=0>
  > color="#FFFFFF">Powered by MapServer
> >
> > > >
> >
> >

> > > > Browse > > map
> > Query > > feature
> > Query multiple > > features > > > >


> > > >

> > Select Layers to Display:
> > > > > >

> > Zoom In > > Pan > > Zoom Out [zoomdir_-1_check]> > >

> > Zoom Size > >

> > > > Legend


> >
> > > >

> >

> border="0">
> >
> > > >
> >
> > > > > > > > > > > > > > > >
> > > >


> > > > > > From chuynh at ideorlando.org Tue Aug 14 09:13:09 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Tue, 14 Aug 2001 12:13:09 -0400 Subject: [mapserver-users] [Fwd: FAQ] In-Reply-To: Message-ID: After you point a browser at http://host/ms_demo/demo_init.html and slapping the 'initialize' button demo_init.html will execute

and that's when the error occur if mapserv.exe corrupted or cannot be execute. sorry i mean mapserv.exe -chan -----Original Message----- From: Fawcett, David [mailto:david.fawcett at moea.state.mn.us] Sent: Tuesday, August 14, 2001 11:18 AM To: mapserver-users at lists.gis.umn.edu; 'Chan B. Huynh' Subject: RE: [mapserver-users] [Fwd: FAQ] >From your description, it is not clear to me when this error is occurring. If you are using the Win32 binary, I see a potential problem in that when you call the binary, you need to use the name 'mapserv.exe'. Try changing the line from: > > To: > > > > David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 > ---------- > From: Chan B. Huynh[SMTP:chuynh at ideorlando.org] > Sent: Tuesday, August 14, 2001 10:03 AM > To: Jamie Smedsmo; mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] [Fwd: FAQ] > > I think I ran into this error before. It's quite a while so I can't recall > what I did exactly to debug it. But my understanding is that mapserv binary > is probably corrupted (due to network problem!?) so that when the form in > demo_init.html execute the line > > > > It couldn't execute mapserv and instead it prompted up a download pop-up > dialog for downloading mapserv. > > One option you can try is re-download mapserv binary and hopefully it'll > work. > > -chan > > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Jamie > Smedsmo > Sent: Tuesday, August 14, 2001 9:17 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] [Fwd: FAQ] > > > Hi All, > > I'll add this to the FAQ if one of you tells me the answer. > > Thanks, > Jamie > > > Sujitra Thongjab wrote: > > > > > > > > > > > > ms_demo.zip > > > > 2.4 Common Error Messages > > > > Pointing a browser at http://host/ms_demo/demo_init.html and slapping > > the 'initialize' button yields: > > > > Q: when i did all step untill 2.4 .After i pressed initialize button, > > download pop-up window appeared, i dont' know what wrong?? > > > > i will so much appreciate if you reply my mail , thank you > > > > Sinserely yours, > > > > sujitra thongjab > > > > > From chuynh at ideorlando.org Tue Aug 14 09:22:09 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Tue, 14 Aug 2001 12:22:09 -0400 Subject: [mapserver-users] get imgext value to javascript function Message-ID: Is it possible to get the spatial extent of the existing inline image from CGI variable imgext [minx] [miny] [maxx] [maxy] to a javascript function ie: function mapextent(minx,miny,maxx,maxy){} ??? thanks -chan From assefa at dmsolutions.ca Tue Aug 14 10:00:55 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Tue, 14 Aug 2001 13:00:55 -0400 Subject: [mapserver-users] no GIF References: Message-ID: <3B795947.F1690725@dmsolutions.ca> Hi there, Could you try to add a back- slash at the end of the IMAGEPATH (in the web object): IMAGEPATH "d:\inetpub\wwwroot\itasca\tmp\" I suppose that your alias for /tmp/ (coming from the IMAGEURL "/tmp/") points to the directory d:\inetpub\wwwroot\itasca\tmp. Later, CurnewS at DFO-MPO.GC.CA wrote: > I've just recently installed Mapserver ver. 3.5 with OGR and GIF support. I > have also tried to install the demo for ver. 3.4 and 3.5. I have the new > symbol file and have edited the appropriate files according to the > readmes(see below). I am running Win NT 4.0 Server with Service Pack 6a and > IIS 4.0. > > When I initialize the demo I get the Mapserver interface with a black > screen. In the demo.map I have all the layers turned on. The GIF is not > even generated in the "tmp" directory. > > I have included the demo_init.html, demo.html, and demo.map files. If > anyone could help me with this it would be greatly appreciated. > > Thanks, > Shannon > > -------------------- > demo.map > -------------------- > > # > # Start of map file > # > NAME DEMO > STATUS ON > SIZE 600 600 > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > UNITS METERS > SHAPEPATH "d:\inetpub\wwwroot\itasca\data\" > IMAGECOLOR 255 255 255 > SYMBOLSET "d:\inetpub\wwwroot\itasca\symbols\symbols34.sym" > #IMAGETYPE PNG > > # > # Projection definition, consult the PROJ.4 documentation for parameter > discussion > # > #PROJECTION > # "proj=utm" > # "ellps=GRS80" > # "zone=15" > # "north" > # "no_defs" > #END > > # > # Start of web interface definition > # > WEB > HEADER demo_header.html > TEMPLATE demo.html > FOOTER demo_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "d:\inetpub\wwwroot\itasca\tmp" > IMAGEURL "/tmp/" > # LOG "demo.log" > END > > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > # > # Start of reference map > # > REFERENCE > IMAGE graphics/reference.gif > EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 > SIZE 120 120 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 255 255 255 > SIZE tiny > END > STYLE 1 > SIZE 50 2 > COLOR 255 255 255 > UNITS MILES > INTERVALS 1 > TRANSPARENT TRUE > STATUS TRUE > END > > # > # Start of symbol definitions (we're only using a few) > # > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED > END > > # > # Start of layer definitions > # > > LAYER > NAME county > TYPE POLYGON > STATUS DEFAULT > DATA ctybdpy2 > CLASSITEM 'cty_name' > CLASS > EXPRESSION 'Itasca' > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > CLASS # every other county in the state > EXPRESSION /./ > OUTLINECOLOR 128 128 128 > COLOR 255 255 255 > END > END > > LAYER > NAME cities > TYPE POLYGON > DATA mcd90py2 > STATUS ON > CLASSITEM city_name > CLASS > NAME "Cities & Towns" > EXPRESSION /./ > COLOR 255 225 90 > END > END > > LAYER > NAME townships > TYPE POLYLINE > DATA twprgpy3 > STATUS ON > CLASS > SYMBOL 'circle' > SIZE 2 > NAME 'Townships' > COLOR 181 181 145 > END > END > > LAYER > NAME lakes > TYPE POLYGON > STATUS ON > DATA lakespy2 > > CLASS > NAME 'Lakes & Rivers' > TEMPLATE "lakespy2.html" > COLOR 49 117 185 > END > > HEADER "lakespy2_header.html" > FOOTER "lakespy2_footer.html" > > TOLERANCE 3 > END # lakes > > LAYER > NAME streams > TYPE LINE > STATUS ON > DATA dlgstln2 > > CLASS > NAME "Streams" > TEMPLATE "dlgstln2.html" > COLOR 49 117 185 > END > > HEADER "dlgstln2_header.html" > FOOTER "dlgstln2_footer.html" > > TOLERANCE 5 > END # streams > > LAYER > NAME roads > MAXSCALE 300000 > STATUS ON > DATA ctyrdln3 > TYPE LINE > CLASS > COLOR 0 0 0 > END > END # county roads > > LAYER > NAME roads > MAXSCALE 300000 > STATUS ON > DATA ctyrdln3 > TYPE ANNOTATION > LABELITEM "road_name" > CLASS > COLOR 255 255 255 > SYMBOL 'symbols/images/ctyhwy.gif' > LABEL > MINFEATURESIZE 40 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 0 0 0 > END > END > END # county road annotation > > LAYER > NAME roads > MAXSCALE 600000 > STATUS ON > DATA majrdln3 > TYPE LINE > CLASS > NAME "Roads" > COLOR 0 0 0 > END > END # highways > > LAYER > NAME roads > MAXSCALE 600000 > STATUS ON > DATA majrdln3 > TYPE ANNOTATION > LABELITEM "road_num" > CLASSITEM "road_class" > CLASS > EXPRESSION "3" > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/images/sthwy.gif' > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 0 0 0 > END > END > CLASS > EXPRESSION "2" > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/images/ushwy.gif' > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 0 0 0 > END > END > CLASS > EXPRESSION "1" > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/images/interstate.gif' > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 255 255 255 > END > END > END # highway annotation > > LAYER > NAME cities > TYPE ANNOTATION > DATA mcd90py2 > STATUS ON > LABELITEM "city_name" > CLASSITEM "city_name" > LABELMAXSCALE 500000 > CLASS > EXPRESSION /./ > COLOR -1 -1 -1 > LABEL > COLOR 0 0 0 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE BITMAP > SIZE MEDIUM > POSITION CC > PARTIALS FALSE > BUFFER 2 > END > END > END > > END > > ------------------------ > demo_init.html > ------------------------ > > > MapServer Demo Interface > > >

MapServer Demo Interface

>


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

> > > >


> > > > --------------------- > demo.html > --------------------- > > > MapServer Demo Interface > > >

MapServer Demo Interface

>
>
> >
> > > > >
> > > > > > >
height=600 border=0>
  color="#FFFFFF">Powered by MapServer
>
> >
>
>

> > Browse > map
> Query > feature
> Query multiple > features > >


> >

> Select Layers to Display:
> > >

> Zoom In > Pan > Zoom Out >

> Zoom Size >

> > Legend


>
> >

>

border="0">
>
> >
>
> > > > > > > >
> >


> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From chuynh at ideorlando.org Tue Aug 14 10:11:37 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Tue, 14 Aug 2001 13:11:37 -0400 Subject: [mapserver-users] verbose "on" Message-ID: Has anyone try mapplet with verbose "on"? What javascript function do you need to implement? I'm looking at the Lanview sample written by Stephen Lime at the gallery link. Seems like you have to handle all coordinate calculations on the client side -> lots of javascript to have the browser status-bar display the x,y coordinates for the current location of the mouse cursor!? thanks for sharing your experience. -chan From v at w.cl Tue Aug 14 10:42:30 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Tue, 14 Aug 2001 13:42:30 -0400 (CLT) Subject: [mapserver-users] Shapefiles In-Reply-To: <02f501c12497$3ab2c2e0$01bca8c0@Peach> from "Richard Ford" at Aug 14, 2001 06:00:46 PM Message-ID: <200108141742.f7EHgVs15759@antonia.nn.cl> > > > > EXTENT 388107.634400379 5203120.88405952 500896.339019834 > 5310243.30613897 > > > > Is this extent correct?, you can use the perl script showextent.pl on > > the shape file to see if it is. > > > > (ie, perl showextent.pl shapefile on the directory where the shapefile is) > > ************************************************************************* > [root at localhost risk_data]# perl showextent.pl disslv1.shp > Can't locate mapscript.pm in @INC (@INC contains: > /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 > /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 > /usr/lib/perl5/site_perl .) at showextent.pl line 3. > BEGIN failed--compilation aborted at showextent.pl line 3. > ************************************************************************** > > I take it, I need to install Map script? I am using Mapserver 3.3.011 yes, you need the perl version of mapscript installed for the script to work. It's very easy to compile and install. -- V. From v at w.cl Tue Aug 14 10:49:35 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Tue, 14 Aug 2001 13:49:35 -0400 (CLT) Subject: [mapserver-users] Shapefiles In-Reply-To: <028201c1247f$9eba2390$01bca8c0@Peach> from "Richard Ford" at Aug 14, 2001 03:11:46 PM Message-ID: <200108141749.f7EHnZD16405@antonia.nn.cl> > > > #MARKERSET symbols/marker.sym > > > #LINESET symbols/line.sym > > > > You should set the SYMBOL parameter as shown in the docs. > > Quickly - what do they do? They define how are the symbols drawn (color, width of lines, etc.) > I thought leave otu what I do not know to minimise problems. I was > following the tutorial linked to from the mapserver documentaton page. If you're using Mapserver 3.3 you don't need to follow my previous advice (about concatenating the files), just uncomment those 3 lines. > > > LAYER > > > NAME "test" > > > TYPE RASTER > > > > is the shapefile of raster type?!?!? > > I assumed it was a raster. It did not load with polygon - but with raster > the computer churned a bit - but still no display. I will be able to get > ArcView installed on friday and then see what it is as you say below. You can try with LINE also (to get this running before friday :) ) > > > > When I first started with Mapserver I got the same problem, it turned > > out to be the extent badly set. > > I will try that perl script. I thought if it is wrong, worst case I would > have a truncated image - or a very small image surrounded by white? Or is > my understanding of the EXTENT parameter incorrect? The worst case is a blank image :) > are keen to get our projetc moving. As such - it always pleases people to > see progress. And at thsi early stage - great progress and a verification > of our possible choice in MapServer - would be a display of "some kind!" a > shapefile by it. :) If you want, you can send me your shapefiles and I can send you back a map file that works (or should work) :). -- V. From pnaciona at gis.umn.edu Tue Aug 14 11:33:02 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 14 Aug 2001 13:33:02 -0500 Subject: [mapserver-users] [Fwd: FAQ] In-Reply-To: Message-ID: It sounds to me like you have permissions problem on your web server. Make sure you have permission to execute CGI programs from the cgi-bin directory. -Perry On Tue, 14 Aug 2001, Chan B. Huynh wrote: > After you point a browser at http://host/ms_demo/demo_init.html and slapping > the 'initialize' button > > demo_init.html will execute >

> > and that's when the error occur if mapserv.exe corrupted or cannot be > execute. > > sorry i mean mapserv.exe > > -chan > > -----Original Message----- > From: Fawcett, David [mailto:david.fawcett at moea.state.mn.us] > Sent: Tuesday, August 14, 2001 11:18 AM > To: mapserver-users at lists.gis.umn.edu; 'Chan B. Huynh' > Subject: RE: [mapserver-users] [Fwd: FAQ] > > > >From your description, it is not clear to me when this error is occurring. > > If you are using the Win32 binary, I see a potential problem in that when > you call the binary, you need to use the name 'mapserv.exe'. > > Try changing the line from: > > > > > > To: > > > > > > > > > > David J. Fawcett > GIS / Databases > > MN Office of Environmental Assistance > 520 Lafayette Rd N > St. Paul, MN 55155 > 651.215.0200 > > > > ---------- > > From: Chan B. Huynh[SMTP:chuynh at ideorlando.org] > > Sent: Tuesday, August 14, 2001 10:03 AM > > To: Jamie Smedsmo; mapserver-users at lists.gis.umn.edu > > Subject: RE: [mapserver-users] [Fwd: FAQ] > > > > I think I ran into this error before. It's quite a while so I can't > recall > > what I did exactly to debug it. But my understanding is that mapserv > binary > > is probably corrupted (due to network problem!?) so that when the form in > > demo_init.html execute the line > > > > > > > > It couldn't execute mapserv and instead it prompted up a download pop-up > > dialog for downloading mapserv. > > > > One option you can try is re-download mapserv binary and hopefully it'll > > work. > > > > -chan > > > > > > -----Original Message----- > > From: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Jamie > > Smedsmo > > Sent: Tuesday, August 14, 2001 9:17 AM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] [Fwd: FAQ] > > > > > > Hi All, > > > > I'll add this to the FAQ if one of you tells me the answer. > > > > Thanks, > > Jamie > > > > > Sujitra Thongjab wrote: > > > > > > > > > > > > > > > > > > ms_demo.zip > > > > > > 2.4 Common Error Messages > > > > > > Pointing a browser at http://host/ms_demo/demo_init.html and slapping > > > the 'initialize' button yields: > > > > > > Q: when i did all step untill 2.4 .After i pressed initialize button, > > > download pop-up window appeared, i dont' know what wrong?? > > > > > > i will so much appreciate if you reply my mail , thank you > > > > > > Sinserely yours, > > > > > > sujitra thongjab > > > > > > > > > From cameron at socialchange.net.au Wed Aug 15 00:44:25 2001 From: cameron at socialchange.net.au (Cameron Shorter) Date: Wed, 15 Aug 2001 17:44:25 +1000 Subject: [mapserver-users] Tiling images Message-ID: <3B7A2859.2D95E125@socialchange.net.au> Can anyone tell me if mapserv (any version) can tile images, or is it only shapefiles? -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From Andreas.Maul at bgr.de Wed Aug 15 04:08:20 2001 From: Andreas.Maul at bgr.de (Maul, Andreas-Alexander) Date: Wed, 15 Aug 2001 12:08:20 +0100 Subject: [mapserver-users] Mapserver v. 3.5 with SDE support Message-ID: Hi, is it possible that the mapserver version 3.5 nightly build for win32 could be compiled with SDE support? I would greatly appreciate it. Regards, Andreas From warmerdam at pobox.com Wed Aug 15 05:49:26 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 15 Aug 2001 08:49:26 -0400 Subject: [mapserver-users] Tiling images References: <3B7A2859.2D95E125@socialchange.net.au> Message-ID: <3B7A6FD6.60408@pobox.com> Cameron Shorter wrote: >Can anyone tell me if mapserv (any version) can tile images, or is it >only shapefiles? > Cameron, Not sure what you mean. A shapefile TILEINDEX can be used to refer to image files in a raster layer. 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 rob at socialchange.net.au Wed Aug 15 06:16:12 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Wed, 15 Aug 2001 23:16:12 +1000 Subject: [mapserver-users] Tiling images References: <3B7A2859.2D95E125@socialchange.net.au> <3B7A6FD6.60408@pobox.com> Message-ID: <3B7A761C.8FD554AD@socialchange.net.au> Hi Frank, I've been a bit out of the loop myself recently. does mapserv now support reprojection of images (via the OGC WMS interface?) How does it support the listing of supported projections in the Capabilities document? Rob Frank Warmerdam wrote: > Cameron Shorter wrote: > > >Can anyone tell me if mapserv (any version) can tile images, or is it > >only shapefiles? > > > Cameron, > > Not sure what you mean. A shapefile TILEINDEX can be used to refer to image > files in a raster layer. > > 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: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From warmerdam at pobox.com Wed Aug 15 06:25:40 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 15 Aug 2001 09:25:40 -0400 Subject: [mapserver-users] Tiling images References: <3B7A2859.2D95E125@socialchange.net.au> <3B7A6FD6.60408@pobox.com> <3B7A761C.8FD554AD@socialchange.net.au> Message-ID: <3B7A7854.5030804@pobox.com> Rob Atkinson wrote: >Hi Frank, > >I've been a bit out of the loop myself recently. > >does mapserv now support reprojection of images >(via the OGC WMS interface?) > >How does it support the listing of supported projections in the Capabilities >document? > Rob, I think there will be a HOWTO addressing some of the WMS issues. The 3.5 MapServer can now support reprojection of raster images that are read through GDAL (NOT if read through the older TIFF interface!). This works through the WMS interface, or normally if the projection of the raster layer (as defined in a PROJECTION section) is different than that of the output map being generated. Projections can also now be defined in terms of their EPSG coordinate system numbers in PROJECTION sections. These definitions can be properly reflected back in capabilities documents generated by MapServer. In any event, most capabilities data can be provided in the map file via METADATA overrides. PS. Some of the raster reprojection issues are addressed in: http://mapserver.gis.umn.edu/doc/raster-howto.html (Forgive my errant email formatting ... I haven't quite mastered the Mozilla composition tool to turn off all it's formatting *help*). 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 jimburnett at ntelos.net Wed Aug 15 06:51:57 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 15 Aug 2001 09:51:57 -0400 Subject: [mapserver-users] Dynamic Layers PHP/Mapscript Message-ID: <004601c12591$731adaf0$2f01a8c0@morpheus> Hi, I am running mapserver 3.5(night build), with PHP/Mapscript. I was wondering how to turn a layer on, before it gets displayed to my browser. I have 3 layers in my map file. Layers 0 and 2 have "status on" Layer 1 has "status off". Here is what I am trying... I am turning the status of my 2nd layer to "on" but it still doesnt show up. $mapObj = ms_newMapObj("$dataPath/$map.map"); $layerObj = $mapObj->getLayer(1); $layerObj->status=1; header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("content-type: image/jpeg"); $img->saveImage("",MS_JPEG,0,0, 80); thanks!! -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at dmsolutions.ca Wed Aug 15 06:59:07 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Wed, 15 Aug 2001 09:59:07 -0400 Subject: [mapserver-users] Dynamic Layers PHP/Mapscript References: <004601c12591$731adaf0$2f01a8c0@morpheus> Message-ID: <3B7A802B.491CE0A3@dmsolutions.ca> Hi there, You should use something like this : .... $layerObj = $mapObj->getLayer(1); $layerObj->set("status", 1); .... Bye, Jim Burnett wrote: > Hi, I am running mapserver 3.5(night build), with PHP/Mapscript.I was > wondering how to turn a layer on, before it gets displayed to my > browser. I have 3 layers in my map file. Layers 0 and 2 have "status > on" Layer 1 has "status off". Here is what I am trying...I am turning > the status of my 2nd layer to "on" but it still doesnt show > up. $mapObj = ms_newMapObj("$dataPath/$map.map"); > $layerObj = $mapObj->getLayer(1); > $layerObj->status=1;header("Cache-Control: no-cache, > must-revalidate"); > header("Pragma: no-cache"); > header("content-type: image/jpeg"); > $img->saveImage("",MS_JPEG,0,0, 80); thanks!! -jim -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From toni.underwater at tiscalinet.it Sun Aug 12 04:51:36 2001 From: toni.underwater at tiscalinet.it (Antonio Cosenza) Date: Sun, 12 Aug 2001 13:51:36 +0200 Subject: [mapserver-users] Image Speed Questions---Generic In-Reply-To: <13858AA1A74F30419F319ACB66A9D12201913F@mercator.topozone.com> References: <13858AA1A74F30419F319ACB66A9D12201913F@mercator.topozone.com> Message-ID: <01081213513600.01446@linux> Il 22:09, luned? 30 luglio 2001, scrivesti: > Lowell - > > Since November, 1999, the TopoZone has been in the business of serving > "high-res imagery" "for a large spatial extent" by providing USGS DRG > (topographic) maps of the entire US online. We're now migrating that > application to a MapServer platform so we can add some interesting stuff > to it. I've been in and out of the PC graphics biz for about 20 years > now, and I've learned a bit about performance. I wanted to take the > time to write a thorough commentary on raster tips, but that's going to > take me a while. Here's a shorter version along with a promise for a > more extensive treatment someday as soon as I can. > > For computer graphics in general I like to live by two golden rules - > (1) precompute the hell out of everything, and (2) trivially reject as > much as you can as fast as you can. Here are some notes on both rules. > > 1. Precompute everything - if you're trying to serve a lot of users on > the Web with relatively inexpensive hardware, you'll find that a fast > RAID-5 SCSI array is much cheaper than lots of RAM and CPU. Wherever > it's possible, think hard about how you can precompute raster results > rather than doing them on the fly. Look at a simple case - zooming out > from a raster image that's viewed at 100% (1:1) zoom. When you zoom out > 4x, you're reading 16 times more input pixels than you are writing > output pixels. At 16x it's 256 times more; you're basically reading a > lot of data and throwing 99.5% of it away. For the TopoZone site we > chose to offer four fixed zoom levels - period. They are all > precomputed and there is no on-the-fly scaling. This is a more > reasonable approach for topo maps, because they're useful (i.e. > readable) only at a relatively small range of scales. For aerial or > satellite imagery, or other continuous-tone imagery, you can zoom out > farther and still have things work. > > Using GDAL support with overviews (built with GDALADDO) is a very easy > way to do this. Precomputing zoom scales offers a tradeoff between disk > space and speed - the more space you use, the faster things will go. > However, the highest-level overviews require the smallest amount of > space but actually save the most time. If you created only one 4x > overview, it would (roughly) increase your storage space by only about > 7% (since the 4x view is 1/16th the size of the original) but for all > views zoomed out beyond 4x you're going to deal with 1/16th as many > pixels. Creating lots of overviews (2, 4, 8, 16, 32, etc.) gives you > the best performance, but think very hard about whether you really need > that 2x overview. Your mileage may vary based on usage, CPU speed, RAM, > disk performance, etc. so you really should test things yourself in your > real environment. > > 2. Trivially reject as much as you can - "trivial rejection" is the > process of very quickly deciding which input data is not needed in the > output map, and ignoring it as quickly as possible. For raster data > sets, the way to do this is with a TILEINDEX shapefile. By reading ONE > input fileset (the TILEINDEX shapefile), you can very quickly determine > exactly which TIFF input files are needed to create the requested map. > This is enormously faster than reading lots of TIFF/GeoTIFF files, > extracting the bounding box from each, and then discovering that you > never needed to open most of them in the first place. Disk seek time is > expensive compared to sequential reading, so reading 100,000 bytes from > one file is much, much faster than reading 100 bytes from each of 1,000 > files. > > In addition to these general rules, make sure your images don't make > life difficult for MapServer. For TIFF images, this particularly means > making sure they are created with only one (or a few) rows per strip. > Some image libraries create single-strip TIFF files, with all the rows > in one strip. If you are using any sort of data compression (PackBits, > for example) MapServer will need to read and interpret (i.e. decompress) > all the data in that strip up to the point you need. For example, if > you've got a 7,000-row file in one strip, and you need to display the > bottom few rows of that file, MapServer will need to read from disk AND > decompress essentially the entire file just to get a few lines from it. > If you have one row per strip, you will get less effective compression > (because each row is compressed independently) but you will only need to > read the rows you need. A compromise with a small number of rows per > strip might give you better compression with acceptable performance. > > Finally, know your data and your users. Some data types compress better > than others. Some are virtually incompressible (at least within the > world of formats TIFF supports). Some data types are used differently > than others - as I suggested above, a 32x zoom out on a 1-meter aerial > photo is a somewhat reasonable thing to ask for, while the same zoom on > a topographic map produces illegible mush. > > I'm still shuffling around some R&D equipment, but sometime this week > I'll post a link to a MapServer site that offers a 30-meter shaded > relief map of the entire US and 2.5-meter topographic maps of the entire > US. Together they're over 60,000 files with about 300 GB of data, and > they illustrate some of the things I've talked about here. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > Thank you very much Ed. What you said has been very important for me, cause i'm working on my TESI, and my problem was to decide how serve big satellites image using mapserver. I like the 'trivial rejection' rule, it's fantastic. But i have one more question about tileindex shapefile. If i have a very big raster image should i have to manually create a set of little tiles images or can I use some program that can do it quicly for me? Thanks a lot to you and to all mapserver community Toni From morissette at dmsolutions.ca Wed Aug 15 07:12:48 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 15 Aug 2001 10:12:48 -0400 Subject: [mapserver-users] Dynamic Layers PHP/Mapscript References: <004601c12591$731adaf0$2f01a8c0@morpheus> Message-ID: <3B7A8360.EC4F0988@dmsolutions.ca> > Jim Burnett wrote: > > Here is what I am trying... > I am turning the status of my 2nd layer to "on" but it still doesnt > show up. > > $mapObj = ms_newMapObj("$dataPath/$map.map"); > $layerObj = $mapObj->getLayer(1); > $layerObj->status=1; Setting '$layerObj->status=1' directly does not update the internal MapServer data structures... you have to use $layerObj->set("status", 1); or even better: $layerObj->set("status", MS_ON); This applies to setting values in any of the MapScript objects in PHP. I know this kind of sucks but unfortunately we're stuck with this because of the way things work internally in PHP. Last time I checked there was still no way for a PHP module to have a callback or an event trigerred when one of its class members was changed by the script... so the only way around this is using the set() method. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jimburnett at ntelos.net Wed Aug 15 07:22:06 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 15 Aug 2001 10:22:06 -0400 Subject: [mapserver-users] Dynamic Layers PHP/Mapscript References: <004601c12591$731adaf0$2f01a8c0@morpheus> <3B7A802B.491CE0A3@dmsolutions.ca> Message-ID: <006701c12595$a97c3950$2f01a8c0@morpheus> I just figured that out. LOL I always post a mesasge, then figure it our like just a few minutes after I post. Gosh! :-) -jim ----- Original Message ----- From: Assefa Yewondwossen To: Jim Burnett Cc: mapserver-users at lists.gis.umn.edu Sent: Wednesday, August 15, 2001 9:59 AM Subject: Re: [mapserver-users] Dynamic Layers PHP/Mapscript Hi there, You should use something like this : .... $layerObj = $mapObj->getLayer(1); $layerObj->set("status", 1); .... Bye, Jim Burnett wrote: Hi, I am running mapserver 3.5(night build), with PHP/Mapscript.I was wondering how to turn a layer on, before it gets displayed to my browser. I have 3 layers in my map file. Layers 0 and 2 have "status on" Layer 1 has "status off". Here is what I am trying...I am turning the status of my 2nd layer to "on" but it still doesnt show up. $mapObj = ms_newMapObj("$dataPath/$map.map"); $layerObj = $mapObj->getLayer(1); $layerObj->status=1;header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("content-type: image/jpeg"); $img->saveImage("",MS_JPEG,0,0, 80); thanks!! -jim -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimburnett at ntelos.net Wed Aug 15 07:55:54 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 15 Aug 2001 10:55:54 -0400 Subject: [mapserver-users] Dynamic Layers PHP/Mapscript References: <004601c12591$731adaf0$2f01a8c0@morpheus> Message-ID: <008201c1259a$64251e30$2f01a8c0@morpheus> OK, I figured it out. $mapObj = ms_newMapObj("$dataPath/$map.map"); $layerObj = $mapObj->getLayer(1); $layerObj->set("status",1); <---------------------------------------THIS LINE header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("content-type: image/jpeg"); $img->saveImage("",MS_JPEG,0,0, 80); thanks!! -jim I always seem to figure things out just after I post. HRM! oh well, good for the archive ----- Original Message ----- From: Jim Burnett To: mapserver-users at lists.gis.umn.edu Sent: Wednesday, August 15, 2001 9:51 AM Subject: [mapserver-users] Dynamic Layers PHP/Mapscript Hi, I am running mapserver 3.5(night build), with PHP/Mapscript. I was wondering how to turn a layer on, before it gets displayed to my browser. I have 3 layers in my map file. Layers 0 and 2 have "status on" Layer 1 has "status off". Here is what I am trying... I am turning the status of my 2nd layer to "on" but it still doesnt show up. $mapObj = ms_newMapObj("$dataPath/$map.map"); $layerObj = $mapObj->getLayer(1); $layerObj->status=1; header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("content-type: image/jpeg"); $img->saveImage("",MS_JPEG,0,0, 80); thanks!! -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.kleva at siol.net Wed Aug 15 09:43:44 2001 From: alfred.kleva at siol.net (Alfred Kleva) Date: Wed, 15 Aug 2001 17:43:44 +0100 Subject: [mapserver-users] 2 Color(1 bit) tiff files Message-ID: <001d01c125a9$74933630$1a00000a@3port.si> Hi folks ! I have the same problem like Hana. I have tested ms 3.5 on RH7.9 with this options : 1. ./configure --with-tiff --with-gdal ... this options do not support classes 2. ./configure --without-tiff --with-gdal ... this options (use gdal tiff) support classes, but same images do not display correctly 3. I have added "new" code in "static int drawTIFF" of mapraster.c (see "case PHOTOMETRIC_MINISWHITE:"). Options are ./configure --with-tiff --with-gdal ... In my tests it's works OK. ****** TOP ******** static int drawTIFF(mapObj *map, layerObj *layer, gdImagePtr img, char *filename) { #ifdef USE_TIFF int i,j; /* loop counters */ double x,y; TIFF *tif=NULL; unsigned char *buf; long w, h; short type, nbits; unsigned short compression; unsigned short *red, *green, *blue; int cmap[MAXCOLORS]; int startx, starty; /* this is where we start out reading */ int st,strip; /* current strip */ int xi,yi,startj,endj,boffset,vv; double ulx, uly; /* upper left-hand coordinates */ double skipx,skipy; /* skip factors (x and y) */ double cx,cy; /* cell sizes (x and y) */ long rowsPerStrip; TIFFSetWarningHandler(NULL); /* can these be directed to the mapserver error functions... */ TIFFSetErrorHandler(NULL); tif = TIFFOpen(filename, "rb"); if(!tif) { msSetError(MS_IMGERR, "Error loading TIFF image.", "drawTIFF()"); return(-1); } if(readGEOTiff(tif, &ulx, &uly, &cx, &cy) != 0) { if(readWorldFile(filename, &ulx, &uly, &cx, &cy) != 0) { TIFFClose(tif); return(-1); } } skipx = map->cellsize/cx; skipy = map->cellsize/cy; startx = (map->extent.minx - ulx)/cx; starty = (uly - map->extent.maxy)/cy; TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &w); TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h); TIFFGetField(tif, TIFFTAG_BITSPERSAMPLE, &nbits); if(nbits != 8 && nbits != 4 && nbits != 1) { msSetError(MS_IMGERR, "Only 1, 4, and 8-bit images are supported.", "drawTIFF()"); TIFFClose(tif); return(-1); } TIFFGetField(tif, TIFFTAG_ROWSPERSTRIP, &rowsPerStrip); TIFFGetField(tif, TIFFTAG_COMPRESSION, &compression); TIFFGetField(tif, TIFFTAG_PHOTOMETRIC, &type); /* check image type */ switch(type) { case(PHOTOMETRIC_PALETTE): TIFFGetField(tif, TIFFTAG_COLORMAP, &red, &green, &blue); if(layer->numclasses > 0) { char tmpstr[3]; int c; for(i=0; ioffsite) { sprintf(tmpstr,"%d", i); c = getClass(layer, tmpstr); if(c == -1) /* doesn't belong to any class, so handle like offsite */ cmap[i] = -1; else { if(layer->class[c].color == -1) /* use raster color */ cmap[i] = add_color(map,img, CVT(red[i]), CVT(green[i]), CVT(blue[i])); else if(layer->class[c].color == -255) /* make transparent */ cmap[i] = -1; else cmap[i] = layer->class[c].color; /* use class color */ } } else cmap[i] = -1; } } else { for(i=0; ioffsite) cmap[i] = add_color(map,img, CVT(red[i]), CVT(green[i]), CVT(blue[i])); else cmap[i] = -1; } } break; case PHOTOMETRIC_MINISBLACK: /* classes are NOT honored for non-colormapped data */ if (nbits==1) { if(layer->offsite >= 0) cmap[layer->offsite] = -1; if(layer->offsite != 0) cmap[0]=add_color(map,img,0,0,0); if(layer->offsite != 1) cmap[1]=add_color(map,img,255,255,255); } else { if (nbits==4) { for (i=0; i<16; i++) { if(i != layer->offsite) cmap[i]=add_color(map,img,i*17,i*17,i*17); else cmap[i] = -1; } } else { /* 8-bit */ for (i=0; i<256; i++) { if(i != layer->offsite) cmap[i]=add_color(map,img,(i>>4)*17,(i>>4)*17,(i>>4)*17); else cmap[i] = -1; } } } break; case PHOTOMETRIC_MINISWHITE: /* classes are NOT honored for non-colormapped data */ /* ORIGINAL COMENTED if (nbits==1) { if(layer->offsite >= 0) cmap[layer->offsite] = -1; if(layer->offsite != 0) cmap[0]=add_color(map,img,255,255,255); if(layer->offsite != 1) cmap[1]=add_color(map,img,0,0,0); } else { msSetError(MS_IMGERR,"Can't do inverted grayscale images","drawTIFF()"); TIFFClose(tif); return(-1); } */ /* COPYED FROM 'case(PHOTOMETRIC_PALETTE)' and 'case PHOTOMETRIC_MINISWHITE' */ if (nbits==1) { TIFFGetField(tif, TIFFTAG_COLORMAP, &red, &green, &blue); if(layer->numclasses > 0) { char tmpstr[3]; int c; for(i=0; ioffsite) { sprintf(tmpstr,"%d", i); c = getClass(layer, tmpstr); if(c == -1) /* doesn't belong to any class, so handle like offsite */ cmap[i] = -1; else { if(layer->class[c].color == -1) /* use raster color */ cmap[i] = add_color(map,img, CVT(red[i]), CVT(green[i]), CVT(blue[i])); else if(layer->class[c].color == -255) /* make transparent */ cmap[i] = -1; else cmap[i] = layer->class[c].color; /* use class color */ } } else cmap[i] = -1; } } else { if(layer->offsite >= 0) cmap[layer->offsite] = -1; if(layer->offsite != 0) cmap[0]=add_color(map,img,255,255,255); if(layer->offsite != 1) cmap[1]=add_color(map,img,0,0,0); /* for(i=0; ioffsite) cmap[i] = add_color(map,img, CVT(red[i]), CVT(green[i]), CVT(blue[i])); else cmap[i] = -1; } */ } } else { msSetError(MS_IMGERR,"Can't do inverted grayscale images","drawTIFF()"); TIFFClose(tif); return(-1); } break; default: msSetError(MS_IMGERR, "Only colormapped and grayscale images are supported.", "drawTIFF()"); TIFFClose(tif); return(-1); } buf = (unsigned char *)_TIFFmalloc(TIFFStripSize(tif)); /* allocate strip buffer */ /* ** some set-up; the startx calculation is problematical analytically so we ** find it iteratively */ x=startx; for (j=0; jsx && MS_NINT(x)<0; j++) x+=skipx; startx=x; startj=j; for (j=startj; jsx && MS_NINT(x)sy; i++) { /* for each row */ yi=MS_NINT(y); if((yi >= 0) && (yi < h)) { st=TIFFComputeStrip(tif,yi,0); if (st!=strip) { TIFFReadEncodedStrip(tif, st, buf, TIFFStripSize(tif)); strip=st; } x = startx; switch (nbits) { case 8: boffset=(yi % rowsPerStrip) * w; for(j=startj; jpixels[i][j] = cmap[vv]; x+=skipx; } break; case 4: boffset=(yi % rowsPerStrip) * ((w+1) >> 1); for(j=startj; j> 1) + boffset] >> (4*((yi+1) & 1))) & 15; if (cmap[vv] != -1) img->pixels[i][j] = cmap[vv]; x+=skipx; } break; case 1: boffset=(yi % rowsPerStrip) * ((w+7) >> 3); for(j=startj; j> 3) + boffset] >> (7-(xi & 7))) & 1; if (cmap[vv] != -1) img->pixels[i][j] = cmap[vv]; x+=skipx; } break; } } y+=skipy; } _TIFFfree(buf); TIFFClose(tif); return(0); #else msSetError(MS_IMGERR, "TIFF support is not available.", "drawTIFF()"); return(-1); #endif } ****** BOTTOM *** Hana wrote : ------------- Begin Forwarded Message ------------- From: hana.jirsova at oku-pce.cz Date: Fri, 9 Feb 2001 9:46:12 +0100 To: mapserver-info at lists.gis.umn.edu Subject: 2 Color(1 bit) tiff files I tried to display 2 color's files (1 bit) in different colors, but unsuccessfully. I have rasters for various themes (one raster for rivers, second for seats, third for forest,....) and all are drawn only with black and white(transparent) color. Maybe I'm doing some mistakes in code. Please, be so kind and look at it : #********************** This is the raster of forest LAYER NAME 'cl2421' DATA cl2421.tif TYPE RASTER CLASS EXPRESSION "1" COLOR 0 255 0 END # CLASS OFFSITE 0 END # LAYER # this upper example works only in black and white #********************** # I need to do it with the group of rasters ... rivers, # it works only in black and white , I don't know how to # change it LAYER NAME 'cv2421' TYPE RASTER STATUS off TILEINDEX 'kl50' TILEITEM RIVERS MAXSCALE 200000 OFFSITE 0 END # LAYER Thank you very much. Hana Jirsova ------------- End Forwarded Message ------------- I have tested ms 3.5 on RH7.9 with this options : 1. ./configure --with-tiff --with-gdal ... this options do not support classes 2. ./configure --without-tiff --with-gdal ... this options (use gdal tiff) support classes, but same images do not display correctly 3. I have added "new" code in "static int drawTIFF" of mapraster.c (see "case PHOTOMETRIC_MINISWHITE:"). Options are ./configure --with-tiff --with-gdal ... In my tests it's works OK. LP Alfred Kleva ****** TOP ******** static int drawTIFF(mapObj *map, layerObj *layer, gdImagePtr img, char *filename) { #ifdef USE_TIFF int i,j; /* loop counters */ double x,y; TIFF *tif=NULL; unsigned char *buf; long w, h; short type, nbits; unsigned short compression; unsigned short *red, *green, *blue; int cmap[MAXCOLORS]; int startx, starty; /* this is where we start out reading */ int st,strip; /* current strip */ int xi,yi,startj,endj,boffset,vv; double ulx, uly; /* upper left-hand coordinates */ double skipx,skipy; /* skip factors (x and y) */ double cx,cy; /* cell sizes (x and y) */ long rowsPerStrip; TIFFSetWarningHandler(NULL); /* can these be directed to the mapserver error functions... */ TIFFSetErrorHandler(NULL); tif = TIFFOpen(filename, "rb"); if(!tif) { msSetError(MS_IMGERR, "Error loading TIFF image.", "drawTIFF()"); return(-1); } if(readGEOTiff(tif, &ulx, &uly, &cx, &cy) != 0) { if(readWorldFile(filename, &ulx, &uly, &cx, &cy) != 0) { TIFFClose(tif); return(-1); } } skipx = map->cellsize/cx; skipy = map->cellsize/cy; startx = (map->extent.minx - ulx)/cx; starty = (uly - map->extent.maxy)/cy; TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &w); TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h); TIFFGetField(tif, TIFFTAG_BITSPERSAMPLE, &nbits); if(nbits != 8 && nbits != 4 && nbits != 1) { msSetError(MS_IMGERR, "Only 1, 4, and 8-bit images are supported.", "drawTIFF()"); TIFFClose(tif); return(-1); } TIFFGetField(tif, TIFFTAG_ROWSPERSTRIP, &rowsPerStrip); TIFFGetField(tif, TIFFTAG_COMPRESSION, &compression); TIFFGetField(tif, TIFFTAG_PHOTOMETRIC, &type); /* check image type */ switch(type) { case(PHOTOMETRIC_PALETTE): TIFFGetField(tif, TIFFTAG_COLORMAP, &red, &green, &blue); if(layer->numclasses > 0) { char tmpstr[3]; int c; for(i=0; ioffsite) { sprintf(tmpstr,"%d", i); c = getClass(layer, tmpstr); if(c == -1) /* doesn't belong to any class, so handle like offsite */ cmap[i] = -1; else { if(layer->class[c].color == -1) /* use raster color */ cmap[i] = add_color(map,img, CVT(red[i]), CVT(green[i]), CVT(blue[i])); else if(layer->class[c].color == -255) /* make transparent */ cmap[i] = -1; else cmap[i] = layer->class[c].color; /* use class color */ } } else cmap[i] = -1; } } else { for(i=0; ioffsite) cmap[i] = add_color(map,img, CVT(red[i]), CVT(green[i]), CVT(blue[i])); else cmap[i] = -1; } } break; case PHOTOMETRIC_MINISBLACK: /* classes are NOT honored for non-colormapped data */ if (nbits==1) { if(layer->offsite >= 0) cmap[layer->offsite] = -1; if(layer->offsite != 0) cmap[0]=add_color(map,img,0,0,0); if(layer->offsite != 1) cmap[1]=add_color(map,img,255,255,255); } else { if (nbits==4) { for (i=0; i<16; i++) { if(i != layer->offsite) cmap[i]=add_color(map,img,i*17,i*17,i*17); else cmap[i] = -1; } } else { /* 8-bit */ for (i=0; i<256; i++) { if(i != layer->offsite) cmap[i]=add_color(map,img,(i>>4)*17,(i>>4)*17,(i>>4)*17); else cmap[i] = -1; } } } break; case PHOTOMETRIC_MINISWHITE: /* classes are NOT honored for non-colormapped data */ /* ORIGINAL COMENTED if (nbits==1) { if(layer->offsite >= 0) cmap[layer->offsite] = -1; if(layer->offsite != 0) cmap[0]=add_color(map,img,255,255,255); if(layer->offsite != 1) cmap[1]=add_color(map,img,0,0,0); } else { msSetError(MS_IMGERR,"Can't do inverted grayscale images","drawTIFF()"); TIFFClose(tif); return(-1); } */ /* COPYED FROM 'case(PHOTOMETRIC_PALETTE)' and 'case PHOTOMETRIC_MINISWHITE' */ if (nbits==1) { TIFFGetField(tif, TIFFTAG_COLORMAP, &red, &green, &blue); if(layer->numclasses > 0) { char tmpstr[3]; int c; for(i=0; ioffsite) { sprintf(tmpstr,"%d", i); c = getClass(layer, tmpstr); if(c == -1) /* doesn't belong to any class, so handle like offsite */ cmap[i] = -1; else { if(layer->class[c].color == -1) /* use raster color */ cmap[i] = add_color(map,img, CVT(red[i]), CVT(green[i]), CVT(blue[i])); else if(layer->class[c].color == -255) /* make transparent */ cmap[i] = -1; else cmap[i] = layer->class[c].color; /* use class color */ } } else cmap[i] = -1; } } else { if(layer->offsite >= 0) cmap[layer->offsite] = -1; if(layer->offsite != 0) cmap[0]=add_color(map,img,255,255,255); if(layer->offsite != 1) cmap[1]=add_color(map,img,0,0,0); /* for(i=0; ioffsite) cmap[i] = add_color(map,img, CVT(red[i]), CVT(green[i]), CVT(blue[i])); else cmap[i] = -1; } */ } } else { msSetError(MS_IMGERR,"Can't do inverted grayscale images","drawTIFF()"); TIFFClose(tif); return(-1); } break; default: msSetError(MS_IMGERR, "Only colormapped and grayscale images are supported.", "drawTIFF()"); TIFFClose(tif); return(-1); } buf = (unsigned char *)_TIFFmalloc(TIFFStripSize(tif)); /* allocate strip buffer */ /* ** some set-up; the startx calculation is problematical analytically so we ** find it iteratively */ x=startx; for (j=0; jsx && MS_NINT(x)<0; j++) x+=skipx; startx=x; startj=j; for (j=startj; jsx && MS_NINT(x)sy; i++) { /* for each row */ yi=MS_NINT(y); if((yi >= 0) && (yi < h)) { st=TIFFComputeStrip(tif,yi,0); if (st!=strip) { TIFFReadEncodedStrip(tif, st, buf, TIFFStripSize(tif)); strip=st; } x = startx; switch (nbits) { case 8: boffset=(yi % rowsPerStrip) * w; for(j=startj; jpixels[i][j] = cmap[vv]; x+=skipx; } break; case 4: boffset=(yi % rowsPerStrip) * ((w+1) >> 1); for(j=startj; j> 1) + boffset] >> (4*((yi+1) & 1))) & 15; if (cmap[vv] != -1) img->pixels[i][j] = cmap[vv]; x+=skipx; } break; case 1: boffset=(yi % rowsPerStrip) * ((w+7) >> 3); for(j=startj; j> 3) + boffset] >> (7-(xi & 7))) & 1; if (cmap[vv] != -1) img->pixels[i][j] = cmap[vv]; x+=skipx; } break; } } y+=skipy; } _TIFFfree(buf); TIFFClose(tif); return(0); #else msSetError(MS_IMGERR, "TIFF support is not available.", "drawTIFF()"); return(-1); #endif } ****** BOTTOM *** From pramsey at refractions.net Wed Aug 15 08:57:21 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 15 Aug 2001 08:57:21 -0700 Subject: [mapserver-users] Image Speed Questions---Generic References: <13858AA1A74F30419F319ACB66A9D12201913F@mercator.topozone.com> <01081213513600.01446@linux> Message-ID: <3B7A9BE1.A545EC66@refractions.net> Could I get some enlightenment from the raster experts on the benefits of various image formats? Right now, I have 25metre relief for all of BC, in about 120 files, in PNG format. I am guessing that I can radically improve my speed by changing to a format which does not require decompression. Would TIFF be a faster format? Assuming it is, Ed mentions this concept of strips-and-lines with respect to TIFF files: is this some way of making random access of the tiff files faster? What do the concepts refer to, and what is the best balance of the variables? Thanks, Paul Antonio Cosenza wrote: > > Il 22:09, luned? 30 luglio 2001, scrivesti: > > Lowell - > > > > Since November, 1999, the TopoZone has been in the business of serving > > "high-res imagery" "for a large spatial extent" by providing USGS DRG > > (topographic) maps of the entire US online. We're now migrating that > > application to a MapServer platform so we can add some interesting stuff > > to it. I've been in and out of the PC graphics biz for about 20 years > > now, and I've learned a bit about performance. I wanted to take the > > time to write a thorough commentary on raster tips, but that's going to > > take me a while. Here's a shorter version along with a promise for a > > more extensive treatment someday as soon as I can. > > > > For computer graphics in general I like to live by two golden rules - > > (1) precompute the hell out of everything, and (2) trivially reject as > > much as you can as fast as you can. Here are some notes on both rules. > > > > 1. Precompute everything - if you're trying to serve a lot of users on > > the Web with relatively inexpensive hardware, you'll find that a fast > > RAID-5 SCSI array is much cheaper than lots of RAM and CPU. Wherever > > it's possible, think hard about how you can precompute raster results > > rather than doing them on the fly. Look at a simple case - zooming out > > from a raster image that's viewed at 100% (1:1) zoom. When you zoom out > > 4x, you're reading 16 times more input pixels than you are writing > > output pixels. At 16x it's 256 times more; you're basically reading a > > lot of data and throwing 99.5% of it away. For the TopoZone site we > > chose to offer four fixed zoom levels - period. They are all > > precomputed and there is no on-the-fly scaling. This is a more > > reasonable approach for topo maps, because they're useful (i.e. > > readable) only at a relatively small range of scales. For aerial or > > satellite imagery, or other continuous-tone imagery, you can zoom out > > farther and still have things work. > > > > Using GDAL support with overviews (built with GDALADDO) is a very easy > > way to do this. Precomputing zoom scales offers a tradeoff between disk > > space and speed - the more space you use, the faster things will go. > > However, the highest-level overviews require the smallest amount of > > space but actually save the most time. If you created only one 4x > > overview, it would (roughly) increase your storage space by only about > > 7% (since the 4x view is 1/16th the size of the original) but for all > > views zoomed out beyond 4x you're going to deal with 1/16th as many > > pixels. Creating lots of overviews (2, 4, 8, 16, 32, etc.) gives you > > the best performance, but think very hard about whether you really need > > that 2x overview. Your mileage may vary based on usage, CPU speed, RAM, > > disk performance, etc. so you really should test things yourself in your > > real environment. > > > > 2. Trivially reject as much as you can - "trivial rejection" is the > > process of very quickly deciding which input data is not needed in the > > output map, and ignoring it as quickly as possible. For raster data > > sets, the way to do this is with a TILEINDEX shapefile. By reading ONE > > input fileset (the TILEINDEX shapefile), you can very quickly determine > > exactly which TIFF input files are needed to create the requested map. > > This is enormously faster than reading lots of TIFF/GeoTIFF files, > > extracting the bounding box from each, and then discovering that you > > never needed to open most of them in the first place. Disk seek time is > > expensive compared to sequential reading, so reading 100,000 bytes from > > one file is much, much faster than reading 100 bytes from each of 1,000 > > files. > > > > In addition to these general rules, make sure your images don't make > > life difficult for MapServer. For TIFF images, this particularly means > > making sure they are created with only one (or a few) rows per strip. > > Some image libraries create single-strip TIFF files, with all the rows > > in one strip. If you are using any sort of data compression (PackBits, > > for example) MapServer will need to read and interpret (i.e. decompress) > > all the data in that strip up to the point you need. For example, if > > you've got a 7,000-row file in one strip, and you need to display the > > bottom few rows of that file, MapServer will need to read from disk AND > > decompress essentially the entire file just to get a few lines from it. > > If you have one row per strip, you will get less effective compression > > (because each row is compressed independently) but you will only need to > > read the rows you need. A compromise with a small number of rows per > > strip might give you better compression with acceptable performance. > > > > Finally, know your data and your users. Some data types compress better > > than others. Some are virtually incompressible (at least within the > > world of formats TIFF supports). Some data types are used differently > > than others - as I suggested above, a 32x zoom out on a 1-meter aerial > > photo is a somewhat reasonable thing to ask for, while the same zoom on > > a topographic map produces illegible mush. > > > > I'm still shuffling around some R&D equipment, but sometime this week > > I'll post a link to a MapServer site that offers a 30-meter shaded > > relief map of the entire US and 2.5-meter topographic maps of the entire > > US. Together they're over 60,000 files with about 300 GB of data, and > > they illustrate some of the things I've talked about here. > > > > - Ed > > > > Ed McNierney > > Chief Mapmaker > > TopoZone.com > > ed at topozone.com > > (978) 251-4242 > > > > Thank you very much Ed. > What you said has been very important for me, cause i'm working on my TESI, > and my problem was to decide how serve big satellites image using mapserver. > I like the 'trivial rejection' rule, it's fantastic. But i have one more > question about tileindex shapefile. If i have a very big raster image should > i have to manually create a set of little tiles images or can I use some > program that can do it quicly for me? > Thanks a lot to you and to all mapserver community > Toni From pnaciona at gis.umn.edu Wed Aug 15 09:01:11 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 15 Aug 2001 11:01:11 -0500 Subject: [mapserver-users] Mapserver v. 3.5 with SDE support In-Reply-To: Message-ID: Andreas, I will look into getting ArcSDE installed on one of my Windows machine. Unfortunately, as much as I would like to include SDE in the win32 binary package, I can't do it soon enough. I'm out of town right now and will be gone for the rest of August and most of September. If you wantthis functionality ASAP, perhaps someone in the list can give it to you. Also, it would be nice if anyone can document how they compiled SDE into MapServer. -Perry On Wed, 15 Aug 2001, Maul, Andreas-Alexander wrote: > Hi, > is it possible that the mapserver version 3.5 nightly build for win32 could > be compiled with SDE support? I would greatly appreciate it. > Regards, > Andreas > From nhv at cape.com Wed Aug 15 10:05:15 2001 From: nhv at cape.com (Norman Vine) Date: Wed, 15 Aug 2001 13:05:15 -0400 Subject: [mapserver-users] Image Speed Questions---Generic In-Reply-To: <3B7A9BE1.A545EC66@refractions.net> Message-ID: <002501c125ac$7508d400$a300a8c0@nhv> Paul Ramsey writes: > >Could I get some enlightenment from the raster experts on the benefits >of various image formats? > >Right now, I have 25metre relief for all of BC, in about 120 files, in >PNG format. I am guessing that I can radically improve my speed by >changing to a format which does not require decompression. >Would TIFF be >a faster format? Assuming it is, Ed mentions this concept of >strips-and-lines with respect to TIFF files: is this some way of making >random access of the tiff files faster? What do the concepts refer to, >and what is the best balance of the variables? IMHO Generally speaking a Run Length Encoded (RLE) tile based Image format will give the best overall performance with 8 bit images. I have found that compression of some sort greatly helps disk seek and read times never mind storage requirements, and that RLE decompresses VERY quickly. There are other compression schemes that also decompress quickly, mostly codebook based, but RLE works The trick is to store LARGE images with many tiles < keeping the tile dimensions a power of two > and only requesting the necessary tiles for the subimage requested. FYI, The Tiff library supports a RLE tiled image format and subimage requests, greatly simplifying the code you have to write :-) Cheers Norman Vine From jimburnett at ntelos.net Wed Aug 15 10:47:23 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 15 Aug 2001 13:47:23 -0400 Subject: [mapserver-users] reference map PHP/Mapscript Message-ID: <007701c125b2$57269fc0$2f01a8c0@morpheus> MapServer/Mapscript 3.5 Night build PHP4.0.5 OK, The documentation says I have to use a GIF file for the reference map, but I only get the little red X. I switched back to jpg, and my ref map comes up, but I dont get a box for my current extent. Has anyone got the refrence map working without using GIF? Sample code? thanks -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From AWOOLEY at mountainland.org Wed Aug 15 14:36:13 2001 From: AWOOLEY at mountainland.org (ANDREW WOOLEY) Date: Wed, 15 Aug 2001 15:36:13 -0600 Subject: [mapserver-users] PHP QueryByPoint Message-ID: Folks, I have a strong feeling that the answer to my question is something I can find in the docs, but I am not sure where to look so I turn to you. I am using PHP mapscript on RedHat 7.1 and am finally getting it. However, I am having some strange behavior occurring when I querybypoint. The results come back correctly and it all looks good except that my map extent returns to the original each time. In other words, if I query, the map zooms out all the way. I have not found a place in the code where it should do that. Also, I am not sure how to high light the shape that gets clicked. If anyone can point me to some simple code that will show this, I would be much obliged. By the way, I am using the gmap code already and it is great, but I can't work my way through it to figure out where the shape gets highlighted and how to maintain the current map extent. Thanks very much for your patience and assistance. Andrew Andrew Wooley GIS Operations Manager Mountainland Association of Governments Orem, UT phone: 801.229.3844 fax: 801.229.3801 email: awooley at mountainland.org From christym at geoplan.ufl.edu Wed Aug 15 16:34:31 2001 From: christym at geoplan.ufl.edu (lc) Date: Wed, 15 Aug 2001 19:34:31 -0400 Subject: [mapserver-users] Mapplet document.mapserv has no properties Message-ID: <3B7B0707.E29A110E@geoplan.ufl.edu> Hello all, I need help with mapplet. I'm getting the following error message when I try to drag-zoom: "Applet mapplet document.mapserv has no properties" where "document.mapserv" is the form that's submitted to the mapserver app. Please check out the following site: http://geneva/cgi-bin/mapserv?map=/var/www/html/download/mapserv/maps/doqq.map&layers=cntbnd+hydros&mapext=370000+360000+793990.758+59428.989&mode=browse and its source code, and let me know if you have ideas on remedying this problem. Thank you. Regards, Christine McCain Research Assistant Geoplan / University of FL From mgiesbrecht at geoarctic.com Wed Aug 15 16:58:16 2001 From: mgiesbrecht at geoarctic.com (Mark Giesbrecht) Date: Wed, 15 Aug 2001 17:58:16 -0600 Subject: [mapserver-users] Apache msSaveImage() Message-ID: <3B7B0C98.2C085B6F@geoarctic.com> Hi all, I know this error is more specific to website configuration, but I can't seem to find an answer; I'm running Apache on NT, and can't seem to configure it to enable mapserver to write to the /tmp/ directory. msSaveImage(): Unable to access file. (g:\oracle\ora81\apache\apache\htdocs\ms_demo\DEMO997919362465.gif) Any pointers? Thanks in advance, Mark -- Mark Giesbrecht, M.Sc. GIS Programmer/Analyst GeoArctic International Services Ltd. mgiesbrecht at geoarctic.com http://www.geoarctic.com phone: (403) 290-1320 fax: (403) 264-5848 From jef.mony at free.fr Tue Aug 14 03:48:25 2001 From: jef.mony at free.fr (=?ISO-8859-1?Q?Jean-Fran=E7ois_MONY?=) Date: Tue, 14 Aug 2001 12:48:25 +0200 (MEST) Subject: [mapserver-users] compilation Message-ID: <997786105.3b7901f965e1e@imp.free.fr> Hi, I try to compile the CVS version of mpaserver. I use ./configure --with-gd --with-tiff --with-jpeg --without-ttf --with- php=/usr/src/RPM/BUILD/php-4.0.4pl1 --with-apx (wich was good with mapserver 4) and I have this message : bash: ./configure: Aucun fichier ou repertoire de ce type same message with ./configure --help configure is 777 and really exist ! An idea ?? Thanks Jean-Fran?ois MONY - jef.mony at free.fr Parc naturel r?gional de Lorraine Responsable informatique/SIG tel : 03-83-84-06-37 fax : 03-81-33-60 D?tach? aupr?s du laboratoire de phyto?cologie de l'universit? de Metz tel : 03-87-37-84-05 fax : From mapserver at cubok.com Wed Aug 15 18:12:07 2001 From: mapserver at cubok.com (Richard Ford) Date: Thu, 16 Aug 2001 11:12:07 +1000 Subject: [mapserver-users] Shapefiles References: <00e801c12465$a62b58c0$01bca8c0@Peach> <3B79485D.EA152806@refractions.net> Message-ID: <005201c125f0$77bcb880$01bca8c0@Peach> Thanks a lot. That saves me two days as I waited for the install CD's of ArcView. BTW - what would or can one do to show RASTER files. Again I know nothing of GIS to well. I know that Raster is a format and that ArcIMS does not display raster images. Does Mapserver display or can it display RASTER images. And if so - is a ratser image a very common type of file used in most GIS applications? ArcView applications (models)? Cheers, Richard. > Shape files only hold vector data: points, lines, polygons. So that > should clear up one problem there :) Your test layer was declared as a > raster (an image). > Go to the ESRI web site (www.esri.com) and download their free tool, > ArcExplorer. This program lets you view and query shape files > interactively. You can use it to figure out what you're dealing with > before trying to shoehorn them into mapserver. > > Best of luck, > Paul > > Richard Ford wrote: > > > > G'Day All, > > > > Ok, I have been experimenting with Mapserver and I have a moderate grasp on > > the various files and configuration system. Not good enough to make a > > polished site - but good enough to test appropriateness of technology. :) > > > > Now I have a whole heap of shapefiles make in ESRI ArcView. > > > > How do I load them! :) > > > > I have made my own .map files and templates - heavily based on the MS_DEMO > > download. > > > > I have the shapefiles ready and shapepath set. > > > > Do I need to have the exact type set like raster, line, polygon, etc... As > > I have tried various shapefiles and colour options and all I get is a blank > > square were I was expecting some sort of image? > > > > *********************************************************** > > > > # > > # Start of map file > > # > > NAME LANCE > > STATUS ON > > SIZE 1200 1200 > > #SHADESET symbols/shade.sym > > #MARKERSET symbols/marker.sym > > #LINESET symbols/line.sym > > EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 > > #UNITS METERS > > SHAPEPATH "/usr/local/apache/htdcos/lance/risk_data" > > #IMAGECOLOR 255 255 255 > > > > # > > # Start of web interface definition > > # > > WEB > > HEADER demo_header.html > > TEMPLATE demo.html > > FOOTER demo_footer.html > > MINSCALE 1000 > > MAXSCALE 1550000 > > IMAGEPATH "/usr/local/apache/htdocs/tmp/" > > IMAGEURL "/tmp/" > > # LOG "demo.log" > > END > > > > QUERYMAP > > SIZE 200 200 > > STATUS ON > > STYLE HILITE > > COLOR 255 0 0 > > END > > > > # > > # Start of reference map > > # > > #REFERENCE > > # IMAGE graphics/reference.tif > > # EXTENT 393234.393701263 5205405.16440722 495769.579718949 > > 5307959.02579127 > > # SIZE 120 120 > > # STATUS ON > > # COLOR -1 -1 -1 > > # OUTLINECOLOR 255 0 0 > > #END > > > > # > > # Start of legend > > > > LEGEND > > KEYSIZE 18 12 > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > STATUS ON > > END > > > > # > > # Start of scalebar > > # > > SCALEBAR > > IMAGECOLOR 255 255 255 > > LABEL > > COLOR 255 255 255 > > SIZE tiny > > END > > STYLE 1 > > SIZE 50 2 > > COLOR 255 255 255 > > UNITS MILES > > INTERVALS 1 > > TRANSPARENT TRUE > > STATUS TRUE > > END > > > > # > > # Start of layer definitions > > # > > > > ################################## > > LAYER > > NAME "test" > > TYPE RASTER > > STATUS DEFAULT > > DATA disslv1 > > > > CLASS > > COLOR 250 140 250 > > END > > > > END > > #################################### > > > > END # Map File > > > > ************************************************* > > > > disslv1 is a shapefile (well the 3 files, .shp, .shx, .dbf) and nothing > > loads? > > > > I even changed the data to a known shapefile in the ms_demo directory and > > copied the same layer definition and I still got a blank box (But always > > with a working navigation system). > > > > Demo_init.html is set to load 'test' as a default layer.... clicking on the > > "re-display/query button still shows an empty square? > > > > I will not be meeting the creator of the shapefiles until Friday and I guess > > I will need more info about what is inside them to be able to define a layer > > to display them? I guess what I really wanted to do was to have a working > > system - though that just shows a basic map with 1 layer so he can see it. > > Proof of technology - to prove that mapserver is what we want to use and not > > ArcIMS - urghhh!. > > > > Many Thanks as I find my feet..... GIS expert - I am not. :) > > > > Richard Ford. > > richard at cubok.com www.cubok.com > > > > The views expressed here are solely my own and do not necessarily represent > > those of my employer. > From matt at aruke.com Wed Aug 15 19:24:40 2001 From: matt at aruke.com (Matt Carlson) Date: Thu, 16 Aug 2001 11:24:40 +0900 Subject: [mapserver-users] watermarking References: <997786105.3b7901f965e1e@imp.free.fr> Message-ID: <000901c125fa$9adb9ca0$0400a8c0@matt> Hello, we are currently pursing a client that wishes to copywright thier images in case someone attempts to save a map from the browser. i want to do something similar to what ewatermark.com is doing http://www.ewatermark.com with their visible watermark. does anyone have experience in integrating something like this with mapserver? Thanks in advance, Matt From matt at aruke.com Wed Aug 15 20:37:25 2001 From: matt at aruke.com (Matt Carlson) Date: Thu, 16 Aug 2001 12:37:25 +0900 Subject: [mapserver-users] watermarking References: <997786105.3b7901f965e1e@imp.free.fr> <000901c125fa$9adb9ca0$0400a8c0@matt> <3B7B38D2.7B3D67E1@adelaide.edu.au> Message-ID: <000e01c12604$c4e437a0$0400a8c0@matt> here's my solution for a baseline copywright embedded on the map using perl mapscript. company-logo points to a pixmap symbol in my markerset file. ##### place copywright on map ############################ $layer = new layerObj($map); $layer->{name} = "copywright"; $layer->{type} = $mapscript::MS_POINT; $layer->{status} = $mapscript::MS_ON; $class = new classObj($layer); $class->{name} = 'copywrightclass'; $symx = $map->getSymbolByName($mapscript::MS_MARKERSET,'company-logo'); $class->{symbol} = $symx; $lat_pix = ($latdf * 2)/$setmh; ## setmw and setmh are map height and width values. latdf and londf are lat and lon degree distance values across the map. $lon_pix = ($londf * 2)/$setmw; $cpy_lat = $lat - ($lat_pix * 262); ##these will change dependant on map size (262,170) $cpy_lon = $lon - ($lon_pix * 170); $point = new pointObj(); $point->{x} = $cpy_lon; $point->{y} = $cpy_lat; $point->draw($map,$layer,$img,'copywrightclass',undef); $layer->draw($map,$img); ####################################################### what i'm looking for is some way to prevent people from right clicking the map gif image on the browser screen and saving the map image onto thier desktop. the effect i'm wanting is when someone does save the map image, somehow an embedded image shows up with a big copywright message in the middle. i thought company's like digimarc and ewatermark were doing something similair to this?? matt ----- Original Message ----- From: "Lyndon Zimmermann" To: "Matt Carlson" Sent: Thursday, August 16, 2001 12:06 PM Subject: Re: [mapserver-users] watermarking > Matt, > > a screen dump does a reasonable job of copying a map - you won't > watermark that! The "as-delivered" png or gif is tidier though. > > On a similar note, I can't see how to add text to the scalebar either > for a copyright, acknowledgment or caveat. Any clues? > > Lyndon Z > > Matt Carlson wrote: > > > > Hello, > > > > we are currently pursing a client that wishes to copywright thier images in > > case someone attempts to save a map from the browser. i want to do > > something similar to what ewatermark.com is doing http://www.ewatermark.com > > with their visible watermark. does anyone have experience in integrating > > something like this with mapserver? > > > > Thanks in advance, > > > > Matt > From frosch at cs.tu-berlin.de Thu Aug 16 01:26:01 2001 From: frosch at cs.tu-berlin.de (Thorsten Fischer) Date: Thu, 16 Aug 2001 10:26:01 +0200 (MEST) Subject: [mapserver-users] Shapefiles In-Reply-To: <005201c125f0$77bcb880$01bca8c0@Peach> Message-ID: > BTW - what would or can one do to show RASTER files. Again I know nothing > of GIS to well. I know that Raster is a format and that ArcIMS does not > display raster images. Does Mapserver display or can it display RASTER > images. A raster file is anything that is measured in width and height of pixels. Your mapserver is creating raster files as output, namely .png or .gif files. The most common raster file type to _read_ in GIS (and the only one that i have seen used so far) is .tif as there is a standard for geo-referencing those. There is no special format called 'raster'. The term 'raster' is used as opposite to 'vector'. I do not think that ArcIMS does not display raster images. hope that helps, thorsten -- thorsten fischer : frosch (at) derfrosch (dot) de hostien in groesseren mengen sind schwer zu beschaffen From frosch at cs.tu-berlin.de Thu Aug 16 01:49:46 2001 From: frosch at cs.tu-berlin.de (Thorsten Fischer) Date: Thu, 16 Aug 2001 10:49:46 +0200 (MEST) Subject: [mapserver-users] watermarking In-Reply-To: <000e01c12604$c4e437a0$0400a8c0@matt> Message-ID: On Thu, 16 Aug 2001, Matt Carlson wrote: > here's my solution for a baseline copywright embedded on the map using perl > mapscript. company-logo points to a pixmap symbol in my markerset file. There is no reliable way to watermark digital data, though there is nothing bad in putting a company's logo on a picture. Watermarking of digital data does not work. Watermarking of digital data does not work. Watermarking of digital data does not work. No matter what the manufacturer of your watermarking scheme tells you: it does not work. At least it does not prevent the copying process itself; if it were reliable, it would ease tracking of copyright violators, but even that part ... does not work. That said: in my humbleth opinion, it's evil. It's digital data, it's in its nature to be copied. > what i'm looking for is some way to prevent people from right clicking the > map gif image on the browser screen and saving the map image onto thier > desktop. Hum??? When the image is created (by copying things around and finally creating a copy to the disk), the webserver copies it to the socket that belongs to the tcp connection: first copy. Any point inbetween that routes your packet copies it from one point to another to send it, but I will skip those here. Then the client takes it and copies it into memory: second copy. Most probably, it gets cached as well: third copy. I left out several steps, but the client has several copies already created. If you do not want your data to be copied, don't copy it yourself and leave it alone. > the effect i'm wanting is when someone does save the map image, > somehow an embedded image shows up with a big copywright message in the > middle. i thought company's like digimarc and ewatermark were doing > something similair to this?? You can do something similar using javascript to trap mouse events and react according to them. Some porn sites do it, take a look at them. But you will only shut the most unskilled persons out who cannot turn off javascript in their browser. And even if you manage to do this, I can still see the URL of your page on the top and handcraft a line that I can use with 'wget' or similar programs, take a look at the html sources and then 'wget' the image by hand if I really want it. But as it seems to me, the images you are talking about are not there for being looked at anyway, so I personally would not bother taking the effort. Sorry if this sounds like ranting/trolling around, but digital watermarking has never worked, it does not work and it will never work; well, it will maybe work if you blackbox every piece of hard- and software of every person on earth and seal it shut and then threaten to kill them if they even think about circumvent the protection. The logic behind it is flawed. Don't waste your time on it. hope that helps, thorsten -- thorsten fischer : frosch (at) derfrosch (dot) de hostien in groesseren mengen sind schwer zu beschaffen From winter at freytagberndt.at Thu Aug 16 02:43:23 2001 From: winter at freytagberndt.at (=?iso-8859-1?Q?Winter_Andr=E9as_M=2E?=) Date: Thu, 16 Aug 2001 11:43:23 +0200 Subject: AW: [mapserver-users] watermarking Message-ID: <21F248EF8A6EA4458772E0D7EF65B046058943@FBMAIL.freytagberndt.net> unsubscribe mapserver-users winter at freytagberndt.at end From matt at aruke.com Thu Aug 16 03:38:17 2001 From: matt at aruke.com (Matt Carlson) Date: Thu, 16 Aug 2001 19:38:17 +0900 Subject: [mapserver-users] watermarking References: Message-ID: <001501c1263f$90fa9160$0400a8c0@matt> Thorsten, thanks for your input. could you please tell that to our marketing manager... in japanese :) i agree. the reason i wrote the list is because i myself couldn't see it happening either. 'it' being a graphic changing states as it's saved from the browser. heck, even if it's not a gif ,png, or jpeg, for example a vector image in a java applet, if i can see the map with my eyes i can take a screenshot and copy and paste it into to photoshop. anyway, after spending a few hours on this issue i'm going to put this one to rest for a while. regards, matt ----- Original Message ----- From: "Thorsten Fischer" To: "Matt Carlson" Cc: "Lyndon Zimmermann" ; Sent: Thursday, August 16, 2001 5:49 PM Subject: Re: [mapserver-users] watermarking > On Thu, 16 Aug 2001, Matt Carlson wrote: > > > here's my solution for a baseline copywright embedded on the map using perl > > mapscript. company-logo points to a pixmap symbol in my markerset file. > > There is no reliable way to watermark digital data, though there is > nothing bad in putting a company's logo on a picture. > > > Watermarking of digital data does not work. Watermarking of digital data > does not work. Watermarking of digital data does not work. No matter what > the manufacturer of your watermarking scheme tells you: it does not work. > > At least it does not prevent the copying process itself; if it were > reliable, it would ease tracking of copyright violators, but even that > part ... does not work. > > That said: in my humbleth opinion, it's evil. It's digital data, it's in > its nature to be copied. > > > what i'm looking for is some way to prevent people from right clicking the > > map gif image on the browser screen and saving the map image onto thier > > desktop. > > Hum??? > > When the image is created (by copying things around and finally creating > a copy to the disk), the webserver copies it to the socket that > belongs to the tcp connection: first copy. Any point inbetween that > routes your packet copies it from one point to another to send it, but I > will skip those here. Then the client takes it and copies it into memory: > second copy. Most probably, it gets cached as well: third copy. I left out > several steps, but the client has several copies already created. > > If you do not want your data to be copied, don't copy it yourself and > leave it alone. > > > the effect i'm wanting is when someone does save the map image, > > somehow an embedded image shows up with a big copywright message in the > > middle. i thought company's like digimarc and ewatermark were doing > > something similair to this?? > > You can do something similar using javascript to trap mouse events and > react according to them. Some porn sites do it, take a look at them. But > you will only shut the most unskilled persons out who cannot turn off > javascript in their browser. > > > And even if you manage to do this, I can still see the URL of your page > on the top and handcraft a line that I can use with 'wget' or similar > programs, take a look at the html sources and then 'wget' the image by > hand if I really want it. But as it seems to me, the images you are > talking about are not there for being looked at anyway, so I personally > would not bother taking the effort. > > > Sorry if this sounds like ranting/trolling around, but digital > watermarking has never worked, it does not work and it will never work; > well, it will maybe work if you blackbox every piece of hard- and software > of every person on earth and seal it shut and then threaten to kill them > if they even think about circumvent the protection. > > The logic behind it is flawed. Don't waste your time on it. > > > hope that helps, > > thorsten > > -- > > thorsten fischer : frosch (at) derfrosch (dot) de > > hostien in groesseren mengen sind schwer zu beschaffen > > From adoyle at intl-interfaces.com Thu Aug 16 05:53:27 2001 From: adoyle at intl-interfaces.com (Allan Doyle) Date: Thu, 16 Aug 2001 08:53:27 -0400 Subject: [mapserver-users] watermarking References: <001501c1263f$90fa9160$0400a8c0@matt> Message-ID: <3B7BC247.5D31A988@intl-interfaces.com> I think people expect more of digital technology than they do of paper technology. If I buy a paper map that has a copyright on it, what keeps me from copying it? Nothing but my honesty or the possible legal ramifications will stop me. If I buy digital map data, I have to sign a license agreement, depending on the vendor these can be quite restrictive. Again, what's to keep me from copying it? The same thing. Honesty or fear of repercussions if I breach the agreement. So, if you provide a map to a large number of people via the internet, in an easy-to-copy format, you have to rely on the recipients to "do the right thing". In the internet, the expectation is largely that what I see on my screen is mine to reproduce or reuse. (This is technically not really even the case since even if there is no copyright statement, the author of the content is still the copyright holder). Given the expectation on the part of the casual user that what's there is to be reused, I think Thorsten's answer is correct. So you need a different strategy. Either you only provide material to the end user that you are willing to let become free, or you make sure you inform the end user about the restrictions. Your idea of a popup would be a start in that direction. A strategy that could take you down a middle road is to save your high-value information for "premium" customers. I.e. don't provide your best maps to the free users. Make the high-end people sign an agreement or make them pay subscriptions. I would guess that most of those people will be honest enough to not churn out lots of copies. Just as I wouldn't copy pages off my atlas and give them away en masse. At the same time, assume that there will be some "leakage" of your content. The best way to deal with that is to make your premium content always be better than even the leaked content. By way of example, I can get stock market data for free but it's 20 minutes old. Who cares if I copy that and send it out? It only becomes more worthless over time. Map data changes too. If you can keep refreshing your data, you provide more value to those who have your most recent maps. In the extreme, a company that could provide real-time updates to road conditions would be able to sell that data to emergency response organizations and would be able to give it away a day later because the next days' data would be better. I realize that not all map data can be treated this way, but I think people get hung up on one way of thinking and forget that there are alternatives. I also believe that you're always better off working out a scheme whereby you adapt to the circumstances rather than fight them. Trying to keep the maps from getting copied is futile. Figuring out how to make enough money to keep providing maps even while they are being copied is the way to go. (By the way, think about MapQuest - they are not selling maps, they are selling a channel to large advertisers that helps them get at customers who may be looking for services in unfamiliar places). Good luck figuring out what to do! Allan Matt Carlson wrote: > > Thorsten, > > thanks for your input. > > could you please tell that to our marketing manager... in japanese :) i > agree. the reason i wrote the list is because i myself couldn't see it > happening either. 'it' being a graphic changing states as it's saved from > the browser. > > heck, even if it's not a gif ,png, or jpeg, for example a vector image in a > java applet, if i can see the map with my eyes i can take a screenshot and > copy and paste it into to photoshop. > > anyway, after spending a few hours on this issue i'm going to put this one > to rest for a while. > > regards, > matt > > ----- Original Message ----- > From: "Thorsten Fischer" > To: "Matt Carlson" > Cc: "Lyndon Zimmermann" ; > > Sent: Thursday, August 16, 2001 5:49 PM > Subject: Re: [mapserver-users] watermarking > > > On Thu, 16 Aug 2001, Matt Carlson wrote: > > > > > here's my solution for a baseline copywright embedded on the map using > perl > > > mapscript. company-logo points to a pixmap symbol in my markerset file. > > > > There is no reliable way to watermark digital data, though there is > > nothing bad in putting a company's logo on a picture. > > > > > > Watermarking of digital data does not work. Watermarking of digital data > > does not work. Watermarking of digital data does not work. No matter what > > the manufacturer of your watermarking scheme tells you: it does not work. > > > > At least it does not prevent the copying process itself; if it were > > reliable, it would ease tracking of copyright violators, but even that > > part ... does not work. > > > > That said: in my humbleth opinion, it's evil. It's digital data, it's in > > its nature to be copied. > > > > > what i'm looking for is some way to prevent people from right clicking > the > > > map gif image on the browser screen and saving the map image onto thier > > > desktop. > > > > Hum??? > > > > When the image is created (by copying things around and finally creating > > a copy to the disk), the webserver copies it to the socket that > > belongs to the tcp connection: first copy. Any point inbetween that > > routes your packet copies it from one point to another to send it, but I > > will skip those here. Then the client takes it and copies it into memory: > > second copy. Most probably, it gets cached as well: third copy. I left out > > several steps, but the client has several copies already created. > > > > If you do not want your data to be copied, don't copy it yourself and > > leave it alone. > > > > > the effect i'm wanting is when someone does save the map image, > > > somehow an embedded image shows up with a big copywright message in the > > > middle. i thought company's like digimarc and ewatermark were doing > > > something similair to this?? > > > > You can do something similar using javascript to trap mouse events and > > react according to them. Some porn sites do it, take a look at them. But > > you will only shut the most unskilled persons out who cannot turn off > > javascript in their browser. > > > > > > And even if you manage to do this, I can still see the URL of your page > > on the top and handcraft a line that I can use with 'wget' or similar > > programs, take a look at the html sources and then 'wget' the image by > > hand if I really want it. But as it seems to me, the images you are > > talking about are not there for being looked at anyway, so I personally > > would not bother taking the effort. > > > > > > Sorry if this sounds like ranting/trolling around, but digital > > watermarking has never worked, it does not work and it will never work; > > well, it will maybe work if you blackbox every piece of hard- and software > > of every person on earth and seal it shut and then threaten to kill them > > if they even think about circumvent the protection. > > > > The logic behind it is flawed. Don't waste your time on it. > > > > > > hope that helps, > > > > thorsten > > > > -- > > > > thorsten fischer : frosch (at) derfrosch (dot) de > > > > hostien in groesseren mengen sind schwer zu beschaffen > > > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Allan Doyle http://www.intl-interfaces.com adoyle at intl-interfaces.com From chuynh at ideorlando.org Thu Aug 16 06:50:10 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Thu, 16 Aug 2001 09:50:10 -0400 Subject: [mapserver-users] Mapplet document.mapserv has no properties In-Reply-To: <3B7B0707.E29A110E@geoplan.ufl.edu> Message-ID: hi Christine, seems like i cannot get to the website. Maybe attach us the source code -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of lc Sent: Wednesday, August 15, 2001 7:35 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Mapplet document.mapserv has no properties Hello all, I need help with mapplet. I'm getting the following error message when I try to drag-zoom: "Applet mapplet document.mapserv has no properties" where "document.mapserv" is the form that's submitted to the mapserver app. Please check out the following site: http://geneva/cgi-bin/mapserv?map=/var/www/html/download/mapserv/maps/doqq.m ap&layers=cntbnd+hydros&mapext=370000+360000+793990.758+59428.989&mode=b rowse and its source code, and let me know if you have ideas on remedying this problem. Thank you. Regards, Christine McCain Research Assistant Geoplan / University of FL From pnaciona at gis.umn.edu Thu Aug 16 07:07:05 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Thu, 16 Aug 2001 09:07:05 -0500 Subject: [mapserver-users] watermarking In-Reply-To: <000901c125fa$9adb9ca0$0400a8c0@matt> Message-ID: Matt, You may not be able to watermark but you can put a copyright notice on your images. Just create a DEFAULT layer of your company logo; you can position on the bottom or on top of your map. I don't know the detail on how to do this but you can check the mapfile reference. Perhaps other folks can shed more light about this. Note: If you want the logo/copyright notice to be as unobtrusive as possible, use light or faded colors. -Perry On Thu, 16 Aug 2001, Matt Carlson wrote: > Hello, > > we are currently pursing a client that wishes to copywright thier images in > case someone attempts to save a map from the browser. i want to do > something similar to what ewatermark.com is doing http://www.ewatermark.com > with their visible watermark. does anyone have experience in integrating > something like this with mapserver? > > Thanks in advance, > > Matt > From tpoindex at nyx.net Thu Aug 16 07:30:10 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Thu, 16 Aug 2001 08:30:10 -0600 Subject: [mapserver-users] compilation In-Reply-To: <997786105.3b7901f965e1e@imp.free.fr>; from jef.mony@free.fr on Tue, Aug 14, 2001 at 12:48:25PM +0200 References: <997786105.3b7901f965e1e@imp.free.fr> Message-ID: <20010816083010.A25855@nyx10.nyx.net> I've done some work on the configure script in the last few days and it's checked into CVS. My French is not so good, could you translate the bash error message for me? It will also help greatly to know what machine on which you are compiling, and which version of GD you have. -Tom On Tue, Aug 14, 2001 at 12:48:25PM +0200, Jean-Fran?ois MONY wrote: > Hi, > > I try to compile the CVS version of mpaserver. > I use ./configure --with-gd --with-tiff --with-jpeg --without-ttf --with- > php=/usr/src/RPM/BUILD/php-4.0.4pl1 --with-apx (wich was good with mapserver 4) > > and I have this message : > bash: ./configure: Aucun fichier ou repertoire de ce type > > same message with ./configure --help > > configure is 777 and really exist ! > > An idea ?? > > Thanks > > Jean-Fran?ois MONY - jef.mony at free.fr > Parc naturel r?gional de Lorraine > Responsable informatique/SIG > tel : 03-83-84-06-37 > fax : 03-81-33-60 > D?tach? aupr?s du laboratoire de phyto?cologie de l'universit? de Metz > tel : 03-87-37-84-05 > fax : -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From pilya at asd.kiev.ua Thu Aug 16 07:22:34 2001 From: pilya at asd.kiev.ua (Andrey piliperz) Date: Thu, 16 Aug 2001 17:22:34 +0300 Subject: [mapserver-users] building Mapserver --with-postgis Message-ID: <20010816172234.A4776@asd.kiev.ua> Hi! I am tring to build mapserver (CVS version) with postgis support, but when I run ./mapserv the next message appears: ./mapserv: error while loading shared libraries: libpq.so.2: cannot open shared object file: No such file or directory I was configuring mapserver with --with-postgis=/usr/local/bin/pg_config option and it builds without problems. Postgres and postgis are set up and working normally. What may be wrong? (mapserver 3.4 doesn't show this message) Thanx. -- regards Andrey S. Pilipetz -------------- next part -------------- A non-text attachment was scrubbed... Name: ukr.swf Type: application/x-shockwave-flash Size: 17581 bytes Desc: not available URL: From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Aug 16 08:11:04 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 16 Aug 2001 11:11:04 -0400 Subject: [mapserver-users] Problems with latest CVS Version - TrueType support Message-ID: <7CDD7B94357FD5119E800002A537C46E22FB88@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I just got and compiled the latest CVS and am having some trouble! It seems to keep choking on anything with the word "TRUETYPE" in it! At first it was in my annotation layers with TrueType labeling, I would get an error like : getSymbol(): Symbol definition error. (8):(221) This would point to the line "TYPE TRUETYPE" within a LABEL object within a CLASS ... (The first "T" of "TYPE" to be exact). So I removed ALL the annotation layers just to at least to render a map, BUT, now it chokes on the exact same line in my symbol definitions! Here's an example of such a layer: LAYER NAME cities1 TYPE ANNOTATION STATUS DEFAULT DATA pop15_pt MINSCALE 10000000 MAXSCALE 20000000 LABELITEM "name_commo" CLASS SIZE 6 COLOR 0 0 0 SYMBOL 'city' LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE SIZE 8 FONT arial POSITION AUTO WRAP " " END END END And such a symbol: SYMBOL NAME 'natcap' TYPE TRUETYPE FONT geo FILLED ANTIALIAS CHARACTER "r" END Any ideas??? Could the CVS version be broken ? configure picked up on my FreeType library no problem as well, and is indeed linked to it (Checked with ldd). Thanks you, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From warmerdam at pobox.com Thu Aug 16 08:24:19 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 16 Aug 2001 11:24:19 -0400 Subject: [mapserver-users] building Mapserver --with-postgis References: <20010816172234.A4776@asd.kiev.ua> Message-ID: <3B7BE5A3.6030604@pobox.com> Andrey piliperz wrote: > Hi! > I am tring to build mapserver (CVS version) with postgis support, > but when I run ./mapserv the next message appears: > ./mapserv: error while loading shared libraries: libpq.so.2: cannot open shared object file: No such file or directory > > I was configuring mapserver with --with-postgis=/usr/local/bin/pg_config option > and it builds without problems. > > Postgres and postgis are set up and working normally. > > What may be wrong? > (mapserver 3.4 doesn't show this message) Andrey, What does "pg_config --libdir" report? Is the reported directory in your LD_LIBRARY_PATH? If not you will get the above error. 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 christym at geoplan.ufl.edu Thu Aug 16 10:17:20 2001 From: christym at geoplan.ufl.edu (lc) Date: Thu, 16 Aug 2001 13:17:20 -0400 Subject: [mapserver-users] Mapplet document.mapserv has no properties References: Message-ID: <3B7C0020.552032D5@geoplan.ufl.edu> Hey, thanks for the reply, Chan. I've attached the source code for my html template. In it you can see the recommended/necessary changes for implementing the mapplet: 1. named the FORM that is sent to the mapserver app. This is the same name that's refered to in the mapplet_apply function. 2. added the mapplet_apply and mapplet_error functions 3. added the hidden variables: imgxy and imgbox 4. replaced the output map image () with the applet definition () Also, here's another link to my mapserver site: http://geneva.geoplan.ufl.edu/download/mapserv/htmltemplates/doqq_init.html I hope that this one will work for you. Please let me know if it does or doesn't work. Oh and just to reiterate, I'm getting the following error message when I try to drag zoom on the applet map image: Applet mapplet document.mapserv has no properties which of course is referring to my FORM, "mapserv". Thanks a bunch, Christine "Chan B. Huynh" wrote: > hi Christine, > seems like i cannot get to the website. > Maybe attach us the source code > > > Hello all, > > I need help with mapplet. I'm getting the following error message when I > try to drag-zoom: > "Applet mapplet document.mapserv has no properties" > > where "document.mapserv" is the form that's submitted to the mapserver app. > > Please check out the following site: > http://geneva/cgi-bin/mapserv?map=/var/www/html/download/mapserv/maps/doqq.m > ap&layers=cntbnd+hydros&mapext=370000+360000+793990.758+59428.989&mode=b > rowse > > and its source code, and let me know if you have ideas on remedying this > problem. > > Thank you. > Regards, > Christine McCain > Research Assistant > Geoplan / University of FL -------------- next part -------------- An HTML attachment was scrubbed... URL: From LBallard at YesVirginia.org Thu Aug 16 11:05:45 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Thu, 16 Aug 2001 14:05:45 -0400 Subject: [mapserver-users] Mapserver v. 3.5 with SDE support Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CEC6@communications> Sort of slammed right now but I can give you the quickie SDE compilation I did on RedHat 7.1: 1. put in your /etc/services file a line for the SDE service (e.g., esri_sde 5151/tcp) 2. obtain the SDE client libraries for Linux or whatever from the CDs (note version e.g., 8.0 or 8.1) 3. when you configure SDE you will need to include 2 things: --with-sde[=DIR] Include ESRI SDE support (DIR is SDE's install dir). --with-sde-version[=VERSION NUMBER] Set ESRI SDE verion number (Default is 80). The first tells mapserv where those client libraries are on your hard drive The second tells it what version to compile (i.e., did you use the client libraries from the 8.0.x disc or the 8.1 disc). In your .map file to access SDE layers do this: LAYER NAME sites TYPE POLYGON CONNECTION "matoaka,esri_sde,gisdb,data,PASSWORD" CONNECTIONTYPE sde DATA "sites,shape" # DATA va_sites STATUS ON CLASSITEM "site_no" LABELITEM "site_no" SYMBOLSCALE 100000 MAXSCALE 100000 LABELMAXSCALE 35000 HEADER sites_header.html CLASS NAME "Sites" EXPRESSION /./ COLOR 161 167 135 TEMPLATE sites.html ............................................... ............................. ..........etc. where shape is the field in the SDE/Oracle/etc. database. Hope that helps.... -----Original Message----- From: Pericles S. Nacionales [mailto:pnaciona at gis.umn.edu] Sent: Wednesday, August 15, 2001 12:01 PM To: Maul, Andreas-Alexander Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Mapserver v. 3.5 with SDE support Andreas, I will look into getting ArcSDE installed on one of my Windows machine. Unfortunately, as much as I would like to include SDE in the win32 binary package, I can't do it soon enough. I'm out of town right now and will be gone for the rest of August and most of September. If you wantthis functionality ASAP, perhaps someone in the list can give it to you. Also, it would be nice if anyone can document how they compiled SDE into MapServer. -Perry On Wed, 15 Aug 2001, Maul, Andreas-Alexander wrote: > Hi, > is it possible that the mapserver version 3.5 nightly build for win32 could > be compiled with SDE support? I would greatly appreciate it. > Regards, > Andreas > From christym at geoplan.ufl.edu Thu Aug 16 11:09:53 2001 From: christym at geoplan.ufl.edu (lc) Date: Thu, 16 Aug 2001 14:09:53 -0400 Subject: [mapserver-users] mapplet form has no properties Message-ID: <3B7C0C71.48520A2B@geoplan.ufl.edu> Hey, thanks for the reply, Chan. I've attached the source code for my html template. In it you can see the recommended/necessary changes for implementing the mapplet: 1. named the FORM that is sent to the mapserver app. This is the same name that's refered to in the mapplet_apply function. 2. added the mapplet_apply and mapplet_error functions 3. added the hidden variables: imgxy and imgbox 4. replaced the output map image () with the applet definition () Also, here's another link to my mapserver site: http://geneva.geoplan.ufl.edu/download/mapserv/htmltemplates/doqq_init.html I hope that this one will work for you. Please let me know if it does or doesn't work. Oh and just to reiterate, I'm getting the following error message when I try to drag zoom on the applet map image: Applet mapplet document.mapserv has no properties which of course is referring to my FORM, "mapserv". Thanks a bunch, Christine -------------- next part --------------
FGDL Data Download
Category:   Select By:   Available Layers:
 
 
reference layers
DOQQ Extents
County Boundaries
Major Roads
Hydrography
[ * ] DOQQs

map tools
           
selection
navigation and logo
From chuynh at ideorlando.org Thu Aug 16 11:16:22 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Thu, 16 Aug 2001 14:16:22 -0400 Subject: [mapserver-users] Mapplet document.mapserv has no properties In-Reply-To: <3B7B0707.E29A110E@geoplan.ufl.edu> Message-ID: Christine, I still cannot get to the new url you provided later. It said "page cannot be display". However, i went ahead and look at the html template you attached. Few suggestions you might want to try: 1/ instead of Does your image ever come up without specifing the hostname? 2/ try to put mapplet.class and evalThread.class in the same directory as the template and see if it works. 3/ not sure what's "applet mapplet document.mapserv has no properties" means. Was you able to drag a box? when is this error occurs? Right after you drag a box or after you drag a box and hit "Enter"? -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of lc Sent: Wednesday, August 15, 2001 7:35 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Mapplet document.mapserv has no properties Hello all, I need help with mapplet. I'm getting the following error message when I try to drag-zoom: "Applet mapplet document.mapserv has no properties" where "document.mapserv" is the form that's submitted to the mapserver app. Please check out the following site: http://geneva/cgi-bin/mapserv?map=/var/www/html/download/mapserv/maps/doqq.m ap&layers=cntbnd+hydros&mapext=370000+360000+793990.758+59428.989&mode=b rowse and its source code, and let me know if you have ideas on remedying this problem. Thank you. Regards, Christine McCain Research Assistant Geoplan / University of FL From cnielsen at co.tillamook.or.us Thu Aug 16 11:20:12 2001 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Thu, 16 Aug 2001 11:20:12 -0700 Subject: [mapserver-users] label symbol size vs. label font size Message-ID: <000d01c12680$169f90f0$8f05a7cd@co.tillamook.or.us> I'm having trouble adjusting the size of my highway shield symbols relative to the label font size. Seems I can only make the highway shields bigger if I make the font bigger, i.e. by increasing the SIZE attribute of the LABEL object. Problem is I have 3-digit highway numbers which makes the text go outside the shield boundary. If I increase the SIZE attribute of the CLASS object nothing happens. How can I make the shield bigger without making the label font bigger? Or, is there some other trick to getting 3-digits to fit inside a shield? here is what I have in my map file: LAYER NAME highwayshields DATA 'e:\gisweb\data\transportation\shapes\nwohwy' STATUS ON TYPE ANNOTATION LABELITEM "HWYNUM" CLASS COLOR 0 0 0 SIZE 18 SYMBOL 3 OUTLINECOLOR 0 0 0 LABEL SIZE 10 MINDISTANCE 200 COLOR 0 0 0 BACKGROUNDCOLOR -1 -1 -1 TYPE TRUETYPE FONT verdana-bold POSITION CC END #LABEL END # CLASS END # LAYER TIA, Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/gov/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From jimburnett at ntelos.net Thu Aug 16 12:15:04 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Thu, 16 Aug 2001 15:15:04 -0400 Subject: [mapserver-users] reference map PHP/Mapscript References: <007701c125b2$57269fc0$2f01a8c0@morpheus> Message-ID: <011e01c12687$c3d63380$2f01a8c0@morpheus> ttt ----- Original Message ----- From: Jim Burnett To: mapserver-users at lists.gis.umn.edu Sent: Wednesday, August 15, 2001 1:47 PM Subject: [mapserver-users] reference map PHP/Mapscript MapServer/Mapscript 3.5 Night build PHP4.0.5 OK, The documentation says I have to use a GIF file for the reference map, but I only get the little red X. I switched back to jpg, and my ref map comes up, but I dont get a box for my current extent. Has anyone got the refrence map working without using GIF? Sample code? thanks -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at refractions.net Thu Aug 16 13:46:56 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 16 Aug 2001 13:46:56 -0700 Subject: [mapserver-users] WMS and PROJ References: <007701c125b2$57269fc0$2f01a8c0@morpheus> <011e01c12687$c3d63380$2f01a8c0@morpheus> Message-ID: <3B7C3140.E429496B@refractions.net> When I set up my WMS server with projections, it correctly creates entries for the layers. The for the whole server is based on the EXTENTS given in the map file: if one of my layers has an extent larger than the EXTENT in the map file, I can have an overall extent smaller than one of my layer extents... does the spec have anything to say about this minor inconsistency? Is the overall supposed to be the superset of all layer extents? -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From dmoffett at walnutsoft.com Thu Aug 16 13:36:41 2001 From: dmoffett at walnutsoft.com (David Moffett) Date: Thu, 16 Aug 2001 14:36:41 -0600 Subject: [mapserver-users] SVG Message-ID: <200108162046.PAA12071@lists.gis.umn.edu> Hello, I am thinking about adding SVG ( Scalar Vector Graphics ) to mapserver. My questions are: 1. Is someone already doing this? There was some talk on the mailing in Oct 2000 but I did not see a conclusion. 2. Is it a good idea? I think it is since we would like to use it ourselves. 3. What approach would be best. I have looked at the code and have some ideas but I am a far cry from an expert on mapserver. If I can come up with a good solution I will release back to the mapserver community. Also I would be glad to pitch in and help anyone that has started with solution. I will even try to comment the code. :-) Thank you, David David B. Moffett Walnut Software, LLC. From morissette at dmsolutions.ca Thu Aug 16 14:40:59 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 16 Aug 2001 17:40:59 -0400 Subject: [mapserver-users] WMS and PROJ References: <007701c125b2$57269fc0$2f01a8c0@morpheus> <011e01c12687$c3d63380$2f01a8c0@morpheus> <3B7C3140.E429496B@refractions.net> Message-ID: <3B7C3DEB.3E559FD0@dmsolutions.ca> Paul Ramsey wrote: > > When I set up my WMS server with projections, it correctly creates > entries for the layers. The for > the whole server is based on the EXTENTS given in the map file: if one > of my layers has an extent larger than the EXTENT in the map file, I can > have an overall extent smaller than one of my layer extents... does the > spec have anything to say about this minor inconsistency? Is the overall > supposed to be the superset of all layer extents? > I think it would make sense that the root layer's bounding box should be a superset of the bounding box of all the layers in the mapfile. I haven't seen a mention of this in the spec but I would think that it is implied since it just makes sense. This being said, in the MapServer case the root layer's bounding box is derived from the MAP EXTENT as you pointed so it is up to the person setting up the mapfile to make sure the global extents are valid. I guess we could have MapServer scan the extents of all layers but it never looked necessary to do so since the info is already there in the mapfile. About layer extents, the default behavior for vector layers is that MapServer will look at the individual layers and open the data source to fetch the extents. If that default behavior doesn't work or gives extents that are too big, then you can use the "wms_extent" layer metadata to specify your own extents. The use of the wms_extent layer metadata is currently required for raster layer since MapServer currently has no way to fetch raster extents automagically (on the ToDo list). BTW, talking of WMS... we put the last touches to the WMS-HOWTO today... we were waiting until it's available on the UMN website to announce it but I can't wait... and I know lots of you can't wait either... so for a sneak preview, go to: http://www2.dmsolutions.ca/tmp/WMS-HOWTO.html -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From AWOOLEY at mountainland.org Thu Aug 16 14:30:09 2001 From: AWOOLEY at mountainland.org (ANDREW WOOLEY) Date: Thu, 16 Aug 2001 15:30:09 -0600 Subject: [mapserver-users] SVG Message-ID: I think this is a good idea. I wonder if this will allow the web user to print out better quality maps than just a JPG or PNG. Is that the case? If so, I would really welcome such an addition. Andrew Wooley GIS Operations Manager Mountainland Association of Governments Orem, UT phone: 801.229.3844 fax: 801.229.3801 email: awooley at mountainland.org >>> David Moffett 08/16 2:36 PM >>> Hello, I am thinking about adding SVG ( Scalar Vector Graphics ) to mapserver. My questions are: 1. Is someone already doing this? There was some talk on the mailing in Oct 2000 but I did not see a conclusion. 2. Is it a good idea? I think it is since we would like to use it ourselves. 3. What approach would be best. I have looked at the code and have some ideas but I am a far cry from an expert on mapserver. If I can come up with a good solution I will release back to the mapserver community. Also I would be glad to pitch in and help anyone that has started with solution. I will even try to comment the code. :-) Thank you, David David B. Moffett Walnut Software, LLC. From morissette at dmsolutions.ca Thu Aug 16 15:34:20 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 16 Aug 2001 18:34:20 -0400 Subject: [mapserver-users] SVG References: <200108162046.PAA12071@lists.gis.umn.edu> Message-ID: <3B7C4A6C.967CE008@dmsolutions.ca> David Moffett wrote: > > I am thinking about adding SVG ( Scalar Vector Graphics ) to mapserver. > My questions are: > > 1. Is someone already doing this? There was some talk on the mailing in > Oct 2000 but I did not see a conclusion. > 2. Is it a good idea? I think it is since we would like to use it > ourselves. > 3. What approach would be best. I have looked at the code and have some > ideas but I am a far cry from an expert on mapserver. > I'm not aware of anything that has been started on this front yet, but we've had lots of interest expressed to have MapServer produce vector output (SVG being only one possibility). So if any of these projects takes off then it's the kind of additions that we might get involved in. Anyway, I think your idea is a good one, but I think it should be done "the right way" in order for your work to be profitable in the long run. A bit like the kind of changes Steve did when SDE and OGR were added, and which allowed the PostGIS guys to plug their driver with much less efforts. Basically that would mean redesigning important parts of the rendering code in MapServer (and likely some of the mapfile stuff too) to make it less GD-centric and be able to deal with various types of output. If this is done well for the SVG case then other output formats such as GML, Flash, etc. can be added with much less efforts. My 0.02$ -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From rob at socialchange.net.au Thu Aug 16 16:07:11 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Fri, 17 Aug 2001 09:07:11 +1000 Subject: [mapserver-users] SVG References: <200108162046.PAA12071@lists.gis.umn.edu> Message-ID: <3B7C521F.2816340A@socialchange.net.au> Logically better to support GML, then you can choose a GML to SVG stylesheet at runtime if you wish. (keep data model and presentation separate!) Would be interested in feedback re performance - its on a long to-do list for us. Big issue with vector formats is always the unpredicatability of response size in a network environment. Leads to interesting issues re generalisation on the fly. In the past I have used the maxfeatures to limit mapserver time rendering - the same concept might work but what if the client zooms in? Rob Atkinson David Moffett wrote: > Hello, > > I am thinking about adding SVG ( Scalar Vector Graphics ) to mapserver. > My questions are: > > 1. Is someone already doing this? There was some talk on the mailing in > Oct 2000 but I did not see a conclusion. > 2. Is it a good idea? I think it is since we would like to use it > ourselves. > 3. What approach would be best. I have looked at the code and have some > ideas but I am a far cry from an expert on mapserver. > > If I can come up with a good solution I will release back to the > mapserver community. Also I would be glad to pitch in and help anyone > that has started with solution. I will even try to comment the > code. :-) > > Thank you, > David > > David B. Moffett > Walnut Software, LLC. -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From pramsey at refractions.net Thu Aug 16 16:26:58 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 16 Aug 2001 16:26:58 -0700 Subject: [mapserver-users] SVG References: Message-ID: <3B7C56C2.2B63719D@refractions.net> The goal should be, rather than "adding SVG", "abstracting the rendering routines". That way one could also add a "render to PDF" option, or "render to PostScript", as well as SVG. My guess is that it is a really, really, big job, since there seem to be alot of GD-specific assumptions in how Mapserver thinks about styles and line weights and stuff. ANDREW WOOLEY wrote: > > I think this is a good idea. I wonder if this will allow the web user to print out better quality maps than just a JPG or PNG. Is that the case? If so, I would really welcome such an addition. > > Andrew Wooley > GIS Operations Manager > Mountainland Association of Governments > Orem, UT > > phone: 801.229.3844 > fax: 801.229.3801 > email: awooley at mountainland.org > > >>> David Moffett 08/16 2:36 PM >>> > Hello, > > I am thinking about adding SVG ( Scalar Vector Graphics ) to mapserver. > My questions are: > > 1. Is someone already doing this? There was some talk on the mailing in > Oct 2000 but I did not see a conclusion. > 2. Is it a good idea? I think it is since we would like to use it > ourselves. > 3. What approach would be best. I have looked at the code and have some > ideas but I am a far cry from an expert on mapserver. > > If I can come up with a good solution I will release back to the > mapserver community. Also I would be glad to pitch in and help anyone > that has started with solution. I will even try to comment the > code. :-) > > Thank you, > David > > David B. Moffett > Walnut Software, LLC. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From morissette at dmsolutions.ca Thu Aug 16 16:41:31 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 16 Aug 2001 19:41:31 -0400 Subject: [mapserver-users] SVG References: <3B7C56C2.2B63719D@refractions.net> Message-ID: <3B7C5A2B.938572B9@dmsolutions.ca> Paul Ramsey wrote: > > The goal should be, rather than "adding SVG", "abstracting the rendering > routines". That way one could also add a "render to PDF" option, or > "render to PostScript", as well as SVG. You read my mind (you should receive my previous post via the listserv in 4 or 5 hours. ;) > My guess is that it is a really, > really, big job, since there seem to be alot of GD-specific assumptions > in how Mapserver thinks about styles and line weights and stuff. > I agree... but imagine how boring life would be without these little challenges! ;) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From zhox at yeah.net Thu Aug 16 17:49:42 2001 From: zhox at yeah.net (Zhou Xu) Date: Fri, 17 Aug 2001 8:49:42 +0800 Subject: [mapserver-users] SVG Message-ID: <20010817010142.334691C25AB51@smtp.yeah.net> I think it is very useful, because SVG can express much more styles even time-serial data. if you do that, I appreciate it very much. On 2001-8-16 14:36:00, you wrote: >Hello, > >I am thinking about adding SVG ( Scalar Vector Graphics ) to mapserver. >My questions are: > >1. Is someone already doing this? There was some talk on the mailing in >Oct 2000 but I did not see a conclusion. >2. Is it a good idea? I think it is since we would like to use it >ourselves. >3. What approach would be best. I have looked at the code and have some >ideas but I am a far cry from an expert on mapserver. > >If I can come up with a good solution I will release back to the >mapserver community. Also I would be glad to pitch in and help anyone >that has started with solution. I will even try to comment the >code. :-) > >Thank you, >David > > >David B. Moffett >Walnut Software, LLC. ------------------------------------------------------------------------------------------- ZiZhuYuan BaishengCun No.1 NGCC Post Code, 100044 Beijing, China Phone: +86 10 86851042 Fax: +86 10 68424101 Email: std at nsdi.gov.cn ------------------------------------------------------------------------------------------- From mapserver at cubok.com Thu Aug 16 18:20:40 2001 From: mapserver at cubok.com (Richard Ford) Date: Fri, 17 Aug 2001 11:20:40 +1000 Subject: [mapserver-users] Shapefiles References: Message-ID: <008701c126ba$d43992c0$01bca8c0@Peach> > > A raster file is anything that is measured in width and height of pixels. > Your mapserver is creating raster files as output, namely .png or .gif > files. The most common raster file type to _read_ in GIS (and the only one > that i have seen used so far) is .tif as there is a standard for > geo-referencing those. > > There is no special format called 'raster'. The term 'raster' is used as > opposite to 'vector'. > > I do not think that ArcIMS does not display raster images. > Someone on the GRASS list did mention that ArcIMS can't read in/load/import ArcView raster files? Cya, Richard. From drish at drish.net Thu Aug 16 18:49:26 2001 From: drish at drish.net (Drew) Date: Fri, 17 Aug 2001 11:49:26 +1000 Subject: [mapserver-users] extents/coords questions Message-ID: <004401c126bf$1beeac00$0300000a@dhr> 1. What's the best way to get the extents of my map, I have 1000's of tiles in a directory, and also a tileindex file. My current extents appear to be off, as the bounding box on my reference map is way off. 2. How do I plot things on my map based on a list of 100 or so coordinates? I'm not sure if there is any coordinate data in my shapefiles, and if there is, what format it is in. How do I find out? Do I need to? Thanks, Drew From drish at drish.net Thu Aug 16 18:49:26 2001 From: drish at drish.net (Drew) Date: Fri, 17 Aug 2001 11:49:26 +1000 Subject: [mapserver-users] extents/coords questions Message-ID: <015701c126c2$62bd2b40$0300000a@dhr> 1. What's the best way to get the extents of my map, I have 1000's of tiles in a directory, and also a tileindex file. My current extents appear to be off, as the bounding box on my reference map is way off. 2. How do I plot things on my map based on a list of 100 or so coordinates? I'm not sure if there is any coordinate data in my shapefiles, and if there is, what format it is in. How do I find out? Do I need to? Thanks, Drew From mapserver at cubok.com Thu Aug 16 21:50:50 2001 From: mapserver at cubok.com (Richard Ford) Date: Fri, 17 Aug 2001 14:50:50 +1000 Subject: [mapserver-users] Grid Files?? Message-ID: <000d01c126d8$303cffe0$01bca8c0@Peach> G'Day All, Another question! Is the use of GRID files made and/or used in ArcView/ArcInfo supported in MapServer? Or does one have to convert these to other formats first? Cheers, Richard Ford. richard at cubok.com www.cubok.com The views expressed here are solely my own and do not necessarily represent those of my employer. From mapserver at cubok.com Thu Aug 16 22:01:10 2001 From: mapserver at cubok.com (Richard Ford) Date: Fri, 17 Aug 2001 15:01:10 +1000 Subject: [mapserver-users] Shapefiles References: <200108141742.f7EHgVs15759@antonia.nn.cl> Message-ID: <003801c126d9$a47c68e0$01bca8c0@Peach> Where on earth do I get the Mapscript stuff to compile? I can't find it anywhere on your site. Richard. > > > > > > EXTENT 388107.634400379 5203120.88405952 500896.339019834 > > 5310243.30613897 > > > > > > Is this extent correct?, you can use the perl script showextent.pl on > > > the shape file to see if it is. > > > > > > (ie, perl showextent.pl shapefile on the directory where the shapefile is) > > > > ************************************************************************* > > [root at localhost risk_data]# perl showextent.pl disslv1.shp > > Can't locate mapscript.pm in @INC (@INC contains: > > /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 > > /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 > > /usr/lib/perl5/site_perl .) at showextent.pl line 3. > > BEGIN failed--compilation aborted at showextent.pl line 3. > > ************************************************************************** > > > > I take it, I need to install Map script? I am using Mapserver 3.3.011 > > yes, you need the perl version of mapscript installed for the script to > work. It's very easy to compile and install. > > -- > V. > From mapserver at cubok.com Thu Aug 16 22:10:19 2001 From: mapserver at cubok.com (Richard Ford) Date: Fri, 17 Aug 2001 15:10:19 +1000 Subject: [mapserver-users] Shapefiles References: <200108141749.f7EHnZD16405@antonia.nn.cl> Message-ID: <003e01c126da$e8cefd90$01bca8c0@Peach> G'Day Vinko, I have ArcView running and am looking at the files OK. However, I can't get this "EXTENT" information. I can see type ok but no extent? Where should I look? I would like to try the showextents script however I don't have pearl map script and can't for the life of me find any info on downloading or installing it. Cheers, Richard. From trem at socialchange.net.au Fri Aug 17 00:18:09 2001 From: trem at socialchange.net.au (Trem Stamp) Date: Fri, 17 Aug 2001 17:18:09 +1000 Subject: [mapserver-users] Tool for tiling images Message-ID: <3B7CC531.7EDC1969@socialchange.net.au> I am interested to know if there are any tools out there, that can slice and dice images up into tiles, as well as generate world files to accompany the tiled images (GIF or TIFF)? Thanks, Trem From morissette at dmsolutions.ca Fri Aug 17 05:59:17 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 17 Aug 2001 08:59:17 -0400 Subject: [mapserver-users] extents/coords questions References: <004401c126bf$1beeac00$0300000a@dhr> Message-ID: <3B7D1525.ABC8185A@dmsolutions.ca> Hi Drew, Drew wrote: > > 1. What's the best way to get the extents of my map, I have 1000's of tiles > in a directory, and also a tileindex file. My current extents appear to be > off, as the bounding box on my reference map is way off. > Running OGRINFO on the tileindex file would return you the extent of the tileindex which is also the extent of all your files. > 2. How do I plot things on my map based on a list of 100 or so coordinates? > I'm not sure if there is any coordinate data in my shapefiles, and if there > is, what format it is in. How do I find out? Do I need to? > Again, try OGRINFO to dump the contents of the shapefile and you'll see if it's a point, line or polygon file and then you can set your map layer accordingly. See the OGR-HOWTO on the MapServer website for examples using OGRINFO. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bertelli at charta.acme.com Fri Aug 17 06:10:34 2001 From: bertelli at charta.acme.com (Carlo A. Bertelli) Date: Fri, 17 Aug 2001 15:10:34 +0200 Subject: [mapserver-users] cosmetic shadows Message-ID: Hello, I would like to have some cosmetic shadow... If you have ever seen the maps of the french cadastre (circa 1810) you would appreciate very much the effect of a sort of shadow 'projected' by the buildings. This helps very much in understanding what is built and what is not. I would like to produce the same effect offsetting a copy of the building layer, classifying it with solid black and putting it 'under' the building layer. This effect, I think could be produced via the proj module, considering that the offset should change with scale (nearly unperceivable at a little scale, large when seen at a larger scale). I understand this is not a very useful, but any suggestion will be highly appreciated. Carlo -------------------------------------------------------------------------- Carlo A. Bertelli Charta servizi e sistemi per il territorio e la storia ambientale srl Dipendenze del palazzo di Clemente Doria, via alla Chiesa della Maddalena 9/2 16124 Genova (Italy) tel. +39(0)10 2475439 fax +39(0)10 2475439 e-mail: bertelli at charta.acme.com http://www.charta.acme.com -------------------------------------------------------------------------- From bertelli at charta.acme.com Fri Aug 17 06:00:06 2001 From: bertelli at charta.acme.com (Carlo A. Bertelli) Date: Fri, 17 Aug 2001 15:00:06 +0200 Subject: [mapserver-users] PDF output again Message-ID: Hello, Some months ago I asked for pdf output from MapServer and a short thread started but nor I nor anyone known to the list came out with a solution to have vector graphics inside a pdf as a result of a MapServer query. Now, I think there is no need to extend MapServer to become a pdf server; a different cgi, which could accept MapServer commands without need for some interactive part could be produced, substituting pdflib for gd. A button or a link in the interface displaying the gif/png map could just call this cgi in a new window with the same map in a vector containing PDF. Just a suggestion for a hack... Carlo -------------------------------------------------------------------------- Carlo A. Bertelli Charta servizi e sistemi per il territorio e la storia ambientale srl Dipendenze del palazzo di Clemente Doria, via alla Chiesa della Maddalena 9/2 16124 Genova (Italy) tel. +39(0)10 2475439 fax +39(0)10 2475439 e-mail: bertelli at charta.acme.com http://www.charta.acme.com -------------------------------------------------------------------------- From bertelli at charta.acme.com Fri Aug 17 05:58:16 2001 From: bertelli at charta.acme.com (Carlo A. Bertelli) Date: Fri, 17 Aug 2001 14:58:16 +0200 Subject: [mapserver-users] map extent with point based mapqueries Message-ID: Hello, I'm trying to set up a very simple map application with some mapinfo tabs and a point layer. I should show a shop location starting from an interactive base map (that works). Querying one point or with an alphanumeric query on the same table (preferably a Mapinfo table, but a shapefile could be the same, just querying the DBF part) it should provide: * attributes for the shop (if I use the mapinfo table this asks for v. 3.5) * three maps: -- one whith the shop location at a provincial level -- one with the shop with large boundaries (say at a urban area) -- a bigger one with small boundaries (say at the block level). I tried to start from the example provided in the MapServer Test Suite: (http://maps.dnr.state.mn.us/mapserver_demos/tests/) One of the examples provided something very near to what I was looking for, that's the "Case 3: Simple ItemQuery With QueryMap" (what I want is indeed very simple) (http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html) The query template produces two maps, a reduced version of the starting map (the one the user clicked on when starting the query) and a map created on the fly. The template (http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/case3_template.html ) is that simple (and I utterly simplified it): This is just a simple dump of a few attributes for an individual polygon in the test suites counties layer: ------- Attributes:
Name: [SHOP_NAME]
ID Number: [ID]
Type: [SHOP_TYPE]
Map of the query results:
----- As Steve 'pointed out' (this is really the case), mapext is not appropriate for points (a point has no EXTension). So, he suggested to use scale or xyext with a buffer around the point. Now, this is a start of several problems: 1. We should use v. 3.5 if we want to use a MapInfo Tab and v. 3.5 has some differences wich are not extensively documented; 2. v. 3.5 shows some strange behaving, say it writes 'here: starting to return query' after the generated html; 3. The query result only shows the layer on which I perform the query (this is probably due to a misunderstanding: maybe I'm supposed to put the template clause inside every layer I would like to show in the querymap, but how shoud I specify what layer should be queried? I have ID fields in every Mapinfo table). Any suggestion? Ciao Carlo -------------------------------------------------------------------------- Carlo A. Bertelli Charta servizi e sistemi per il territorio e la storia ambientale srl Dipendenze del palazzo di Clemente Doria, via alla Chiesa della Maddalena 9/2 16124 Genova (Italy) tel. +39(0)10 2475439 fax +39(0)10 2475439 e-mail: bertelli at charta.acme.com http://www.charta.acme.com -------------------------------------------------------------------------- From pramsey at refractions.net Fri Aug 17 08:47:13 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Fri, 17 Aug 2001 08:47:13 -0700 Subject: [mapserver-users] PDF output again References: Message-ID: <3B7D3C81.F6AE51BE@refractions.net> I have thought about PDF-on-the-fly in the past, and there are a couple of pretty major issues with "going vector": - There will be times, fairly often, where the shear quantity of vector data for a given map extent will make the file very, very large. So in addition to just plan old rendering code, there probable need to be line-thinning routines in an vector-file renderer, otherwise file-sizes could be enormous. - The file size of a raster-based PDF, where you just ask Mapserver for an appropriately sized image with enough resolution to satisfy your printer and insert it into the PDF, is not all that big with compression. It is going to actually be difficult to tune a vector-file renderer to beat the raster renderer on file-size. This is especially try as you add layers, and of course if you have a raster layer like a ortho, all bets are off: you might just as well have the full raster solution. In your mind, what is the benefit of "going vector" for rendering? "Carlo A. Bertelli" wrote: > > Some months ago I asked for pdf output from MapServer and a short thread > started but nor I nor anyone known to the list came out with a solution to > have vector graphics inside a pdf as a result of a MapServer query. > Now, I think there is no need to extend MapServer to become a pdf server; a > different cgi, which could accept MapServer commands without need for some > interactive part could be produced, substituting pdflib for gd. A button or > a link in the interface displaying the gif/png map could just call this cgi > in a new window with the same map in a vector containing PDF. > Just a suggestion for a hack... > > Carlo > > -------------------------------------------------------------------------- > Carlo A. Bertelli > Charta servizi e sistemi per il territorio e la storia ambientale srl > Dipendenze del palazzo di Clemente Doria, > via alla Chiesa della Maddalena 9/2 16124 Genova (Italy) > tel. +39(0)10 2475439 fax +39(0)10 2475439 > e-mail: bertelli at charta.acme.com http://www.charta.acme.com > -------------------------------------------------------------------------- From dmoffett at walnutsoft.com Fri Aug 17 08:46:49 2001 From: dmoffett at walnutsoft.com (David Moffett) Date: Fri, 17 Aug 2001 09:46:49 -0600 Subject: [mapserver-users] SVG In-Reply-To: <20010817010142.334691C25AB51@smtp.yeah.net> Message-ID: <200108171555.KAA18725@lists.gis.umn.edu> Thank you for the information. Since I am still studying the problem the information presented will help me determine the "BEST" solution for my task at hand. My plan as of now will be the following: 1. Continue the study the code with the information provided. 2. Learn more about GML. 3. Asses a possible solution given the constraints of my project. 4. Disclose my approach for comments. best = Ideal solution - ( Ideal solution / project constraints ) Please forward any ideas that you think my help me in my quest. David David B. Moffett Walnut Software, LLC. 1050 Walnut Street, Suite 203 Boulder, CO 80302 dmoffett at walnutsoft.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 707 bytes Desc: not available URL: From jimburnett at ntelos.net Fri Aug 17 10:55:07 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Fri, 17 Aug 2001 13:55:07 -0400 Subject: [mapserver-users] Feature_ID Message-ID: <00e101c12745$c0666fd0$2f01a8c0@morpheus> Why can't I use Feature_ID as a CLASSITEM? I have a line layer, which has other attribute data, but no matter which of the fields I use, none work. Why cant I just use the standard FeatureID. its just for display only. -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From pnaciona at gis.umn.edu Fri Aug 17 11:24:03 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 17 Aug 2001 13:24:03 -0500 Subject: [mapserver-users] Shapefiles In-Reply-To: <003e01c126da$e8cefd90$01bca8c0@Peach> Message-ID: Go to the View Menu-->Properties. Set your Map Units then click on Area of Interest. The extent will be displayed. Ciao! Perry On Fri, 17 Aug 2001, Richard Ford wrote: > G'Day Vinko, > > I have ArcView running and am looking at the files OK. > > However, I can't get this "EXTENT" information. > > I can see type ok but no extent? Where should I look? > > I would like to try the showextents script however I don't have pearl map > script and can't for the life of me find any info on downloading or > installing it. > > Cheers, > Richard. > > > From v at w.cl Fri Aug 17 13:10:16 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Fri, 17 Aug 2001 16:10:16 -0400 (CLT) Subject: [mapserver-users] Shapefiles In-Reply-To: from "Pericles S. Nacionales" at Aug 17, 2001 01:24:03 PM Message-ID: <200108172010.f7HKAIk29745@antonia.nn.cl> > > Go to the View Menu-->Properties. Set your Map Units then click on Area > of Interest. The extent will be displayed. > > Ciao! > Perry You should also 'Set AOI to:' Display. > > > > I would like to try the showextents script however I don't have pearl map > > script and can't for the life of me find any info on downloading or > > installing it. In the mapserver distribution comes a directory called mapscript, you should cd into that directory, and do a perl Makefile.PL, make, make test, make install. -- V. From v at w.cl Fri Aug 17 13:31:10 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Fri, 17 Aug 2001 16:31:10 -0400 (CLT) Subject: [mapserver-users] Shapefiles In-Reply-To: <200108172010.f7HKAIk29745@antonia.nn.cl> from "Vinko Vrsalovic B." at Aug 17, 2001 04:10:16 PM Message-ID: <200108172031.f7HKVBx30125@antonia.nn.cl> > You should also 'Set AOI to:' Display. Correction: Set it to Display if you want to know the extent of what you are actually seeing in the view. Set it to theme if you want to know the full extent of a particular theme (ie shapefile) > > > I would like to try the showextents script however I don't have pearl map > > > script and can't for the life of me find any info on downloading or > > > installing it. Correction 2: In the mapserver distribution comes a directory called mapscript, you should cd into that directory and in then in the perl subdirectory, then do: perl Makefile.PL, make, make test, make install. -- V. From mapserver at cubok.com Sun Aug 19 04:30:15 2001 From: mapserver at cubok.com (Richard Ford) Date: Sun, 19 Aug 2001 21:30:15 +1000 Subject: [mapserver-users] All good!! - Types and multi layered files Message-ID: <006301c128a2$52869810$01bca8c0@Peach> G'Day All, Thanks for all the help from people over the last 2 -3 weeks. I now had a 'nod' on mapserver and off I go..... I have been building a quick rudimentary map server app that is a recreation of an ArcView project. I have found some small things that I would like to run past people... 1) Is there a colour chart online with RGB codes? For choosing layer colours? 2) Multilayed shapefiles. I have some shapefiles that contain within the one file - multiple layers. How do I get the multiple parts in the shapefile to display? Currently I am only getting one - say a multi layer shape file with a bit of land and rivers on it. I can only get the land to appear and no rivers? 3) File types. I read in the map file definition pages on the main web site that one should "use common sense" with file types. That is when displaying one can use a different format than the shapefile, etc, etc. I have a layer/theme/shapefile! :) that is stated as "PolyLine" in ArcView - it is a countor map - made from a digital elevation model. Now defining it as polyline got me this result: msDrawShapefileLayer(): General error message. POLYGON layers must be POLYGON shapefiles. I changed the type to line and it worked - however the lines were a little "jaggy" in that small pieces here and there were missing. I decided to fool about with this type definition after reading the docs (to test and also to learn more about GIS, MS, etc) and found that a type of "Point: also worked. However with even more missing pieces and very much a "point" like result. Now is my missing bits in LINE related to the fact that I have chosen this type? And why can't I define the layer as Polyline - the error message above? Cheers, Richard Ford. richard at cubok.com www.cubok.com The views expressed here are solely my own and do not necessarily represent those of my employer. From adsllaurentf at canl.nc Sun Aug 19 05:05:24 2001 From: adsllaurentf at canl.nc (Laurent FOULONNEAU) Date: Sun, 19 Aug 2001 23:05:24 +1100 Subject: [mapserver-users] Itemquery in 3.5 Message-ID: <002e01c128a7$3ab6ea00$0448abca@kids> Hello mapserver users, Is there any working sample using itemquery or itemnquery in 3.5. ? I can't figure out how and where the value passed in http vars is tested in the mapfile. Any help would be very appreciated. Follow some code... Au revoir... Laurent Foulonneau I use a form like : so it produce an url like : http://ubiq.hn.org/carto/noumea.phtml?minx=641474.000000&miny=7531714.000000&maxx=655534.000000&maxy=7542134.000000&imagewidth=500&imageheight=375&CMD=&INPUT_TYPE=&INPUT_COORD=&quartiers=Y&KEYMAPXSIZE=222&KEYMAPYSIZE=185&mode=itemquery&item=Nom&value=Ducos with my mapfile like : NAME DEMO STATUS ON SIZE 500 375 EXTENT 641474 7531714 655534 7542134 UNITS METERS SHAPEPATH "../noumea" FONTSET ../etc/fonts.txt WEB MINSCALE 0 MAXSCALE 50000000 IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "/tmp/gmap.log" END QUERYMAP STYLE HILITE COLOR 200 200 200 END LAYER NAME quartiers METADATA "DESCRIPTION" "Nom" "RESULT_FIELDS" "Nom Perimetre Surface" END TYPE POLYGON STATUS ON DATA nou_utm LabelItem "Nom" CLASSITEM "Nom" CLASS COLOR 240 240 240 OUTLINECOLOR 190 190 190 TEMPLATE "query.html" END END # layer END #mapfile My template "query.html" file only contain [Nom] -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at cubok.com Sun Aug 19 05:28:32 2001 From: mapserver at cubok.com (Richard Ford) Date: Sun, 19 Aug 2001 22:28:32 +1000 Subject: [mapserver-users] Last Question Message-ID: <007b01c128aa$76cc33d0$01bca8c0@Peach> Re my last post: I solved the "missing jaggy bit" problem. Zoom level and detail settings. :) However the polyline/line question still stands. Plus - how do I make a point type bigger. I have tried class declarations with min and maxsize, size, etc. Currently my little testing stations are pixels and not very visible. :-\ Is there a more thorough manual anywhere? Or are the web pages with brief definitions the only place? Trial and error to learn how to do something basic is very time wasting! :) Richard Ford. richard at cubok.com www.cubok.com The views expressed here are solely my own and do not necessarily represent those of my employer. From JohnHockaday at auslig.gov.au Sun Aug 19 16:07:42 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Mon, 20 Aug 2001 09:07:42 +1000 Subject: [mapserver-users] All good!! - Types and multi layered files Message-ID: <53273E187450D311ACF6009027927B12022C0E74@smtpgate.auslig.gov.au> Richard, I have found http://wdvl.internet.com/Graphics/Colour/ very useful for RGB colour charts. This is a very good site because at the bottom of this page they provide a "browser safe colour cube" IE. the browser is guaranteed to present the colour that you have chosen from this chart. John > -----Original Message----- > From: Richard Ford [SMTP:mapserver at cubok.com] > Sent: Sunday, August 19, 2001 9:30 PM > To: Map > Subject: [mapserver-users] All good!! - Types and multi layered files > > 1) Is there a colour chart online with RGB codes? For choosing layer > colours? > > From zhox at yeah.net Sun Aug 19 19:11:50 2001 From: zhox at yeah.net (Zhou Xu) Date: Mon, 20 Aug 2001 10:11:50 +0800 Subject: [mapserver-users] SVG Message-ID: <20010820022202.26D281CC87460@smtp2.yeah.net> I find a Perl SVG library at http://cs.nott.ac.uk/~jxm/SVG/iexplore.html, maybe useful for this thread. On 2001-8-16 18:34:00, you wrote: >David Moffett wrote: >> >> I am thinking about adding SVG ( Scalar Vector Graphics ) to mapserver. >> My questions are: >> >> 1. Is someone already doing this? There was some talk on the mailing in >> Oct 2000 but I did not see a conclusion. >> 2. Is it a good idea? I think it is since we would like to use it >> ourselves. >> 3. What approach would be best. I have looked at the code and have some >> ideas but I am a far cry from an expert on mapserver. >> > > >I'm not aware of anything that has been started on this front yet, but >we've had lots of interest expressed to have MapServer produce vector >output (SVG being only one possibility). So if any of these projects >takes off then it's the kind of additions that we might get involved in. > >Anyway, I think your idea is a good one, but I think it should be done >"the right way" in order for your work to be profitable in the long >run. A bit like the kind of changes Steve did when SDE and OGR were >added, and which allowed the PostGIS guys to plug their driver with much >less efforts. > >Basically that would mean redesigning important parts of the rendering >code in MapServer (and likely some of the mapfile stuff too) to make it >less GD-centric and be able to deal with various types of output. If >this is done well for the SVG case then other output formats such as >GML, Flash, etc. can be added with much less efforts. > >My 0.02$ >-- >------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ >------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. ------------------------------------------------------------------------------------------- ZiZhuYuan BaishengCun No.1 NGCC Post Code, 100044 Beijing, China Phone: +86 10 86851042 Fax: +86 10 68424101 Email: std at nsdi.gov.cn ------------------------------------------------------------------------------------------- From mark.wilson at rohoel.at Mon Aug 20 01:27:19 2001 From: mark.wilson at rohoel.at (mark.wilson at rohoel.at) Date: Mon, 20 Aug 2001 10:27:19 +0200 Subject: [mapserver-users] SVG Message-ID: I also think the ability to create SVG output would be a real advance for MapServer. The concerns about file size are also valid. I can imagine files may swell up depending upon the map extents and type of output. However, I believe SVG can also accommodate raster data as well, so one way forward is to output some data as raster, and include other layers as SVG. (This implies controlling the rendering by layer, not by map). Of course by doing this you lose the possibility to get nice results by zooming in and out using SVG functionality alone. But due to the possible file size problems, this might not be so feasible anyway (except for the simplest of maps). So what will SVG offer? IMHO SVG offers some fantastic opportunities for increasing the interactivity of the maps produced by mapserver. Specifically, SVG offers the possibility for much greater visual feedback (mouseover highlighting of map features, tooltip popup of information, etc.). Additinally, SVG features can contain hyperlinks to provide the user with more detailed information (this could be text based html page, or another call to mapserver for a more detailed map). Plenty more is possible, with a little imagination. MapServer has been used in the past to create image maps. So the same approach should be possible to produce a raster "basemap" which could be used in SVG output. Using mapscript, it is possible to get the pixel coordinates of point features and these could be output in SVG format on top of the basemap. Voila - your first interactive SVG map. Hope that helps. Mark W. David Moffett on 17/08/2001 17:46:49 To: "mapserver-users at lists.gis.umn.ed" cc: (bcc: Mark H Wilson/RAG/AT) Subject: Re: [mapserver-users] SVG Thank you for the information. Since I am still studying the problem the information presented will help me determine the "BEST" solution for my task at hand. My plan as of now will be the following: 1. Continue the study the code with the information provided. 2. Learn more about GML. 3. Asses a possible solution given the constraints of my project. 4. Disclose my approach for comments. best = Ideal solution - ( Ideal solution / project constraints ) Please forward any ideas that you think my help me in my quest. David David B. Moffett Walnut Software, LLC. 1050 Walnut Street, Suite 203 Boulder, CO 80302 dmoffett at walnutsoft.com -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: not available URL: From morissette at dmsolutions.ca Mon Aug 20 06:17:31 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 20 Aug 2001 09:17:31 -0400 Subject: [mapserver-users] Last Question References: <007b01c128aa$76cc33d0$01bca8c0@Peach> Message-ID: <3B810DEA.7ED3BC46@dmsolutions.ca> Richard Ford wrote: > > Plus - how do I make a point type bigger. I have tried class declarations > with min and maxsize, size, etc. Currently my little testing stations are > pixels and not very visible. :-\ > Try setting a symbol number (using a circle symbol for instance) in your class and then setting the SIZE should work. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Aug 20 07:28:47 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 20 Aug 2001 09:28:47 -0500 Subject: [mapserver-users] PDF output again Message-ID: I don't think that MapServer proper, the CGI version, will ever directly support PDF. There are simply too many major issues, the largest being PDF templates. You gotta layout output somehow and you don't have the benefit of a rendering engine like a web browser. Simply a PDF map isn't enough you need other things like scalebars, legends and so on and that type of integration in the PDF world is tough on the fly. That said it's certainly possible to integrate MapServer and PDFs. It can be done using external scripts that reference the CGI version for images or use MapScript directly to access vectors. I've done the former with pretty good succes. Vector output is certainly doable if you can get over moving between coordinate systems. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Carlo A. Bertelli" 08/17/01 08:00AM >>> Hello, Some months ago I asked for pdf output from MapServer and a short thread started but nor I nor anyone known to the list came out with a solution to have vector graphics inside a pdf as a result of a MapServer query. Now, I think there is no need to extend MapServer to become a pdf server; a different cgi, which could accept MapServer commands without need for some interactive part could be produced, substituting pdflib for gd. A button or a link in the interface displaying the gif/png map could just call this cgi in a new window with the same map in a vector containing PDF. Just a suggestion for a hack... Carlo -------------------------------------------------------------------------- Carlo A. Bertelli Charta servizi e sistemi per il territorio e la storia ambientale srl Dipendenze del palazzo di Clemente Doria, via alla Chiesa della Maddalena 9/2 16124 Genova (Italy) tel. +39(0)10 2475439 fax +39(0)10 2475439 e-mail: bertelli at charta.acme.com http://www.charta.acme.com -------------------------------------------------------------------------- From LBallard at YesVirginia.org Mon Aug 20 07:45:56 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Mon, 20 Aug 2001 10:45:56 -0400 Subject: [mapserver-users] mapraster.c compile error--- Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CEDD@communications> I've tried compiling nightly with several options and I always get the same parse errors. ----------------------------------------- gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_SWAP_XY -DUSE_SDE -I/home/baldur/mapserver/./gd-1.2/ -I/home/baldur/mapserver/../sdeexe81//include mapraster.c -o mapraster.o mapraster.c: In function `msDrawRasterLayer': mapraster.c:1698: parse error before `{' mapraster.c:1721: continue statement not within a loop mapraster.c:1734: continue statement not within a loop mapraster.c:1747: continue statement not within a loop mapraster.c:1760: continue statement not within a loop mapraster.c:1867: continue statement not within a loop mapraster.c:1881: continue statement not within a loop mapraster.c:1611: warning: `f' might be used uninitialized in this function mapraster.c:1882: warning: control reaches end of non-void function mapraster.c: At top level: mapraster.c:1884: parse error before `if' mapraster.c:1887: warning: type defaults to `int' in declaration of `chdir' mapraster.c:1887: warning: parameter names (without types) in function declaration mapraster.c:1887: warning: data definition has no type or storage class mapraster.c:1888: parse error before `return' make: *** [mapraster.o] Error 1 Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Mon Aug 20 07:52:42 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 20 Aug 2001 09:52:42 -0500 Subject: [mapserver-users] SVG Message-ID: Actually MapServer is having GML output added as we speak. Initially this will be available via the OpenGIS WMT interface but logically it could be added as query output as well. Since you're talking raw data here it boils down to queries rather than full draws. I believe there are tools to move from GML to SVG but haven't played in that area at all. This GML addition is really the last addition before the official 3.5 release, so soon... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Zhou Xu 08/19/01 09:11PM >>> I find a Perl SVG library at http://cs.nott.ac.uk/~jxm/SVG/iexplore.html, maybe useful for this thread. On 2001-8-16 18:34:00, you wrote: >David Moffett wrote: >> >> I am thinking about adding SVG ( Scalar Vector Graphics ) to mapserver. >> My questions are: >> >> 1. Is someone already doing this? There was some talk on the mailing in >> Oct 2000 but I did not see a conclusion. >> 2. Is it a good idea? I think it is since we would like to use it >> ourselves. >> 3. What approach would be best. I have looked at the code and have some >> ideas but I am a far cry from an expert on mapserver. >> > > >I'm not aware of anything that has been started on this front yet, but >we've had lots of interest expressed to have MapServer produce vector >output (SVG being only one possibility). So if any of these projects >takes off then it's the kind of additions that we might get involved in. > >Anyway, I think your idea is a good one, but I think it should be done >"the right way" in order for your work to be profitable in the long >run. A bit like the kind of changes Steve did when SDE and OGR were >added, and which allowed the PostGIS guys to plug their driver with much >less efforts. > >Basically that would mean redesigning important parts of the rendering >code in MapServer (and likely some of the mapfile stuff too) to make it >less GD-centric and be able to deal with various types of output. If >this is done well for the SVG case then other output formats such as >GML, Flash, etc. can be added with much less efforts. > >My 0.02$ >-- >------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ >------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. ------------------------------------------------------------------------------------------- ZiZhuYuan BaishengCun No.1 NGCC Post Code, 100044 Beijing, China Phone: +86 10 86851042 Fax: +86 10 68424101 Email: std at nsdi.gov.cn ------------------------------------------------------------------------------------------- From morissette at dmsolutions.ca Mon Aug 20 08:04:40 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 20 Aug 2001 11:04:40 -0400 Subject: [mapserver-users] mapraster.c compile error--- References: <509989F9E1D38D47ADA73ED9CF5BF32A16CEDD@communications> Message-ID: <3B812708.A4B799B1@dmsolutions.ca> > I've tried compiling nightly with several options and I always get the > same parse errors. > mapraster.c: In function `msDrawRasterLayer': > mapraster.c:1698: parse error before `{' It's a typo related to a change I made last week. It was a missing bracket inside an #ifdef'd case that was never compiled in my case. I've committed a fix, so please do a CVS update and try again. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Aug 20 08:11:50 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 20 Aug 2001 10:11:50 -0500 Subject: [mapserver-users] Itemquery in 3.5 Message-ID: I'll have to post something from home tonite. ITEMQUERY has changed radically (for the better) in order to support all file types (i.e. SDE/OGR/PostGIS/shapefile). I've updated the test suite on my home machine but not in the demo CVS yet. Will try to get that all squared away this evening. At that point you'll be able to download the test suite and data from the CVS to play with. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Laurent FOULONNEAU" 08/19/01 07:05AM >>> Hello mapserver users, Is there any working sample using itemquery or itemnquery in 3.5. ? I can't figure out how and where the value passed in http vars is tested in the mapfile. Any help would be very appreciated. Follow some code... Au revoir... Laurent Foulonneau I use a form like : so it produce an url like : http://ubiq.hn.org/carto/noumea.phtml?minx=641474.000000&miny=7531714.000000&maxx=655534.000000&maxy=7542134.000000&imagewidth=500&imageheight=375&CMD=&INPUT_TYPE=&INPUT_COORD=&quartiers=Y&KEYMAPXSIZE=222&KEYMAPYSIZE=185&mode=itemquery&item=Nom&value=Ducos with my mapfile like : NAME DEMO STATUS ON SIZE 500 375 EXTENT 641474 7531714 655534 7542134 UNITS METERS SHAPEPATH "../noumea" FONTSET ../etc/fonts.txt WEB MINSCALE 0 MAXSCALE 50000000 IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "/tmp/gmap.log" END QUERYMAP STYLE HILITE COLOR 200 200 200 END LAYER NAME quartiers METADATA "DESCRIPTION" "Nom" "RESULT_FIELDS" "Nom Perimetre Surface" END TYPE POLYGON STATUS ON DATA nou_utm LabelItem "Nom" CLASSITEM "Nom" CLASS COLOR 240 240 240 OUTLINECOLOR 190 190 190 TEMPLATE "query.html" END END # layer END #mapfile My template "query.html" file only contain [Nom] From steve.lime at dnr.state.mn.us Mon Aug 20 09:12:58 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 20 Aug 2001 11:12:58 -0500 Subject: [mapserver-users] Feature_ID Message-ID: What version, datatype etc? Assuming there is an item called feature_id there's no reason it shouldn't work. That said being able to use a psuedo id in classes is not a bad idea. That id is already a part of the internal shape structures but it's not trivial to add that to the expression handler. Would you add this as a feature request to Bugzilla? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jim Burnett" 08/17/01 12:55PM >>> Why can't I use Feature_ID as a CLASSITEM? I have a line layer, which has other attribute data, but no matter which of the fields I use, none work. Why cant I just use the standard FeatureID. its just for display only. -jim From steve.lime at dnr.state.mn.us Mon Aug 20 09:27:12 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 20 Aug 2001 11:27:12 -0500 Subject: [mapserver-users] label symbol size vs. label font size Message-ID: If the shields are images then they can't be scaled and size is ignored. The label size and symbol size are not tied together in anyway. The best way to deal with 3 digits would be to have 2 versions of the symbol (i.e. 2 gifs) and then use the length operator in an expression. You could also change font size based on length. For example: CLASS # class for 2 digit labels EXPRESSION (length('[HWYNUM]') eq 2) ... END CLASS # class for 2+ digit labels (note: no expression) ... END Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Chad Nielsen" 08/16/01 01:20PM >>> I'm having trouble adjusting the size of my highway shield symbols relative to the label font size. Seems I can only make the highway shields bigger if I make the font bigger, i.e. by increasing the SIZE attribute of the LABEL object. Problem is I have 3-digit highway numbers which makes the text go outside the shield boundary. If I increase the SIZE attribute of the CLASS object nothing happens. How can I make the shield bigger without making the label font bigger? Or, is there some other trick to getting 3-digits to fit inside a shield? here is what I have in my map file: LAYER NAME highwayshields DATA 'e:\gisweb\data\transportation\shapes\nwohwy' STATUS ON TYPE ANNOTATION LABELITEM "HWYNUM" CLASS COLOR 0 0 0 SIZE 18 SYMBOL 3 OUTLINECOLOR 0 0 0 LABEL SIZE 10 MINDISTANCE 200 COLOR 0 0 0 BACKGROUNDCOLOR -1 -1 -1 TYPE TRUETYPE FONT verdana-bold POSITION CC END #LABEL END # CLASS END # LAYER TIA, Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/gov/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From adoyle at intl-interfaces.com Mon Aug 20 09:35:25 2001 From: adoyle at intl-interfaces.com (Allan Doyle) Date: Mon, 20 Aug 2001 12:35:25 -0400 Subject: [mapserver-users] SVG References: Message-ID: <3B813C4D.4660449E@intl-interfaces.com> Stephen Lime wrote: > > Actually MapServer is having GML output added as we speak. Initially this will be available > via the OpenGIS WMT interface but logically it could be added as query output as well. Since You have to be careful with terminology. WMT is not an interface, it's an activity that brought about the WMS interface. (WMT = Web Mapping Testbed, WMS = Web Map Service). That being said, WMS 1.1.0 [1] drops any pretense at being able to return feature data, leaving that task for a WFS (Web Feature Service), not yet a spec, but a discussion paper available at [2]. However, at the same time, a WMS 1.0.0 [3] or 1.1.0 can return GML as part of a GetFeatureInfo request. The essential difference between a WFS and a WMS is that the WFS presents a set of operations that make more sense for vector data and a WMS presents operations that make more sense for raster pictures. I think whatever foundation you lay for having MapServer return GML will stand you in good stead to move to a full WFS implementation. Furthermore, there are some implementations of WFS and WMS that are really just different entry points into the same software with different interfaces layered on top. > you're talking raw data here it boils down to queries rather than full draws. I believe there are tools > to move from GML to SVG but haven't played in that area at all. Yes, there are some that have been developed for/by the US Census Bureau [4] [1] http://www.opengis.org/techno/specs/01-047r2.pdf [2] http://www.opengis.org/techno/discussions/01-023.pdf [3] http://www.opengis.org/techno/specs/00-028.pdf [4] http://www.gmlcentral.com/tiger/ Allan > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Zhou Xu 08/19/01 09:11PM >>> > I find a Perl SVG library at http://cs.nott.ac.uk/~jxm/SVG/iexplore.html, maybe useful for this thread. > > On 2001-8-16 18:34:00, you wrote: > >David Moffett wrote: > >> > >> I am thinking about adding SVG ( Scalar Vector Graphics ) to mapserver. > >> My questions are: > >> > >> 1. Is someone already doing this? There was some talk on the mailing in > >> Oct 2000 but I did not see a conclusion. > >> 2. Is it a good idea? I think it is since we would like to use it > >> ourselves. > >> 3. What approach would be best. I have looked at the code and have some > >> ideas but I am a far cry from an expert on mapserver. > >> > > > > > >I'm not aware of anything that has been started on this front yet, but > >we've had lots of interest expressed to have MapServer produce vector > >output (SVG being only one possibility). So if any of these projects > >takes off then it's the kind of additions that we might get involved in. > > > >Anyway, I think your idea is a good one, but I think it should be done > >"the right way" in order for your work to be profitable in the long > >run. A bit like the kind of changes Steve did when SDE and OGR were > >added, and which allowed the PostGIS guys to plug their driver with much > >less efforts. > > > >Basically that would mean redesigning important parts of the rendering > >code in MapServer (and likely some of the mapfile stuff too) to make it > >less GD-centric and be able to deal with various types of output. If > >this is done well for the SVG case then other output formats such as > >GML, Flash, etc. can be added with much less efforts. > > > >My 0.02$ > >-- > >------------------------------------------------------------ > > Daniel Morissette morissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > >------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > > ------------------------------------------------------------------------------------------- > ZiZhuYuan BaishengCun No.1 > NGCC > Post Code, 100044 > Beijing, China > Phone: +86 10 86851042 > Fax: +86 10 68424101 > > Email: std at nsdi.gov.cn > ------------------------------------------------------------------------------------------- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Allan Doyle http://www.intl-interfaces.com adoyle at intl-interfaces.com From pramsey at refractions.net Mon Aug 20 09:45:51 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 20 Aug 2001 09:45:51 -0700 Subject: [mapserver-users] SVG References: Message-ID: <3B813EBF.57CE8157@refractions.net> Galdos Systems (www.galdos.ca) of Vancouver (pesky Canadians) makes a business out of GML converters, and GML -> SVG is one of their favourites. I shudder to think how complex their DSSSL sheets are, but I understand they do the conversion using standard XML translation tricks. Stephen Lime wrote: > > Actually MapServer is having GML output added as we speak. Initially this will be available > via the OpenGIS WMT interface but logically it could be added as query output as well. Since > you're talking raw data here it boils down to queries rather than full draws. I believe there are tools > to move from GML to SVG but haven't played in that area at all. > > This GML addition is really the last addition before the official 3.5 release, so soon... > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Zhou Xu 08/19/01 09:11PM >>> > I find a Perl SVG library at http://cs.nott.ac.uk/~jxm/SVG/iexplore.html, maybe useful for this thread. > > On 2001-8-16 18:34:00, you wrote: > >David Moffett wrote: > >> > >> I am thinking about adding SVG ( Scalar Vector Graphics ) to mapserver. > >> My questions are: > >> > >> 1. Is someone already doing this? There was some talk on the mailing in > >> Oct 2000 but I did not see a conclusion. > >> 2. Is it a good idea? I think it is since we would like to use it > >> ourselves. > >> 3. What approach would be best. I have looked at the code and have some > >> ideas but I am a far cry from an expert on mapserver. > >> > > > > > >I'm not aware of anything that has been started on this front yet, but > >we've had lots of interest expressed to have MapServer produce vector > >output (SVG being only one possibility). So if any of these projects > >takes off then it's the kind of additions that we might get involved in. > > > >Anyway, I think your idea is a good one, but I think it should be done > >"the right way" in order for your work to be profitable in the long > >run. A bit like the kind of changes Steve did when SDE and OGR were > >added, and which allowed the PostGIS guys to plug their driver with much > >less efforts. > > > >Basically that would mean redesigning important parts of the rendering > >code in MapServer (and likely some of the mapfile stuff too) to make it > >less GD-centric and be able to deal with various types of output. If > >this is done well for the SVG case then other output formats such as > >GML, Flash, etc. can be added with much less efforts. > > > >My 0.02$ > >-- > >------------------------------------------------------------ > > Daniel Morissette morissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > >------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > > ------------------------------------------------------------------------------------------- > ZiZhuYuan BaishengCun No.1 > NGCC > Post Code, 100044 > Beijing, China > Phone: +86 10 86851042 > Fax: +86 10 68424101 > > Email: std at nsdi.gov.cn > ------------------------------------------------------------------------------------------- From steve.lime at dnr.state.mn.us Mon Aug 20 10:31:47 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 20 Aug 2001 12:31:47 -0500 Subject: [mapserver-users] get imgext value to javascript function Message-ID: Sure, in your template just do something like: ... mapextent([minx], [miny], [maxx], [maxy]); ... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Chan B. Huynh" 08/14/01 11:22AM >>> Is it possible to get the spatial extent of the existing inline image from CGI variable imgext [minx] [miny] [maxx] [maxy] to a javascript function ie: function mapextent(minx,miny,maxx,maxy){} ??? thanks -chan From John.Arthur at voicestream.com Mon Aug 20 11:26:46 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Mon, 20 Aug 2001 11:26:46 -0700 Subject: [mapserver-users] Image output is flattened - projection issue? Message-ID: <987E5CD7052ED51198F400508BA25279089ECF@vamerrifms01.gsm1900.org> Mapserver is awesome,... but my display is squashed. I have tried it both ways, using shape file and Mapinfo files. For instance, I have a layer that (should)displays a circle, but displays a oval. Every thing is squashed, not just the circles. I am using NAD83 decimal format ie: extent -83.675413 36.540739 -75.242266 39.466012 What is going on? Could someone help, please. John Arthur RF Technician Office: (757) 490-7221 Cellular: (757) 692-1515 Email: john.arthur at voicestream.com From steve.lime at dnr.state.mn.us Mon Aug 20 13:05:28 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 20 Aug 2001 15:05:28 -0500 Subject: [mapserver-users] Image output is flattened - projection issue? Message-ID: Sounds to me like the output image size doesn't match the image height and width properties in the template html file. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Arthur, John" 08/20/01 01:26PM >>> Mapserver is awesome,... but my display is squashed. I have tried it both ways, using shape file and Mapinfo files. For instance, I have a layer that (should)displays a circle, but displays a oval. Every thing is squashed, not just the circles. I am using NAD83 decimal format ie: extent -83.675413 36.540739 -75.242266 39.466012 What is going on? Could someone help, please. John Arthur RF Technician Office: (757) 490-7221 Cellular: (757) 692-1515 Email: john.arthur at voicestream.com From Chip.Hankley at GASAI.Com Mon Aug 20 13:23:11 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 20 Aug 2001 15:23:11 -0500 Subject: [mapserver-users] How TO: Flashing / Blinking Polygon? Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3E20@postoffice.GASAI.Com> I have an application where the user selects a value from a dropdown menu, and the corresponding polygon on the map turns red. I'd like to figure out a way to make the polygon "blink" or "flash" a number of times in rapid succession, but have absolutely no idea how to do it. Anyone have any suggestions / examples? Thanks! Chip (MapServer 3.4, PHP MapScript for PHP Version 4.0.4pl1, WIN NT 4, PWS) From John.Arthur at voicestream.com Mon Aug 20 13:32:01 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Mon, 20 Aug 2001 13:32:01 -0700 Subject: [mapserver-users] Image output is flattened - projection issu e? Message-ID: <987E5CD7052ED51198F400508BA25279089ED0@vamerrifms01.gsm1900.org> Actual, I'm using a PHP script modeled after the "gmap" example, not the cgi version. The image sizes match because PHP pulls it from the .map file. This is verified by viewing the source. Maybe I'll try to do the CGI version. John Arthur RF Technician Office: (757) 490-7221 Cellular: (757) 692-1515 Email: john.arthur at voicestream.com -----Original Message----- From: TCHaddad [mailto:TCHaddad at cshore.com] Sent: Monday, August 20, 2001 4:06 PM To: Arthur, John Subject: Re: [mapserver-users] Image output is flattened - projection issue? sounds like the problem is not in mapserver's output, but rather how you are displaying that output in your html template. make sure that the size parameters in you map file match the img display sizes in you HTML. ie: if in your mapfile you have: SIZE 600 600 (as in the demo), in your HTML you should have: (as in the demo). I think you can specify whatever sized output you want from mapserver, and your map will look fine as long as you ensure that the size values match in these 2 places... Good luck, TCH ---------- Original Message ---------------------------------- From: "Arthur, John" Date: Mon, 20 Aug 2001 11:26:46 -0700 >Mapserver is awesome,... but my display is squashed. I have tried it both >ways, using shape file and Mapinfo files. >For instance, I have a layer that (should)displays a circle, but displays a >oval. Every thing is squashed, not just the circles. >I am using NAD83 decimal format ie: >extent -83.675413 36.540739 -75.242266 39.466012 > >What is going on? Could someone help, please. > > > > >John Arthur >RF Technician >Office: (757) 490-7221 >Cellular: (757) 692-1515 >Email: john.arthur at voicestream.com > From morissette at dmsolutions.ca Mon Aug 20 13:52:49 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 20 Aug 2001 16:52:49 -0400 Subject: [mapserver-users] How TO: Flashing / Blinking Polygon? References: <3DFF131E4E6D2D4198CDD758F35A53536E3E20@postoffice.GASAI.Com> Message-ID: <3B8178A1.36AD28C8@dmsolutions.ca> "Hankley, Chip" wrote: > > I'd like to figure out a way to make the polygon "blink" or "flash" a number > of times in rapid succession, but have absolutely no idea how to do it. > > Anyone have any suggestions / examples? > > Thanks! > > Chip > > (MapServer 3.4, PHP MapScript for PHP Version 4.0.4pl1, WIN NT 4, PWS) You could use animated GIFs... I never tried this specifically, but did similar things before so it should work: 1- You'll need to download and install the whirlgif executable in your path. Get it from http://www.danbbs.dk/~dino/whirlgif/ 2- In your script, draw the map once with default layers, and once with the highlighted polygon. Make sure background is opaque. Then combine the images into an animated GIF using whirlgif: // Draw the 2 map slides to the imagepath directory $img1 = $map->draw(); $img2 = $map->drawQuery(); $imgURL1 = $img1->saveWebImage(...); $imgURL2 = $img2->saveWebImage(...); $filePath1 = map->web->imagepath . substr(strrchr($imgURL1, "/"),1); $filePath2 = map->web->imagepath . substr(strrchr($imgURL2, "/"),1); // Create a unique filename and URL for the animated GIF output $animName = "anim".substr(strrchr($imgURL1, "/"),1); $animPath = $map->web->imagepath . $animName; $animURL = $map->web->imageurl . $animName; // Run whirlgif to generate the animated GIF system("whirlgif -o $animPath -loop -time 500 $filePath1 -time 500 $filePath2"); // $animURL now points to an animated GIF with the flashing polygon print "\n"; Note: a possible optimization could be to draw only the layer containing the polygon to highlight with a transparent background in the second pass. I let you figure out how to do that. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Mon Aug 20 14:04:34 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 20 Aug 2001 17:04:34 -0400 Subject: [mapserver-users] How TO: Flashing / Blinking Polygon? References: <3DFF131E4E6D2D4198CDD758F35A53536E3E20@postoffice.GASAI.Com> <3B8178A1.36AD28C8@dmsolutions.ca> Message-ID: <3B817B62.EBF4A2E1@dmsolutions.ca> Daniel Morissette wrote: > > // Run whirlgif to generate the animated GIF > system("whirlgif -o $animPath -loop -time 500 $filePath1 -time 500 > $filePath2"); > OOpps... little typo: The delay passed to the -time argument should be a smaller value such as 25 or 50 since it's in units of 1/100 second. The example above would flash only once per 5 seconds. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Aug 20 14:11:19 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 20 Aug 2001 16:11:19 -0500 Subject: [mapserver-users] How TO: Flashing / Blinking Polygon? Message-ID: You need to create an animated gif. Let's say you create a single frame with the mapserver where the selected polygon is, say, yellow. You could use GD or ImageMagick to create a second frame changing the yellow to redm and then yet another tool to wrap the frames into the animated gif. What that tool is I don't know but there's got to be one out there, perhaps ImageMagick. Could do it. Finally that animated gif is returned to the user and the process continues. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hankley, Chip" 08/20/01 03:23PM >>> I have an application where the user selects a value from a dropdown menu, and the corresponding polygon on the map turns red. I'd like to figure out a way to make the polygon "blink" or "flash" a number of times in rapid succession, but have absolutely no idea how to do it. Anyone have any suggestions / examples? Thanks! Chip (MapServer 3.4, PHP MapScript for PHP Version 4.0.4pl1, WIN NT 4, PWS) From Jonathon.Root at agso.gov.au Mon Aug 20 16:07:58 2001 From: Jonathon.Root at agso.gov.au (Jonathon.Root at agso.gov.au) Date: Tue, 21 Aug 2001 09:07:58 +1000 Subject: [mapserver-users] converting old .map files Message-ID: <28DE833A781BD511839600D0B772248F6AA2FF@agsomail1.agso.gov.au> G'day all, Having finally got around to updating some very old online map applications I was wondering if anyone had a script for converting pre-3.3 .map files to 3.3+ .map files? Thanks. Regards, Jonathon Root From aalgera at ibama.gov.br Mon Aug 20 17:24:37 2001 From: aalgera at ibama.gov.br (Andries J. Algera) Date: Mon, 20 Aug 2001 21:24:37 -0300 (BRT) Subject: [mapserver-users] Problem compiling Mapserver w/ PHP Mapscript on Solaris 2.6 Message-ID: I sucessfully compiled mapserver 3.5 on linux (Redhat). Whenever I try to do the same steps on solaris 2.6 I get the following errors at link time of the PHP module. gcc -W -Wl -o php_mapscript.so php_mapscript_util.o php_mapscript.o mapscript_i .o -L/home/aalgera/mapserver -lmap -ltiff -lgd -lm /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crt1.o: In function `_start': /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crt1.o(.text+0x5c): undefined reference to `main' php_mapscript_util.o: In function `_phpms_report_mapserver_error': php_mapscript_util.o(.text+0x44): undefined reference to `zend_error' php_mapscript_util.o: In function `_phpms_fetch_handle2': php_mapscript_util.o(.text+0x9c): undefined reference to `zend_hash_find' php_mapscript_util.o(.text+0xc8): undefined reference to `zend_list_find' php_mapscript_util.o(.text+0x100): undefined reference to `zend_error' php_mapscript_util.o: In function `_phpms_fetch_property_handle2': php_mapscript_util.o(.text+0x15c): undefined reference to `zend_error' php_mapscript_util.o(.text+0x180): undefined reference to `zend_hash_find' php_mapscript_util.o(.text+0x1ac): undefined reference to `zend_error' php_mapscript_util.o(.text+0x1d4): undefined reference to `zend_list_find' php_mapscript_util.o(.text+0x214): undefined reference to `zend_error' php_mapscript_util.o: In function `_phpms_fetch_property_string': php_mapscript_util.o(.text+0x27c): undefined reference to `zend_error' php_mapscript_util.o(.text+0x2a4): undefined reference to `zend_hash_find' php_mapscript_util.o(.text+0x2d0): undefined reference to `zend_error' php_mapscript_util.o(.text+0x2e8): undefined reference to `_convert_to_string' These errors go on for a while. Can anyone explain me what is going wrong here. Andries Algera CSR - IBAMA SAIN L4, Lote 4, Ed. IBAMA Sede 70800.200 Brasilia / DF BRASIL ph: +5561 316-1326 316-1453 fax:+5561 223-7108 -------------------------------------------------------------------- From AWOOLEY at mountainland.org Tue Aug 21 06:03:20 2001 From: AWOOLEY at mountainland.org (ANDREW WOOLEY) Date: Tue, 21 Aug 2001 07:03:20 -0600 Subject: [mapserver-users] Query Point Message-ID: Folks, I am really stumped here. I am trying to get my query to work properly. I am using the nightly build of PHP/Mapscript that I grabbed this morning (August 21, 2001). I am using a modified-for-my-application version of the gmap demo and when I click on a feature on the map, I get the proper data results, but am the shape is not highlighting and the map zooms to the initial extent. If anyone has any clues as to why this might be happening and would like to share them with me, I would really appreciate it. Thanks very much. Andrew From v at w.cl Tue Aug 21 06:16:34 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Tue, 21 Aug 2001 09:16:34 -0400 (CLT) Subject: [mapserver-users] Using classes to set the color of a shape In-Reply-To: from "Andries J. Algera" at Aug 20, 2001 09:24:37 PM Message-ID: <200108211316.f7LDGZd08434@antonia.nn.cl> Hello all. Briefly: How do I set dynamically a shape crated from a shapefile to be part of one class on a layer? Not so briefly: I have a set of shapefiles with one line each, and based on user's input I display a subset of them on the map. I render them all on the same layer. The layer has 7 classes and the subset is always smaller than 7 (each class has a different color, and that's what I'm pursuing here). The problem is all the shapes created from the shapefiles have a classindex 0, and I don't know how to change it to be part of a specific class of the layer. I'm doing that this way: $layer_lines is the layer created from the map file. for ($i=0;$i<7;$i++) { if (user said yes to i) $shape[i] = create_shape_from_shapefile($shapefile[i]); } $image=$map->draw(); for ($i=0; $i<7 && (user said yes to i); $i++) { $shape[i]->draw($map,$layer_lines,$image,$i,""); } I was hoping for the $i parameter of the draw shape method to set the class on $layer_lines, but they all are drawn on class 0. What can I do to make this work? or what's the correct method for setting colors dynamically for a set of shapes? (hopefully not involving creating layers because of the infamous invalid maphandle). Ah, and create_shape_from_shapefile is: $shapefile = ms_newShapefileObj($file.".shp",-1); $shapeobj = ms_newShapeObj(MS_SHAPE_LINE); $shp = $shapefile->getShape(0); $line = $shp->line(0); $shapefile->free(); $shapeobj->add($line); $shp->free(); return $shapeobj; (As I said, the shapefiles only have one line) Yes, I'm using PHP4.0.6 and PHP MS 3.5 latest build. :) Thanks for the help. -- V. From morissette at dmsolutions.ca Tue Aug 21 06:33:13 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 21 Aug 2001 09:33:13 -0400 Subject: [mapserver-users] Problem compiling Mapserver w/ PHP Mapscript on Solaris 2.6 References: Message-ID: <3B826319.6C46BEDA@dmsolutions.ca> "Andries J. Algera" wrote: > > I sucessfully compiled mapserver 3.5 on linux (Redhat). Whenever I try to > do the same steps on solaris 2.6 I get the following errors at link time > of the PHP module. > > gcc -W -Wl -o php_mapscript.so php_mapscript_util.o php_mapscript.o > mapscript_i > .o -L/home/aalgera/mapserver -lmap -ltiff -lgd -lm The part of the configure script that takes care of the PHP module needs some rework... Look in mapscript/php3/Makefile for the line "LD= gcc -W -Wl" and try replacing it with "LD= gcc -shared" ... hopefully that will do the trick. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jason.coutermarsh at crrel.usace.army.mil Tue Aug 21 06:48:57 2001 From: jason.coutermarsh at crrel.usace.army.mil (Jason Coutermarsh) Date: Tue, 21 Aug 2001 09:48:57 -0400 Subject: [mapserver-users] Trouble creating points and creating shapefiles Message-ID: Hi! Has anyone been able to create a point on an image file or create a shape file using the latest nightly build of mapscript? I could in mapscript 3.4, but now I keep getting Segmentation Faults. Thanks. Jason Coutermarsh Jason.Coutermarsh at crrel.usace.army.mil From v at w.cl Tue Aug 21 07:01:15 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Tue, 21 Aug 2001 10:01:15 -0400 (CLT) Subject: [mapserver-users] How TO: Flashing / Blinking Polygon? In-Reply-To: <3B817B62.EBF4A2E1@dmsolutions.ca> from "Daniel Morissette" at Aug 20, 2001 05:04:34 PM Message-ID: <200108211401.f7LE1F808994@antonia.nn.cl> > > Daniel Morissette wrote: > > > > // Run whirlgif to generate the animated GIF > > system("whirlgif -o $animPath -loop -time 500 $filePath1 -time 500 > > $filePath2"); > > > > OOpps... little typo: The delay passed to the -time argument should be a > smaller value such as 25 or 50 since it's in units of 1/100 second. The > example above would flash only once per 5 seconds. > Is there such thing as an animated PNG? What can I do if my GD is not gif compliant? -- V. From morissette at dmsolutions.ca Tue Aug 21 07:15:29 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 21 Aug 2001 10:15:29 -0400 Subject: [mapserver-users] Using classes to set the color of a shape References: <200108211316.f7LDGZd08434@antonia.nn.cl> Message-ID: <3B826D01.15021D6C@dmsolutions.ca> "Vinko Vrsalovic B." wrote: > > for ($i=0; $i<7 && (user said yes to i); $i++) { > $shape[i]->draw($map,$layer_lines,$image,$i,""); > } > > I was hoping for the $i parameter of the draw shape method to set > the class on $layer_lines, but they all are drawn on class 0. > OOppps... there's an error in the docs. In MS 3.5 the shape->draw() method doesn't take the class index argument any more. The docs should say: int draw(mapObj map, layerObj layer, imageObj img) (and same thing with rectObj->draw()), etc.) I've filed this as a doc bug in bugzilla to make sure it gets fixed: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=36 OK, so how does it work then? In MS3.5 the shapeObj has a new class member called "classindex" ... so I would think that calling $shape->set("classindex", $i); before calling draw() should work, but I haven't tested that myself... Oh... wait... shapeObj doesn't have a set() method because all its member used to be read-only... so I think you're stuck until we fix this, hopefully in the next week or so. It's filed in bugzilla as well: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=37 BTW, thanks for taking time to write a complete description of the problem! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Aug 21 07:22:18 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 21 Aug 2001 10:22:18 -0400 Subject: [mapserver-users] How TO: Flashing / Blinking Polygon? References: <200108211401.f7LE1F808994@antonia.nn.cl> Message-ID: <3B826E9A.76A188A0@dmsolutions.ca> "Vinko Vrsalovic B." wrote: > > Is there such thing as an animated PNG? > I don't think so (but I may be wrong). But anyway Whirlgif wouldn't support it so you would need to find another tool to generate the animation. > What can I do if my GD is not gif compliant? > You can try with the patched GD from http://www.rime.com.au/gd/ -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Aug 21 07:37:01 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 21 Aug 2001 10:37:01 -0400 Subject: [mapserver-users] Building Mapscript/Python Message-ID: <7CDD7B94357FD5119E800002A537C46E22FB98@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I'm trying to build a Mapscript module for Python 2.1 out of the CVS version, and am having some problems. I was wondering if anybody has succeeded? I've done: cd mapserver/mapscript/python ln -s ../mapscript.i mapscript.i swig -shadow -python mapscript.i gcc -c mapscript_wrap.c -I/usr/include/python2.1 -o mapscriptcmodule.o ld -shared mapscriptcmodule.o -o mapscriptcmodule.so This all works fine, this is the latest SWIG 1.3.6 ... BUT When I try to import the module: Python 2.1.1 (#1, Jul 26 2001, 04:57:14) [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-81)] on linux2 Type "copyright", "credits" or "license" for more information. >>> import mapscript Traceback (most recent call last): File "", line 1, in ? File "mapscript.py", line 2, in ? import mapscriptc ImportError: ./mapscriptcmodule.so: undefined symbol: ms_error >>> I checked the interface file, and it does look like the ms_error symbol isn't defined! (Used, but not defined): #ifdef SWIGPYTHON // For Python, errors reported via the ms_error structure are translated // into RuntimeError exceptions. (Chris Chamberlin ) %{ static void _raise_ms_exception(void) { char errbuf[256]; snprintf(errbuf, 255, "%s: %s %s\n", ms_error.routine, msGetErrorString(ms_error.code), ms_error.message); _SWIG_exception(SWIG_RuntimeError, errbuf); } #define raise_ms_exception() { _raise_ms_exception(); return NULL; } %} %except { $function if ( (ms_error.code != MS_NOERR) && (ms_error.code != -1) ) raise_ms_exception(); } #endif // SWIGPYTHON The above is the only section of the file that refers to ms_error ... which somehow seems wrong ... Anyone ? Thanks! Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From mapserver at cubok.com Tue Aug 21 07:45:53 2001 From: mapserver at cubok.com (Richard Ford) Date: Wed, 22 Aug 2001 00:45:53 +1000 Subject: [mapserver-users] All good!! - Types and multi layeredfiles References: Message-ID: <015201c12a4f$fb5fb120$01bca8c0@Peach> > 2) Multilayed shapefiles. I have some shapefiles that contain within the > one file - multiple layers. How do I get the multiple parts in the > shapefile to display? Currently I am only getting one - say a multi layer > shape file with a bit of land and rivers on it. I can only get the land to > appear and no rivers? That's what classes are for. Let's say you have a shapefile with land and water, with a item in the shapefile called 'TYPE' that allows you to differentiate between them. Then you'd define a class like this: CLASSITEM 'type' CLASS NAME 'Land' EXPRESSION 'land' COLOR 255 0 0 END The expression would show polygons where type=land and features not matching that expression would not be drawn. You can, of course, define multiple classes. G'Day Stephen, I'm sorry, could you explain that a bit more... Declare 'type' and then 'land' but they must be equal? In my shapefile there a lot of little area's made by some system - I am not sure. Some are clear, some are coloured. The colour depends on the "level" of acidity that is, I assume in the dbf file and linked to the shape file. They each have little tag names.... so would I need to make a class or classitem for each one? And how would I make them appear and their colour change given a value in the database file? Are there any urls to examples or reference materials that you could point me to? Cheers, Richard. From aalgera at ibama.gov.br Tue Aug 21 08:13:15 2001 From: aalgera at ibama.gov.br (Andries J. Algera) Date: Tue, 21 Aug 2001 12:13:15 -0300 (BRT) Subject: [mapserver-users] Problem compiling Mapserver w/ PHP Mapscript on Solaris 2.6 In-Reply-To: <3B826319.6C46BEDA@dmsolutions.ca> Message-ID: Worked fine, thanks for the help. Andries On Tue, 21 Aug 2001, Daniel Morissette wrote: > "Andries J. Algera" wrote: > > > > I sucessfully compiled mapserver 3.5 on linux (Redhat). Whenever I try to > > do the same steps on solaris 2.6 I get the following errors at link time > > of the PHP module. > > > > gcc -W -Wl -o php_mapscript.so php_mapscript_util.o php_mapscript.o > > mapscript_i > > .o -L/home/aalgera/mapserver -lmap -ltiff -lgd -lm > > > The part of the configure script that takes care of the PHP module needs > some rework... > > Look in mapscript/php3/Makefile for the line "LD= gcc -W -Wl" and try > replacing it with "LD= gcc -shared" ... hopefully that will do the > trick. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > -------------------------------------------------------------------- Andries Algera CSR - IBAMA SAIN L4, Lote 4, Ed. IBAMA Sede 70800.200 Brasilia / DF BRASIL ph: +5561 316-1326 316-1453 fax:+5561 223-7108 -------------------------------------------------------------------- From mapserver at cubok.com Tue Aug 21 08:49:01 2001 From: mapserver at cubok.com (Richard Ford) Date: Wed, 22 Aug 2001 01:49:01 +1000 Subject: [mapserver-users] Zoom/Web Page size Message-ID: <01ff01c12a58$cd830910$01bca8c0@Peach> G'Day All, If I have a map app and it is being displayed on the web page as 400 x 400 pixels. Is there a way to make the whole map window smaller - to fit on the page with other text, etc... I can make the map image smaller by zooming out. However I'd like to just "Shrink" the whole damm thing. Is this the "X x Y" size setting at the very beginning on a .map file? Cya, Richard Ford. richard at cubok.com www.cubok.com ____________________________________________________________________________ _________ This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may contain confidential and/or privileged material. Opinions, conclusions or other information contained in/with this message are not given or endorsed by Cubok Pty Ltd unless otherwise indicated by an authorised representative independent of this message. If you feel you have received this in error, please contact the sender and delete all related material from any computer From pkishor at GeoAnalytics.com Tue Aug 21 09:09:33 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 21 Aug 2001 11:09:33 -0500 Subject: [mapserver-users] Query Point In-Reply-To: Message-ID: <200108211610.LAA16171@lists.gis.umn.edu> Andrew (and others, to whom this may apply), On Tuesday, August 21, 2001, at 08:03 AM, ANDREW WOOLEY wrote: > Folks, > > I am really stumped here. I am trying to get my query to work > properly. I am using the nightly build of PHP/Mapscript that I grabbed > this morning (August 21, 2001). my first suggestion right off the bat would be to stop using the nightly builds for production purposes. Get a stable copy and stick to it until a new stable version is released. That way you are not dealing with any of the development level problems that may arise in an interim version. That said, here are some specifics to your problem -- > I am using a modified-for-my-application version of the gmap demo and > when I click on a feature on the map, I get the proper data results, > but am the shape is not highlighting and the map zooms to the initial > extent. If anyone has any clues as to why this might be happening and > would like to share them with me, I would really appreciate it. > First, you have to get the extent of the shape that you are trying to highlight. You do that by identifying the row id of the shape in the dbase file... remember, the shapes are indexed starting from 0 while the dbase file is indexed starting from 2... the first row is the header row. Then you use the ms_newShapefileObj to read the shape file, and use the getExtent method to get the rect of the shape. getExtent requires the shape index i (getExtent(int i)) which you get from the row id in the dbase file above. Once you know the mapextent, you can zoom to it. However, you still need to highlight your shape. The easiest way I know is to create highlight layer, set its status to off, make it the highlight color you want, and use an expression in the class item directive. Once you have chosen your shape above, set the status of this highlight layer to on and pass it the value to be evaluated in the expression. Your shape will light up. Hth, pk/ -- Puneet Kishor pkishor at eidesis.org From jbutcher at ci.collierville.tn.us Tue Aug 21 10:52:16 2001 From: jbutcher at ci.collierville.tn.us (Jim Butcher) Date: Tue, 21 Aug 2001 12:52:16 -0500 Subject: [mapserver-users] How TO: Flashing / Blinking Polygon? In-Reply-To: <200108211401.f7LE1F808994@antonia.nn.cl> References: <3B817B62.EBF4A2E1@dmsolutions.ca> Message-ID: <5.1.0.14.0.20010821123751.00a69258@mail.ci.collierville.tn.us> Information on PNG can be found at http://www.libpng.org/pub/png/. MNG is the animated version of PNG. Information on MNG can be found at http://www.libpng.org/pub/mng/. A C library for MNG (libmng) is available at http://www.libmng.com/. Currently Netscape 6 and Mozilla support both MNG and the jpeg version JNG. A plugin is available for Netscape Navigator/Communicator 4+, Opera 3.6+, and Internet Explorer 5+. James H. Butcher GIS/Plans Manager Town of Collierville phone: 901-853-3271 fax: 901-853-5858 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbutcher at ci.collierville.tn.us Tue Aug 21 10:54:05 2001 From: jbutcher at ci.collierville.tn.us (Jim Butcher) Date: Tue, 21 Aug 2001 12:54:05 -0500 Subject: [mapserver-users] How TO: Flashing / Blinking Polygon? Message-ID: <5.1.0.14.0.20010821125341.00a84d48@mail.ci.collierville.tn.us> Information on PNG can be found at http://www.libpng.org/pub/png/. MNG is the animated version of PNG. Information on MNG can be found at http://www.libpng.org/pub/mng/. A C library for MNG (libmng) is available at http://www.libmng.com/. Currently Netscape 6 and Mozilla support both MNG and the jpeg version JNG. A plugin is available for Netscape Navigator/Communicator 4+, Opera 3.6+, and Internet Explorer 5+. James H. Butcher GIS/Plans Manager Town of Collierville phone: 901-853-3271 fax: 901-853-5858 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhv at cape.com Tue Aug 21 11:14:47 2001 From: nhv at cape.com (Norman Vine) Date: Tue, 21 Aug 2001 14:14:47 -0400 Subject: [mapserver-users] Building Mapscript/Python In-Reply-To: <7CDD7B94357FD5119E800002A537C46E22FB98@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <009401c12a6d$2a2bcd00$a300a8c0@nhv> Doyon, Jean-Francois writes: > >Hello, > >I'm trying to build a Mapscript module for Python 2.1 out of the CVS >version, and am having some problems. I was wondering if anybody has >succeeded? > >I've done: > >cd mapserver/mapscript/python >ln -s ../mapscript.i mapscript.i >swig -shadow -python mapscript.i >gcc -c mapscript_wrap.c -I/usr/include/python2.1 -o mapscriptcmodule.o >ld -shared mapscriptcmodule.o -o mapscriptcmodule.so I really don't know much about making .so files but don't you have to link the shared library against libmap.a and the other libraries that it depends on ? FWIW I haven't tried building mapserver or mapsript for a while but find attached a python Setup file that I have used before to build python mapscript with Linux If you are familiar with building Python modules this should be self documenting IMHO Python mapscript really needs a Python DistUtils Setup file written. then in a cross platform way this would be as simple as % cd $MAP_SRC / mapscript / python % python setup.py --install Unfortunately this is currently a rather low-priority on my todo list. < but that could possibly be changed if someone had a real need > Cheers Norman VIne -------------- next part -------------- A non-text attachment was scrubbed... Name: setup.mapscript Type: application/octet-stream Size: 962 bytes Desc: not available URL: From kames at keyspanenergy.com Tue Aug 21 11:51:55 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Tue, 21 Aug 2001 14:51:55 -0400 Subject: [mapserver-users] Java Applet Development References: Message-ID: <3B82ADCB.37C6FE0B@keyspanenergy.com> Thanks to all for the input. However, I must have some kind of MENTAL BLOCK going on. I can't seem to visualize the link from a Perl generated MAP file to the ROSA applet. I usually create my shapefiles and mapfile on the fly based on user input and deliver the user to a page containing the mapimage applet... (my mapserver template file). I can't make the leap over to the Rosa applet. Would I merely build a page on-the-fly using Perl and point to the image I made with the Mapserver cgi? If so, how would I define PIXEL_SIZE? And what about zooming? The ec_species_e.phtml FORM action points to ec_species_e.phtml and this is a PHP interface. What would I point to to have Perl/Mapserver get involved to create a new image. Thanks so much in advance. Sorry if this is basic stuff, but like I said... I just haven't been able to make the connection between these two environments! Kieran Janet Ciavarelli wrote: > Is the Rosa applet only available in the PHP environment? > > >>> Daniel Morissette 08/13/01 07:29AM >>> > Kieran, > > The ROSA applet can do exactly that... see section "4 - distance > measurement tool" in the ROSA docs at > http://www2.dmsolutions.ca/webtools/rosa/rosa_params.html > > You can see an example of it in use in Environment Canada's species at > risk application at > http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml > > The measured distance is displayed in the status bar of the browser > window... no need to say that the distance is only approximative due to > the projection issues that you mentioned. > > Best Regards, > > Daniel > > "Kieran J. Ames" wrote: > > > > Are there any users/developers who have played with a Java interface to > > MapServer data, other than the wonderful mapimage applet? > > I'm thinking of a measuring tool that could be used to make a > > rudimentary ruler, where a user could click from > > point-to-point-to-point, drawing a line and getting an indication of the > > length of the line that was drawn. > > The maps I render are typically only in the "town/neighborhood" range, > > and I can't speak to great-circles, projections vs decimal degrees, etc. > > But I would think that a map that has a given extent would have some > > sort of distance per pixel value that could be calculated and applied to > > a line drawing tool. Specifically, I'd like to be able to offer the user > > the ability to get an Ad-Hoc distance estimate when viewing a > > neighborhood by "tracing" a line over the streets they're viewing and > > figure out how many linear feet (meters/yards) were traveled: as opposed > > to "as the crow flies" straight line distances. > > Any Java-wise users out there that have explored this kind of > > functionality? > > Thanks, > > Kieran -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Aug 21 12:20:27 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 21 Aug 2001 15:20:27 -0400 Subject: [mapserver-users] Building Mapscript/Python Message-ID: <7CDD7B94357FD5119E800002A537C46E22FB9C@s5-ccr-r1.ccrs.nrcan.gc.ca> Hmmmm, good point about the linking! Actually I know *nothing* of Python right now, just starting ... I was just following the instructions provided with swig, then again they probably didn't take it accound the dependency on other librairies indeed ... And I *really* don't feel like re-building Python, I just installed the RPM, and would ratehr stick with that. Turns out that thanks to your input, I modified my "ld" command to link against all the other librairies that Mapserver depends on: ld -shared mapscriptcmodule.o ../../libmap.a /usr/local/lib/libgd.a /usr/local/lib/libproj.so /usr/lib/libtiff.so /usr/lib/libpng.so /usr/lib/libfreetype.so -o mapscriptcmodule.so now the import works ok :) This is good: I'm trying to integrate MapServer into Zope (http://www.zope.org), which is a Python based Web Application Framework of sorts, or Content Management System, whatever you wanna call it :) Hopefully I'll be able to develop re-usable mapscript components, so that the system's users (The web designers) will be able to embed a mapping tool by using nothing more than a simple tag for instance ... Thanks! J.F. > ---------- > From: Norman Vine[SMTP:nhv at cape.com] > Reply To: nhv at cape.com > Sent: Tuesday, August 21, 2001 2:14 PM > To: 'Doyon, Jean-Francois' > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Building Mapscript/Python > > <> > Doyon, Jean-Francois writes: > > > >Hello, > > > >I'm trying to build a Mapscript module for Python 2.1 out of the CVS > >version, and am having some problems. I was wondering if anybody has > >succeeded? > > > >I've done: > > > >cd mapserver/mapscript/python > >ln -s ../mapscript.i mapscript.i > >swig -shadow -python mapscript.i > >gcc -c mapscript_wrap.c -I/usr/include/python2.1 -o mapscriptcmodule.o > >ld -shared mapscriptcmodule.o -o mapscriptcmodule.so > > I really don't know much about making .so files > but don't you have to link the shared library against libmap.a > and the other libraries that it depends on ? > > FWIW > I haven't tried building mapserver or mapsript for a while > but find attached a python Setup file that I have used before > to build python mapscript with Linux > If you are familiar with building Python modules this > should be self documenting > > IMHO > Python mapscript really needs a Python DistUtils Setup file written. > then in a cross platform way this would be as simple as > > % cd $MAP_SRC / mapscript / python > % python setup.py --install > > Unfortunately this is currently a rather low-priority on my todo list. > < but that could possibly be changed if someone had a real need > > > Cheers > > Norman VIne > From LBallard at YesVirginia.org Tue Aug 21 12:47:46 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Tue, 21 Aug 2001 15:47:46 -0400 Subject: [mapserver-users] Point Queries Hanging Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CF12@communications> MS 3.5 nightly from today RH 7.1 If you query an area where points are grouped tightly you get the correct behavior. Poly and line features seem to work ok. If you click on a point that is somewhat isolated...the server hangs. Nothing interesting in the apache logs. Saw some related post on the listserv archive but no resolution. http://gis.vedp.org/cgi-bin/mapserv35?mode=browse&layer=buildings&layer=coun ties&layer=spot2001&zoomdir=0&zoomsize=3&imgxy=299.5+250&imgext=174222.22222 1+171734.167340+184098.765431+179972.850473&map=%2Fusr%2Flocal%2Fapache%2Fht docs%2Fvedp_maps%2Fvedp.map&savequery=true&mapext=shapes&img.x=322&img.y=243 .map layer: LAYER NAME buildings TYPE POINT DATA bldg STATUS ON CLASSITEM "bldg_no" LABELITEM "bldg_no" MAXSCALE 100000 LABELMAXSCALE 25000 HEADER buildings_header.html TOLERANCE 10 CLASS NAME Buildings EXPRESSION /./ SYMBOL 'square' SIZE 5 COLOR 0 0 255 TEMPLATE buildings.html LABEL SIZE 8 MINSIZE 2 MAXSIZE 8 COLOR 0 0 0 OFFSET 3 0 BACKGROUNDCOLOR 245 240 219 BACKGROUNDSHADOWSIZE 4 4 BACKGROUNDSHADOWCOLOR 0 0 0 TYPE TRUETYPE POSITION lr FONT tahoma ANTIALIAS BUFFER 1 END END END Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From aalgera at ibama.gov.br Tue Aug 21 13:24:15 2001 From: aalgera at ibama.gov.br (Andries J. Algera) Date: Tue, 21 Aug 2001 17:24:15 -0300 (BRT) Subject: [mapserver-users] More php/mapscript problems under solaris 2.6 In-Reply-To: <3B826319.6C46BEDA@dmsolutions.ca> Message-ID: I have the following piece of code: // Open map object $map = ms_newMapObj("../webmap.map"); // Get the theme descriptions for ( $i=0 ; $i < $map->numlayers; $i++ ) { $l=$map->getLayer($i); $tema[$l->group] = $l->getMetadata("title"); } When the parser tries to run the line $l=$map->getLayer($i) with $ > 0, I get the following error: Fatal error: Object has an invalid _handle_ property in /home/httpd/webmap/html/webmap.php on line 60 This same piece of code works perfectly fine on my linux server, so I guess it has something to do with the Solaris version. If you need more information, please let me know. Andries Algera CSR - IBAMA SAIN L4, Lote 4, Ed. IBAMA Sede 70800.200 Brasilia / DF BRASIL ph: +5561 316-1326 316-1453 fax:+5561 223-7108 From cameron at socialchange.net.au Tue Aug 21 19:44:11 2001 From: cameron at socialchange.net.au (Cameron Shorter) Date: Wed, 22 Aug 2001 12:44:11 +1000 Subject: [mapserver-users] compile error in mapraster.c Message-ID: <3B831C7B.1EB3FF2F@socialchange.net.au> Note for the coder. We get the following compile error: gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -I/usr/include mapraster.c -o mapraster.o mapraster.c: In function `msDrawRasterLayer': mapraster.c:1698: parse error before `{' Was fixed by adding a ")". -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From praktikant2.arp at bd.so.ch Wed Aug 22 01:24:45 2001 From: praktikant2.arp at bd.so.ch (Praktikant/in2 ARP) Date: Wed, 22 Aug 2001 09:24:45 +0100 Subject: [mapserver-users] symbol rotation Message-ID: <5B025B1F39D6D4119F5700508BEEEC66214A95@srsofaioi4546.ktso.ch> Hello, I am not getting TrueType symbols to rotate. Is it actually possible to rotate symbols like one can do with labels using the LABELANGLEITEM command? If so, how can I do it and is there a way to set the rotation center to a different spot than the center of the symbol (e.g. I wonna rotate a triangle around its buttom left corner). regards, Doreen Wenzel From info at geo-it.com Wed Aug 22 00:29:09 2001 From: info at geo-it.com (Geo-IT-GmbH) Date: Wed, 22 Aug 2001 09:29:09 +0200 Subject: [mapserver-users] Java class library for mapscript Message-ID: <9138808AB827D311B56800E018900A610A5606@gdppdc.gdp.com> Hi Graham, We also try to access the mapserv-functions from java. Referring to Your article "Using mapserv as a dynamic link library from a servlet", I downloaded the dll and java classes from Your website. You said, that the source for the java classes are included in the jar, but I only found binary code. Can You distribute also the source code, so that we can try to complete them? Thanks, Daniel *************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com *************************************************** From jef.mony at free.fr Wed Aug 22 01:41:36 2001 From: jef.mony at free.fr (=?ISO-8859-1?Q?Jean-Fran=E7ois_MONY?=) Date: Wed, 22 Aug 2001 10:41:36 +0200 (MEST) Subject: [mapserver-users] segmentation fault / Failed to open map file Message-ID: <998469696.3b837040eecde@imp.free.fr> Hi everybody, I'm under Linux Mandrake 8.0. I tried t use the last nightly build with php-4.0.6, but i have a problem of segmentation fault (apache error log). The problem appear when I use the ms_newMapObj function. I have downgrade to the php-4.0.5 and it's disappear, but another problem comes. After some time of use I have the message : Warning: MapServer Error in msLoadMap(): ():(0) in /mnt/40go/syrin/files/globalmap.php on line 28 Fatal error: Failed to open map file /mnt/40go/syrin/map/communs/global.map in /mnt/40go/syrin/files/globalmap.php on line 28 with lsof -c httpd | wc, I get "921 8213 74264". I don't know if it's good or not then if somebody can say me. If somebody have idea on one other both problem, let me know. Thanks, Jef Jean-Fran?ois MONY - jef.mony at free.fr Parc naturel r?gional de Lorraine Responsable informatique/SIG tel : 03-83-84-06-37 fax : 03-81-33-60 D?tach? aupr?s du laboratoire de phyto?cologie de l'universit? de Metz tel : 03-87-37-84-05 fax : From ed at topozone.com Wed Aug 22 07:21:52 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 22 Aug 2001 10:21:52 -0400 Subject: [mapserver-users] Querying a polygon layer with TILEINDEX? Message-ID: <13858AA1A74F30419F319ACB66A9D122019174@mercator.topozone.com> I've created a number of point, line, and polygon layers (in 3.5) by tiling a set of shapefiles together (using tile4ms) and using a TILEINDEX - i.e. LAYER NAME Lakes TYPE Polygon STATUS On TILEINDEX LAKESIDX CLASS COLOR 144 219 255 OUTLINECOLOR 0 0 0 TEMPLATE "Lakes_template.html" END HEADER "Lakes_header.html" FOOTER "Lakes_footer.html" END I now find that I can't query this layer, as I could when I just had a single shapefile defined with a DATA statement. Is this by design? If I should be querying a TILEINDEX layer some other way, let me know. I'm running on a two-week-old build of 3.5, so let me know if I need an update. Thanks! - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 From DebasishS at riskinc.com Wed Aug 22 06:52:14 2001 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Wed, 22 Aug 2001 19:22:14 +0530 Subject: [mapserver-users] Itemquery example in latest Mapserver 3.5 Message-ID: hi , Can anybody provide me an example as to how itemquery and itemnquery needs to be performed. it seen whole lot of stuff has changed with MapServer 3.5 cheer debasish. Debasish Sahu. Senior Software Engineer RMS India. A-7,Sector-16 Noida-201301. Uttar Pradesh.India. Phone : +91-118-4511102 Fax : +91-118-4511109 Website : http://www.rmsinet.com From teb at mallit.fr.umn.edu Wed Aug 22 08:33:00 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 22 Aug 2001 10:33:00 -0500 (CDT) Subject: [mapserver-users] php mapscript (fwd) Message-ID: <200108221533.KAA02763@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Aaron Hunt" To: Subject: php mapscript Date: Tue, 21 Aug 2001 16:28:05 -0400 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 I am trying to create a php/mapscript program. I first create a polygon shape file. Then I apply the shape file to a map object and display it. When I do this The new shape file does not display. If I re-run the program with out rewriting the shape file and using the old on, it works. How can I get this to work? Thank you for any help Aaron Ps. Here is the code I am using $dbname = "/tmp/shape"; $shpFname = "/tmp/shape"; $shpFile = ms_newShapeFileObj( $shpFname, MS_SHP_POLYGON); $dbfFile = dbase_create( $dbname.".dbf", array( array("File", "C", 50) )); $lat = array(); $lon = array(); $oShp = ms_newShapeObj(MS_SHAPE_POLYGON); $oLine = ms_newLineObj(); //Used to parse data from xml and run the data ($lat:$lon) $fp = popen ("perl t.pl /home/httpd/db/76.xml boundary_20010820", "r"); while(!feof ($fp)) { $buffer = fgets($fp , 4096); chop($buffer); list ($lat1, $lon1) = split (':', $buffer); if ($lat1 != "") { $oLine->addXY($lon1, $lat1); } array_push ($lat, $lat1); array_push ($lon, $lon1); } $oShp->add( $oLine ); $shpFile->addShape($oShp); dbase_add_record($dbfFile, array("76")); pclose; $shpFile->free(); dbase_close($dbfFile); sort($lat); sort($lon); $maxx = $lon[1]; $miny = $lat[1]; $minx = $lon[count($lon) -1]; $maxy = $lat[count($lat) -1]; $map = ms_newMapObj("php.map"); $map->setExtent($minx, $miny, $maxx, $maxy); $layer = $map->getlayerbyname(field); $layer->set("data","/tmp/shape"); $img = $map->draw(); $url = $img->saveWebImage(1, 0, 0, 65); printf("\n", $url, $map->width, $map->height); ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Wed Aug 22 08:35:35 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 22 Aug 2001 10:35:35 -0500 (CDT) Subject: [mapserver-users] Simple QUERY problem (fwd) Message-ID: <200108221535.KAA02800@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Originating-IP: [213.122.147.43] From: "robert brown" To: mapserver-info at lists.gis.umn.edu Subject: Simple QUERY problem Date: Tue, 21 Aug 2001 14:13:23 +0000 Mime-Version: 1.0 X-OriginalArrivalTime: 21 Aug 2001 14:13:24.0038 (UTC) FILETIME=[706FE660:01C12A4B] ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Wed Aug 22 08:36:09 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 22 Aug 2001 10:36:09 -0500 (CDT) Subject: [mapserver-users] Querying a feature and displaying the results (dbf) in a browser window (fwd) Message-ID: <200108221536.KAA02811@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Originating-IP: [213.122.21.13] From: "robert brown" To: mapserver-info at lists.gis.umn.edu Subject: Querying a feature and displaying the results (dbf) in a browser window Date: Tue, 21 Aug 2001 16:50:09 +0000 Mime-Version: 1.0 X-OriginalArrivalTime: 21 Aug 2001 16:50:09.0879 (UTC) FILETIME=[56C15670:01C12A61] ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From barberc at msu.edu Wed Aug 22 08:48:06 2001 From: barberc at msu.edu (Chris Barber) Date: Wed, 22 Aug 2001 11:48:06 -0400 Subject: [mapserver-users] Annotating inline features (PHP) Message-ID: <3B83D436.742D9EA0@msu.edu> Howdy all, I thought this was brought up recently but I can't find it in the list archives, so... Using PHP/Mapscript, I'm creating shape objects from query result data and adding them to the map as inline features. And that works great. Now I'm trying to annotate each feature with a unique text string generated from the same query. It seemed as tho $ShapeObj->draw() would be able to do this, but it won't seem to work. I'm guessing that there's something I need in my map file to let this happen. Can anybody point me in the right direction here please?? Mapfile excerpt: LAYER NAME ETM TYPE POLYGON STATUS ON FEATURE END CLASS NAME "ETM+" OUTLINECOLOR 255 0 0 LABEL SIZE 6 FORCE TRUE COLOR 0 0 0 TYPE TRUETYPE FONT verdana-bold ANTIALIAS PARTIALS FALSE END END END PHP-ish excerpt: for each result record $ShapeObj = ms_newShapeObj(MS_SHAPE_POLYGON); $LineObj = ms_newLineObj(); $LineObj->addXY($point1[1],$point1[0]); ... and so on for all points, ending w/ point1 to close ... $ShapeObj->add($LineObj); $ShapeObj->draw($mapObj,$layerObj,$imgObj,0,$featurename); I get the features no problem, just no text. MapServer/3.5, PHP/4.0.6 Thanks much, Chris -- __________________________________________________ Christopher P. Barber Basic Science & Remote Sensing Initiative Dept. of Geography, Michigan State Univ. http://bsrsi.msu.edu Rm. 210 Manly Miles Bldg. 1405 S. Harrison Road East Lansing, MI 48823-5243 517.432.1883 Phone 517.353.2932 FAX barberc at msu.edu From teb at mallit.fr.umn.edu Wed Aug 22 09:02:21 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 22 Aug 2001 11:02:21 -0500 (CDT) Subject: [mapserver-users] itemquery (fwd) Message-ID: <200108221602.LAA02888@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Blaine Hackett" To: Subject: itemquery Date: Mon, 20 Aug 2001 20:43:09 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Hi I am trying to use itemquery to query a parcel database by address. I can make a dropdown box of exact addresses (ex. 8490 University Ave ne) and it queries fine. However, I want to be able to input an address number in a text box and pick the street name. I can't figure out how to concatenate these and have it work by just using hidden vars. Is it possible this way or do I have to do some scripting? Thanks Blaine ------------- End Forwarded Message ------------- From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Aug 22 09:04:33 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 22 Aug 2001 12:04:33 -0400 Subject: [mapserver-users] 3.5 Symbology Message-ID: <7CDD7B94357FD5119E800002A537C46E22FB9F@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, How do I defined parallel lines symbology with the latest mapserver? If I want to do things like "rail road tracks" for instance ? The example symbols in CVS are still from the old version! Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From teb at mallit.fr.umn.edu Wed Aug 22 09:05:03 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 22 Aug 2001 11:05:03 -0500 (CDT) Subject: [mapserver-users] Featurequery maps (fwd) Message-ID: <200108221605.LAA02894@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: Stuart.Row at brs.gov.au To: mapserver-info at lists.gis.umn.edu Subject: Featurequery maps Date: Mon, 20 Aug 2001 12:07:10 +1000 MIME-Version: 1.0 Does anybody have a working example of a FEATURENQUERY query (using slayer & qlayer) that produces an output map with the selected polygons highlighted? I can display the selected records in textual form, but am having no luck displaying a map showing the results of the query. The application appears to create a gif file of -1 bytes. Any ideas would be appreciated. Stuart Row Bureau of Rural Sciences Tel: +61 2 6272 4640 Email: stuart.row at brs.gov.au Fax: +61 2 6272 4687 Web: http://www.affa.gov.au ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Wed Aug 22 09:07:17 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 22 Aug 2001 11:07:17 -0500 (CDT) Subject: [mapserver-users] Annotation (fwd) Message-ID: <200108221607.LAA02912@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Emiliano Visentin" To: Subject: Annotation Date: Fri, 17 Aug 2001 18:44:31 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 I'm using MapServer 3.3 and I have a problem with annotation. I can not rotate them! I specify the tags 'LABELITEM' and 'LABELANGLEITEM' but the annotation are always depict horizontally. I attach piece of my map file: LAYER #Definizione Tema NAME Tema0 TYPE route STATUS on DATA vie2 LABELITEM VIA LABELANGLEITEM ANGOLO CLASS Name route COLOR 0 0 0 OUTLINECOLOR 0 0 0 END # CLASS END #Fine Definizione Tema Thanks! ------------- End Forwarded Message ------------- From steve.lime at dnr.state.mn.us Wed Aug 22 10:54:51 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 22 Aug 2001 12:54:51 -0500 Subject: [mapserver-users] symbol rotation Message-ID: It can't be done (at the moment). TrueType symbols are new and while they work they are not as full-featured as I'd like. The only option is use labels to do this type of annotation which is fine unless you actually need text in addition to the symbol. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Praktikant/in2 ARP 08/22/01 03:24AM >>> Hello, I am not getting TrueType symbols to rotate. Is it actually possible to rotate symbols like one can do with labels using the LABELANGLEITEM command? If so, how can I do it and is there a way to set the rotation center to a different spot than the center of the symbol (e.g. I wonna rotate a triangle around its buttom left corner). regards, Doreen Wenzel From jimburnett at ntelos.net Wed Aug 22 12:43:41 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 22 Aug 2001 15:43:41 -0400 Subject: [mapserver-users] Feature_ID References: Message-ID: <00b501c12b42$bf2d56a0$2f01a8c0@morpheus> OK I think I get it. So I should add an "ID" field to the shape file. It makes sense, because I am not querying anything on this shape file ( river and contouer lines), so thats why there isnt any fields. Also, I can get a refresnce map to show up in JPG and PNG, but it looks like it is always in full extent. Once in a while it will move, but not much at all. Here is my code: ****start require 'config.php'; $dfMinX = $CUREXTENT[minx]; $dfMinY = $CUREXTENT[miny]; $dfMaxX = $CUREXTENT[maxx]; $dfMaxY = $CUREXTENT[maxy]; $mapObj = ms_newMapObj("$dataPath/" . $map . ".map"); $mapObj->setExtent($CUREXTENT[minx],$CUREXTENT[miny],$CUREXTENT[maxx],$CUREXTENT[maxy]); $nClickGeoX = GMapPix2Geo(intval($map_x), 0, $width, $dfMinX, $dfMaxX, 0); $nClickGeoY = GMapPix2Geo(intval($map_y), 0, $height, $dfMinY, $dfMaxY, 1); $ptClicked = ms_newPointObj(); $ptClicked->setXY($nClickGeoX, $nClickGeoY); # $queryObj = $mapObj->queryByPoint( $ptClicked,MS_SINGLE,0 ); # $gbShowQueryResults = TRUE; #print" $map $map_x $map_y $dataPath \n"; $img = $mapObj->drawReferenceMap(); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("content-type: image/png"); $img->saveImage("",MS_PNG,0,0, 100); ********end thanks -jim ----- Original Message ----- From: "Stephen Lime" To: Sent: Tuesday, August 21, 2001 1:55 PM Subject: Re: [mapserver-users] Feature_ID No, there is a single classitem for a given layer. That is, you can pick a single item to compare expressions against. That works for straight string comparisons and regular expressions. You can also use logical expressions that operate on many items although there is a performance hit for doing so. Feature_id may be a virtual ID, one maintained by the application rather than something actually in the shapefile. By their very nature each shape in a shapefile has an sequential index number (shape 0, shape 1 and so on) so that may be whay you're refering to. At the moment MapServer doesn't allow you to use that value in an expression. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jim Burnett" 08/20/01 01:24PM >>> so there are diferent types of "class items" ? I was just looking for an item to use, based on ArcExplorers output. feature_id seems to be in all the shape files I have been working with, but wont work, I have had to use other id's such as "road_id" for my roads shape file and "building_id" for my building ID. But this doesnt have a "river_id", or a custom ID besides the feature_id and some other id fields... I am still new to GIS, been doing it for about 3 months now. -jim ----- Original Message ----- From: "Stephen Lime" To: ; Sent: Monday, August 20, 2001 12:12 PM Subject: Re: [mapserver-users] Feature_ID > What version, datatype etc? Assuming there is an item called feature_id there's no reason it > shouldn't work. That said being able to use a psuedo id in classes is not a bad idea. That id > is already a part of the internal shape structures but it's not trivial to add that to the expression > handler. Would you add this as a feature request to Bugzilla? > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Jim Burnett" 08/17/01 12:55PM >>> > Why can't I use Feature_ID as a CLASSITEM? > I have a line layer, which has other attribute data, but no matter which of the fields I use, none work. Why cant I just use the standard FeatureID. its just for display only. > > > -jim > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Wed Aug 22 13:07:22 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 22 Aug 2001 15:07:22 -0500 Subject: [mapserver-users] Itemquery example in latest Mapserver 3.5 Message-ID: I popped the 3.5 version of the test suite at: http://maps.dnr.state.mn.us/mapserver_demos/tests3.5 Two of the 3 itemquery examples work fine. The second one is busted although it worked fine under Linux it's not under Solaris. I hope this is a clue to a nasty bug I've been tracking but I haven't had time to sit down with it. Anyway, you can look at example one to get a feel for how this works. Basically you set the new layer parameter called FILTER to execute an itemquery and that filter is used to generate a query result set. This is *much* more powerfull than the old method. The FILTER is either built using the new %name% substitution in map files (this allows you to substitute form vars directly into mapfile layer filter and class expressions) or by building the expression using javascript and submitting it via the map_layername_filter CGI variable. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 08/22/01 08:52AM >>> hi , Can anybody provide me an example as to how itemquery and itemnquery needs to be performed. it seen whole lot of stuff has changed with MapServer 3.5 cheer debasish. Debasish Sahu. Senior Software Engineer RMS India. A-7,Sector-16 Noida-201301. Uttar Pradesh.India. Phone : +91-118-4511102 Fax : +91-118-4511109 Website : http://www.rmsinet.com From jimburnett at ntelos.net Wed Aug 22 13:26:43 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 22 Aug 2001 16:26:43 -0400 Subject: [mapserver-users] refrence map JPEG/PNG Message-ID: <00e101c12b48$c1df4880$2f01a8c0@morpheus> I noticed that refrence map doesnt work, even withg gmap. Am I wrong? My code does the same thing as gmap;s code. It just draws the full extent...for ref map. -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Wed Aug 22 13:55:32 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 22 Aug 2001 16:55:32 -0400 Subject: [mapserver-users] Annotating inline features (PHP) References: <3B83D436.742D9EA0@msu.edu> Message-ID: <3B841C44.EC3C6E26@dmsolutions.ca> Chris Barber wrote: > > Howdy all, > > I thought this was brought up recently but I can't find it in the list > archives, so... > > Using PHP/Mapscript, I'm creating shape objects from query result data > and adding them to the map as inline features. And that works great. Now > I'm trying to annotate each feature with a unique text string generated > from the same query. It seemed as tho $ShapeObj->draw() would be able to > do this, but it won't seem to work. I'm guessing that there's something > I need in my map file to let this happen. Can anybody point me in the > right direction here please?? > You were right, a similar issue came up yesterday :) ... and you'll have to wait for the same fixes before you can get any further. Hopefully I get to that soon. See: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0108/msg00271.html -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jsmedsmo at gis.umn.edu Wed Aug 22 16:07:20 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Wed, 22 Aug 2001 18:07:20 -0500 Subject: [mapserver-users] [Fwd: Help connect data base for MySql and PHP/MapScript] Message-ID: <3B843B28.F69AC434@gis.umn.edu> Diego Jos? Padr?n wrote: > > Hello. > > If it is not a lot to bother, you have some algorithm or example code of as > connectar php/mapscript to MySql using information in.shp > > Thank you for your help really that it is necessary me a lot of. > > Diego J. Padr?n > Universidad de Los Andes > Escuela de Geograf?a > M?rida - Venezuela > > _________________________________________________________________ > Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From steve.lime at dnr.state.mn.us Wed Aug 22 18:49:11 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 22 Aug 2001 20:49:11 -0500 Subject: [mapserver-users] 3.5 Symbology Message-ID: Use overlayed symbols. I posted symbol and layer definitions for these in another thread a month or two ago. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 08/22/01 11:08 AM >>> Hello, How do I defined parallel lines symbology with the latest mapserver? If I want to do things like "rail road tracks" for instance ? The example symbols in CVS are still from the old version! Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From md at socialchange.net Wed Aug 22 19:32:26 2001 From: md at socialchange.net (Marcus Dillury) Date: Thu, 23 Aug 2001 12:32:26 +1000 (EST) Subject: [mapserver-users] 3.5 compilation problems. Message-ID: I am trying to compile a 3.5 build of mapserver on a Redhat 7 Linux box. I am using the following options with the configuration script. ./configure --with-proj=/usr/local --with-gdal --with-gd=/usr/local/lib/gd-1.2 --with-freetype=/usr/lib proj-4.4.3 gdal-1.1.5 gd-1.2 freetype-1.3.1-7 The Makefile builds without complaint. When I run 'make' I get the following problem gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_SWAP_XY -DUSE_GDAL -I/usr/local/lib/gd-1.2 -I/usr/local/include -I/usr/local/include shp2img.o -L. -lmap -L/usr/local/lib/gd-1.2 -lgd -ljpeg -L/usr/lib -lttf -lpng -lz -ltiff -ljpeg -L/usr/lib -lttf -lpng -lz -L/usr/local/lib -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 -lm -o shp2img ./libmap.a(mapresample.o): In function `msResampleGDALToMap': mapresample.o(.text+0xe8e): undefined reference to `gdImagePaletteCopy' mapresample.o(.text+0xec4): undefined reference to `gdImagePaletteCopy' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Does anyone seen this error before? Could I please get some pointers or advice? Thanks in advance, --Marcus From gilles.cherix at freesurf.ch Thu Aug 23 00:42:51 2001 From: gilles.cherix at freesurf.ch (gilles.cherix at freesurf.ch) Date: Thu, 23 Aug 2001 08:42:51 +0100 Subject: [mapserver-users] mapfile tweaking and about WMS Message-ID: <998548971.webexpressdV3.1.f@smtp.freesurf.ch> Hi all, We're working on a project using ms3.5 and we have to choose wether we should use WMS queries or PHP/mapscript ... Essentially, we need to tweak our layer's font and color on-the-fly. Does mapserver support that kind of features inside WMS queries or should we use the PHP module ? Thanks in advance Gilles Cherix -- Neu: sunrise hat jetzt noch g?nstigere Surfpreise! Sofort profitieren! http://go.sunrise.ch/de/promo1 From armin.burger at territoriumonline.com Thu Aug 23 01:36:21 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Thu, 23 Aug 2001 10:36:21 +0200 Subject: [mapserver-users] Templates and javascript Message-ID: <200108230836.KAA17762@efferd.nettz.com> I got problems when trying to change query template contents using javascript. In the header template I created an array with the dBase field names. .... gFldString = new Array(); ... gFldString[4] = ['[GEMD]', '[GEMI]', '[GEME]']; .... Then in the query template I wanted to change the field based on another variable (here the language for a multilingual application). I put in the template ... [AREA] the field values are written correctly. I havent an idea why the string '[GEMD]' is treated different when inserted directly and when taken from an array. Any help appreciated. Armin -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia _ From eduardo at metodoinv.com.br Thu Aug 23 02:55:58 2001 From: eduardo at metodoinv.com.br (Eduardo Patto Kanegae) Date: Thu, 23 Aug 2001 06:55:58 -0300 Subject: [mapserver-users] template as PHP file Message-ID: <000c01c12bb9$d0866fa0$2803030a@intranet> is there any way of using a PHP file (or perl one) as the TEMPLATE property? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimburnett at ntelos.net Thu Aug 23 05:44:19 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Thu, 23 Aug 2001 08:44:19 -0400 Subject: [mapserver-users] basic search question Message-ID: <003601c12bd1$53d7dee0$2f01a8c0@morpheus> Can I do a seach on my standard database(mysql) for an address, and then pop up the parcel(map) based on my search? So, can I create a map, based on search results? I know I can click in the map, and query were I am clicking, but I want to do the opposite, and do a search, then display the map.... -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenboss at dilbert.dnr.state.mn.us Thu Aug 23 07:56:57 2001 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Thu, 23 Aug 2001 09:56:57 -0500 (CDT) Subject: [mapserver-users] basic search question Message-ID: <200108231456.f7NEuv511193@philbert.dnr.state.mn.us> It's been a while, but I'll take a shot. I can think of a couple of ways to get there. If you have x,y coordinates for the centers of your parcels in your mysql database, you can just run your search, grab the results, and redirect to a url like: http://myserver.com/cgi-bin/mapserver?map=parcel.map&mapxy=x_from_mysql+y_from_mysql&scale=150000 If you have a common unique parcel ID in both the mysql database and the parcels shapefile, you can grab that ID from your search and then redirect to something like: http://myserver.com/cgi-bin/mapserver?map=parcel.map&qlayer=parcels&mode=itemquery&item=parcelID&value =unique_ID_from_mysql In turn, in your mapfile your parcels layer would have a query template like: http://myserver.com/cgi-bin/mapserver?map=parcel.map&mapext=[shpext] to display the map. At least, that's how I'd approach it from ms_3.3. I understand itemquery has changed in 3.5, and there may be better ways to get there. Hope this helps, --Ken Boss MN DNR Forestry Resource Assessment > From: "Jim Burnett" > To: > Subject: [mapserver-users] basic search question > Date: Thu, 23 Aug 2001 08:44:19 -0400 > MIME-Version: 1.0 > X-Priority: 3 > X-MSMail-Priority: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > > Can I do a seach on my standard database(mysql) for an address, and then pop up the parcel(map) based on my search? > > So, can I create a map, based on search results? > I know I can click in the map, and query were I am clicking, but I want to do the opposite, and do a search, then display the map.... > > > > > -jim > From SDunning at nephrology.org Thu Aug 23 08:07:21 2001 From: SDunning at nephrology.org (Stephan Dunning) Date: Thu, 23 Aug 2001 10:07:21 -0500 Subject: [mapserver-users] Queryitem Message-ID: I'm trying to create some dynamic maps that I can query for information. I noticed that queryitem is a read-only value. Is there any way around this, so I can set the value for a layer's queryitem based on the data fields in the dBase file, which is also created dynamically based on the user's original SQL database query. Thanks for any input, Stephan From jimburnett at ntelos.net Thu Aug 23 08:15:20 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Thu, 23 Aug 2001 11:15:20 -0400 Subject: [mapserver-users] basic search question References: <200108231456.f7NEuv511193@philbert.dnr.state.mn.us> Message-ID: <005a01c12be6$6c6f4af0$2f01a8c0@morpheus> OK great, at least I know it can be done!!! thanks!! ----- Original Message ----- From: "kenboss" To: ; Sent: Thursday, August 23, 2001 10:56 AM Subject: Re: [mapserver-users] basic search question > It's been a while, but I'll take a shot. I can think of a couple of ways to get there. > > If you have x,y coordinates for the centers of your parcels in your mysql database, you can just run > your search, grab the results, and redirect to a url like: > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&mapxy=x_from_mysql+y_fr om_mysql&scale=150000 > > > If you have a common unique parcel ID in both the mysql database and the parcels shapefile, you can > grab that ID from your search and then redirect to something like: > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&qlayer=parcels&mode=ite mquery&item=parcelID&value > =unique_ID_from_mysql > > In turn, in your mapfile your parcels layer would have a query template like: > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&mapext=[shpext] > > to display the map. > > At least, that's how I'd approach it from ms_3.3. I understand itemquery has changed in 3.5, and > there may be better ways to get there. > > > > Hope this helps, > > --Ken Boss > MN DNR Forestry Resource Assessment > > > > From: "Jim Burnett" > > To: > > Subject: [mapserver-users] basic search question > > Date: Thu, 23 Aug 2001 08:44:19 -0400 > > MIME-Version: 1.0 > > X-Priority: 3 > > X-MSMail-Priority: Normal > > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > > > > Can I do a seach on my standard database(mysql) for an address, and then pop up the parcel(map) > based on my search? > > > > So, can I create a map, based on search results? > > I know I can click in the map, and query were I am clicking, but I want to do the opposite, and do a > search, then display the map.... > > > > > > > > > > -jim > > > > From steve.lime at dnr.state.mn.us Thu Aug 23 08:24:57 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 23 Aug 2001 10:24:57 -0500 Subject: [mapserver-users] mapfile tweaking and about WMS Message-ID: The WMS implementation does not support changing layer properties. You can do that with the straight CGI implementation and of course via any of the scripting interfaces. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 08/23/01 02:42AM >>> Hi all, We're working on a project using ms3.5 and we have to choose wether we should use WMS queries or PHP/mapscript ... Essentially, we need to tweak our layer's font and color on-the-fly. Does mapserver support that kind of features inside WMS queries or should we use the PHP module ? Thanks in advance Gilles Cherix -- Neu: sunrise hat jetzt noch g?nstigere Surfpreise! Sofort profitieren! http://go.sunrise.ch/de/promo1 From steve.lime at dnr.state.mn.us Thu Aug 23 08:26:16 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 23 Aug 2001 10:26:16 -0500 Subject: [mapserver-users] 3.5 compilation problems. Message-ID: GD 1.2 is not supported any more. I suspect it doesn't contain the missing function noted below and hence the error. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Marcus Dillury 08/22/01 09:32PM >>> I am trying to compile a 3.5 build of mapserver on a Redhat 7 Linux box. I am using the following options with the configuration script. ./configure --with-proj=/usr/local --with-gdal --with-gd=/usr/local/lib/gd-1.2 --with-freetype=/usr/lib proj-4.4.3 gdal-1.1.5 gd-1.2 freetype-1.3.1-7 The Makefile builds without complaint. When I run 'make' I get the following problem gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_SWAP_XY -DUSE_GDAL -I/usr/local/lib/gd-1.2 -I/usr/local/include -I/usr/local/include shp2img.o -L. -lmap -L/usr/local/lib/gd-1.2 -lgd -ljpeg -L/usr/lib -lttf -lpng -lz -ltiff -ljpeg -L/usr/lib -lttf -lpng -lz -L/usr/local/lib -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 -lm -o shp2img ./libmap.a(mapresample.o): In function `msResampleGDALToMap': mapresample.o(.text+0xe8e): undefined reference to `gdImagePaletteCopy' mapresample.o(.text+0xec4): undefined reference to `gdImagePaletteCopy' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Does anyone seen this error before? Could I please get some pointers or advice? Thanks in advance, --Marcus From bfischer at mpls.houstoneng.com Thu Aug 23 08:34:33 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Thu, 23 Aug 2001 10:34:33 -0500 Subject: [mapserver-users] basic search question Message-ID: <8879CCE0F0187742B7302A93A8B87B090297EC@mpls.houstoneng.com> Jim, This could be implemented fairly easy by using the item/value queries. For the record returned by the MySQL search, get the unique field's value and insert it into an item/value query to draw your map. You can put this query directly into an image tag. Ex.) Also take a look at the MapServer Test Suite for more examples of item/value queries. http://maps.dnr.state.mn.us/mapserver_demos/tests3.5 Hope this does the trick, Brian -----Original Message----- From: Jim Burnett [mailto:jimburnett at ntelos.net] Sent: Thursday, August 23, 2001 7:44 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] basic search question Can I do a seach on my standard database(mysql) for an address, and then pop up the parcel(map) based on my search? So, can I create a map, based on search results? I know I can click in the map, and query were I am clicking, but I want to do the opposite, and do a search, then display the map.... -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimburnett at ntelos.net Thu Aug 23 08:48:53 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Thu, 23 Aug 2001 11:48:53 -0400 Subject: [mapserver-users] basic search question References: <8879CCE0F0187742B7302A93A8B87B090297EC@mpls.houstoneng.com> Message-ID: <007301c12beb$1c784ec0$2f01a8c0@morpheus> Does the same apply with MapScript? -jim ----- Original Message ----- From: Brian Fischer To: Jim Burnett Cc: mapserver-users at lists.gis.umn.edu Sent: Thursday, August 23, 2001 11:34 AM Subject: RE: [mapserver-users] basic search question Jim, This could be implemented fairly easy by using the item/value queries. For the record returned by the MySQL search, get the unique field's value and insert it into an item/value query to draw your map. You can put this query directly into an image tag. Ex.) Also take a look at the MapServer Test Suite for more examples of item/value queries. http://maps.dnr.state.mn.us/mapserver_demos/tests3.5 Hope this does the trick, Brian -----Original Message----- From: Jim Burnett [mailto:jimburnett at ntelos.net] Sent: Thursday, August 23, 2001 7:44 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] basic search question Can I do a seach on my standard database(mysql) for an address, and then pop up the parcel(map) based on my search? So, can I create a map, based on search results? I know I can click in the map, and query were I am clicking, but I want to do the opposite, and do a search, then display the map.... -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From kames at keyspanenergy.com Thu Aug 23 08:43:59 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Thu, 23 Aug 2001 11:43:59 -0400 Subject: [mapserver-users] Java Applet Development References: Message-ID: <3B8524BF.7B1991AB@keyspanenergy.com> Thanks to all for the input. However, I must have some kind of MENTAL BLOCK going on. I can't seem to visualize the link from a Perl generated MAP file to the ROSA applet. I usually create my shapefiles and mapfile on the fly based on user input and deliver the user to a page containing the mapimage applet... (my mapserver template file). I can't make the leap over to the Rosa applet. Would I merely build a page on-the-fly using Perl and point to the image I made with the Mapserver cgi? If so, how would I define PIXEL_SIZE? And what about zooming? The ec_species_e.phtml FORM action points to ec_species_e.phtml and this is a PHP interface. What would I point to to have Perl/Mapserver get involved to create a new image. Thanks so much in advance. Sorry if this is basic stuff, but like I said... I just haven't been able to make the connection between these two environments! Kieran Janet Ciavarelli wrote: > Is the Rosa applet only available in the PHP environment? > > >>> Daniel Morissette 08/13/01 07:29AM >>> > > Kieran, > > The ROSA applet can do exactly that... see section "4 - distance > measurement tool" in the ROSA docs at > http://www2.dmsolutions.ca/webtools/rosa/rosa_params.html > > You can see an example of it in use in Environment Canada's species at > > risk application at > http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml > > The measured distance is displayed in the status bar of the browser > window... no need to say that the distance is only approximative due > to > the projection issues that you mentioned. > > Best Regards, > > Daniel > > "Kieran J. Ames" wrote: > > > > Are there any users/developers who have played with a Java interface > to > > MapServer data, other than the wonderful mapimage applet? > > I'm thinking of a measuring tool that could be used to make a > > rudimentary ruler, where a user could click from > > point-to-point-to-point, drawing a line and getting an indication of > the > > length of the line that was drawn. > > The maps I render are typically only in the "town/neighborhood" > range, > > and I can't speak to great-circles, projections vs decimal degrees, > etc. > > But I would think that a map that has a given extent would have some > > > sort of distance per pixel value that could be calculated and > applied to > > a line drawing tool. Specifically, I'd like to be able to offer the > user > > the ability to get an Ad-Hoc distance estimate when viewing a > > neighborhood by "tracing" a line over the streets they're viewing > and > > figure out how many linear feet (meters/yards) were traveled: as > opposed > > to "as the crow flies" straight line distances. > > Any Java-wise users out there that have explored this kind of > > functionality? > > Thanks, > > Kieran From jimburnett at ntelos.net Thu Aug 23 09:14:53 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Thu, 23 Aug 2001 12:14:53 -0400 Subject: [mapserver-users] basic search question References: <200108231456.f7NEuv511193@philbert.dnr.state.mn.us> Message-ID: <008701c12bee$be187810$2f01a8c0@morpheus> what about with MapScript? ----- Original Message ----- From: "kenboss" To: ; Sent: Thursday, August 23, 2001 10:56 AM Subject: Re: [mapserver-users] basic search question > It's been a while, but I'll take a shot. I can think of a couple of ways to get there. > > If you have x,y coordinates for the centers of your parcels in your mysql database, you can just run > your search, grab the results, and redirect to a url like: > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&mapxy=x_from_mysql+y_fr om_mysql&scale=150000 > > > If you have a common unique parcel ID in both the mysql database and the parcels shapefile, you can > grab that ID from your search and then redirect to something like: > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&qlayer=parcels&mode=ite mquery&item=parcelID&value > =unique_ID_from_mysql > > In turn, in your mapfile your parcels layer would have a query template like: > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&mapext=[shpext] > > to display the map. > > At least, that's how I'd approach it from ms_3.3. I understand itemquery has changed in 3.5, and > there may be better ways to get there. > > > > Hope this helps, > > --Ken Boss > MN DNR Forestry Resource Assessment > > > > From: "Jim Burnett" > > To: > > Subject: [mapserver-users] basic search question > > Date: Thu, 23 Aug 2001 08:44:19 -0400 > > MIME-Version: 1.0 > > X-Priority: 3 > > X-MSMail-Priority: Normal > > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > > > > Can I do a seach on my standard database(mysql) for an address, and then pop up the parcel(map) > based on my search? > > > > So, can I create a map, based on search results? > > I know I can click in the map, and query were I am clicking, but I want to do the opposite, and do a > search, then display the map.... > > > > > > > > > > -jim > > > > From jimburnett at ntelos.net Thu Aug 23 10:41:11 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Thu, 23 Aug 2001 13:41:11 -0400 Subject: [mapserver-users] basic search question References: <200108231456.f7NEuv511193@philbert.dnr.state.mn.us> Message-ID: <00a701c12bfa$ccb6b970$2f01a8c0@morpheus> ok, if I want to display just 1 item, say a parcel.....how would I blow it up to full extent? This is what is working, I can search my sql database by person's name and get the parcel_id. I can also show on the map were the parcel is using the code below. Now I want to make that little parcel, blow up full screen. Do I have to set extents? -jim ----- Original Message ----- From: "kenboss" To: ; Sent: Thursday, August 23, 2001 10:56 AM Subject: Re: [mapserver-users] basic search question > It's been a while, but I'll take a shot. I can think of a couple of ways to get there. > > If you have x,y coordinates for the centers of your parcels in your mysql database, you can just run > your search, grab the results, and redirect to a url like: > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&mapxy=x_from_mysql+y_fr om_mysql&scale=150000 > > > If you have a common unique parcel ID in both the mysql database and the parcels shapefile, you can > grab that ID from your search and then redirect to something like: > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&qlayer=parcels&mode=ite mquery&item=parcelID&value > =unique_ID_from_mysql > > In turn, in your mapfile your parcels layer would have a query template like: > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&mapext=[shpext] > > to display the map. > > At least, that's how I'd approach it from ms_3.3. I understand itemquery has changed in 3.5, and > there may be better ways to get there. > > > > Hope this helps, > > --Ken Boss > MN DNR Forestry Resource Assessment > > > > From: "Jim Burnett" > > To: > > Subject: [mapserver-users] basic search question > > Date: Thu, 23 Aug 2001 08:44:19 -0400 > > MIME-Version: 1.0 > > X-Priority: 3 > > X-MSMail-Priority: Normal > > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > > > > Can I do a seach on my standard database(mysql) for an address, and then pop up the parcel(map) > based on my search? > > > > So, can I create a map, based on search results? > > I know I can click in the map, and query were I am clicking, but I want to do the opposite, and do a > search, then display the map.... > > > > > > > > > > -jim > > > > From steve.lime at dnr.state.mn.us Thu Aug 23 10:55:47 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 23 Aug 2001 12:55:47 -0500 Subject: [mapserver-users] Templates and javascript Message-ID: The array access syntax looks wrong. Shouldn't gFldString[4][thelanguage] be gFldString[thelanguage]? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Armin Burger 08/23/01 03:36AM >>> I got problems when trying to change query template contents using javascript. In the header template I created an array with the dBase field names. .... gFldString = new Array(); ... gFldString[4] = ['[GEMD]', '[GEMI]', '[GEME]']; .... Then in the query template I wanted to change the field based on another variable (here the language for a multilingual application). I put in the template ... [AREA] the field values are written correctly. I havent an idea why the string '[GEMD]' is treated different when inserted directly and when taken from an array. Any help appreciated. Armin -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia _ From kenboss at dilbert.dnr.state.mn.us Thu Aug 23 11:32:29 2001 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Thu, 23 Aug 2001 13:32:29 -0500 (CDT) Subject: [mapserver-users] basic search question Message-ID: <200108231832.f7NIWT511636@philbert.dnr.state.mn.us> Jim-- Did you mean to include some code, or were you referring to one of my examples? Basically, to get a blowup of the feature, I think you just need to use &mapext=[shpext] in the query template for the layer that you're querying via itemquery. As for doing this sort of thing using mapscript, I'm sure it's doable using the DBI perl module for mysql access and the XBase module for access to the shapefile attributes (assuming you are in fact using shapefiles). I don't have any examples of that sort of thing in mapscript, but conceptually I think it'd go something like this: Search mysql on whatever and grab the associated parcel_id. Search the dbf file for the parcel_id and grab the associated record number. Use the record number from the .dbf file as an index to the shape you're after and grab the associated extent. Use the extent of the shape as your map extent and draw your map. --Ken > From: "Jim Burnett" > To: "kenboss" , > Subject: Re: [mapserver-users] basic search question > Date: Thu, 23 Aug 2001 13:41:11 -0400 > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > X-Priority: 3 > X-MSMail-Priority: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > > ok, if I want to display just 1 item, say a parcel.....how would I blow it > up to full extent? > > This is what is working, I can search my sql database by person's name and > get the parcel_id. I can also show on the map were the parcel is using the > code below. > > Now I want to make that little parcel, blow up full screen. Do I have to set > extents? > > -jim > > ----- Original Message ----- > From: "kenboss" > To: ; > Sent: Thursday, August 23, 2001 10:56 AM > Subject: Re: [mapserver-users] basic search question > > > > It's been a while, but I'll take a shot. I can think of a couple of ways > to get there. > > > > If you have x,y coordinates for the centers of your parcels in your mysql > database, you can just run > > your search, grab the results, and redirect to a url like: > > > > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&mapxy=x_from_mysql+y_fr > om_mysql&scale=150000 > > > > > > If you have a common unique parcel ID in both the mysql database and the > parcels shapefile, you can > > grab that ID from your search and then redirect to something like: > > > > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&qlayer=parcels&mode=ite > mquery&item=parcelID&value > > =unique_ID_from_mysql > > > > In turn, in your mapfile your parcels layer would have a query template > like: > > > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&mapext=[shpext] > > > > to display the map. > > > > At least, that's how I'd approach it from ms_3.3. I understand itemquery > has changed in 3.5, and > > there may be better ways to get there. > > > > > > > > Hope this helps, > > > > --Ken Boss > > MN DNR Forestry Resource Assessment > > > > > > > From: "Jim Burnett" > > > To: > > > Subject: [mapserver-users] basic search question > > > Date: Thu, 23 Aug 2001 08:44:19 -0400 > > > MIME-Version: 1.0 > > > X-Priority: 3 > > > X-MSMail-Priority: Normal > > > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > > > > > > Can I do a seach on my standard database(mysql) for an address, and then > pop up the parcel(map) > > based on my search? > > > > > > So, can I create a map, based on search results? > > > I know I can click in the map, and query were I am clicking, but I want > to do the opposite, and do a > > search, then display the map.... > > > > > > > > > > > > > > > -jim > > > > > > > > From bfischer at mpls.houstoneng.com Thu Aug 23 12:02:21 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Thu, 23 Aug 2001 14:02:21 -0500 Subject: [mapserver-users] basic search question Message-ID: <8879CCE0F0187742B7302A93A8B87B090284B3@mpls.houstoneng.com> Basically you have to add a mapextent to the URL, couple of different options to construct the map extent. 1.) &mapxy=[shpmid]&buffer=5000 2.) &mapext=[shpext] 3.) &mapext=[shpminx]+[shpminy]+[shpmaxx]+[shpmaxy] -brian -----Original Message----- From: Jim Burnett [mailto:jimburnett at ntelos.net] Sent: Thursday, August 23, 2001 12:41 PM To: kenboss; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] basic search question ok, if I want to display just 1 item, say a parcel.....how would I blow it up to full extent? This is what is working, I can search my sql database by person's name and get the parcel_id. I can also show on the map were the parcel is using the code below. Now I want to make that little parcel, blow up full screen. Do I have to set extents? -jim ----- Original Message ----- From: "kenboss" To: ; Sent: Thursday, August 23, 2001 10:56 AM Subject: Re: [mapserver-users] basic search question > It's been a while, but I'll take a shot. I can think of a couple of ways to get there. > > If you have x,y coordinates for the centers of your parcels in your mysql database, you can just run > your search, grab the results, and redirect to a url like: > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&mapxy=x_from_mysql+ y_fr om_mysql&scale=150000 > > > If you have a common unique parcel ID in both the mysql database and the parcels shapefile, you can > grab that ID from your search and then redirect to something like: > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&qlayer=parcels&mode =ite mquery&item=parcelID&value > =unique_ID_from_mysql > > In turn, in your mapfile your parcels layer would have a query template like: > > http://myserver.com/cgi-bin/mapserver?map=parcel.map&mapext=[shpext] > > to display the map. > > At least, that's how I'd approach it from ms_3.3. I understand itemquery has changed in 3.5, and > there may be better ways to get there. > > > > Hope this helps, > > --Ken Boss > MN DNR Forestry Resource Assessment > > > > From: "Jim Burnett" > > To: > > Subject: [mapserver-users] basic search question > > Date: Thu, 23 Aug 2001 08:44:19 -0400 > > MIME-Version: 1.0 > > X-Priority: 3 > > X-MSMail-Priority: Normal > > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 > > > > Can I do a seach on my standard database(mysql) for an address, and then pop up the parcel(map) > based on my search? > > > > So, can I create a map, based on search results? > > I know I can click in the map, and query were I am clicking, but I want to do the opposite, and do a > search, then display the map.... > > > > > > > > > > -jim > > > > From sjohnston at satshot.com Thu Aug 23 07:44:42 2001 From: sjohnston at satshot.com (Shawn L Johnston) Date: Thu, 23 Aug 2001 14:44:42 +0000 (GMT) Subject: [mapserver-users] maximum number of classes Message-ID: Is this limit the maximum number of layers (and maximum number of classes per layer) or is this the maximum number of layers/classes that can be displayed at any one time? Cheers, Shawn >Hey, they seemed like reasonable limits at the time. The current limit on layers is 100, and for classes it's 50. You can certainly change them, but not at runtime. You'll have to edit map.h and change the values for MS_MAXLAYERS and MS_MAXCLASSES to suit your needs and re-compile. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nicolau Werneck 08/09/01 06:01PM >>> The documentation says that there's a maximum number of 50 layers possibe to define in a map file... Is there also a maximum number of 50 classes to be defined on a layer??? Whyyyyy? :( ++nicolau From Chip.Hankley at GASAI.Com Thu Aug 23 13:06:35 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 23 Aug 2001 15:06:35 -0500 Subject: [mapserver-users] PHP -> PNG Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3E3A@postoffice.GASAI.Com> OK...I'm feeling pretty ignorant. I am developing ALL of my Mapserver apps using PHP mapscript. Right now I'm using PHP 4.0.4pl1. I'm thinking about converting to PNG...and I thought all I would have to do was change the version of mapserv.exe from the GIF version to the PNG version... but I guess that's not the case (OK, in retrospect, I should have figured that out...I started out using MapServer in the cgi-bin, as in the tutorial.) Anyway, I'm gathering now that when using PHP-Mapscript, Mapserver is embodied in the php_mapscript_34.dll, and has nothing to do with what is in cgi-bin. To make php-mapscript generate PNG instead of GIF, do I need to find someone to compile it with a different version of GD? Anyone done this willing to share? Does the version for 3.5 do PNG? Thanks! Chip From bfischer at mpls.houstoneng.com Thu Aug 23 13:06:08 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Thu, 23 Aug 2001 15:06:08 -0500 Subject: [mapserver-users] Mapplet Message-ID: <8879CCE0F0187742B7302A93A8B87B090297F0@mpls.houstoneng.com> I am trying to add components of Steve Lime's mapplet into my MapServer application. The question I have is how do I call the boxon and boxoff public methods in the mapplet. The idea is when a user clicks on the identify button I need to turn the box drawing option off. Then when they click on the zoomin button to turn it back on. I have javascript functions set up to do things when the buttons are clicked. How do I call the public methods from within a javascript function? I have javascript functions set up to do things when the buttons are clicked. Do I need to define the box parameter in the applet to make this work? Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Thu Aug 23 13:21:57 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 23 Aug 2001 15:21:57 -0500 Subject: [mapserver-users] maximum number of classes Message-ID: The limits apply to what can be present in a mapfile. Since display is tied to a mapfile then I guess the limit applies there to. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Shawn L Johnston 08/23/01 09:44AM >>> Is this limit the maximum number of layers (and maximum number of classes per layer) or is this the maximum number of layers/classes that can be displayed at any one time? Cheers, Shawn >Hey, they seemed like reasonable limits at the time. The current limit on layers is 100, and for classes it's 50. You can certainly change them, but not at runtime. You'll have to edit map.h and change the values for MS_MAXLAYERS and MS_MAXCLASSES to suit your needs and re-compile. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nicolau Werneck 08/09/01 06:01PM >>> The documentation says that there's a maximum number of 50 layers possibe to define in a map file... Is there also a maximum number of 50 classes to be defined on a layer??? Whyyyyy? :( ++nicolau From assefa at dmsolutions.ca Thu Aug 23 13:45:23 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Thu, 23 Aug 2001 16:45:23 -0400 Subject: [mapserver-users] PHP -> PNG References: <3DFF131E4E6D2D4198CDD758F35A53536E3E3A@postoffice.GASAI.Com> Message-ID: <3B856B63.BC3C9350@dmsolutions.ca> Hi, There are sevral php_mapscript.dll (depnding on the php version and the mapserver version)on our download site with a PNG support compiled in it : http://www2.dmsolutions.ca/webtools/dl/. Later, "Hankley, Chip" wrote: > OK...I'm feeling pretty ignorant. > > I am developing ALL of my Mapserver apps using PHP mapscript. Right now I'm > using PHP 4.0.4pl1. > > I'm thinking about converting to PNG...and I thought all I would have to do > was change the version of mapserv.exe from the GIF version to the PNG > version... but I guess that's not the case (OK, in retrospect, I should have > figured that out...I started out using MapServer in the cgi-bin, as in the > tutorial.) > > Anyway, I'm gathering now that when using PHP-Mapscript, Mapserver is > embodied in the php_mapscript_34.dll, and has nothing to do with what is in > cgi-bin. > > To make php-mapscript generate PNG instead of GIF, do I need to find someone > to compile it with a different version of GD? Anyone done this willing to > share? Does the version for 3.5 do PNG? > > Thanks! > > Chip -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Aug 23 15:41:54 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 23 Aug 2001 18:41:54 -0400 Subject: [mapserver-users] Perl/Mapscript - CVS Version Message-ID: <7CDD7B94357FD5119E800002A537C46E22FBAF@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I'm getting this on RedHat 7.1: [root at www-gad2 perl]# perl Makefile.PL -I/usr/src/mapserver -I/usr/local/include -L/usr/src/mapserver -lmap -lgd -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/usr/lib -lmd5 -lwwwxml -lxmltok -lxmlparse -lwwwzip -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -ldl -lz -lm Writing Makefile for mapscript [root at www-gad2 perl]# make cp mapscript.pm blib/lib/mapscript.pm cc -c -I/usr/src/mapserver -I/usr/local/include -D_REENTRANT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic -I/usr/local/lib/perl5/5.6.1/i686-linux-thread-multi/CORE -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR mapscript_wrap.c mapscript_wrap.c: In function `_swig_create_magic': mapscript_wrap.c:416: warning: assignment from incompatible pointer type mapscript_wrap.c:417: warning: assignment from incompatible pointer type mapscript_wrap.c: At top level: mapscript_wrap.c:15941: conflicting types for `boot_mapscript' mapscript_wrap.c:431: previous declaration of `boot_mapscript' make: *** [mapscript_wrap.o] Error 1 [root at www-gad2 perl]# I was using the CVS version and SWIG 1.3.6 and getting the exact same prolblem, so I got the nightly build instead, same thing ... Any ideas ? Thanks! Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From Matt.Wilkie at gov.yk.ca Thu Aug 23 17:18:22 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Thu, 23 Aug 2001 17:18:22 -0700 Subject: [mapserver-users] very large image handling & serving? Message-ID: <6DD7370C9452D31192A10008C75D07530BA1B27F@raptor.gov.yk.ca> Hi All, What is the current state of open source / free software solutions for handling and serving very large images? Please reply to me directly and I will summarize the responses back to the lists in about a week. The goal is to serve up ortho-mosaics with the following dimensions and size (uncompressed): RAW MOSAIC 30 metre Standard: 37,000 x 32,000 pixels = ~ 1.2gig 15 metre Panchromatic: 74,000 x 64,000 pixels = ~ 4.8gig 60 metre Thermal: 18,500 x 16,000 pixels = ~ 296 meg IMAGE PRODUCTS 30 metre RGB Composite = 1.2gig x 3 = 3.6gig 15 metre Enhanced Composite = 3.6gig x 4 = 14.4 gig The user would display a decimated reference image of the entire mosaic and draw a selection box to select their area of interest. This could be via a web or standalone app. Most areas of interest would probably not be larger than screen size (eg. 1280x1064). Clients would require everything from full resolution 1to1 images for remote sensing analysis to decimated "web-ready" screen shots. Other notes: - clients are desktop publishing apps (Word, Excel, Publisher, Illustrator, PhotoShop), low end GIS (ArcView, MapInfo), high end GIS/RS (ArcInfo v7&8, PCI), and web browsers (IE, NS). - Mutli-segmented intranet, Windows NT 4 domain servers - hardware of the server is yet determined but is not likely to be that good, at least initially (eg. ~1ghz, 768mb ram, IDE RAID) - the sysadmins are all mostly Win32 based, the *nix expertise is limited thus any *nix-based solution must be GUI and and should be WIMP friendly. - there is a non-trivial amount of ESRI inertia, thus for Mapserver to win out over ArcIMS there must be compelling arguments with pretty pictures. - there is a non-trivial amount of Microsoft inertia, thus more compelling arguments and more pretty pictures. I have no idea what the actual demand on the server will be, but potentially a lot -- 595 computers spread over 21 subnets on the intranet just answered to "net view". The results of this query are not likely to be implemented by myself; I will be writing it up a report and passing on recommendations. -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From drish at bigpond.net.au Thu Aug 23 19:50:12 2001 From: drish at bigpond.net.au (Drew) Date: Fri, 24 Aug 2001 12:50:12 +1000 Subject: [mapserver-users] newbie problems Message-ID: <06ea01c12c47$ab908580$0300000a@dhr> Ok, I'm still dealing with 4 basic problems: 1. the bounding box on the reference map is showing up in the wrong place 2. I can't figure out how to get GPS coordinates displayed to the user by clicking the map 3. I can't figure out how to plot sites on the map based on GPS coordinates 4. The labels in my point layer show up as dots (when I have the layer on), I was told there's a problem with DGN to SHP conversion With problem 1, I tried using ogrinfo on my tileindex file to get the extents, and that was off, I also tried using an updated tile4ms.c which got the extents of each tile, and figured out the overall extents, but that one put the bounding box off the map. I tried changing the UNITS to every possible type, didn't work either. In problem 2, I'm not really sure where to start. My data is DGN converted to Shapefiles, and I'm not sure if they contain any GPS info, and if they do, what type. I now have access to request custom data types from the supplier for the same area, would it be easier if the data was in a certain format? If so, what would be ideal, and what exactly would I ask for? I think problem 3 relies on fixing problem 2. Problem 4 could be solved if I had an ideal data type, again, what exactly would I ask for? here's a URL of what I have so far http://melbwireless.dyndns.org/~drew/dev/itasca/test.html here's my .map file http://melbwireless.dyndns.org/~drew/dev/itasca/demo.map Can anyone help? Thanks, Drew From armin.burger at territoriumonline.com Fri Aug 24 01:01:06 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Fri, 24 Aug 2001 10:01:06 +0200 Subject: [mapserver-users] Templates and javascript Message-ID: <200108240801.KAA03296@efferd.nettz.com> Steve, The document.write() should take the sub-array at position 4 out of the main array and from this sub-array take the string at position indicated by thelanguage. When I use gFldString[thelanguage] the whole sub-array at position 'thelanguage' is printed. When I try another definition of the array with var aGem = new Array('[GEMD]', '[GEMI]', '[GEMI]'); and then then the results are the same: the field name taken as string from the array instead of the field value is printed. I don't know if that is a special behaviour of javascript. I was thinking a string is a string, no matter if you take it out of an array or if you give it directly. Another problem with bi/multi-lingual applications is the map file. I'd had to change too many map file values for class names, label fields, etc. to include that in the url. I see following possibilities * a map file for every language: causing redundancy but the easiest way * creating the map file on the fly (with perl or php): don't know how to access this map file. Any sample sites? * using mapscript: means a complete new application. Any other suggestions? Thanks Armin > The array access syntax looks wrong. Shouldn't gFldString[4][thelanguage] be > gFldString[thelanguage]? > Steve > Stephen Lime > Internet Applications Analyst > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 >>>> Armin Burger 08/23/01 03:36AM >>> > I got problems when trying to change query template contents using > javascript. In the header template I created an array with the dBase field > names. > .... > gFldString = new Array(); > ... > gFldString[4] = ['[GEMD]', '[GEMI]', '[GEME]']; > .... > Then in the query template I wanted to change the field based on another > variable (here the language for a multilingual application). I put in the > template > ... > [AREA] > > the field values are written correctly. I havent an idea why the string > '[GEMD]' is treated different when inserted directly and when taken from an > array. > Any help appreciated. > Armin > -- > Armin Burger > Territorium Online > Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia > _ -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia email: armin.burger at territoriumonline.com http://www.territoriumonline.com tel: +39-0471-568185 / fax -- 568078 From pauls at SCCWRP.ORG Fri Aug 24 07:11:20 2001 From: pauls at SCCWRP.ORG (Paul Smith) Date: Fri, 24 Aug 2001 07:11:20 -0700 Subject: [mapserver-users] query feature Message-ID: <3B866087.6CE80994@sccwrp.org> I have mapserver on two test machines, one windows and the other linux. They both are running mapserver 3.4, with gd 1.2. I can run the test map I've built on both, and almost everything seems to be working the same. The problem is the "query feature" and "query multiple" doesn't seem to work on the linux box. Instead of grabbing the record out of the dbf file, like it does on the windows box, it just hangs. The only item I can see differently between the two builds is that the windows box has proj.4 and the linux box doesn't. Anyone have any ideas, pointers? Is the problem a pathway I am missing somewhere in a configuration file, or is it that I am missing some software? Any help would be appreciated. Thanks. Paul Smith From tjamison at observera.com Fri Aug 24 09:28:05 2001 From: tjamison at observera.com (Todd Jamison) Date: Fri, 24 Aug 2001 12:28:05 -0400 Subject: [mapserver-users] Re: [OSRS] very large image handling & serving? References: <6DD7370C9452D31192A10008C75D07530BA1B27F@raptor.gov.yk.ca> Message-ID: <3B868021.490D9503@observera.com> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tjamison.vcf Type: text/x-vcard Size: 360 bytes Desc: Card for Todd Jamison URL: From ed at topozone.com Fri Aug 24 10:54:16 2001 From: ed at topozone.com (Ed McNierney) Date: Fri, 24 Aug 2001 13:54:16 -0400 Subject: [mapserver-users] very large image handling & serving? Message-ID: <13858AA1A74F30419F319ACB66A9D122019178@mercator.topozone.com> Matt - It's not how big it is, it's what you do with it that counts. We're running a MapServer application on a single Windows 2000 server that's serving dozens of datalayers, several of which are raster imagery, and one of which is about 600 gigabytes of images. If you organize, tile, and index your imagery well, there should be no problem at all hosting enormous amounts of imagery on a single MapServer system. The reason that's the case is because well-organized imagery will cause MapServer to only focus on the relatively small number of source images you need to create a requested map view. Since the vast majority of the imagery is ignored for any one request, it really doesn't matter if there are 100K of other files lying around untouched or 3 terabytes of other files lying around untouched. They're untouched and have no impact on the request. You should be MUCH more concerned about characterizing your user activity. You're worrying about the wrong thing. By far the biggest question you need to answer is how many images (of what size) need to be served each minute? Understanding what your user scenario and usage patterns will be like are the most important variables in answering your questions. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Matt.Wilkie [mailto:Matt.Wilkie at gov.yk.ca] Sent: Thursday, August 23, 2001 8:18 PM To: freegis-list at intevation.de Cc: osrs at remotesensing.org; mapserver-users at lists. gis. umn. edu (E-mail) Subject: [mapserver-users] very large image handling & serving? Hi All, What is the current state of open source / free software solutions for handling and serving very large images? Please reply to me directly and I will summarize the responses back to the lists in about a week. The goal is to serve up ortho-mosaics with the following dimensions and size (uncompressed): RAW MOSAIC 30 metre Standard: 37,000 x 32,000 pixels = ~ 1.2gig 15 metre Panchromatic: 74,000 x 64,000 pixels = ~ 4.8gig 60 metre Thermal: 18,500 x 16,000 pixels = ~ 296 meg IMAGE PRODUCTS 30 metre RGB Composite = 1.2gig x 3 = 3.6gig 15 metre Enhanced Composite = 3.6gig x 4 = 14.4 gig The user would display a decimated reference image of the entire mosaic and draw a selection box to select their area of interest. This could be via a web or standalone app. Most areas of interest would probably not be larger than screen size (eg. 1280x1064). Clients would require everything from full resolution 1to1 images for remote sensing analysis to decimated "web-ready" screen shots. Other notes: - clients are desktop publishing apps (Word, Excel, Publisher, Illustrator, PhotoShop), low end GIS (ArcView, MapInfo), high end GIS/RS (ArcInfo v7&8, PCI), and web browsers (IE, NS). - Mutli-segmented intranet, Windows NT 4 domain servers - hardware of the server is yet determined but is not likely to be that good, at least initially (eg. ~1ghz, 768mb ram, IDE RAID) - the sysadmins are all mostly Win32 based, the *nix expertise is limited thus any *nix-based solution must be GUI and and should be WIMP friendly. - there is a non-trivial amount of ESRI inertia, thus for Mapserver to win out over ArcIMS there must be compelling arguments with pretty pictures. - there is a non-trivial amount of Microsoft inertia, thus more compelling arguments and more pretty pictures. I have no idea what the actual demand on the server will be, but potentially a lot -- 595 computers spread over 21 subnets on the intranet just answered to "net view". The results of this query are not likely to be implemented by myself; I will be writing it up a report and passing on recommendations. -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Aug 24 11:25:41 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 24 Aug 2001 14:25:41 -0400 Subject: [mapserver-users] Perl/Mapscript - CVS Version Message-ID: <7CDD7B94357FD5119E800002A537C46E22FBB9@s5-ccr-r1.ccrs.nrcan.gc.ca> That didn't do it ... exact same error ... Could it be due to the fact that I built my perl with threading support ? Does it work ok for anybody else with a similar setup ? Thanks, J.F. > ---------- > From: Daniel Morissette[SMTP:morissette at dmsolutions.ca] > Sent: Friday, August 24, 2001 10:17 AM > To: Doyon, Jean-Francois > Subject: Re: [mapserver-users] Perl/Mapscript - CVS Version > > "Doyon, Jean-Francois" wrote: > > > > I was using the CVS version and SWIG 1.3.6 and getting the exact same > > prolblem, so I got the nightly build instead, same thing ... > > > > Any ideas ? > > > > JF, > > I also ran into problems with MapScript and SWIG 1.3 a while ago and I > was told to stick to SWIG 1.1... I suggest that you try with SWIG 1.1 > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Aug 24 16:18:05 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 24 Aug 2001 19:18:05 -0400 Subject: [mapserver-users] Building Mapscript/Python Message-ID: <7CDD7B94357FD5119E800002A537C46E22FBC0@s5-ccr-r1.ccrs.nrcan.gc.ca> Hey there, Well I'm progressing somewhat, I think I've managed to get the module built and installed properly, now I'm trying to write external methods to make use of it all :) This is funny, but how do I initialize a mapObj in Python ? There's no "new" method on any of the objects (classes in this case). I found the __init__ function, but when I try to call it I get: TypeError: unbound method __init__() must be called with instance as first argument This is with : mapObj.__init__("/home/mapdata/legalsurveys/test.map") I also tried asinging to something with : mymap = mapObj.__init__("/home/mapdata/legalsurveys/test.map") But same error. I'm not sure what "instance" it wants as an argument. If I try giving it another argument, I also get an error saying the name isn't defined ... I may have to pre-decalre an "empty" object first, but I haven't found out how to do that yet :) Seems to me we really should get a Mapscript/Python doc going :P Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From pbinkley at library.ualberta.ca Mon Aug 27 08:29:00 2001 From: pbinkley at library.ualberta.ca (pbinkley at library.ualberta.ca) Date: Mon, 27 Aug 2001 09:29:00 -0600 Subject: [mapserver-users] newbie problems Message-ID: <68108E84D940D51195620008C7E95BEA0A442A@mail.library.ualberta.ca> A newbie suggestion for problem 1: I notice you're using the same extent settings for the main map and the reference map, but a different aspect ratio (600x600 for the main map, 200x146 for the reference map). Could that be throwing it off? I'm grappling with some similar problems and am still trying to get a grip on how all the variables work together. My reference map bounding box zooms out when I zoom in on the main map... Peter Peter Binkley Interface Development Coordinator, TAL Online email: pbinkley at thealbertalibrary.ab.ca phone: 492-5282, ext. 242 fax: (780) 492-9243 post: Cameron Library 4-30 University of Alberta Edmonton Alberta T6G 2J8 > -----Original Message----- > From: Drew [mailto:drish at bigpond.net.au] > Sent: August 23, 2001 8:50 PM > To: Mapserver listserver > Subject: [mapserver-users] newbie problems > > > Ok, I'm still dealing with 4 basic problems: > > 1. the bounding box on the reference map is showing up in the > wrong place > 2. I can't figure out how to get GPS coordinates displayed to > the user by > clicking the map > 3. I can't figure out how to plot sites on the map based on > GPS coordinates > 4. The labels in my point layer show up as dots (when I have > the layer on), > I was told there's a problem with DGN to SHP conversion > > With problem 1, I tried using ogrinfo on my tileindex file to get the > extents, and that was off, I also tried using an updated > tile4ms.c which got > the extents of each tile, and figured out the overall > extents, but that one > put the bounding box off the map. I tried changing the UNITS to every > possible type, didn't work either. > > In problem 2, I'm not really sure where to start. My data is > DGN converted > to Shapefiles, and I'm not sure if they contain any GPS info, > and if they > do, what type. I now have access to request custom data types from the > supplier for the same area, would it be easier if the data > was in a certain > format? If so, what would be ideal, and what exactly would I ask for? > > I think problem 3 relies on fixing problem 2. > > Problem 4 could be solved if I had an ideal data type, again, > what exactly > would I ask for? > > here's a URL of what I have so far > http://melbwireless.dyndns.org/~drew/dev/itasca/test.html > here's my .map file > http://melbwireless.dyndns.org/~drew/dev/itasca/demo.map > > Can anyone help? > > Thanks, > Drew > From jimburnett at ntelos.net Mon Aug 27 08:41:32 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Mon, 27 Aug 2001 11:41:32 -0400 Subject: [mapserver-users] Label Extent problem Message-ID: <000a01c12f0e$bf482af0$2f01a8c0@morpheus> I am having a problem, when displaying a label for a parcel in full extent, the label doesnt show up enless I zoom in. I have FORCED set to true, but it still wont show up when in full extent. If I show "ALL" the labels, it seems to show most of them all cluttered up, but I have to zoom to see a single label. -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From ludovic at siterra.com Mon Aug 27 10:45:53 2001 From: ludovic at siterra.com (Ludovic Tenant) Date: Mon, 27 Aug 2001 10:45:53 -0700 Subject: [mapserver-users] getting shapefiles Message-ID: <512CB547BE60CD47A75A5A969E10FE100173E7@mail.internal.siterra.com> Hi list, I've been developping an application with PHP/Mapscript and I'm very satisfied with all the functionalities provided by Mapserver. In fact, the only thing I miss now is good quality shapefile, because I'm not fully satisfied with the ones I used to develop my application ( I downloaded them on the web ). To be more precise, my application uses maps at different levels, from the entire US to county level. For example, I would like to have state level shapefiles showing the principal roads and cities, and then, at a county level, I would like to have shapefiles containing more detailed roads, streets and landmarks. I've been able to find pretty good shapefiles at the county level, but I miss shapefiles at the US and state level. So, if anyone can point me to a place where I can buy or download this kind of shapefiles, that would be a big step forward for me and enhance a lot the look of my maps ! Thanks, Ludovic. From Tom.Kralidis at CCRS.NRCan.gc.ca Mon Aug 27 12:31:48 2001 From: Tom.Kralidis at CCRS.NRCan.gc.ca (Kralidis, Tom) Date: Mon, 27 Aug 2001 15:31:48 -0400 Subject: [mapserver-users] on the fly projection modifications Message-ID: <7CDD7B94357FD5119E800002A537C46E2261D3@s5-ccr-r1.ccrs.nrcan.gc.ca> Hi, Anyone have any experience / suggestions on how to change projection params on the fly within a MapServer web app? i.e. An existing .map file: MAP NAME CAN EXTENT -180 -90 180 90 UNITS DD TRANSPARENT ON SIZE 500 300 WEB TEMPLATE map.htm IMAGEPATH /home/httpd/html/img_cache/ IMAGEURL "/img_cache/" LOG process_log END LAYER NAME world_at_night TYPE RASTER STATUS DEFAULT DATA ../firemapping/world_stable_lights.tif END END ..then, in the web app, the user wishes to change projections to: PROJECTION "proj=lcc" "lat_0=49n" "lon_0=95w" "lat_1=49n" "lat_2=77n" END ...how can one set this up via GET or POST. I'd like to have the page refresh with coords in LCC, as per this example. Thanks ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= From steve.lime at dnr.state.mn.us Mon Aug 27 12:57:04 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 27 Aug 2001 14:57:04 -0500 Subject: [mapserver-users] on the fly projection modifications Message-ID: It can be done. You need to use lat/lon coordinates to move between different projections. No biggie in your case. You can change the output projection using the "map_projection" parameter and you set it's value to a comma delimited string of proj options. For example: "proj=lcc,lat_0=49n,lon_0=95w,lat_1=49n,lat_2=77n" anything spit out at that point will be in that new coordinate system. One caveat might be that you should set the new projection BEFORE passing the extent but I'm not positive about that. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Kralidis, Tom" 08/27/01 02:31PM >>> Hi, Anyone have any experience / suggestions on how to change projection params on the fly within a MapServer web app? i.e. An existing .map file: MAP NAME CAN EXTENT -180 -90 180 90 UNITS DD TRANSPARENT ON SIZE 500 300 WEB TEMPLATE map.htm IMAGEPATH /home/httpd/html/img_cache/ IMAGEURL "/img_cache/" LOG process_log END LAYER NAME world_at_night TYPE RASTER STATUS DEFAULT DATA ../firemapping/world_stable_lights.tif END END ..then, in the web app, the user wishes to change projections to: PROJECTION "proj=lcc" "lat_0=49n" "lon_0=95w" "lat_1=49n" "lat_2=77n" END ...how can one set this up via GET or POST. I'd like to have the page refresh with coords in LCC, as per this example. Thanks ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Mon Aug 27 13:09:51 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Mon, 27 Aug 2001 16:09:51 -0400 Subject: [mapserver-users] Compile problem PHP module Message-ID: <7CDD7B94357FD5119E800002A537C46E22FBC7@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I'm trying to compile the very latest CVS mapserver on RedHat 7.1 with PHP 4.0.6 and get the following: cc cc -I. -I.. -fpic -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS -DUSE_PROJ -DUSE_EPPL -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_JPEG -I/usr/src/mapserver -I/usr/local/include -I/usr/src/webserver/php-4.0.6/ -I/usr/src/webserver/php-4.0.6//dl -I/usr/src/webserver/php-4.0.6//main -I/usr/src/webserver/php-4.0.6//Zend -I/usr/src/webserver/php-4.0.6//include -I/usr/src/webserver/php-4.0.6//TSRM -I/usr/local/apache/include -c -o php_mapscript_util.o php_mapscript_util.c cc: cannot specify -o with -c or -S and multiple compilations make: *** [php_mapscript_util.o] Error 1 My configure was this: ./configure --with-proj --with-php=/usr/src/webserver/php-4.0.6/ --with-apxs=/usr/local/apache/bin/apxs The binary version compiled fine. Has anyone else experienced this problem? This is kind of urgent :) Thanks! Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From Meredith.Bliss at ODE-EX1.ODE.STATE.OR.US Mon Aug 27 16:17:24 2001 From: Meredith.Bliss at ODE-EX1.ODE.STATE.OR.US (BLISS Meredith) Date: Mon, 27 Aug 2001 16:17:24 -0700 Subject: [mapserver-users] PreNewbie Can't Run Demo Message-ID: <5BE43397F49ED411A59D0090272AB4DE01699285@odemail1.ode.state.or.us> I seem to be totally stumped trying to get the demo to run on Win2000/Apache. When I click on the "Initialize" button on the MapServer Demo Interface, I get an error message from Windows saying "mapserv.exe has generated errors and will be closed by Windows. You will need to restart the program." The Apache error log says: "[Mon Aug 27 15:51:52 2001] [error] [client 127.0.0.1] Premature end of script headers: c:/program files/apache group/apache/cgi-bin/mapserv.exe" I installed MS 3.3.011G and did the requisite edits according to the demo instructions. Any suggestions? Meredith (Bud) Bliss, Research Analyst Oregon Criminal Justice Commission Asset Forfeiture Oversight Advisory Committee 126 Public Service Building 255 Capitol Street NE, Salem OR 97301 503-378-2053 x25 -- fax: 503-378-8666 > http://www.ocjc.state.or.us > From trem at socialchange.net.au Mon Aug 27 17:30:53 2001 From: trem at socialchange.net.au (Trem Stamp) Date: Tue, 28 Aug 2001 10:30:53 +1000 Subject: [mapserver-users] Reprojection gives a msDrawRasterLayer( TIFF ) error Message-ID: <3B8AE63D.75475800@socialchange.net.au> Hi, I'm currently testing an Alpha Release of mapserv 3.5. with GDAL library support MapServer version 3.5 (pre-alpha) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT= GDAL INPUT=SHAPEFILE I have one georeferenced tif image which is in AGD66/AMG Zone 55 (EPSG:20255) and a would like to output this as WGS84/Geographic (EPSG:4326) The capabilities document shows the layer okay (and seems to have generated it's own LatLonBoundingBox values - I assume from the reprojection?). There are infact 2 layers. http://maps-dev.socialchange.net.au/cgi-bin/wms?request=capabilities barellan barellan EPSG:20255 When I try to use a mapserv getMap request (or wms request - which by the way I know works okay as I've tested it with a straight forward Geographic to Geographic on a georeferenced tif file): http://maps-dev.socialchange.net.au/cgi-bin/wms?VERSION=1.1.0&REQUEST=GetMap&LAYERS=landsat&WIDTH=300&HEIGHT=300&BBOX=144.41,-37.74,146.95,-35.72 (works okay) http://maps-dev.socialchange.net.au/cgi-bin/wms?VERSION=1.1.0&REQUEST=GetMap&LAYERS=barellan&WIDTH=300&HEIGHT=300&BBOX=146.559,-34.2968,146.586,-34.2796 (get error) I get the following error: msDrawRasterLayer( TIFF ): General error message. Raster reprojection supported only with the GDAL library. Can anyone tell me what the problem maybe? The GDAL library being used id v1.1.5 Thanks, Trem From wasserburger at plan.at Tue Aug 28 04:14:17 2001 From: wasserburger at plan.at (Wolfgang W. Wasserburger) Date: Tue, 28 Aug 2001 13:14:17 +0200 Subject: [mapserver-users] Simple QUERY problem (fwd) In-Reply-To: <200108221535.KAA02800@mallit.fr.umn.edu> Message-ID: Teb, the Header and Footer ahs to be transfered to the Web-Section of teh mapfile and it will work. Greetings from sunny Vienna, Austria Wolfgang W. Wasserburger WWW: http://www.plan.at/ - http://www.punktgenau.at/ - http://www.plan.at/home/mitarbeiter/wwa/ -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of teb Sent: Wednesday, August 22, 2001 5:36 PM To: mapserver-users at lists.gis.umn.edu Cc: robbrown99 at hotmail.com Subject: [mapserver-users] Simple QUERY problem (fwd) Hello all, I am trying to get a simple query to work using v3.5 and the Mapplet. I have used the QUERY command in the map file and have created a template, header and footer. However, when I initialise the map from the form I get the following message: loadLayer(): Unknown identifier. (QUERY):(451) I commented out the query commands in the map file and the map then worked, but of course no query capability! Does anyone know where I might have gone wrong? Part of my map file looks like this: LAYER NAME "PROW_Nodes" TYPE POINT DATA PROW_Link_point LABELITEM "REF_NO" STATUS OFF CLASS COLOR 255 51 0 NAME "Public Right of Way Nodes (Queryable)" SYMBOL "signpost" LABEL SIZE SMALL COLOR 0 0 0 BACKGROUNDCOLOR -1 -1 -1 OUTLINECOLOR 255 255 255 POSITION AUTO TYPE BITMAP BUFFER 2 END ! ! ! ; END HEADER "PROW_Node_header.html" FOOTER "PROW_Node_footer.html" QUERY TEMPLATE "PROW_Node_template.html" END END I would be grateful for any suggestions. Thanks for your time. Regards, Rob ---------------------------------------------------------------------------- -- Get your FREE download of MSN Explorer at http://explorer.msn.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Aug 28 05:02:27 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 28 Aug 2001 08:02:27 -0400 Subject: [mapserver-users] Reprojection gives a msDrawRasterLayer( TIFF ) error References: <3B8AE63D.75475800@socialchange.net.au> Message-ID: <3B8B8853.1000106@pobox.com> Trem Stamp wrote: > Hi, > > I'm currently testing an Alpha Release of mapserv 3.5. with GDAL library > support > > MapServer version 3.5 (pre-alpha) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS INPUT=TIFF INPUT=EPPL7 > INPUT=JPEG INPUT= > GDAL INPUT=SHAPEFILE ... > > "http://www.digitalearth.gov/wmt/xml/exception_1_1_0.dtd"> > > > msDrawRasterLayer( TIFF ): General error message. Raster reprojection > supported only with the GDAL library. > > > > Can anyone tell me what the problem maybe? The GDAL library being used > id v1.1.5 > Trem, You will need to reconfigure without TIFF support, otherwise the "built-in" TIFF support takes precidence over the GDAL TIFF support. 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 steve.lime at dnr.state.mn.us Tue Aug 28 06:24:41 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 28 Aug 2001 08:24:41 -0500 Subject: [mapserver-users] Simple QUERY problem (fwd) Message-ID: Actually, header and footer are valid at the layer level as well. All layer results are wrapped by those files with ALL results wrapped by the header and footer in the web section. 3.5 looses the QUERY object with it's contents moved to CLASSes. This was done to limit the number of expressions that potentially needed evaluation and made code a bit simpler. So, to fix, move your TEMPLATE line into the CLASS object and remove the QUERY object. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Wolfgang W. Wasserburger" 08/28/01 06:14AM >>> Teb, the Header and Footer ahs to be transfered to the Web-Section of teh mapfile and it will work. Greetings from sunny Vienna, Austria Wolfgang W. Wasserburger WWW: http://www.plan.at/ - http://www.punktgenau.at/ - http://www.plan.at/home/mitarbeiter/wwa/ -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of teb Sent: Wednesday, August 22, 2001 5:36 PM To: mapserver-users at lists.gis.umn.edu Cc: robbrown99 at hotmail.com Subject: [mapserver-users] Simple QUERY problem (fwd) Hello all, I am trying to get a simple query to work using v3.5 and the Mapplet. I have used the QUERY command in the map file and have created a template, header and footer. However, when I initialise the map from the form I get the following message: loadLayer(): Unknown identifier. (QUERY):(451) I commented out the query commands in the map file and the map then worked, but of course no query capability! Does anyone know where I might have gone wrong? Part of my map file looks like this: LAYER NAME "PROW_Nodes" TYPE POINT DATA PROW_Link_point LABELITEM "REF_NO" STATUS OFF CLASS COLOR 255 51 0 NAME "Public Right of Way Nodes (Queryable)" SYMBOL "signpost" LABEL SIZE SMALL COLOR 0 0 0 BACKGROUNDCOLOR -1 -1 -1 OUTLINECOLOR 255 255 255 POSITION AUTO TYPE BITMAP BUFFER 2 END ! ! ! ; END HEADER "PROW_Node_header.html" FOOTER "PROW_Node_footer.html" QUERY TEMPLATE "PROW_Node_template.html" END END I would be grateful for any suggestions. Thanks for your time. Regards, Rob ---------------------------------------------------------------------------- -- Get your FREE download of MSN Explorer at http://explorer.msn.com From Tom.Kralidis at CCRS.NRCan.gc.ca Tue Aug 28 07:33:55 2001 From: Tom.Kralidis at CCRS.NRCan.gc.ca (Kralidis, Tom) Date: Tue, 28 Aug 2001 10:33:55 -0400 Subject: [mapserver-users] on the fly projection modifications Message-ID: <7CDD7B94357FD5119E800002A537C46E2261DA@s5-ccr-r1.ccrs.nrcan.gc.ca> Thanks for the info. I tried this, but did not get the coords back as per the map_projection param: http://[host]/cgi-bin/mapserv_35?map_projection=proj%3Dlcc%2Clat_0%3D49n%2Cl on_0%3D95w%2Clat_1%3D49n%2Clat_2%3D77n&map=%2Fhome%2Fhttpd%2Fhtml%2Fprototyp es%2Fframed%2Fmap.map&imgbox=-1+-1+-1+-1&imgxy=249.5+149.5&mode=browse&zoom= 1&imgext=-141.178000+36.481974+-52.178000+89.873974 ....I then changed the 'imgext' param to 'mapext', and received back LCC coordinates, so this looked ok. - Does one have to use mapext instead of imgext to make this work? My application sort of depends on imgext and zoom params to take care of zooming factors. Thanks ..Tom > -----Original Message----- > From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] > Sent: Monday, August 27, 2001 3:57 PM > To: Tom.Kralidis at CCRS.NRCan.gc.ca; mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] on the fly projection modifications > > > It can be done. You need to use lat/lon coordinates to move > between different > projections. No biggie in your case. You can change the > output projection using > the "map_projection" parameter and you set it's value to a > comma delimited > string of proj options. For example: > > "proj=lcc,lat_0=49n,lon_0=95w,lat_1=49n,lat_2=77n" > > anything spit out at that point will be in that new > coordinate system. One caveat might > be that you should set the new projection BEFORE passing the > extent but I'm not > positive about that. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Kralidis, Tom" 08/27/01 > 02:31PM >>> > Hi, > > Anyone have any experience / suggestions on how to change > projection params > on the fly within a MapServer web app? > > i.e. An existing .map file: > > MAP > NAME CAN > EXTENT -180 -90 180 90 > UNITS DD > TRANSPARENT ON > SIZE 500 300 > WEB > TEMPLATE map.htm > IMAGEPATH /home/httpd/html/img_cache/ > IMAGEURL "/img_cache/" > LOG process_log > END > LAYER > NAME world_at_night > TYPE RASTER > STATUS DEFAULT > DATA ../firemapping/world_stable_lights.tif > END > END > > ..then, in the web app, the user wishes to change projections to: > > PROJECTION > "proj=lcc" > "lat_0=49n" > "lon_0=95w" > "lat_1=49n" > "lat_2=77n" > END > > ...how can one set this up via GET or POST. I'd like to have the page > refresh with coords in LCC, as per this example. > > Thanks > > ..Tom > > ================================= > Tom Kralidis > Systems Scientist > Canada Centre for Remote Sensing > Tel: (613) 947-1828 > http://www.ccrs.nrcan.gc.ca/ > ================================= > From claude.philipona at camptocamp.com Tue Aug 28 10:03:01 2001 From: claude.philipona at camptocamp.com (Claude Philipona) Date: Tue, 28 Aug 2001 19:03:01 +0200 Subject: [mapserver-users] Gdal for esri .hdr labelled .bil raw raster Message-ID: <006601c12fe3$4bd163e0$1500a8c0@bsa> I'm trying to use Mapserver 3.5 with gdal: MapScript Version (Aug 1, 2001) MapServer version 3.5 (pre-alpha) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I know that gdal is working, because I'm able to resample .tif rasters on the fly into new projections. I would like to use some ESRI .hdr Labelled .bil raw raster file via gdal (to read GTopo 30 data). According to gdal doc, this format is supported and to open a dataset the file with the image file (often with the extension .bil) has to be selected. I could have it worked. I get this error: Fatal error: MapServer Error in msDrawRaster(): Unrecognized or unsupported image format. I have a file named "alps.bil" (raw raster) and "alps.hdr" in the data folder. Here is part of the .map file LAYER NAME "alps" DATA "alps.bil" TYPE RASTER STATUS ON PROJECTION "proj=latlong" "ellps=clrk66" END END Here is the .hdr file: file_title = alps data_type = raster grid_cell_registration = center map_projection = Lat/Lon left_map_x = 2.00000000000 right_map_x = 18.00000000000 upper_map_y = 52.00000000000 lower_map_y = 43.00000000000 number_of_rows = 1080 number_of_columns = 1920 grid_size = 0.00833333333 elev_m_unit = meters min__value = -16 max__value = 4570 elev_m_min = -16 elev_m_max = 4570 elev_m_missing_flag = -500 number_of_display_colors = 256 data_value_unit = elev_m data_byte_order = little_endian Any idea how to have this work, and , more generally how to use gdal to open format supported only by this extension? Thanks Claude Philipona From warmerdam at pobox.com Tue Aug 28 11:44:10 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 28 Aug 2001 14:44:10 -0400 Subject: [mapserver-users] Gdal for esri .hdr labelled .bil raw raster References: <006601c12fe3$4bd163e0$1500a8c0@bsa> Message-ID: <3B8BE67A.2000800@pobox.com> Claude Philipona wrote: > Here is the .hdr file: > > file_title = alps > data_type = raster > grid_cell_registration = center > map_projection = Lat/Lon > left_map_x = 2.00000000000 > right_map_x = 18.00000000000 > upper_map_y = 52.00000000000 > lower_map_y = 43.00000000000 > number_of_rows = 1080 > number_of_columns = 1920 > grid_size = 0.00833333333 > elev_m_unit = meters > min__value = -16 > max__value = 4570 > elev_m_min = -16 > elev_m_max = 4570 > elev_m_missing_flag = -500 > number_of_display_colors = 256 > data_value_unit = elev_m > data_byte_order = little_endian > > > Any idea how to have this work, and , more generally how to use gdal to open > format supported only by this extension? > Claude, This doesn't look like the GTOPO data I have seen before. This is the .hdr file I have with one of my GTOPO datasets: BYTEORDER M LAYOUT BIL NROWS 6000 NCOLS 4800 NBANDS 1 NBITS 16 BANDROWBYTES 9600 TOTALROWBYTES 9600 BANDGAPBYTES 0 NODATA -9999 ULXMAP -99.99583333333334 ULYMAP 39.99583333333333 XDIM 0.00833333333333 YDIM 0.00833333333333 Quite different than yours! You could use an editor to rewrite the .hdr file in a form that is more ESRI like. I imagine your hdr should look like: BYTEORDER L NROWS 1080 NCOLS 1920 NBANDS 1 NBITS 16 NODATA -500 ULXMAP 2 ULYMAP 52 XDIM 0.00833333333 YDIM 0.00833333333 Where did you get this GTOPO data? 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 claude.philipona at camptocamp.com Tue Aug 28 13:27:35 2001 From: claude.philipona at camptocamp.com (Claude Philipona) Date: Tue, 28 Aug 2001 22:27:35 +0200 Subject: [mapserver-users] Gdal for esri .hdr labelled .bil raw raster In-Reply-To: <3B8BE67A.2000800@pobox.com> Message-ID: <000601c12fff$df8f21f0$1500a8c0@bsa> > Where did you get this GTOPO data? I got the data from http://www.ngdc.noaa.gov/cgi-bin/seg/ff/nph-newform.pl/seg/topo/subset It is a one.kilometer elevation model based not only on GTOPO, but also other sources. In the .bil file, data are in int16 (meter). Thanks this was the problem. I got a .hdr file, but with the wrong format option (FreeForm ND instead of ESRI). Now I'm able able show the elevetion map on a browser, but there is still a problem: The map render in grey level, but all point that are above 255 m are white. I tried to use the CLASSITEM "[pixel]" to assign color CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] < 1) COLOR 0 0 0 END CLASS EXPRESSION ([pixel] >= 1 AND [pixel] <50) COLOR 255 0 0 END CLASS EXPRESSION ([pixel] >= 50 AND [pixel] < 100) COLOR 0 255 0 END ..and so on END . but I still get most of the map in the color set for pixel value 255. It seems that when gdal/mapserver convert the 16 bits data to 8 bits (In the .bil file, data are in int16 (meter).), it just leave the value under 255 unchanged and put all value above 255 to 255. So the map is pretty useless (most of the point around alps region are above 255m). I read in the "Raster howto" that there was a limitation on using CLASS pixel with gdal driver. But how is it possible to handle the 16bit .bil to have good presentation. Claude Philipona From warmerdam at pobox.com Tue Aug 28 14:36:17 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 28 Aug 2001 17:36:17 -0400 Subject: [mapserver-users] Gdal for esri .hdr labelled .bil raw raster References: <000601c12fff$df8f21f0$1500a8c0@bsa> Message-ID: <3B8C0ED1.7090503@pobox.com> Claude Philipona wrote: >> . but I still get most of the map in the color set for pixel value 255. It seems > that when gdal/mapserver convert the 16 bits data to 8 bits (In the .bil file, > data are in int16 (meter).), it just leave the value under 255 unchanged and put > all value above 255 to 255. So the map is pretty useless (most of the point > around alps region are above 255m). I read in the "Raster howto" that there was a > limitation on using CLASS pixel with gdal driver. But how is it possible to > handle the 16bit .bil to have good presentation. > Claude, Good questions. The general theory is that users should be preprocesing their files into web ready form (ie. performing down sampling in advance). However, especially for something like classifying 16bit data I can see that proper behaviour in MapServer would be desirable. I will add it to my TODO list to make classification work properly (through GDAL) for non-eight bit data. Note that to make this work properly for floating point data, I will need to evaluate the classification expressions for ever pixel of real data as opposed to the current approach of evaluating it for each of the 256 entries in the colortable, but no more. This could be pretty expensive! Furthermore, I think there should be a way of having MapServer do scaling in cases where you don't want to setup a complex classification scheme. Steve, is it OK for us to add extra override information via the METADATA block, or is that intended to be just for WMS related stuff? I would like to have GDAL interogate a SCALE parameter which could have the arguments MIN and MAX or the word AUTO indicating that a min/max pair should be computed from the data. This would be the default if not specified I suppose. Of course, the scaling wouldn't apply for classified rasters. 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 trem at socialchange.net.au Tue Aug 28 19:15:04 2001 From: trem at socialchange.net.au (Trem Stamp) Date: Wed, 29 Aug 2001 12:15:04 +1000 Subject: [mapserver-users] mapserv 3.5 error when reprojecting References: <006601c12fe3$4bd163e0$1500a8c0@bsa> Message-ID: <3B8C5028.4674BC48@socialchange.net.au> Hi, I'm currently resampling .tif rasters on the fly into new projections using mapserv 3.5 and gdal. However I've been getting a mapserv error in my log files. [Wed Aug 29 11:48:12 2001].543274 msResampleGDALToMap in effect: cellsize = 3.96 4371 [Wed Aug 29 11:48:12 2001] [error] [client 10.10.1.116] Premature end of script headers: /www/hosted/maps-dev/cgi-bin/mapserv There are two layer in the map file. One works (isn't being reprojected) and one doesn't (gives error above) I'm using the epsg definitions for layer input and map output. Has anyone seen this error when running mapserv for a reprojection. The map file looks like: NAME demo STATUS on EXTENT 140.0 -37.74 147.02 -32.0 SHAPEPATH "/www/hosted/maps-dev/htdocs/mapserv/data/test" SYMBOLSET "/www/hosted/maps-dev/htdocs/mapserv/symbology/symbol.sym" IMAGECOLOR 255 255 255 PROJECTION "init=epsg:4326" END WEB METADATA "wms_abstract" "This is a test map file generating capabilities output for 3 test cases including a shape file, tiff and tiled tiffs" "wms_onlineresource" "http://maps-dev.socialchange.net.au/cgi-bin/wms?" "wms_srs" "EPSG:4326" END END LAYER NAME barellan TYPE raster STATUS on DATA barellan.tif METADATA "wms_title" "barellan" "wms_extent" "459414.71000000002 6204842.79 461936.04999999999 6206741.99000 00002" END PROJECTION "init=epsg:20255" END END # LAYER LAYER NAME landsat TYPE raster STATUS on DATA rgb7826_geo.tif METADATA "wms_title" "landsat" "wms_extent" "144.41 -37.74 146.95 -35.72" END PROJECTION "init=epsg:4326" END END # LAYER END # MAPFILE Cheers, Trem From bertha_bonita at yahoo.com Tue Aug 28 19:17:48 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Wed, 29 Aug 2001 04:17:48 +0200 (CEST) Subject: [mapserver-users] HILITE Message-ID: <20010829021748.17393.qmail@web4203.mail.yahoo.com> hi list in my file map i defined this: QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 0 0 255 END and works fine, but when add a icon gif in some layers as next CLASS NAME "Bomberos" SIZE 6 SYMBOL bombero OUTLINECOLOR 0 0 0 COLOR 255 0 0 END and do query, this not appear whit the color blue definided in QUERYMAP ..i think, because is a gif image, but how can i get a "hilite" color blue in this case? ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger: Comunicaci?n instant?nea gratis con tu gente - http://messenger.yahoo.es From warmerdam at pobox.com Tue Aug 28 19:52:43 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 28 Aug 2001 22:52:43 -0400 Subject: [mapserver-users] mapserv 3.5 error when reprojecting References: <006601c12fe3$4bd163e0$1500a8c0@bsa> <3B8C5028.4674BC48@socialchange.net.au> Message-ID: <3B8C58FB.6010702@pobox.com> Trem Stamp wrote: > Hi, > > I'm currently resampling .tif rasters on the fly into new projections > using mapserv 3.5 and gdal. > However I've been getting a mapserv error in my log files. > > [Wed Aug 29 11:48:12 2001].543274 msResampleGDALToMap in effect: > cellsize = 3.96 > 4371 > [Wed Aug 29 11:48:12 2001] [error] [client 10.10.1.116] Premature end of > script > headers: /www/hosted/maps-dev/cgi-bin/mapserv Trem, The first message (msResampleGDALToMap()) is just a debug message. The second message appears to indicate that mapserv crashed. I would suggest debugging this by running shp2img on the mapfile. If that works fine, you will have to run mapserv in a non-debug environment. Not always trivial! Let me know how it goes. 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 psaravanakumar at uwc.ac.za Wed Aug 29 00:30:39 2001 From: psaravanakumar at uwc.ac.za (Paramasivam Saravanakumar) Date: 29 Aug 2001 09:30:39 +0200 Subject: [mapserver-users] How to create a simple map file Message-ID: Hi, I am new to Mapserver. I want to integrate Image Web Server 1.6 and Mapserver. I have downloaded the Mapserver 3.4, installed and it is working well. Now I want to create a map file using my own data. I would like to use any scripts(like avenue, VB) to create the map file from the ArcView. I have downloaded the Ross' scripts but, some reasons it is not working properly, Any advice in this regard is really appreciated. Thanks in advance, Regards P.Saravanakumar Post-Doctoral Fellow Coastal Management and Spatial Analyst Specialist International Ocean Institute of Southern Africa Botany Department University of the Western Cape Bellville 7535 South Africa Ph: +27 21 9593408 Email : kumar at uwc.ac.za From mscharber at josh.ucsd.edu Wed Aug 29 10:52:41 2001 From: mscharber at josh.ucsd.edu (Michael Scharber) Date: Wed, 29 Aug 2001 10:52:41 -0700 (PDT) Subject: [mapserver-users] PostGIS function calls in query template? Message-ID: Hi there, How can I use a derived field in a Mapserver query template .html file? I mean, can I wrap an attribute from a relation with a PostGIS geometry field (used as a layer in Mapserver) with a function call? ex. [x(shape)] to present the user with the x (Longitude in my case) of a tuples' shape (geometry) attribute. TIA Michael Scharber -- ******************************************************* Michael Scharber Scripps Institution of Oceanography Institute of Geophysics and Planetary Physics 8785 Biological Grade IGPP Room 4212 La Jolla, CA 92037 mscharber at josh.ucsd.edu (858)534-1750 ******************************************************* From John.Arthur at voicestream.com Wed Aug 29 13:10:36 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Wed, 29 Aug 2001 13:10:36 -0700 Subject: [mapserver-users] Itemquery in Mapscript(PHP) Message-ID: <987E5CD7052ED51198F400508BA25279089EDA@vamerrifms01.gsm1900.org> Sorry if this is documented somewhere, but I couldn't find anything on how to perform an Itemquery in PHP mapscript(not cgi). I would like to type a search on a field (in a point or polygon layer) and return a map zoomed in on that search. John Arthur RF Technician Office: (757) 490-7221 Cellular: (757) 692-1515 Email: john.arthur at voicestream.com _~-^-~_ VoiceStream W I R E L E S S From mgiesbrecht at geoarctic.com Wed Aug 29 16:11:31 2001 From: mgiesbrecht at geoarctic.com (Mark Giesbrecht) Date: Wed, 29 Aug 2001 17:11:31 -0600 Subject: [mapserver-users] Potential for 100's of layers Message-ID: <3B8D76A3.E5386653@geoarctic.com> Hi all, Incredible application, this MapServer. I am presently trying to create an online app that can potentially access hundreds of shapefiles. I've found out a bit about the MS_MAXLAYERS defined in map.h, where Stephen Lime, at the time, thought it was a reasonable limit. Without having tested the limits of MapServers performance with a huge number of layers, are there any users out there who have come across this yet? How nuts would I have to be to define 500 shapefiles in the map file, all loaded at once? Any thoughts, suggestions? Thanks, Mark -- Mark Giesbrecht, M.Sc. GIS Programmer/Analyst GeoArctic International Services Ltd. mgiesbrecht at geoarctic.com http://www.geoarctic.com From Jonathon.Root at agso.gov.au Wed Aug 29 16:48:57 2001 From: Jonathon.Root at agso.gov.au (Jonathon.Root at agso.gov.au) Date: Thu, 30 Aug 2001 09:48:57 +1000 Subject: [mapserver-users] Potential for 100's of layers Message-ID: <28DE833A781BD511839600D0B772248F6AA35E@agsomail1.agso.gov.au> The most we've done is 210 shapefiles with no problems, bit slow of course (~400Mb of data) if you want to view all the layers at once but otherwise fine. regards, Jonathon -----Original Message----- From: Mark Giesbrecht [mailto:mgiesbrecht at geoarctic.com] Sent: Thursday, 30 August 2001 9:12 To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Potential for 100's of layers Hi all, Incredible application, this MapServer. I am presently trying to create an online app that can potentially access hundreds of shapefiles. I've found out a bit about the MS_MAXLAYERS defined in map.h, where Stephen Lime, at the time, thought it was a reasonable limit. Without having tested the limits of MapServers performance with a huge number of layers, are there any users out there who have come across this yet? How nuts would I have to be to define 500 shapefiles in the map file, all loaded at once? Any thoughts, suggestions? Thanks, Mark -- Mark Giesbrecht, M.Sc. GIS Programmer/Analyst GeoArctic International Services Ltd. mgiesbrecht at geoarctic.com http://www.geoarctic.com From zhox at yeah.net Wed Aug 29 17:22:00 2001 From: zhox at yeah.net (Zhou Xu) Date: Thu, 30 Aug 2001 8:22:0 +0800 Subject: [mapserver-users] thematic map on the fly using PHP/Mapscript? Message-ID: <20010830003442.B25221C6DF261@smtp.yeah.net> Hi, I am new to mapserver. I want to make a thematic map on the fly using php/mapscript, and the data is in an external database, can I do that using php/mapscript? and how? Thank you very much. ------------------------------------------------------------------------------------------- Zhou Xu Zi Zhu Yuan Baisheng Cun No.1 NGCC Post Code, 100044 Beijing, China Phone: +86 10 86851042 Fax: +86 10 68424101 Email: apsdinode at nsdi.gov.cn ------------------------------------------------------------------------------------------- From lyndon.zimmermann at adelaide.edu.au Wed Aug 29 18:11:52 2001 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Thu, 30 Aug 2001 10:41:52 +0930 Subject: [mapserver-users] XML Metadata management References: <28DE833A781BD511839600D0B772248F6AA35E@agsomail1.agso.gov.au> Message-ID: <3B8D92D8.3490F41C@adelaide.edu.au> Greetings all, One of the great joys of any GIS project is, of course, preparing and delivering the metadata. The national co-ordinators of the metadata project here in Oz have decided on an XML format and provided tools for generating data in this format. The concept is great, but I'm now trying to work out how to deliver this metadata. Can anyone give me quick rundown on how this works? I think it's a template read by your favourite browser that allows you to select your metadata XML file, then delivers it in accordance with the template. Or is it driven by some server application? Lyndon Z -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) "Bioenergy Atlas for Australia" Co-ordinator University of Adelaide Agronomy and Farming Systems C/- GISCA, 4th floor, 10 Pulteney St, Adelaide 5005 Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au http://sg211.gisca.adelaide.edu.au/lzimmerm/zimm.htm Biomass Energy Atlas Website: http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/html/atlas_index.html Unless otherwise stated, the content of this message and attachments may be forwarded or quoted, with due acknowledgement. No representation is made that this email is free of viruses. Virus scanning is recommended and is the responsibility of the recipient. From rob at socialchange.net.au Wed Aug 29 18:25:04 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Thu, 30 Aug 2001 11:25:04 +1000 Subject: [mapserver-users] XML Metadata management References: <28DE833A781BD511839600D0B772248F6AA35E@agsomail1.agso.gov.au> <3B8D92D8.3490F41C@adelaide.edu.au> Message-ID: <3B8D95F0.E4C68A67@socialchange.net.au> There are others in Oz who'll be able to give you more direct guidance on the mechanics of the current setup, however there is a general interest in this around the world, so I've let this go to entire list. The OpenGIS Consortium (mapserv 3.5 will provide compliance with its published Web Map Server Specification) is also where catalog standardisation issues are being dealt with, and in particular will be compliant with the upcoming ISO 19115 metadata schema - that Oz will adopt accordding to current policy. The linkages between services (eg you mapserv installation) and the metadata, in particular to allow this data to be exploited to search for services delivering particular data, are being addressed in the next OpenGIS Web Services Testbed, starting soon. If successful in our funding bid we will be implementing a large scale trial across Australia that you would have a natural opportunity to participate in and get that guidance! Regards Rob Atkinson Lyndon Zimmermann wrote: > Greetings all, > One of the great joys of any GIS project is, of course, preparing and > delivering the metadata. The national co-ordinators of the metadata > project here in Oz have decided on an XML format and provided tools for > generating data in this format. > > The concept is great, but I'm now trying to work out how to deliver this > metadata. Can anyone give me quick rundown on how this works? I think > it's a template read by your favourite browser that allows you to select > your metadata XML file, then delivers it in accordance with the > template. Or is it driven by some server application? > > Lyndon Z > > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > "Bioenergy Atlas for Australia" Co-ordinator > University of Adelaide Agronomy and Farming Systems > C/- GISCA, 4th floor, 10 Pulteney St, Adelaide 5005 > Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 > Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au > http://sg211.gisca.adelaide.edu.au/lzimmerm/zimm.htm > > Biomass Energy Atlas Website: > http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/html/atlas_index.html > > Unless otherwise stated, the content of this message and attachments may > be forwarded or quoted, with due acknowledgement. No representation is > made that this email is free of viruses. Virus scanning is recommended > and is the responsibility of the recipient. -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From ncowham at forumone.com Wed Aug 29 20:13:13 2001 From: ncowham at forumone.com (Nyk Cowham) Date: Wed, 29 Aug 2001 23:13:13 -0400 Subject: [mapserver-users] XML Metadata management Message-ID: Lyndon: There are a number of approaches you can take with the metadata, it all really depends on what you want to do with it. If you just want to publish the metadata on a website you should probably use an XSLT stylesheet to transform the XML document into an HTML document. You can get a XSLT processor free in a number of different implementations. Many people favor SAXON (http://saxon.sourceforge.net/) which is implemented in Java but I generally use my own Perl script called 'exalt' that implements the XML::LibXSLT module: #!/usr/bin/perl -w use strict; use XML::LibXSLT; use XML::LibXML; my $parser = new XML::LibXML; my $xsl = new XML::LibXSLT; if (@ARGV) { my $xml_src = $parser->parse_file(shift); my $style_src = $parser->parse_file(shift); my $stylesheet = $xsl->parse_stylesheet($style_src); my $result = $stylesheet->transform($xml_src); $stylesheet->output_file($result, shift); } else { die("usage: exalt "); } If you want to be able to do these transforms dynamically rather than on the command line you can use AxKit (Perl) or Cocoon (Java) to do transforms dynamically everytime the xml document or stylesheets change. It you need to do more complex data manipulation of the files then you are probably will have to do some programming. I would recommend subscribing to the Perl-XML mailing list (perl-xml at activestate.com) since Perl is a very easy way of processing XML files - also check out http://www.xmlperl.com/. Nyk Cowham. > Greetings all, > One of the great joys of any GIS project is, of course, preparing and > delivering the metadata. The national co-ordinators of the metadata > project here in Oz have decided on an XML format and provided > tools for > generating data in this format. > > The concept is great, but I'm now trying to work out how to > deliver this > metadata. Can anyone give me quick rundown on how this > works? I think > it's a template read by your favourite browser that allows > you to select > your metadata XML file, then delivers it in accordance with the > template. Or is it driven by some server application? > > Lyndon Z > > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > "Bioenergy Atlas for Australia" Co-ordinator > University of Adelaide Agronomy and Farming Systems > C/- GISCA, 4th floor, 10 Pulteney St, Adelaide 5005 > Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 > Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au > http://sg211.gisca.adelaide.edu.au/lzimmerm/zimm.htm > > Biomass Energy Atlas Website: > http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/html/atlas_ index.html Unless otherwise stated, the content of this message and attachments may be forwarded or quoted, with due acknowledgement. No representation is made that this email is free of viruses. Virus scanning is recommended and is the responsibility of the recipient. From JohnHockaday at auslig.gov.au Wed Aug 29 20:14:59 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Thu, 30 Aug 2001 13:14:59 +1000 Subject: [mapserver-users] XML Metadata management Message-ID: <53273E187450D311ACF6009027927B12022C0EC9@smtpgate.auslig.gov.au> Hi Lyndon, You can use XSL to convert your XML files on the fly into any format that you want to display. You will need an XSL file that maps the XML elements into the format that you want to display and you will need an XSLT parser that will read that XSL and the XML file and do the processing. This is the method used to convert GML into SVG so that XML files can be viewed using an SVG browser plugin. John Hockaday > -----Original Message----- > From: Lyndon Zimmermann [SMTP:lyndon.zimmermann at adelaide.edu.au] > Sent: Thursday, August 30, 2001 11:12 AM > Cc: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] XML Metadata management > > Greetings all, > One of the great joys of any GIS project is, of course, preparing and > delivering the metadata. The national co-ordinators of the metadata > project here in Oz have decided on an XML format and provided tools for > generating data in this format. > > The concept is great, but I'm now trying to work out how to deliver this > metadata. Can anyone give me quick rundown on how this works? I think > it's a template read by your favourite browser that allows you to select > your metadata XML file, then delivers it in accordance with the > template. Or is it driven by some server application? > > Lyndon Z > > -- > Lyndon Zimmermann > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) > > "Bioenergy Atlas for Australia" Co-ordinator > University of Adelaide Agronomy and Farming Systems > C/- GISCA, 4th floor, 10 Pulteney St, Adelaide 5005 > Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 > Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au > http://sg211.gisca.adelaide.edu.au/lzimmerm/zimm.htm > > Biomass Energy Atlas Website: > http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/html/atlas_index.html > > Unless otherwise stated, the content of this message and attachments may > be forwarded or quoted, with due acknowledgement. No representation is > made that this email is free of viruses. Virus scanning is recommended > and is the responsibility of the recipient. From mapserver at hotmail.com Thu Aug 30 02:35:01 2001 From: mapserver at hotmail.com (WMS Mapping) Date: Thu, 30 Aug 2001 09:35:01 +0000 Subject: [mapserver-users] Help connect data base for Mysql and Php/Mapscript Message-ID: Hello I am student of the School of Geography of the University of The Andes in Venezuela and at the moment I am developing a Server Map through internet, using mapserver compiled in Linux like I modulate php/mapscrip + mapserver 3.4 + gmap and I need help to connect with a database in MySql and to obtain a report of the consultation. You achieved it and he/she wanted of being possible to obtain the necessary help. Of being possible an example of as Connecting php/mapscrip to important serious MySql, Very grateful for help. Thank you Diego J. Padr?n _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From adsllaurentf at canl.nc Thu Aug 30 04:48:27 2001 From: adsllaurentf at canl.nc (Laurent FOULONNEAU) Date: Thu, 30 Aug 2001 22:48:27 +1100 Subject: [mapserver-users] Itemquery in Mapscript(PHP) References: <987E5CD7052ED51198F400508BA25279089EDA@vamerrifms01.gsm1900.org> Message-ID: <000a01c13149$af251060$0548abca@kids> Could certainly be improved..... First you have a blank image, when you use the search form, your object is 'automagically' ;) zoomed and painted in red The others object are not showed. Laurent //--------------------------------------begin draw_query.php addColor(255, 0, 0); // fonctions function DrawQueryMap() { GLOBAL $map_obj,$mode,$item, $qlayer, $value,$red; if($qlayer && $mode == "itemquery" && $value && $item) { $layer = $map_obj->getlayerbyname($qlayer); for ($c=0; $c < $layer->numclasses; $c++) { $class=$layer->getclass($c); if ($class->name == $item) { $class->setExpression($value); $class->set("color", $red); } } } $img = $map_obj->draw(); $url = $img->saveWebImage($img, 0, 0, -1); echo"width HEIGHT=$map_obj->height NAME=mainmap>"; } ?>
//------------------------------------- end of draw_query.php //-----------------------------yourmapfile.map : add a layer with a class name and a classitem with the same name LAYER NAME your_layer_in_the_map_file TYPE POLYGON STATUS ON DATA your_shape_file CLASSITEM "your_class_name_in_the_map_file" CLASS NAME "your_class_name_in_the_map_file" END END # layer //----------------end of layer definition ----- Original Message ----- From: "Arthur, John" To: Sent: Thursday, August 30, 2001 7:10 AM Subject: [mapserver-users] Itemquery in Mapscript(PHP) > Sorry if this is documented somewhere, but I couldn't find anything on how > to perform an Itemquery in PHP mapscript(not cgi). > I would like to type a search on a field (in a point or polygon layer) and > return a map zoomed in on that search. > > John Arthur > RF Technician > Office: (757) 490-7221 > Cellular: (757) 692-1515 > Email: john.arthur at voicestream.com > _~-^-~_ > VoiceStream > W I R E L E S S > From Chip.Hankley at GASAI.Com Thu Aug 30 05:50:33 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 30 Aug 2001 07:50:33 -0500 Subject: [mapserver-users] Itemquery in Mapscript(PHP) Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3E57@postoffice.GASAI.Com> John, Dig through the mail archives... check on getextent / setextent. There is a thread w/ this name (follow link)... http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0107/thre ads.html#00335 that should give you some insight. Chip -----Original Message----- From: Arthur, John [mailto:John.Arthur at voicestream.com] Sent: Wednesday, August 29, 2001 3:11 PM To: 'mapserver-users at lists.gis.umn.edu' Subject: [mapserver-users] Itemquery in Mapscript(PHP) Sorry if this is documented somewhere, but I couldn't find anything on how to perform an Itemquery in PHP mapscript(not cgi). I would like to type a search on a field (in a point or polygon layer) and return a map zoomed in on that search. John Arthur RF Technician Office: (757) 490-7221 Cellular: (757) 692-1515 Email: john.arthur at voicestream.com _~-^-~_ VoiceStream W I R E L E S S From John.Arthur at voicestream.com Thu Aug 30 06:44:29 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Thu, 30 Aug 2001 06:44:29 -0700 Subject: [mapserver-users] Itemquery in Mapscript(PHP) Message-ID: <987E5CD7052ED51198F400508BA25279089EDB@vamerrifms01.gsm1900.org> Laurent, Thanks for your help. I must be doing something wrong, it didn't seem to work for me. I'm using 3.5 When I run the search the first time, the map is returned, but nothing is highlighted or zoomed. When I run the search the second time, an error is returned: Warning: MapServer Error in msLoadMap(): ():(0) in c:\program files\apache group\apache\mapinfo\htdocs\drawquery.php on line 7 My layer is as follows: LAYER NAME countysearch TYPE POLYGON STATUS ON CONNECTIONTYPE OGR CONNECTION "c:/mapinfo work files/VA/Counties/VA_CNTY.tab" CLASSITEM "County" CLASS NAME "County" END END # layer My form is as follows:
Does this not work with OGR? Thanks John Arthur -----Original Message----- From: Laurent FOULONNEAU [mailto:adsllaurentf at canl.nc] Sent: Thursday, August 30, 2001 7:48 AM To: Arthur, John; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Itemquery in Mapscript(PHP) Could certainly be improved..... First you have a blank image, when you use the search form, your object is 'automagically' ;) zoomed and painted in red The others object are not showed. Laurent //--------------------------------------begin draw_query.php addColor(255, 0, 0); // fonctions function DrawQueryMap() { GLOBAL $map_obj,$mode,$item, $qlayer, $value,$red; if($qlayer && $mode == "itemquery" && $value && $item) { $layer = $map_obj->getlayerbyname($qlayer); for ($c=0; $c < $layer->numclasses; $c++) { $class=$layer->getclass($c); if ($class->name == $item) { $class->setExpression($value); $class->set("color", $red); } } } $img = $map_obj->draw(); $url = $img->saveWebImage($img, 0, 0, -1); echo"width HEIGHT=$map_obj->height NAME=mainmap>"; } ?>
//------------------------------------- end of draw_query.php //-----------------------------yourmapfile.map : add a layer with a class name and a classitem with the same name LAYER NAME your_layer_in_the_map_file TYPE POLYGON STATUS ON DATA your_shape_file CLASSITEM "your_class_name_in_the_map_file" CLASS NAME "your_class_name_in_the_map_file" END END # layer //----------------end of layer definition ----- Original Message ----- From: "Arthur, John" To: Sent: Thursday, August 30, 2001 7:10 AM Subject: [mapserver-users] Itemquery in Mapscript(PHP) > Sorry if this is documented somewhere, but I couldn't find anything on how > to perform an Itemquery in PHP mapscript(not cgi). > I would like to type a search on a field (in a point or polygon layer) and > return a map zoomed in on that search. > > John Arthur > RF Technician > Office: (757) 490-7221 > Cellular: (757) 692-1515 > Email: john.arthur at voicestream.com > _~-^-~_ > VoiceStream > W I R E L E S S > From mgiesbrecht at geoarctic.com Thu Aug 30 12:08:00 2001 From: mgiesbrecht at geoarctic.com (Mark Giesbrecht) Date: Thu, 30 Aug 2001 13:08:00 -0600 Subject: [mapserver-users] Problem with layer name? Message-ID: <3B8E8F10.AA65B803@geoarctic.com> Hi all, I've got the following layer definition that will not load: LAYER NAME "03D_GreensBayouPlant-WhiteOakSub_tl_structure_NE" TYPE POINT STATUS ON TOLERANCE 10 DATA "03D_GreensBayouPlant-WhiteOakSub_tl_structure_NE" LABELITEM 'STRUCTUREI' CLASS name "03D_GreensBayouPlant-WhiteOakSub_tl_structure_NE" COLOR 255 255 13 SIZE 10 SYMBOL 'triangle' END #CLASS HEADER = "queries/poles_header.htm" QUERY TEMPLATE "queries/poles.htm" END #QUERY END #LAYER I read that any non-alphanumeric characters have to be encased in single or double quotes; am I missing something above? Thanks, Mark -- Mark Giesbrecht, M.Sc. GIS Programmer/Analyst GeoArctic International Services Ltd. mgiesbrecht at geoarctic.com http://www.geoarctic.com phone: (403) 290-1320 fax: (403) 264-5848 From pramsey at refractions.net Thu Aug 30 12:22:26 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 30 Aug 2001 12:22:26 -0700 Subject: [mapserver-users] PostGIS function calls in query template? References: Message-ID: <3B8E9272.CD54A87F@refractions.net> Hi Michael, The short answer, is 'no' you cannot do this. When mapserver is pulling attributes from the database, it is checking the system tables to find the attribute names, then pulling just those values. It might be possible to make some changes to the postgis access code to allow users to specify additional attributes as 'x(geometry) as xcoord' additions to the SQL statement. A more expedient workaround is to use PHP/Mapscript as your programming base, get the geometry ID's from a given query and then use the direct PHP->pgsql connection to do whatever additional queries you want to do. Probably less hacky in the long run. Paul Michael Scharber wrote: > > How can I use a derived field in a Mapserver query template .html file? > I mean, can I wrap an attribute from a relation with a PostGIS geometry > field (used as a layer in Mapserver) with a function call? > > ex. [x(shape)] to present the user with the x (Longitude in my case) of a > tuples' shape (geometry) attribute. > > TIA > > Michael Scharber > > -- > ******************************************************* > Michael Scharber > Scripps Institution of Oceanography > Institute of Geophysics and Planetary Physics > 8785 Biological Grade > IGPP Room 4212 > La Jolla, CA 92037 > > mscharber at josh.ucsd.edu > (858)534-1750 > ******************************************************* From dblasby at refractions.net Thu Aug 30 14:24:49 2001 From: dblasby at refractions.net (Dave Blasby) Date: Thu, 30 Aug 2001 14:24:49 -0700 Subject: [Fwd: [mapserver-users] PostGIS function calls in query template?] Message-ID: <3B8EAF21.FF14F5D0@refractions.net> -------------- next part -------------- An embedded message was scrubbed... From: Dave Blasby Subject: Re: [mapserver-users] PostGIS function calls in query template? Date: Wed, 29 Aug 2001 13:42:13 -0700 Size: 4261 URL: From mscharber at josh.ucsd.edu Thu Aug 30 14:25:42 2001 From: mscharber at josh.ucsd.edu (Michael Scharber) Date: Thu, 30 Aug 2001 14:25:42 -0700 (PDT) Subject: [mapserver-users] PostGIS function calls in query template? In-Reply-To: <3B8E9272.CD54A87F@refractions.net> Message-ID: Hi Paul (Dave too), Thanks (to both of you) for your input. It makes sense to me now that the .html template is something that gets filled in after the query executes, meaning Mapserver/PostGIS wouldn't have any knowledge of those derived fields before hand. Just for kicks I tried to get around it the easy way (similar to Dave's initial suggestion to tack on the extra fields I need directly into the table definition) by creating a view with the derived fields I want (e.g x(shape) as "longitude", y(shape) as "latitude", z(shape) as "height"). I made the corresponding change to my .map file for Mapserver and the browsing, zoom in, zoom out etc, works just fine...however any queries now bomb. I get "msSearchDiskTree(): Unable to access file.". Any suggestions/explanations as to why this is failing? The only thing I changed in all of my Mapserver config is: DATA "shape from monument_catalog" to DATA "shape from ss_monument_catalog" (the view) Thanks again, Michael On Thu, 30 Aug 2001, Paul Ramsey wrote: > Hi Michael, > The short answer, is 'no' you cannot do this. When mapserver is pulling > attributes from the database, it is checking the system tables to find > the attribute names, then pulling just those values. It might be > possible to make some changes to the postgis access code to allow users > to specify additional attributes as 'x(geometry) as xcoord' additions to > the SQL statement. > A more expedient workaround is to use PHP/Mapscript as your programming > base, get the geometry ID's from a given query and then use the direct > PHP->pgsql connection to do whatever additional queries you want to do. > Probably less hacky in the long run. > Paul > > Michael Scharber wrote: > > > > How can I use a derived field in a Mapserver query template .html file? > > I mean, can I wrap an attribute from a relation with a PostGIS geometry > > field (used as a layer in Mapserver) with a function call? > > > > ex. [x(shape)] to present the user with the x (Longitude in my case) of a > > tuples' shape (geometry) attribute. > > > > TIA > > > > Michael Scharber > > > > -- > > ******************************************************* > > Michael Scharber > > Scripps Institution of Oceanography > > Institute of Geophysics and Planetary Physics > > 8785 Biological Grade > > IGPP Room 4212 > > La Jolla, CA 92037 > > > > mscharber at josh.ucsd.edu > > (858)534-1750 > > ******************************************************* > -- ******************************************************* Michael Scharber Scripps Institution of Oceanography Institute of Geophysics and Planetary Physics 8785 Biological Grade IGPP Room 4212 La Jolla, CA 92037 mscharber at josh.ucsd.edu (858)534-1750 ******************************************************* From TCHaddad at cshore.com Thu Aug 30 16:25:23 2001 From: TCHaddad at cshore.com (TCHaddad) Date: Thu, 30 Aug 2001 19:25:23 -0400 Subject: [mapserver-users] mapserver & windoze NT 4 vs. 2000 question Message-ID: <200108301925.AA3344105528@cshore.com> So.... we may be getting a new box in our office that our mapserver app.s will be moving to. I'm fishing for possible migration issues that might be significant enough to sway what we actually buy: Right now we have a Mapserver app. running on an NT 4.0 SP 6 workstation (not server), with Apache 1.3.20 as a service. Everything works great. In spec-ing out what our choices are for something new, we're being given the choice of a box with NT 4.0 again (server version this time) or with Windows 2000 (server version), for the same price. I guess both come with IIS 5.0, so Apache would no longer be mandatory. My questions are: do I care which of these 2 Operating systems we choose? Are there any significant issues as far as Mapserver or Mapplet are concerned? What about if we get into more XML/ the WMS stuff in 3.5? I've never had a complaint with Apache... are there Mapserver issues with IIS? Apologies in advance if these are dumb/moot questions, I just know nothing about Win 2k server and saw from the archive that a few people may have had issues. As long as I hear that none are major obstacles, I'm confident we can work out any minor kinks. Thanks to all, Tanya From zhox at yeah.net Thu Aug 30 17:19:18 2001 From: zhox at yeah.net (Zhou Xu) Date: Fri, 31 Aug 2001 8:19:18 +0800 Subject: [mapserver-users] Problem with layer name? Message-ID: <20010831003006.48A561CA86C91@smtp2.yeah.net> I think this is the problem: "Short name for this layer. Limit is 20 characters. This name is the link between the mapfile and web interfaces that refer to this name. They must be identical. The name should be unique, unless one layer replaces another at different scales." These words come from http://mapserver.gis.umn.edu/doc/mapfile-reference.html#layer,which describes the Name property of Layer. On 2001-8-30 13:08:00, you wrote: >Hi all, > >I've got the following layer definition that will not load: > >LAYER > NAME "03D_GreensBayouPlant-WhiteOakSub_tl_structure_NE" > TYPE POINT > STATUS ON > TOLERANCE 10 > DATA "03D_GreensBayouPlant-WhiteOakSub_tl_structure_NE" > LABELITEM 'STRUCTUREI' > CLASS > name "03D_GreensBayouPlant-WhiteOakSub_tl_structure_NE" > COLOR 255 255 13 > SIZE 10 > SYMBOL 'triangle' > END #CLASS > HEADER = "queries/poles_header.htm" > QUERY > TEMPLATE "queries/poles.htm" > END #QUERY >END #LAYER > >I read that any non-alphanumeric characters have to be encased in single >or double quotes; am I missing something above? > >Thanks, > >Mark > >-- >Mark Giesbrecht, M.Sc. >GIS Programmer/Analyst >GeoArctic International Services Ltd. >mgiesbrecht at geoarctic.com http://www.geoarctic.com >phone: (403) 290-1320 fax: (403) 264-5848 ------------------------------------------------------------------------------------------- ZiZhuYuan BaishengCun No.1 NGCC Post Code, 100044 Beijing, China Phone: +86 10 86851042 Fax: +86 10 68424101 Email: std at nsdi.gov.cn ------------------------------------------------------------------------------------------- From pnaciona at gis.umn.edu Thu Aug 30 18:00:37 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Thu, 30 Aug 2001 20:00:37 -0500 Subject: [mapserver-users] mapserver & windoze NT 4 vs. 2000 question In-Reply-To: <200108301925.AA3344105528@cshore.com> Message-ID: Tanya, Regardless of whether you use IIS or Apache, you should get Windows 2000. I've never had any problems running MapServer on Win 2000, using both IIS and Apache. My reason for recommending Win2000 is simple: you'll still get updates from Microsoft for it. WinNT may not get further support once Windows XP shows up. As for problems with Win2000 and MapServer, I haven't encountered any yet. Most of the win32 questions brought before the mapserver users community pertain to misconfiguration--either during compilation (with the makefile) or with the map file. The win32 binary packages you download from the MapServer web site are being compiled in Windows 2000 and work just fine on the other Windows OSes. Now for IIS and Apache... since you can install both on your machine without paying extra, I suggest running MapServer on one and then the other. Make some comparisons and let the community know how it went. I'm always curious about the benchmarks. My guess is unless you really use it for some custom applications (e.g., integration with ASP) you really won't find much of a difference. You can prove me wrong. :) Good luck! Perry Nacionales On Thu, 30 Aug 2001, TCHaddad wrote: > > So.... > > we may be getting a new box in our office that our mapserver app.s will be moving to. I'm fishing for possible migration issues that might be significant enough to sway what we actually buy: > > Right now we have a Mapserver app. running on an NT 4.0 SP 6 workstation (not server), with Apache 1.3.20 as a service. Everything works great. > > In spec-ing out what our choices are for something new, we're being given the choice of a box with NT 4.0 again (server version this time) or with Windows 2000 (server version), for the same price. I guess both come with IIS 5.0, so Apache would no longer be mandatory. > > My questions are: do I care which of these 2 Operating systems we choose? Are there any significant issues as far as Mapserver or Mapplet are concerned? What about if we get into more XML/ the WMS stuff in 3.5? I've never had a complaint with Apache... are there Mapserver issues with IIS? > > Apologies in advance if these are dumb/moot questions, I just know nothing about Win 2k server and saw from the archive that a few people may have had issues. As long as I hear that none are major obstacles, I'm confident we can work out any minor kinks. > > Thanks to all, > > Tanya > From ed at topozone.com Thu Aug 30 18:30:19 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 30 Aug 2001 21:30:19 -0400 Subject: [mapserver-users] mapserver & windoze NT 4 vs. 2000 question Message-ID: <13858AA1A74F30419F319ACB66A9D12201918C@mercator.topozone.com> Tanya - The short answer is - it doesn't matter. I have been using MapServer on Windows 2000 (Server and Professional) for a year now. There have been absolutely ZERO issues related to Windows 2000. As Perry noted, many users have startup/setup/configuration issues on various operating systems, and some of those users were running on Windows 2000. However, the issues weren't related to the operating system in my recollection. The only exception I can think of is the matter of how IIS implements anonymous user security for Web clients; it's nothing complicated, but you need to understand how it works in order for MapServer to access the files it needs. >From a performance perspective, some enormous majority of your total runtime will happen INSIDE the MapServer CGI program; whether Apache or IIS processes your HTTP requests and passes them on to the CGI program faster or slower won't add up to a hill of beans. I cannot imagine there being a noticeable performance difference between the two unless you're creating very complex Web pages that contain very simple maps! You should probably start by moving to Apache on Windows 2000, simply because there's no good reason to change that variable - if it ain't broke, leave it alone. You can switch to IIS when you want to - if you want to - when and if there's a good reason to do that. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: TCHaddad [mailto:TCHaddad at cshore.com] Sent: Thursday, August 30, 2001 7:25 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] mapserver & windoze NT 4 vs. 2000 question So.... we may be getting a new box in our office that our mapserver app.s will be moving to. I'm fishing for possible migration issues that might be significant enough to sway what we actually buy: Right now we have a Mapserver app. running on an NT 4.0 SP 6 workstation (not server), with Apache 1.3.20 as a service. Everything works great. In spec-ing out what our choices are for something new, we're being given the choice of a box with NT 4.0 again (server version this time) or with Windows 2000 (server version), for the same price. I guess both come with IIS 5.0, so Apache would no longer be mandatory. My questions are: do I care which of these 2 Operating systems we choose? Are there any significant issues as far as Mapserver or Mapplet are concerned? What about if we get into more XML/ the WMS stuff in 3.5? I've never had a complaint with Apache... are there Mapserver issues with IIS? Apologies in advance if these are dumb/moot questions, I just know nothing about Win 2k server and saw from the archive that a few people may have had issues. As long as I hear that none are major obstacles, I'm confident we can work out any minor kinks. Thanks to all, Tanya From pkishor at GeoAnalytics.com Thu Aug 30 18:36:30 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 30 Aug 2001 20:36:30 -0500 Subject: [mapserver-users] mapserver & windoze NT 4 vs. 2000 question In-Reply-To: <200108301925.AA3344105528@cshore.com> Message-ID: <200108310138.UAA02813@lists.gis.umn.edu> Just a quick response (based on very limited Mapserver specific experience) -- there is no inherent advantage in a server as opposed to a workstation (other than paying M$ more dollars). Apache works flawlessly on workstation, while IIS requires the use of server. In my opinion (empirical evidence), the workstation is faster because it is installed with barebones services -- nothing not essential to web serving is on it. I would recommend Win2k over WinNT... seems more stable... save money on os license by getting a workstation instead of the server, use the saved money to give it gobs of ram, and/or get a dual cpu machine if you can... pk/ On Thursday, August 30, 2001, at 06:25 PM, TCHaddad wrote: > > So.... > > we may be getting a new box in our office that our mapserver app.s will > be moving to. I'm fishing for possible migration issues that might be > significant enough to sway what we actually buy: > > Right now we have a Mapserver app. running on an NT 4.0 SP 6 > workstation (not server), with Apache 1.3.20 as a service. Everything > works great. > > In spec-ing out what our choices are for something new, we're being > given the choice of a box with NT 4.0 again (server version this time) > or with Windows 2000 (server version), for the same price. I guess both > come with IIS 5.0, so Apache would no longer be mandatory. > > My questions are: do I care which of these 2 Operating systems we > choose? Are there any significant issues as far as Mapserver or Mapplet > are concerned? What about if we get into more XML/ the WMS stuff in > 3.5? I've never had a complaint with Apache... are there Mapserver > issues with IIS? > > Apologies in advance if these are dumb/moot questions, I just know > nothing about Win 2k server and saw from the archive that a few people > may have had issues. As long as I hear that none are major obstacles, > I'm confident we can work out any minor kinks. > > Thanks to all, > > Tanya -- Puneet Kishor pkishor at eidesis.org From sylvain.pasche at epfl.ch Thu Aug 30 23:59:24 2001 From: sylvain.pasche at epfl.ch (Sylvain Pasche) Date: Fri, 31 Aug 2001 08:59:24 +0200 (CEST) Subject: [mapserver-users] msQueryByPoint(): No matching record(s) Message-ID: <15247.13772.546588.303347@gargle.gargle.HOWL> Hello, I'm using php-mapscript with mapserver version 3.5. I'm having problems with the new function queryByPoint. In fact, it worked quite well when I tested it with version 3.4, but it does not work anymaore with the 3.5: it always fails and returns No matching record(s) found. In My mapfile, there is: LAYER NAME courses TYPE POINT STATUS ON DATA courses LabelItem "NOM" LabelMaxscale 99999 LabelMinscale 10000 CLASS SYMBOL 14 MAXSIZE 15 OUTLINECOLOR 255 0 0 COLOR 255 0 0 LABEL TYPE bitmap COLOR 255 0 0 BACKGROUNDCOLOR 255 220 220 POSITION AUTO END END HEADER "ID NOM ALTITUDE COORD_X COORD_Y" TOLERANCE 12 CLASSITEM "ID" CLASS EXPRESSION /./ TEMPLATE "ttt" END END and the actual code for the query: $ClickPixX = intval($c_vars['CLICK_x']); $ClickPixY = intval($c_vars['CLICK_y']); $ClickGeoX = GMapPix2Geo($ClickPixX, 0, $WidthPix, $MinX, $MaxX, 0); $ClickGeoY = GMapPix2Geo($ClickPixY, 0, $HeightPix, $MinY, $MaxY, 1); $oClickGeo = ms_newPointObj(); $oClickGeo->setXY($ClickGeoX, $ClickGeoY); $gpoQueryResults = $Map->queryByPoint($oClickGeo, MS_MULTIPLE, -1); Thanks for any help. Sylvain From thfischer at mapmedia.de Fri Aug 31 05:48:50 2001 From: thfischer at mapmedia.de (Thorsten Fischer) Date: Fri, 31 Aug 2001 14:48:50 +0200 Subject: [mapserver-users] Building Mapscript/Python In-Reply-To: <7CDD7B94357FD5119E800002A537C46E22FBC0@s5-ccr-r1.ccrs.nrcan.gc.ca> References: <7CDD7B94357FD5119E800002A537C46E22FBC0@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <01083114551500.02994@grobi> Jean-Francois, This posting is about a week old, I apologise if it was answered before but I do not follow the list very closely at the moment. > This is funny, but how do I initialize a mapObj in Python ? There's no "new" > method on any of the objects (classes in this case). I found the __init__ > function, but when I try to call it I get: > TypeError: unbound method __init__() must be called with instance as first > argument I have not built python/mapscript yet, but I know a bit of python. In Python, to create an instance of an object you do something like: map = mapObj ("/home/mapdata/legalsurveys/test.map") The method __init__ is the constructor of a class, which is always defined as something like def __init__ (self, ...) So if you do the call described above, it passes its own instance and then the arguments to the constructor. You do not call any new() function or the __init__ thing directly. > I may have to pre-decalre an "empty" object first, but I haven't found out > how to do that yet :) No. Never. This is python =) > Seems to me we really should get a Mapscript/Python doc going :P For the compiling process maybe, the above is general python knowledge. hope that helps, thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From SDunning at nephrology.org Fri Aug 31 06:50:01 2001 From: SDunning at nephrology.org (Stephan Dunning) Date: Fri, 31 Aug 2001 08:50:01 -0500 Subject: [mapserver-users] Custom Legend Message-ID: Hi, I 'm developing an interface based on the Gmap demo. I would like to set a link, via the legend window, to a legend customization page where the user can set his own thematic scale colors, # of thematic breaks, and the actual thematic range/expression. My problem is that although I've set the link with the legend image in the DrawLegend function (when I roll over the legend window the link displays in the message bar below, and my alt message appears), when I click the legend window, the main page simply reloads the current map, not the new page. If I send the link to a new window, the correct page loads, but none of the variables I need get sent through. Any input would be helpful. Thanks, Stephan From SDunning at nephrology.org Fri Aug 31 06:55:33 2001 From: SDunning at nephrology.org (Stephan Dunning) Date: Fri, 31 Aug 2001 08:55:33 -0500 Subject: [mapserver-users] Custom Legend Message-ID: I got it. I just had to redirect the "action" for the form. From steve.lime at dnr.state.mn.us Fri Aug 31 07:11:02 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 31 Aug 2001 09:11:02 -0500 Subject: [mapserver-users] Problem with layer name? Message-ID: That's more of a recommended limit. There is no hard limit in place for layer name length. The problem is more likely the '=' after HEADER. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Zhou Xu 08/30/01 07:19PM >>> I think this is the problem: "Short name for this layer. Limit is 20 characters. This name is the link between the mapfile and web interfaces that refer to this name. They must be identical. The name should be unique, unless one layer replaces another at different scales." These words come from http://mapserver.gis.umn.edu/doc/mapfile-reference.html#layer,which describes the Name property of Layer. On 2001-8-30 13:08:00, you wrote: >Hi all, > >I've got the following layer definition that will not load: > >LAYER > NAME "03D_GreensBayouPlant-WhiteOakSub_tl_structure_NE" > TYPE POINT > STATUS ON > TOLERANCE 10 > DATA "03D_GreensBayouPlant-WhiteOakSub_tl_structure_NE" > LABELITEM 'STRUCTUREI' > CLASS > name "03D_GreensBayouPlant-WhiteOakSub_tl_structure_NE" > COLOR 255 255 13 > SIZE 10 > SYMBOL 'triangle' > END #CLASS > HEADER = "queries/poles_header.htm" > QUERY > TEMPLATE "queries/poles.htm" > END #QUERY >END #LAYER > >I read that any non-alphanumeric characters have to be encased in single >or double quotes; am I missing something above? > >Thanks, > >Mark > >-- >Mark Giesbrecht, M.Sc. >GIS Programmer/Analyst >GeoArctic International Services Ltd. >mgiesbrecht at geoarctic.com http://www.geoarctic.com >phone: (403) 290-1320 fax: (403) 264-5848 ------------------------------------------------------------------------------------------- ZiZhuYuan BaishengCun No.1 NGCC Post Code, 100044 Beijing, China Phone: +86 10 86851042 Fax: +86 10 68424101 Email: std at nsdi.gov.cn ------------------------------------------------------------------------------------------- From bruno_gendron at yahoo.com Fri Aug 31 07:13:07 2001 From: bruno_gendron at yahoo.com (=?iso-8859-1?q?Bruno=20Gendron?=) Date: Fri, 31 Aug 2001 16:13:07 +0200 (CEST) Subject: [mapserver-users] php-mapscript loading error Message-ID: <20010831141307.20905.qmail@web4603.mail.yahoo.com> Hi, Just to confirm my feeling about this, I just finished compiling the latest nightly source of Mapserver-PHP-Mapscript with no apparent problem (the mapserv binary is working fine). Curiously, when I load the php-mapscript extension with dl() and test it with phpinfo for example, no problem, but as soon as I begin using mapscript inside my PHP script, boom!, I receive the following error: Warning: Unable to load dynamic library '/usr/lib/php/extensions/php_mapscript.so' - /usr/lib/php/extensions/php_mapscript.so: undefined symbol: gdImageJpeg in /var/www/html/mapserver/mapscript.php4 on line 14 My guess is that PHP and Mapscript are not using the same GD library: is this the case? Thanks ===== Bruno Gendron Consultant en TI et en geomatique / IT and GIS Consultant Lachine, QC Canada, Tel: 514-634-7024 "Quand on connait l'equilibre, on ne se passionne pour rien, on ne s'attache meme pas a la vie, car on est la vie." Emile Cioran ___________________________________________________________ Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! Yahoo! Courrier : http://fr.mail.yahoo.com From steve.lime at dnr.state.mn.us Fri Aug 31 07:15:38 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 31 Aug 2001 09:15:38 -0500 Subject: [mapserver-users] msQueryByPoint(): No matching record(s) Message-ID: How recent is your version? There have been changes made over that last 3 weeks that fix bugs releated to queries. My testing has things working very well now. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Sylvain Pasche 08/31/01 01:59AM >>> Hello, I'm using php-mapscript with mapserver version 3.5. I'm having problems with the new function queryByPoint. In fact, it worked quite well when I tested it with version 3.4, but it does not work anymaore with the 3.5: it always fails and returns No matching record(s) found. In My mapfile, there is: LAYER NAME courses TYPE POINT STATUS ON DATA courses LabelItem "NOM" LabelMaxscale 99999 LabelMinscale 10000 CLASS SYMBOL 14 MAXSIZE 15 OUTLINECOLOR 255 0 0 COLOR 255 0 0 LABEL TYPE bitmap COLOR 255 0 0 BACKGROUNDCOLOR 255 220 220 POSITION AUTO END END HEADER "ID NOM ALTITUDE COORD_X COORD_Y" TOLERANCE 12 CLASSITEM "ID" CLASS EXPRESSION /./ TEMPLATE "ttt" END END and the actual code for the query: $ClickPixX = intval($c_vars['CLICK_x']); $ClickPixY = intval($c_vars['CLICK_y']); $ClickGeoX = GMapPix2Geo($ClickPixX, 0, $WidthPix, $MinX, $MaxX, 0); $ClickGeoY = GMapPix2Geo($ClickPixY, 0, $HeightPix, $MinY, $MaxY, 1); $oClickGeo = ms_newPointObj(); $oClickGeo->setXY($ClickGeoX, $ClickGeoY); $gpoQueryResults = $Map->queryByPoint($oClickGeo, MS_MULTIPLE, -1); Thanks for any help. Sylvain From benenet at free.fr Fri Aug 31 08:05:36 2001 From: benenet at free.fr (Benoit =?ISO-8859-1?Q?V=E9ler?=) Date: Fri, 31 Aug 2001 17:05:36 +0200 Subject: [mapserver-users] gmap Message-ID: <3B8FA7C0.2060709@free.fr> Hello, I still have pbs to install Gmap : * I'm on w95, * I've installed php 4.0.5/mapserver 3.5, and php_mapscript_35.dll * It seems to work fine, as i can see the file phpinfo_mapscript.phtml properly (in the case when I comment the line dl("php_mapscript_35.dll");) * When I try to read the file gmap75.phtml, I have the error message (even when I comment every line which begin with dl(): Parse error: parse error in c:\program files\easyphp\www\gmap\gmap75.phtml on line 29 Can anyone help ?... Cheers, Benoit. From bruno_gendron at yahoo.com Fri Aug 31 08:30:07 2001 From: bruno_gendron at yahoo.com (=?iso-8859-1?q?Bruno=20Gendron?=) Date: Fri, 31 Aug 2001 17:30:07 +0200 (CEST) Subject: [mapserver-users] gmap In-Reply-To: <3B8FA7C0.2060709@free.fr> Message-ID: <20010831153007.17777.qmail@web4601.mail.yahoo.com> Hi Benoit, This looks to me like a generic PHP parse error, not a specific Mapscript problem. You should first verify that the syntax of your PHP script on line 29 is correct... Hope this helps... -- Bruno Gendron --- Benoit V?ler a ?crit?: > Hello, > > I still have pbs to install Gmap : > > * I'm on w95, > * I've installed php 4.0.5/mapserver 3.5, and > php_mapscript_35.dll > * It seems to work fine, as i can see the file > phpinfo_mapscript.phtml > properly (in the case when I comment the line > > dl("php_mapscript_35.dll");) > > * When I try to read the file gmap75.phtml, I have > the error message > (even when I comment every line which begin with > dl(): > > Parse error: parse error in c:\program > files\easyphp\www\gmap\gmap75.phtml on line 29 > > Can anyone help ?... > > Cheers, Benoit. > ___________________________________________________________ Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! Yahoo! Courrier : http://fr.mail.yahoo.com From sjohnston at satshot.com Fri Aug 31 03:35:49 2001 From: sjohnston at satshot.com (Shawn L Johnston) Date: Fri, 31 Aug 2001 10:35:49 +0000 (GMT) Subject: [mapserver-users] mapserver & windoze NT 4 vs. 2000 question In-Reply-To: <200108301925.AA3344105528@cshore.com> Message-ID: On Thu, 30 Aug 2001, TCHaddad wrote: > > So.... > > we may be getting a new box in our office that our mapserver app.s will be moving to. I'm fishing for possible migration issues that might be significant enough to sway what we actually buy: > > Right now we have a Mapserver app. running on an NT 4.0 SP 6 workstation (not server), with Apache 1.3.20 as a service. Everything works great. > > In spec-ing out what our choices are for something new, we're being given the choice of a box with NT 4.0 again (server version this time) or with Windows 2000 (server version), for the same price. I guess both come with IIS 5.0, so Apache would no longer be mandatory. > > My questions are: do I care which of these 2 Operating systems we choose? Are there any significant issues as far as Mapserver or Mapplet are concerned? What about if we get into more XML/ the WMS stuff in 3.5? I've never had a complaint with Apache... are there Mapserver issues with IIS? > > Apologies in advance if these are dumb/moot questions, I just know nothing about Win 2k server and saw from the archive that a few people may have had issues. As long as I hear that none are major obstacles, I'm confident we can work out any minor kinks. > > Thanks to all, > > Tanya > Tanya, I would suggest that your first consideration would be how roboust your new box is going to be. If it has a fast processor, and a fair amount of RAM you might wish to go with Win2k. If its a little on the slow side you may wish to go with NT 4.0. To give you a rough idea, I loaded Win2k Server on a Celeron 466 with 128 MB's of RAM and it ran very slow. On a PIII with 512 MB's of RAM it runs like a dream... Your milage may vary ;) After hardware I'd look at what types of other applications you may be running on this machine. If your going to run MS SQL you might want to look at NT 4.0 as there were a few reports of having some performance marks over Win2k. Of course, I'd be happy to send you a copy of Caldera OpenLinux ;) Good luck, Shawn From wasserburger at plan.at Fri Aug 31 09:44:10 2001 From: wasserburger at plan.at (Wolfgang W. Wasserburger) Date: Fri, 31 Aug 2001 18:44:10 +0200 Subject: [mapserver-users] SHPTREE error on NT 4.0 In-Reply-To: <06ea01c12c47$ab908580$0300000a@dhr> Message-ID: Hi all thereout, I tried to use SHPTREE and SHPNDX to index my Shapefiles. It seems to wrok, but in the end of processing it raises a Dr. Watson Error-Message, which means that it needs interaction, while I tried to index many files within a batch process. Has anyone a suggestion how to avoid it? BTW: how to build in a connection to a standard SQL-Server to map points? Greetings from Vienna, Austria Wolfgang W. Wasserburger From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Aug 31 10:29:44 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 31 Aug 2001 13:29:44 -0400 Subject: [mapserver-users] METADATA use in templates Message-ID: <7CDD7B94357FD5119E800002A537C46E22FBD6@s5-ccr-r1.ccrs.nrcan.gc.ca> Stephen, Have you added support in the templates for the METADATA tags and ways to use them? Last I remember, you mentionnned you hadn't gotten to that yet ... Thank you, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From v at w.cl Fri Aug 31 11:37:53 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Fri, 31 Aug 2001 14:37:53 -0400 (CLT) Subject: [mapserver-users] Compilation problemas In-Reply-To: <987E5CD7052ED51198F400508BA25279089EDA@vamerrifms01.gsm1900.org> from "Arthur, John" at ago 29, 2001 01:10:36 Message-ID: <20010831183753.2FE9B22998@mail.selperchile.cl> Just downloaded last CVS checkout and I'm getting this error: [v at www mapserver]# make gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT shp2img.o -L. -lmap -lgd -lpng -lz -ljpeg -lfreetype -ltiff -lproj -ljpeg -lm -o shp2img ./libmap.a(maputil.o): In function `msDrawLayer': maputil.o(.text+0x3065): undefined reference to `msDrawWMSLayer' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 [v at www mapserver]# exit (All the previous versions compiled without problem). Thanks for your help :) -- V. From morissette at dmsolutions.ca Fri Aug 31 11:53:05 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 31 Aug 2001 14:53:05 -0400 Subject: [mapserver-users] Compilation problemas References: <20010831183753.2FE9B22998@mail.selperchile.cl> Message-ID: <3B8FDD11.CB1CA1D1@dmsolutions.ca> Hi, mapwmslayer.c was added to the Makefile.in recently. Try re-running configure so that your Makefile gets updated. Daniel "Vinko Vrsalovic B." wrote: > > Just downloaded last CVS checkout and I'm getting this error: > > [v at www mapserver]# make > gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT shp2img.o -L. -lmap -lgd -lpng -lz -ljpeg -lfreetype -ltiff -lproj -ljpeg -lm -o shp2img > ./libmap.a(maputil.o): In function `msDrawLayer': > maputil.o(.text+0x3065): undefined reference to `msDrawWMSLayer' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > [v at www mapserver]# exit > > (All the previous versions compiled without problem). > > Thanks for your help :) > -- > V. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bruno_gendron at yahoo.com Fri Aug 31 12:09:56 2001 From: bruno_gendron at yahoo.com (=?iso-8859-1?q?Bruno=20Gendron?=) Date: Fri, 31 Aug 2001 21:09:56 +0200 (CEST) Subject: [mapserver-users] php-mapscript is ok but new proj4 problem In-Reply-To: <20010831141307.20905.qmail@web4603.mail.yahoo.com> Message-ID: <20010831190956.523.qmail@web4601.mail.yahoo.com> Hi again, Sorry, I have found the problem... so simple: the gd lib against which Mapserver was built had not been configured with JPEG support (libjpeg). Sorry again for this. BUT.... Is there a limit in the size of the data (number of objects) that can be reprojected with PROJ4? I have a very simple test mapfile with 2 layers, one is a polyline shapefile containing a gridline made of 5200 straight lines for a size of 500 k, the other is a polygon shapefile with around 250 polygons with a size of 6.5 megabytes. These files are in degrees, and i'm using an Eckert2 projection... When completely zoomed-out, I get an error (no map displayed at all); when I zoom-in past a certain zoom level, everything's fine. If I set the gridline layer off, no problem at any zoom level... Looks to me like a limit in the number of objects PROJ4 is able to handle at once... Sure, I could set the scale threshold of this gridline layer to eliminate the problem, but... Any advice?? -- Bruno Gendron --- Bruno Gendron a ?crit?: > Hi, > > Just to confirm my feeling about this, I just > finished > compiling the latest nightly source of > Mapserver-PHP-Mapscript with no apparent problem > (the > mapserv binary is working fine). Curiously, when I > load the php-mapscript extension with dl() and test > it > with phpinfo for example, no problem, but as soon as > I > begin using mapscript inside my PHP script, boom!, I > receive the following error: > > Warning: Unable to load dynamic library > '/usr/lib/php/extensions/php_mapscript.so' - > /usr/lib/php/extensions/php_mapscript.so: undefined > symbol: gdImageJpeg in > /var/www/html/mapserver/mapscript.php4 on line 14 > > My guess is that PHP and Mapscript are not using the > same GD library: is this the case? > > Thanks > > > ===== > Bruno Gendron > Consultant en TI et en geomatique / IT and GIS > Consultant > Lachine, QC Canada, Tel: 514-634-7024 > > "Quand on connait l'equilibre, on ne se passionne > pour rien, > on ne s'attache meme pas a la vie, car on est la > vie." > Emile Cioran > > ___________________________________________________________ > Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! > Yahoo! Courrier : http://fr.mail.yahoo.com ___________________________________________________________ Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! Yahoo! Courrier : http://fr.mail.yahoo.com From atod at gd.itb.ac.id Fri Aug 31 13:36:33 2001 From: atod at gd.itb.ac.id (setoadi, R) Date: Sat, 1 Sep 2001 03:36:33 +0700 Subject: [mapserver-users] mapserver symbol error Message-ID: I am new in mapserver. I am not successfully installing the ms_demo for mapserver 3.4 The error message is "getSymbol(): Symbol definition error. (STYLED):(6) " I think, the error caused my symbol.sym. I wish you could help me to solve the problem. Best regards Setoadi From mapserver at hotmail.com Fri Aug 31 17:49:45 2001 From: mapserver at hotmail.com (WMS Mapping) Date: Sat, 01 Sep 2001 00:49:45 +0000 Subject: [mapserver-users] Help connect data base for MySql and PHP/MapScript Message-ID: Hello I am student of the School of Geography of the University of The Andes in Venezuela and at the moment I am developing a Server Map through internet, using mapserver compiled in Linux like I modulate php/mapscrip + mapserver 3.4 + gmap and I need help to connect with a database in MySql and to obtain a report of the consultation. You achieved it and he/she wanted of being possible to obtain the necessary help. Of being possible an send example of as Connecting php/mapscrip to important serious MySql, Very grateful for help. Thank you Diego J. Padr?n _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From adsllaurentf at canl.nc Fri Aug 31 22:00:40 2001 From: adsllaurentf at canl.nc (Laurent FOULONNEAU) Date: Sat, 1 Sep 2001 16:00:40 +1100 Subject: [mapserver-users] Itemquery in Mapscript(PHP) References: <987E5CD7052ED51198F400508BA25279089EDB@vamerrifms01.gsm1900.org> Message-ID: <001701c132a3$0ccb6980$0648abca@kids> John, Is this the only layer in your mapfile ? if yes it must show nothing at the first time. Have you tried a regex expression like /./ does it show somethig ? It show all in my case... I ve tested and it work fine for me with OGR but in this case I have to protect non regex $value with " " eg : $class->setExpression($value); --> $class->setExpression("\"$value\""); or directly in the search text box . What is strange is that it did not zoom to the object ??? why ? Your error look like more a problem with your mapinfo tables. Are you sure that your VA_CNTY.dat (for the data) exist and is not corrupted. I check my mapinfo files with mapinfo proviewer before using them in mapserver. My BDF.* mapinfo files comme from mapinfo 4.5 with a column named ID My layer in map file for OGR and mapinfo file is : LAYER NAME BDF TYPE POLYGON STATUS ON CONNECTIONTYPE OGR CONNECTION "D:\Program Files\Apache Group\Apache\htdocs\dev\montdore\BDF.tab" CLASSITEM "ID" CLASS NAME "ID" END END # layer Bon courage Laurent FOULONNEAU ----- Original Message ----- From: "Arthur, John" To: "'Laurent FOULONNEAU'" ; Sent: Friday, August 31, 2001 12:44 AM Subject: RE: [mapserver-users] Itemquery in Mapscript(PHP) > Laurent, > > Thanks for your help. I must be doing something wrong, it didn't seem to > work for me. I'm using 3.5 > When I run the search the first time, the map is returned, but nothing is > highlighted or zoomed. > When I run the search the second time, an error is returned: > Warning: MapServer Error in msLoadMap(): ():(0) in c:\program > files\apache group\apache\mapinfo\htdocs\drawquery.php on line 7 > > My layer is as follows: > > LAYER > NAME countysearch > TYPE POLYGON > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "c:/mapinfo work files/VA/Counties/VA_CNTY.tab" > CLASSITEM "County" > CLASS > NAME "County" > END > END # layer > > My form is as follows: > >
> > > > > >
> > Does this not work with OGR? > > Thanks > John Arthur > > > -----Original Message----- > From: Laurent FOULONNEAU [mailto:adsllaurentf at canl.nc] > Sent: Thursday, August 30, 2001 7:48 AM > To: Arthur, John; mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Itemquery in Mapscript(PHP) > > > Could certainly be improved..... > First you have a blank image, when you use the search form, your object is > 'automagically' ;) zoomed and painted in red > > The others object are not showed. > > Laurent > > //--------------------------------------begin draw_query.php > > > dl("php_mapscript.dll"); // PHP4 > > // variables globales > $map_obj= ms_newMapObj("yourmapfile.map"); > $red = $map_obj->addColor(255, 0, 0); > > // fonctions > function DrawQueryMap() > { > GLOBAL $map_obj,$mode,$item, $qlayer, $value,$red; > if($qlayer && $mode == "itemquery" && $value && $item) > { > $layer = $map_obj->getlayerbyname($qlayer); > for ($c=0; $c < $layer->numclasses; $c++) > { > $class=$layer->getclass($c); > if ($class->name == $item) > { > $class->setExpression($value); > $class->set("color", $red); > } > } > } > > > > > > $img = $map_obj->draw(); > $url = $img->saveWebImage($img, 0, 0, -1); > echo"width > HEIGHT=$map_obj->height NAME=mainmap>"; > } > > > > ?> > > > > > >
> > value="your_class_name_in_the_map_file"> > value="your_layer_in_the_map_file"> > > >
> > > //------------------------------------- end of draw_query.php > > //-----------------------------yourmapfile.map : add a layer with a class > name and a classitem with the same name > LAYER > NAME your_layer_in_the_map_file > TYPE POLYGON > STATUS ON > DATA your_shape_file > CLASSITEM "your_class_name_in_the_map_file" > CLASS > NAME "your_class_name_in_the_map_file" > END > END # layer > //----------------end of layer definition > > > > ----- Original Message ----- > From: "Arthur, John" > To: > Sent: Thursday, August 30, 2001 7:10 AM > Subject: [mapserver-users] Itemquery in Mapscript(PHP) > > > > Sorry if this is documented somewhere, but I couldn't find anything on how > > to perform an Itemquery in PHP mapscript(not cgi). > > I would like to type a search on a field (in a point or polygon layer) and > > return a map zoomed in on that search. > > > > John Arthur > > RF Technician > > Office: (757) 490-7221 > > Cellular: (757) 692-1515 > > Email: john.arthur at voicestream.com > > _~-^-~_ > > VoiceStream > > W I R E L E S S > >