From bengt.nilsson at AEROTECHTELUB.SE Tue Mar 1 01:03:48 2005 From: bengt.nilsson at AEROTECHTELUB.SE (Nilsson Bengt) Date: Tue, 1 Mar 2005 10:03:48 +0100 Subject: WFS - Query of selected properties Message-ID: Hi, In OGC WFS spec 1.0.0 page 67, example 2, you can see a query for specific properties. In this case there is no 'FILTER' spec. Trying this example on mapserver seems to be of no effect; you get all properties. Have I missed something or is this functionality not implemented in mapserver? /Regards Bengt From temiz at DEPREM.GOV.TR Tue Mar 1 01:09:41 2005 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 1 Mar 2005 11:09:41 +0200 Subject: changing the symbol Message-ID: hello I want to change the symbol of a map interactively with php-mapscript. How can I do that ? kind regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From daniele.rizzo at SPACESPA.IT Tue Mar 1 01:13:56 2005 From: daniele.rizzo at SPACESPA.IT (Daniele Rizzo) Date: Tue, 1 Mar 2005 10:13:56 +0100 Subject: how remove inline feature layer? Message-ID: Hi All I'm using Mapserver (Python-Mapscript) in stand-alone modality. I search a method or a way to remove inline-feature-layer -> Any ideas?. Daniele Rizzo -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Tue Mar 1 01:16:44 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 1 Mar 2005 10:16:44 +0100 Subject: WFS - Query of selected properties In-Reply-To: <755108407333D643A68EF58F96C166E1041C6D@m02s003.m02.se> Message-ID: Hi, this is not implemented as yet, see also: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=675 Best regards, Bart > Hi, > > In OGC WFS spec 1.0.0 page 67, example 2, you can see a query for specific > properties. In this case there is no 'FILTER' spec. > > Trying this example on mapserver seems to be of no effect; you get all > properties. Have I missed something or is this functionality not > implemented in mapserver? > > /Regards Bengt > > From bartvde at XS4ALL.NL Tue Mar 1 01:19:05 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 1 Mar 2005 10:19:05 +0100 Subject: changing the symbol In-Reply-To: <42243155.8080008@deprem.gov.tr> Message-ID: Hi, you just change the symbol which is associated with your style, eg // Set style symbol if (is_numeric($aszSymbolName[$i])) { $oStyle->set("symbol", $aszSymbolName[$i]); } else { $oStyle->set("symbolname", $aszSymbolName[$i]); } Best regards, Bart > hello > > I want to change the symbol of a map interactively with > php-mapscript. > How can I do that ? > > kind regards > > Ahmet Temiz > > ______________________________________ > XamimeLT - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's > own > and do not necessarily represent the views and the opinions of Earthquake > Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak > T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte > degildir. > From arnulf.christl at CCGIS.DE Tue Mar 1 05:54:38 2005 From: arnulf.christl at CCGIS.DE (Arnulf B. Christl) Date: Tue, 1 Mar 2005 13:54:38 +0000 Subject: OT: Why isn't PHP in Interactive Web Mapping In-Reply-To: <4223AFD4.9080709@gmail.com> Message-ID: Wouter Schaubroeck wrote: > Hi all, > > I know, it's a bit off topic, but i thought it would be an interesting > discussion: > Nowadays, for Interactive web mapping, ASP, Coldfusion and Java Servlets > are common used as CGI replacement, but why is PHP not? I don't have to > convince you all about the powers of php... Is there a reason why php is > left behind? Is it perhaps it's open source and it depends on the > goodwill of volunteers? Or is Microsoft using its powers? Or Macromedia > (Coldfusion)? > > grtz > Wouter Schaubroeck > > Student at the Ghent University > Mabye I dont quite understand what you mean - but there are several web mapping clients out there implemented in PHP. Have a look at these two OS projects which I know to be productive and stable: http://www.mapbender.org/ http://chameleon.maptools.org/ Best, Arnulf. From m.marsella at ITWORKS.IT Tue Mar 1 05:11:58 2005 From: m.marsella at ITWORKS.IT (Marco Marsella) Date: Tue, 1 Mar 2005 14:11:58 +0100 Subject: WMS time support with a database In-Reply-To: <29879c6d050228130731bc85c@mail.gmail.com> Message-ID: Hi list, I am trying to figure out how to configure Mapserver to provide WMS server support for time dimensions using a database. I have examples that use a shapefile to map time request values to the actual filename, but I cannot find any description of how to do the same using a database table. Anybody willing to shed some light ? TIA Marco From uli.mueller at GMX.CH Tue Mar 1 05:48:31 2005 From: uli.mueller at GMX.CH (uli mueller [geOps]) Date: Tue, 1 Mar 2005 14:48:31 +0100 Subject: WMS time support with a database In-Reply-To: <3d261b11558976860f17132e7922832b@itworks.it> Message-ID: Marco There is the documentation at http://mapserver.gis.umn.edu/doc44/wms-time-support-howto.html For PostGIS I used the following settings at layer level: LAYER ... METADATA ...other metadata ... "wms_timeextent" "1994-12-31/2004-12-31" "wms_timedefault" "1994-12-31/2004-12-31" "wms_timeitem" "MyDateField" END ... DATA "the_geom from MyView USING UNIQUE oid USING SRID=4326" ... END "MyView" is a PostgreSQL view containing the geometry and a field named MyDateField of type "timestamp with time zone". However any other date data type should work as well. I query this WMS through http://myhost/my.wms?VERSION=1.1.1&REQUEST=GetMap&LAYERS=MyLayer&TIME=2002/2004.... !?! Seems as if with TIME support any setting in the layer's FILTER parameter are overridden. I had posted this yesterday (Message "WMS TIME conflict with FILTER") and am still hoping to get an answer on this. Uli Marco Marsella wrote: > Hi list, > > I am trying to figure out how to configure Mapserver to provide WMS > server support for time dimensions using a database. > > I have examples that use a shapefile to map time request values to the > actual filename, but I cannot find any description of how to do the > same using a database table. > > Anybody willing to shed some light ? > > TIA > > Marco > > -- geOps GeoInformatics D-79100 Freiburg From mhbasa at YAHOO.COM Tue Mar 1 05:55:55 2005 From: mhbasa at YAHOO.COM (Mario H. Basa) Date: Tue, 1 Mar 2005 05:55:55 -0800 Subject: Java MapScript issues Servlet In-Reply-To: <1109604702.4223395e6b700@webmail.prometeo.it> Message-ID: Hello Umberto, I was using an apache 2, but the php was compiled as a CGI, so the slow performance can be attributed I think to the overhead of forking and starting a new process. I'll try and benchmark a DSO next. It will be interesting to see the results of a fully-threaded php mapscript. mario. --- Umberto Nicoletti wrote: > Quoting "Mario H. Basa" : > > > Hi. > > > > >From my experience, Java Mapscript still has some > > problems with threads, and can still easily bring > down > > Tomcat even with the thread compile option is set. > > Please correct me if I am wrong. > > > > Yes, that is probably correct, although it is not > *that easy*. I have also > stressed mapscript with jmeter and actually not > found errors, but I did not > cover querying. > That is why I voted for improved thread safety when > the devs showed their wishlists. > > > > What I did was I synchronized the class that does > the > > map processing, and now my test app can survive > > benchmarking with JMeter. Here are my results as > > compared with a simillar PHP CGI program: > > > > This is definitely a correct workaround. > > > 4 threads (requests) per second, repeated 25 times > > > > PHP Mapscript 1.8 to 1.9 pages per second > > Java Mapscript 2.3 to 2.5 pages per second > > > > I was honestly surprised with the result and it is > > encouraging me to work with Java Mapscript even in > a > > synchronized mode. > > > > Were you using apache 1.3 or 2.x in the php tests? > Apache 1.3 uses a fork based > model, that while being extremely safe and sound is > not as fast as a threaded > model. Apache 2.x has threads and should be faster. > > Regards, > Umberto > > > mario > > yokohama,japan > > > > > > --- Joseph Miller wrote: > > > > > Umberto, > > > > > > 1)I don't think I compiled specifically with > > > multi-threading because it > > > wasn't an option listed in the nmake.opt for > > > Microsoft Visual C++ options > > > file??? The last I heard multithreading was not > > > even on the horizon for > > > mapserver and yet I see it in the Unix build > options > > > file? What do I need > > > to do this? > > > > > > 2)I tried both options you mentioned, I had the > > > problem when passed the > > > same mapObj from request to request and stored > it in > > > the session and when I > > > set it to null after every request and > instantiated > > > it and assigned > > > attributes based on other variables stored in > the > > > requests and sessions? > > > I'm assuming the latter is preferred? > > > > > > Thanks, > > > Joe Miller > > > > > > On Mon, 28 Feb 2005 09:44:21 +0100, Umberto > > > Nicoletti > > > wrote: > > > > > > >Did you enable threads support? > > > >Java, and especially servlets, are definitely > > > highly concurrent > > > >environment, so you have to enable thread > support > > > when compiling > > > >mapserver and mapscript. One very problematic > spot > > > with regards to > > > >threads is in fact the parser of .map files. > > > > > > > >Do you attempt to reuse the same mapObj across > > > multiple requests or just > > > >create one and dispose as soon as you are done > > > within a single request? > > > > > > > >HTH, > > > >Umberto > > > > > > > > > > > >On Mon, 2005-02-28 at 00:53 -0500, Miller > Joseph > > > wrote: > > > >> Hi, > > > >> I'm having a baffling problem with a nightly > > > build of Java Mapscript > > > >> from about a month ago that I am running on > > > Windows 2000 with Tomcat > > > >> 5.5.4. > > > >> > > > >> The symptom I see is that I can generate the > > > default image but after the > > > >> fourth or fifth time that I pass a new > envelope > > > to change the extent of > > > >> the image I get the following error: > > > >> > > > >> The relevant part of the stack trace: > > > >> java.lang.UnknownError: Failed to draw layer > > > named 'world'. > > > >> at > > > > > > edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native > > > Method) > > > >> at > > > > edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) > > > >> > > > >> Occasionally I'll get a flex scanner error or > > > tomcat will crash with an > > > >> Exception_Access_Violation memmove error > similar > > > to the one referred to > > > >> here: > > > >> > > > > > > http://forum.java.sun.com/thread.jspa?forumID=52&messageID=1124599&threa > > > >> dID=286832 > > > >> > > > >> All of this happens whether I instatiate new > > > instances of the mapObj and > > > >> set everything to null or if I use the same > > > mapObj throughout and only > > > >> after a few passes, suggesting to me that > there > > > is a memory issue > > > >> somewhere. I can pass on some specific code, > but > > > all I am really doing > > > >> is creating new envelopes to store extents > and > > > then assigning them to > > > >> the mapObj or extracting the corner > coordinates > > > and setting the extent > > > >> with them. > > > >> > > > >> I've been fighting this for a frustrating > week > > > now. Does anyone have > > > >> any advice? > > > >> > > > >> Thanks, > > > >> Joe Miller > > > >-- > > > >Umberto Nicoletti > > > At that point it > > > will > > > >+390415701366 unicoletti at prometeo.it > > > compile, but segfault, as > > > it should.. > > > >Prometeo S.R.L. The Software Experience > > > > > > Umberto, > > > > > > 1)I don't think I compiled specifically with > > > multi-threading because it > > > wasn't an option listed in the nmake.opt for > > > Microsoft Visual C++ options > > > file??? The last I heard multithreading was not > > > even on the horizon for > > > mapserver and yet I see it in the Unix build > options > > > file? What do I need > > > to do this? > > > > > > 2)I tried both options you mentioned, I had the > > > problem when passed the > > > same mapObj from request to request and stored > it in > > > the session and when I > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From sgillies at FRII.COM Tue Mar 1 06:24:46 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 1 Mar 2005 07:24:46 -0700 Subject: how remove inline feature layer? In-Reply-To: Message-ID: On Mar 1, 2005, at 2:13 AM, Daniele Rizzo wrote: > This is a multi-part message in MIME format. > --------------040400080005030902040201 > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Content-Transfer-Encoding: 7bit > > Hi All > > I'm using Mapserver (Python-Mapscript) in stand-alone modality. > I search a method or a way to remove inline-feature-layer -> Any > ideas?. > > Daniele Rizzo > Daniele, There is not any method to remove features of an inline layer. You can remove the entire layer by using mapObj::removeLayer. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sgillies at FRII.COM Tue Mar 1 06:32:10 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 1 Mar 2005 07:32:10 -0700 Subject: Java MapScript issues Servlet In-Reply-To: Message-ID: Joe, You do have the option to turn on thread safety, it's just that nmake.opt is incomplete. Its authors are not multi-threading users. Make sure that the USE_THREAD macro is defined when compiling mapthread.c. It's as simple as that. cheers, Sean On Feb 28, 2005, at 8:41 PM, Miller Joseph wrote: > This is a multi-part message in MIME format. > > ------_=_NextPart_001_01C51E11.40BE0E8D > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > To All, > Umberto and Mario are correct about the problems I've had. They are = > definitely related to the lack of thread safety in my mapscript.dll > that = > I built using MS Visual C tools. Can anyone tell me why I don't have = > the option to turn on thread safety in nmake.opt (unlike in *Nix > flavors = > of the build option files)? Was it an oversight, future feature or = > excluded because it is included by default whenever mapserver is built > = > in Windows and there is no need to turn it off? > =20 > Thanks, > Joe Miller > > ________________________________ > > From: UMN MapServer Users List on behalf of Umberto Nicoletti > Sent: Mon 2/28/2005 10:31 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Java MapScript issues Servlet > > > > Quoting "Mario H. Basa" : > >> Hi. >> >>> From my experience, Java Mapscript still has some >> problems with threads, and can still easily bring down >> Tomcat even with the thread compile option is set. >> Please correct me if I am wrong. >> > > Yes, that is probably correct, although it is not *that easy*. I have = > also > stressed mapscript with jmeter and actually not found errors, but I > did = > not > cover querying. > That is why I voted for improved thread safety when the devs showed = > their wishlists. > > >> What I did was I synchronized the class that does the >> map processing, and now my test app can survive >> benchmarking with JMeter. Here are my results as >> compared with a simillar PHP CGI program: >> > > This is definitely a correct workaround. > >> 4 threads (requests) per second, repeated 25 times >> >> PHP Mapscript 1.8 to 1.9 pages per second >> Java Mapscript 2.3 to 2.5 pages per second >> >> I was honestly surprised with the result and it is >> encouraging me to work with Java Mapscript even in a >> synchronized mode. >> > > Were you using apache 1.3 or 2.x in the php tests? Apache 1.3 uses a = > fork based > model, that while being extremely safe and sound is not as fast as a = > threaded > model. Apache 2.x has threads and should be faster. > > Regards, > Umberto > >> mario >> yokohama,japan >> >> >> --- Joseph Miller wrote: >> >>> Umberto, >>> >>> 1)I don't think I compiled specifically with >>> multi-threading because it >>> wasn't an option listed in the nmake.opt for >>> Microsoft Visual C++ options >>> file??? The last I heard multithreading was not >>> even on the horizon for >>> mapserver and yet I see it in the Unix build options >>> file? What do I need >>> to do this? >>> >>> 2)I tried both options you mentioned, I had the >>> problem when passed the >>> same mapObj from request to request and stored it in >>> the session and when I >>> set it to null after every request and instantiated >>> it and assigned >>> attributes based on other variables stored in the >>> requests and sessions? >>> I'm assuming the latter is preferred? >>> >>> Thanks, >>> Joe Miller >>> >>> On Mon, 28 Feb 2005 09:44:21 +0100, Umberto >>> Nicoletti >>> wrote: >>> >>>> Did you enable threads support? >>>> Java, and especially servlets, are definitely >>> highly concurrent >>>> environment, so you have to enable thread support >>> when compiling >>>> mapserver and mapscript. One very problematic spot >>> with regards to >>>> threads is in fact the parser of .map files. >>>> >>>> Do you attempt to reuse the same mapObj across >>> multiple requests or just >>>> create one and dispose as soon as you are done >>> within a single request? >>>> >>>> HTH, >>>> Umberto >>>> >>>> >>>> On Mon, 2005-02-28 at 00:53 -0500, Miller Joseph >>> wrote: >>>>> Hi, >>>>> I'm having a baffling problem with a nightly >>> build of Java Mapscript >>>>> from about a month ago that I am running on >>> Windows 2000 with Tomcat >>>>> 5.5.4. >>>>> >>>>> The symptom I see is that I can generate the >>> default image but after the >>>>> fourth or fifth time that I pass a new envelope >>> to change the extent of >>>>> the image I get the following error: >>>>> >>>>> The relevant part of the stack trace: >>>>> java.lang.UnknownError: Failed to draw layer >>> named 'world'. >>>>> at >>> >> edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native >>> Method) >>>>> at >>> edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) >>>>> >>>>> Occasionally I'll get a flex scanner error or >>> tomcat will crash with an >>>>> Exception_Access_Violation memmove error similar >>> to the one referred to >>>>> here: >>>>> >>> >> = > http://forum.java.sun.com/thread.jspa? > forumID=3D52&messageID=3D1124599&th= > rea >>>>> dID=3D286832 >>>>> >>>>> All of this happens whether I instatiate new >>> instances of the mapObj and >>>>> set everything to null or if I use the same >>> mapObj throughout and only >>>>> after a few passes, suggesting to me that there >>> is a memory issue >>>>> somewhere. I can pass on some specific code, but >>> all I am really doing >>>>> is creating new envelopes to store extents and >>> then assigning them to >>>>> the mapObj or extracting the corner coordinates >>> and setting the extent >>>>> with them. >>>>> >>>>> I've been fighting this for a frustrating week >>> now. Does anyone have >>>>> any advice? >>>>> >>>>> Thanks, >>>>> Joe Miller >>>> -- >>>> Umberto Nicoletti >>> At that point it >>> will >>>> +390415701366 unicoletti at prometeo.it >>> compile, but segfault, as >>> it should.. >>>> Prometeo S.R.L. The Software Experience >>> >>> Umberto, >>> >>> 1)I don't think I compiled specifically with >>> multi-threading because it >>> wasn't an option listed in the nmake.opt for >>> Microsoft Visual C++ options >>> file??? The last I heard multithreading was not >>> even on the horizon for >>> mapserver and yet I see it in the Unix build options >>> file? What do I need >>> to do this? >>> >>> 2)I tried both options you mentioned, I had the >>> problem when passed the >>> same mapObj from request to request and stored it in >>> the session and when I >>> set it to null after every request and instantiated >>> it and assigned >>> attributes based on other variables stored in the >>> requests and sessions? >>> I'm assuming the latter is preferred? >>> >>> Thanks, >>> Joe Miller >>> >> >> >> >> >> __________________________________ >> Do you Yahoo!? >> Yahoo! Sports - Sign up for Fantasy Baseball. >> http://baseball.fantasysports.yahoo.com/ >> > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From irenutxa2000 at YAHOO.ES Tue Mar 1 07:20:47 2005 From: irenutxa2000 at YAHOO.ES (=?iso-8859-1?q?Irene=20P=E9rez?=) Date: Tue, 1 Mar 2005 16:20:47 +0100 Subject: Read DWG Files Message-ID: Can Mapserver read DWG files? I've read there are libraries colled "opendwg" that can do that. How should I have to configure them? What would the map file look like? Thanks a lot. --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Tue Mar 1 07:20:58 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 1 Mar 2005 10:20:58 -0500 Subject: WMS TIME conflict with FILTER In-Reply-To: <42239CE3.8080108@gmx.ch> Message-ID: Hi There, I have enetered a bug on this (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1261). I will do the corrections later today. You could add yourself in CC to this bug to follow any developments on this. Best Regrads, uli mueller [geOps] wrote: > Hi > > I finally got some nice WMS with time support running. Now I fell into > the problem that any time filter seems to override everything in the > PostGIS layer's FILTER setting. > I had read most of http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=872 > so I understand that WMS time support is done (mis)using the FILTER > parameter. However it would be preferrable if any existing FILTER could > persist. Why not combine an existing filter and a WMS time filter > through SQL-AND? > > Uli > > -- > geOps GeoInformatics > D-79100 Freiburg > From schick at SDAC.HANNOVER.BGR.DE Tue Mar 1 07:41:45 2005 From: schick at SDAC.HANNOVER.BGR.DE (Agneta Schick) Date: Tue, 1 Mar 2005 16:41:45 +0100 Subject: file system growing with open files Message-ID: > Even though it may not solve the problem, is there any reason you can't > upgrade to MS 4.4 so, if needed, a bug can be posted against the current > base? > No bug posting necessary - we upgraded to MapServer 4.4.1 and all problems with open files were gone! Thanks for your advice. Agneta From lisi at MYDELRAYBEACH.COM Tue Mar 1 09:00:58 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Tue, 1 Mar 2005 12:00:58 -0500 Subject: A confused Network Admin Message-ID: Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don't understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any .dll's to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I'm very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll's that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';" Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to "Put the MapSurfer directory somewhere accessible to the web." This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Tue Mar 1 09:17:43 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 1 Mar 2005 12:17:43 -0500 Subject: Read DWG Files In-Reply-To: <20050301152047.82197.qmail@web41305.mail.yahoo.com> Message-ID: On Tue, 1 Mar 2005 16:20:47 +0100, Irene P?rez wrote: > Can Mapserver read DWG files? > I've read there are libraries colled "opendwg" that can do that. How should > I have to configure them? > What would the map file look like? > Thanks a lot. Irene, MapServer and OGR do not support DWG files at this time. There has been talk of using the OpenDWG libraries to add it, but that work has not been done. And I would add it would still be a big job given the complexity of DWG (and DXF) data. For now, I would suggest using some other software to convert to a supported format. The FME software from Safe Software has excellent DWG support and is useful for all sorts of stuff, though it is a bit pricey. http://www.safe.com/ I'm sure there are other options, at least for DXF if you can use autocad to convert into DXF format. 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 sgillies at FRII.COM Tue Mar 1 09:32:16 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 1 Mar 2005 10:32:16 -0700 Subject: Java MapScript issues Servlet In-Reply-To: <7585F83BC6F1DB4195D8496D9C68963A122E12@MCLNEXVS08.resource.ds.bah.com> Message-ID: Joe, Make sure to clean up the existing .obj files, sometimes we all forget this. If you did, nevermind :) As soon as you can start to isolate the problems, enter them into MapServer's bugzilla http://mapserver.gis.umn.edu/bugs/enter_bug.cgi under the Mapscript-SWIG component. That's the best way for us to team up on the bugs. cheers, Sean On Mar 1, 2005, at 10:19 AM, Miller Joseph wrote: > Thanks Sean.? When you say defined I'm assuming that you mean that a > variable equal to > > "-DUSE_THREAD" should be included as one of the MS_DEFS at the end of > the nmake.opt file?? I did that and the build seemed to run fine.? If > that is all I need to do, then I am still having memory problems that > I will pass on to Umberto. > > Joe Miller > > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Tue 3/1/2005 9:32 AM > To: Miller Joseph > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Java MapScript issues Servlet > > > Joe, > > You do have the option to turn on thread safety, it's just that? > nmake.opt is incomplete.? Its authors are not multi-threading users.?? > Make sure that the USE_THREAD macro is defined when compiling? > mapthread.c.? It's as simple as that. > > cheers, > Sean > > On Feb 28, 2005, at 8:41 PM, Miller Joseph wrote: > > > This is a multi-part message in MIME format. > > > > ------_=_NextPart_001_01C51E11.40BE0E8D > > Content-Type: text/plain; > >???????? charset="iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > To All, > > Umberto and Mario are correct about the problems I've had.? They are > = > > definitely related to the lack of thread safety in my mapscript.dll? > > that = > > I built using MS Visual C tools.? Can anyone tell me why I don't > have = > > the option to turn on thread safety in nmake.opt (unlike in *Nix? > > flavors = > > of the build option files)?? Was it an oversight, future feature or = > > excluded because it is included by default whenever mapserver is > built? > > = > > in Windows and there is no need to turn it off? > > =20 > > Thanks, > > Joe Miller > > > > ________________________________ > > > > From: UMN MapServer Users List on behalf of Umberto Nicoletti > > Sent: Mon 2/28/2005 10:31 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Java MapScript issues Servlet > > > > > > > > Quoting "Mario H. Basa" : > > > >> Hi. > >> > >>> From my experience, Java Mapscript still has some > >> problems with threads, and can still easily bring down > >> Tomcat even with the thread compile option is set. > >> Please correct me if I am wrong. > >> > > > > Yes, that is probably correct, although it is not *that easy*. I > have = > > also > > stressed mapscript with jmeter and actually not found errors, but I? > > did = > > not > > cover querying. > > That is why I voted for improved thread safety when the devs showed = > > their wishlists. > > > > > >> What I did was I synchronized the class that does the > >> map processing, and now my test app can survive > >> benchmarking with JMeter. Here are my results as > >> compared with a simillar PHP CGI program: > >> > > > > This is definitely a correct workaround. > > > >> 4 threads (requests) per second, repeated 25 times > >> > >> PHP Mapscript 1.8 to 1.9 pages per second > >> Java Mapscript 2.3 to 2.5 pages per second > >> > >> I was honestly surprised with the result and it is > >> encouraging me to work with Java Mapscript even in a > >> synchronized mode. > >> > > > > Were you using apache 1.3 or 2.x in the php tests? Apache 1.3 uses a > = > > fork based > > model, that while being extremely safe and sound is not as fast as a > = > > threaded > > model. Apache 2.x has threads and should be faster. > > > > Regards, > > Umberto > > > >> mario > >> yokohama,japan > >> > >> > >> --- Joseph Miller wrote: > >> > >>> Umberto, > >>> > >>> 1)I don't think I compiled specifically with > >>> multi-threading because it > >>> wasn't an option listed in the nmake.opt for > >>> Microsoft Visual C++? options > >>> file???? The last I heard multithreading was not > >>> even on the horizon for > >>> mapserver and yet I see it in the Unix build options > >>> file?? What do I need > >>> to do this? > >>> > >>> 2)I tried both options you mentioned, I had the > >>> problem when passed the > >>> same mapObj from request to request and stored it in > >>> the session and when I > >>> set it to null after every request and instantiated > >>> it and assigned > >>> attributes based on other variables stored in the > >>> requests and sessions? > >>> I'm assuming the latter is preferred? > >>> > >>> Thanks, > >>> Joe Miller > >>> > >>> On Mon, 28 Feb 2005 09:44:21 +0100, Umberto > >>> Nicoletti > >>> wrote: > >>> > >>>> Did you enable threads support? > >>>> Java, and especially servlets, are definitely > >>> highly concurrent > >>>> environment, so you have to enable thread support > >>> when compiling > >>>> mapserver and mapscript. One very problematic spot > >>> with regards to > >>>> threads is in fact the parser of .map files. > >>>> > >>>> Do you attempt to reuse the same mapObj across > >>> multiple requests or just > >>>> create one and dispose as soon as you are done > >>> within a single request? > >>>> > >>>> HTH, > >>>> Umberto > >>>> > >>>> > >>>> On Mon, 2005-02-28 at 00:53 -0500, Miller Joseph > >>> wrote: > >>>>> Hi, > >>>>> I'm having a baffling problem with a nightly > >>> build of Java Mapscript > >>>>> from about a month ago that I am running on > >>> Windows 2000 with Tomcat > >>>>> 5.5.4. > >>>>> > >>>>> The symptom I see is that I can generate the > >>> default image but after the > >>>>> fourth or fifth time that I pass a new envelope > >>> to change the extent of > >>>>> the image I get the following error: > >>>>> > >>>>> The relevant part of the stack trace: > >>>>> java.lang.UnknownError: Failed to draw layer > >>> named 'world'. > >>>>>???????? at > >>> > >> edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native > >>> Method) > >>>>>???????? at > >>> edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) > >>>>> > >>>>> Occasionally I'll get a flex scanner error or > >>> tomcat will crash with an > >>>>> Exception_Access_Violation memmove error similar > >>> to the one referred to > >>>>> here: > >>>>> > >>> > >> = > > http://forum.java.sun.com/thread.jspa? > > forumID=3D52&messageID=3D1124599&th= > > rea > >>>>> dID=3D286832 > >>>>> > >>>>> All of this happens whether I instatiate new > >>> instances of the mapObj and > >>>>> set everything to null or if I use the same > >>> mapObj throughout and only > >>>>> after a few passes, suggesting to me that there > >>> is a memory issue > >>>>> somewhere.? I can pass on some specific code, but > >>> all I am really doing > >>>>> is creating new envelopes to store extents and > >>> then assigning them to > >>>>> the mapObj or extracting the corner coordinates > >>> and setting the extent > >>>>> with them. > >>>>> > >>>>> I've been fighting this for a frustrating week > >>> now.? Does anyone have > >>>>> any advice? > >>>>> > >>>>> Thanks, > >>>>> Joe Miller > >>>> -- > >>>> Umberto Nicoletti > >>> At that point it > >>> will > >>>> +390415701366?? unicoletti at prometeo.it > >>> compile, but segfault, as > >>> it should.. > >>>> Prometeo S.R.L. The Software Experience > >>> > >>> Umberto, > >>> > >>> 1)I don't think I compiled specifically with > >>> multi-threading because it > >>> wasn't an option listed in the nmake.opt for > >>> Microsoft Visual C++? options > >>> file???? The last I heard multithreading was not > >>> even on the horizon for > >>> mapserver and yet I see it in the Unix build options > >>> file?? What do I need > >>> to do this? > >>> > >>> 2)I tried both options you mentioned, I had the > >>> problem when passed the > >>> same mapObj from request to request and stored it in > >>> the session and when I > >>> set it to null after every request and instantiated > >>> it and assigned > >>> attributes based on other variables stored in the > >>> requests and sessions? > >>> I'm assuming the latter is preferred? > >>> > >>> Thanks, > >>> Joe Miller > >>> > >> > >> > >> > >> > >> __________________________________ > >> Do you Yahoo!? > >> Yahoo! Sports - Sign up for Fantasy Baseball. > >> http://baseball.fantasysports.yahoo.com/ > >> > > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From ed at TOPOZONE.COM Tue Mar 1 09:47:25 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 1 Mar 2005 12:47:25 -0500 Subject: A confused Network Admin Message-ID: Christine - It sounds like you're off to a good start! I'll try to contribute, and there are others with different expertise who can chime in as well. Be sure to send replies to the entire list, not just to the sender, since you've got a number of questions that are best answered by a few different people. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? Answer: No, there is no ISAPI version for IIS. Using MapServer as a CGI will work fine. Since you got the appropriate error message, you've got the permissions (for executing CGI, etc.) set up properly. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Questions: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. You're doing very well for having a lot of new stuff thrown at you. Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Tuesday, March 01, 2005 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A confused Network Admin Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don't understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any .dll's to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I'm very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll's that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';" Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to "Put the MapSurfer directory somewhere accessible to the web." This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lisi at MYDELRAYBEACH.COM Tue Mar 1 12:18:50 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Tue, 1 Mar 2005 15:18:50 -0500 Subject: A confused Network Admin Message-ID: Ed, Thanks for your support on this. You seem to be the only one who responds to any of my inquiries so I am grateful! In response... Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Response: Per your suggestion, I have changed the install to CGI. I guess all that work setting up PHP as an ISAPI was a good learning experience! It is still working set up as a CGI. Question: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. Response: Thanks for the input, Ed, but I don't think I'll understand this whole setup until the consultant comes in and actually makes it all work! I hope someone else will respond to my questions. I still don't know where to put the files and how to test them. You're doing very well for having a lot of new stuff thrown at you. Thanks. The pat on the back feels good after all this stress! Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . Microsoft talks about the fact that with CGI's the executable is memory resident as many times as it is being run. So, for example, if 5 users are running the CGI then it is taking up 5x the memory. That's the way I understand it from Microsoft's standpoint but I could be wrong. I've read so much in the last two weeks that my brain is a bit mushy. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Tuesday, March 01, 2005 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - It sounds like you're off to a good start! I'll try to contribute, and there are others with different expertise who can chime in as well. Be sure to send replies to the entire list, not just to the sender, since you've got a number of questions that are best answered by a few different people. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? Answer: No, there is no ISAPI version for IIS. Using MapServer as a CGI will work fine. Since you got the appropriate error message, you've got the permissions (for executing CGI, etc.) set up properly. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Questions: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. You're doing very well for having a lot of new stuff thrown at you. Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Tuesday, March 01, 2005 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A confused Network Admin Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don't understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any .dll's to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I'm very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll's that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';") Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to "Put the MapSurfer directory somewhere accessible to the web." This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Tue Mar 1 12:21:43 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 1 Mar 2005 13:21:43 -0700 Subject: Problem with Mapserver 4.4.1 compiled with Visual Studio .NET Message-ID: David, This is more of a problem report too (any other VS .NET mapserver developers out there?) I can't get the mapserver package at http://mapserver.gis.umn.edu/win32bin/ms441pg.zip to work either (after following the instructions included with the package). Even a simple: shp2img -m C:\inetpub\wwwroot\workshop\itasca.map will cause a crash. The workshop demo will not work at all with the packaged mapserv.exe (it will crash right away). On the up-side, I successfully compiled MapServer with Visual Studio .NET (VC 7.1) and ran the workshop demo. Of the five options that the workshop's index.html gives, all worked except for the "-Adds frames" option, which caused mapserv.exe to crash after it had rendered the map, legend and reference graphics, right after generating the html: but before it could generate: In this test I was using IE 6.0 and Win2k with all the current updates applied. However, using IE 6 from another Win2k computer (no updates applied) worked fine! I then applied the IE and Win2k updates and got the same problem. So I expect this is related to IE 6 / Win2k updates coupled with using frames and/or javascript. Brent Fraser ----- Original Message ----- From: "David Ratcliffe" To: Sent: Monday, February 28, 2005 7:17 PM Subject: [UMN_MAPSERVER-USERS] Problem with Mapserver 4.4.1 compiled with Visual Studio .NET This post is more of a report than a question, as I seem to have solved the problem. I've recently been trying to get Mapserver version 4 .4.1 up and running with Tomcat 5. I started off by using the latest versions of the Win32 binaries as linked from the Mapserver website. On nearly every occasion (once a query string was passed), mapserv.exe terminated with the error: The instruction at '0x77f88216' referenced memory at '0x00000010'. The memory could not be "written". I then tried compiling the version 4.4.1 source using Visual Studio .NET. I encountered exactly the same problem. Debugging mapserv.exe usually brought me to a call to 'rewind' in the function 'int msAddImageSymbol(symbolSetObj *symbolset, char *filename)', defined within mapsymbol.c on line 488 (of version 4.4.1 of the source). However, surely the problem can't be there... I can't see a problem with the code at that location. I believe it is more likely that there is a problem with Visual Studio .NET 2003, because when I tried again, compiling everything with Visual Studio (NOT the .NET version), everything worked first time without any problems. Have the Win32 binaries linked from the Mapserver website been compiled using Visual Studio .NET? They're simply not working on my system. Here's my setup: OS: Windows XP Professional with SP2 Web Server: Apache Tomcat/5.0.28 Mapserver Version: 4.4.1 (Source with only the required libs) DE: Microsoft Visual Studio 6 (previously Microsoft Visual Studio .NET 2003) -David From murilo.yoshida at AGX.COM.BR Tue Mar 1 12:29:28 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Tue, 1 Mar 2005 17:29:28 -0300 Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin In-Reply-To: Message-ID: Christine, The php_mapscript_44.dll file should be put on the extension_dir path, that is set on the php.ini file. -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:19 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Ed, Thanks for your support on this. You seem to be the only one who responds to any of my inquiries so I am grateful! In response Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Response: Per your suggestion, I have changed the install to CGI. I guess all that work setting up PHP as an ISAPI was a good learning experience! It is still working set up as a CGI. Question: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. Response: Thanks for the input, Ed, but I don?t think I?ll understand this whole setup until the consultant comes in and actually makes it all work! I hope someone else will respond to my questions. I still don?t know where to put the files and how to test them. You're doing very well for having a lot of new stuff thrown at you. Thanks. The pat on the back feels good after all this stress! Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . Microsoft talks about the fact that with CGI?s the executable is memory resident as many times as it is being run. So, for example, if 5 users are running the CGI then it is taking up 5x the memory. That?s the way I understand it from Microsoft?s standpoint but I could be wrong. I?ve read so much in the last two weeks that my brain is a bit mushy. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Tuesday, March 01, 2005 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - It sounds like you're off to a good start! I'll try to contribute, and there are others with different expertise who can chime in as well. Be sure to send replies to the entire list, not just to the sender, since you've got a number of questions that are best answered by a few different people. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? Answer: No, there is no ISAPI version for IIS. Using MapServer as a CGI will work fine. Since you got the appropriate error message, you've got the permissions (for executing CGI, etc.) set up properly. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Questions: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. You're doing very well for having a lot of new stuff thrown at you. Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Tuesday, March 01, 2005 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A confused Network Admin Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don?t understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any .dll?s to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the ?No query information to decode. QUERY_STRING is set, but empty.? message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I?m very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll?s that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';?) Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to ?Put the MapSurfer directory somewhere accessible to the web.? This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lisi at MYDELRAYBEACH.COM Tue Mar 1 12:48:20 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Tue, 1 Mar 2005 15:48:20 -0500 Subject: A confused Network Admin Message-ID: Murilo, Thanks so much for the info. I am running PHP5 so I put the .dll in the root folder, which is where the php.ini is looking for it. I also added a Windows Extension in the Windows Extensions section of the ini. How do I test this? I know there's a command like switch I can run to see if all of the extensions are working but I can't remember it. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 3:29 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The php_mapscript_44.dll file should be put on the extension_dir path, that is set on the php.ini file. -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:19 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Ed, Thanks for your support on this. You seem to be the only one who responds to any of my inquiries so I am grateful! In response... Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Response: Per your suggestion, I have changed the install to CGI. I guess all that work setting up PHP as an ISAPI was a good learning experience! It is still working set up as a CGI. Question: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. Response: Thanks for the input, Ed, but I don't think I'll understand this whole setup until the consultant comes in and actually makes it all work! I hope someone else will respond to my questions. I still don't know where to put the files and how to test them. You're doing very well for having a lot of new stuff thrown at you. Thanks. The pat on the back feels good after all this stress! Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . Microsoft talks about the fact that with CGI's the executable is memory resident as many times as it is being run. So, for example, if 5 users are running the CGI then it is taking up 5x the memory. That's the way I understand it from Microsoft's standpoint but I could be wrong. I've read so much in the last two weeks that my brain is a bit mushy. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Tuesday, March 01, 2005 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - It sounds like you're off to a good start! I'll try to contribute, and there are others with different expertise who can chime in as well. Be sure to send replies to the entire list, not just to the sender, since you've got a number of questions that are best answered by a few different people. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? Answer: No, there is no ISAPI version for IIS. Using MapServer as a CGI will work fine. Since you got the appropriate error message, you've got the permissions (for executing CGI, etc.) set up properly. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Questions: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. You're doing very well for having a lot of new stuff thrown at you. Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Tuesday, March 01, 2005 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A confused Network Admin Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don't understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any ..dll's to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I'm very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll's that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';") Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to "Put the MapSurfer directory somewhere accessible to the web." This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From murilo.yoshida at AGX.COM.BR Tue Mar 1 13:01:35 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Tue, 1 Mar 2005 18:01:35 -0300 Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin In-Reply-To: Message-ID: Christine, This is a generic test that php provides when you create a extension... It should work for all extensions, but sometimes it doesn?t, because if the extension doesn?t have the 'confirm_' . $module . '_compiled' function implemented it will throw you an error message But if it don?t throw you a message on the line 3 (dl('.' . PHP_SHLIB_SUFFIX);), you can assume the extension is working. Change for the name of the extension, like php_mapscript_44, without .dll. ')) { dl('.' . PHP_SHLIB_SUFFIX); } $module = ''; $functions = get_extension_funcs($module); echo "Functions available in the test extension:
\n"; foreach($functions as $func) { echo $func."
\n"; } echo "
\n"; $function = 'confirm_' . $module . '_compiled'; if (extension_loaded($module)) { $str = $function($module); } else { $str = "Module $module is not compiled into PHP"; } echo "$str\n"; ?> -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:48 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, Thanks so much for the info. I am running PHP5 so I put the .dll in the root folder, which is where the php.ini is looking for it. I also added a Windows Extension in the Windows Extensions section of the ini. How do I test this? I know there?s a command like switch I can run to see if all of the extensions are working but I can?t remember it. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 3:29 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The php_mapscript_44.dll file should be put on the extension_dir path, that is set on the php.ini file. -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:19 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Ed, Thanks for your support on this. You seem to be the only one who responds to any of my inquiries so I am grateful! In response Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Response: Per your suggestion, I have changed the install to CGI. I guess all that work setting up PHP as an ISAPI was a good learning experience! It is still working set up as a CGI. Question: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. Response: Thanks for the input, Ed, but I don?t think I?ll understand this whole setup until the consultant comes in and actually makes it all work! I hope someone else will respond to my questions. I still don?t know where to put the files and how to test them. You're doing very well for having a lot of new stuff thrown at you. Thanks. The pat on the back feels good after all this stress! Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . Microsoft talks about the fact that with CGI?s the executable is memory resident as many times as it is being run. So, for example, if 5 users are running the CGI then it is taking up 5x the memory. That?s the way I understand it from Microsoft?s standpoint but I could be wrong. I?ve read so much in the last two weeks that my brain is a bit mushy. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Tuesday, March 01, 2005 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - It sounds like you're off to a good start! I'll try to contribute, and there are others with different expertise who can chime in as well. Be sure to send replies to the entire list, not just to the sender, since you've got a number of questions that are best answered by a few different people. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? Answer: No, there is no ISAPI version for IIS. Using MapServer as a CGI will work fine. Since you got the appropriate error message, you've got the permissions (for executing CGI, etc.) set up properly. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Questions: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. You're doing very well for having a lot of new stuff thrown at you. Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Tuesday, March 01, 2005 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A confused Network Admin Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don?t understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any ..dll?s to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the ?No query information to decode. QUERY_STRING is set, but empty.? message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I?m very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll?s that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';?) Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to ?Put the MapSurfer directory somewhere accessible to the web.? This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lisi at MYDELRAYBEACH.COM Tue Mar 1 13:23:34 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Tue, 1 Mar 2005 16:23:34 -0500 Subject: A confused Network Admin Message-ID: Murilo, I copied and pasted your script into notepad and created the .php file from it (which is what I assume you wanted me to do). I ran the script through the browser and received the following error: Parse error: syntax error, unexpected '.' in c:\Inetpub\wwwroot\testmapscript.php on line 12 Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 4:02 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, This is a generic test that php provides when you create a extension... It should work for all extensions, but sometimes it doesn't, because if the extension doesn't have the 'confirm_' . $module .. '_compiled' function implemented it will throw you an error message... But if it don't throw you a message on the line 3 (dl('.' . PHP_SHLIB_SUFFIX);), you can assume the extension is working. Change for the name of the extension, like php_mapscript_44, without .dll. ')) { dl('.' . PHP_SHLIB_SUFFIX); } $module = ''; $functions = get_extension_funcs($module); echo "Functions available in the test extension:
\n"; foreach($functions as $func) { echo $func."
\n"; } echo "
\n"; $function = 'confirm_' . $module .. '_compiled'; if (extension_loaded($module)) { $str = $function($module); } else { $str = "Module $module is not compiled into PHP"; } echo "$str\n"; ?> -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:48 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, Thanks so much for the info. I am running PHP5 so I put the .dll in the root folder, which is where the php.ini is looking for it. I also added a Windows Extension in the Windows Extensions section of the ini. How do I test this? I know there's a command like switch I can run to see if all of the extensions are working but I can't remember it. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 3:29 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The php_mapscript_44.dll file should be put on the extension_dir path, that is set on the php.ini file. -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:19 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Ed, Thanks for your support on this. You seem to be the only one who responds to any of my inquiries so I am grateful! In response... Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Response: Per your suggestion, I have changed the install to CGI. I guess all that work setting up PHP as an ISAPI was a good learning experience! It is still working set up as a CGI. Question: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. Response: Thanks for the input, Ed, but I don't think I'll understand this whole setup until the consultant comes in and actually makes it all work! I hope someone else will respond to my questions. I still don't know where to put the files and how to test them. You're doing very well for having a lot of new stuff thrown at you. Thanks. The pat on the back feels good after all this stress! Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . Microsoft talks about the fact that with CGI's the executable is memory resident as many times as it is being run. So, for example, if 5 users are running the CGI then it is taking up 5x the memory. That's the way I understand it from Microsoft's standpoint but I could be wrong. I've read so much in the last two weeks that my brain is a bit mushy. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Tuesday, March 01, 2005 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - It sounds like you're off to a good start! I'll try to contribute, and there are others with different expertise who can chime in as well. Be sure to send replies to the entire list, not just to the sender, since you've got a number of questions that are best answered by a few different people. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? Answer: No, there is no ISAPI version for IIS. Using MapServer as a CGI will work fine. Since you got the appropriate error message, you've got the permissions (for executing CGI, etc.) set up properly. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Questions: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. You're doing very well for having a lot of new stuff thrown at you. Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Tuesday, March 01, 2005 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A confused Network Admin Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don't understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any ...dll's to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I'm very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll's that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';") Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to "Put the MapSurfer directory somewhere accessible to the web." This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From murilo.yoshida at AGX.COM.BR Tue Mar 1 14:39:17 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Tue, 1 Mar 2005 19:39:17 -0300 Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin In-Reply-To: Message-ID: Christine, The line 12 is this -> ($function = 'confirm_' . $module ... '_compiled';)? If it is then ther is 3 points together make it one point only I don?t know why it went with 3 points in my script and in my copy of the email I sent you it is with one point strange but just remove the points and it should work -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 18:24 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, I copied and pasted your script into notepad and created the .php file from it (which is what I assume you wanted me to do). I ran the script through the browser and received the following error: Parse error: syntax error, unexpected '.' in c:\Inetpub\wwwroot\testmapscript.php on line 12 Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 4:02 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, This is a generic test that php provides when you create a extension... It should work for all extensions, but sometimes it doesn?t, because if the extension doesn?t have the 'confirm_' . $module . '_compiled' function implemented it will throw you an error message But if it don?t throw you a message on the line 3 (dl('.' . PHP_SHLIB_SUFFIX);), you can assume the extension is working. Change for the name of the extension, like php_mapscript_44, without ..dll. ')) { dl('.' . PHP_SHLIB_SUFFIX); } $module = ''; $functions = get_extension_funcs($module); echo "Functions available in the test extension:
\n"; foreach($functions as $func) { echo $func."
\n"; } echo "
\n"; $function = 'confirm_' . $module ... '_compiled'; if (extension_loaded($module)) { $str = $function($module); } else { $str = "Module $module is not compiled into PHP"; } echo "$str\n"; ?> -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:48 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, Thanks so much for the info. I am running PHP5 so I put the .dll in the root folder, which is where the php.ini is looking for it. I also added a Windows Extension in the Windows Extensions section of the ini. How do I test this? I know there?s a command like switch I can run to see if all of the extensions are working but I can?t remember it. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 3:29 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The php_mapscript_44.dll file should be put on the extension_dir path, that is set on the php.ini file. -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:19 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Ed, Thanks for your support on this. You seem to be the only one who responds to any of my inquiries so I am grateful! In response Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Response: Per your suggestion, I have changed the install to CGI. I guess all that work setting up PHP as an ISAPI was a good learning experience! It is still working set up as a CGI. Question: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. Response: Thanks for the input, Ed, but I don?t think I?ll understand this whole setup until the consultant comes in and actually makes it all work! I hope someone else will respond to my questions. I still don?t know where to put the files and how to test them. You're doing very well for having a lot of new stuff thrown at you. Thanks. The pat on the back feels good after all this stress! Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . Microsoft talks about the fact that with CGI?s the executable is memory resident as many times as it is being run. So, for example, if 5 users are running the CGI then it is taking up 5x the memory. That?s the way I understand it from Microsoft?s standpoint but I could be wrong. I?ve read so much in the last two weeks that my brain is a bit mushy. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Tuesday, March 01, 2005 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - It sounds like you're off to a good start! I'll try to contribute, and there are others with different expertise who can chime in as well. Be sure to send replies to the entire list, not just to the sender, since you've got a number of questions that are best answered by a few different people. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? Answer: No, there is no ISAPI version for IIS. Using MapServer as a CGI will work fine. Since you got the appropriate error message, you've got the permissions (for executing CGI, etc.) set up properly. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Questions: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. You're doing very well for having a lot of new stuff thrown at you. Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Tuesday, March 01, 2005 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A confused Network Admin Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don?t understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any ...dll?s to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the ?No query information to decode. QUERY_STRING is set, but empty.? message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I?m very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll?s that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';?) Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to ?Put the MapSurfer directory somewhere accessible to the web.? This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lisi at MYDELRAYBEACH.COM Tue Mar 1 14:57:41 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Tue, 1 Mar 2005 17:57:41 -0500 Subject: A confused Network Admin Message-ID: Now I have these errors: Warning: dl() [function.dl ]: Unable to load dynamic library 'C:\PHP\.dll' - The specified module could not be found. in c:\Inetpub\wwwroot\testmapscript.php on line 3 Functions available in the test extension: Warning: Invalid argument supplied for foreach() in c:\Inetpub\wwwroot\testmapscript.php on line 8 Module is not compiled into PHP Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 5:39 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The line 12 is this -> ($function = 'confirm_' . $module ... '_compiled';)? If it is then ther is 3 points together ... make it one point only ... I don't know why it went with 3 points ... in my script and in my copy of the email I sent you it is with one point ... strange ... but just remove the points and it should work -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 18:24 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, I copied and pasted your script into notepad and created the .php file from it (which is what I assume you wanted me to do). I ran the script through the browser and received the following error: Parse error: syntax error, unexpected '.' in c:\Inetpub\wwwroot\testmapscript.php on line 12 Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 4:02 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, This is a generic test that php provides when you create a extension... It should work for all extensions, but sometimes it doesn't, because if the extension doesn't have the 'confirm_' . $module .. '_compiled' function implemented it will throw you an error message... But if it don't throw you a message on the line 3 (dl('.' . PHP_SHLIB_SUFFIX);), you can assume the extension is working. Change for the name of the extension, like php_mapscript_44, without ...dll. ')) { dl('.' . PHP_SHLIB_SUFFIX); } $module = ''; $functions = get_extension_funcs($module); echo "Functions available in the test extension:
\n"; foreach($functions as $func) { echo $func."
\n"; } echo "
\n"; $function = 'confirm_' . $module .... '_compiled'; if (extension_loaded($module)) { $str = $function($module); } else { $str = "Module $module is not compiled into PHP"; } echo "$str\n"; ?> -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:48 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, Thanks so much for the info. I am running PHP5 so I put the .dll in the root folder, which is where the php.ini is looking for it. I also added a Windows Extension in the Windows Extensions section of the ini. How do I test this? I know there's a command like switch I can run to see if all of the extensions are working but I can't remember it. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 3:29 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The php_mapscript_44.dll file should be put on the extension_dir path, that is set on the php.ini file. -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:19 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Ed, Thanks for your support on this. You seem to be the only one who responds to any of my inquiries so I am grateful! In response... Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Response: Per your suggestion, I have changed the install to CGI. I guess all that work setting up PHP as an ISAPI was a good learning experience! It is still working set up as a CGI. Question: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. Response: Thanks for the input, Ed, but I don't think I'll understand this whole setup until the consultant comes in and actually makes it all work! I hope someone else will respond to my questions. I still don't know where to put the files and how to test them. You're doing very well for having a lot of new stuff thrown at you. Thanks. The pat on the back feels good after all this stress! Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . Microsoft talks about the fact that with CGI's the executable is memory resident as many times as it is being run. So, for example, if 5 users are running the CGI then it is taking up 5x the memory. That's the way I understand it from Microsoft's standpoint but I could be wrong. I've read so much in the last two weeks that my brain is a bit mushy. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Tuesday, March 01, 2005 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - It sounds like you're off to a good start! I'll try to contribute, and there are others with different expertise who can chime in as well. Be sure to send replies to the entire list, not just to the sender, since you've got a number of questions that are best answered by a few different people. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? Answer: No, there is no ISAPI version for IIS. Using MapServer as a CGI will work fine. Since you got the appropriate error message, you've got the permissions (for executing CGI, etc.) set up properly. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Questions: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. You're doing very well for having a lot of new stuff thrown at you. Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Tuesday, March 01, 2005 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A confused Network Admin Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don't understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any ...dll's to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I'm very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll's that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';") Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to "Put the MapSurfer directory somewhere accessible to the web." This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From murilo.yoshida at AGX.COM.BR Tue Mar 1 15:02:20 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Tue, 1 Mar 2005 20:02:20 -0300 Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin In-Reply-To: Message-ID: Christine, Take out the < and the > from the extension name, it should be like this -> php_mapscript_44 -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 19:58 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Now I have these errors: Warning: dl() [function.dl ]: Unable to load dynamic library 'C:\PHP\.dll' - The specified module could not be found. in c:\Inetpub\wwwroot\testmapscript.php on line 3 Functions available in the test extension: Warning: Invalid argument supplied for foreach() in c:\Inetpub\wwwroot\testmapscript.php on line 8 Module is not compiled into PHP Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 5:39 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The line 12 is this -> ($function = 'confirm_' . $module ... '_compiled';)? If it is then ther is 3 points together make it one point only I don?t know why it went with 3 points in my script and in my copy of the email I sent you it is with one point strange but just remove the points and it should work -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 18:24 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, I copied and pasted your script into notepad and created the .php file from it (which is what I assume you wanted me to do). I ran the script through the browser and received the following error: Parse error: syntax error, unexpected '.' in c:\Inetpub\wwwroot\testmapscript.php on line 12 Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 4:02 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, This is a generic test that php provides when you create a extension... It should work for all extensions, but sometimes it doesn?t, because if the extension doesn?t have the 'confirm_' . $module . '_compiled' function implemented it will throw you an error message But if it don?t throw you a message on the line 3 (dl('.' . PHP_SHLIB_SUFFIX);), you can assume the extension is working. Change for the name of the extension, like php_mapscript_44, without ...dll. ')) { dl('.' . PHP_SHLIB_SUFFIX); } $module = ''; $functions = get_extension_funcs($module); echo "Functions available in the test extension:
\n"; foreach($functions as $func) { echo $func."
\n"; } echo "
\n"; $function = 'confirm_' . $module .... '_compiled'; if (extension_loaded($module)) { $str = $function($module); } else { $str = "Module $module is not compiled into PHP"; } echo "$str\n"; ?> -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:48 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, Thanks so much for the info. I am running PHP5 so I put the .dll in the root folder, which is where the php.ini is looking for it. I also added a Windows Extension in the Windows Extensions section of the ini. How do I test this? I know there?s a command like switch I can run to see if all of the extensions are working but I can?t remember it. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 3:29 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The php_mapscript_44.dll file should be put on the extension_dir path, that is set on the php.ini file. -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:19 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Ed, Thanks for your support on this. You seem to be the only one who responds to any of my inquiries so I am grateful! In response Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Response: Per your suggestion, I have changed the install to CGI. I guess all that work setting up PHP as an ISAPI was a good learning experience! It is still working set up as a CGI. Question: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. Response: Thanks for the input, Ed, but I don?t think I?ll understand this whole setup until the consultant comes in and actually makes it all work! I hope someone else will respond to my questions. I still don?t know where to put the files and how to test them. You're doing very well for having a lot of new stuff thrown at you. Thanks. The pat on the back feels good after all this stress! Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . Microsoft talks about the fact that with CGI?s the executable is memory resident as many times as it is being run. So, for example, if 5 users are running the CGI then it is taking up 5x the memory. That?s the way I understand it from Microsoft?s standpoint but I could be wrong. I?ve read so much in the last two weeks that my brain is a bit mushy. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Tuesday, March 01, 2005 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - It sounds like you're off to a good start! I'll try to contribute, and there are others with different expertise who can chime in as well. Be sure to send replies to the entire list, not just to the sender, since you've got a number of questions that are best answered by a few different people. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? Answer: No, there is no ISAPI version for IIS. Using MapServer as a CGI will work fine. Since you got the appropriate error message, you've got the permissions (for executing CGI, etc.) set up properly. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Questions: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. You're doing very well for having a lot of new stuff thrown at you. Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Tuesday, March 01, 2005 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A confused Network Admin Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don?t understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any ....dll?s to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the ?No query information to decode. QUERY_STRING is set, but empty.? message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I?m very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll?s that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';?) Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to ?Put the MapSurfer directory somewhere accessible to the web.? This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lisi at MYDELRAYBEACH.COM Tue Mar 1 15:11:17 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Tue, 1 Mar 2005 18:11:17 -0500 Subject: A confused Network Admin Message-ID: Thanks, Murilo, but No good. Now all it's doing is putting the entire script on the page like so: ? if(!extension_loaded('php_mapscript_44')) { dl('php_mapscript_44.' . PHP_SHLIB_SUFFIX); } $module = 'php_mapscript_44'; $functions = get_extension_funcs($module); echo "Functions available in the test extension:br\n"; foreach($functions as $func) { echo $func."br\n"; } echo "br\n"; $function = 'confirm_' . $module . '_compiled'; if (extension_loaded($module)) { $str = $function($module); } else { $str = "Module $module is not compiled into PHP"; } echo "$str\n"; ? Can you send me a complete script again with the php_mapscript_44 set? Does it work for you? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 6:02 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, Take out the < and the > from the extension name, it should be like this -> php_mapscript_44 -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 19:58 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Now I have these errors: Warning: dl() [function.dl ]: Unable to load dynamic library 'C:\PHP\.dll' - The specified module could not be found. in c:\Inetpub\wwwroot\testmapscript.php on line 3 Functions available in the test extension: Warning: Invalid argument supplied for foreach() in c:\Inetpub\wwwroot\testmapscript.php on line 8 Module is not compiled into PHP Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 5:39 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The line 12 is this -> ($function = 'confirm_' . $module ... '_compiled';)? If it is then ther is 3 points together ... make it one point only ... I don't know why it went with 3 points ... in my script and in my copy of the email I sent you it is with one point ... strange ... but just remove the points and it should work -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 18:24 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, I copied and pasted your script into notepad and created the .php file from it (which is what I assume you wanted me to do). I ran the script through the browser and received the following error: Parse error: syntax error, unexpected '.' in c:\Inetpub\wwwroot\testmapscript.php on line 12 Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 4:02 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, This is a generic test that php provides when you create a extension... It should work for all extensions, but sometimes it doesn't, because if the extension doesn't have the 'confirm_' . $module .. '_compiled' function implemented it will throw you an error message... But if it don't throw you a message on the line 3 (dl('.' . PHP_SHLIB_SUFFIX);), you can assume the extension is working. Change for the name of the extension, like php_mapscript_44, without ....dll. ')) { dl('.' . PHP_SHLIB_SUFFIX); } $module = ''; $functions = get_extension_funcs($module); echo "Functions available in the test extension:
\n"; foreach($functions as $func) { echo $func."
\n"; } echo "
\n"; $function = 'confirm_' . $module ..... '_compiled'; if (extension_loaded($module)) { $str = $function($module); } else { $str = "Module $module is not compiled into PHP"; } echo "$str\n"; ?> -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:48 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, Thanks so much for the info. I am running PHP5 so I put the .dll in the root folder, which is where the php.ini is looking for it. I also added a Windows Extension in the Windows Extensions section of the ini. How do I test this? I know there's a command like switch I can run to see if all of the extensions are working but I can't remember it. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 3:29 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The php_mapscript_44.dll file should be put on the extension_dir path, that is set on the php.ini file. -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:19 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Ed, Thanks for your support on this. You seem to be the only one who responds to any of my inquiries so I am grateful! In response... Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Response: Per your suggestion, I have changed the install to CGI. I guess all that work setting up PHP as an ISAPI was a good learning experience! It is still working set up as a CGI. Question: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. Response: Thanks for the input, Ed, but I don't think I'll understand this whole setup until the consultant comes in and actually makes it all work! I hope someone else will respond to my questions. I still don't know where to put the files and how to test them. You're doing very well for having a lot of new stuff thrown at you. Thanks. The pat on the back feels good after all this stress! Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . Microsoft talks about the fact that with CGI's the executable is memory resident as many times as it is being run. So, for example, if 5 users are running the CGI then it is taking up 5x the memory. That's the way I understand it from Microsoft's standpoint but I could be wrong. I've read so much in the last two weeks that my brain is a bit mushy. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Tuesday, March 01, 2005 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - It sounds like you're off to a good start! I'll try to contribute, and there are others with different expertise who can chime in as well. Be sure to send replies to the entire list, not just to the sender, since you've got a number of questions that are best answered by a few different people. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? Answer: No, there is no ISAPI version for IIS. Using MapServer as a CGI will work fine. Since you got the appropriate error message, you've got the permissions (for executing CGI, etc.) set up properly. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Questions: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. You're doing very well for having a lot of new stuff thrown at you. Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Tuesday, March 01, 2005 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A confused Network Admin Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don't understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any ....dll's to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I'm very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll's that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';") Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to "Put the MapSurfer directory somewhere accessible to the web." This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rhysi at OMNILINK.COM.AU Tue Mar 1 16:44:58 2005 From: rhysi at OMNILINK.COM.AU (Rhys Ickeringill) Date: Wed, 2 Mar 2005 11:44:58 +1100 Subject: PHP MapScript documentation Message-ID: Hi all. Is there something resembling a UML/object model/class diagram for the objects in PHP Mapscript? TIA - Rhys From nuryadin at GMAIL.COM Tue Mar 1 19:50:10 2005 From: nuryadin at GMAIL.COM (Ruslan Nuryadin) Date: Wed, 2 Mar 2005 10:50:10 +0700 Subject: PHP MapScript documentation In-Reply-To: <004f01c51ec1$0fd0c9f0$1501a8c0@omnilink.com.au> Message-ID: I found a document from PHP/Mapscript's author at http://www.omsug.ca/dl/osgis2004/php_mapscript_mum2.ppt -- ruslan Rhys Ickeringill wrote: > Hi all. > > Is there something resembling a UML/object model/class diagram for the > objects in PHP Mapscript? > > TIA > > - Rhys > From hermawan_s at HOTMAIL.COM Tue Mar 1 20:31:27 2005 From: hermawan_s at HOTMAIL.COM (Herman Teo) Date: Tue, 1 Mar 2005 22:31:27 -0600 Subject: Help on tiger, again. Message-ID: Hi there. I have been working on tiger files for a while now. I manage to get the feature labels working right now. I'm just wondering, in roads layer, are there ways to make highways stand out in front of the normal roads, such as giving them thicker red lines? Thanks again for all your help. Herman Teo From woodbri at SWOODBRIDGE.COM Tue Mar 1 21:18:16 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 2 Mar 2005 00:18:16 -0500 Subject: Help on tiger, again. In-Reply-To: Message-ID: Yes, you can specify thickness like this: CLASS NAME "highway" COLOR 255 0 0 # make it red SYMBOL 0 # this is a built in circle symbol SIZE 5 # make it 5 pixels wide # if you want it fancy then add also OVERLAYSYMBOL 0 OVERLAYCOLOR 255 255 255 # add a white down the center of the red OVERLAYSIZE 1 END You can also do this by adding multiple STYLE ... END blocks instead of using OVERLAY* where each STYLE is draw in turn to make a more complex styling of the line. -Steve Herman Teo wrote: > Hi there. > I have been working on tiger files for a while now. I manage to get the > feature labels working right now. I'm just wondering, in roads layer, are > there ways to make highways stand out in front of the normal roads, such as > giving them thicker red lines? > Thanks again for all your help. > > Herman Teo > From hiten.ravani at ADAPTIVESYSTEMS.COM.AU Tue Mar 1 22:17:54 2005 From: hiten.ravani at ADAPTIVESYSTEMS.COM.AU (Hiten Ravani) Date: Wed, 2 Mar 2005 00:17:54 -0600 Subject: Shapefile vs Postgres/Postgis Message-ID: Hi all, I am software developer and not a GIS expert. Recently my company has asked me to do research in various GIS technologies and therefore was curious about what are the advantages and disadvantages of storing your gis data in shapefiles vs storing it in postgres and accessing it via postgis. One more question, I am also looking into OGC Catalogue Service specifications. Their aren't many products which implement this right now, the only ones I found were deegree (open source) , and cubewerx and ionic (commercial). I was wondering if anyone had used any of the above products or anything else and could suggest me in the right direction. It would be preferable to stick to open source/standards as much as possible. Sorry as the post is not related to mapserver. Thanks, Regards, Hiten From hermawan_s at HOTMAIL.COM Tue Mar 1 22:29:08 2005 From: hermawan_s at HOTMAIL.COM (Hermawan Sutantio) Date: Wed, 2 Mar 2005 06:29:08 +0000 Subject: Help on tiger, again. In-Reply-To: <42254C98.3080803@swoodbridge.com> Message-ID: Is there an identifier for 'highways' in the roads layer that I seem to be missing? I inserted those piece of code as shown below, but the highways are still drawn in black with size 1. Thanks. Herman LAYER NAME "Michigan" TYPE LINE STATUS DEFAULT TILEINDEX "C:\ms4w\apps\gmap\htdocs\michigan\roads-tile" MAXSCALE 50000 CLASS NAME "Michigan Roads" COLOR 0 0 0 SIZE 1 END CLASS NAME "highway" COLOR 255 0 0 # make it red SYMBOL 0 # this is a built in circle symbol SIZE 5 # make it 5 pixels wide # if you want it fancy then add also OVERLAYSYMBOL 0 OVERLAYCOLOR 255 255 255 # add a white down the center of the red OVERLAYSIZE 1 END >>> Yes, you can specify thickness like this: CLASS NAME "highway" COLOR 255 0 0 # make it red SYMBOL 0 # this is a built in circle symbol SIZE 5 # make it 5 pixels wide # if you want it fancy then add also OVERLAYSYMBOL 0 OVERLAYCOLOR 255 255 255 # add a white down the center of the red OVERLAYSIZE 1 END You can also do this by adding multiple STYLE ... END blocks instead of using OVERLAY* where each STYLE is draw in turn to make a more complex styling of the line. -Steve Herman Teo wrote: >Hi there. >I have been working on tiger files for a while now. I manage to get the >feature labels working right now. I'm just wondering, in roads layer, are >there ways to make highways stand out in front of the normal roads, such as >giving them thicker red lines? >Thanks again for all your help. > >Herman Teo > From bartvde at XS4ALL.NL Wed Mar 2 00:49:55 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 2 Mar 2005 09:49:55 +0100 Subject: Shapefile vs Postgres/Postgis In-Reply-To: Message-ID: Hi Hiten, the main advantages of using a spatial database opposed to shapefiles are in my opinion: -maintenance -data integrity -the ability to perform difficult spatial analysis on your data using SQL See also: http://postgis.refractions.net/pipermail/postgis-users/2002-July/001247.html We use the Deegree Catalog in several projects, but it is based on the Deegree 1 (WCAS 0.0.6), and not on the Deegree 2 (CS-W). It is not very easy to configure etc., but it works excellent. If you want to use it I suggest working together with Lat/Lon, the German company behind Deegree. Best regards, Bart > Hi all, > > I am software developer and not a GIS expert. Recently my company has > asked > me to do research in various GIS technologies and therefore was curious > about what are the advantages and disadvantages of storing your gis data > in > shapefiles vs storing it in postgres and accessing it via postgis. > > One more question, I am also looking into OGC Catalogue Service > specifications. Their aren't many products which implement this right now, > the only ones I found were deegree (open source) , and cubewerx and ionic > (commercial). I was wondering if anyone had used any of the above products > or anything else and could suggest me in the right direction. It would be > preferable to stick to open source/standards as much as possible. > > Sorry as the post is not related to mapserver. > > Thanks, > > Regards, > Hiten > From ivan.mjartan at GEOVAP.CZ Wed Mar 2 01:11:24 2005 From: ivan.mjartan at GEOVAP.CZ (Ivan Mjartan) Date: Wed, 2 Mar 2005 10:11:24 +0100 Subject: get part of very large raster Message-ID: Hi, everybody I have little problem, I have very large raster over 100M, and I have to programming small program, that on input get Xmin, Xmax, Ymin, Ymax and return small wedge of this large raster. My first test was using GD library but problem is that this library load whole raster into memory and its mean, that its take very long time. I know (I am developing something on mapserver), that mapserver is doing this and very fast and my question is, which library mapserver is using , or which part of code is processing this ? Thanks very much for your reply ivan mjartan -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Wed Mar 2 01:16:39 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 2 Mar 2005 10:16:39 +0100 Subject: get part of very large raster In-Reply-To: <00ad01c51f07$cf608ad0$e901a8c0@PC24> Message-ID: Hi Ivan, you can use GDAL to do this: gdal.maptools.org More specifically, the gdal_translate utility can clip: -srcwin xoff yoff xsize ysize: Selects a subwindow from the source image for copying based on pixel/line location. -projwin ulx uly lrx lry: Selects a subwindow from the source image for copying (like -srcwin) but with the corners given in georeferenced coordinates. Best regards, Bart > Hi, everybody > > I have little problem, > > > > I have very large raster over 100M, and I have to programming small > program, that on input get Xmin, Xmax, Ymin, Ymax and return small wedge > of this large raster. > > > > My first test was using GD library but problem is that this library load > whole raster into memory and its mean, that its take very long time. > > > > I know (I am developing something on mapserver), that mapserver is doing > this and very fast and my question is, which library mapserver is using , > or which part of code is processing this ? > > > > > > Thanks very much for your reply > > ivan mjartan > From olivier.gayte at VEREMES.COM Wed Mar 2 01:31:00 2005 From: olivier.gayte at VEREMES.COM (Olivier Gayte) Date: Wed, 2 Mar 2005 03:31:00 -0600 Subject: PHP MapScript documentation Message-ID: Hello, I have put on the VEREMES website the php_MapScript Class diagram we use internally for development and training. This document is available both in pdf and svg formats, in french and english. The english version is probably full of translation mistake. If anyone send me a correction I will produce a new version immediatly. The url is: http://www.veremes.com/rubrique.php3?id_rubrique=6 From paul at SUSTAINABLEGIS.COM Wed Mar 2 02:00:56 2005 From: paul at SUSTAINABLEGIS.COM (Paul Hastings) Date: Wed, 2 Mar 2005 17:00:56 +0700 Subject: OT: Why isn't PHP in Interactive Web Mapp ing In-Reply-To: <4223AFD4.9080709@gmail.com> Message-ID: Wouter Schaubroeck wrote: > goodwill of volunteers? Or is Microsoft using its powers? Or Macromedia > (Coldfusion)? macromedia exerting evil influence like microsoft? well that's a new one. if that were true, we'd be seeing flash everywhere--oops, we are! i guess their subliminal mind control is wearing off ;-) maybe it's because the major commericial players bundle cf (and asp) connectors? perhaps because cf is easy/powerful enough to develop decent GIS/db applications (and it integrates quite well w/java, so extendng it is drop dead simple)? From murilo.yoshida at AGX.COM.BR Wed Mar 2 05:08:24 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Wed, 2 Mar 2005 10:08:24 -0300 Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin In-Reply-To: Message-ID: Christine, I tested the script on my system, and it it worked more or less The script displays this message Functions available in the test extension:br Warning: Invalid argument supplied for foreach() in /var/www/html/teste2/testeExt.php on line 9 br Module php_mapscript is not compiled into PHP It returned an error, but the error in this case in kind of insignificant, because the real test is on the line 4 If it passes line 4, it means that the extension is compiled correctly, because php can load it. The rest of the script works for some extensions, that have some php debug functions implemented apparently mapscript doesn?t have those functions, but it doesn?t affect the application Test this script on your system Ok? -----Mensagem original----- De: Lisi, Christine [mailto:lisi at mydelraybeach.com] Enviada em: ter?a-feira, 1 de mar?o de 2005 20:11 Para: murilo.yoshida at agx.com.br; MAPSERVER-USERS at LISTS.UMN.EDU Assunto: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Thanks, Murilo, but No good. Now all it?s doing is putting the entire script on the page like so: ? if(!extension_loaded('php_mapscript_44')) { dl('php_mapscript_44.' . PHP_SHLIB_SUFFIX); } $module = 'php_mapscript_44'; $functions = get_extension_funcs($module); echo "Functions available in the test extension:br\n"; foreach($functions as $func) { echo $func."br\n"; } echo "br\n"; $function = 'confirm_' . $module . '_compiled'; if (extension_loaded($module)) { $str = $function($module); } else { $str = "Module $module is not compiled into PHP"; } echo "$str\n"; ? Can you send me a complete script again with the php_mapscript_44 set? Does it work for you? Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 6:02 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, Take out the < and the > from the extension name, it should be like this -> php_mapscript_44 -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 19:58 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Now I have these errors: Warning: dl() [function.dl ]: Unable to load dynamic library 'C:\PHP\.dll' - The specified module could not be found. in c:\Inetpub\wwwroot\testmapscript.php on line 3 Functions available in the test extension: Warning: Invalid argument supplied for foreach() in c:\Inetpub\wwwroot\testmapscript.php on line 8 Module is not compiled into PHP Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 5:39 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The line 12 is this -> ($function = 'confirm_' . $module ... '_compiled';)? If it is then ther is 3 points together make it one point only I don?t know why it went with 3 points in my script and in my copy of the email I sent you it is with one point strange but just remove the points and it should work -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 18:24 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, I copied and pasted your script into notepad and created the .php file from it (which is what I assume you wanted me to do). I ran the script through the browser and received the following error: Parse error: syntax error, unexpected '.' in c:\Inetpub\wwwroot\testmapscript.php on line 12 Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 4:02 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, This is a generic test that php provides when you create a extension... It should work for all extensions, but sometimes it doesn?t, because if the extension doesn?t have the 'confirm_' . $module . '_compiled' function implemented it will throw you an error message But if it don?t throw you a message on the line 3 (dl('.' . PHP_SHLIB_SUFFIX);), you can assume the extension is working. Change for the name of the extension, like php_mapscript_44, without ....dll. ')) { dl('.' . PHP_SHLIB_SUFFIX); } $module = ''; $functions = get_extension_funcs($module); echo "Functions available in the test extension:
\n"; foreach($functions as $func) { echo $func."
\n"; } echo "
\n"; $function = 'confirm_' . $module ..... '_compiled'; if (extension_loaded($module)) { $str = $function($module); } else { $str = "Module $module is not compiled into PHP"; } echo "$str\n"; ?> -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:48 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, Thanks so much for the info. I am running PHP5 so I put the .dll in the root folder, which is where the php.ini is looking for it. I also added a Windows Extension in the Windows Extensions section of the ini. How do I test this? I know there?s a command like switch I can run to see if all of the extensions are working but I can?t remember it. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 3:29 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The php_mapscript_44.dll file should be put on the extension_dir path, that is set on the php.ini file. -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:19 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Ed, Thanks for your support on this. You seem to be the only one who responds to any of my inquiries so I am grateful! In response Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Response: Per your suggestion, I have changed the install to CGI. I guess all that work setting up PHP as an ISAPI was a good learning experience! It is still working set up as a CGI. Question: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. Response: Thanks for the input, Ed, but I don?t think I?ll understand this whole setup until the consultant comes in and actually makes it all work! I hope someone else will respond to my questions. I still don?t know where to put the files and how to test them. You're doing very well for having a lot of new stuff thrown at you. Thanks. The pat on the back feels good after all this stress! Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . Microsoft talks about the fact that with CGI?s the executable is memory resident as many times as it is being run. So, for example, if 5 users are running the CGI then it is taking up 5x the memory. That?s the way I understand it from Microsoft?s standpoint but I could be wrong. I?ve read so much in the last two weeks that my brain is a bit mushy. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Tuesday, March 01, 2005 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - It sounds like you're off to a good start! I'll try to contribute, and there are others with different expertise who can chime in as well. Be sure to send replies to the entire list, not just to the sender, since you've got a number of questions that are best answered by a few different people. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? Answer: No, there is no ISAPI version for IIS. Using MapServer as a CGI will work fine. Since you got the appropriate error message, you've got the permissions (for executing CGI, etc.) set up properly. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Questions: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. You're doing very well for having a lot of new stuff thrown at you. Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Tuesday, March 01, 2005 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A confused Network Admin Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don?t understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any .....dll?s to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the ?No query information to decode. QUERY_STRING is set, but empty.? message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I?m very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll?s that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';?) Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to ?Put the MapSurfer directory somewhere accessible to the web.? This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Wed Mar 2 05:19:22 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 2 Mar 2005 08:19:22 -0500 Subject: A confused Network Admin Message-ID: Make sure that you have the . I think in the original example he just had ')) { dl('.' . PHP_SHLIB_SUFFIX); } $module = ''; $functions = get_extension_funcs($module); echo "Functions available in the test extension:
\n"; foreach($functions as $func) { echo $func."
\n"; } echo "
\n"; $function = 'confirm_' . $module . '_compiled'; if (extension_loaded($module)) { $str = $function($module); } else { $str = "Module $module is not compiled into PHP"; } echo "$str\n"; ?> ----- Original Message ----- From: Lisi, Christine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, March 01, 2005 6:11 PM Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Thanks, Murilo, but No good. Now all it's doing is putting the entire script on the page like so: ? if(!extension_loaded('php_mapscript_44')) { dl('php_mapscript_44.' . PHP_SHLIB_SUFFIX); } $module = 'php_mapscript_44'; $functions = get_extension_funcs($module); echo "Functions available in the test extension:br\n"; foreach($functions as $func) { echo $func."br\n"; } echo "br\n"; $function = 'confirm_' . $module . '_compiled'; if (extension_loaded($module)) { $str = $function($module); } else { $str = "Module $module is not compiled into PHP"; } echo "$str\n"; ? Can you send me a complete script again with the php_mapscript_44 set? Does it work for you? Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com ------------------------------------------------------------------------------ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 6:02 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, Take out the < and the > from the extension name, it should be like this -> php_mapscript_44 -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 19:58 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Now I have these errors: Warning: dl() [function.dl]: Unable to load dynamic library 'C:\PHP\.dll' - The specified module could not be found. in c:\Inetpub\wwwroot\testmapscript.php on line 3 Functions available in the test extension: Warning: Invalid argument supplied for foreach() in c:\Inetpub\wwwroot\testmapscript.php on line 8 Module is not compiled into PHP Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com ------------------------------------------------------------------------------ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 5:39 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The line 12 is this -> ($function = 'confirm_' . $module ... '_compiled';)? If it is then ther is 3 points together . make it one point only . I don't know why it went with 3 points . in my script and in my copy of the email I sent you it is with one point . strange . but just remove the points and it should work -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 18:24 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, I copied and pasted your script into notepad and created the .php file from it (which is what I assume you wanted me to do). I ran the script through the browser and received the following error: Parse error: syntax error, unexpected '.' in c:\Inetpub\wwwroot\testmapscript.php on line 12 Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com ------------------------------------------------------------------------------ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 4:02 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, This is a generic test that php provides when you create a extension... It should work for all extensions, but sometimes it doesn't, because if the extension doesn't have the 'confirm_' . $module . '_compiled' function implemented it will throw you an error message. But if it don't throw you a message on the line 3 (dl('.' . PHP_SHLIB_SUFFIX);), you can assume the extension is working. Change for the name of the extension, like php_mapscript_44, without ....dll. ')) { dl('.' . PHP_SHLIB_SUFFIX); } $module = ''; $functions = get_extension_funcs($module); echo "Functions available in the test extension:
\n"; foreach($functions as $func) { echo $func."
\n"; } echo "
\n"; $function = 'confirm_' . $module ..... '_compiled'; if (extension_loaded($module)) { $str = $function($module); } else { $str = "Module $module is not compiled into PHP"; } echo "$str\n"; ?> -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:48 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Murilo, Thanks so much for the info. I am running PHP5 so I put the .dll in the root folder, which is where the php.ini is looking for it. I also added a Windows Extension in the Windows Extensions section of the ini. How do I test this? I know there's a command like switch I can run to see if all of the extensions are working but I can't remember it. Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com ------------------------------------------------------------------------------ From: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Sent: Tuesday, March 01, 2005 3:29 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RES: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, The php_mapscript_44.dll file should be put on the extension_dir path, that is set on the php.ini file. -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Lisi, Christine Enviada em: ter?a-feira, 1 de mar?o de 2005 17:19 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Ed, Thanks for your support on this. You seem to be the only one who responds to any of my inquiries so I am grateful! In response. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Response: Per your suggestion, I have changed the install to CGI. I guess all that work setting up PHP as an ISAPI was a good learning experience! It is still working set up as a CGI. Question: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. Response: Thanks for the input, Ed, but I don't think I'll understand this whole setup until the consultant comes in and actually makes it all work! I hope someone else will respond to my questions. I still don't know where to put the files and how to test them. You're doing very well for having a lot of new stuff thrown at you. Thanks. The pat on the back feels good after all this stress! Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . Microsoft talks about the fact that with CGI's the executable is memory resident as many times as it is being run. So, for example, if 5 users are running the CGI then it is taking up 5x the memory. That's the way I understand it from Microsoft's standpoint but I could be wrong. I've read so much in the last two weeks that my brain is a bit mushy. Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com ------------------------------------------------------------------------------ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Tuesday, March 01, 2005 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - It sounds like you're off to a good start! I'll try to contribute, and there are others with different expertise who can chime in as well. Be sure to send replies to the entire list, not just to the sender, since you've got a number of questions that are best answered by a few different people. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? Answer: No, there is no ISAPI version for IIS. Using MapServer as a CGI will work fine. Since you got the appropriate error message, you've got the permissions (for executing CGI, etc.) set up properly. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? Answer: You should use PHP as a CGI. This is simpler and avoids problems with multithreading. Questions: 4. Where do I put the php_mapscript_44.dll file? Answer: You should think about the MapServer CGI and the MapScript DLL as two different applications built upon the same MapServer libraries. There's a core of map-rendering functionality that can be wrapped with a CGI interface (mapserv.exe) or with a PHP scripting interface (php_mapscript_44.dll). While they share a lot of code, of course, these two are completely separate applications, and they are quite independent of each other. php_mapscript_44.dll is a PHP "module" and is loaded by the PHP interpreter when it is referenced by a PHP script being executed. The MapServer CGI does not use the php_mapscript_44.dll file at all. You're doing very well for having a lot of new stuff thrown at you. Do not worry about ISAPI implementations or the "performance penalty" of CGI (a limitation that, IMHO, has been greatly oversold by Microsoft). If - after you've got everything working well - you think there are performance gains to be had by improving on the CGI interface, we can talk about that then. But let's make work correctly first, THEN make it work faster . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ------------------------------------------------------------------------------ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Tuesday, March 01, 2005 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A confused Network Admin Prior to last week, I had no experience with PHP, MapServer, MapScript, MapSurfer, etc. and have been thrown into this very confusing and frustrating Open Source world. I have successfully installed ArcSDE, MapServer and PHP, but I have no idea how each piece talks to the other and whether or not they will work once our consultant visits. I am only responsible for the setup of the apps, and the rest will be up to our engineers and the consultant. I have several questions and I hope some of you can answer them in a language I can understand. Please remember that I honestly don't understand how these applications work at all. I am a Network Admin and Application Specialist, but have no experience with GIS/Mapping, etc. Our Server: Windows Server 2003 IIS6 ArcSDE 9.0 w/ SP2 SQL Server 2000 w/ SP3a General Notes: For all of the installs below I used environment variables and set the System Path to point to the individual application directories. I did NOT copy any .....dll's to my System32 directory. This is definitely a preferred method for me. MAPSERVER (v. 4.4.1): I followed the instructions in the README-install.txt and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Question: 1. I set this up as a CGI in IIS6. Is there an SAPI version for IIS? PHP (v5.0.3): I followed the instructions in the install.txt and set this up as a server module (SAPI). I did run the .exe file, but I then configured it manually as a server module per the instructions. There was nothing in the documentation about how to test this program so after about an hour of research on the PHP web site I read how to create a Hello.php file and put it in the wwwroot folder and had successful results. I assume the software is working. Questions: 2. I read somewhere that PHP will not work with MapServer unless it is set up as a CGI. Is this true? 3. Supposedly they were working on the SAPI version. Is this available yet? PHP/MAPSCRIPT MAPSERVER MODULE: I downloaded this module and read the README.txt. I'm very confused as to whether this is a module for MapServer or PHP. The download for this module included several .dll's that are already in my MapServer directory. Questions: 4. Where do I put the php_mapscript_44.dll file? 5. How do I test it? MAPSURFER (v1.5): I downloaded and extracted the files. Per the README.txt file, I edited the mapper.html file and set the location of the MapServer cgi program and the .map definition file (var mapserver = '/cgi-bin/mapserv.exe'; var mapfile = 'test.map';") Questions: 6. Where do I put the extracted MapSurfer folder? I put it in the wwwroot folder. The Readme.txt file says to "Put the MapSurfer directory somewhere accessible to the web." This is not clear to me. 7. How do I test this? Thank you to all of you who read these messages. I have to give you credit because I am very confused! I welcome any comments, even those that do not apply to my questions. Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From wbronsema at DMSOLUTIONS.CA Wed Mar 2 05:50:46 2005 From: wbronsema at DMSOLUTIONS.CA (William Bronsema) Date: Wed, 2 Mar 2005 08:50:46 -0500 Subject: A confused Network Admin In-Reply-To: <005a01c51f2a$85012760$1bf2fbd0@solo> Message-ID: Also note that the extension_loaded check is not the extension_name (i.e. php_mapscript_44) rather it is the module name itself. In this case it is "mapscript". Your code should be: if(!extension_loaded('mapscript')) HTH, Bill ________________________________________________ William A. Bronsema, C.E.T. Applications and Software Development, DM Solutions Group Inc. _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: March 2, 2005 8:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Make sure that you have the . I think in the original example he just had From woodbri at SWOODBRIDGE.COM Wed Mar 2 06:01:12 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 2 Mar 2005 09:01:12 -0500 Subject: Help on tiger, again. In-Reply-To: Message-ID: Hermawan, Sorry, you didn't post your mapfile last time so I didn't have the whole picture. CLASSes are like a CASE statement in software and you need a selector (aka: EXPRESSION) and then some cases (aka: CLASS), then the first CLASS the gets executed stops evaluation of additional CLASSes for that object. So currently, you have no CLASSITEM and no EXPRESSION lines so mapserver is happy to draw your lines with the first CLASS it encounters. You will need to identify an attribute field that allows you to differentiate streets from highways in the Tiger data. This is typically done with the Tiger CFCC field, (I hope your data has this). Assuming it does them you need to set "CLASSITEM 'CFCC'" in the layer and set 'EXPRESSION "A[123]"' in the CLASS for "highway". Since class order is important, you need the "highway" first, then the "Michigan Roads" without an EXPRESSION which will make if the default catch all class. -Steve Hermawan Sutantio wrote: > Is there an identifier for 'highways' in the roads layer that I seem to be > missing? I inserted those piece of code as shown below, but the highways > are > still drawn in black with size 1. Thanks. > > Herman > > LAYER > NAME "Michigan" > TYPE LINE > STATUS DEFAULT > TILEINDEX "C:\ms4w\apps\gmap\htdocs\michigan\roads-tile" > MAXSCALE 50000 > CLASS > NAME "Michigan Roads" > COLOR 0 0 0 > SIZE 1 > END > CLASS > NAME "highway" > COLOR 255 0 0 # make it red > SYMBOL 0 # this is a built in circle symbol > SIZE 5 # make it 5 pixels wide > # if you want it fancy then add also > OVERLAYSYMBOL 0 > OVERLAYCOLOR 255 255 255 # add a white down the center of the red > OVERLAYSIZE 1 > END > > > >>>> > Yes, you can specify thickness like this: > > CLASS > NAME "highway" > COLOR 255 0 0 # make it red > SYMBOL 0 # this is a built in circle symbol > SIZE 5 # make it 5 pixels wide > # if you want it fancy then add also > OVERLAYSYMBOL 0 > OVERLAYCOLOR 255 255 255 # add a white down the center of the red > OVERLAYSIZE 1 > END > > You can also do this by adding multiple STYLE ... END blocks instead of > using OVERLAY* where each STYLE is draw in turn to make a more complex > styling of the line. > > -Steve > > Herman Teo wrote: > >> Hi there. >> I have been working on tiger files for a while now. I manage to get the >> feature labels working right now. I'm just wondering, in roads layer, are >> there ways to make highways stand out in front of the normal roads, >> such as >> giving them thicker red lines? >> Thanks again for all your help. >> >> Herman Teo >> > From pspencer at DMSOLUTIONS.CA Wed Mar 2 06:15:26 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Wed, 2 Mar 2005 09:15:26 -0500 Subject: A confused Network Admin In-Reply-To: <20050302135100.KVGE1836.tomts16-srv.bellnexxia.net@stella> Message-ID: slight clarification, the php module name is case sensitive and for mapscript it is actually "MapScript". For the record, my test script for testing MapScript extension is a little simpler :) Also, for most purposes, it is more convenient to make a copy of php_mapscript_44.dll and name it php_mapscript.dll, then your scripts can all reference php_mapscript.dll as the most recent version. When 4.6 comes out, you can test your apps then upgrade everything by making php_mapscript.dll a copy of php_mapscript_46.dll Cheers Paul William Bronsema wrote: > Also note that the extension_loaded check is not the extension_name > (i.e. php_mapscript_44) rather it is the module name itself. In this > case it is ?mapscript?. Your code should be: > > > > if(!extension_loaded('mapscript')) > > > > HTH, > > Bill > > > > ________________________________________________ > William A. Bronsema, C.E.T. > Applications and Software Development, > DM Solutions Group Inc. > > ------------------------------------------------------------------------ > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > *On Behalf Of *Jeff Portwine > *Sent:* March 2, 2005 8:19 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > > > Make sure that you have the the script is ended with ?>. > > > > I think in the original example he just had I like to use so it wasn't being recognized as a php script and was just reading the > script as though it were html and outputting the text to your browser. > > > > Hope this helps, > > Jeff > > > > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From lisi at MYDELRAYBEACH.COM Wed Mar 2 06:19:53 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 09:19:53 -0500 Subject: A confused Network Admin Message-ID: Thank you, Paul. I changed the script to your version, which returns a lot of good data but I'm getting this error: Warning: dl() [function.dl]: Unable to load dynamic library 'C:\PHP\php_mapscript_44.dll' - The specified module could not be found. in c:\Inetpub\wwwroot\testmapscript.php on line 3 Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Spencer Sent: Wednesday, March 02, 2005 9:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin slight clarification, the php module name is case sensitive and for mapscript it is actually "MapScript". For the record, my test script for testing MapScript extension is a little simpler :) Also, for most purposes, it is more convenient to make a copy of php_mapscript_44.dll and name it php_mapscript.dll, then your scripts can all reference php_mapscript.dll as the most recent version. When 4.6 comes out, you can test your apps then upgrade everything by making php_mapscript.dll a copy of php_mapscript_46.dll Cheers Paul William Bronsema wrote: > Also note that the extension_loaded check is not the extension_name > (i.e. php_mapscript_44) rather it is the module name itself. In this > case it is "mapscript". Your code should be: > > > > if(!extension_loaded('mapscript')) > > > > HTH, > > Bill > > > > ________________________________________________ > William A. Bronsema, C.E.T. > Applications and Software Development, > DM Solutions Group Inc. > > ------------------------------------------------------------------------ > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > *On Behalf Of *Jeff Portwine > *Sent:* March 2, 2005 8:19 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > > > Make sure that you have the the script is ended with ?>. > > > > I think in the original example he just had I like to use so it wasn't being recognized as a php script and was just reading the > script as though it were html and outputting the text to your browser. > > > > Hope this helps, > > Jeff > > > > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From m.marsella at ITWORKS.IT Wed Mar 2 06:26:56 2005 From: m.marsella at ITWORKS.IT (Marco Marsella) Date: Wed, 2 Mar 2005 15:26:56 +0100 Subject: WMS time support with DB (not solved yet) In-Reply-To: <42248962.8080808@gmx.ch> Message-ID: Hi! Uli's kind reply was prompt but unfortunately not very helpful because he stores the geometries in the DB while I have satellite images that are in the filesystem. I need to know if there is a way to use a DB table to map the time request value to the actual filename or I *must* use a shapefile. Anyway, it seems to me that both (shapefile or DB) are rather convoluted ways of dealing with the matter. I have proposed some time ago to extend the token substitution mechanism that is available for request parameters (the one using %xx%, just to be clear) so that the DATA statement would accept something as: DATA "%year%-%month%-%day%" where %year%, %month% and %day% would be the relevant fragments of the TIME request value. We have used this with deegree and it worked like a charm. It would be much better than having to deal with a shapefile or with a DB table! Almost every time, satellite images have the date information right there in the filename and therefore it is much easier to "build" the filename according to the time request value. Eric Bridger's reply is not satisfactory because it is not WMS compatible: the format of the time value in the request is defined by the standard. Thank you for your advice! Marco Marco Marsella wrote: > Hi list, > I am trying to figure out how to configure Mapserver to provide WMS > server support for time dimensions using a database. > I have examples that use a shapefile to map time request values to the > actual filename, but I cannot find any description of how to do the > same using a database table. > Anybody willing to shed some light ? > TIA > Marco From fwarmerdam at GMAIL.COM Wed Mar 2 06:36:29 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 2 Mar 2005 09:36:29 -0500 Subject: get part of very large raster In-Reply-To: <00ad01c51f07$cf608ad0$e901a8c0@PC24> Message-ID: On Wed, 2 Mar 2005 10:11:24 +0100, Ivan Mjartan wrote: > > Hi, everybody > > I have little problem, > > I have very large raster over 100M, and I have to programming small program, > that on input get Xmin, Xmax, Ymin, Ymax and return small wedge of this > large raster. Ivan, Hmm, 100M is large? It depends on context I suppose. > My first test was using GD library but problem is that this library load > whole raster into memory and its mean, that its take very long time. > > I know (I am developing something on mapserver), that mapserver is doing > this and very fast and my question is, which library mapserver is using , or > which part of code is processing this ? As Bart mentioned, GDAL attempts to provide efficient access to subregions (and reduced resolutions) of raster files and is used as the basis of most raster input for rendering in mapserver. I would add that the organization of the data also plays a role in efficiency. If you want to be able to extract subwindows from a dataset with maximum efficiency it is helpful to ensure the raster is tiled. That is internally the image is stored as a bunch of smallish tiles so that pulling a local area out is just matter of accessing the corresponding tiles. In a normal "scanline oriented image", picking out a subwindow generally results in paging in the entire scanlines touched by the subwindow which is pretty inefficient. If you have a TIFF file that is not tiled, you can convert it to tiled format with a command like: gdal_translate -co TILED=YES in.tif out.tif 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 miller_joseph at BAH.COM Wed Mar 2 06:41:40 2005 From: miller_joseph at BAH.COM (Miller Joseph) Date: Wed, 2 Mar 2005 09:41:40 -0500 Subject: Java MapScript issues Servlet Message-ID: Sean, Thanks for the heads up, usually I remember to run a make clean for the cgi executable but forget when compiling the mapscripts, but not this time. I was finally able to get it to work by compiling using the method you suggested and by using Mario's suggestion to strategically place "synchronized" statements to lock down resources for threads. Specifically I locked down the mapObj during map creation and when running a draw operation and based on what Mario and Umberto said, I locked down the String variable that was storing the path to my mapfile. This last one took me a long time to figure out and I would like to suggest that the next version of the Swig Mapscript include a mapObj constructor that takes in a file object (rather than a string referring to the path) or something like this so that the file itself can be locked down by the thread while parsing occurs (it looks like parsing occurs when the mapObj is instantiated and when it draws to an image??). I will add this to bugzilla. Thanks again, Joe Miller ________________________________ From: UMN MapServer Users List on behalf of Sean Gillies Sent: Tue 3/1/2005 12:32 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Java MapScript issues Servlet Joe, Make sure to clean up the existing .obj files, sometimes we all forget this. If you did, nevermind :) As soon as you can start to isolate the problems, enter them into MapServer's bugzilla http://mapserver.gis.umn.edu/bugs/enter_bug.cgi under the Mapscript-SWIG component. That's the best way for us to team up on the bugs. cheers, Sean On Mar 1, 2005, at 10:19 AM, Miller Joseph wrote: > Thanks Sean. When you say defined I'm assuming that you mean that a > variable equal to > > "-DUSE_THREAD" should be included as one of the MS_DEFS at the end of > the nmake.opt file? I did that and the build seemed to run fine. If > that is all I need to do, then I am still having memory problems that > I will pass on to Umberto. > > Joe Miller > > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Tue 3/1/2005 9:32 AM > To: Miller Joseph > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Java MapScript issues Servlet > > > Joe, > > You do have the option to turn on thread safety, it's just that > nmake.opt is incomplete. Its authors are not multi-threading users. > Make sure that the USE_THREAD macro is defined when compiling > mapthread.c. It's as simple as that. > > cheers, > Sean > > On Feb 28, 2005, at 8:41 PM, Miller Joseph wrote: > > > This is a multi-part message in MIME format. > > > > ------_=_NextPart_001_01C51E11.40BE0E8D > > Content-Type: text/plain; > > charset="iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > To All, > > Umberto and Mario are correct about the problems I've had. They are > = > > definitely related to the lack of thread safety in my mapscript.dll > > that = > > I built using MS Visual C tools. Can anyone tell me why I don't > have = > > the option to turn on thread safety in nmake.opt (unlike in *Nix > > flavors = > > of the build option files)? Was it an oversight, future feature or = > > excluded because it is included by default whenever mapserver is > built > > = > > in Windows and there is no need to turn it off? > > =20 > > Thanks, > > Joe Miller > > > > ________________________________ > > > > From: UMN MapServer Users List on behalf of Umberto Nicoletti > > Sent: Mon 2/28/2005 10:31 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Java MapScript issues Servlet > > > > > > > > Quoting "Mario H. Basa" : > > > >> Hi. > >> > >>> From my experience, Java Mapscript still has some > >> problems with threads, and can still easily bring down > >> Tomcat even with the thread compile option is set. > >> Please correct me if I am wrong. > >> > > > > Yes, that is probably correct, although it is not *that easy*. I > have = > > also > > stressed mapscript with jmeter and actually not found errors, but I > > did = > > not > > cover querying. > > That is why I voted for improved thread safety when the devs showed = > > their wishlists. > > > > > >> What I did was I synchronized the class that does the > >> map processing, and now my test app can survive > >> benchmarking with JMeter. Here are my results as > >> compared with a simillar PHP CGI program: > >> > > > > This is definitely a correct workaround. > > > >> 4 threads (requests) per second, repeated 25 times > >> > >> PHP Mapscript 1.8 to 1.9 pages per second > >> Java Mapscript 2.3 to 2.5 pages per second > >> > >> I was honestly surprised with the result and it is > >> encouraging me to work with Java Mapscript even in a > >> synchronized mode. > >> > > > > Were you using apache 1.3 or 2.x in the php tests? Apache 1.3 uses a > = > > fork based > > model, that while being extremely safe and sound is not as fast as a > = > > threaded > > model. Apache 2.x has threads and should be faster. > > > > Regards, > > Umberto > > > >> mario > >> yokohama,japan > >> > >> > >> --- Joseph Miller wrote: > >> > >>> Umberto, > >>> > >>> 1)I don't think I compiled specifically with > >>> multi-threading because it > >>> wasn't an option listed in the nmake.opt for > >>> Microsoft Visual C++ options > >>> file??? The last I heard multithreading was not > >>> even on the horizon for > >>> mapserver and yet I see it in the Unix build options > >>> file? What do I need > >>> to do this? > >>> > >>> 2)I tried both options you mentioned, I had the > >>> problem when passed the > >>> same mapObj from request to request and stored it in > >>> the session and when I > >>> set it to null after every request and instantiated > >>> it and assigned > >>> attributes based on other variables stored in the > >>> requests and sessions? > >>> I'm assuming the latter is preferred? > >>> > >>> Thanks, > >>> Joe Miller > >>> > >>> On Mon, 28 Feb 2005 09:44:21 +0100, Umberto > >>> Nicoletti > >>> wrote: > >>> > >>>> Did you enable threads support? > >>>> Java, and especially servlets, are definitely > >>> highly concurrent > >>>> environment, so you have to enable thread support > >>> when compiling > >>>> mapserver and mapscript. One very problematic spot > >>> with regards to > >>>> threads is in fact the parser of .map files. > >>>> > >>>> Do you attempt to reuse the same mapObj across > >>> multiple requests or just > >>>> create one and dispose as soon as you are done > >>> within a single request? > >>>> > >>>> HTH, > >>>> Umberto > >>>> > >>>> > >>>> On Mon, 2005-02-28 at 00:53 -0500, Miller Joseph > >>> wrote: > >>>>> Hi, > >>>>> I'm having a baffling problem with a nightly > >>> build of Java Mapscript > >>>>> from about a month ago that I am running on > >>> Windows 2000 with Tomcat > >>>>> 5.5.4. > >>>>> > >>>>> The symptom I see is that I can generate the > >>> default image but after the > >>>>> fourth or fifth time that I pass a new envelope > >>> to change the extent of > >>>>> the image I get the following error: > >>>>> > >>>>> The relevant part of the stack trace: > >>>>> java.lang.UnknownError: Failed to draw layer > >>> named 'world'. > >>>>> at > >>> > >> edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native > >>> Method) > >>>>> at > >>> edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) > >>>>> > >>>>> Occasionally I'll get a flex scanner error or > >>> tomcat will crash with an > >>>>> Exception_Access_Violation memmove error similar > >>> to the one referred to > >>>>> here: > >>>>> > >>> > >> = > > http://forum.java.sun.com/thread.jspa? > > forumID=3D52&messageID=3D1124599&th= > > rea > >>>>> dID=3D286832 > >>>>> > >>>>> All of this happens whether I instatiate new > >>> instances of the mapObj and > >>>>> set everything to null or if I use the same > >>> mapObj throughout and only > >>>>> after a few passes, suggesting to me that there > >>> is a memory issue > >>>>> somewhere. I can pass on some specific code, but > >>> all I am really doing > >>>>> is creating new envelopes to store extents and > >>> then assigning them to > >>>>> the mapObj or extracting the corner coordinates > >>> and setting the extent > >>>>> with them. > >>>>> > >>>>> I've been fighting this for a frustrating week > >>> now. Does anyone have > >>>>> any advice? > >>>>> > >>>>> Thanks, > >>>>> Joe Miller > >>>> -- > >>>> Umberto Nicoletti > >>> At that point it > >>> will > >>>> +390415701366 unicoletti at prometeo.it > >>> compile, but segfault, as > >>> it should.. > >>>> Prometeo S.R.L. The Software Experience > >>> > >>> Umberto, > >>> > >>> 1)I don't think I compiled specifically with > >>> multi-threading because it > >>> wasn't an option listed in the nmake.opt for > >>> Microsoft Visual C++ options > >>> file??? The last I heard multithreading was not > >>> even on the horizon for > >>> mapserver and yet I see it in the Unix build options > >>> file? What do I need > >>> to do this? > >>> > >>> 2)I tried both options you mentioned, I had the > >>> problem when passed the > >>> same mapObj from request to request and stored it in > >>> the session and when I > >>> set it to null after every request and instantiated > >>> it and assigned > >>> attributes based on other variables stored in the > >>> requests and sessions? > >>> I'm assuming the latter is preferred? > >>> > >>> Thanks, > >>> Joe Miller > >>> > >> > >> > >> > >> > >> __________________________________ > >> Do you Yahoo!? > >> Yahoo! Sports - Sign up for Fantasy Baseball. > >> http://baseball.fantasysports.yahoo.com/ > >> > > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at DMSOLUTIONS.CA Wed Mar 2 07:16:05 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Wed, 2 Mar 2005 10:16:05 -0500 Subject: A confused Network Admin In-Reply-To: Message-ID: this is actually a lot more useful. At this point, it tells you exactly where it is trying to load the dll from and that loading it has failed. Failure happens for either of two reasons: 1. the dll is not in this path. 2. the dll cannot find some dependency 1. is easy to confirm, which leaves 2. To resolve 2., get the excellent utility depends.exe from www.dependencywalker.com and open php_mapscript_44.dll using it. This utility will tell you exactly which dlls are missing. Unfortunately, it is not as simple as placing these dlls in the same directory as php_mapscript_44.dll. They need to be somewhere in your system path. Once you've got all the dlls identified and placed somewhere in your system path, it should work. Cheers, Paul Lisi, Christine wrote: > Thank you, Paul. I changed the script to your version, which returns a > lot of good data but I'm getting this error: > > Warning: dl() [function.dl]: Unable to load dynamic library > 'C:\PHP\php_mapscript_44.dll' - The specified module could not be found. > in c:\Inetpub\wwwroot\testmapscript.php on line 3 > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Paul Spencer > Sent: Wednesday, March 02, 2005 9:15 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > slight clarification, the php module name is case sensitive and for > mapscript it is actually "MapScript". > > For the record, my test script for testing MapScript extension is a > little simpler :) > > if (!extension_loaded('MapScript')) > dl('php_mapscript_44.'.PHP_SHLIB_SUFFIX); > phpinfo(); > ?> > > Also, for most purposes, it is more convenient to make a copy of > php_mapscript_44.dll and name it php_mapscript.dll, then your scripts > can all reference php_mapscript.dll as the most recent version. When > 4.6 comes out, you can test your apps then upgrade everything by making > php_mapscript.dll a copy of php_mapscript_46.dll > > Cheers > > Paul > > William Bronsema wrote: > >>Also note that the extension_loaded check is not the extension_name >>(i.e. php_mapscript_44) rather it is the module name itself. In this >>case it is "mapscript". Your code should be: >> >> >> >>if(!extension_loaded('mapscript')) >> >> >> >>HTH, >> >>Bill >> >> >> >>________________________________________________ >>William A. Bronsema, C.E.T. >>Applications and Software Development, >>DM Solutions Group Inc. >> >> > > ------------------------------------------------------------------------ > >>*From:* UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >>*On Behalf Of *Jeff Portwine >>*Sent:* March 2, 2005 8:19 AM >>*To:* MAPSERVER-USERS at LISTS.UMN.EDU >>*Subject:* Re: [UMN_MAPSERVER-USERS] A confused Network Admin >> >> >> >>Make sure that you have the > that > >>the script is ended with ?>. >> >> >> >>I think in the original example he just had > but > >>I like to use > '<', > >>so it wasn't being recognized as a php script and was just reading the >>script as though it were html and outputting the text to your browser. >> >> >> >>Hope this helps, >> >>Jeff >> >> >> >> >> > > > -- > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From bmad0463 at MAIL.USYD.EDU.AU Wed Mar 2 07:28:33 2005 From: bmad0463 at MAIL.USYD.EDU.AU (Ben) Date: Wed, 2 Mar 2005 09:28:33 -0600 Subject: Unable to open file...saveWebImage Message-ID: I am trying PHP-Mapscript and have been having trouble revolving around saveWebImage() When I use it (I have downloaded the demo files from mobilegeopgraphics.com) I am getting these messages : Warning: [MapServer Error]: msSaveImageGD(): Unable to open file ~/Sites/ MSrecipes/tmp/1109776550141151.png for writing in /Users/benmadin/Sites/ MSrecipes/hello.php on line 10 Fatal error: Failed writing image to ~/Sites/MSrecipes/tmp/1109776550141151.png in /Users/benmadin/Sites/MSrecipes/hello.php on line 10 I have : installed it on a Mac OSX.3 / apache server set the permissions to rwxrwxrwx for theMSrecipes folder created a tmp folder with similar permissions changed the path in the .map file to incorporate a tmp/ directory with staff permissions tried using saveImage, which worked into the same directory that the files were in, not the tmp/ directory - I would rather use the saveWebImage function I suspect noted that the permissions for the .png files which saveImage wrote were www I would be extremely grateful if anyone had any suggestions From lisi at MYDELRAYBEACH.COM Wed Mar 2 07:48:16 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 10:48:16 -0500 Subject: A confused Network Admin Message-ID: I am going to be daring and try the MapScript 4.5 version. I can't bear to have to reinstall PHP so I will take that chance. I hope there are people out there using PHP5 so that we will have more support for it. Thanks for the info. I will let you know the result. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Wednesday, March 02, 2005 10:25 AM To: Lisi, Christine Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin There is one at the end of the page (the last link) which is a php_mapscript built around February 7 using php5.0.3. These builds (development builds) are done using the current CVS (the most recent source codes). They are usually stable but only people who need the latest stuff between releases should use them. Here are a couple of options : - if you absolutly need to use php5.0.3 : * you could download the development version (the version is labelled 4.5 and will be released sometime before May as 4.6) * If you want the latest *release* version of Mapserver/phpmapscript (which is 4.4.1) , I can do a custom build for you but there are costs assocaited.. - If you do not need to use php5, I thing It would be preferable that you downlod a php4.3.X version (I think It is 4.3.10) and use the binaries at http://www.maptools.org/dl/mapserver-4.4.1-win32-php4.3.7.zip. I personnaly think the 2nd option is best since that is what most of the people are using right now. PHP5 is pretty recent and only few people are using it right now with php mapscript . Later, Lisi, Christine wrote: >I think you're right Yewondwossen. There doesn't seem to be a MapScript >version for PHP 5.0.3 on >http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html. >Does anyone know of a MapScript version for PHP 5.0.3? > >Christine Lisi >Application Specialist > >Management Information Systems * City of Delray Beach * 100 NW First >Avenue, Delray Beach, FL 33444 > >Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > >-----Original Message----- >From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] >Sent: Wednesday, March 02, 2005 9:58 AM >To: Lisi, Christine >Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin > >Couple of notes this error : > > - you should use a program like depends.exe and load php_mapscript.dll > >into it (http://www.dependencywalker.com/) and It will telll you if >some dependent dll's are missing (which is a common error) > > - I have looked into this thread and noted that you are using php5.0.3. > >I am assuming that the php mapscript you have downloaded is built >against php 5. You need to make sure on that. (there are php mapscript >binaries built for php4.3.X and php5.0.X at >http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html).. > > I hope it helps. You are not very far from having all this workking :) > >Later, > >Lisi, Christine wrote: > > > >>Thank you, Paul. I changed the script to your version, which returns a >>lot of good data but I'm getting this error: >> >>Warning: dl() [function.dl]: Unable to load dynamic library >>'C:\PHP\php_mapscript_44.dll' - The specified module could not be >> >> >found. > > >>in c:\Inetpub\wwwroot\testmapscript.php on line 3 >> >>Christine Lisi >>Application Specialist >> >>Management Information Systems * City of Delray Beach * 100 NW First >>Avenue, Delray Beach, FL 33444 >> >>Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com >> >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> >> >On > > >>Behalf Of Paul Spencer >>Sent: Wednesday, March 02, 2005 9:15 AM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin >> >>slight clarification, the php module name is case sensitive and for >>mapscript it is actually "MapScript". >> >>For the record, my test script for testing MapScript extension is a >>little simpler :) >> >>>if (!extension_loaded('MapScript')) >> dl('php_mapscript_44.'.PHP_SHLIB_SUFFIX); >>phpinfo(); >>?> >> >>Also, for most purposes, it is more convenient to make a copy of >>php_mapscript_44.dll and name it php_mapscript.dll, then your scripts >>can all reference php_mapscript.dll as the most recent version. When >>4.6 comes out, you can test your apps then upgrade everything by making >>php_mapscript.dll a copy of php_mapscript_46.dll >> >>Cheers >> >>Paul >> >>William Bronsema wrote: >> >> >> >> >>>Also note that the extension_loaded check is not the extension_name >>>(i.e. php_mapscript_44) rather it is the module name itself. In this >>>case it is "mapscript". Your code should be: >>> >>> >>> >>>if(!extension_loaded('mapscript')) >>> >>> >>> >>>HTH, >>> >>>Bill >>> >>> >>> >>>________________________________________________ >>>William A. Bronsema, C.E.T. >>>Applications and Software Development, >>>DM Solutions Group Inc. >>> >>> >>> >>> >>> >>> >>---------------------------------------------------------------------- - >> >> >- > > >> >> >> >> >>>*From:* UMN MapServer Users List >>> >>> >>> >>> >>[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> >> >> >> >>>*On Behalf Of *Jeff Portwine >>>*Sent:* March 2, 2005 8:19 AM >>>*To:* MAPSERVER-USERS at LISTS.UMN.EDU >>>*Subject:* Re: [UMN_MAPSERVER-USERS] A confused Network Admin >>> >>> >>> >>>Make sure that you have the >> >>> >>> >>> >>that >> >> >> >> >>>the script is ended with ?>. >>> >>> >>> >>>I think in the original example he just had >> >>> >>> >>> >>but >> >> >> >> >>>I like to use >> >>> >>> >>> >>'<', >> >> >> >> >>>so it wasn't being recognized as a php script and was just reading the >>>script as though it were html and outputting the text to your browser. >>> >>> >>> >>>Hope this helps, >>> >>>Jeff >>> >>> >>> >>> >>> >>> >>> >>> >>> >>-- >>+-----------------------------------------------------------------+ >>|Paul Spencer pspencer at dmsolutions.ca | >>+-----------------------------------------------------------------+ >>|Applications & Software Development | >>|DM Solutions Group Inc http://www.dmsolutions.ca/| >>+-----------------------------------------------------------------+ >> >> >> >> >> >> > > > > > From bmad0463 at MAIL.USYD.EDU.AU Wed Mar 2 07:57:20 2005 From: bmad0463 at MAIL.USYD.EDU.AU (Ben Madin) Date: Wed, 2 Mar 2005 09:57:20 -0600 Subject: Unable to open file...saveWebImage Message-ID: Please ignore this request - is was a stray ~ in the .map file. sorry Ben From lisi at MYDELRAYBEACH.COM Wed Mar 2 08:26:59 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 11:26:59 -0500 Subject: A confused Network Admin Message-ID: OK, Paul's script now works and returns no errors - also sees MapScript. The way I accomplished this was that I downloaded PHP MapScript version 4.5 for PHP 5.0.3 (thank you Yewondwossen!). It says it's compatible with MapServer 4.5, but I can't find that version on the MapServer site. The latest listed is 4.4.1. Why oh why does this all have to be so complicated?! Does anyone know where I can download MapServer 4.5? My other concern is that many of the .dll files in this MapScript 4.5 version are older than those in MapServer. I did replace the gdal12.dll in MapServer with the version 1.2.5 from MapScript 4.5 because it states in the README.txt that MapScript requires this version. I hope this doesn't mess things up in the long run. Is anyone else as frustrated as I am? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Spencer Sent: Wednesday, March 02, 2005 9:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin slight clarification, the php module name is case sensitive and for mapscript it is actually "MapScript". For the record, my test script for testing MapScript extension is a little simpler :) Also, for most purposes, it is more convenient to make a copy of php_mapscript_44.dll and name it php_mapscript.dll, then your scripts can all reference php_mapscript.dll as the most recent version. When 4.6 comes out, you can test your apps then upgrade everything by making php_mapscript.dll a copy of php_mapscript_46.dll Cheers Paul William Bronsema wrote: > Also note that the extension_loaded check is not the extension_name > (i.e. php_mapscript_44) rather it is the module name itself. In this > case it is "mapscript". Your code should be: > > > > if(!extension_loaded('mapscript')) > > > > HTH, > > Bill > > > > ________________________________________________ > William A. Bronsema, C.E.T. > Applications and Software Development, > DM Solutions Group Inc. > > ------------------------------------------------------------------------ > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > *On Behalf Of *Jeff Portwine > *Sent:* March 2, 2005 8:19 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > > > Make sure that you have the the script is ended with ?>. > > > > I think in the original example he just had I like to use so it wasn't being recognized as a php script and was just reading the > script as though it were html and outputting the text to your browser. > > > > Hope this helps, > > Jeff > > > > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From pspencer at DMSOLUTIONS.CA Wed Mar 2 08:43:55 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Wed, 2 Mar 2005 11:43:55 -0500 Subject: A confused Network Admin In-Reply-To: Message-ID: Christine, you don't (normally) need both MapServer and MapScript ... you would use one or the other. And the versions wouldn't have to match (except perhaps for dependencies). MapScript is completely self-contained ... Paul Lisi, Christine wrote: > OK, Paul's script now works and returns no errors - also sees MapScript. > The way I accomplished this was that I downloaded PHP MapScript version > 4.5 for PHP 5.0.3 (thank you Yewondwossen!). It says it's compatible > with MapServer 4.5, but I can't find that version on the MapServer site. > The latest listed is 4.4.1. Why oh why does this all have to be so > complicated?! Does anyone know where I can download MapServer 4.5? > > My other concern is that many of the .dll files in this MapScript 4.5 > version are older than those in MapServer. I did replace the gdal12.dll > in MapServer with the version 1.2.5 from MapScript 4.5 because it states > in the README.txt that MapScript requires this version. I hope this > doesn't mess things up in the long run. > > Is anyone else as frustrated as I am? > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Paul Spencer > Sent: Wednesday, March 02, 2005 9:15 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > slight clarification, the php module name is case sensitive and for > mapscript it is actually "MapScript". > > For the record, my test script for testing MapScript extension is a > little simpler :) > > if (!extension_loaded('MapScript')) > dl('php_mapscript_44.'.PHP_SHLIB_SUFFIX); > phpinfo(); > ?> > > Also, for most purposes, it is more convenient to make a copy of > php_mapscript_44.dll and name it php_mapscript.dll, then your scripts > can all reference php_mapscript.dll as the most recent version. When > 4.6 comes out, you can test your apps then upgrade everything by making > php_mapscript.dll a copy of php_mapscript_46.dll > > Cheers > > Paul > > William Bronsema wrote: > >>Also note that the extension_loaded check is not the extension_name >>(i.e. php_mapscript_44) rather it is the module name itself. In this >>case it is "mapscript". Your code should be: >> >> >> >>if(!extension_loaded('mapscript')) >> >> >> >>HTH, >> >>Bill >> >> >> >>________________________________________________ >>William A. Bronsema, C.E.T. >>Applications and Software Development, >>DM Solutions Group Inc. >> >> > > ------------------------------------------------------------------------ > >>*From:* UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >>*On Behalf Of *Jeff Portwine >>*Sent:* March 2, 2005 8:19 AM >>*To:* MAPSERVER-USERS at LISTS.UMN.EDU >>*Subject:* Re: [UMN_MAPSERVER-USERS] A confused Network Admin >> >> >> >>Make sure that you have the > that > >>the script is ended with ?>. >> >> >> >>I think in the original example he just had > but > >>I like to use > '<', > >>so it wasn't being recognized as a php script and was just reading the >>script as though it were html and outputting the text to your browser. >> >> >> >>Hope this helps, >> >>Jeff >> >> >> >> >> > > > -- > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From lisi at MYDELRAYBEACH.COM Wed Mar 2 08:51:14 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 11:51:14 -0500 Subject: A confused Network Admin Message-ID: The consultant told me to have both so I don't understand. MapScript is a MapServer module, no? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Paul Spencer [mailto:pspencer at dmsolutions.ca] Sent: Wednesday, March 02, 2005 11:44 AM To: Lisi, Christine Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, you don't (normally) need both MapServer and MapScript ... you would use one or the other. And the versions wouldn't have to match (except perhaps for dependencies). MapScript is completely self-contained ... Paul Lisi, Christine wrote: > OK, Paul's script now works and returns no errors - also sees MapScript. > The way I accomplished this was that I downloaded PHP MapScript version > 4.5 for PHP 5.0.3 (thank you Yewondwossen!). It says it's compatible > with MapServer 4.5, but I can't find that version on the MapServer site. > The latest listed is 4.4.1. Why oh why does this all have to be so > complicated?! Does anyone know where I can download MapServer 4.5? > > My other concern is that many of the .dll files in this MapScript 4.5 > version are older than those in MapServer. I did replace the gdal12.dll > in MapServer with the version 1.2.5 from MapScript 4.5 because it states > in the README.txt that MapScript requires this version. I hope this > doesn't mess things up in the long run. > > Is anyone else as frustrated as I am? > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Paul Spencer > Sent: Wednesday, March 02, 2005 9:15 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > slight clarification, the php module name is case sensitive and for > mapscript it is actually "MapScript". > > For the record, my test script for testing MapScript extension is a > little simpler :) > > if (!extension_loaded('MapScript')) > dl('php_mapscript_44.'.PHP_SHLIB_SUFFIX); > phpinfo(); > ?> > > Also, for most purposes, it is more convenient to make a copy of > php_mapscript_44.dll and name it php_mapscript.dll, then your scripts > can all reference php_mapscript.dll as the most recent version. When > 4.6 comes out, you can test your apps then upgrade everything by making > php_mapscript.dll a copy of php_mapscript_46.dll > > Cheers > > Paul > > William Bronsema wrote: > >>Also note that the extension_loaded check is not the extension_name >>(i.e. php_mapscript_44) rather it is the module name itself. In this >>case it is "mapscript". Your code should be: >> >> >> >>if(!extension_loaded('mapscript')) >> >> >> >>HTH, >> >>Bill >> >> >> >>________________________________________________ >>William A. Bronsema, C.E.T. >>Applications and Software Development, >>DM Solutions Group Inc. >> >> > > ------------------------------------------------------------------------ > >>*From:* UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >>*On Behalf Of *Jeff Portwine >>*Sent:* March 2, 2005 8:19 AM >>*To:* MAPSERVER-USERS at LISTS.UMN.EDU >>*Subject:* Re: [UMN_MAPSERVER-USERS] A confused Network Admin >> >> >> >>Make sure that you have the > that > >>the script is ended with ?>. >> >> >> >>I think in the original example he just had > but > >>I like to use > '<', > >>so it wasn't being recognized as a php script and was just reading the >>script as though it were html and outputting the text to your browser. >> >> >> >>Hope this helps, >> >>Jeff >> >> >> >> >> > > > -- > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From ed at TOPOZONE.COM Wed Mar 2 09:06:06 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 2 Mar 2005 12:06:06 -0500 Subject: A confused Network Admin Message-ID: Christine - It is actually not very complicated. You're using trying to start using a LOT of different technologies all at once. Most people don't do that, so that's why relatively few people can be expected to be as frustrated as you are . For example, MapScript is a PHP module. Most users who want to start using PHP MapScript are PHP users who would like some maps. If you were a PHP user and familiar with PHP and modules, most of your recent email conversations would be straightforward and obvious. It's perfectly OK that you are new to all that, but don't blame MapScript. It's not being complicated - it's pretty straightforward. You'd be having the same problems with ANY external PHP module. I'll remind you of my first email to you. MapScript is NOT a "MapServer module". There is a large library of mapmaking functionality in the MapServer suite. All that code (think of it as a small collection of related DLLs) has been wrapped into several interfaces. One of those is the MapServer CGI program, which allows CGI requests to be made against the libraries, and one is the PHP MapScript module, which lets PHP scripts call functions in the libraries. They are completely independent of each other - neither one requires the other. Some users use both, and your consultant seems to want to do that. But they are two separate things. You do not need to have MapScript installed to use the MapServer CGI. You should go back to the error message you reported from your working PHP script. As was mentioned, your script cannot load a module from a file that is evidently there. That means that (a) the script doesn't have permission to load that module or (b) that module has dependencies it cannot find. The first place I'd look is whether the C:\PHP directory is on the search path of the user context running in IIS (usually the IUSR_ account). You can probably just add that directory to the system search path, although you should probably restart IIS after doing that (or at least unload the site you're testing). - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 11:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin The consultant told me to have both so I don't understand. MapScript is a MapServer module, no? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Paul Spencer [mailto:pspencer at dmsolutions.ca] Sent: Wednesday, March 02, 2005 11:44 AM To: Lisi, Christine Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, you don't (normally) need both MapServer and MapScript ... you would use one or the other. And the versions wouldn't have to match (except perhaps for dependencies). MapScript is completely self-contained ... Paul Lisi, Christine wrote: > OK, Paul's script now works and returns no errors - also sees MapScript. > The way I accomplished this was that I downloaded PHP MapScript version > 4.5 for PHP 5.0.3 (thank you Yewondwossen!). It says it's compatible > with MapServer 4.5, but I can't find that version on the MapServer site. > The latest listed is 4.4.1. Why oh why does this all have to be so > complicated?! Does anyone know where I can download MapServer 4.5? > > My other concern is that many of the .dll files in this MapScript 4.5 > version are older than those in MapServer. I did replace the gdal12.dll > in MapServer with the version 1.2.5 from MapScript 4.5 because it states > in the README.txt that MapScript requires this version. I hope this > doesn't mess things up in the long run. > > Is anyone else as frustrated as I am? > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Paul Spencer > Sent: Wednesday, March 02, 2005 9:15 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > slight clarification, the php module name is case sensitive and for > mapscript it is actually "MapScript". > > For the record, my test script for testing MapScript extension is a > little simpler :) > > if (!extension_loaded('MapScript')) > dl('php_mapscript_44.'.PHP_SHLIB_SUFFIX); > phpinfo(); > ?> > > Also, for most purposes, it is more convenient to make a copy of > php_mapscript_44.dll and name it php_mapscript.dll, then your scripts > can all reference php_mapscript.dll as the most recent version. When > 4.6 comes out, you can test your apps then upgrade everything by making > php_mapscript.dll a copy of php_mapscript_46.dll > > Cheers > > Paul > > William Bronsema wrote: > >>Also note that the extension_loaded check is not the extension_name >>(i.e. php_mapscript_44) rather it is the module name itself. In this >>case it is "mapscript". Your code should be: >> >> >> >>if(!extension_loaded('mapscript')) >> >> >> >>HTH, >> >>Bill >> >> >> >>________________________________________________ >>William A. Bronsema, C.E.T. >>Applications and Software Development, >>DM Solutions Group Inc. >> >> > > ------------------------------------------------------------------------ > >>*From:* UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >>*On Behalf Of *Jeff Portwine >>*Sent:* March 2, 2005 8:19 AM >>*To:* MAPSERVER-USERS at LISTS.UMN.EDU >>*Subject:* Re: [UMN_MAPSERVER-USERS] A confused Network Admin >> >> >> >>Make sure that you have the > that > >>the script is ended with ?>. >> >> >> >>I think in the original example he just had > but > >>I like to use > '<', > >>so it wasn't being recognized as a php script and was just reading the >>script as though it were html and outputting the text to your browser. >> >> >> >>Hope this helps, >> >>Jeff >> >> >> >> >> > > > -- > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From lisi at MYDELRAYBEACH.COM Wed Mar 2 09:35:55 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 12:35:55 -0500 Subject: A confused Network Admin Message-ID: It is actually not very complicated. You're using trying to start using a LOT of different technologies all at once. Most people don't do that, so that's why relatively few people can be expected to be as frustrated as you are . YOU'RE RIGHT. For example, MapScript is a PHP module. Most users who want to start using PHP MapScript are PHP users who would like some maps. If you were a PHP user and familiar with PHP and modules, most of your recent email conversations would be straightforward and obvious. It's perfectly OK that you are new to all that, but don't blame MapScript. It's not being complicated - it's pretty straightforward. You'd be having the same problems with ANY external PHP module. I was not blaming MapScript at all. My frustration is with Open Source software in general and trying to get all the pieces to work together. I'll remind you of my first email to you. MapScript is NOT a "MapServer module". There is a large library of mapmaking functionality in the MapServer suite. All that code (think of it as a small collection of related DLLs) has been wrapped into several interfaces. One of those is the MapServer CGI program, which allows CGI requests to be made against the libraries, and one is the PHP MapScript module, which lets PHP scripts call functions in the libraries. They are completely independent of each other - neither one requires the other. Some users use both, and your consultant seems to want to do that. But they are two separate things. You do not need to have MapScript installed to use the MapServer CGI. My confusion with thinking that MapScript is a MapServer module comes from the README.txt distributed with MapScript. On the very top it says PHP/MapScript Mapserver Module. This would confuse any beginner like me. Thanks for the clarification. I'm sure the consultant will know what to do with it all. My part of the job is almost complete. You should go back to the error message you reported from your working PHP script. As was mentioned, your script cannot load a module from a file that is evidently there. That means that (a) the script doesn't have permission to load that module or (b) that module has dependencies it cannot find. As stated in one of my earlier messages, the problem was that I didn't have the MapScript version (4.5) for PHP 5.0.3. It seems that although PHP 5.0.3 is a functional/tested version, the MapScript version for PHP 5.0.3 is still in "beta". Nobody's fault, but I refer back to my frustration with Open Source software in general. Don't get me wrong - thank goodness for Open Source and I give kudos to the programmers, but for an admin like myself it can be very frustrating and time consuming to get it all together. Once I downloaded the correct MapScript module for PHP 5.0.3 everything worked, but I am still confused at to why a newer version of MapScript (4.5) would have older .dll's than an older version (4.4). Maybe I'm spoiled because I'm so used to being able to call up Tech Support and get issues resolved and questions answered. Verbal communication is much more effective than e-mail in communicating these complicated issues. I'm dealing (with it)... The first place I'd look is whether the C:\PHP directory is on the search path of the user context running in IIS (usually the IUSR_ account). You can probably just add that directory to the system search path, although you should probably restart IIS after doing that (or at least unload the site you're testing). This is no longer a problem. Ed - I appreciate your input and I'm glad you appreciate where I'm coming from. Maybe one day I'll understand how it all works, but right now I'm just glad to have gotten this far. My only remaining issue is with MapSURFER. Can't get a response from Russ. Christine -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 11:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin The consultant told me to have both so I don't understand. MapScript is a MapServer module, no? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Paul Spencer [mailto:pspencer at dmsolutions.ca] Sent: Wednesday, March 02, 2005 11:44 AM To: Lisi, Christine Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine, you don't (normally) need both MapServer and MapScript ... you would use one or the other. And the versions wouldn't have to match (except perhaps for dependencies). MapScript is completely self-contained ... Paul Lisi, Christine wrote: > OK, Paul's script now works and returns no errors - also sees MapScript. > The way I accomplished this was that I downloaded PHP MapScript version > 4.5 for PHP 5.0.3 (thank you Yewondwossen!). It says it's compatible > with MapServer 4.5, but I can't find that version on the MapServer site. > The latest listed is 4.4.1. Why oh why does this all have to be so > complicated?! Does anyone know where I can download MapServer 4.5? > > My other concern is that many of the .dll files in this MapScript 4.5 > version are older than those in MapServer. I did replace the gdal12.dll > in MapServer with the version 1.2.5 from MapScript 4.5 because it states > in the README.txt that MapScript requires this version. I hope this > doesn't mess things up in the long run. > > Is anyone else as frustrated as I am? > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Paul Spencer > Sent: Wednesday, March 02, 2005 9:15 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > slight clarification, the php module name is case sensitive and for > mapscript it is actually "MapScript". > > For the record, my test script for testing MapScript extension is a > little simpler :) > > if (!extension_loaded('MapScript')) > dl('php_mapscript_44.'.PHP_SHLIB_SUFFIX); > phpinfo(); > ?> > > Also, for most purposes, it is more convenient to make a copy of > php_mapscript_44.dll and name it php_mapscript.dll, then your scripts > can all reference php_mapscript.dll as the most recent version. When > 4.6 comes out, you can test your apps then upgrade everything by making > php_mapscript.dll a copy of php_mapscript_46.dll > > Cheers > > Paul > > William Bronsema wrote: > >>Also note that the extension_loaded check is not the extension_name >>(i.e. php_mapscript_44) rather it is the module name itself. In this >>case it is "mapscript". Your code should be: >> >> >> >>if(!extension_loaded('mapscript')) >> >> >> >>HTH, >> >>Bill >> >> >> >>________________________________________________ >>William A. Bronsema, C.E.T. >>Applications and Software Development, >>DM Solutions Group Inc. >> >> > > ------------------------------------------------------------------------ > >>*From:* UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >>*On Behalf Of *Jeff Portwine >>*Sent:* March 2, 2005 8:19 AM >>*To:* MAPSERVER-USERS at LISTS.UMN.EDU >>*Subject:* Re: [UMN_MAPSERVER-USERS] A confused Network Admin >> >> >> >>Make sure that you have the > that > >>the script is ended with ?>. >> >> >> >>I think in the original example he just had > but > >>I like to use > '<', > >>so it wasn't being recognized as a php script and was just reading the >>script as though it were html and outputting the text to your browser. >> >> >> >>Hope this helps, >> >>Jeff >> >> >> >> >> > > > -- > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.marsella at ITWORKS.IT Wed Mar 2 10:06:37 2005 From: m.marsella at ITWORKS.IT (Marco Marsella) Date: Wed, 2 Mar 2005 19:06:37 +0100 Subject: A confused Network Admin Message-ID: I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From webmaster at 2ID-DESIGN.COM Wed Mar 2 10:19:00 2005 From: webmaster at 2ID-DESIGN.COM (S.Nicolas - Webmaster) Date: Wed, 2 Mar 2005 18:19:00 -0000 Subject: Map Extent In-Reply-To: <0ae69fc2f27be90a49a4266756fb34a3@itworks.it> Message-ID: Hi, Could somebody direct me to a simple example to calculate the correct map extent of an illustrator worldmap I have. Thanks in advance S. NICOLAS -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: 02 March 2005 18:07 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From lisi at MYDELRAYBEACH.COM Wed Mar 2 11:09:11 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 14:09:11 -0500 Subject: A confused Network Admin Message-ID: Marco - I couldn't have put it better myself. The best OpenSource documentation of the four I have dealt with in the last 2 weeks came with PHP; twenty-three pages of step-by-step instructions, and they didn't forget about Windows users. I agree that this listserver wouldn't be nearly as busy if the documentation on the OpenSource products was more complete and precise, and I also wish there was more of a collaborative effort between the programmers when releasing new versions. All I can say is, thank goodness for this listserver because I could have never gotten through this with documentation alone. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: Wednesday, March 02, 2005 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From keon at NACSE.ORG Wed Mar 2 11:30:38 2005 From: keon at NACSE.ORG (Dylan Keon) Date: Wed, 2 Mar 2005 11:30:38 -0800 Subject: A confused Network Admin In-Reply-To: Message-ID: Lisi, Christine wrote: > Marco - I couldn't have put it better myself. The best OpenSource > documentation of the four I have dealt with in the last 2 weeks came > with PHP; twenty-three pages of step-by-step instructions, and they > didn't forget about Windows users. I agree that this listserver > wouldn't be nearly as busy if the documentation on the OpenSource > products was more complete and precise, and I also wish there was more > of a collaborative effort between the programmers when releasing new > versions. I think we are lucky to have powerful, useful software like MapServer available to us at no cost. The developers put a lot of work into the code, and probably don't have much time left over for writing documentation. Any of us are welcome to contribute to the docs, though. I'm sure the developers would be thrilled to have more help. Take a look at http://mapserver.gis.umn.edu/mdp/mdp.html if you're interested in helping. --Dylan From dmorissette at DMSOLUTIONS.CA Wed Mar 2 11:33:26 2005 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 2 Mar 2005 14:33:26 -0500 Subject: A confused Network Admin In-Reply-To: <0ae69fc2f27be90a49a4266756fb34a3@itworks.it> Message-ID: Marco Marsella wrote: > > As you may have seen, I put my.. time where the mouth is. As soon as I > learn how to do something, I will post a message to the list hoping > that it might be of help to others (see "[UMN_MAPSERVER-USERS] A > simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, > but it took me *a lot* of time (and a zillion Google searches) to > figure out, much longer than I would expect! I will be more than happy > to continue doing so to alleviate the trouble of learning MapServer! > Docs are not as bad as you guys try to put it, but the beauty of the open source approach is that *anyone* can make a difference by contributing to the project. I'm sure the MapServer Documentation team will welcome your contributions once you become as fluent in MapServer as you used to be in FORTRAN. And then you can help making this a better world for everyone. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From lisi at MYDELRAYBEACH.COM Wed Mar 2 11:43:18 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 14:43:18 -0500 Subject: A confused Network Admin Message-ID: I think the bottom line is not to be defensive about it but to try to make it better. I can contribute a bit from a Windows standpoint and will visit the site you mention. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Dylan Keon [mailto:keon at nacse.org] Sent: Wednesday, March 02, 2005 2:31 PM To: Lisi, Christine Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Lisi, Christine wrote: > Marco - I couldn't have put it better myself. The best OpenSource > documentation of the four I have dealt with in the last 2 weeks came > with PHP; twenty-three pages of step-by-step instructions, and they > didn't forget about Windows users. I agree that this listserver > wouldn't be nearly as busy if the documentation on the OpenSource > products was more complete and precise, and I also wish there was more > of a collaborative effort between the programmers when releasing new > versions. I think we are lucky to have powerful, useful software like MapServer available to us at no cost. The developers put a lot of work into the code, and probably don't have much time left over for writing documentation. Any of us are welcome to contribute to the docs, though. I'm sure the developers would be thrilled to have more help. Take a look at http://mapserver.gis.umn.edu/mdp/mdp.html if you're interested in helping. --Dylan From jason.webb at AGCL.CO.NZ Wed Mar 2 11:18:47 2005 From: jason.webb at AGCL.CO.NZ (Jason Webb) Date: Thu, 3 Mar 2005 08:18:47 +1300 Subject: AVL Template for evaluation Message-ID: Hi , I am setting up Mapserver for evaluation and wonder if anyone knows of an AVL template / Vehicle tracking template that I can use to test and see how the mapserver would work for this environment. It doesn?t have to be fancy or extensive just something to use for evaluation to show some vehicle points on the map take from a text file or database.. Regards Jason Webb From pspencer at DMSOLUTIONS.CA Wed Mar 2 11:56:24 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Wed, 2 Mar 2005 14:56:24 -0500 Subject: A confused Network Admin In-Reply-To: Message-ID: This is a personal gripe and is not directed at Christine - she just got me started thinking about it :) There is some confusion here in assuming that Open Source = FREE. It doesn't mean that at all. For those of you that like to be able to call up Tech Support, I doubt that you got the product for free in the first place and that's where part of your money goes ... paying for Tech Support and Documentation. For the MapServer community in general, if you want better documentation, it has to be paid for either by contributing time writing the documentation or financially supporting those who can write the documentation. Its not going to write itself. If you aren't prepared to contribute then I guess you don't really have a problem. Paul Lisi, Christine wrote: > Marco - I couldn't have put it better myself. The best OpenSource > documentation of the four I have dealt with in the last 2 weeks came > with PHP; twenty-three pages of step-by-step instructions, and they > didn't forget about Windows users. I agree that this listserver > wouldn't be nearly as busy if the documentation on the OpenSource > products was more complete and precise, and I also wish there was more > of a collaborative effort between the programmers when releasing new > versions. > > All I can say is, thank goodness for this listserver because I could > have never gotten through this with documentation alone. > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Marco Marsella > Sent: Wednesday, March 02, 2005 1:07 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > I would like to reassure Christine that she's not the only one confused > about OpenSource in general and MapServer in particular. I have over 25 > years of professional programming experience in too many languages, > starting with FORTRAN IV when some of the listers here where probably > not even able to read yet ;-) > > I find myself also *very* confused because of the terribly poor > documentation that usually complements OpenSource projects. Most often > than not, there is just a very technical document that tersely explains > what you can do with this or that parameter. With most Java projects > you just find the JavaDoc! There is little or no high-level > documentation that explains the architecture and lets you find your way > around. Most of the projects require that you spend an inordinate > amount of time looking at the code to understand what you can do and > how. > > For me, I find the MapServer documentation absolutely insufficient and > it is amazing how people prefer to spend a lot of time replying on this > list rather than investing much more efficiently their time writing > decent documentation and providing good tutorials and examples. > > Please, do not misunderstand me! I think MapServer is a terrific > project and I am incredibly grateful to the very knowledgeable guys out > there willing to help through the list. Only, I would much prefer > having good documentation to work through and bother the listers only > when absolutely necessary. > > As you may have seen, I put my.. time where the mouth is. As soon as I > learn how to do something, I will post a message to the list hoping > that it might be of help to others (see "[UMN_MAPSERVER-USERS] A > simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, > but it took me *a lot* of time (and a zillion Google searches) to > figure out, much longer than I would expect! I will be more than happy > to continue doing so to alleviate the trouble of learning MapServer! > > Cheers > > Marco > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From gerry.creager at TAMU.EDU Wed Mar 2 12:09:14 2005 From: gerry.creager at TAMU.EDU (Gerry Creager n5jxs) Date: Wed, 2 Mar 2005 14:09:14 -0600 Subject: A confused Network Admin In-Reply-To: <42261A68.1060804@dmsolutions.ca> Message-ID: As a follow-up on this... I recall a recent JavaDoc comment. My students are required to document in-line, and they're using JavaDoc. If the documentation reviews aren't satisfactory to me, they have to go add documentation. It's got to be possible to go generate a mor compreensive documents from the in-line docs if someone is going to follow behind and perform that more comprehensive documentation. That said, I'm reasonably satisfied with the Mapserver documentation, considering that I consider that to encompass the printed docs, the Wiki, the archives of this list, and the almost real-time help I can get when I'm (so easily) confused. Gerry Paul Spencer wrote: > This is a personal gripe and is not directed at Christine - she just got > me started thinking about it :) > > There is some confusion here in assuming that Open Source = FREE. It > doesn't mean that at all. > > For those of you that like to be able to call up Tech Support, I doubt > that you got the product for free in the first place and that's where > part of your money goes ... paying for Tech Support and Documentation. > > For the MapServer community in general, if you want better > documentation, it has to be paid for either by contributing time writing > the documentation or financially supporting those who can write the > documentation. Its not going to write itself. If you aren't prepared > to contribute then I guess you don't really have a problem. > > Paul > > Lisi, Christine wrote: > >> Marco - I couldn't have put it better myself. The best OpenSource >> documentation of the four I have dealt with in the last 2 weeks came >> with PHP; twenty-three pages of step-by-step instructions, and they >> didn't forget about Windows users. I agree that this listserver >> wouldn't be nearly as busy if the documentation on the OpenSource >> products was more complete and precise, and I also wish there was more >> of a collaborative effort between the programmers when releasing new >> versions. >> >> All I can say is, thank goodness for this listserver because I could >> have never gotten through this with documentation alone. >> >> Christine Lisi >> Application Specialist >> >> Management Information Systems * City of Delray Beach * 100 NW First >> Avenue, Delray Beach, FL 33444 >> >> Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com >> >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of Marco Marsella >> Sent: Wednesday, March 02, 2005 1:07 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin >> >> I would like to reassure Christine that she's not the only one confused >> about OpenSource in general and MapServer in particular. I have over 25 >> years of professional programming experience in too many languages, >> starting with FORTRAN IV when some of the listers here where probably >> not even able to read yet ;-) >> >> I find myself also *very* confused because of the terribly poor >> documentation that usually complements OpenSource projects. Most often >> than not, there is just a very technical document that tersely explains >> what you can do with this or that parameter. With most Java projects >> you just find the JavaDoc! There is little or no high-level >> documentation that explains the architecture and lets you find your way >> around. Most of the projects require that you spend an inordinate >> amount of time looking at the code to understand what you can do and >> how. >> >> For me, I find the MapServer documentation absolutely insufficient and >> it is amazing how people prefer to spend a lot of time replying on this >> list rather than investing much more efficiently their time writing >> decent documentation and providing good tutorials and examples. >> >> Please, do not misunderstand me! I think MapServer is a terrific >> project and I am incredibly grateful to the very knowledgeable guys out >> there willing to help through the list. Only, I would much prefer >> having good documentation to work through and bother the listers only >> when absolutely necessary. >> >> As you may have seen, I put my.. time where the mouth is. As soon as I >> learn how to do something, I will post a message to the list hoping >> that it might be of help to others (see "[UMN_MAPSERVER-USERS] A >> simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, >> but it took me *a lot* of time (and a zillion Google searches) to >> figure out, much longer than I would expect! I will be more than happy >> to continue doing so to alleviate the trouble of learning MapServer! >> >> Cheers >> >> Marco >> >> > > -- > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From hermawan_s at HOTMAIL.COM Wed Mar 2 12:27:44 2005 From: hermawan_s at HOTMAIL.COM (Hermawan Sutantio) Date: Wed, 2 Mar 2005 20:27:44 +0000 Subject: Help on tiger, again. In-Reply-To: <4225C728.7070305@swoodbridge.com> Message-ID: Thanks Stephen for your help. It solved my problem. I'm trying to make a simple 'mapquest' out of these tiger files and I have several questions below: 1. When I label using the field "FENAME" it will only display the name of the road object for example "main", is it possible to display using "FENAME" + "FETYPE" + "FEDIRS" so that it will be "south main st"? 2. Is it possible to get an interstate highway label symbol like the inverted rectangle used to commonly denote interstate highways and put the highway numbers inside it using mapserver? Does the road layer have highway exit number in it? Thanks again for all your help. I appreciate it. Herman Teo >>>>X-OriginalArrivalTime: 02 Mar 2005 14:01:43.0389 (UTC) >>>>FILETIME=[5D4918D0:01C51F30] Hermawan, Sorry, you didn't post your mapfile last time so I didn't have the whole picture. CLASSes are like a CASE statement in software and you need a selector (aka: EXPRESSION) and then some cases (aka: CLASS), then the first CLASS the gets executed stops evaluation of additional CLASSes for that object. So currently, you have no CLASSITEM and no EXPRESSION lines so mapserver is happy to draw your lines with the first CLASS it encounters. You will need to identify an attribute field that allows you to differentiate streets from highways in the Tiger data. This is typically done with the Tiger CFCC field, (I hope your data has this). Assuming it does them you need to set "CLASSITEM 'CFCC'" in the layer and set 'EXPRESSION "A[123]"' in the CLASS for "highway". Since class order is important, you need the "highway" first, then the "Michigan Roads" without an EXPRESSION which will make if the default catch all class. -Steve Hermawan Sutantio wrote: >Is there an identifier for 'highways' in the roads layer that I seem to be >missing? I inserted those piece of code as shown below, but the highways >are >still drawn in black with size 1. Thanks. > >Herman > >LAYER > NAME "Michigan" > TYPE LINE > STATUS DEFAULT > TILEINDEX "C:\ms4w\apps\gmap\htdocs\michigan\roads-tile" > MAXSCALE 50000 > CLASS > NAME "Michigan Roads" > COLOR 0 0 0 > SIZE 1 > END > CLASS > NAME "highway" > COLOR 255 0 0 # make it red > SYMBOL 0 # this is a built in circle symbol > SIZE 5 # make it 5 pixels wide > # if you want it fancy then add also > OVERLAYSYMBOL 0 > OVERLAYCOLOR 255 255 255 # add a white down the center of the red > OVERLAYSIZE 1 > END > > > >>>> >Yes, you can specify thickness like this: > >CLASS > NAME "highway" > COLOR 255 0 0 # make it red > SYMBOL 0 # this is a built in circle symbol > SIZE 5 # make it 5 pixels wide > # if you want it fancy then add also > OVERLAYSYMBOL 0 > OVERLAYCOLOR 255 255 255 # add a white down the center of the red > OVERLAYSIZE 1 >END > >You can also do this by adding multiple STYLE ... END blocks instead of >using OVERLAY* where each STYLE is draw in turn to make a more complex >styling of the line. > >-Steve > >Herman Teo wrote: > >>Hi there. >>I have been working on tiger files for a while now. I manage to get the >>feature labels working right now. I'm just wondering, in roads layer, are >>there ways to make highways stand out in front of the normal roads, such >>as >>giving them thicker red lines? >>Thanks again for all your help. >> >>Herman Teo >> > From rick at INNIS.CA Wed Mar 2 12:25:01 2005 From: rick at INNIS.CA (Rick Innis) Date: Wed, 2 Mar 2005 15:25:01 -0500 Subject: UnsatisfiedLinkError while doing "make test" on OS X Message-ID: Wondering is anyone else is running into this. I'm trying to build the Java mapscript classes on OS X (10.3.8), and get an UnsatisfiedLinkError when I run "make test" java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/libmapscript.jnilib: at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at DumpShp.main(DumpShp.java:32) make: *** [test] Error 255 libmapscript.jnilib is the OS X name for libmapscript.so; it's created using gcc -dynamiclib instead of gcc -shared. I know that the JVM is finding the library, otherwise I'd get a different message, but it's failing to load it. Has anyone run into and resolved this problem on OS X previously, or have any hints on how to resolve it? One possible cause may lie in libmap. I'm currently linking against libmap.a, and in trying to build libmap.so (to see if that resolves the issue above) I'm getting an error from ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option mapparser.o definition of common _msyychar (size 4) mapparser.o definition of common _msyylval (size 48) mapparser.o definition of common _msyynerrs (size 4) mapparser.o definition of common _msyyresult (size 4) maplexer.o definition of common _msyyleng (size 4) maplexer.o definition of common _msyynumber (size 8) maplexer.o definition of common _msyytext (size 4) maptime.o definition of common _ms_num_limited_pattern (size 4) I'm vague on what this means, though from the list of symbols it gives I'm hazarding a guess that it's related to yacc and lex output, since most of the symbols it's complaining about are in mapparser.o and maplexer.o. Any insights anyone can provide will be gratefully received. Thanks, --Rick. From lisi at MYDELRAYBEACH.COM Wed Mar 2 12:43:02 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 15:43:02 -0500 Subject: A confused Network Admin Message-ID: Paul - you are right, phone support does not come cheap, but as someone who has a lot of input on application decisions here, one of my main criteria is that the vendor offer good phone Support. I didn't have much say in the purchase of the ESRI software because it's almost an industry standard from what I understand, but their tech support is on a call-back basis, which amazes me given the cost of the software and maintenance. I think they have the market cornered so they just don't care, but I would think that must frustrate the end user immensely. Again, I am a Network Admin and not an end user of the software, but I can't believe that the industry lets ESRI get away with that. I know once we get into this project it will frustrate me too, and if I have to I will call the President. With the money we are paying for the software, I will take it to the top. Another thing that's relevant to this conversation... 99% of the calls I make to Microsoft are due to problems/errors/exclusions in documentation, and 99% of the time I do not have to pay for the call because in the end it's their documentation (or lack thereof) that is the reason why I'm calling in the first place. I sent an e-mail to the MapServer-Doc list with some suggestions. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Spencer Sent: Wednesday, March 02, 2005 2:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin This is a personal gripe and is not directed at Christine - she just got me started thinking about it :) There is some confusion here in assuming that Open Source = FREE. It doesn't mean that at all. For those of you that like to be able to call up Tech Support, I doubt that you got the product for free in the first place and that's where part of your money goes ... paying for Tech Support and Documentation. For the MapServer community in general, if you want better documentation, it has to be paid for either by contributing time writing the documentation or financially supporting those who can write the documentation. Its not going to write itself. If you aren't prepared to contribute then I guess you don't really have a problem. Paul Lisi, Christine wrote: > Marco - I couldn't have put it better myself. The best OpenSource > documentation of the four I have dealt with in the last 2 weeks came > with PHP; twenty-three pages of step-by-step instructions, and they > didn't forget about Windows users. I agree that this listserver > wouldn't be nearly as busy if the documentation on the OpenSource > products was more complete and precise, and I also wish there was more > of a collaborative effort between the programmers when releasing new > versions. > > All I can say is, thank goodness for this listserver because I could > have never gotten through this with documentation alone. > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Marco Marsella > Sent: Wednesday, March 02, 2005 1:07 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > I would like to reassure Christine that she's not the only one confused > about OpenSource in general and MapServer in particular. I have over 25 > years of professional programming experience in too many languages, > starting with FORTRAN IV when some of the listers here where probably > not even able to read yet ;-) > > I find myself also *very* confused because of the terribly poor > documentation that usually complements OpenSource projects. Most often > than not, there is just a very technical document that tersely explains > what you can do with this or that parameter. With most Java projects > you just find the JavaDoc! There is little or no high-level > documentation that explains the architecture and lets you find your way > around. Most of the projects require that you spend an inordinate > amount of time looking at the code to understand what you can do and > how. > > For me, I find the MapServer documentation absolutely insufficient and > it is amazing how people prefer to spend a lot of time replying on this > list rather than investing much more efficiently their time writing > decent documentation and providing good tutorials and examples. > > Please, do not misunderstand me! I think MapServer is a terrific > project and I am incredibly grateful to the very knowledgeable guys out > there willing to help through the list. Only, I would much prefer > having good documentation to work through and bother the listers only > when absolutely necessary. > > As you may have seen, I put my.. time where the mouth is. As soon as I > learn how to do something, I will post a message to the list hoping > that it might be of help to others (see "[UMN_MAPSERVER-USERS] A > simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, > but it took me *a lot* of time (and a zillion Google searches) to > figure out, much longer than I would expect! I will be more than happy > to continue doing so to alleviate the trouble of learning MapServer! > > Cheers > > Marco > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From rick at INNIS.CA Wed Mar 2 12:52:56 2005 From: rick at INNIS.CA (Rick Innis) Date: Wed, 2 Mar 2005 15:52:56 -0500 Subject: UnsatisfiedLinkError while doing "make test" on OS X - SOLVED In-Reply-To: <7b044e826d16c3f0760fc72aedf3c49f@innis.ca> Message-ID: Resolved it. Needed to add -single_module to my linker flags. Next time I'll RTFM before posting :-) On Mar 2, 2005, at 15:25, Rick Innis wrote: > Wondering is anyone else is running into this. I'm trying to build the > Java mapscript classes on OS X (10.3.8), and get an > UnsatisfiedLinkError when I run "make test" > > java.lang.UnsatisfiedLinkError: > /Library/Java/Extensions/libmapscript.jnilib: > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511) > at java.lang.Runtime.loadLibrary0(Runtime.java:788) > at java.lang.System.loadLibrary(System.java:834) > at DumpShp.main(DumpShp.java:32) > make: *** [test] Error 255 > > libmapscript.jnilib is the OS X name for libmapscript.so; it's created > using gcc -dynamiclib instead of gcc -shared. > > I know that the JVM is finding the library, otherwise I'd get a > different message, but it's failing to load it. Has anyone run into and > resolved this problem on OS X previously, or have any hints on how to > resolve it? > > One possible cause may lie in libmap. I'm currently linking against > libmap.a, and in trying to build libmap.so (to see if that resolves the > issue above) I'm getting an error from ld: > > common symbols not allowed with MH_DYLIB output format with the > -multi_module option > mapparser.o definition of common _msyychar (size 4) > mapparser.o definition of common _msyylval (size 48) > mapparser.o definition of common _msyynerrs (size 4) > mapparser.o definition of common _msyyresult (size 4) > maplexer.o definition of common _msyyleng (size 4) > maplexer.o definition of common _msyynumber (size 8) > maplexer.o definition of common _msyytext (size 4) > maptime.o definition of common _ms_num_limited_pattern (size 4) > > I'm vague on what this means, though from the list of symbols it gives > I'm hazarding a guess that it's related to yacc and lex output, since > most of the symbols it's complaining about are in mapparser.o and > maplexer.o. > > Any insights anyone can provide will be gratefully received. Thanks, > > --Rick. > From ed at TOPOZONE.COM Wed Mar 2 12:57:52 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 2 Mar 2005 15:57:52 -0500 Subject: A confused Network Admin Message-ID: Christine - While I completely agree on the lack of documentation, I am amazed that you use commercial software where you can make a phone call and actually get answers . It has been my experience that most users on this list find the level and quality of technical support they receive far better than they get from commercial providers. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 2:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Marco - I couldn't have put it better myself. The best OpenSource documentation of the four I have dealt with in the last 2 weeks came with PHP; twenty-three pages of step-by-step instructions, and they didn't forget about Windows users. I agree that this listserver wouldn't be nearly as busy if the documentation on the OpenSource products was more complete and precise, and I also wish there was more of a collaborative effort between the programmers when releasing new versions. All I can say is, thank goodness for this listserver because I could have never gotten through this with documentation alone. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: Wednesday, March 02, 2005 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From pspencer at DMSOLUTIONS.CA Wed Mar 2 13:03:13 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Wed, 2 Mar 2005 16:03:13 -0500 Subject: A confused Network Admin In-Reply-To: Message-ID: That's cool :) There are people and companies on this list that can offer you paid support ... same people and probably same advice that you can get through the list but on-demand, more timely, and by telephone :) Microsoft has deep pockets and 'Windows Everywhere'. ESRI ... no comment ;) Your feedback on the doc list will be very helpful. Something you may want to consider is using a pre-packaged environment that comes with everything you need, fully functional and pre-configured such as MS4W (http://www.maptools.org/ms4w/). It provides everything you need including an Apache web server ... it is possible to configure it to run through IIS and we have a prototype of this internally but no documentation ;) yet ... it will be included in MS4W as soon as the docs are done since it is a manual process to integrate stuff into IIS (as you well know by now). Also, it only provides PHP4 at this time ... I would add a note about PHP5 from some users on the Chameleon list, it appears that PHP5 is 25% slower than a similarly configured PHP4, possibly because of how we use PHP but still disappointing. Paul Lisi, Christine wrote: > Paul - you are right, phone support does not come cheap, but as someone > who has a lot of input on application decisions here, one of my main > criteria is that the vendor offer good phone Support. I didn't have > much say in the purchase of the ESRI software because it's almost an > industry standard from what I understand, but their tech support is on a > call-back basis, which amazes me given the cost of the software and > maintenance. I think they have the market cornered so they just don't > care, but I would think that must frustrate the end user immensely. > Again, I am a Network Admin and not an end user of the software, but I > can't believe that the industry lets ESRI get away with that. I know > once we get into this project it will frustrate me too, and if I have to > I will call the President. With the money we are paying for the > software, I will take it to the top. > > Another thing that's relevant to this conversation... 99% of the calls > I make to Microsoft are due to problems/errors/exclusions in > documentation, and 99% of the time I do not have to pay for the call > because in the end it's their documentation (or lack thereof) that is > the reason why I'm calling in the first place. > > I sent an e-mail to the MapServer-Doc list with some suggestions. > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Paul Spencer > Sent: Wednesday, March 02, 2005 2:56 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > This is a personal gripe and is not directed at Christine - she just got > me started thinking about it :) > > There is some confusion here in assuming that Open Source = FREE. It > doesn't mean that at all. > > For those of you that like to be able to call up Tech Support, I doubt > that you got the product for free in the first place and that's where > part of your money goes ... paying for Tech Support and Documentation. > > For the MapServer community in general, if you want better > documentation, it has to be paid for either by contributing time writing > the documentation or financially supporting those who can write the > documentation. Its not going to write itself. If you aren't prepared > to contribute then I guess you don't really have a problem. > > Paul > > Lisi, Christine wrote: > >>Marco - I couldn't have put it better myself. The best OpenSource >>documentation of the four I have dealt with in the last 2 weeks came >>with PHP; twenty-three pages of step-by-step instructions, and they >>didn't forget about Windows users. I agree that this listserver >>wouldn't be nearly as busy if the documentation on the OpenSource >>products was more complete and precise, and I also wish there was more >>of a collaborative effort between the programmers when releasing new >>versions. >> >>All I can say is, thank goodness for this listserver because I could >>have never gotten through this with documentation alone. >> >>Christine Lisi >>Application Specialist >> >>Management Information Systems * City of Delray Beach * 100 NW First >>Avenue, Delray Beach, FL 33444 >> >>Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > Lisi at MyDelrayBeach.com > >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On > >>Behalf Of Marco Marsella >>Sent: Wednesday, March 02, 2005 1:07 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin >> >>I would like to reassure Christine that she's not the only one > > confused > >>about OpenSource in general and MapServer in particular. I have over > > 25 > >>years of professional programming experience in too many languages, >>starting with FORTRAN IV when some of the listers here where probably >>not even able to read yet ;-) >> >>I find myself also *very* confused because of the terribly poor >>documentation that usually complements OpenSource projects. Most often >>than not, there is just a very technical document that tersely > > explains > >>what you can do with this or that parameter. With most Java projects >>you just find the JavaDoc! There is little or no high-level >>documentation that explains the architecture and lets you find your > > way > >>around. Most of the projects require that you spend an inordinate >>amount of time looking at the code to understand what you can do and >>how. >> >>For me, I find the MapServer documentation absolutely insufficient and >>it is amazing how people prefer to spend a lot of time replying on > > this > >>list rather than investing much more efficiently their time writing >>decent documentation and providing good tutorials and examples. >> >>Please, do not misunderstand me! I think MapServer is a terrific >>project and I am incredibly grateful to the very knowledgeable guys > > out > >>there willing to help through the list. Only, I would much prefer >>having good documentation to work through and bother the listers only >>when absolutely necessary. >> >>As you may have seen, I put my.. time where the mouth is. As soon as I >>learn how to do something, I will post a message to the list hoping >>that it might be of help to others (see "[UMN_MAPSERVER-USERS] A >>simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, >>but it took me *a lot* of time (and a zillion Google searches) to >>figure out, much longer than I would expect! I will be more than happy >>to continue doing so to alleviate the trouble of learning MapServer! >> >>Cheers >> >>Marco >> >> > > > -- > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From lisi at MYDELRAYBEACH.COM Wed Mar 2 13:07:40 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 16:07:40 -0500 Subject: A confused Network Admin Message-ID: There's no doubt that there are a lot of poor support personnel out there. The main problem is that they are not out here in the real world with real world experience and real world problems! But if I get someone with a lack of knowledge on my problem I will ask them to escalate the call to a 2nd level team. Most, if not all, software companies have 2nd level support teams and 9 times out of 10 those teams are the actual programmers. Microsoft, the largest software company in America (right?) has got some of the worst technicians around, but they are very respectful and will ALWAYS pass you to 2nd level support if they cannot help. I guess it's how much you are willing to push. I don't take no for an answer when it comes to getting a job done, and the other thing is that I do not call support unless I know it is a real problem with the software. I always refer to knowledge bases, support docs, etc. before calling for help. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 3:58 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - While I completely agree on the lack of documentation, I am amazed that you use commercial software where you can make a phone call and actually get answers . It has been my experience that most users on this list find the level and quality of technical support they receive far better than they get from commercial providers. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 2:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Marco - I couldn't have put it better myself. The best OpenSource documentation of the four I have dealt with in the last 2 weeks came with PHP; twenty-three pages of step-by-step instructions, and they didn't forget about Windows users. I agree that this listserver wouldn't be nearly as busy if the documentation on the OpenSource products was more complete and precise, and I also wish there was more of a collaborative effort between the programmers when releasing new versions. All I can say is, thank goodness for this listserver because I could have never gotten through this with documentation alone. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: Wednesday, March 02, 2005 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From gerry.creager at TAMU.EDU Wed Mar 2 13:10:07 2005 From: gerry.creager at TAMU.EDU (Gerry Creager n5jxs) Date: Wed, 2 Mar 2005 15:10:07 -0600 Subject: A confused Network Admin In-Reply-To: <4BF377919225F449BB097CB76FFE9BC81880E4@ptolemy.topozone.com> Message-ID: One of the reasons I'm not using ESRI s/w anymore. That and their horrible Linux support. gerry Ed McNierney wrote: > Christine - > > While I completely agree on the lack of documentation, I am amazed that > you use commercial software where you can make a phone call and actually > get answers . It has been my experience that most users on this list > find the level and quality of technical support they receive far better > than they get from commercial providers. > > - Ed > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Lisi, Christine > Sent: Wednesday, March 02, 2005 2:09 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > Marco - I couldn't have put it better myself. The best OpenSource > documentation of the four I have dealt with in the last 2 weeks came > with PHP; twenty-three pages of step-by-step instructions, and they > didn't forget about Windows users. I agree that this listserver > wouldn't be nearly as busy if the documentation on the OpenSource > products was more complete and precise, and I also wish there was more > of a collaborative effort between the programmers when releasing new > versions. > > All I can say is, thank goodness for this listserver because I could > have never gotten through this with documentation alone. > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Marco Marsella > Sent: Wednesday, March 02, 2005 1:07 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > I would like to reassure Christine that she's not the only one confused > about OpenSource in general and MapServer in particular. I have over 25 > years of professional programming experience in too many languages, > starting with FORTRAN IV when some of the listers here where probably > not even able to read yet ;-) > > I find myself also *very* confused because of the terribly poor > documentation that usually complements OpenSource projects. Most often > than not, there is just a very technical document that tersely explains > what you can do with this or that parameter. With most Java projects > you just find the JavaDoc! There is little or no high-level > documentation that explains the architecture and lets you find your way > around. Most of the projects require that you spend an inordinate > amount of time looking at the code to understand what you can do and > how. > > For me, I find the MapServer documentation absolutely insufficient and > it is amazing how people prefer to spend a lot of time replying on this > list rather than investing much more efficiently their time writing > decent documentation and providing good tutorials and examples. > > Please, do not misunderstand me! I think MapServer is a terrific > project and I am incredibly grateful to the very knowledgeable guys out > there willing to help through the list. Only, I would much prefer > having good documentation to work through and bother the listers only > when absolutely necessary. > > As you may have seen, I put my.. time where the mouth is. As soon as I > learn how to do something, I will post a message to the list hoping > that it might be of help to others (see "[UMN_MAPSERVER-USERS] A > simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, > but it took me *a lot* of time (and a zillion Google searches) to > figure out, much longer than I would expect! I will be more than happy > to continue doing so to alleviate the trouble of learning MapServer! > > Cheers > > Marco > -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From frstylrz at JUNO.COM Wed Mar 2 13:18:00 2005 From: frstylrz at JUNO.COM (Confused) Date: Wed, 2 Mar 2005 15:18:00 -0600 Subject: netCDF.. in mapserver -how to? Message-ID: I'm an absolute newbie in mapservers or this whole GIS realm in general. Lately I've posted quite a few, regarding setting up mapserver and gdal. Thanks to everyone that helped. At the moment, I've got MS4W 4.4.1 and all of their supplementary applications, found on www.maptools.org, running. I needed a GDAL tool as well, so I dl'd FWTools. My new task is getting a netCDF file to work with MS4W.. my question now is.. I have a netCDF file, how can I get it to work with MS4W? I apologize for sounding so broad with this questions, but I'm just the average entry-level IT guy. I just know basic computer hard/software things at the moment. I don't know anything about GIS or Mapservers, but I'm really trying hard to grasp these concepts. Please, if someone can point me in the right direction, that's great. From fwarmerdam at GMAIL.COM Wed Mar 2 13:21:32 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 2 Mar 2005 16:21:32 -0500 Subject: netCDF.. in mapserver -how to? In-Reply-To: Message-ID: On Wed, 2 Mar 2005 15:18:00 -0600, Confused wrote: > I'm an absolute newbie in mapservers or this whole GIS realm in general. > Lately I've posted quite a few, regarding setting up mapserver and gdal. > Thanks to everyone that helped. At the moment, I've got MS4W 4.4.1 and all > of their supplementary applications, found on www.maptools.org, running. I > needed a GDAL tool as well, so I dl'd FWTools. My new task is getting a > netCDF file to work with MS4W.. my question now is.. I have a netCDF file, > how can I get it to work with MS4W? I apologize for sounding so broad with > this questions, but I'm just the average entry-level IT guy. I just know > basic computer hard/software things at the moment. I don't know anything > about GIS or Mapservers, but I'm really trying hard to grasp these > concepts. Please, if someone can point me in the right direction, that's > great. Confused, NetCDF is a *very* flexible format. Can you be more specific about the nature of your netCDF file and how you want to use it? There is limited support for NetCDF 2D (and 3D) arrays as grids in GDAL if built with the netcdf libraries. The latest FWTools builds on linux and win32 should include this netCDF support, such as it is. However, if you have data that you essentially want to treat as features (ie, points, lines or polygons) then you are not going to be able to do so directly. You will need to translate with some external software. Alternatively, one approach I have used is to publish the netCDF data through the netCDF OPeNDAP server and consume that in MapServer (via OGR). That works though it is a bit complicated to setup. I would add that I doubt MS4W includes netCDF support and that you can't mix and match DLLs between MS4W and FWTools. 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 ed at TOPOZONE.COM Wed Mar 2 13:24:44 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 2 Mar 2005 16:24:44 -0500 Subject: A confused Network Admin Message-ID: Christine - Yes, I agree - but how much time have you spent working your way through that process? While there are CERTAINLY disadvantages to the support mechanisms currently available for MapServer, you don't get to call Microsoft and get help from the person who wrote the code you're using. And the support you get here is indeed from those of us with "real world experience and real world problems". At no charge, and relatively promptly, you've gotten help from about half a dozen individuals including MapServer developers and some real-world users. It's certainly not perfect, but it's better than what I've found in the majority of the commercial products I've used. Put another way, suppose your consultant told you to set up and install ArcIMS, Oracle, IIS, and Visual Studio when you had never seen ANY of those products before. I don't know which would be quicker or easier, but neither process would be simple. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 4:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin There's no doubt that there are a lot of poor support personnel out there. The main problem is that they are not out here in the real world with real world experience and real world problems! But if I get someone with a lack of knowledge on my problem I will ask them to escalate the call to a 2nd level team. Most, if not all, software companies have 2nd level support teams and 9 times out of 10 those teams are the actual programmers. Microsoft, the largest software company in America (right?) has got some of the worst technicians around, but they are very respectful and will ALWAYS pass you to 2nd level support if they cannot help. I guess it's how much you are willing to push. I don't take no for an answer when it comes to getting a job done, and the other thing is that I do not call support unless I know it is a real problem with the software. I always refer to knowledge bases, support docs, etc. before calling for help. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 3:58 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - While I completely agree on the lack of documentation, I am amazed that you use commercial software where you can make a phone call and actually get answers . It has been my experience that most users on this list find the level and quality of technical support they receive far better than they get from commercial providers. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 2:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Marco - I couldn't have put it better myself. The best OpenSource documentation of the four I have dealt with in the last 2 weeks came with PHP; twenty-three pages of step-by-step instructions, and they didn't forget about Windows users. I agree that this listserver wouldn't be nearly as busy if the documentation on the OpenSource products was more complete and precise, and I also wish there was more of a collaborative effort between the programmers when releasing new versions. All I can say is, thank goodness for this listserver because I could have never gotten through this with documentation alone. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: Wednesday, March 02, 2005 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From mike.and.kerry at GMAIL.COM Wed Mar 2 13:38:29 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Wed, 2 Mar 2005 12:38:29 -0900 Subject: A confused Network Admin In-Reply-To: <4BF377919225F449BB097CB76FFE9BC81880E6@ptolemy.topozone.com> Message-ID: I must second Ed's comment. Our shop uses both ESRI products and Mapserver every day. When a problem arises with our ESRI software, more often than not, the solution is found somewhere in the user forums. Despite regular tithing to keep our licenses current, actual technical support hasn't been very great. When a mapserver issue pops up, I have found many answers by doing a quick google of the problem. In the couple of instances where that didn't work, a quick e-mail to the list has solicited numerous intelligent responses... often including comments from the coder responsible for implementing the feature in question. The community method of support may make it more difficult to pass the buck, but I have rarely found an issue I couldn't resolve in less than a day. From lisi at MYDELRAYBEACH.COM Wed Mar 2 13:48:27 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 16:48:27 -0500 Subject: A confused Network Admin Message-ID: Ya know, I have not complained about any specific software or the help I have gotten from this list. I have only expressed my frustration with my first experience EVER with OpenSource software. I think you guys are great. How wouldn't a woman enjoy speaking to so many men in two days? ;-) Everyone has been really nice and helpful. I apologize if I've given the impression of lack of appreciation because that wasn't at all my intent. Maybe you misunderstood. Someone like me would much rather call support, but I am grateful that I have this because otherwise the job would not get done. P.S. Last week I started this project and I have since installed the following: ArcSDE (no experience), SQL 2000 (some experience), IIS6 (some experience), MapServer, PHP, MapScript (no experience) on one server. It's getting them all to work together that I'm not sure of yet but I'm leaving that to our consultant. They all work independently, but as far as how they will work together - that remains to be seen. This has not been simple, but nothing in the world of software applications is and I enjoy the challenge greatly. Otherwise I wouldn't be doing it. Cheers, Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 4:25 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - Yes, I agree - but how much time have you spent working your way through that process? While there are CERTAINLY disadvantages to the support mechanisms currently available for MapServer, you don't get to call Microsoft and get help from the person who wrote the code you're using. And the support you get here is indeed from those of us with "real world experience and real world problems". At no charge, and relatively promptly, you've gotten help from about half a dozen individuals including MapServer developers and some real-world users. It's certainly not perfect, but it's better than what I've found in the majority of the commercial products I've used. Put another way, suppose your consultant told you to set up and install ArcIMS, Oracle, IIS, and Visual Studio when you had never seen ANY of those products before. I don't know which would be quicker or easier, but neither process would be simple. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 4:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin There's no doubt that there are a lot of poor support personnel out there. The main problem is that they are not out here in the real world with real world experience and real world problems! But if I get someone with a lack of knowledge on my problem I will ask them to escalate the call to a 2nd level team. Most, if not all, software companies have 2nd level support teams and 9 times out of 10 those teams are the actual programmers. Microsoft, the largest software company in America (right?) has got some of the worst technicians around, but they are very respectful and will ALWAYS pass you to 2nd level support if they cannot help. I guess it's how much you are willing to push. I don't take no for an answer when it comes to getting a job done, and the other thing is that I do not call support unless I know it is a real problem with the software. I always refer to knowledge bases, support docs, etc. before calling for help. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 3:58 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - While I completely agree on the lack of documentation, I am amazed that you use commercial software where you can make a phone call and actually get answers . It has been my experience that most users on this list find the level and quality of technical support they receive far better than they get from commercial providers. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 2:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Marco - I couldn't have put it better myself. The best OpenSource documentation of the four I have dealt with in the last 2 weeks came with PHP; twenty-three pages of step-by-step instructions, and they didn't forget about Windows users. I agree that this listserver wouldn't be nearly as busy if the documentation on the OpenSource products was more complete and precise, and I also wish there was more of a collaborative effort between the programmers when releasing new versions. All I can say is, thank goodness for this listserver because I could have never gotten through this with documentation alone. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: Wednesday, March 02, 2005 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From ed at TOPOZONE.COM Wed Mar 2 13:55:02 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 2 Mar 2005 16:55:02 -0500 Subject: A confused Network Admin Message-ID: Christine - Actually, I've become convinced that this is just a scheme to satisfy your consultant's desire to play with all these cool toys ! - Ed -----Original Message----- From: Lisi, Christine [mailto:lisi at mydelraybeach.com] Sent: Wednesday, March 02, 2005 4:48 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Ya know, I have not complained about any specific software or the help I have gotten from this list. I have only expressed my frustration with my first experience EVER with OpenSource software. I think you guys are great. How wouldn't a woman enjoy speaking to so many men in two days? ;-) Everyone has been really nice and helpful. I apologize if I've given the impression of lack of appreciation because that wasn't at all my intent. Maybe you misunderstood. Someone like me would much rather call support, but I am grateful that I have this because otherwise the job would not get done. P.S. Last week I started this project and I have since installed the following: ArcSDE (no experience), SQL 2000 (some experience), IIS6 (some experience), MapServer, PHP, MapScript (no experience) on one server. It's getting them all to work together that I'm not sure of yet but I'm leaving that to our consultant. They all work independently, but as far as how they will work together - that remains to be seen. This has not been simple, but nothing in the world of software applications is and I enjoy the challenge greatly. Otherwise I wouldn't be doing it. Cheers, Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 4:25 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - Yes, I agree - but how much time have you spent working your way through that process? While there are CERTAINLY disadvantages to the support mechanisms currently available for MapServer, you don't get to call Microsoft and get help from the person who wrote the code you're using. And the support you get here is indeed from those of us with "real world experience and real world problems". At no charge, and relatively promptly, you've gotten help from about half a dozen individuals including MapServer developers and some real-world users. It's certainly not perfect, but it's better than what I've found in the majority of the commercial products I've used. Put another way, suppose your consultant told you to set up and install ArcIMS, Oracle, IIS, and Visual Studio when you had never seen ANY of those products before. I don't know which would be quicker or easier, but neither process would be simple. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 4:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin There's no doubt that there are a lot of poor support personnel out there. The main problem is that they are not out here in the real world with real world experience and real world problems! But if I get someone with a lack of knowledge on my problem I will ask them to escalate the call to a 2nd level team. Most, if not all, software companies have 2nd level support teams and 9 times out of 10 those teams are the actual programmers. Microsoft, the largest software company in America (right?) has got some of the worst technicians around, but they are very respectful and will ALWAYS pass you to 2nd level support if they cannot help. I guess it's how much you are willing to push. I don't take no for an answer when it comes to getting a job done, and the other thing is that I do not call support unless I know it is a real problem with the software. I always refer to knowledge bases, support docs, etc. before calling for help. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 3:58 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - While I completely agree on the lack of documentation, I am amazed that you use commercial software where you can make a phone call and actually get answers . It has been my experience that most users on this list find the level and quality of technical support they receive far better than they get from commercial providers. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 2:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Marco - I couldn't have put it better myself. The best OpenSource documentation of the four I have dealt with in the last 2 weeks came with PHP; twenty-three pages of step-by-step instructions, and they didn't forget about Windows users. I agree that this listserver wouldn't be nearly as busy if the documentation on the OpenSource products was more complete and precise, and I also wish there was more of a collaborative effort between the programmers when releasing new versions. All I can say is, thank goodness for this listserver because I could have never gotten through this with documentation alone. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: Wednesday, March 02, 2005 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From lisi at MYDELRAYBEACH.COM Wed Mar 2 13:57:02 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 16:57:02 -0500 Subject: A confused Network Admin Message-ID: When it comes to ESRI and MapServer, I agree this will be the best method. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mike Davis Sent: Wednesday, March 02, 2005 4:38 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I must second Ed's comment. Our shop uses both ESRI products and Mapserver every day. When a problem arises with our ESRI software, more often than not, the solution is found somewhere in the user forums. Despite regular tithing to keep our licenses current, actual technical support hasn't been very great. When a mapserver issue pops up, I have found many answers by doing a quick google of the problem. In the couple of instances where that didn't work, a quick e-mail to the list has solicited numerous intelligent responses... often including comments from the coder responsible for implementing the feature in question. The community method of support may make it more difficult to pass the buck, but I have rarely found an issue I couldn't resolve in less than a day. From asimpson at I-55.COM Wed Mar 2 14:01:20 2005 From: asimpson at I-55.COM (Simpson) Date: Wed, 2 Mar 2005 16:01:20 -0600 Subject: A confused Network Admin In-Reply-To: <4BF377919225F449BB097CB76FFE9BC81880E6@ptolemy.topozone.com> Message-ID: A perspective from another user, Mapserver has by far the most exact, timely and detailed documentation; source code. Though definitely not the most user friendly, if one can understand the methods by which the geniuses write Mapserver, gdal, etc., then no amount of money could be spent to write an equivalent help system. If I had a vote, I'd prefer these guys continue to keep up with and invent the rapidly moving bleeding edge of GIS over writing documentation. Sorry, I couldn't take it any more, Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Wednesday, March 02, 2005 3:25 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - Yes, I agree - but how much time have you spent working your way through that process? While there are CERTAINLY disadvantages to the support mechanisms currently available for MapServer, you don't get to call Microsoft and get help from the person who wrote the code you're using. And the support you get here is indeed from those of us with "real world experience and real world problems". At no charge, and relatively promptly, you've gotten help from about half a dozen individuals including MapServer developers and some real-world users. It's certainly not perfect, but it's better than what I've found in the majority of the commercial products I've used. Put another way, suppose your consultant told you to set up and install ArcIMS, Oracle, IIS, and Visual Studio when you had never seen ANY of those products before. I don't know which would be quicker or easier, but neither process would be simple. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 4:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin There's no doubt that there are a lot of poor support personnel out there. The main problem is that they are not out here in the real world with real world experience and real world problems! But if I get someone with a lack of knowledge on my problem I will ask them to escalate the call to a 2nd level team. Most, if not all, software companies have 2nd level support teams and 9 times out of 10 those teams are the actual programmers. Microsoft, the largest software company in America (right?) has got some of the worst technicians around, but they are very respectful and will ALWAYS pass you to 2nd level support if they cannot help. I guess it's how much you are willing to push. I don't take no for an answer when it comes to getting a job done, and the other thing is that I do not call support unless I know it is a real problem with the software. I always refer to knowledge bases, support docs, etc. before calling for help. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 3:58 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - While I completely agree on the lack of documentation, I am amazed that you use commercial software where you can make a phone call and actually get answers . It has been my experience that most users on this list find the level and quality of technical support they receive far better than they get from commercial providers. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 2:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Marco - I couldn't have put it better myself. The best OpenSource documentation of the four I have dealt with in the last 2 weeks came with PHP; twenty-three pages of step-by-step instructions, and they didn't forget about Windows users. I agree that this listserver wouldn't be nearly as busy if the documentation on the OpenSource products was more complete and precise, and I also wish there was more of a collaborative effort between the programmers when releasing new versions. All I can say is, thank goodness for this listserver because I could have never gotten through this with documentation alone. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: Wednesday, March 02, 2005 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From lisi at MYDELRAYBEACH.COM Wed Mar 2 14:03:01 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 17:03:01 -0500 Subject: A confused Network Admin Message-ID: I know - this thread must be huge (I'm only subscribed to the e-mail and don't see the whole thread!) Thanks for your input, Drew. I can't imagine the brains of the guys/gals that write this stuff. Credit where credit is due. They all have my respect. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Simpson Sent: Wednesday, March 02, 2005 5:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin A perspective from another user, Mapserver has by far the most exact, timely and detailed documentation; source code. Though definitely not the most user friendly, if one can understand the methods by which the geniuses write Mapserver, gdal, etc., then no amount of money could be spent to write an equivalent help system. If I had a vote, I'd prefer these guys continue to keep up with and invent the rapidly moving bleeding edge of GIS over writing documentation. Sorry, I couldn't take it any more, Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Wednesday, March 02, 2005 3:25 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - Yes, I agree - but how much time have you spent working your way through that process? While there are CERTAINLY disadvantages to the support mechanisms currently available for MapServer, you don't get to call Microsoft and get help from the person who wrote the code you're using. And the support you get here is indeed from those of us with "real world experience and real world problems". At no charge, and relatively promptly, you've gotten help from about half a dozen individuals including MapServer developers and some real-world users. It's certainly not perfect, but it's better than what I've found in the majority of the commercial products I've used. Put another way, suppose your consultant told you to set up and install ArcIMS, Oracle, IIS, and Visual Studio when you had never seen ANY of those products before. I don't know which would be quicker or easier, but neither process would be simple. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 4:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin There's no doubt that there are a lot of poor support personnel out there. The main problem is that they are not out here in the real world with real world experience and real world problems! But if I get someone with a lack of knowledge on my problem I will ask them to escalate the call to a 2nd level team. Most, if not all, software companies have 2nd level support teams and 9 times out of 10 those teams are the actual programmers. Microsoft, the largest software company in America (right?) has got some of the worst technicians around, but they are very respectful and will ALWAYS pass you to 2nd level support if they cannot help. I guess it's how much you are willing to push. I don't take no for an answer when it comes to getting a job done, and the other thing is that I do not call support unless I know it is a real problem with the software. I always refer to knowledge bases, support docs, etc. before calling for help. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 3:58 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - While I completely agree on the lack of documentation, I am amazed that you use commercial software where you can make a phone call and actually get answers . It has been my experience that most users on this list find the level and quality of technical support they receive far better than they get from commercial providers. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 2:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Marco - I couldn't have put it better myself. The best OpenSource documentation of the four I have dealt with in the last 2 weeks came with PHP; twenty-three pages of step-by-step instructions, and they didn't forget about Windows users. I agree that this listserver wouldn't be nearly as busy if the documentation on the OpenSource products was more complete and precise, and I also wish there was more of a collaborative effort between the programmers when releasing new versions. All I can say is, thank goodness for this listserver because I could have never gotten through this with documentation alone. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: Wednesday, March 02, 2005 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From lisi at MYDELRAYBEACH.COM Wed Mar 2 14:04:16 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 17:04:16 -0500 Subject: A confused Network Admin Message-ID: LOL - I'm looking forward to seeing all the fun stuff happen when she gets here! You've been great. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 4:55 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - Actually, I've become convinced that this is just a scheme to satisfy your consultant's desire to play with all these cool toys ! - Ed -----Original Message----- From: Lisi, Christine [mailto:lisi at mydelraybeach.com] Sent: Wednesday, March 02, 2005 4:48 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Ya know, I have not complained about any specific software or the help I have gotten from this list. I have only expressed my frustration with my first experience EVER with OpenSource software. I think you guys are great. How wouldn't a woman enjoy speaking to so many men in two days? ;-) Everyone has been really nice and helpful. I apologize if I've given the impression of lack of appreciation because that wasn't at all my intent. Maybe you misunderstood. Someone like me would much rather call support, but I am grateful that I have this because otherwise the job would not get done. P.S. Last week I started this project and I have since installed the following: ArcSDE (no experience), SQL 2000 (some experience), IIS6 (some experience), MapServer, PHP, MapScript (no experience) on one server. It's getting them all to work together that I'm not sure of yet but I'm leaving that to our consultant. They all work independently, but as far as how they will work together - that remains to be seen. This has not been simple, but nothing in the world of software applications is and I enjoy the challenge greatly. Otherwise I wouldn't be doing it. Cheers, Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 4:25 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - Yes, I agree - but how much time have you spent working your way through that process? While there are CERTAINLY disadvantages to the support mechanisms currently available for MapServer, you don't get to call Microsoft and get help from the person who wrote the code you're using. And the support you get here is indeed from those of us with "real world experience and real world problems". At no charge, and relatively promptly, you've gotten help from about half a dozen individuals including MapServer developers and some real-world users. It's certainly not perfect, but it's better than what I've found in the majority of the commercial products I've used. Put another way, suppose your consultant told you to set up and install ArcIMS, Oracle, IIS, and Visual Studio when you had never seen ANY of those products before. I don't know which would be quicker or easier, but neither process would be simple. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 4:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin There's no doubt that there are a lot of poor support personnel out there. The main problem is that they are not out here in the real world with real world experience and real world problems! But if I get someone with a lack of knowledge on my problem I will ask them to escalate the call to a 2nd level team. Most, if not all, software companies have 2nd level support teams and 9 times out of 10 those teams are the actual programmers. Microsoft, the largest software company in America (right?) has got some of the worst technicians around, but they are very respectful and will ALWAYS pass you to 2nd level support if they cannot help. I guess it's how much you are willing to push. I don't take no for an answer when it comes to getting a job done, and the other thing is that I do not call support unless I know it is a real problem with the software. I always refer to knowledge bases, support docs, etc. before calling for help. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 3:58 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - While I completely agree on the lack of documentation, I am amazed that you use commercial software where you can make a phone call and actually get answers . It has been my experience that most users on this list find the level and quality of technical support they receive far better than they get from commercial providers. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 2:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Marco - I couldn't have put it better myself. The best OpenSource documentation of the four I have dealt with in the last 2 weeks came with PHP; twenty-three pages of step-by-step instructions, and they didn't forget about Windows users. I agree that this listserver wouldn't be nearly as busy if the documentation on the OpenSource products was more complete and precise, and I also wish there was more of a collaborative effort between the programmers when releasing new versions. All I can say is, thank goodness for this listserver because I could have never gotten through this with documentation alone. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: Wednesday, March 02, 2005 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From kenlord at GMAIL.COM Wed Mar 2 14:05:38 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 2 Mar 2005 16:05:38 -0600 Subject: legend icons and transparency alpha for pixmap Message-ID: I'd like to second the motion on this bug .. In my case im using Mapserver 4.4.1 CGI, and a vector symbol overtop a solid colour to symbolize the fill of a polygon. The 'TRANSPARENCY ALPHA' setting in the layer, and 'TRANSPARENT ON' in my RGB jpeg outputformat fixed the appearance on the map, the map is fine, but the icons generated in the legend are broken. The vector symbol lacks the transparency that it has on the map, and blocks out the solid fill colour underneath. The vector symbol is a simple diagonal line: SYMBOL NAME 'hatch1' TYPE VECTOR TRANSPARENT 0 POINTS 0 1 1 0 END END The typical class in the layer with the problem legend icons looks like this: CLASS EXPRESSION .... NAME "...." STYLE COLOR 250 250 130 END STYLE SYMBOL 'hatch1' COLOR 153 209 155 SIZE 3 END STYLE OUTLINECOLOR 0 0 0 SYMBOL "circle" SIZE 1 END END In this case, the legend icon would appear as white with the '153 209 155' diagonal lines, outlined in black. If correct it would appear as '250 250 130' with the '153 209 155' diagonal lines, outlined in black. Thanks Ken Lord Vancouver BC From sgillies at FRII.COM Wed Mar 2 14:13:15 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 2 Mar 2005 15:13:15 -0700 Subject: legend icons and transparency alpha for pixmap In-Reply-To: Message-ID: Ken, It's fixed in CVS and will be working in the 4.4.2 release. cheers, Sean On Mar 2, 2005, at 3:05 PM, Ken Lord wrote: > I'd like to second the motion on this bug .. > > In my case im using Mapserver 4.4.1 CGI, and a vector symbol overtop a > solid colour to symbolize the fill of a polygon. > > The 'TRANSPARENCY ALPHA' setting in the layer, and 'TRANSPARENT ON' in > my > RGB jpeg outputformat fixed the appearance on the map, the map is fine, > but the icons generated in the legend are broken. The vector symbol > lacks > the transparency that it has on the map, and blocks out the solid fill > colour underneath. > > The vector symbol is a simple diagonal line: > > SYMBOL > NAME 'hatch1' > TYPE VECTOR > TRANSPARENT 0 > POINTS > 0 1 > 1 0 > END > END > > The typical class in the layer with the problem legend icons looks like > this: > > CLASS > EXPRESSION .... > NAME "...." > STYLE > COLOR 250 250 130 > END > STYLE > SYMBOL 'hatch1' > COLOR 153 209 155 > SIZE 3 > END > STYLE > OUTLINECOLOR 0 0 0 > SYMBOL "circle" > SIZE 1 > END > END > > In this case, the legend icon would appear as white with the '153 209 > 155' > diagonal lines, outlined in black. If correct it would appear as '250 > 250 > 130' with the '153 209 155' diagonal lines, outlined in black. > > Thanks > Ken Lord > Vancouver BC > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From jdenisgiguere at FASTMAIL.FM Wed Mar 2 14:32:07 2005 From: jdenisgiguere at FASTMAIL.FM (Jean-Denis Giguere) Date: Wed, 2 Mar 2005 17:32:07 -0500 Subject: Annotation trouble within mapscript Message-ID: Hi ! I have trouble with an annotation layer using python mapscript. This layer is drawn without trouble using mapserv cgi. I have no error message when I try to draw it with mapscript, but I get no label. The annotation layer is routesEti. Following the related part of the script and mapfile. Any hint would be really appreciated. Regards, Jean-Denis *** Script #Mapfile mapfile = "../../mapserv/mapfile/sbk-demo.map" #La cartographic object carto = mapscript.mapObj(mapfile) #Map carte = carto.prepareImage() #Layer to draw aAfficher = [] aAfficher.append("routes") aAfficher.append("rivieres") aAfficher.append("batiments") aAfficher.append("parcs") aAfficher.append("routesEti") for nm in aAfficher: layer = carto.getLayerByName(nm) layer.status = mapscript.MS_ON layer.draw(carto, carte) #Name of map prefix = "/home/data/www/geodemo/tmp/" nomCarte = carto.name nomFichCarte = '%s%s.%s' % (prefix, nomCarte, carto.outputformat.extension) #Write map carte.save(nomFichCarte) #Access file accesCarte = "/tmp/%s.%s" % (nomCarte, carto.outputformat.extension) *** *** Mapfile LAYER NAME "routesEti" CONNECTIONTYPE postgis CONNECTION "dbname=sbk-demo" DATA "wkb_geometry from (SELECT nom_rue, gen_rue, collect(wkb_geometry) as wkb_geometry FROM troncons GROUP BY nom_rue, gen_rue) as foo using SRID=32187 using unique nom_rue" STATUS ON TYPE annotation METADATA "wms_title" "Routes" END #CLASS # EXPRESSION ( '[vitesse]' = '80') # NAME "Voie rapide" # STYLE # END #END CLASS NAME "Boulevards" EXPRESSION ( '[gen_rue]' = 'BOULEVARD') #TEXT ([nom_rue]) TEXT "Boulevard" LABEL ANGLE auto ANTIALIAS true POSITION auto TYPE truetype FONT 'vera-bold' SIZE 8 BUFFER 4 END END CLASS NAME "Routes" TEXT ([nom_rue]) LABEL ANGLE AUTO TYPE truetype FONT 'vera' SIZE 8 OFFSET -6 -6 BUFFER 4 END END END *** Jean-Denis Gigu?re ?tudiant en g?omatique appliqu?e ? l'environnement Stagiaire ? l'Agence de d?veloppement de r?seaux locaux de services de sant? et de services sociaux de l'Estrie T?l. 829-3400 42008 Courriel. jdenisgiguere at fastmail.fm From kenlord at GMAIL.COM Wed Mar 2 14:33:18 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 2 Mar 2005 14:33:18 -0800 Subject: legend icons and transparency alpha for pixmap In-Reply-To: Message-ID: Great! Thanks Sean, -Ken On Wed, 2 Mar 2005 15:13:15 -0700, Sean Gillies wrote: > Ken, > > It's fixed in CVS and will be working in the 4.4.2 release. > > cheers, > Sean > > On Mar 2, 2005, at 3:05 PM, Ken Lord wrote: > > > I'd like to second the motion on this bug .. > > > > In my case im using Mapserver 4.4.1 CGI, and a vector symbol overtop a > > solid colour to symbolize the fill of a polygon. > > > > The 'TRANSPARENCY ALPHA' setting in the layer, and 'TRANSPARENT ON' in > > my > > RGB jpeg outputformat fixed the appearance on the map, the map is fine, > > but the icons generated in the legend are broken. The vector symbol > > lacks > > the transparency that it has on the map, and blocks out the solid fill > > colour underneath. > > > > The vector symbol is a simple diagonal line: > > > > SYMBOL > > NAME 'hatch1' > > TYPE VECTOR > > TRANSPARENT 0 > > POINTS > > 0 1 > > 1 0 > > END > > END > > > > The typical class in the layer with the problem legend icons looks like > > this: > > > > CLASS > > EXPRESSION .... > > NAME "...." > > STYLE > > COLOR 250 250 130 > > END > > STYLE > > SYMBOL 'hatch1' > > COLOR 153 209 155 > > SIZE 3 > > END > > STYLE > > OUTLINECOLOR 0 0 0 > > SYMBOL "circle" > > SIZE 1 > > END > > END > > > > In this case, the legend icon would appear as white with the '153 209 > > 155' > > diagonal lines, outlined in black. If correct it would appear as '250 > > 250 > > 130' with the '153 209 155' diagonal lines, outlined in black. > > > > Thanks > > Ken Lord > > Vancouver BC > > > > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > > -- ============================== Ken Lord B.Sc., A.Dipl.T.H. 7488 Magnolia Terrace Burnaby BC, V5E 4L1 604-777-2171 kenlord at gmail.com kenlord at email.com klord at bgcengineering.com From sgillies at FRII.COM Wed Mar 2 14:35:42 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 2 Mar 2005 15:35:42 -0700 Subject: legend icons and transparency alpha for pixmap In-Reply-To: Message-ID: you're welcome. Sean On Mar 2, 2005, at 3:33 PM, Ken Lord wrote: > Great! > > Thanks Sean, > > -Ken > > > On Wed, 2 Mar 2005 15:13:15 -0700, Sean Gillies > wrote: >> Ken, >> >> It's fixed in CVS and will be working in the 4.4.2 release. >> >> cheers, >> Sean >> >> On Mar 2, 2005, at 3:05 PM, Ken Lord wrote: >> >>> I'd like to second the motion on this bug .. >>> >>> In my case im using Mapserver 4.4.1 CGI, and a vector symbol overtop >>> a >>> solid colour to symbolize the fill of a polygon. >>> >>> The 'TRANSPARENCY ALPHA' setting in the layer, and 'TRANSPARENT ON' >>> in >>> my >>> RGB jpeg outputformat fixed the appearance on the map, the map is >>> fine, >>> but the icons generated in the legend are broken. The vector symbol >>> lacks >>> the transparency that it has on the map, and blocks out the solid >>> fill >>> colour underneath. >>> >>> The vector symbol is a simple diagonal line: >>> >>> SYMBOL >>> NAME 'hatch1' >>> TYPE VECTOR >>> TRANSPARENT 0 >>> POINTS >>> 0 1 >>> 1 0 >>> END >>> END >>> >>> The typical class in the layer with the problem legend icons looks >>> like >>> this: >>> >>> CLASS >>> EXPRESSION .... >>> NAME "...." >>> STYLE >>> COLOR 250 250 130 >>> END >>> STYLE >>> SYMBOL 'hatch1' >>> COLOR 153 209 155 >>> SIZE 3 >>> END >>> STYLE >>> OUTLINECOLOR 0 0 0 >>> SYMBOL "circle" >>> SIZE 1 >>> END >>> END >>> >>> In this case, the legend icon would appear as white with the '153 209 >>> 155' >>> diagonal lines, outlined in black. If correct it would appear as '250 >>> 250 >>> 130' with the '153 209 155' diagonal lines, outlined in black. >>> From sgillies at FRII.COM Wed Mar 2 14:39:00 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 2 Mar 2005 15:39:00 -0700 Subject: Annotation trouble within mapscript In-Reply-To: Message-ID: On Mar 2, 2005, at 3:32 PM, Jean-Denis Giguere wrote: > Hi ! > > I have trouble with an annotation layer using python mapscript. > > This layer is drawn without trouble using mapserv cgi. I have no error > message when I try to draw it with mapscript, but I get no label. The > annotation layer is routesEti. Following the related part of the script > and mapfile. > > Any hint would be really appreciated. > > Regards, > > Jean-Denis > > *** Script > > #Mapfile > mapfile = "../../mapserv/mapfile/sbk-demo.map" > > #La cartographic object > carto = mapscript.mapObj(mapfile) > > #Map > carte = carto.prepareImage() > > #Layer to draw > aAfficher = [] > aAfficher.append("routes") > aAfficher.append("rivieres") > aAfficher.append("batiments") > aAfficher.append("parcs") > aAfficher.append("routesEti") > > for nm in aAfficher: > layer = carto.getLayerByName(nm) > layer.status = mapscript.MS_ON > layer.draw(carto, carte) > > #Name of map > prefix = "/home/data/www/geodemo/tmp/" > nomCarte = carto.name > nomFichCarte = '%s%s.%s' % (prefix, nomCarte, > carto.outputformat.extension) > > #Write map > carte.save(nomFichCarte) > > #Access file > accesCarte = "/tmp/%s.%s" % (nomCarte, carto.outputformat.extension) > > *** > > *** Mapfile > > LAYER > NAME "routesEti" > CONNECTIONTYPE postgis > CONNECTION "dbname=sbk-demo" > DATA "wkb_geometry from (SELECT nom_rue, gen_rue, > collect(wkb_geometry) as wkb_geometry FROM troncons GROUP BY nom_rue, > gen_rue) as foo using SRID=32187 using unique nom_rue" > STATUS ON > TYPE annotation > > METADATA > "wms_title" "Routes" > END > > #CLASS > # EXPRESSION ( '[vitesse]' = '80') > # NAME "Voie rapide" > # STYLE > # END > #END > CLASS > NAME "Boulevards" > EXPRESSION ( '[gen_rue]' = 'BOULEVARD') > #TEXT ([nom_rue]) > TEXT "Boulevard" > LABEL > ANGLE auto > ANTIALIAS true > POSITION auto > TYPE truetype > FONT 'vera-bold' > SIZE 8 > BUFFER 4 > END > END > CLASS > NAME "Routes" > TEXT ([nom_rue]) > LABEL > ANGLE AUTO > TYPE truetype > FONT 'vera' > SIZE 8 > OFFSET -6 -6 > BUFFER 4 > END > END > END > > *** > > Jean-Denis, If you do not use mapObj.draw(), you must explicitly draw the label layer after you have drawn your thematic layers. Add the following line carto.drawLabelCache(carte) to your code before you output the image. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From Richard_D_Levine at RAYTHEON.COM Wed Mar 2 14:38:40 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Wed, 2 Mar 2005 17:38:40 -0500 Subject: A confused Network Admin Message-ID: A perspective from a programmer: Progrimers caint spel. Progrimers caint rite Englash. Don't try to make them. It's not pretty. Cheers, Rick Simpson To: MAPSERVER-USERS at LISTS.UMN.EDU Sent by: UMN cc: MapServer Users List Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin 03/02/2005 05:01 PM Please respond to Simpson A perspective from another user, Mapserver has by far the most exact, timely and detailed documentation; source code. Though definitely not the most user friendly, if one can understand the methods by which the geniuses write Mapserver, gdal, etc., then no amount of money could be spent to write an equivalent help system. If I had a vote, I'd prefer these guys continue to keep up with and invent the rapidly moving bleeding edge of GIS over writing documentation. Sorry, I couldn't take it any more, Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Wednesday, March 02, 2005 3:25 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - Yes, I agree - but how much time have you spent working your way through that process? While there are CERTAINLY disadvantages to the support mechanisms currently available for MapServer, you don't get to call Microsoft and get help from the person who wrote the code you're using. And the support you get here is indeed from those of us with "real world experience and real world problems". At no charge, and relatively promptly, you've gotten help from about half a dozen individuals including MapServer developers and some real-world users. It's certainly not perfect, but it's better than what I've found in the majority of the commercial products I've used. Put another way, suppose your consultant told you to set up and install ArcIMS, Oracle, IIS, and Visual Studio when you had never seen ANY of those products before. I don't know which would be quicker or easier, but neither process would be simple. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 4:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin There's no doubt that there are a lot of poor support personnel out there. The main problem is that they are not out here in the real world with real world experience and real world problems! But if I get someone with a lack of knowledge on my problem I will ask them to escalate the call to a 2nd level team. Most, if not all, software companies have 2nd level support teams and 9 times out of 10 those teams are the actual programmers. Microsoft, the largest software company in America (right?) has got some of the worst technicians around, but they are very respectful and will ALWAYS pass you to 2nd level support if they cannot help. I guess it's how much you are willing to push. I don't take no for an answer when it comes to getting a job done, and the other thing is that I do not call support unless I know it is a real problem with the software. I always refer to knowledge bases, support docs, etc. before calling for help. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 3:58 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - While I completely agree on the lack of documentation, I am amazed that you use commercial software where you can make a phone call and actually get answers . It has been my experience that most users on this list find the level and quality of technical support they receive far better than they get from commercial providers. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 2:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Marco - I couldn't have put it better myself. The best OpenSource documentation of the four I have dealt with in the last 2 weeks came with PHP; twenty-three pages of step-by-step instructions, and they didn't forget about Windows users. I agree that this listserver wouldn't be nearly as busy if the documentation on the OpenSource products was more complete and precise, and I also wish there was more of a collaborative effort between the programmers when releasing new versions. All I can say is, thank goodness for this listserver because I could have never gotten through this with documentation alone. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: Wednesday, March 02, 2005 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From lisi at MYDELRAYBEACH.COM Wed Mar 2 14:51:31 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 17:51:31 -0500 Subject: A confused Network Admin Message-ID: Hysterical! Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Rick Levine Sent: Wednesday, March 02, 2005 5:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin A perspective from a programmer: Progrimers caint spel. Progrimers caint rite Englash. Don't try to make them. It's not pretty. Cheers, Rick Simpson To: MAPSERVER-USERS at LISTS.UMN.EDU Sent by: UMN cc: MapServer Users List Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin 03/02/2005 05:01 PM Please respond to Simpson A perspective from another user, Mapserver has by far the most exact, timely and detailed documentation; source code. Though definitely not the most user friendly, if one can understand the methods by which the geniuses write Mapserver, gdal, etc., then no amount of money could be spent to write an equivalent help system. If I had a vote, I'd prefer these guys continue to keep up with and invent the rapidly moving bleeding edge of GIS over writing documentation. Sorry, I couldn't take it any more, Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Wednesday, March 02, 2005 3:25 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - Yes, I agree - but how much time have you spent working your way through that process? While there are CERTAINLY disadvantages to the support mechanisms currently available for MapServer, you don't get to call Microsoft and get help from the person who wrote the code you're using. And the support you get here is indeed from those of us with "real world experience and real world problems". At no charge, and relatively promptly, you've gotten help from about half a dozen individuals including MapServer developers and some real-world users. It's certainly not perfect, but it's better than what I've found in the majority of the commercial products I've used. Put another way, suppose your consultant told you to set up and install ArcIMS, Oracle, IIS, and Visual Studio when you had never seen ANY of those products before. I don't know which would be quicker or easier, but neither process would be simple. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 4:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin There's no doubt that there are a lot of poor support personnel out there. The main problem is that they are not out here in the real world with real world experience and real world problems! But if I get someone with a lack of knowledge on my problem I will ask them to escalate the call to a 2nd level team. Most, if not all, software companies have 2nd level support teams and 9 times out of 10 those teams are the actual programmers. Microsoft, the largest software company in America (right?) has got some of the worst technicians around, but they are very respectful and will ALWAYS pass you to 2nd level support if they cannot help. I guess it's how much you are willing to push. I don't take no for an answer when it comes to getting a job done, and the other thing is that I do not call support unless I know it is a real problem with the software. I always refer to knowledge bases, support docs, etc. before calling for help. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, March 02, 2005 3:58 PM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] A confused Network Admin Christine - While I completely agree on the lack of documentation, I am amazed that you use commercial software where you can make a phone call and actually get answers . It has been my experience that most users on this list find the level and quality of technical support they receive far better than they get from commercial providers. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lisi, Christine Sent: Wednesday, March 02, 2005 2:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Marco - I couldn't have put it better myself. The best OpenSource documentation of the four I have dealt with in the last 2 weeks came with PHP; twenty-three pages of step-by-step instructions, and they didn't forget about Windows users. I agree that this listserver wouldn't be nearly as busy if the documentation on the OpenSource products was more complete and precise, and I also wish there was more of a collaborative effort between the programmers when releasing new versions. All I can say is, thank goodness for this listserver because I could have never gotten through this with documentation alone. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: Wednesday, March 02, 2005 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin I would like to reassure Christine that she's not the only one confused about OpenSource in general and MapServer in particular. I have over 25 years of professional programming experience in too many languages, starting with FORTRAN IV when some of the listers here where probably not even able to read yet ;-) I find myself also *very* confused because of the terribly poor documentation that usually complements OpenSource projects. Most often than not, there is just a very technical document that tersely explains what you can do with this or that parameter. With most Java projects you just find the JavaDoc! There is little or no high-level documentation that explains the architecture and lets you find your way around. Most of the projects require that you spend an inordinate amount of time looking at the code to understand what you can do and how. For me, I find the MapServer documentation absolutely insufficient and it is amazing how people prefer to spend a lot of time replying on this list rather than investing much more efficiently their time writing decent documentation and providing good tutorials and examples. Please, do not misunderstand me! I think MapServer is a terrific project and I am incredibly grateful to the very knowledgeable guys out there willing to help through the list. Only, I would much prefer having good documentation to work through and bother the listers only when absolutely necessary. As you may have seen, I put my.. time where the mouth is. As soon as I learn how to do something, I will post a message to the list hoping that it might be of help to others (see "[UMN_MAPSERVER-USERS] A simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, but it took me *a lot* of time (and a zillion Google searches) to figure out, much longer than I would expect! I will be more than happy to continue doing so to alleviate the trouble of learning MapServer! Cheers Marco From lisi at MYDELRAYBEACH.COM Wed Mar 2 14:59:12 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 2 Mar 2005 17:59:12 -0500 Subject: A confused Network Admin Message-ID: That's cool :) Don't you just love the word "cool"? Yes, I grew up in the 70's! There are people and companies on this list that can offer you paid support ... same people and probably same advice that you can get through the list but on-demand, more timely, and by telephone :) Cute - I'm sure there are! Microsoft has deep pockets and 'Windows Everywhere'. ESRI ... no comment ;) It's sickening, isn't it? Your feedback on the doc list will be very helpful. Thanks. You've given me a laugh and a smile on a day that wasn't all that joyful! Something you may want to consider is using a pre-packaged environment that comes with everything you need, fully functional and pre-configured such as MS4W (http://www.maptools.org/ms4w/). It provides everything you need including an Apache web server ... it is possible to configure it to run through IIS and we have a prototype of this internally but no documentation ;) yet ... it will be included in MS4W as soon as the docs are done since it is a manual process to integrate stuff into IIS (as you well know by now). Also, it only provides PHP4 at this time ... I would add a note about PHP5 from some users on the Chameleon list, it appears that PHP5 is 25% slower than a similarly configured PHP4, possibly because of how we use PHP but still disappointing. I will pass this information on to our GIS consultant. I'm pretty much DONE with this stuff for now. I hope! Have a good night. I'm outta here until Friday. Cheers, Paul. Christine Lisi, Christine wrote: > Paul - you are right, phone support does not come cheap, but as someone > who has a lot of input on application decisions here, one of my main > criteria is that the vendor offer good phone Support. I didn't have > much say in the purchase of the ESRI software because it's almost an > industry standard from what I understand, but their tech support is on a > call-back basis, which amazes me given the cost of the software and > maintenance. I think they have the market cornered so they just don't > care, but I would think that must frustrate the end user immensely. > Again, I am a Network Admin and not an end user of the software, but I > can't believe that the industry lets ESRI get away with that. I know > once we get into this project it will frustrate me too, and if I have to > I will call the President. With the money we are paying for the > software, I will take it to the top. > > Another thing that's relevant to this conversation... 99% of the calls > I make to Microsoft are due to problems/errors/exclusions in > documentation, and 99% of the time I do not have to pay for the call > because in the end it's their documentation (or lack thereof) that is > the reason why I'm calling in the first place. > > I sent an e-mail to the MapServer-Doc list with some suggestions. > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Paul Spencer > Sent: Wednesday, March 02, 2005 2:56 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin > > This is a personal gripe and is not directed at Christine - she just got > me started thinking about it :) > > There is some confusion here in assuming that Open Source = FREE. It > doesn't mean that at all. > > For those of you that like to be able to call up Tech Support, I doubt > that you got the product for free in the first place and that's where > part of your money goes ... paying for Tech Support and Documentation. > > For the MapServer community in general, if you want better > documentation, it has to be paid for either by contributing time writing > the documentation or financially supporting those who can write the > documentation. Its not going to write itself. If you aren't prepared > to contribute then I guess you don't really have a problem. > > Paul > > Lisi, Christine wrote: > >>Marco - I couldn't have put it better myself. The best OpenSource >>documentation of the four I have dealt with in the last 2 weeks came >>with PHP; twenty-three pages of step-by-step instructions, and they >>didn't forget about Windows users. I agree that this listserver >>wouldn't be nearly as busy if the documentation on the OpenSource >>products was more complete and precise, and I also wish there was more >>of a collaborative effort between the programmers when releasing new >>versions. >> >>All I can say is, thank goodness for this listserver because I could >>have never gotten through this with documentation alone. >> >>Christine Lisi >>Application Specialist >> >>Management Information Systems * City of Delray Beach * 100 NW First >>Avenue, Delray Beach, FL 33444 >> >>Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > Lisi at MyDelrayBeach.com > >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On > >>Behalf Of Marco Marsella >>Sent: Wednesday, March 02, 2005 1:07 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin >> >>I would like to reassure Christine that she's not the only one > > confused > >>about OpenSource in general and MapServer in particular. I have over > > 25 > >>years of professional programming experience in too many languages, >>starting with FORTRAN IV when some of the listers here where probably >>not even able to read yet ;-) >> >>I find myself also *very* confused because of the terribly poor >>documentation that usually complements OpenSource projects. Most often >>than not, there is just a very technical document that tersely > > explains > >>what you can do with this or that parameter. With most Java projects >>you just find the JavaDoc! There is little or no high-level >>documentation that explains the architecture and lets you find your > > way > >>around. Most of the projects require that you spend an inordinate >>amount of time looking at the code to understand what you can do and >>how. >> >>For me, I find the MapServer documentation absolutely insufficient and >>it is amazing how people prefer to spend a lot of time replying on > > this > >>list rather than investing much more efficiently their time writing >>decent documentation and providing good tutorials and examples. >> >>Please, do not misunderstand me! I think MapServer is a terrific >>project and I am incredibly grateful to the very knowledgeable guys > > out > >>there willing to help through the list. Only, I would much prefer >>having good documentation to work through and bother the listers only >>when absolutely necessary. >> >>As you may have seen, I put my.. time where the mouth is. As soon as I >>learn how to do something, I will post a message to the list hoping >>that it might be of help to others (see "[UMN_MAPSERVER-USERS] A >>simple... sample!" dated 10 Feb 2005). Sure, it is a trivial example, >>but it took me *a lot* of time (and a zillion Google searches) to >>figure out, much longer than I would expect! I will be more than happy >>to continue doing so to alleviate the trouble of learning MapServer! >> >>Cheers >> >>Marco >> >> > > > -- > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ -------------- next part -------------- An HTML attachment was scrubbed... URL: From rati at POST.COM Wed Mar 2 17:38:36 2005 From: rati at POST.COM (David Ratcliffe) Date: Wed, 2 Mar 2005 19:38:36 -0600 Subject: Image caching problem when using unique user IDs to generate image filenames Message-ID: While perhaps not specifically a problem with Mapserver itself, I'm hoping someone who uses Mapserver can help me.... I'm running Mapserver 4.4.1 on Tomcat 5. I would like the service to recognize particular users by ID, so I've included the "id" field in my HTML pages so the mapserver application doesn't create new image files for the same user all the time, it replaces existing ones for that user instead. My problem lies with the caching mechanisms of the browsers I'm using to display the images (IE, Mozilla and Firefox). When user interaction warrants the generation of new images, the new images replace the existing ones with the same filename (per user). Unfortunately, the browser does not re-request/refresh the images since they have the same names. Instead, it uses cached versions, despite the fact I have Tomcat serving absolutely all content with HTTP headers that specify that the browser should not cache any of the content. I am certain the HTTP headers are correct and present. I have cleared the cache for all browsers, I have checked the HTTP headers to ensure they all contain the appropriate 'do not cache' information, and I am aware the problem goes away when I stop using unique user IDs (as new images are always generated with new filenames), but I want the unique user ID feature. Has anyone else encountered this problem? How can I go about ensuring that images are always re-requested from the server when using unique user IDs? From bmad0463 at MAIL.USYD.EDU.AU Wed Mar 2 18:36:26 2005 From: bmad0463 at MAIL.USYD.EDU.AU (Ben) Date: Wed, 2 Mar 2005 20:36:26 -0600 Subject: SIMPLE (I HOPE) Problems with Tiff images Message-ID: I am having a more simple problem with Rasters, I was wondering if you could help. I am using MServ 4.4.1 on OS X, and working through the tutorial, (all going well) but when I get to 1.5, where a raster background map is introduced, I stopped getting images. If I comment out the RASTER details, I get the rest of the map, so I suspect my links are otherwise OK. the mapfile as far as the offending section is : MAP IMAGETYPE PNG24 EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 400 300 SHAPEPATH "data" FONTSET "fonts/fonts.list" SYMBOLSET "symbols/symbols35.sym" PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. "init=epsg:2163" # END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME states DATA states_ugl STATUS OFF TYPE POLYGON PROJECTION "init=epsg:4326" END CLASSITEM "CLASS" CLASS EXPRESSION 'land' COLOR 232 232 232 END END # States polygon layer ends here #LAYER # MODIS raster layer begins here # NAME modis # DATA "raster/mod09a12003161_ugl_ll_8bit.tif" # STATUS DEFAULT # TYPE RASTER # PROCESSING "BANDS=1,2,3" # OFFSITE 71 74 65 # # PROJECTION # "init=epsg:4326" # END #END # MODIS raster layer ends here I commented it out to check it works without the raster layer which it does. I am assuming that the second data reference is relation to the original data directory. It calls for a tiff image, which according to phpinfo() should be available (I am using the CGI version, but both compiled at the same time.) MapServer Version MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT= WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS= WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE GDAL doesn't seem to have compiled, but I gather it should still work OK, have I missed something? cheers Ben From fwarmerdam at GMAIL.COM Wed Mar 2 19:16:57 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 2 Mar 2005 22:16:57 -0500 Subject: SIMPLE (I HOPE) Problems with Tiff images In-Reply-To: Message-ID: On Wed, 2 Mar 2005 20:36:26 -0600, Ben wrote: > It calls for a tiff image, which according to phpinfo() should be available (I am using > the CGI version, but both compiled at the same time.) > > MapServer Version > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT= > WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS= > WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS > INPUT=SHAPEFILE > > GDAL doesn't seem to have compiled, but I gather it should still work OK, have I > missed something? Ben, It looks like you have a 3 band (RGB) image. That is not supported by the built-in TIFF code. You will need GDAL built in for this. 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 sandeep.bashyal at GMAIL.COM Wed Mar 2 22:10:19 2005 From: sandeep.bashyal at GMAIL.COM (Sandeep) Date: Thu, 3 Mar 2005 11:55:19 +0545 Subject: classifying with an external datasource In-Reply-To: <5F2DB60082233D4A92A13555DCAB6B2EA2C75F@tmop001.tmop.nl> Message-ID: On Wed, 2 Mar 2005 14:32:28 +0100, Richard Jansen wrote: Richard, The only problem I've had with this method is - if there are a large number of polygons having the same value I get classes like: 0-5, 5-5, 5-9, 9-10. Everything else seems to be working perfectly. Do you have classes set up in your mapfile for that layer? My mapfile for layer i'm using the external database looks something like this: # districts LAYER NAME "districts" TYPE POLYGON STATUS OFF DATA "districts" TEMPLATE "somefile.txt" PROJECTION "proj=tmerc" "lat_0=0" "lon_0=87e" "x_0=50000" "y_0=0" "k=0.9996" "units=m" END # end projection LABELITEM "DIST_NAM" LABELCACHE TRUE LABELMAXSCALE 2300000 LABELMINSCALE 150001 END #end Layer districts Regards, --Sandeep > Hi Sandeep, > > I've used your code snippet to classify my polygon shapefile. This is > working almost correct. But there is a problem with some of the > polygons. Mapserver creates an image with some polygons that are > coloured, but should not being coloured. The other polygons seems to be > coloured the right way. The mapfile that has been created does not > contain those wrong values in the expressions, so the mapfile is > correct. The problem occurs after reading the mapfile and draw the map. > > Is this problem familiar to you? > > Thanks again, > Richard > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > Namens Sandeep > Verzonden: vrijdag 25 februari 2005 12:49 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] classifying with an external > datasource > > On Fri, 25 Feb 2005 02:30:39 -0600, Richard Jansen > > wrote: > >> Hi List, >> >> I want to classify and color a poly shape. The values for classifying > are >> stored in a SQL Server database. When I read the List I understand > that >> this is not possible. I'm trying to join a template dbf file with the >> needed values. I also tried to add new field to the dbf, that's not >> simple. >> I'm using PHP/Mapscript. Is there a way to do this? >> >> Thanks for your comments, >> Richard Jansen > > Richard, > > If you don't have a very large number of polygons to classify, here's a > snip from one of my earlier posts: > > ... you can generate classes and expressions dynamically with mapscript. > Here is the php mapscript code I use to classify districts into > "$no_classes" number of classes (using arcview-style quantile method) > using data from an external mysql database (the external database has a > field called DIST_ID that associates with the shapefile): > > //run sql query > $sql = "SELECT DIST_ID, DIST_NAME, ".$databasefield." FROM > DISTRICTS_".$databasetable.$filter_where; > $result = mysql_query($sql, $connection); > > // assign sql results into arrays > while ($row = mysql_fetch_assoc($result)){ > $ID[]=$row["DIST_ID"]; > $DIST_NAME[]=$row["DIST_NAME"]; > ${$databasefield}[]=$row[$databasefield]; > } //end while > > //sort the query results > if (${$databasefield}){array_multisort(${$databasefield}, SORT_ASC, > SORT_NUMERIC, $DIST_NAME, SORT_STRING, $ID, SORT_STRING);} > mysql_free_result($result); > mysql_close($connection); > > //count the number of records in the array > $no_records=count($ID); > if ($no_classes > $no_records){$no_classes = $no_records;} > if ($no_classes > 0){ > //number of class items > $no_classitems = ceil($no_records / $no_classes); > //split the arrays into chunks > $class_ID=array_chunk($ID,$no_classitems,true); > $class_value=array_chunk(${$databasefield},$no_classitems,true); > } // end if $no_classes > 0 > > //set classitem > $layer_districts->set("classitem","OBJID"); > > //draw classes > $i=0; > while ($i < $no_classes){ > $i++; > //class expressions > $class_array = $class_ID[$i-1]; > if ($class_array){ > $expression[$i]="/".implode("|",$class_array)."/"; > //legend key labels > $class_legend_key1=$class_value[$i-1][($i-1)*$no_classitems]; > $class_legend_key2=$class_value[$i-1][($i-1)*$no_classitems > + $no_classitems -1]; > if ($class_legend_key2 == NULL){$class_legend_key2 = > $class_value[$i-1][$no_records-1];} > $class_legend_key[$i]=$class_legend_key1." to > ".$class_legend_key2; > //draw layers > $class[$i] = ms_newClassObj($layer_districts); > $class[$i]->set("name",$class_legend_key[$i]); > $class[$i]->setexpression($expression[$i]); > $class_style[$i] = ms_newStyleObj ($class[$i]); > $class_style[$i]->outlinecolor->setRGB(-1,-1,-1); > $class_style[$i]->color->setRGB($color_r[$i-1],$color_g[$i-1],$color_b[$ > i-1]); > } // end if $class_array > }//end while > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From m.marsella at ITWORKS.IT Wed Mar 2 22:36:56 2005 From: m.marsella at ITWORKS.IT (Marco Marsella) Date: Thu, 3 Mar 2005 07:36:56 +0100 Subject: A confused Network Admin Message-ID: Whoa! I can see that documentation and support are sensitive issues! While I regret not having been able to participate in the discussion due to time-zone differences, I would like to add a few points, very briefly: - no doubt, Mapserver is great as great are the people developing it and helping us all on the list and writing the documentation that's available - I see from some posts the usual mistake: code is great, docs can wait. Nothing could be more wrong! Docs is as important as code! OpenSource is making the difference with the code, which is wonderful, but we also need to make a difference with documentation and support. Why do you think Microsoft and ESRI are still the market benemoths they are ? Because companies *need* support and commercial software provides support (well, I know what you will say to this, but you see what I mean) - I *will* join the MSDP and do my best! Thank you all. Marco From jacob.delfos at MAUNSELL.COM Wed Mar 2 23:05:13 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Thu, 3 Mar 2005 15:05:13 +0800 Subject: A confused Network Admin Message-ID: I agree very much with Marco's point, in that it doesn't matter how great a program is, because as long as the target user can not do his average day-to-day job with it, the program will not be successful, and the effort of writing code has not been maximum taken advantage of. A lesser quality, more expensive, but user-friendly program that does do the job, will prevail (ESRI is full of bugs, but there is no real substitute). That being said, I think in the case of mapserver, being a rather specialised application, you should be expected to have a basic background in what you are doing. Documentation should not substitute for that. In fact, if just anyone could get it to work, you'd run into quality (and liability) problems, because they'd get it working without understanding whether it is working correctly ("it looks correct and pretty, after all"). You end up with map-makers calling themselves "system analysts" (no offense to anyone), shooting themselves in the foot (is there a "shoot in foot" joke for mapscript yet?). I think mapserver is fairly well documented (it must be, if I got it to work). Only thing I think could be useful is a glossary of terminology ('mapserver','mapscript', etc.), for new users. I am very grateful to be able to make use of it for free. regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marco Marsella Sent: 3 March 2005 14:37 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A confused Network Admin Whoa! I can see that documentation and support are sensitive issues! While I regret not having been able to participate in the discussion due to time-zone differences, I would like to add a few points, very briefly: - no doubt, Mapserver is great as great are the people developing it and helping us all on the list and writing the documentation that's available - I see from some posts the usual mistake: code is great, docs can wait. Nothing could be more wrong! Docs is as important as code! OpenSource is making the difference with the code, which is wonderful, but we also need to make a difference with documentation and support. Why do you think Microsoft and ESRI are still the market benemoths they are ? Because companies *need* support and commercial software provides support (well, I know what you will say to this, but you see what I mean) - I *will* join the MSDP and do my best! Thank you all. Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: From ross.elliott at INFOTERRA-GLOBAL.COM Thu Mar 3 00:14:53 2005 From: ross.elliott at INFOTERRA-GLOBAL.COM (Ross Elliott) Date: Thu, 3 Mar 2005 02:14:53 -0600 Subject: odd problem Message-ID: Before I jump into looking at debug output, has anyone seen this before. At some scales of imagery some of my users have reported that the images are being flipped from north to south, i.e. drawn upside down. I've never seen this myself, but I'm not using the same tools as them, so it could well be a local problem to them. Ross Elliott From piero.cavalieri at HEIDI.IT Thu Mar 3 01:20:13 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 3 Mar 2005 03:20:13 -0600 Subject: Mapserver 4.2 crash when using SRS key in the request Message-ID: Hi all, If I make a request like this: http://stage/Scripts/mapserv.exe? map=E:/svg2/hillshade.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=hi llshade&BBOX=244000,4150000,308000,4231000&width=553&height=700& my image is returned ok. But if I use the SRS key in the request like this: http://stage/Scripts/mapserv.exe? map=E:/svg2/hillshade.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=hi llshade&BBOX=244000,4150000,308000,4231000&width=553&height=700&SRS=EPSG:269 11& then I have a Mapserv error message, less or more (from Italian): 'Instruction at "0x101d7030" done a reference to address at "0xcccc1036". Memory couldn't be "read" ' Does anyone know if it's a Mapserver 4.2 bug or does it related to a bad installation of Proj ? S.O. is Win2000. Thanks Piero From bartvde at XS4ALL.NL Thu Mar 3 01:25:35 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 3 Mar 2005 10:25:35 +0100 Subject: Mapserver 4.2 crash when using SRS key in the request In-Reply-To: Message-ID: Hi, I remember this as a 4.2 bug in Mapserver. Upgrade to 4.4.1 I would suggest. It should also be fixed in 4.2.5. Best regards, Bart > Hi all, > If I make a request like this: > > http://stage/Scripts/mapserv.exe? > map=E:/svg2/hillshade.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=hi > llshade&BBOX=244000,4150000,308000,4231000&width=553&height=700& > > my image is returned ok. > > But if I use the SRS key in the request like this: > > http://stage/Scripts/mapserv.exe? > map=E:/svg2/hillshade.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=hi > llshade&BBOX=244000,4150000,308000,4231000&width=553&height=700&SRS=EPSG:269 > 11& > > then I have a Mapserv error message, less or more (from Italian): > > 'Instruction at "0x101d7030" done a reference to address at "0xcccc1036". > Memory couldn't be "read" ' > > Does anyone know if it's a Mapserver 4.2 bug or does it related to a bad > installation of Proj ? > > S.O. is Win2000. > > Thanks > Piero > From webmaster at 2ID-DESIGN.COM Thu Mar 3 01:43:56 2005 From: webmaster at 2ID-DESIGN.COM (S.Nicolas - Webmaster) Date: Thu, 3 Mar 2005 09:43:56 -0000 Subject: Map Extent In-Reply-To: <200503021813.j22IDSl29966@paris91.amen.fr> Message-ID: Hi, Could somebody direct me to a simple example to calculate the correct map extent of an illustrator worldmap I have. Thanks in advance S. NICOLAS From bartvde at XS4ALL.NL Thu Mar 3 01:46:18 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 3 Mar 2005 10:46:18 +0100 Subject: Map Extent In-Reply-To: <200503030938.j239cLl29632@paris91.amen.fr> Message-ID: Hi, I don't know if I understood your question correctly .... These type of files are not geo-referenced, so they don't come with extent information. Since you are calling it a worldmap, is the extent not just the whole world (-180,-90,180,90 in deegrees)? What do you want to do with it, show it in Mapserver (after conversion)? If it does not show the whole world, just take an atlas or worldmap on internet to find out the coordinates, eg: http://www.wmsviewer.com/main.asp Best regards, Bart > Hi, > > Could somebody direct me to a simple example to calculate the correct map > extent of an illustrator worldmap I have. > > Thanks in advance > > S. NICOLAS > From webmaster at 2ID-DESIGN.COM Thu Mar 3 01:55:47 2005 From: webmaster at 2ID-DESIGN.COM (S.Nicolas - Webmaster) Date: Thu, 3 Mar 2005 09:55:47 -0000 Subject: Map Extent In-Reply-To: <8851.212.238.227.182.1109843178.squirrel@212.238.227.182> Message-ID: Yes, I would like to convert this illustrator worldmap into a a tif file to use in mapserver as a ratsre image. I already tried this, but some of the point projected on the map are not correctly placed. For example, I project a "dot" on a city and there is slight difference of location. I think it comes from the extent of the map that is not correct. St?phane -----Original Message----- From: bartvde at xs4all.nl [mailto:bartvde at xs4all.nl] Sent: 03 March 2005 09:46 To: S.Nicolas - Webmaster Cc: mapserver-users at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Map Extent Hi, I don't know if I understood your question correctly .... These type of files are not geo-referenced, so they don't come with extent information. Since you are calling it a worldmap, is the extent not just the whole world (-180,-90,180,90 in deegrees)? What do you want to do with it, show it in Mapserver (after conversion)? If it does not show the whole world, just take an atlas or worldmap on internet to find out the coordinates, eg: http://www.wmsviewer.com/main.asp Best regards, Bart > Hi, > > Could somebody direct me to a simple example to calculate the correct > map extent of an illustrator worldmap I have. > > Thanks in advance > > S. NICOLAS > From bartvde at XS4ALL.NL Thu Mar 3 02:07:44 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 3 Mar 2005 11:07:44 +0100 Subject: How to georeference an image? In-Reply-To: <200503030950.j239oDl31735@paris91.amen.fr> Message-ID: Okay, so actually what you are looking for is a tool to georeference a raster image. Many proprietary GIS systems can do this, but I don't know of any Open Source GIS system to do this (could be my lack of knowledge in this department for sure ...). Maybe others do though, I have changed the thread subject accordingly, so hopefully you will get some feedback. Best regards, Bart > Yes, > > I would like to convert this illustrator worldmap into a a tif file to use > in mapserver as a ratsre image. > I already tried this, but some of the point projected on the map are not > correctly placed. For example, I project a "dot" on a city and there is > slight difference of location. > I think it comes from the extent of the map that is not correct. > > St?phane > > > -----Original Message----- > From: bartvde at xs4all.nl [mailto:bartvde at xs4all.nl] > Sent: 03 March 2005 09:46 > To: S.Nicolas - Webmaster > Cc: mapserver-users at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Map Extent > > Hi, > > I don't know if I understood your question correctly .... > > These type of files are not geo-referenced, so they don't come with extent > information. > > Since you are calling it a worldmap, is the extent not just the whole > world > (-180,-90,180,90 in deegrees)? What do you want to do with it, show it in > Mapserver (after conversion)? If it does not show the whole world, just > take > an atlas or worldmap on internet to find out the coordinates, > eg: > > http://www.wmsviewer.com/main.asp > > Best regards, > Bart > >> Hi, >> >> Could somebody direct me to a simple example to calculate the correct >> map extent of an illustrator worldmap I have. >> >> Thanks in advance >> >> S. NICOLAS >> > > From webmaster at 2ID-DESIGN.COM Thu Mar 3 02:19:16 2005 From: webmaster at 2ID-DESIGN.COM (S.Nicolas - Webmaster) Date: Thu, 3 Mar 2005 10:19:16 -0000 Subject: How to georeference an image? In-Reply-To: <18695.212.238.227.182.1109844464.squirrel@212.238.227.182> Message-ID: Yes, sorry for the wrong title. So yes, I need to georeference a illustrator world map to use with mapserver after saving it as a tif file. St?phane -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden Sent: 03 March 2005 10:08 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How to georeference an image? Okay, so actually what you are looking for is a tool to georeference a raster image. Many proprietary GIS systems can do this, but I don't know of any Open Source GIS system to do this (could be my lack of knowledge in this department for sure ...). Maybe others do though, I have changed the thread subject accordingly, so hopefully you will get some feedback. Best regards, Bart > Yes, > > I would like to convert this illustrator worldmap into a a tif file to > use in mapserver as a ratsre image. > I already tried this, but some of the point projected on the map are > not correctly placed. For example, I project a "dot" on a city and > there is slight difference of location. > I think it comes from the extent of the map that is not correct. > > St?phane > > > -----Original Message----- > From: bartvde at xs4all.nl [mailto:bartvde at xs4all.nl] > Sent: 03 March 2005 09:46 > To: S.Nicolas - Webmaster > Cc: mapserver-users at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Map Extent > > Hi, > > I don't know if I understood your question correctly .... > > These type of files are not geo-referenced, so they don't come with > extent information. > > Since you are calling it a worldmap, is the extent not just the whole > world (-180,-90,180,90 in deegrees)? What do you want to do with it, > show it in Mapserver (after conversion)? If it does not show the whole > world, just take an atlas or worldmap on internet to find out the > coordinates, > eg: > > http://www.wmsviewer.com/main.asp > > Best regards, > Bart > >> Hi, >> >> Could somebody direct me to a simple example to calculate the correct >> map extent of an illustrator worldmap I have. >> >> Thanks in advance >> >> S. NICOLAS >> > > From piero.cavalieri at HEIDI.IT Thu Mar 3 03:03:57 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 3 Mar 2005 05:03:57 -0600 Subject: Mapserver 4.2 crash when using SRS key in the request] Message-ID: Ok, upgrading to 4.4.1 seems to solve the problem. Thanks to all Piero ----- Hi, I remember this as a 4.2 bug in Mapserver. Upgrade to 4.4.1 I would suggest. It should also be fixed in 4.2.5. Best regards, Bart >> Hi all, >> If I make a request like this: >> >> http://stage/Scripts/mapserv.exe? >> map=E:/svg2/hillshade.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=hi >> llshade&BBOX=244000,4150000,308000,4231000&width=553&height=700& >> >> my image is returned ok. >> >> But if I use the SRS key in the request like this: >> >> http://stage/Scripts/mapserv.exe? >> map=E:/svg2/hillshade.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=hi >> llshade&BBOX=244000,4150000,308000,4231000&width=553&height=700&SRS=EPSG:269 >> 11& >> >> then I have a Mapserv error message, less or more (from Italian): >> >> 'Instruction at "0x101d7030" done a reference to address at "0xcccc1036". >> Memory couldn't be "read" ' >> >> Does anyone know if it's a Mapserver 4.2 bug or does it related to a bad >> installation of Proj ? >> >> S.O. is Win2000. >> >> Thanks >> Piero >> From schick at SDAC.HANNOVER.BGR.DE Thu Mar 3 03:30:16 2005 From: schick at SDAC.HANNOVER.BGR.DE (Agneta Schick) Date: Thu, 3 Mar 2005 12:30:16 +0100 Subject: SIZEUNITS in Perl Mapscript Message-ID: Hello, Switching to MapServer 4.4.1 has almost solved my problem. To recapitulate: I need a symbol (circle) with SIZEUNITS kilometers that will scale accordingly to all zoom depths. LAYER ... SIZEUNITS kilometers SYMBOLSCALE 3400000 CLASS LABEL MAXSIZE 800 END STYLE SIZE 1 SYMBOL 'circle' OUTLINECOLOR 0 0 240 END END END This works upto a certain depth. This level is reached when the circle radius ~ kilometers of the scalebar (e.g. a circle with radius 100 km will scale correctly as long as the max value of the scalebar is > 100) I was expecting to be able to zoom so far in that the circle is no longer visible because it is 'outside' the map. Is this not possible?? Agneta ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Agneta Schick Bundesanstalt fuer Geowissenschaften und Rohstoffe Federal Institute for Geosciences and Natural Resources Stilleweg 2 D- 30655 Hannover Tel.: +49 511 643 3136 GERMANY FAX.: +49 511 643 3663 schick at sdac.hannover.bgr.de http://www.seismologie.bgr.de ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From piero.cavalieri at HEIDI.IT Thu Mar 3 03:39:17 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 3 Mar 2005 05:39:17 -0600 Subject: PHP Mapscript bundled dlls VS Stand Alone Mapserver dlls Message-ID: A question: I just downloaded and installed Mapsever 4.4.1 binaries for Windows (ms441pg). Then I downloaded mapserver-4.4.1-win32-php4.3.7.zip by DM Group. I saw is a lot of difference in file size on the major dlls. For example NCSEcw is about 1Mb for standalone version, and is about 180Kb for MapScript bundled version. I'm a bit confused on the right version to use. Currently I use MapServer both via direct cgi-requests and both via PHP-MapScript. Both works (or it seems to works) fine using one version of dlls or the other (I done so with ECW dlls, for example), but what's correct to do in this situation ? Thanks Piero From bartvde at XS4ALL.NL Thu Mar 3 04:31:30 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 3 Mar 2005 13:31:30 +0100 Subject: PHP Mapscript bundled dlls VS Stand Alone Mapserver dlls In-Reply-To: Message-ID: Hi, the binaries are compiled against different versions of the ECW SDK. E.g. the maptools binaries: version 1.6.0.92 Mapserver UMN site: version 3.0.0.38 ** Maybe DMSG could upgrade their ECW SDK which is used for building the binaries? Or provide reasons why they use such an old ECW SDK **. For some parts of Mapserver (like GDAL) there can be dependencies between the mapserv binary and the gdal12.dll. So it is not advisable to just copy in different dll's next to a mapserver binary in general. So what you can do is keep the dll's that come with a binary (mapserv.exe or php_mapscript.dll) next to the executable for mapserv.exe (cgi-bin/mapserv/ directory e.g.), and for mapscript somewhere in the Windows path (/php/dlls e.g.). Hope this helps. Best regards, Bart > A question: > > I just downloaded and installed Mapsever 4.4.1 binaries for Windows > (ms441pg). > Then I downloaded mapserver-4.4.1-win32-php4.3.7.zip by DM Group. > > I saw is a lot of difference in file size on the major dlls. > For example NCSEcw is about 1Mb for standalone version, and is > about 180Kb for MapScript bundled version. > > I'm a bit confused on the right version to use. Currently > I use MapServer both via direct cgi-requests and both via PHP-MapScript. > Both works (or it seems to works) fine using one version of dlls or the > other (I done so with ECW dlls, for example), but what's correct to do > in this situation ? > > Thanks > Piero > From fly2moon2 at GMAIL.COM Thu Mar 3 04:33:29 2005 From: fly2moon2 at GMAIL.COM (Jack Ling) Date: Thu, 3 Mar 2005 20:33:29 +0800 Subject: Anyone successfully installing MapServer to Fedora 3 Linux? Message-ID: Hi All, I run into problem when installing MapServer to Fedora 3 Linux. Can anyone help me? 1st, I've the following error of missing libcurl.so.2 (My Fedora 3 system comes w/ libcurl.so.3 instead) -> # rpm -i mapserver-4.4.1-mh1.i686.rpm error: Failed dependencies: libcurl.so.2 is needed by mapserver-4.4.1-mh1.i686 Then, I tried to install the latest curl to see if it helps. This time tell me libcom_err.so.3()(64bit) -> # rpm -i curl-7.13.0-2.cf.x86_64.rpm warning: curl-7.13.0-2.cf.x86_64.rpm: V3 DSA signature: NOKEY, key ID b56a8bac error: Failed dependencies: libcom_err.so.3()(64bit) is needed by curl-7.13.0-2.cf.x86_64 Finally, searching from websites also mentions that latest curl version doesn't come with libcurl.so.2. To fix this, it suggests to run the followings -> # rpm -Uvh compat-libcurl-7.11.2-3.x86_64.rpm curl-7.13.0-2.cf.x86_64.rpm warning: compat-libcurl-7.11.2-3.x86_64.rpm: V3 DSA signature: NOKEY, key ID b56a8bac error: Failed dependencies: libcom_err.so.3()(64bit) is needed by compat-libcurl-7.11.2-3.x86_64 libcom_err.so.3()(64bit) is needed by curl-7.13.0-2.cf.x86_64 best regards, Jack Ling From jmckenna at DMSOLUTIONS.CA Thu Mar 3 05:33:18 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 3 Mar 2005 08:33:18 -0500 Subject: Anyone successfully installing MapServer to Fedora 3 Linux? In-Reply-To: Message-ID: i'd suggest takin a look at the FGS MapServer installer for Linux (http://www.maptools.org/fgs/), if you want an easy solution. jeff Jack Ling wrote: > Hi All, > > > I run into problem when installing MapServer to Fedora 3 Linux. Can > anyone help me? > > 1st, I've the following error of missing libcurl.so.2 (My Fedora 3 > system comes w/ libcurl.so.3 instead) -> > > # rpm -i mapserver-4.4.1-mh1.i686.rpm > error: Failed dependencies: > libcurl.so.2 is needed by mapserver-4.4.1-mh1.i686 > > > Then, I tried to install the latest curl to see if it helps. This time > tell me libcom_err.so.3()(64bit) -> > > # rpm -i curl-7.13.0-2.cf.x86_64.rpm > warning: curl-7.13.0-2.cf.x86_64.rpm: V3 DSA signature: NOKEY, key ID b56a8bac > error: Failed dependencies: > libcom_err.so.3()(64bit) is needed by curl-7.13.0-2.cf.x86_64 > > Finally, searching from websites also mentions that latest curl > version doesn't come with libcurl.so.2. To fix this, it suggests to > run the followings -> > > # rpm -Uvh compat-libcurl-7.11.2-3.x86_64.rpm curl-7.13.0-2.cf.x86_64.rpm > warning: compat-libcurl-7.11.2-3.x86_64.rpm: V3 DSA signature: NOKEY, > key ID b56a8bac > error: Failed dependencies: > libcom_err.so.3()(64bit) is needed by compat-libcurl-7.11.2-3.x86_64 > libcom_err.so.3()(64bit) is needed by curl-7.13.0-2.cf.x86_64 > > best regards, > Jack Ling > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From jdport at VERITIME.COM Thu Mar 3 06:08:24 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 3 Mar 2005 09:08:24 -0500 Subject: Image caching problem when using unique user IDs to generate image filenames Message-ID: There have been a couple of threads relating to this recently. The bug happens if you are running php as a module instead of as a CGI. For some people, including myself, the problem can be fixed by not pre-loading the mapscript.dll or mapscript.so in the php ini, and instead adding the ld mapscript.dll/.so command to your script. This worked for me, i'm running php as a module still and this fixed the image caching problem you are talking about. However, it doesn't fix it for everybody... the only sure way to fix it is to run php as a CGI. -Jeff ----- Original Message ----- From: "David Ratcliffe" To: Sent: Wednesday, March 02, 2005 8:38 PM Subject: [UMN_MAPSERVER-USERS] Image caching problem when using unique user IDs to generate image filenames > While perhaps not specifically a problem with Mapserver itself, I'm hoping > someone who uses Mapserver can help me.... > > I'm running Mapserver 4.4.1 on Tomcat 5. I would like the service to > recognize particular users by ID, so I've included the "id" field in my > HTML pages so the mapserver application doesn't create new image files for > the same user all the time, it replaces existing ones for that user > instead. > > My problem lies with the caching mechanisms of the browsers I'm using to > display the images (IE, Mozilla and Firefox). When user interaction > warrants the generation of new images, the new images replace the existing > ones with the same filename (per user). Unfortunately, the browser does > not re-request/refresh the images since they have the same names. Instead, > it uses cached versions, despite the fact I have Tomcat serving absolutely > all content with HTTP headers that specify that the browser should not > cache any of the content. I am certain the HTTP headers are correct and > present. > > I have cleared the cache for all browsers, I have checked the HTTP headers > to ensure they all contain the appropriate 'do not cache' information, and > I am aware the problem goes away when I stop using unique user IDs (as new > images are always generated with new filenames), but I want the unique > user ID feature. > > Has anyone else encountered this problem? How can I go about ensuring that > images are always re-requested from the server when using unique user IDs? > From h_ebabes at HOTMAIL.CO.UK Thu Mar 3 06:02:09 2005 From: h_ebabes at HOTMAIL.CO.UK (Hannah) Date: Thu, 3 Mar 2005 08:02:09 -0600 Subject: PHP & Map Script Message-ID: I am making a fault reporting system for a council using GIS. Does anyone have any ideas how you would enter a postcode into a form and then consequently on pressing go/submit it would load the appropriate area of the map. Then click on the map to specify where a fault is and pass variables of the coordinates over to a form to be posted to the council so it can be fixed. Hannah From David.Fawcett at STATE.MN.US Thu Mar 3 06:24:36 2005 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Thu, 3 Mar 2005 08:24:36 -0600 Subject: OT - Global Flyer Tracker Message-ID: Anyone been following the Steve Fossett's solo non-stop flight? It isn't a MapServer App, and it is actually a very simple app, but the interface is nice. http://www.virginatlanticglobalflyer.com/MissionControl/Tracking/ From dmarino at DIGITALGLOBE.COM Thu Mar 3 08:40:04 2005 From: dmarino at DIGITALGLOBE.COM (Donnie Marino) Date: Thu, 3 Mar 2005 09:40:04 -0700 Subject: [MAPSERVER-USERS@LISTS.UMN.EDU] Anyone sucessfully installing mapServer to Fedora 3 Message-ID: Jack - I am running MapServer on Fedora 3. What I did was build the correct version of curl into a private dir and configure mapserver with -with-curl-config=/path/to/private/version Good Luck! Donnie _______________________________________________ Donald Marino Technical Lead, Operational Tools Group, Data Systems DigitalGlobe, Inc. dmarino at digitalglobe.com 720.494.5331(w) 303.591.0380(c) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Thu Mar 3 08:47:06 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 3 Mar 2005 09:47:06 -0700 Subject: odd problem Message-ID: Have you check the images using gdalinfo to see if they're the cause of the problem? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ross Elliott Sent: Thursday, March 03, 2005 1:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] odd problem Before I jump into looking at debug output, has anyone seen this before. At some scales of imagery some of my users have reported that the images are being flipped from north to south, i.e. drawn upside down. I've never seen this myself, but I'm not using the same tools as them, so it could well be a local problem to them. Ross Elliott From lester at LSCES.CO.UK Thu Mar 3 09:52:13 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Thu, 3 Mar 2005 17:52:13 +0000 Subject: PHP & Map Script In-Reply-To: Message-ID: Hannah wrote: > I am making a fault reporting system for a council using GIS. Does anyone > have any ideas how you would enter a postcode into a form and then That is the first problem. There are copies of POSTCODE table with National Grid reference data, but to use it commercially you would have to obtain a licence. Check with your council if they have a full PAF extract for the area of interest, then may already have it, and if it has Grid references you have a starting point. > consequently on pressing go/submit it would load the appropriate area of > the map. Then click on the map to specify where a fault is and pass Then we need a map ;) That one is licensed from Ordnance Survey, but the councils planning department may already have a licence for that. POSTCODE data can be used to select a centre point of the bit you want. So you probably need to sort out what scale of map is needed for the job you are trying to do. > variables of the coordinates over to a form to be posted to the council so > it can be fixed. Not much help so far, but once you know the source of the data, then we can work out how to use it ;) -- Lester Caine ----------------------------- L.S.Caine Electronic Services From schuyler at NOCAT.NET Thu Mar 3 09:51:35 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Thu, 3 Mar 2005 09:51:35 -0800 Subject: PHP & Map Script In-Reply-To: <42274ECD.4070706@lsces.co.uk> Message-ID: * On 3-Mar-2005 at 9:47AM PST, Lester Caine said: > Then we need a map ;) That one is licensed from Ordnance Survey, but the > councils planning department may already have a licence for that. > POSTCODE data can be used to select a centre point of the bit you want. > So you probably need to sort out what scale of map is needed for the job > you are trying to do. The OpenStreetMap project is trying to address some of these questions for the UK. Although we don't have much in the way of hard data to give away yet, there is a very active and thoughtful mailing list. If your council doesn't have or can't get these data sets, come talk to us. http://www.openstreetmap.org/ SDE From ken at SANDNARROWS.COM Thu Mar 3 11:21:21 2005 From: ken at SANDNARROWS.COM (Ken Sanderson) Date: Thu, 3 Mar 2005 13:21:21 -0600 Subject: addFeature and queryByPoint in PHP mapscript Message-ID: I am wondering about this as well. How can I set the index value using PHPmapscript? This: $shp->set(index,$id); returns a read only error and this: $shp->{index} = $id; returns a "Use of undefined constant index - assumed 'index' in" So how can we set the index values so that the points can be queried? Thanks, Ken From mark at REFRACTIONS.NET Thu Mar 3 11:34:21 2005 From: mark at REFRACTIONS.NET (Mark Leslie) Date: Thu, 3 Mar 2005 11:34:21 -0800 Subject: php-mapscript: abnormal death Message-ID: I'm working with a php-mapscript application that, I'm told, used to work. The problem I'm having now is that the script ofter dies on the $img->saveImage('') call. Without this call, 'echo' prints values normally. When the call is made, nothing is returned, no content, no headers. I can output to the apache error log, and anything above the 'saveImage' call will be written properly, nothing after. It looks like php is being abruptly killed during the call and is unable to flush it's buffer or continue. No error is reported by php. The application basically selects one of three sets of layers and creates graduated classes based on passed in range and color parameters. I'm running on some version of redhat, php 4.3.8. My mapserver version is as follows: MapServer version 4.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Any thoughts would be greatly appreciated, Mark From dlagos at FDCCONSULT.COM Thu Mar 3 12:46:37 2005 From: dlagos at FDCCONSULT.COM (Daniel Lagos) Date: Thu, 3 Mar 2005 16:46:37 -0400 Subject: function open layer MyGis query Message-ID: Hi list, I've recently been trying to get php-mapscript version 4 .4.1 up and running. When I try to query clicking on one layer with connection type MYGIS I cannot get any data back from the feature data base table because I get error in function: $layer->open(); The old version php-mapscript 4.0 working fine with the same code. The MapServer 4.4.1 released (2004-12-22) say: Fixed MyGIS build error introduced when adding msLayerIsOpen() (bug 1116). Is there some relations between the error and the bug fixing?. The layer defined in map file and query code are given below. I would be most grateful if anyone could offer any advise. Thank's. query code: $point = $this->createPoint($x,$y); @$q_object = $this->map->queryByPoint($point,MS_SINGLE,-1); $cur_layer = $this->map->getLayerByName($layerName); $res_layer = $cur_layer->getNumResults(); if($res_layer) { $cur_layer->open(); <-------------------------------------------------------------------- The function error upgrade 4.0 to 4.4.1 $cur_res = $cur_layer->getResult(0); $result = $cur_res->shapeindex; $cur_layer->close(); return $result; } Layer defined: LAYER NAME "layer_10" TYPE POINT LABELMAXSCALE 100000 STATUS OFF TOLERANCE 10 CONNECTIONTYPE mygis CONNECTION "localhost:web:user_web:dbGis:bin:" DATA "geometry from G_Punto feature, G_Punto_bin geometry" TEMPLATE void CLASS NAME "class_1" SYMBOL "symbol_5" TEXT ([nombre] - [sucursal]) STYLE OUTLINECOLOR 0 0 0 COLOR 0 0 255 SIZE 18 MINSIZE 8 MAXSIZE 20 END LABEL OUTLINECOLOR 255 255 255 COLOR 127 0 0 SIZE MEDIUM POSITION AUTO PARTIALS FALSE END END END ______________________________________ Daniel A. Lagos H. Fern?ndez y De Cea Ingenieros Ltda. Av. Apoquindo 3650, Of. 902, Las Condes Santiago, Chile Tel: +56 (2) 435 0099 Fax: +56 (2) 435 0258 www.fdcconsult.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandrapaddock at GMAIL.COM Thu Mar 3 11:37:05 2005 From: sandrapaddock at GMAIL.COM (sp) Date: Thu, 3 Mar 2005 13:37:05 -0600 Subject: FILTER for value with apostrophe Message-ID: Hi, all. I'm having some problems constructing a query in my map file. I'm trying to do something pretty basic - grab some records based on a field value - but I have an apostrophe in my target string, and I think that's causing a problem. All my other codes work just fine, and this particular layer draws successfully if I substitute a different species (e.g. one w/o an apostrophe). This is the idea I'm trying to get at: FILTER "Oriole (1st Bullock's)" So, my questions are: 1) I searched and found limited references to known issues with string encoding. Is this related, or am I encountering some other issue? 2) Is there currently any way I can escape the apostrophe? 3) I've tried to create a regular expression, but I might be doing it wrong. Can I use a regex to get around this issue? If so, any suggestions on what that expression would look like, as my guess isn't working - "Oriole.(1st.Bullock.s)" Please help - this is my first MapServer task in a VERY long time! Thanks, Sandra From keon at NACSE.ORG Thu Mar 3 12:05:16 2005 From: keon at NACSE.ORG (Dylan Keon) Date: Thu, 3 Mar 2005 12:05:16 -0800 Subject: php-mapscript: abnormal death In-Reply-To: <422766BD.5020300@refractions.net> Message-ID: On 03/03/2005 11:34 AM, Mark Leslie wrote: > I'm working with a php-mapscript application that, I'm told, used to > work. The problem I'm having now is that the script ofter dies on the > $img->saveImage('') call. Without this call, 'echo' prints values > normally. When the call is made, nothing is returned, no content, no > headers. I can output to the apache error log, and anything above the > 'saveImage' call will be written properly, nothing after. It looks > like php is being abruptly killed during the call and is unable to flush > it's buffer or continue. No error is reported by php. > > The application basically selects one of three sets of layers and > creates graduated classes based on passed in range and color > parameters. I'm running on some version of redhat, php 4.3.8. My > mapserver version is as follows: > > MapServer version 4.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Any thoughts would be greatly appreciated, > Mark Mark, Can you send along a code snippet so we can see the syntax? Are you working with an application that was designed around a much older version of MapServer (say, 3.6.x)? If so, take a look at the "saveImage() and saveWebImage()" section at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MigrationGuide You could also configure MapServer with --enable-debug to trap some more information. --Dylan From cdaily at GMAIL.COM Thu Mar 3 12:24:35 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 3 Mar 2005 14:24:35 -0600 Subject: addFeature and queryByPoint in PHP mapscript In-Reply-To: Message-ID: I opened a bug on this issue a while back, but haven't seen any updates on it: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=806 In the bug writeup, I appended a new version of the php_mapscript.c file (for mapserver 4.4.1) that allows the index to be set. I just altered the code in the shape->set() function. Try grabbing that file from the bug writeup and recompiling mapscript with the new file. When you're setting the indexes for later use by querybypoint, they cannot be arbitrary numbers. You have to set the index values in the order that the shapes are added to the layer, starting with index 0. If you have any other questions about it, let me know. -Camden Daily On Thu, 3 Mar 2005 13:21:21 -0600, Ken Sanderson wrote: > I am wondering about this as well. How can I set the index value using > PHPmapscript? > > This: > > $shp->set(index,$id); > > returns a read only error and this: > > $shp->{index} = $id; > > returns a "Use of undefined constant index - assumed 'index' in" > > So how can we set the index values so that the points can be queried? > > Thanks, > > Ken > From jdport at VERITIME.COM Thu Mar 3 12:24:22 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 3 Mar 2005 15:24:22 -0500 Subject: FILTER for value with apostrophe Message-ID: Can't you do something like: "Oriole (1st Bullock\'s)" to make it work with the apostrophe? -Jeff ----- Original Message ----- From: "sp" To: Sent: Thursday, March 03, 2005 2:37 PM Subject: [UMN_MAPSERVER-USERS] FILTER for value with apostrophe > Hi, all. > > I'm having some problems constructing a query in my map file. I'm > trying to do something pretty basic - grab some records based on a > field value - but I have an apostrophe in my target string, and I > think that's causing a problem. All my other codes work just fine, > and this particular layer draws successfully if I substitute a > different species (e.g. one w/o an apostrophe). > > This is the idea I'm trying to get at: > FILTER > > So, my questions are: > 1) I searched and found limited references to known issues with string > encoding. Is this related, or am I encountering some other issue? > 2) Is there currently any way I can escape the apostrophe? > 3) I've tried to create a regular expression, but I might be doing it > wrong. Can I use a regex to get around this issue? If so, any > suggestions on what that expression would look like, as my guess isn't > working - "Oriole.(1st.Bullock.s)" > > Please help - this is my first MapServer task in a VERY long time! > > Thanks, > Sandra > From cdaily at GMAIL.COM Thu Mar 3 12:28:46 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 3 Mar 2005 14:28:46 -0600 Subject: All Tiger data for download? Message-ID: Does anyone know an easy way to obtain all of the Tiger/Line shapefiles for the entire United States? I know ESRI has it all, but it would be a pain to use their interface to grab it for the entire US. I'd prefer a free ftp site (but I assume no one is so generous as to donate that kind of bandwidth). Alternately, I'd like to purchase all of the data on CD/DVD. I contacted ESRI, but they won't sell it like that for some reason. Any advice would be welcome. -Camden Daily From mark at REFRACTIONS.NET Thu Mar 3 12:33:54 2005 From: mark at REFRACTIONS.NET (Mark Leslie) Date: Thu, 3 Mar 2005 12:33:54 -0800 Subject: php-mapscript: abnormal death In-Reply-To: <42276DFC.1030702@nacse.org> Message-ID: The majority of the script is switches just turning on the requested layers and defining postgis data lines. The interesting (and faulty) part is the end, and is attached below. There isn't much exciting happening there. It was originally built for mapscript 3.6.5, I believe. $quantiles = explode( '|', $quantiles ); foreach( $quantiles as $q ) { $class = ms_newClassObj( $lha_layer ); $info = explode( ',', $q ); $expr = "([$column] >= " . $info[0] . " AND [$column] <= " . $info[1] . ")"; $class->setExpression( $expr ); $color = explode( '.', $info[2] ); $style = ms_newStyleObj($class); $style->color->setRGB($color[0], $color[1], $color[2] ); $style->outlinecolor->setRGB( 180, 180, 180 ); $class->set( 'status', MS_ON ); } //draw and return the map $image = $map->draw(); header( "Content-Type: image/png" ); #$image->saveImage( '', MS_PNG, 0, 0, 0 ); $image->saveImage(''); $err = ms_GetErrorObj(); while($error && $error->code != MS_NOERR) { printf("Error in %s: %s
\n", $error->routine, $error->message); $error = $error->next(); } #echo $err[0] . "<--"; ?> > > Mark, > > Can you send along a code snippet so we can see the syntax? > > Are you working with an application that was designed around a much > older version of MapServer (say, 3.6.x)? If so, take a look at the > "saveImage() and saveWebImage()" section at > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MigrationGuide > > You could also configure MapServer with --enable-debug to trap some more > information. > > --Dylan From pram at PRAMCENTRAL.COM Thu Mar 3 12:38:15 2005 From: pram at PRAMCENTRAL.COM (Prashanth Ram) Date: Thu, 3 Mar 2005 15:38:15 -0500 Subject: All Tiger data for download? Message-ID: Camden: If you are looking just for the tiger inline files check out: http://www.census.gov/geo/www/tiger/tgrcd108/tgr108cd.html The tiger files are broken down by state on the site. -Prashanth -- HTMLX.com Mapserver Hosting, Mapscript, PHP Hosting ----- Original Message ----- From: "Camden Daily" To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] All Tiger data for download? Date: Thu, 3 Mar 2005 14:28:46 -0600 > > Does anyone know an easy way to obtain all of the Tiger/Line > shapefiles for the entire United States? I know ESRI has it all, but > it would be a pain to use their interface to grab it for the entire > US. > > I'd prefer a free ftp site (but I assume no one is so generous as to > donate that kind of bandwidth). Alternately, I'd like to purchase all > of the data on CD/DVD. I contacted ESRI, but they won't sell it like > that for some reason. > > Any advice would be welcome. > > -Camden Daily From jeff at PROPERTYKEY.COM Thu Mar 3 12:38:54 2005 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Thu, 3 Mar 2005 14:38:54 -0600 Subject: All Tiger data for download? In-Reply-To: <16264e0705030312284553792d@mail.gmail.com> Message-ID: Camden Daily wrote: > Does anyone know an easy way to obtain all of the Tiger/Line > shapefiles for the entire United States? I know ESRI has it all, but > it would be a pain to use their interface to grab it for the entire > US. > > I'd prefer a free ftp site (but I assume no one is so generous as to > donate that kind of bandwidth). Alternately, I'd like to purchase all > of the data on CD/DVD. I contacted ESRI, but they won't sell it like > that for some reason. This isn't free, but I'd say it's pretty cheap: download the raw TIGER from http://www.census.gov/geo/www/tiger/index.html and then buy TGR2SHP ($75 at gistools.com) to convert to shape files yourself. -- Jeff Hoffmann jeff at propertykey.com From bartvde at XS4ALL.NL Thu Mar 3 12:36:45 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 3 Mar 2005 21:36:45 +0100 Subject: php-mapscript: abnormal death In-Reply-To: <422774B2.1040103@refractions.net> Message-ID: Hi Mark, Have you defined an outputformat in your MAP file (or dynamically in php)? http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#outputformat eg for png 8 bits: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END Maybe you even need to set it (I don't know if this is necessary if there is only 1 output format though ...): $map->selectOutputFormat('png'); Hope this helps. Best regards, Bart On Thu, 3 Mar 2005 12:33:54 -0800, Mark Leslie wrote: > The majority of the script is switches just turning on the requested > layers and defining postgis data lines. The > interesting (and faulty) part is the end, and is attached below. There > isn't much exciting happening there. It > was originally built for mapscript 3.6.5, I believe. > > $quantiles = explode( '|', $quantiles ); > foreach( $quantiles as $q ) { > $class = ms_newClassObj( $lha_layer ); > $info = explode( ',', $q ); > $expr = "([$column] >= " . $info[0] . " AND [$column] <= " . > $info[1] . ")"; > $class->setExpression( $expr ); > $color = explode( '.', $info[2] ); > $style = ms_newStyleObj($class); > $style->color->setRGB($color[0], $color[1], $color[2] ); > $style->outlinecolor->setRGB( 180, 180, 180 ); > $class->set( 'status', MS_ON ); > } > > //draw and return the map > > $image = $map->draw(); > > header( "Content-Type: image/png" ); > #$image->saveImage( '', MS_PNG, 0, 0, 0 ); > > $image->saveImage(''); > > $err = ms_GetErrorObj(); > > while($error && $error->code != MS_NOERR) { > printf("Error in %s: %s
\n", $error->routine, $error->message); > $error = $error->next(); > } > #echo $err[0] . "<--"; > > ?> > >> >> Mark, >> >> Can you send along a code snippet so we can see the syntax? >> >> Are you working with an application that was designed around a much >> older version of MapServer (say, 3.6.x)? If so, take a look at the >> "saveImage() and saveWebImage()" section at >> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MigrationGuide >> >> You could also configure MapServer with --enable-debug to trap some more >> information. >> >> --Dylan > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From jdport at VERITIME.COM Thu Mar 3 12:49:10 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 3 Mar 2005 15:49:10 -0500 Subject: All Tiger data for download? Message-ID: I've been looking for an easier way to get it too. If i could get it I'd be happy to provide dvd's just for cost of media and shipping... but getting the data is a real pain. -Jeff ----- Original Message ----- From: "Camden Daily" To: Sent: Thursday, March 03, 2005 3:28 PM Subject: [UMN_MAPSERVER-USERS] All Tiger data for download? > Does anyone know an easy way to obtain all of the Tiger/Line > shapefiles for the entire United States? I know ESRI has it all, but > it would be a pain to use their interface to grab it for the entire > US. > > I'd prefer a free ftp site (but I assume no one is so generous as to > donate that kind of bandwidth). Alternately, I'd like to purchase all > of the data on CD/DVD. I contacted ESRI, but they won't sell it like > that for some reason. > > Any advice would be welcome. > > -Camden Daily > From mark at REFRACTIONS.NET Thu Mar 3 13:04:26 2005 From: mark at REFRACTIONS.NET (Mark Leslie) Date: Thu, 3 Mar 2005 13:04:26 -0800 Subject: php-mapscript: abnormal death In-Reply-To: Message-ID: My understanding was the OUTPUTFORMAT was implicitly defined, and the mapfile output format would be used by default. Of course my understanding is limited, so I tried it to no avail. I've found a work around however. It seems that writing to a file works fine, just not to standard out. I've done the workaround that I write to a temp file, then read the file directly to stdout. So far, it's fixed the app, but it's still not an ideal solution. I've also filed a bug (1269). Mark Bart van den Eijnden wrote: > Hi Mark, > > Have you defined an outputformat in your MAP file (or dynamically in > php)? > > http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#outputformat > > eg for png 8 bits: > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > > Maybe you even need to set it (I don't know if this is necessary if there > is only 1 output format though ...): > > $map->selectOutputFormat('png'); > > Hope this helps. > > Best regards, > Bart > From keon at NACSE.ORG Thu Mar 3 13:20:29 2005 From: keon at NACSE.ORG (Dylan Keon) Date: Thu, 3 Mar 2005 13:20:29 -0800 Subject: php-mapscript: abnormal death In-Reply-To: <42277BDA.4050504@refractions.net> Message-ID: Mark, IIRC, even though the png outputformat is implicitly defined, you still need to declare 'IMAGETYPE png' in your mapfile. Or you can do selectOutputformat() as Bart suggested. Although I'm not sure whether selectOutputformat() works with the implicitly defined formats, or only OUTPUTFORMAT declarations in your mapfile. --Dylan On 03/03/2005 01:04 PM, Mark Leslie wrote: > My understanding was the OUTPUTFORMAT was implicitly defined, and the > mapfile output format would > be used by default. Of course my understanding is limited, so I tried > it to no avail. > > I've found a work around however. It seems that writing to a file works > fine, just not to standard out. I've done > the workaround that I write to a temp file, then read the file directly > to stdout. So far, it's fixed the app, but it's still not > an ideal solution. I've also filed a bug (1269). > > Mark > > > Bart van den Eijnden wrote: > >> Hi Mark, >> >> Have you defined an outputformat in your MAP file (or dynamically in >> php)? >> >> http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#outputformat >> >> eg for png 8 bits: >> >> OUTPUTFORMAT >> NAME png >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> IMAGEMODE PC256 >> EXTENSION "png" >> END >> >> Maybe you even need to set it (I don't know if this is necessary if there >> is only 1 output format though ...): >> >> $map->selectOutputFormat('png'); >> >> Hope this helps. >> >> Best regards, >> Bart >> From fwarmerdam at GMAIL.COM Thu Mar 3 13:34:14 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 3 Mar 2005 16:34:14 -0500 Subject: All Tiger data for download? In-Reply-To: <20050303203815.E1FFE4F453@ws6-5.us4.outblaze.com> Message-ID: On Thu, 3 Mar 2005 15:38:15 -0500, Prashanth Ram wrote: > Camden: > If you are looking just for the tiger inline files check out: > http://www.census.gov/geo/www/tiger/tgrcd108/tgr108cd.html > > The tiger files are broken down by state on the site. Folks, I would add that the 2004 Census Tiger data (in TIGER/Line) format is also accessable at: http://uo.space.frot.org/?GeodataTorrents As a bittorrent along with SRTM30+ data and all of VMAP0. 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 at WORMLEY.COM Thu Mar 3 13:03:45 2005 From: steve at WORMLEY.COM (Steve Wormley) Date: Thu, 3 Mar 2005 16:03:45 -0500 Subject: All Tiger data for download? In-Reply-To: <028e01c52032$73523c30$1bf2fbd0@solo> Message-ID: I'm sure the census didn't like it, but I just the other day did a wget of the whole set and then used ogr2ogr to convert them all to various shapefiles as I needed them. For instance, to create the major roads (CFCC of A1*) after unzipping all the .zip files I ran the following command: find tiger/www2.census.gov/ -type d -iname 'tgr?????' | xargs -n1 ~/mktiger.sh and the mktiger.sh script: #! /bin/bash out=`echo $1 | awk -F/ '{print $6}'` outb=`echo $1 | awk -F/ '{print $7}'` ogr2ogr -f "ESRI Shapefile" -where "CFCC like 'A1%'" -nln $outb maps/us/majorroads/$out $1 CompleteChain (Sorry about the wrapping. And for right now I can't make the data files available to the public.) The major roads after conversion were about 128MB. The minor roads (everything except A1*) were around 11GB. The compressed tiger files appear to be about 4.5GB. The uncompressed version of the tiger files are about 42GB. -Steve Wormley On 3/3/05 3:49 PM, "Jeff Portwine" wrote: > I've been looking for an easier way to get it too. > If i could get it I'd be happy to provide dvd's just for cost of media and > shipping... but getting the data is a real pain. > > -Jeff > ----- Original Message ----- > From: "Camden Daily" > To: > Sent: Thursday, March 03, 2005 3:28 PM > Subject: [UMN_MAPSERVER-USERS] All Tiger data for download? > > >> Does anyone know an easy way to obtain all of the Tiger/Line >> shapefiles for the entire United States? I know ESRI has it all, but >> it would be a pain to use their interface to grab it for the entire >> US. >> >> I'd prefer a free ftp site (but I assume no one is so generous as to >> donate that kind of bandwidth). Alternately, I'd like to purchase all >> of the data on CD/DVD. I contacted ESRI, but they won't sell it like >> that for some reason. >> >> Any advice would be welcome. >> >> -Camden Daily >> From sandrapaddock at GMAIL.COM Thu Mar 3 16:37:29 2005 From: sandrapaddock at GMAIL.COM (sp) Date: Thu, 3 Mar 2005 18:37:29 -0600 Subject: FILTER for value with apostrophe In-Reply-To: <027701c5202e$fc735b10$1bf2fbd0@solo> Message-ID: I figured it out - there was a different problem in the layer definition. This was fine. Sorry about that. sp On Thu, 3 Mar 2005 15:24:22 -0500, Jeff Portwine wrote: > > Can't you do something like: > "Oriole (1st Bullock\'s)" > > to make it work with the apostrophe? > > -Jeff > > > ----- Original Message ----- > From: "sp" > To: > Sent: Thursday, March 03, 2005 2:37 PM > Subject: [UMN_MAPSERVER-USERS] FILTER for value with apostrophe > > > Hi, all. > > > > I'm having some problems constructing a query in my map file. I'm > > trying to do something pretty basic - grab some records based on a > > field value - but I have an apostrophe in my target string, and I > > think that's causing a problem. All my other codes work just fine, > > and this particular layer draws successfully if I substitute a > > different species (e.g. one w/o an apostrophe). > > > > This is the idea I'm trying to get at: > > FILTER > > > So, my questions are: > > 1) I searched and found limited references to known issues with string > > encoding. Is this related, or am I encountering some other issue? > > 2) Is there currently any way I can escape the apostrophe? > > 3) I've tried to create a regular expression, but I might be doing it > > wrong. Can I use a regex to get around this issue? If so, any > > suggestions on what that expression would look like, as my guess isn't > > working - "Oriole.(1st.Bullock.s)" > > > > Please help - this is my first MapServer task in a VERY long time! > > > > Thanks, > > Sandra > > > > From kboyleAlt at YAHOO.COM Thu Mar 3 17:10:41 2005 From: kboyleAlt at YAHOO.COM (Keith Boyle) Date: Thu, 3 Mar 2005 19:10:41 -0600 Subject: adding a layer programmatically with PHP Message-ID: I'm trying to add Classes to Layers and copied Layers to a Map through PHPMapScript, but can't find a way in the documentation/faq/mail archive. This seems really basic, so must just be missing something obvious and simple. Can anyone give me a quick pointer? thanks for any help, -Keith From stigmata_blackangel at YAHOO.COM Thu Mar 3 17:31:22 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Thu, 3 Mar 2005 17:31:22 -0800 Subject: All Tiger data for download? In-Reply-To: Message-ID: A year or so ago I downloaded the entire TIGER set, and discovered that the TIGER data doesn't align with other datasets. (There was a thread on this a month or three later, that apparently this is a known problem.) So as long as we're on the topic of grabbing all TIGER data, I thought I'd re-ask the question of whether the TIGER data is geographically correct and therefore usable. --- Steve Wormley wrote: > I'm sure the census didn't like it, but I just the > other day did a wget of > the whole set and then used ogr2ogr to convert them > all to various > shapefiles as I needed them. > > For instance, to create the major roads (CFCC of > A1*) after unzipping all > the .zip files I ran the following command: > > find tiger/www2.census.gov/ -type d -iname > 'tgr?????' | xargs -n1 > ~/mktiger.sh > > and the mktiger.sh script: > > #! /bin/bash > out=`echo $1 | awk -F/ '{print $6}'` > outb=`echo $1 | awk -F/ '{print $7}'` > ogr2ogr -f "ESRI Shapefile" -where "CFCC like 'A1%'" > -nln $outb > maps/us/majorroads/$out $1 CompleteChain > > (Sorry about the wrapping. And for right now I can't > make the data files > available to the public.) > > The major roads after conversion were about 128MB. > The minor roads (everything except A1*) were around > 11GB. > The compressed tiger files appear to be about 4.5GB. > The uncompressed version of the tiger files are > about 42GB. > > -Steve Wormley > > On 3/3/05 3:49 PM, "Jeff Portwine" > wrote: > > > I've been looking for an easier way to get it too. > > If i could get it I'd be happy to provide dvd's > just for cost of media and > > shipping... but getting the data is a real pain. > > > > -Jeff > > ----- Original Message ----- > > From: "Camden Daily" > > To: > > Sent: Thursday, March 03, 2005 3:28 PM > > Subject: [UMN_MAPSERVER-USERS] All Tiger data for > download? > > > > > >> Does anyone know an easy way to obtain all of the > Tiger/Line > >> shapefiles for the entire United States? I know > ESRI has it all, but > >> it would be a pain to use their interface to grab > it for the entire > >> US. > >> > >> I'd prefer a free ftp site (but I assume no one > is so generous as to > >> donate that kind of bandwidth). Alternately, I'd > like to purchase all > >> of the data on CD/DVD. I contacted ESRI, but > they won't sell it like > >> that for some reason. > >> > >> Any advice would be welcome. > >> > >> -Camden Daily > >> > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From jeff at PROPERTYKEY.COM Thu Mar 3 18:04:52 2005 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Thu, 3 Mar 2005 20:04:52 -0600 Subject: All Tiger data for download? In-Reply-To: <20050304013122.16037.qmail@web53801.mail.yahoo.com> Message-ID: On Mar 3, 2005, at 7:31 PM, Gregor Mosheh wrote: > A year or so ago I downloaded the entire TIGER set, > and discovered that the TIGER data doesn't align with > other datasets. (There was a thread on this a month or > three later, that apparently this is a known problem.) > > So as long as we're on the topic of grabbing all TIGER > data, I thought I'd re-ask the question of whether the > TIGER data is geographically correct and therefore > usable. They're working on it. They contracted out with some company to fix it, but my understanding is it's an 8 year project & they're still pretty early into the deal. The 2004 TIGER has somewhere in the neighborhood of 300 counties with improved data, though, so if you're interested in those select areas, you're probably in luck. I've personally checked one of those counties against that county's GIS parcel base & they line up pretty well, so there's reason for hope. The list of improved counties is at http://www.census.gov/geo/www/tiger/tiger2004fe/tlfe04cty.txt if you're interested. -- Jeff Hoffmann jeff at propertykey.com From ierickson at ANALYGIS.COM Thu Mar 3 18:24:44 2005 From: ierickson at ANALYGIS.COM (Ian Erickson) Date: Thu, 3 Mar 2005 19:24:44 -0700 Subject: All Tiger data for download? In-Reply-To: <20050304013122.16037.qmail@web53801.mail.yahoo.com> Message-ID: The TIGER data, as others have suggested, is undergoing an update - the MAF/TIGER Improvement project. The company that won the bid (and correct me if I'm wrong) was Harris Corporation. The goal of the project is to correct the abysmally inaccurate address ranges for road segments, add new roads and data to the existing TIGER base, and correct the centerline street data to an accuracy better than 12 meters. I think the results of the 411 counties that are complete has yeilded an accuracy of 7 meters or so. If you're looking for an example of old versus new, take a look at the screen shots included as part of our web site. http://www.analygis.com/products/roadrunner.htm I really don't believe that any of our products are a viable solution for anyone on this list (as you all have access to ogr2ogr and other goodies), but our product is targeted at those individuals that are required to spend in the neighborhood of $15,000 for a national-level street file from other commercial vendors and are not that technically savy. If you're looking to translate the data, the easy answer is to use ogr, or as was suggested earlier, buy the TGR2SHP utility and do it yourself. I was able to pull the entire TIGER dataset from the Census bureau is less than a day with a 1.5Mb DSL connection. - Ian Gregor Mosheh wrote: >A year or so ago I downloaded the entire TIGER set, >and discovered that the TIGER data doesn't align with >other datasets. (There was a thread on this a month or >three later, that apparently this is a known problem.) > >So as long as we're on the topic of grabbing all TIGER >data, I thought I'd re-ask the question of whether the >TIGER data is geographically correct and therefore >usable. > > >--- Steve Wormley wrote: > > > >>I'm sure the census didn't like it, but I just the >>other day did a wget of >>the whole set and then used ogr2ogr to convert them >>all to various >>shapefiles as I needed them. >> >>For instance, to create the major roads (CFCC of >>A1*) after unzipping all >>the .zip files I ran the following command: >> >>find tiger/www2.census.gov/ -type d -iname >>'tgr?????' | xargs -n1 >>~/mktiger.sh >> >>and the mktiger.sh script: >> >>#! /bin/bash >>out=`echo $1 | awk -F/ '{print $6}'` >>outb=`echo $1 | awk -F/ '{print $7}'` >>ogr2ogr -f "ESRI Shapefile" -where "CFCC like 'A1%'" >>-nln $outb >>maps/us/majorroads/$out $1 CompleteChain >> >>(Sorry about the wrapping. And for right now I can't >>make the data files >>available to the public.) >> >>The major roads after conversion were about 128MB. >>The minor roads (everything except A1*) were around >>11GB. >>The compressed tiger files appear to be about 4.5GB. >>The uncompressed version of the tiger files are >>about 42GB. >> >>-Steve Wormley >> >>On 3/3/05 3:49 PM, "Jeff Portwine" >> wrote: >> >> >> >>>I've been looking for an easier way to get it too. >>>If i could get it I'd be happy to provide dvd's >>> >>> >>just for cost of media and >> >> >>>shipping... but getting the data is a real pain. >>> >>>-Jeff >>>----- Original Message ----- >>>From: "Camden Daily" >>>To: >>>Sent: Thursday, March 03, 2005 3:28 PM >>>Subject: [UMN_MAPSERVER-USERS] All Tiger data for >>> >>> >>download? >> >> >>> >>> >>>>Does anyone know an easy way to obtain all of the >>>> >>>> >>Tiger/Line >> >> >>>>shapefiles for the entire United States? I know >>>> >>>> >>ESRI has it all, but >> >> >>>>it would be a pain to use their interface to grab >>>> >>>> >>it for the entire >> >> >>>>US. >>>> >>>>I'd prefer a free ftp site (but I assume no one >>>> >>>> >>is so generous as to >> >> >>>>donate that kind of bandwidth). Alternately, I'd >>>> >>>> >>like to purchase all >> >> >>>>of the data on CD/DVD. I contacted ESRI, but >>>> >>>> >>they won't sell it like >> >> >>>>that for some reason. >>>> >>>>Any advice would be welcome. >>>> >>>>-Camden Daily >>>> >>>> >>>> > > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > > > -- Ian Erickson AnalyGIS, LLC Gold Canyon, AZ 85218 http:// www.analygis.com From woodbri at SWOODBRIDGE.COM Thu Mar 3 18:49:20 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 3 Mar 2005 21:49:20 -0500 Subject: All Tiger data for download? In-Reply-To: <20050304013122.16037.qmail@web53801.mail.yahoo.com> Message-ID: Hi Gregor, Gregor Mosheh wrote: > A year or so ago I downloaded the entire TIGER set, and discovered > that the TIGER data doesn't align with other datasets. (There was a > thread on this a month or three later, that apparently this is a > known problem.) > > So as long as we're on the topic of grabbing all TIGER data, I > thought I'd re-ask the question of whether the TIGER data is > geographically correct and therefore usable. TIGER cover a huge geographically disperse area and was put together circa 1990, by mandating that all state and local governments had to provide data so the quality of the spatial alignment varies from place to place. The Tiger data for many cases is geographically correct enough, I'm sure there are areas that this is not true. I have plenty of gps tracks the overlay very nicely with the Tiger data. See: http://swoodbridge.com/moto/ Using Tiger for geocoding is also quite good. So the issue of usability has to be usable for what application. As Jeff Hoffman just commented, Census is spending 200 Million plus dollars for a data improvement program with Harris Corp. in Fla. being the prime contractor. The Tiger2004fe is the first installment of that data. I have been able to compare the updated data areas with that of Navteq and the new tiger data has a lot more detail the the Navteq data. Now if Tiger would just add information about street directionality and intersection zlevels ... -Steve W. > --- Steve Wormley wrote: > > >> I'm sure the census didn't like it, but I just the other day did a >> wget of the whole set and then used ogr2ogr to convert them all to >> various shapefiles as I needed them. >> >> For instance, to create the major roads (CFCC of A1*) after >> unzipping all the .zip files I ran the following command: >> >> find tiger/www2.census.gov/ -type d -iname 'tgr?????' | xargs -n1 >> ~/mktiger.sh >> >> and the mktiger.sh script: >> >> #! /bin/bash out=`echo $1 | awk -F/ '{print $6}'` outb=`echo $1 | >> awk -F/ '{print $7}'` ogr2ogr -f "ESRI Shapefile" -where "CFCC like >> 'A1%'" -nln $outb maps/us/majorroads/$out $1 CompleteChain >> >> (Sorry about the wrapping. And for right now I can't make the data >> files available to the public.) >> >> The major roads after conversion were about 128MB. The minor roads >> (everything except A1*) were around 11GB. The compressed tiger >> files appear to be about 4.5GB. The uncompressed version of the >> tiger files are about 42GB. >> >> -Steve Wormley >> >> On 3/3/05 3:49 PM, "Jeff Portwine" wrote: >> >> >>> I've been looking for an easier way to get it too. If i could get >>> it I'd be happy to provide dvd's >> >> just for cost of media and >> >>> shipping... but getting the data is a real pain. >>> >>> -Jeff ----- Original Message ----- From: "Camden Daily" >>> To: Sent: >>> Thursday, March 03, 2005 3:28 PM Subject: [UMN_MAPSERVER-USERS] >>> All Tiger data for >> >> download? >> >>> >>>> Does anyone know an easy way to obtain all of the >> >> Tiger/Line >> >>>> shapefiles for the entire United States? I know >> >> ESRI has it all, but >> >>>> it would be a pain to use their interface to grab >> >> it for the entire >> >>>> US. >>>> >>>> I'd prefer a free ftp site (but I assume no one >> >> is so generous as to >> >>>> donate that kind of bandwidth). Alternately, I'd >> >> like to purchase all >> >>>> of the data on CD/DVD. I contacted ESRI, but >> >> they won't sell it like >> >>>> that for some reason. >>>> >>>> Any advice would be welcome. >>>> >>>> -Camden Daily >>>> >> > > > __________________________________________________ Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From kristjan at TARKVARASTUUDIO.EE Thu Mar 3 23:39:10 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Fri, 4 Mar 2005 09:39:10 +0200 Subject: adding a layer programmatically with PHP In-Reply-To: Message-ID: Here is one sample how to create layer in PHP, may be this could help. $layer = ms_newLayerObj($map); $layer->set("name", "points"); $layer->set("type", MS_LAYER_POINT); $layer->set("status", MS_ON); $class = ms_newClassObj($layer); $class->set("status", MS_ON); $class->label->set("type", MS_TRUETYPE); $class->label->set("font", 'arial'); $class->label->color->setRGB( 200,200,200); $class->label->outlinecolor->setRGB(255, 255, 255); $class->label->set("size", 12); $class->label->set("position", 9); $style = ms_newStyleObj($class); $style->set("symbol", $map->getsymbolbyname( 'circle')); $style->set("size", 8); $style->color->setRGB( 200,200,200); $style->outlinecolor->setRGB(255, 255, 255); Kristjan >I'm trying to add Classes to Layers and copied Layers to a Map through >PHPMapScript, but can't find a way in the documentation/faq/mail archive. >This seems really basic, so must just be missing something obvious and >simple. Can anyone give me a quick pointer? > >thanks for any help, >-Keith > > From solo6259 at YAHOO.COM Fri Mar 4 00:02:45 2005 From: solo6259 at YAHOO.COM (Solomon) Date: Fri, 4 Mar 2005 02:02:45 -0600 Subject: msOracleSpatialLayerGetShape(): Function not implemented yet Message-ID: i've been trying to query an image box. when i use shapefiles the querybyrect function works fine. when i try using the same on oracle 9i i get the following error. "msOracleSpatialLayerGetShape(): Function not implemented yet " am connecting using "CONNECTIONTYPE oraclespatial". How soon will the function be implemented. i got some information that i have to use OGR. but i don't want to recompile the whole shebhang again. Is there a work around to this problem From bartvde at XS4ALL.NL Fri Mar 4 01:07:52 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 4 Mar 2005 10:07:52 +0100 Subject: msOracleSpatialLayerGetShape(): Function not implemented yet In-Reply-To: Message-ID: Hi, Which Mapserver version are you using? Are you sure your Mapserver is compiled with native Oracle Spatial support (INPUT=ORACLESPATIAL)? The function is implemented for sure in the last release version (4.4.1). Best regards, Bart > i've been trying to query an image box. when i use shapefiles the > querybyrect function works fine. when i try using the same on oracle 9i i > get the following error. > "msOracleSpatialLayerGetShape(): Function not implemented yet " > am connecting using "CONNECTIONTYPE oraclespatial". How soon will the > function be implemented. i got some information that i have to use OGR. > but > i don't want to recompile the whole shebhang again. Is there a work around > to this problem > From fsimon at UNIVALI.BR Fri Mar 4 03:25:11 2005 From: fsimon at UNIVALI.BR (Fernando S.) Date: Fri, 4 Mar 2005 11:25:11 +0000 Subject: msOracleSpatialLayerGetShape(): Function not implemented yet In-Reply-To: Message-ID: Hi Solomon, This message appear when you try to execute any query function. How Bart suggested this function was implemented only in 4.4.x version and newer. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Solomon wrote: >i've been trying to query an image box. when i use shapefiles the >querybyrect function works fine. when i try using the same on oracle 9i i >get the following error. >"msOracleSpatialLayerGetShape(): Function not implemented yet " >am connecting using "CONNECTIONTYPE oraclespatial". How soon will the >function be implemented. i got some information that i have to use OGR. but >i don't want to recompile the whole shebhang again. Is there a work around >to this problem > > > From dlagos at FDCCONSULT.COM Fri Mar 4 05:49:47 2005 From: dlagos at FDCCONSULT.COM (Daniel Lagos) Date: Fri, 4 Mar 2005 09:49:47 -0400 Subject: problem upgrade php-mapscript 4.0 to 4.1.1 $layer->open MyGis Message-ID: Hi list, I've recently been trying upgrade php-mapscript version 4.0 to 4 .4.1. When I try to query clicking on one layer with connection type MYGIS I cannot get any data back from the feature data base table because I get error in function: $layer->open(); query code: $point = $this->createPoint($x,$y); @$q_object = $this->map->queryByPoint($point,MS_SINGLE,-1); $cur_layer = $this->map->getLayerByName($layerName); $res_layer = $cur_layer->getNumResults(); if($res_layer) { $cur_layer->open(); <-------------------------------------------------------------------- The function error upgrade 4.0 to 4.4.1 $cur_res = $cur_layer->getResult(0); $result = $cur_res->shapeindex; $cur_layer->close(); return $result; } Layer defined: LAYER NAME "layer_10" TYPE POINT LABELMAXSCALE 100000 STATUS OFF TOLERANCE 10 CONNECTIONTYPE mygis CONNECTION "localhost:web:user_web:dbGis:bin:" DATA "geometry from G_Punto feature, G_Punto_bin geometry" TEMPLATE void CLASS NAME "class_1" SYMBOL "symbol_5" TEXT ([nombre] - [sucursal]) STYLE OUTLINECOLOR 0 0 0 COLOR 0 0 255 SIZE 18 MINSIZE 8 MAXSIZE 20 END LABEL OUTLINECOLOR 255 255 255 COLOR 127 0 0 SIZE MEDIUM POSITION AUTO PARTIALS FALSE END END END The MapServer 4.4.1 released (2004-12-22) say: Fixed MyGIS build error introduced when adding msLayerIsOpen() (bug 1116). Is there some relations between the error and the bug fixing?. The old version php-mapscript 4.0 working fine with the same code. I would be most grateful if anyone could offer any advise. Thank's. ______________________________________ Daniel A. Lagos H. Fern?ndez y De Cea Ingenieros Ltda. Av. Apoquindo 3650, Of. 902, Las Condes Santiago, Chile Tel: +56 (2) 435 0099 Fax: +56 (2) 435 0258 www.fdcconsult.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From schuyler at NOCAT.NET Fri Mar 4 06:22:12 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Fri, 4 Mar 2005 06:22:12 -0800 Subject: All Tiger data for download? In-Reply-To: <20050304013122.16037.qmail@web53801.mail.yahoo.com> Message-ID: * On 3-Mar-2005 at 5:30PM PST, Gregor Mosheh said: > > So as long as we're on the topic of grabbing all TIGER > data, I thought I'd re-ask the question of whether the > TIGER data is geographically correct and therefore > usable. It depends on where you are. TIGER/Line comes from a hodge-podge of different sources - some of it has been ground-truthed by the Census Bureau, whereas some of it has been digitized from old USGS maps in a couple of different datums. In San Francisco, CA, the TIGER/Line data is spot-on. In Sebastopol, CA, about 100 km north, the TIGER/Line data is pretty consistently offset. This may reflect some kind of datum mismatch, or perhaps the original maps are simply off. I believe that the TIGER/Line 2004 FE data has a new record type that indicates the original source of the data for each record, which may help resolve alignment issues. Also, to read the Census Bureau's documentation on the subject, they're working on it. The US is a big place. SDE From sgillies at FRII.COM Fri Mar 4 06:49:00 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 4 Mar 2005 07:49:00 -0700 Subject: c# + mapscript... In-Reply-To: <1109947245.4228736d19c59@webmail.inf.ufsc.br> Message-ID: On Mar 4, 2005, at 7:40 AM, maluche at inf.ufsc.br wrote: > I tried compile mapscript c#, but I got this error: > > pls help > > thx > > > ------- > > > C:mapsourcemapserver-4.4.1mapscriptcsharp>nmake /f Makefile.vc > > Microsoft (R) Program Maintenance Utility Version 7.10.3077 > Copyright (C) Microsoft Corporation. All rights reserved. > > swig -csharp -o mapscript_wrap.c ../mapscript.i > cl /nologo /Zi /W3 /DDEBUG -DWIN32 -D_WIN32 -c:/projects/gdwin32 - > Ic:projectsregex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC > -NEED_STRCA > SECMP -DNEED_STRNCASECMP -DNEED_STRLCAT -DWIN32 -D_WIN32 > -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR > -DUSE_GD_FT > -DGD_HAS_GETBITMAPFONT -DIGNORE_MISSING_DATA > -DENABLE_STDERR_DEBUG > -DUSE_GD_ANTIALIAS -../.. /DCOMPILE_DL=1 /c mapscript_wrap.c > /Fomapscript_wrap.obj mapscript_wrap.c > c:mapsourcemapserver-4.4.1mapsymbol.h(39) : fatal error C1083: Cannot > open > include file: ''gd.h'': No such file or directory > NMAKE : fatal error U1077: ''cl'' : return code ''0x2'' > Stop. > I'm forwarding this on to the mapserver-users list. The C# Makefile.vc file will need to be edited by hand so that all include and library paths are valid. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From cdaily at GMAIL.COM Fri Mar 4 07:44:02 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Fri, 4 Mar 2005 09:44:02 -0600 Subject: All Tiger data for download? In-Reply-To: <20050304142212.GZ14032@vishnu.tridity.org> Message-ID: It seems that the uo.space.frot.org torrent would be the easiest way to grab the raw Tiger/Line data. I haven't started it yet, but if it doesn't work correctly, I'll write a script to wget it directly. What's the difference between using ogr2ogr and tgr2shp for converting the data to shapefiles? If the free utility can do it, why should I purchase tgr2shp? Thanks for all of the information regarding the Tiger/Line data. I appreciate the offers to make a torrent of the shapefiles, but if I can generate them on my own, I'll attempt that route for now. -Camden From fwarmerdam at GMAIL.COM Fri Mar 4 07:53:40 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 4 Mar 2005 10:53:40 -0500 Subject: All Tiger data for download? In-Reply-To: <16264e0705030407446d2d6a13@mail.gmail.com> Message-ID: On Fri, 4 Mar 2005 09:44:02 -0600, Camden Daily wrote: > It seems that the uo.space.frot.org torrent would be the easiest way > to grab the raw Tiger/Line data. I haven't started it yet, but if it > doesn't work correctly, I'll write a script to wget it directly. Camden, The torrent definately works! If you have a big enough pipe you might get data at near 1MB/s. We have four good seeds running. > What's the difference between using ogr2ogr and tgr2shp for converting > the data to shapefiles? If the free utility can do it, why should I > purchase tgr2shp? I haven't used tgr2shp, but I will say that using ogr2ogr for tiger data still leaves you quite a bit of postprocessing to do if you want to extract all the polygons, relate the landmarks and so forth. The OGR TIGER/Line driver pretty much brings over the tiger tables directly without interpretation. The only real "work" it does is to form the complete chains from the pieces so at least the linework is well formed after translation. If you need polygon and other information from TIGER/Line, you may find that TGR2SHP does more of the "ground work" for you. On the other hand, with python scripting you can do nearly anything with the OGR driver. > Thanks for all of the information regarding the Tiger/Line data. I > appreciate the offers to make a torrent of the shapefiles, but if I > can generate them on my own, I'll attempt that route for now. It is certainly an adventure, especially if you want more than just the linework. 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 lester at LSCES.CO.UK Fri Mar 4 08:13:55 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Fri, 4 Mar 2005 16:13:55 +0000 Subject: PHP & Map Script In-Reply-To: Message-ID: Hannah Brown wrote: > I have the postcodes and corresponding coordinates for their location > and also have the maps required. The maps have the required layers in > ArcView to show what postcodes apply to which areas using polygons. You are doing better than me then ;) Although I do have a reasonable test setup based on the Isle of Man > So far I have the initialisation file for starting up the map, however I > am unclear how to use the file to enter a postcode > to find the area on > the map > specify where the problem is and then pass the variables of > the coordinates over to the reporting form. The next problem is to convert the postcode to a co-ordinate that is using the same scale as your map. This will then give you an 'x' and 'y' for the section of map you want, > My initialisation file so far is as follows; I think I'm in the same boat - how do you select a scaled view centred on the x and Y coordinates that you have :( And then return the actual x and y back from the map when you select the exact point? I can pan and zoom to the point, but need to go there automatically. > I am using MySQL and PHP. I won't hold MySQL against you, never used it myself, but anything that can give the data required will do the job. -- Lester Caine ----------------------------- L.S.Caine Electronic Services From jeff at PROPERTYKEY.COM Fri Mar 4 08:15:46 2005 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Fri, 4 Mar 2005 10:15:46 -0600 Subject: All Tiger data for download? In-Reply-To: <16264e0705030407446d2d6a13@mail.gmail.com> Message-ID: Camden Daily wrote: > What's the difference between using ogr2ogr and tgr2shp for converting > the data to shapefiles? If the free utility can do it, why should I > purchase tgr2shp? I don't know much about OGR. I contemplated it at one time, but I saw some messages on the mailing list about people having problems & decided it wasn't worth my time. I can tell you that TGR2SHP is really slick -- it's easy to use & I've had no problems. I don't think I've ever heard a bad word about it, as a matter of fact. You just pick one or more of the zipped TIGER source files, tell it what layers you want & just let it go. Also if you've downloaded TIGER from ESRI, I think that you'll end up with the same extracts. -- Jeff Hoffmann jeff at propertykey.com From schuyler at NOCAT.NET Fri Mar 4 08:17:36 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Fri, 4 Mar 2005 08:17:36 -0800 Subject: All Tiger data for download? In-Reply-To: <931f8ea905030407533023b43a@mail.gmail.com> Message-ID: * On 4-Mar-2005 at 7:56AM PST, Frank Warmerdam said: > > I haven't used tgr2shp, but I will say that using ogr2ogr for tiger > data still leaves you quite a bit of postprocessing to do if you want > to extract all the polygons, relate the landmarks and so forth. The > OGR TIGER/Line driver pretty much brings over the tiger tables > directly without interpretation. The only real "work" it does is to > form the complete chains from the pieces so at least the linework > is well formed after translation. > > If you need polygon and other information from TIGER/Line, you > may find that TGR2SHP does more of the "ground work" for you. > On the other hand, with python scripting you can do nearly > anything with the OGR driver. Actually, I've done most of the work already. ;-) See http://mappinghacks.com/projects/tiger2pgsql/ for the script that does most of the work. You must have a recent version of GDAL/OGR and a PostGIS data base, and you must have tigerpoly.py from the GDAL Python examples (or the one from mappinghacks.com) stored in the same directory as the tigerimport.sh script. Once you've imported the layers into PostGIS, it is trivial to use ogr2ogr to extract them to Shapefiles. The CompleteChain, Landmarks, AreaLandMarks, and Polygon layers are supported. Don't buy proprietary software to work with TIGER/Line - support the Free Software that works with it instead. Please let me know if you use this script, and have either success or difficulty. SDE From solo6259 at YAHOO.COM Fri Mar 4 09:06:10 2005 From: solo6259 at YAHOO.COM (Solomon) Date: Fri, 4 Mar 2005 11:06:10 -0600 Subject: finding shortest path between two points Message-ID: hi guys thank u for ur support. now does anyone has a clue on how to implement pathfinding. the user specifies source and destination, and code finds the shortest distance between source and destination (like what is implemeted in yahoo maps) and then the path is highlighted. am using mapserver 4.4.2,phpmapscript,oracle 9i spatial all running on linux. any help in the right direction will be appreciated. From woodbri at SWOODBRIDGE.COM Fri Mar 4 09:16:22 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 4 Mar 2005 12:16:22 -0500 Subject: finding shortest path between two points In-Reply-To: Message-ID: That would be Dijkstra's algorithm, see: http://ciips.ee.uwa.edu.au/~morris/Year2/PLDS210/dijkstra.html There are lots of examples of code on the net for this. I have implemented a prototype, but it is not opensource. You can play with the demo I have at http://imaptools.com/demos1/?tab=2 -Steve Solomon wrote: > hi guys > thank u for ur support. now does anyone has a clue on how to implement > pathfinding. the user specifies source and destination, and code finds the > shortest distance between source and destination (like what is implemeted > in yahoo maps) and then the path is highlighted. am using mapserver > 4.4.2,phpmapscript,oracle 9i spatial all running on linux. any help in the > right direction will be appreciated. > From cdaily at GMAIL.COM Fri Mar 4 09:18:53 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Fri, 4 Mar 2005 11:18:53 -0600 Subject: All Tiger data for download? In-Reply-To: <20050304161736.GC14032@vishnu.tridity.org> Message-ID: > Actually, I've done most of the work already. ;-) See > http://mappinghacks.com/projects/tiger2pgsql/ for the script that does > most of the work. Excellent. I'll dig in on that next week once I get the raw data downloaded (grabbing the torrent right now!) As far as equipment that I'll need for this, do you know how much disk space the postgres database of all of the tiger data is going to take, or how much room the final shapefiles will consume? I just need to gauge what type of hardware I'll need to do this process. Also, when ogr2ogr extracts the info from postgres, is it easy to place each layer/state/county in a different directory for easier use with tileindexing? Thanks for the script, and I'll let you know how it goes next week! -Camden From schuyler at NOCAT.NET Fri Mar 4 09:18:06 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Fri, 4 Mar 2005 09:18:06 -0800 Subject: finding shortest path between two points In-Reply-To: <422897E6.9050406@swoodbridge.com> Message-ID: One note: You want to be careful doing this with TIGER/Line data, because it doesn't include street-directionality, and so you can generate driving routes that are illegal or even dangerous. SDE * On 4-Mar-2005 at 9:15AM PST, Stephen Woodbridge said: > That would be Dijkstra's algorithm, see: > > http://ciips.ee.uwa.edu.au/~morris/Year2/PLDS210/dijkstra.html > > There are lots of examples of code on the net for this. I have > implemented a prototype, but it is not opensource. You can play with the > demo I have at > > http://imaptools.com/demos1/?tab=2 > > -Steve > > Solomon wrote: > >hi guys > > thank u for ur support. now does anyone has a clue on how to implement > >pathfinding. the user specifies source and destination, and code finds the > >shortest distance between source and destination (like what is implemeted > >in yahoo maps) and then the path is highlighted. am using mapserver > >4.4.2,phpmapscript,oracle 9i spatial all running on linux. any help in the > >right direction will be appreciated. > > From schuyler at NOCAT.NET Fri Mar 4 09:36:22 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Fri, 4 Mar 2005 09:36:22 -0800 Subject: All Tiger data for download? In-Reply-To: <16264e07050304091866fed81@mail.gmail.com> Message-ID: * On 4-Mar-2005 at 9:17AM PST, Camden Daily said: > As far as equipment that I'll need for this, do you know how much disk > space the postgres database of all of the tiger data is going to take, > or how much room the final shapefiles will consume? I just need to > gauge what type of hardware I'll need to do this process. Expect the uncompressed database to take up 40 or so gigabytes. > Also, when ogr2ogr extracts the info from postgres, is it easy to > place each layer/state/county in a different directory for easier use > with tileindexing? If you want to do that, I would probably write a meta-script that runs through the TIGER/Line files and discards/rebuilds the database after each county. If you actually want the PostGIS database but still want to extract Shapefiles, you can build county polygons from the CompleteChain rows with the side1 column set, and then do some fancy polygon queries to extract data by county, I expect. SDE From pelankes at GMAIL.COM Fri Mar 4 09:50:31 2005 From: pelankes at GMAIL.COM (Poopalasingham Elankeswaran) Date: Fri, 4 Mar 2005 11:50:31 -0600 Subject: Open Source Geocoding Engine Message-ID: Hi there, I am doing research on Address gecoding with Mapserver and PostgreSQL/PostGIS. Does anyone have any idea in this area? It is not like Goole Map or Mapquest. This has to be specifically for Southern Ontario, Canada. I need to search list of addresses and displaying them together on a Map or save all the corresponding points to a shape file. Is there any Open Source Geocoding Engine? Thanks, P.Elankes Computer System Engineering Carleton University Ottawa,Canada From woodbri at SWOODBRIDGE.COM Fri Mar 4 10:15:22 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 4 Mar 2005 13:15:22 -0500 Subject: finding shortest path between two points In-Reply-To: <20050304173634.76806.qmail@web53603.mail.yahoo.com> Message-ID: Solomon, Dijkstra's algorithm works with nodes and arcs, arcs are connections between nodes and each arc has a cost associated with traversing it. The cost is can be anything you want it to be or a combined cost. For example, the distance is the cost if you are interested in "shortest distance", time = distance / avg. speed can be the cost if you want to compute shortest time. On a Toll road you can equate $/mile to a fake time or distance penalty to avoid or take into account tolls, etc. So you will need to first get the Dijkstra's code working with just test data and then you will need to populated the data structure out of your database before each run. Since the network does not change between runs, you might be able to extract the whole network into a temporary structure and then just extract the costs before each run because this is what is changing. The link below has pseudo code and you can search for actual C/C++ implementations on the web. -Steve thuo solomon wrote: > thanks a lot for your guidance. I had this idea about Dijkstra's but i > didn't know where to start. I am coding campus project where i have to > implement some pathfinding. now i was wondering whether i can get some > more directions from u. the data is in the database, the weights of the > different road sections keeps on changing as traffic conditions changes. > since u've arleady implemented this, can get some pseudo code for this. > i'll appreciate very much > regards solomon > > */Stephen Woodbridge /* wrote: > > That would be Dijkstra's algorithm, see: > > http://ciips.ee.uwa.edu.au/~morris/Year2/PLDS210/dijkstra.html > > There are lots of examples of code on the net for this. I have > implemented a prototype, but it is not opensource. You can play with > the > demo I have at > > http://imaptools.com/demos1/?tab=2 > > -Steve > > Solomon wrote: > > hi guys > > thank u for ur support. now does anyone has a clue on how to > implement > > pathfinding. the user specifies source and destination, and code > finds the > > shortest distance between source and destination (like what is > implemeted > > in yahoo maps) and then the path is highlighted. am using mapserver > > 4.4.2,phpmapscript,oracle 9i spatial all running on linux. any > help in the > > right direction will be appreciated. > > > > > > *"Dr solomon"* > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From woodbri at SWOODBRIDGE.COM Fri Mar 4 10:23:03 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 4 Mar 2005 13:23:03 -0500 Subject: Open Source Geocoding Engine In-Reply-To: Message-ID: Poopalasingham Elankeswaran wrote: > Hi there, > > I am doing research on Address gecoding with Mapserver and > PostgreSQL/PostGIS. Does anyone have any idea in this area? It is not like > Goole Map or Mapquest. This has to be specifically for Southern Ontario, > Canada. I need to search list of addresses and displaying them together on a > Map or save all the corresponding points to a shape file. > > Is there any Open Source Geocoding Engine? Not that I am aware of if you mean a generic one that you might apply to your requirements. There are Tiger geocoders around, but they are specific to Tiger data and therefore the US. You will need street data the covers your area of interest that has street address ranges. You can then load that into a DB and do SQL queries on street name where the house number is between the ranges on the street segments, then interpolate along the street shape vectors to get the lat/lon of the address. It will help to improve you searching if you standardize road names and abbreviation before you load the data into the database and when you get data to geocode so they are more likely to match. -Steve W. From candrews at DIGITALGLOBE.COM Fri Mar 4 10:23:59 2005 From: candrews at DIGITALGLOBE.COM (Chris Andrews) Date: Fri, 4 Mar 2005 11:23:59 -0700 Subject: Open Source Geocoding Engine Message-ID: There is this: http://dan.egnor.name/google.html And: http://www.geocoder.us/ In general, it's not that difficult to build an address geocoder, but the data acquisition/purchase is a different story. For example, Tiger data published by the US Census Bureau is usually used for demos, but not for production systems. C -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Poopalasingham Elankeswaran Sent: Friday, March 04, 2005 10:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Open Source Geocoding Engine Hi there, I am doing research on Address gecoding with Mapserver and PostgreSQL/PostGIS. Does anyone have any idea in this area? It is not like Goole Map or Mapquest. This has to be specifically for Southern Ontario, Canada. I need to search list of addresses and displaying them together on a Map or save all the corresponding points to a shape file. Is there any Open Source Geocoding Engine? Thanks, P.Elankes Computer System Engineering Carleton University Ottawa,Canada From osgis.lists at GMAIL.COM Fri Mar 4 11:24:33 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 4 Mar 2005 13:24:33 -0600 Subject: Open Source Geocoding Engine In-Reply-To: Message-ID: PostgreSQL/PostGIS combined with PL/PGSQL can create a very good localized geocoder. I have created a geocoder using PostgreSQL that is very specific to a particular local streets dataset without much difficulty. The previously mentioned OS geocoders will not do anything for Southern Ontario out of the box since they are specific to the US Census Tiger Data. The first thing that you will need regardless of how you are planning on creating your geocoder is good address matchable street data. This streets data must have separated fields for the different component address parts as well as from and to address ranges for each street segment (often a group of fields l_f_add,l_t_add,r_f_add,r_t_add). If you do not have address matchable street data, you are dead in the water regardless of whether you have geocoding software. I do know that Refractions has been working on some geocoding pl/pgsql as well. A rough outline of a plpgsql geocoder follows (assuming you can split the address into the appropriate parts): create a type to hold the results of your geocode query -- this should include all fields that you'll want in your result and a field to hold a rank. create a function that returns your geocode result type: set up a loop with the pieces of the address that you want to force an exact match -- for i in select * from roads where streetname=inputstreetname and inputstreetnumber between minimum_address_number and maximum address number LOOP if i.prefix_direction=inputprefixdirection then rank=rank+1; end if; if i.street_type=inputstreettype then rank=rank+1;end if; ... result.prefix_direction:=i.prefix_direction; result.street_type:=i.street_type; ... percent:=(street_number-i.minimum_address)/(i.maximum_address-i.minimum_address); result.geometry:=line_interpolate_point(geometryn(i.geometry,1),percent); result.rank=rank; return next result; end LOOP; The to get your result, you could use a query like: select * from geocode_function(inputstreetnumber,inputprefixdirection,...) order by rank limit 1; On Fri, 4 Mar 2005 11:50:31 -0600, Poopalasingham Elankeswaran wrote: > Hi there, > > I am doing research on Address gecoding with Mapserver and > PostgreSQL/PostGIS. Does anyone have any idea in this area? It is not like > Goole Map or Mapquest. This has to be specifically for Southern Ontario, > Canada. I need to search list of addresses and displaying them together on a > Map or save all the corresponding points to a shape file. > > Is there any Open Source Geocoding Engine? > > Thanks, > > P.Elankes > Computer System Engineering > Carleton University > Ottawa,Canada > From fx.gamoy at MAPXPLORE.COM Fri Mar 4 12:28:11 2005 From: fx.gamoy at MAPXPLORE.COM (fx gamoy) Date: Fri, 4 Mar 2005 21:28:11 +0100 Subject: using php_proj to convert data Message-ID: Hello everybody, i have installed proj4 and i use it to generate maps using on the fly projection (form epsg=4326 to 27582) and it works fine!! I have also installed php_proj and i would like to convert some coordinates from epsg=4326 to epsg=27582 using pj_transform?? what is the way? any help will be appreciated thanks fx http://www.geomatika.fr/ From bartvde at XS4ALL.NL Fri Mar 4 12:56:05 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 4 Mar 2005 21:56:05 +0100 Subject: using php_proj to convert data In-Reply-To: <200503042128.11544.fx.gamoy@mapxplore.com> Message-ID: Hi, there are some docs inside of the php_proj.c file. I have attached it for you. * 4) pj_transform : pj_transform(PJ pjsrc, PJ pjdst, double x, double y) * transforms coordinates from source projection to * destination projection. * * Example : $projarray[0] = "proj=lcc"; * $projarray[1] = "ellps=GRS80"; * $projarray[2] = "lat_0=49"; * $projarray[3] = "lon_0=-95"; * $projarray[4] = "lat_1=49"; * $projarray[5] = "lat_2=77"; * $projarray[6] = ""; * * $pjlcc = pj_init($projarray); * $projarray2[0] = "proj=latlong"; * $pjlat = pj_init($projarray2); * * $ingeox = 1537490.335842; * $ingeoy = -181633.471555; * * $ret = pj_transform($pjlcc, $pjlat, $ingeox, $ingeoy); Best regards, Bart On Fri, 4 Mar 2005 21:28:11 +0100, fx gamoy wrote: > Hello everybody, > > i have installed proj4 and i use it to generate maps using on the fly > projection (form epsg=4326 to 27582) and it works fine!! > > I have also installed php_proj and i would like to convert some > coordinates > from epsg=4326 to epsg=27582 using pj_transform?? > > what is the way? > any help will be appreciated > > thanks > fx > http://www.geomatika.fr/ > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ -------------- next part -------------- A non-text attachment was scrubbed... Name: php_proj.c Type: application/octet-stream Size: 25284 bytes Desc: not available URL: From ken at SANDNARROWS.COM Fri Mar 4 13:42:33 2005 From: ken at SANDNARROWS.COM (Ken Sanderson) Date: Fri, 4 Mar 2005 15:42:33 -0600 Subject: using labelmaxscale with phpmapscript Message-ID: Hello all. Can someone point me to the syntax for using labelmaxscale with phpmapscript. I am using: $poLayer->set("labelmaxscale",30000); Which is not returning an error, but it is also not limited the labels to that scale or under. Any hints appreciated. Thanks, Ken From osgis.lists at GMAIL.COM Fri Mar 4 14:08:09 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 4 Mar 2005 16:08:09 -0600 Subject: Open Source Geocoding Engine In-Reply-To: <6b9df40605030413114b6bc2a3@mail.gmail.com> Message-ID: Elankes, In order to keep this information on the list so that others having your same problem can searchthe archives and find answers without reanswering, try to remember to reply to the whole list rather than to me in particular. My advice to you, if you don't want to go crazy, is to keep your thoughts of a geocoder very separate from what you are doing with the Mapserver software. Using PostgreSQL/PostGIS along with perl or php or cold fusion or whatever you can create a standalone geocoder which can then be used to plug into Mapserver. Perhaps, I can use this as an opportunity to create a brief tutorial on creating a geocoder. The first things that you will want to do if you want to go about this with PotgreSQL/PostGIS are to become familiar with the very basics of PL/PGSQL and creating data types in PostgreSQL. Then you will also want a scripting language to create web access to you database functions -- I use PHP, but Perl, JSP, CF or anything else that can connect to PostgreSQL would do fine. The "heavy lifting" will all be done in PL/PGSQL. In the meantime, I can try to put together a tutorial together over the next week along with some basic scripts that you could modify to work with your dataset. It may even help me clean up my code which is rather ugly right now. David On Fri, 4 Mar 2005 16:11:47 -0500, Poopalasingham Elankeswaran wrote: > Hi David Bitner, > > Thank you very much for this information. I am a co-op student working > on this project. I started working on this project since January 1st > and I am totally new to GIS. My supervisor has DMTI street network > data. The from_left, to_left, from_right, and to_right were mixed up > at the beginning. We rearranged those columns, so now all even numbers > are in left side and odd numbers are in the right side. As you > mention, this data would be enough for this specific geocoding. > > I don't have much experience with PL/PGSQL. I am going to follow your > pseudo code. > > It is very hard to work with Mapserver since there are lot of stuff > involved with this and we don't have a good documentation for this > very powerful software. > > Thank you again. > > Elankes > > > On Fri, 4 Mar 2005 13:24:33 -0600, David Bitner wrote: > > PostgreSQL/PostGIS combined with PL/PGSQL can create a very good > > localized geocoder. I have created a geocoder using PostgreSQL that > > is very specific to a particular local streets dataset without much > > difficulty. > > > > The previously mentioned OS geocoders will not do anything for > > Southern Ontario out of the box since they are specific to the US > > Census Tiger Data. > > > > The first thing that you will need regardless of how you are planning > > on creating your geocoder is good address matchable street data. This > > streets data must have separated fields for the different component > > address parts as well as from and to address ranges for each street > > segment (often a group of fields l_f_add,l_t_add,r_f_add,r_t_add). > > > > If you do not have address matchable street data, you are dead in the > > water regardless of whether you have geocoding software. > > > > I do know that Refractions has been working on some geocoding pl/pgsql as well. > > > > A rough outline of a plpgsql geocoder follows (assuming you can split > > the address into the appropriate parts): > > > > create a type to hold the results of your geocode query -- this should > > include all fields that you'll want in your result and a field to hold > > a rank. > > > > create a function that returns your geocode result type: > > set up a loop with the pieces of the address that you want to force an > > exact match -- > > > > for i in select * from roads where streetname=inputstreetname and > > inputstreetnumber between minimum_address_number and maximum address > > number LOOP > > if i.prefix_direction=inputprefixdirection then rank=rank+1; end if; > > if i.street_type=inputstreettype then rank=rank+1;end if; > > ... > > result.prefix_direction:=i.prefix_direction; > > result.street_type:=i.street_type; > > ... > > percent:=(street_number-i.minimum_address)/(i.maximum_address-i.minimum_address); > > result.geometry:=line_interpolate_point(geometryn(i.geometry,1),percent); > > result.rank=rank; > > return next result; > > end LOOP; > > > > The to get your result, you could use a query like: > > select * from geocode_function(inputstreetnumber,inputprefixdirection,...) > > order by rank limit 1; > > > > > > On Fri, 4 Mar 2005 11:50:31 -0600, Poopalasingham Elankeswaran > > wrote: > > > Hi there, > > > > > > I am doing research on Address gecoding with Mapserver and > > > PostgreSQL/PostGIS. Does anyone have any idea in this area? It is not like > > > Goole Map or Mapquest. This has to be specifically for Southern Ontario, > > > Canada. I need to search list of addresses and displaying them together on a > > > Map or save all the corresponding points to a shape file. > > > > > > Is there any Open Source Geocoding Engine? > > > > > > Thanks, > > > > > > P.Elankes > > > Computer System Engineering > > > Carleton University > > > Ottawa,Canada > > > > > > > -- > P.Elankes > From gireddy at GMAIL.COM Fri Mar 4 14:34:43 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Fri, 4 Mar 2005 16:34:43 -0600 Subject: php-mapscript/postgis with MDA Message-ID: Hi all, I am doing a graduate level course in advanced software engineering where we deal with Model Driven Architecture, Aspect Oriencted Programming etc. Here my area of interest is MDA. MDA is useful to generate a programming code from a UML model. That means an MDA tool can generate code from model/model from code and synchronize each other ( IBM Rational XDE, Arc Styler etc). Basically MDA contains Plotform Independent Model (PIM) and Plotform Specific Model (PSM), Once we have the PIM we will take a copy of it and this can be useful to generate a PSM for any plotform( that means this is the model that to be documented) and then genrate PSM which inturn generated the final code... please see http://www.omg.org/mda/ Here what i see is i didn't see any work on this area esp. Spatial databases and PHP. Here my idea is that if we could be able to generate .map file from a model(i donno if it is possible but our map file syntax is just like XML synatax, so it must work) with this we must be able to connect to postgis and generate automatic code template for php, like if we specify LEGEND in our model it must generate map metadata and code to display it in php (create final html with a table and two colimns in it and display the map on the left side and display the LEGEND on the right corner. I know it is extremely to deal with this. But there are many many opensource MDA tools, we can use them and add a plug-in (???) or enhance the tool. can anybody has any idea about any tool(if already exists) comments&questions. Thank you, shashi. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From a_naz at ECE.CONCORDIA.CA Fri Mar 4 15:38:57 2005 From: a_naz at ECE.CONCORDIA.CA (Afifa Naz) Date: Fri, 4 Mar 2005 18:38:57 -0500 Subject: Map file in browse mode and Content-type: text/html msReturnPage(): error Message-ID: Hi: when I try to display my map in browse mode , I get this error Content-type: text/html msReturnPage(): Unable to access file. demo.html what is the cause of this? My demo.html is in htm l folder, this is the code in .map file WEB TEMPLATE "demo.html" IMAGEPATH "html/tmp/" IMAGEURL "/tmp/" END I tried to define my IMAGEPATH as absolute that is /var/www/html/tmp but no difference. I have also tried IMAGEPATH as tmp, but i still get the same error. This is my map in map mode : http://132.205.108.60/cgi-bin/mapserv?map=montreal.map&mode=map Thanks Afifa From yecarrillo at YAHOO.COM Fri Mar 4 15:47:49 2005 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Fri, 4 Mar 2005 17:47:49 -0600 Subject: Display Tfields with Php/MapScript Message-ID: I'm trying to show queries with joined fields froM DBF files. However, record values from this fields are not shown. LAYER #Municipio NAME 'Municipio' METADATA gix_layername "Municipio" gix_layerfieldnames "ID|CDANE|PROVINCIA" gix_layerfieldalias "Id|Cdane|Provincia" END #METADATA PROJECTION "init=epsg:4326" END #PROJECTION JOIN NAME 'munici' TABLE 'tablas/municipios.dbf' FROM CDANE TO CDANE TYPE one-to-one TEMPLATE "join.html" END ... END Any hint? ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From mjuvrud at AKEVA.COM Fri Mar 4 23:44:11 2005 From: mjuvrud at AKEVA.COM (Mike Juvrud) Date: Sat, 5 Mar 2005 01:44:11 -0600 Subject: finding shortest path between two points In-Reply-To: Message-ID: Deijkstra is fine for a relatively limited number of arcs. However, once you start solving a graph with more than a couple thousand arcs you can hit a serious wall and solutions can take minutes...especially if you are attempting to span the breadth of the graph. You may want to look into the A* (A star) algorithm for more efficient solutions on large graphs. I wrote an implementation of the deijkstra algorithm in Perl for use in MapServer. Unfortunately I can't provide the code as it may become part of a larger project, but I can help answer questions. Here are some links I found useful for the A star algorithm: http://theory.stanford.edu/~amitp/GameProgramming/ http://www.avglab.com/andrew/soft.html http://jung.sourceforge.net/ http://www.policyalmanac.org/games/aStarTutorial.htm http://www.codeproject.com/csharp/graphs_astar.asp?df=100&forumid=15953& exp=0&select=537200 http://palantir.swarthmore.edu/maxwell/classes/e28/S00/reports/groom-joh nson-nelson-olshfski-lab2/ It's been a good 6-months since I worked on these algorithms, but I'll try to answer your questions about either. ******************* Mike Juvrud GIS Programmer Glenwood, MN USA 320.634.4410 www.mudlabs.com mike at mudlabs.com ******************* ------------------------------ Date: Fri, 4 Mar 2005 11:06:10 -0600 From: Solomon Subject: finding shortest path between two points hi guys thank u for ur support. now does anyone has a clue on how to implement pathfinding. the user specifies source and destination, and code finds the shortest distance between source and destination (like what is implemeted in yahoo maps) and then the path is highlighted. am using mapserver 4.4.2,phpmapscript,oracle 9i spatial all running on linux. any help in the right direction will be appreciated. ------------------------------ -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.2 - Release Date: 3/4/2005 From mjuvrud at AKEVA.COM Sat Mar 5 00:08:58 2005 From: mjuvrud at AKEVA.COM (Mike Juvrud) Date: Sat, 5 Mar 2005 02:08:58 -0600 Subject: finding shortest path between two points Message-ID: Here is an additional link with A* code: HYPERLINK "http://www.sephiroth.it/phpwiki/index.php/PathFinder2"http://www.sephir oth.it/phpwiki/index.php/PathFinder2 I should also note that A* has to be tweaked a little bit to get it to work with graphs, instead of plain grids. But the concept is the same. ******************* Mike Juvrud GIS Programmer Glenwood, MN USA 320.634.4410 HYPERLINK "http://www.mudlabs.com/"www.mudlabs.com HYPERLINK "mailto:mike at mudlabs.com"mike at mudlabs.com ******************* -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.2 - Release Date: 3/4/2005 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fly2moon2 at GMAIL.COM Sat Mar 5 00:49:52 2005 From: fly2moon2 at GMAIL.COM (Jack Ling) Date: Sat, 5 Mar 2005 16:49:52 +0800 Subject: Guides to newbie please. Message-ID: Hi, I'm new to Map Server. And in fact not familiar with Geographical systems. But I need to explore because of job needs. Any one can recommend me some tutorials for first-timers? From map server's web site, there are some demo samples and some references. But it seems there is no one-shot/step-by-step guide on how to setup/build Map server application? To the minimum, which picture format I can use? I have some drawings in Autocad format. Can I convert them (& to what?) to something readable and meaningful for MapServer. I've co-ordinates information of buildings in separate text/excel files. best regards, Jack From stigmata_blackangel at YAHOO.COM Sat Mar 5 07:58:59 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Sat, 5 Mar 2005 07:58:59 -0800 Subject: Guides to newbie please. In-Reply-To: Message-ID: Hi, Jack. Might I recommend HostGIS Linux? It's a Linux distro that includes MapServer and the other stuff (PostGIS, MapScript, etc) already set up. It includes some sample apps to get you started, too. If you're interested, it's at http://www.hostgis.com __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From jmckenna at DMSOLUTIONS.CA Sat Mar 5 09:52:29 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Sat, 5 Mar 2005 12:52:29 -0500 Subject: Guides to newbie please. In-Reply-To: Message-ID: > Any one can recommend me some tutorials for first-timers? check the proceedings from the last MapServer conference (http://www.omsug.ca/osgis2004/proceedings.html). You can download some excellent intro workshops. jeff -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From fx.gamoy at MAPXPLORE.COM Sat Mar 5 11:26:40 2005 From: fx.gamoy at MAPXPLORE.COM (fx gamoy) Date: Sat, 5 Mar 2005 20:26:40 +0100 Subject: using php_proj to convert data In-Reply-To: Message-ID: Hello bart, thanks a lot afters several testing, it works fine!! best regards fx Le Vendredi 4 Mars 2005 21:56, vous avez ?crit : > Hi, > > there are some docs inside of the php_proj.c file. I have attached it for > you. > > * 4) pj_transform : pj_transform(PJ pjsrc, PJ pjdst, double x, double y) > * transforms coordinates from source projection to > * destination projection. > * > * Example : $projarray[0] = "proj=lcc"; > * $projarray[1] = "ellps=GRS80"; > * $projarray[2] = "lat_0=49"; > * $projarray[3] = "lon_0=-95"; > * $projarray[4] = "lat_1=49"; > * $projarray[5] = "lat_2=77"; > * $projarray[6] = ""; > * > * $pjlcc = pj_init($projarray); > * $projarray2[0] = "proj=latlong"; > * $pjlat = pj_init($projarray2); > * > * $ingeox = 1537490.335842; > * $ingeoy = -181633.471555; > * > * $ret = pj_transform($pjlcc, $pjlat, $ingeox, $ingeoy); > > Best regards, > Bart > > On Fri, 4 Mar 2005 21:28:11 +0100, fx gamoy wrote: > > Hello everybody, > > > > i have installed proj4 and i use it to generate maps using on the fly > > projection (form epsg=4326 to 27582) and it works fine!! > > > > I have also installed php_proj and i would like to convert some > > coordinates > > from epsg=4326 to epsg=27582 using pj_transform?? > > > > what is the way? > > any help will be appreciated > > > > thanks > > fx > > http://www.geomatika.fr/ From fly2moon2 at GMAIL.COM Sat Mar 5 23:25:51 2005 From: fly2moon2 at GMAIL.COM (Jack Ling) Date: Sun, 6 Mar 2005 15:25:51 +0800 Subject: Help installing Windows binaries Message-ID: Hi All, I got the windows binaries from: http://mapserver.gis.umn.edu/win32binaries.html and installed on My Windows XP SP1 PC. I followed the README installation procedures. I've tried 1st using Apache server using port 81 for testing: http://localhost:81/cgi-bin/mapserv.exe -> it has internal server error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. [error message end] -> in its error log, the message appears: Premature end of script headers: mapserv.exe [error message end] Then, i tried on IIS using port 80: http://localhost/cgi-bin/mapserv.exe -> it has CGI error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: [error message end] I don't know what's the problem? I've no problem using my configured Webservers to access other testing pages. Any help? best regards, Jack Ling From bartvde at XS4ALL.NL Sun Mar 6 02:03:51 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 6 Mar 2005 11:03:51 +0100 Subject: Help installing Windows binaries In-Reply-To: Message-ID: Hi Jack, that usually means one of the dll's can't be found. Where did you put your dll's for mapserver? Can you do mapserv.exe -v in a command prompt? Or use a tool like Dependency Walker to find out what's missing. If you don't have access to the server to do that, try the maptools.org binaries at: http://maptools.org/php_mapscript/index.phtml?page=downloads.html Best regards, Bart On Sun, 6 Mar 2005 15:25:51 +0800, Jack Ling wrote: > Hi All, > > > I got the windows binaries from: > > http://mapserver.gis.umn.edu/win32binaries.html > > and installed on My Windows XP SP1 PC. > > I followed the README installation procedures. I've tried 1st using > Apache server using port 81 for testing: > > > http://localhost:81/cgi-bin/mapserv.exe > > -> it has internal server error: > > Internal Server Error > > The server encountered an internal error or misconfiguration and was > unable to complete your request. > [error message end] > > -> in its error log, the message appears: > Premature end of script headers: mapserv.exe > [error message end] > > Then, i tried on IIS using port 80: > > http://localhost/cgi-bin/mapserv.exe > > -> it has CGI error: > CGI Error > The specified CGI application misbehaved by not returning a complete > set of HTTP headers. The headers it did return are: > > [error message end] > > > I don't know what's the problem? I've no problem using my configured > Webservers to access other testing pages. > > Any help? > > best regards, > Jack Ling > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From fly2moon2 at GMAIL.COM Sun Mar 6 02:25:56 2005 From: fly2moon2 at GMAIL.COM (Jack Ling) Date: Sun, 6 Mar 2005 18:25:56 +0800 Subject: Help installing Windows binaries In-Reply-To: Message-ID: Hi Bart, Thanks for your insights. Finally found that 2 dll files are missing: msvcr70.dll & msvcr71.dll. I've to download it separately from Internet and put them to c:\windows\system32 then I see the expected msg: "No query information to decode. QUERY_STRING is set, but empty." best regards, Jack Ling On Sun, 06 Mar 2005 11:03:51 +0100, Bart van den Eijnden wrote: > Hi Jack, > > that usually means one of the dll's can't be found. Where did you put your > dll's for mapserver? > > Can you do mapserv.exe -v in a command prompt? Or use a tool like > Dependency Walker to find out what's missing. > > If you don't have access to the server to do that, try the maptools.org > binaries at: > > http://maptools.org/php_mapscript/index.phtml?page=downloads.html > > Best regards, > Bart > > On Sun, 6 Mar 2005 15:25:51 +0800, Jack Ling wrote: > > > Hi All, > > > > > > I got the windows binaries from: > > > > http://mapserver.gis.umn.edu/win32binaries.html > > > > and installed on My Windows XP SP1 PC. > > > > I followed the README installation procedures. I've tried 1st using > > Apache server using port 81 for testing: > > > > > > http://localhost:81/cgi-bin/mapserv.exe > > > > -> it has internal server error: > > > > Internal Server Error > > > > The server encountered an internal error or misconfiguration and was > > unable to complete your request. > > [error message end] > > > > -> in its error log, the message appears: > > Premature end of script headers: mapserv.exe > > [error message end] > > > > Then, i tried on IIS using port 80: > > > > http://localhost/cgi-bin/mapserv.exe > > > > -> it has CGI error: > > CGI Error > > The specified CGI application misbehaved by not returning a complete > > set of HTTP headers. The headers it did return are: > > > > [error message end] > > > > > > I don't know what's the problem? I've no problem using my configured > > Webservers to access other testing pages. > > > > Any help? > > > > best regards, > > Jack Ling > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > From holgerzebner at GMX.DE Sun Mar 6 12:35:32 2005 From: holgerzebner at GMX.DE (Holger Zebner) Date: Sun, 6 Mar 2005 21:35:32 +0100 Subject: New project with mapserver for content management integration Message-ID: Hi, I just want to inform you that there's been a new project launched last week. It aims to integrate UMN Mapserver via PHP/Mapscript into the simple and easy Mambo CMS. Mambo is a easy-to-use content management system based on PHP and MySQL. It is customizable and has already many 3rd-party add-ons for many tasks. Now, the new project aims to integrate mapserver as a component into the system. Through this you would be able to set up a web GIS service in less than two hourse (assuming that you have mapserver working). There are still more co-developers needed. So if you have any knowlegde in PHP/Mapscript, MySQL and - of course - mapserver, feel free to join the project. Any hand is welcome. Some web links: Mambo Content Management Homepage http://www.mamboserver.com/ Mambo demo: http://www.opensourcecms.com/index.php?option=content&task=view&id=149 Project Homepage: http://mapserver.mamboforge.net/ Development Draft: http://mamboforge.net/docman/?group_id=1016 Greetings to all of you, Holger From martin426 at YAHOO.COM Sun Mar 6 12:59:00 2005 From: martin426 at YAHOO.COM (James) Date: Sun, 6 Mar 2005 14:59:00 -0600 Subject: Figure out the XY position on the resulting map of a point Message-ID: Hello, Using mapscript, is there a way to figure out what the resultant XY position of a point object will be on the output image? As an example, using a simple lat/lon projection, knowing the lat/lon position of the point, the dimensions of the image and the extent, simple algebra leads me to the XY position of said point. However, when using a different projection this is not possible as each pixel no longer represents the same amount of lat/lon distance. I can project my lat/lon point to the new projection, but is there any way to extract the XY coordinates? Obviously Mapserver must do this to actually place the point on the resulting image, but I haven't been able to figure out how to get at that information. Any suggestions are greatly appreciated. Thank you, James From pspencer at DMSOLUTIONS.CA Sun Mar 6 14:10:03 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Sun, 6 Mar 2005 17:10:03 -0500 Subject: Figure out the XY position on the resulting map of a point In-Reply-To: Message-ID: Hi James. Assuming your output projection is not lat/lon, you can create a point object and reproject it into the map's projection and do the same calculation. Here's some (untested) code that should work: $oProjIn = ms_newProjectionObj("init=epsg:4326"); $oProjOut = ms_newProjectionObj($oMap->getProjection()); $oPoint = ms_newPointObj(); $oPoint->setXY( $lon, $lat ); $oPoint->project( $oProjIn, $oProjOut ); $px = Geo2Pix( $oPoint->x, 0, $oMap->width $oMap->extent->minx, $oMap->extent->maxx, false ); $py = Geo2Pix( $oPoint->y, 0, $oMap->height $oMap->extent->miny, $oMap->extent->maxy, true ); /** * convert a geocoded position to pixel coord * * @param nGeoPos double Geocoded position * @param dfPixMin double minimum map pixel value * @param dfPixMax double maximum map pixel value * @param dfGeoMin double minimum map geocoded value * @param dfGeoMax double maximum map geocoded value * @param nInverseGeo integer optional flag to inverse , set to 1 for * Y pixel coordinates where UL > LR * @return double geocoded position */ function Geo2Pix ($nGeoPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, $nInverseGeo = "") { // calculate the geocoded & pixel width $dfWidthGeo = abs($dfGeoMax - $dfGeoMin); $dfWidthPix = abs($dfPixMax - $dfPixMin); // get ratio if ( $dfWidthGeo <= 0 ) { return 0; } $dfGeoToPix = $dfWidthPix / $dfWidthGeo; // get difference if (!$nInverseGeo) $dfDeltaGeo = $nGeoPos - $dfGeoMin; else $dfDeltaGeo = $dfGeoMax - $nGeoPos; // calculate $dfDeltaPix = $dfDeltaGeo * $dfGeoToPix; $dfPosPix = $dfPixMin + $dfDeltaPix; // return value return round ($dfPosPix); // end pixel_to_geo function } Cheers, Paul James wrote: > Hello, > > Using mapscript, is there a way to figure out what the resultant XY position > of a point object will be on the output image? As an example, using a > simple lat/lon projection, knowing the lat/lon position of the point, the > dimensions of the image and the extent, simple algebra leads me to the XY > position of said point. > > However, when using a different projection this is not possible as each > pixel no longer represents the same amount of lat/lon distance. I can > project my lat/lon point to the new projection, but is there any way to > extract the XY coordinates? > > Obviously Mapserver must do this to actually place the point on the > resulting image, but I haven't been able to figure out how to get at that > information. Any suggestions are greatly appreciated. > > Thank you, > > James > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From superbla3000 at GMX.NET Sun Mar 6 14:11:57 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Sun, 6 Mar 2005 23:11:57 +0100 Subject: does gdaladdo need tiled image Message-ID: hello, I want to add gdaladdo overviews to a latlong geotiff. But I get the error: ERROR 1: TIFFReadEncodedTile() failed Do I always have to tile the image first? best regards Joerg From saintsjd at YAHOO.COM Sun Mar 6 15:03:14 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Sun, 6 Mar 2005 15:03:14 -0800 Subject: Python mapscript legend In-Reply-To: <422B802D.70704@gmx.net> Message-ID: Starting to use python mapscript using the mapserver package from the Debian GIS package repository. All is well, except when trying to render a legen for my map. The legend always appears about 150 pixels wide with my label text cut off and covering the key image. My code is: myMap = mapObj(PATH_TO_MAP_FILE) myMap.legend.height = 1000 myMap.legend.width = 1000 img = myMap.drawLegend() img.save( img.imagepath + "legend.png" ) Any ideas? Thanks Jon From tjbartlett at GMAIL.COM Sun Mar 6 15:45:23 2005 From: tjbartlett at GMAIL.COM (Tom Bartlett) Date: Mon, 7 Mar 2005 09:45:23 +1000 Subject: WMS Access Control In-Reply-To: <29117a6105030615421633894@mail.gmail.com> Message-ID: Hi All, Is there any way to control access to a mapserver WMS thought clients such as ArcGIS or MapInfo? I don't need to restrict access to specific layers.... its more about confirm users with a username and password? Regards Tom From ed at TOPOZONE.COM Sun Mar 6 18:05:30 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 6 Mar 2005 21:05:30 -0500 Subject: WMS Access Control Message-ID: Tom - Not really, mainly because of the lack of authentication user interface support on the client side. You could, for example, configure your Web server to require Basic (username/password) authentication for access to the MapServer CGI. That's the easy part. The problem is that the client software needs an interface to let users type in that username and password, and there isn't really any support for that. With Basic authentication, the user could provide that information as part of the URL pointing to the server: http://username:password at www.yourdomain.com/cgi-bin/mapserv?...... That's fine (and will work), but at that point there's really nothing very special or secure about that username and password. They're just part of the plaintext URL string. You could also set up a Web server to create virtual directories for users, so each user would connect to: http://www.yourdomain.com/username/cgi-bin/mapserv?..... And you'd end up doing just the same thing, only without using "authentication" to do it. I am not aware of any support in popular GIS client applications for the more secure forms of HTTP authentication. That's the REAL problem. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tom Bartlett Sent: Sunday, March 06, 2005 6:45 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS Access Control Hi All, Is there any way to control access to a mapserver WMS thought clients such as ArcGIS or MapInfo? I don't need to restrict access to specific layers.... its more about confirm users with a username and password? Regards Tom From sgillies at FRII.COM Sun Mar 6 19:28:50 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Sun, 6 Mar 2005 20:28:50 -0700 Subject: Python mapscript legend In-Reply-To: Message-ID: On Mar 6, 2005, at 4:03 PM, Jon Saints wrote: > Starting to use python mapscript using the mapserver > package from the Debian GIS package repository. > > All is well, except when trying to render a legen for > my map. The legend always appears about 150 pixels > wide with my label text cut off and covering the key > image. > > My code is: > myMap = mapObj(PATH_TO_MAP_FILE) > myMap.legend.height = 1000 > myMap.legend.width = 1000 > img = myMap.drawLegend() > img.save( img.imagepath + "legend.png" ) > > Any ideas? > Thanks > Jon > > Hi Jon, I haven't used drawLegend() in a long time, but I did just now confirm that setting the map.legend.width has no effect on the dimensions of the output image. I don't know what's up. Since mapObj.drawLegend() is just a very thin facade over a function of libmap, this could be a deeper bug. For now, the way to go is to use the classObj.drawLegendIcon() documented at http://users.frii.com/sgillies/projects/mapscript/ mapscript.html#classobj to produce swatches for your classes and do the layout and text in HTML. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From kenlord at GMAIL.COM Sun Mar 6 20:32:24 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Sun, 6 Mar 2005 20:32:24 -0800 Subject: Help installing Windows binaries In-Reply-To: Message-ID: Hi Jack, There's been a few people in the last couple weeks, including myself that have had problems with the 4.4.1 windows binaries at the mapserver homepage that seems to be related to the manner in which it was compiled. The problem goes beyond the usual dll problems that are associated with the error message you received. If you still have problems making mapserver run, download 4.4.1 from: maptools.org/dl This version has a larger exe that is less dependant on external dll's and worked fine for myself and for the other people that had the issues. Use the mapserv.exe plus the dll's that are found within the various zip files within the main zip file you download from them. Have fun, Ken Lord Vancouver BC On Sun, 6 Mar 2005 18:25:56 +0800, Jack Ling wrote: > Hi Bart, > > Thanks for your insights. > > Finally found that 2 dll files are missing: msvcr70.dll & msvcr71.dll. > I've to download it separately from Internet and put them to > c:\windows\system32 then I see the expected msg: > > "No query information to decode. QUERY_STRING is set, but empty." > > best regards, > Jack Ling > > On Sun, 06 Mar 2005 11:03:51 +0100, Bart van den Eijnden > wrote: > > Hi Jack, > > > > that usually means one of the dll's can't be found. Where did you put your > > dll's for mapserver? > > > > Can you do mapserv.exe -v in a command prompt? Or use a tool like > > Dependency Walker to find out what's missing. > > > > If you don't have access to the server to do that, try the maptools.org > > binaries at: > > > > http://maptools.org/php_mapscript/index.phtml?page=downloads.html > > > > Best regards, > > Bart > > > > On Sun, 6 Mar 2005 15:25:51 +0800, Jack Ling wrote: > > > > > Hi All, > > > > > > > > > I got the windows binaries from: > > > > > > http://mapserver.gis.umn.edu/win32binaries.html > > > > > > and installed on My Windows XP SP1 PC. > > > > > > I followed the README installation procedures. I've tried 1st using > > > Apache server using port 81 for testing: > > > > > > > > > http://localhost:81/cgi-bin/mapserv.exe > > > > > > -> it has internal server error: > > > > > > Internal Server Error > > > > > > The server encountered an internal error or misconfiguration and was > > > unable to complete your request. > > > [error message end] > > > > > > -> in its error log, the message appears: > > > Premature end of script headers: mapserv.exe > > > [error message end] > > > > > > Then, i tried on IIS using port 80: > > > > > > http://localhost/cgi-bin/mapserv.exe > > > > > > -> it has CGI error: > > > CGI Error > > > The specified CGI application misbehaved by not returning a complete > > > set of HTTP headers. The headers it did return are: > > > > > > [error message end] > > > > > > > > > I don't know what's the problem? I've no problem using my configured > > > Webservers to access other testing pages. > > > > > > Any help? > > > > > > best regards, > > > Jack Ling > > > > > > > -- > > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > > From gunter.becker at CSOGIS.DE Sun Mar 6 23:57:30 2005 From: gunter.becker at CSOGIS.DE (Gunter Becker) Date: Mon, 7 Mar 2005 01:57:30 -0600 Subject: OGR and GetFeatureInfo with ODBC Message-ID: Hi, i have an ODBC Database with point information and using OGR to access it for my MapServer-Application. This works fine. Now I want to make a GetFeatureInfo-Request (WMS) on this Layer in MapServer. The question is how do I define my SQL so that I get a result for my GetFeatureInfo- Request. The only result I get is an empty GML-File. I've seen the solution for an OracleSpatial DBTable that must have a column named OGR_FID. But this doesn't seem to work for a database using ODBC. Is the GetFeatureInfo-Request on OGR via ODBC possible at all? If yes than please help me find the solution. Thanks Gunter From gosia.rainer at T-ONLINE.DE Mon Mar 7 05:12:37 2005 From: gosia.rainer at T-ONLINE.DE (Rainer Spittel) Date: Mon, 7 Mar 2005 07:12:37 -0600 Subject: OGR-join problem with DBF files Message-ID: Hi there, I try to join a shapefile and a second dbf file, which is in the same directory. The shapefile's name is 'badeseenbremen' and the external dbase file 'bade.dbf'. Both files have an id field (GewaessNr) which can be used to join on. When I add following part in my mapfile: LAYER [...] CONNECTIONTYPE OGR CONNECTION "ms_wasser/baden/badeseenbremen.shp" DATA "SELECT * FROM badeseenbremen LEFT JOIN ms_wasser/baden/bade ON badeseenbremen.GewaessNr = bade.GewaessNr" [...] I receive following error message: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'Baden'. in D:\ms4w\apps\wasser_2.0\ms_digitalmap_inc.php on line 755 Warning: [MapServer Error]: msOGRFileOpen(): ExecuteSQL(SELECT * FROM badeseenbremen LEFT JOIN ms_wasser/baden/bade ON badeseenbremen.GewaessNr = bade.GewaessNr) failed. SQL: Corrupt JOIN clause, expecting ON keyword. in D:\ms4w\apps\wasser_2.0\ms_digitalmap_inc.php on line 755 Fatal error: Call to a member function on a non-object in D:\ms4w\apps\wasser_2.0\ms_digitalmap_inc.php on line 757 I tried to test the join with the help of ogrinfo and receives following error: >ogrinfo.exe badeseenbremen.dbf -sql "SELECT * FROM badeseenbremen LEFT JOIN bade.dbf ON badeseenbremen.GewaessNr = bade.GewaessNr" INFO: Open of `badeseenbremen.dbf' using driver `ESRI Shapefile' successful. ERROR 1: SELECT from table bade.dbf failed, no such table/featureclass. I read the OGC-SQL part more then ones and even in the forum I found a lot of information about joining datasources. But I do not know why my ogr-tool does not find the dbf file. I need help... :-( Thanks Rainer From fwarmerdam at GMAIL.COM Mon Mar 7 05:29:08 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 7 Mar 2005 08:29:08 -0500 Subject: OGR-join problem with DBF files In-Reply-To: Message-ID: On Mon, 7 Mar 2005 07:12:37 -0600, Rainer Spittel wrote: > CONNECTIONTYPE OGR > CONNECTION "ms_wasser/baden/badeseenbremen.shp" > DATA "SELECT * FROM badeseenbremen LEFT JOIN ms_wasser/baden/bade ON > badeseenbremen.GewaessNr = bade.GewaessNr" > [...] ... > Warning: [MapServer Error]: msOGRFileOpen(): ExecuteSQL(SELECT * FROM > badeseenbremen LEFT JOIN ms_wasser/baden/bade ON badeseenbremen.GewaessNr = > bade.GewaessNr) failed. SQL: Corrupt JOIN clause, expecting ON keyword. in Rainer, In the above, you can't have slashes in the target table identifier. That is ms_wasser/baden/bade is not valid. Since the .dbf file (bade.dbf) is in the same directory as the shapefile, you could use "ms_wasser/baden/badeseenbremen" as your datasource name, and then just refer to tables (layers) badeseenbremen and bade by name. Something like: CONNECTIONTYPE OGR CONNECTION "ms_wasser/baden/badeseenbremen" DATA "SELECT * FROM badeseenbremen LEFT JOIN bade ON badeseenbremen.GewaessNr = bade.GewaessNr" > >ogrinfo.exe badeseenbremen.dbf -sql "SELECT * FROM > badeseenbremen LEFT JOIN bade.dbf ON badeseenbremen.GewaessNr = bade.GewaessNr" > INFO: Open of `badeseenbremen.dbf' > using driver `ESRI Shapefile' successful. > ERROR 1: SELECT from table bade.dbf failed, no such table/featureclass. Here again the problem is that you can't use bade.dbf as a table name. If you wanted to select badeseenbremen.dbf directly above as your datasource, you would need to quote the different datasource name of the joined table. This would be something like: ogrinfo badeseenbremen.dbf -sql "SELECT * FROM badeseenbremen LEFT JOIN 'bade.dbf'.bade ON badeseenbremen.GewaessNr = bade.GewaessNr" Be wary of quoting at the win32 command shell ... there might be problems. I hope this helps. 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 osgis.lists at GMAIL.COM Mon Mar 7 05:33:45 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Mon, 7 Mar 2005 07:33:45 -0600 Subject: Open Source Geocoding Engine In-Reply-To: <20050307125342.25984.qmail@web25210.mail.ukl.yahoo.com> Message-ID: Hannah, There is probably an easier way that this could be done in PHP Mapscript that perhaps someone else on the list could comment on. Basically, what you need to do is to be able to get an extent from the selected zipcode (minx,miny,maxx,maxy). Your query is simple because it is always an exact query. Using basic MYSQL without any spatial extension, you would want to pre-calculate the minx,miny,maxx, and maxy of each zipcode and populate fields with them in your mysql database. Then all you would do is use PHP to execute a query (select minx,miny,maxx,maxy from zipcodes where zip = $_REQUEST['zipcode']). You could then either take those results and use them for the extent in your mapserver request. David On Mon, 7 Mar 2005 12:53:42 +0000 (GMT), Hannah Brown wrote: > Hi > I wonder if you can help... > I am implementing a fault reporting system; > > A user has to enter a postcode following pressing submit the appropriate > region of the map will load, I am using PHP and MySQL to do this. I have > the maps and required postcodes. I am having trouble with the code needed > to find the area on the map once the postcode is submitted. > > Hannah* > > *User in the UK > > > David Bitner wrote: > PostgreSQL/PostGIS combined with PL/PGSQL can create a very good > localized geocoder. I have created a geocoder using PostgreSQL that > is very specific to a particular local streets dataset without much > difficulty. > > The previously mentioned OS geocoders will not do anything for > Southern Ontario out of the box since they are specific to the US > Census Tiger Data. > > The first thing that you will need regardless of how you are planning > on creating your geocoder is good address matchable street data. This > streets data must have separated fields for the different component > address parts as well as from and to address ranges for each street > segment (often a group of fields l_f_add,l_t_add,r_f_add,r_t_add). > > If you do not have address matchable street data, you are dead in the > water regardless of whether you have geocoding software. > > I do know that Refractions has been working on some geocoding pl/pgsql as > well. > > A rough outline of a plpgsql geocoder follows (assuming you can split > the address into the appropriate parts): > > create a type to hold the results of your geocode query -- this should > include all fields that you'll want in your result and a field to hold > a rank. > > create a function that returns your geocode result type: > set up a loop with the pieces of the address that you want to force an > exact match -- > > for i in select * from roads where streetname=inputstreetname and > inputstreetnumber between minimum_address_number and maximum address > number LOOP > if i.prefix_direction=inputprefixdirection then rank=rank+1; end if; > if i.street_type=inputstreettype then rank=rank+1;end if; > ... > result.prefix_direction:=i.prefix_direction; > result.street_type:=i.street_type; > ... > percent:=(street_number-i.minimum_address)/(i.maximum_address-i.minimum_address); > result.geometry:=line_interpolate_point(geometryn(i.geometry,1),percent); > result.rank=rank; > return next result; > end LOOP; > > > The to get your result, you could use a query like: > select * from geocode_function(inputstreetnumber,inputprefixdirection,...) > order by rank limit 1; > > > > > On Fri, 4 Mar 2005 11:50:31 -0600, Poopalasingham Elankeswaran > wrote: > > Hi there, > > > > I am doing research on Address gecoding with Mapserver and > > PostgreSQL/PostGIS. Does anyone have any idea in this area? It is not like > > Goole Map or Mapquest. This has to be specifically for Southern Ontario, > > Canada. I need to search list of addresses and displaying them together on > a > > Map or save all the corresponding points to a shape file. > > > > Is there any Open Source Geocoding Engine? > > > > Thanks, > > > > P.Elankes > > Computer System Engineering > > Carleton University > > Ottawa,Canada > > > > > Send instant messages to your online friends http://uk.messenger.yahoo.com From gosia.rainer at T-ONLINE.DE Mon Mar 7 06:07:35 2005 From: gosia.rainer at T-ONLINE.DE (Rainer Spittel) Date: Mon, 7 Mar 2005 08:07:35 -0600 Subject: OGR-join problem with DBF files Message-ID: Hi Frank, thanks for the fast reply. I called 'ogrinfo' as you have described before and it's working fine. I receive a joined output of both files, the shapefile and the dbf. But the mapserver part is still not running. I added the following lines: CONNECTIONTYPE OGR CONNECTION "ms_wasser/baden/badeseenbremen" DATA "SELECT * FROM badeseenbremen LEFT JOIN bade ON badeseenbremen.GewaessNr = bade.GewaessNr" and receive following error message: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'Baden'. in D:\ms4w\apps\wasser_2.0\ms_digitalmap_inc.php on line 755 Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection `ms_wasser/baden/badeseenbremen'. File not found or unsupported format. in D:\ms4w\apps\wasser_2.0\ms_digitalmap_inc.php on line 755 Fatal error: Call to a member function on a non-object in D:\ms4w\apps\wasser_2.0\ms_digitalmap_inc.php on line 757 When the CONNECTION tag does not link directly to a shape-file (ending with .shp), I get this message. I also tried to add the exact sql statement of the ogrinfo statement and it is not working. I am still not sure what I can do... Cheers Rainer From fwarmerdam at GMAIL.COM Mon Mar 7 06:36:32 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 7 Mar 2005 09:36:32 -0500 Subject: Fwd: OGR-join problem with DBF files In-Reply-To: <931f8ea905030706353b088a04@mail.gmail.com> Message-ID: Whoops ... I accidentily neglected for cc: this reply to the list. ---------- Forwarded message ---------- From: Frank Warmerdam Date: Mon, 7 Mar 2005 09:35:41 -0500 Subject: Re: OGR-join problem with DBF files To: Rainer Spittel On Mon, 7 Mar 2005 08:07:35 -0600, Rainer Spittel wrote: > Hi Frank, > > thanks for the fast reply. > > I called 'ogrinfo' as you have described before and it's working fine. I > receive a joined output of both files, the shapefile and the dbf. > > But the mapserver part is still not running. I added the following lines: > > CONNECTIONTYPE OGR > CONNECTION "ms_wasser/baden/badeseenbremen" > DATA "SELECT * FROM badeseenbremen LEFT JOIN bade ON > badeseenbremen.GewaessNr = bade.GewaessNr" > > and receive following error message: > > Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named > 'Baden'. in D:\ms4w\apps\wasser_2.0\ms_digitalmap_inc.php on line 755 > > Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR > connection `ms_wasser/baden/badeseenbremen'. File not found or unsupported > format. in D:\ms4w\apps\wasser_2.0\ms_digitalmap_inc.php on line 755 > > Fatal error: Call to a member function on a non-object in > D:\ms4w\apps\wasser_2.0\ms_digitalmap_inc.php on line 757 > > When the CONNECTION tag does not link directly to a shape-file (ending > with .shp), I get this message. Rainer, I would suggest using an absolute path to the directory with the .shp files instead of a relative path. The path processing logic in mapserver for SHAPEPATH, etc) may not work properly when referring to a directory as we do in this case. Also, make sure the directory does not contain any other files that might confuse OGR. Just the shapefile and dbf files. > I also tried to add the exact sql statement of the ogrinfo statement and > it is not working. > I am still not sure what I can do... Well, the path is wrong of course. 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 -- ---------------------------------------+-------------------------------------- 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 woodbri at SWOODBRIDGE.COM Mon Mar 7 06:45:18 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 7 Mar 2005 09:45:18 -0500 Subject: Open Source Geocoding Engine In-Reply-To: <71c3c6c505030705337d4a658c@mail.gmail.com> Message-ID: Hannah, You need to have the zipcode centroids. For the US, you can get them from the Census website. Build a table in SQL of ZIPCODE, LAT, LONG and load your zipcode centroids. The when the use enters the zipcode look it up and display the map. You can get an image from mapserver using a url like: http://yoursite.com/cgi-bin/mapserv?mode=map&layers=all&scale=500000&map=/path/to/mapfile.map&mapxy=456579.116+4029578.248&map_size=300+200 Adjust the parameters to suite your needs, or do something similar in mapscript. -Steve W. David Bitner wrote: > Hannah, > > There is probably an easier way that this could be done in PHP > Mapscript that perhaps someone else on the list could comment on. > > Basically, what you need to do is to be able to get an extent from the > selected zipcode (minx,miny,maxx,maxy). Your query is simple because > it is always an exact query. Using basic MYSQL without any spatial > extension, you would want to pre-calculate the minx,miny,maxx, and > maxy of each zipcode and populate fields with them in your mysql > database. Then all you would do is use PHP to execute a query (select > minx,miny,maxx,maxy from zipcodes where zip = $_REQUEST['zipcode']). > You could then either take those results and use them for the extent > in your mapserver request. > > David > On Mon, 7 Mar 2005 12:53:42 +0000 (GMT), Hannah Brown > wrote: > >>Hi >>I wonder if you can help... >>I am implementing a fault reporting system; >> >>A user has to enter a postcode following pressing submit the appropriate >>region of the map will load, I am using PHP and MySQL to do this. I have >>the maps and required postcodes. I am having trouble with the code needed >>to find the area on the map once the postcode is submitted. >> >>Hannah* >> >>*User in the UK >> >> >>David Bitner wrote: >>PostgreSQL/PostGIS combined with PL/PGSQL can create a very good >>localized geocoder. I have created a geocoder using PostgreSQL that >>is very specific to a particular local streets dataset without much >>difficulty. >> >>The previously mentioned OS geocoders will not do anything for >>Southern Ontario out of the box since they are specific to the US >>Census Tiger Data. >> >>The first thing that you will need regardless of how you are planning >>on creating your geocoder is good address matchable street data. This >>streets data must have separated fields for the different component >>address parts as well as from and to address ranges for each street >>segment (often a group of fields l_f_add,l_t_add,r_f_add,r_t_add). >> >>If you do not have address matchable street data, you are dead in the >>water regardless of whether you have geocoding software. >> >>I do know that Refractions has been working on some geocoding pl/pgsql as >>well. >> >>A rough outline of a plpgsql geocoder follows (assuming you can split >>the address into the appropriate parts): >> >>create a type to hold the results of your geocode query -- this should >>include all fields that you'll want in your result and a field to hold >>a rank. >> >>create a function that returns your geocode result type: >>set up a loop with the pieces of the address that you want to force an >>exact match -- >> >>for i in select * from roads where streetname=inputstreetname and >>inputstreetnumber between minimum_address_number and maximum address >>number LOOP >>if i.prefix_direction=inputprefixdirection then rank=rank+1; end if; >>if i.street_type=inputstreettype then rank=rank+1;end if; >>... >>result.prefix_direction:=i.prefix_direction; >>result.street_type:=i.street_type; >>... >>percent:=(street_number-i.minimum_address)/(i.maximum_address-i.minimum_address); >>result.geometry:=line_interpolate_point(geometryn(i.geometry,1),percent); >>result.rank=rank; >>return next result; >>end LOOP; >> >> >>The to get your result, you could use a query like: >>select * from geocode_function(inputstreetnumber,inputprefixdirection,...) >>order by rank limit 1; >> >> >> >> >>On Fri, 4 Mar 2005 11:50:31 -0600, Poopalasingham Elankeswaran >>wrote: >> >>>Hi there, >>> >>>I am doing research on Address gecoding with Mapserver and >>>PostgreSQL/PostGIS. Does anyone have any idea in this area? It is not like >>>Goole Map or Mapquest. This has to be specifically for Southern Ontario, >>>Canada. I need to search list of addresses and displaying them together on >> >>a >> >>>Map or save all the corresponding points to a shape file. >>> >>>Is there any Open Source Geocoding Engine? >>> >>>Thanks, >>> >>>P.Elankes >>>Computer System Engineering >>>Carleton University >>>Ottawa,Canada >>> >> >> >>Send instant messages to your online friends http://uk.messenger.yahoo.com > > From fwarmerdam at GMAIL.COM Mon Mar 7 07:33:43 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 7 Mar 2005 10:33:43 -0500 Subject: does gdaladdo need tiled image In-Reply-To: <422B802D.70704@gmx.net> Message-ID: On Sun, 6 Mar 2005 23:11:57 +0100, joerg pfeiffer wrote: > hello, > > I want to add gdaladdo overviews to a latlong geotiff. But I get the error: > ERROR 1: TIFFReadEncodedTile() failed > > Do I always have to tile the image first? Joerg, I am pretty sure it normally works fine on untiled images. There may be some specific issue with your file, or the build of GDAL and libtiff. If you provide me with the file (off list) I could investigate a bit. 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 geoffrey.rowland at NOAA.GOV Mon Mar 7 07:39:02 2005 From: geoffrey.rowland at NOAA.GOV (Geoff Rowland) Date: Mon, 7 Mar 2005 10:39:02 -0500 Subject: PHPMapScript : pixels to geo problem using dynamic symbols Message-ID: I am testing out creating dynamic symbols on a map using examples on the wiki. If I click on the center of the map, it works fine. However as I get to the outer regions of the map, the Y position is correct, but the X position is off. Any idea what is causing this? I'm sure it's obvious I am overlooking. the example I am testing out can be viewed here http://www.ranetproject.net/apps/maps/ms/africa_view2.php here is my map file NAME "Africa" SIZE 800 600 STATUS ON EXTENT -17.533 -46.970 55.541 37.340 UNITS METERS SHAPEPATH "data" WEB IMAGEPATH "f:\inetpub\ranet\apps\maps\ms\tmp\" IMAGEURL "tmp/" END SYMBOL NAME 'star' TYPE VECTOR FILLED TRUE POINTS 0 .375 .35 .375 .5 0 .65 .375 1 .375 .75 .625 .875 1 .5 .75 .125 1 .25 .625 END END LAYER NAME "INLINE" TYPE POINT STATUS ON CLASS NAME "0" STYLE COLOR 255 0 0 # red SYMBOL 'star' SIZE 16 END #style END #class END #layer LAYER NAME "Africa" TYPE POLYGON STATUS ON DATA "africa" CLASS STYLE COLOR 255 243 227 OUTLINECOLOR 200 200 200 SYMBOL 0 END END END END and here is my php code (just using example code) extent; //for saving writing $x_pct = ($click_x / $map->width); $y_pct = 1 - ($click_y / $map->height); $x_map = $e->minx + ( ($e->maxx - $e->minx) * $x_pct); $y_map = $e->miny + ( ($e->maxy - $e->miny) * $y_pct); return array($x_map, $y_map); } $map= ms_newMapObj('africa.map'); //Convert pixels to map units $map_pt = click2map($_GET['image_x'],$_GET['image_y'],$map->extent); //Create the point $pt = ms_newPointObj(); $pt-> setXY($map_pt[0],$map_pt[1]); //Draw the map and add the point $img = $map->draw(); $layer = $map->getLayerByName('INLINE'); $pt->draw($map, $layer, $img, 0 ,'yuhuu'); $url = $img->saveWebImage(); ?>


?>
-- Geoffrey Rowland Technical Officer Climate Information Project NOAA Research Office of Global Programs http://www.cip.noaa.gov http://www.ranetproject.net Contractor, RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com Phone: 301-427-2089x186 Fax : 301-427-2082 geoffrey.rowland at noaa.gov From boily at BSW.ORG Mon Mar 7 08:17:01 2005 From: boily at BSW.ORG (Roger Boily) Date: Mon, 7 Mar 2005 17:17:01 +0100 Subject: Reference map and Scalebar make windows crash Message-ID: Hi to all, I'm having difficulties to make mapserver 4.4.1 on windows to create reference map and scalebar. I have used mapserver for years on linux and i'm trying to move a demo on windows but with reference and scalebar , mapserver crashes continiusly. Anybody has an idea? Thank you ! Roger Boily Reference map is a gif. Here are .map configuration: REFERENCE SIZE 150 160 IMAGE "c:Programmi\Apache\Apache2\htdocs\ref_map.png" EXTENT 475.66 2404.5 5974.34 6239.61 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END SCALEBAR IMAGECOLOR 241 239 226 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS meters INTERVALS 10 STATUS ON END -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.2 - Release Date: 04/03/2005 From bpicinbono at WORLDONLINE.FR Mon Mar 7 08:36:27 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Mon, 7 Mar 2005 17:36:27 +0100 Subject: PHPMapScript : pixels to geo problem using dynamic symbols In-Reply-To: <422C7596.7040108@noaa.gov> Message-ID: hi, your mapfile : .... ? ? ? ? SIZE 800 600 ? ? ? ? STATUS ON ? ? ? ? EXTENT -17.533 -46.970 55.541 37.340 ? ? ? ? UNITS ..... does your x/y extent really match your image size ? seems not... ? From geoffrey.rowland at NOAA.GOV Mon Mar 7 08:41:43 2005 From: geoffrey.rowland at NOAA.GOV (Geoff Rowland) Date: Mon, 7 Mar 2005 11:41:43 -0500 Subject: PHPMapScript : pixels to geo problem using dynamic symbols In-Reply-To: <200503071736.27953.bpicinbono@worldonline.fr> Message-ID: ah, i guess that could be it. how to you match the image size to the extent? blaise wrote: >hi, >your mapfile : >.... > SIZE 800 600 > STATUS ON > > EXTENT -17.533 -46.970 55.541 37.340 > UNITS ..... > >does your x/y extent really match your image size ? >seems not... ? > > -- Geoffrey Rowland Technical Officer Climate Information Project NOAA Research Office of Global Programs http://www.cip.ogp.noaa.gov Contractor, RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com Phone: 301-427-2089x186 Fax : 301-427-2082 geoffrey.rowland at noaa.gov From ken at SANDNARROWS.COM Mon Mar 7 08:52:03 2005 From: ken at SANDNARROWS.COM (Ken Sanderson) Date: Mon, 7 Mar 2005 10:52:03 -0600 Subject: using labelmaxscale with phpmapscript Message-ID: Still cant get labelmaxscale or labelminscale to work and not sure why. I am using this with a dynamic layer I am adding with mapscript, could it be the reason its not working is because its using set("text","label text") to set a label instead of using a labelitem, etc to retrieve a label from a shape file? The label is using the label properties as far as font, color, position etc, so I assumed it would use labelmaxscale. Thanks, Ken From karl-umn at SC.COM Mon Mar 7 08:53:48 2005 From: karl-umn at SC.COM (Karl Lehenbauer) Date: Mon, 7 Mar 2005 10:53:48 -0600 Subject: Question about showing a location in mapserver by longitude/latitude Message-ID: Greetings mapserver users.... I've gotten Tiger 2004FE data for Texas imported into PostGIS and am generating, panning and zooming some decent-looking maps using mapserver/mapsurfer. I would like to add a way for someone to type in a latitude and longitude and zoom to an area around that point. Is there a relatively easy way to do this? Also (stupid questions) what is the relationship between extents and long/lat. I can select extent(wkb_geometry) on some query against the Tiger data to get a lat/long box, but, again, I'm stymied in turning that into an extent or somehow getting mapserver to go there. This is amazing stuff, and after suffering through getting the CVS and/or very latest versions of things all set up right, it was really exciting to see this stuff generate imagery. I've generated some tiffs using a modified mapfile with IMAGETYPE GTiff set, so it's real fast to generate zoomed out views. After tweaking the minscale and maxcale settings on the layers, the transitions between bitmaps and vectors are pretty smooth. But sometimes I'll hit a sour spot where the box'll hammer the database at 50 MB/sec for 10 or 20 seconds before producing a very simple result. I have debug on on all the layers. My guess is that under certain circumstances, for some reason, it's traversing all the data in completechain. Anyone have any hints on this? And one more thing, is there a way to automate generating a bunch of more zoomed-in tiffs? I figure I'll need to take on mapscript, maybe brush the debris off the Tcl interface or something. Finally as a heavy Delorme Street Atlas user for several years, it's always annoyed me that a zoomed in level in a city shows all the roads and their names and produces a nice printed map, but in the country, you have to zoom way too far in to see the road names. Now I get why. I guess the answer would be to do some kind of density calculation to see how many roads there are going to be in the view, then decide about street names and the like. If there're only 3 roads in a 5 mile by 5 mile view, I certainly want to see the road names. Now my stuff is screwy just like theirs. ;-) From bpicinbono at WORLDONLINE.FR Mon Mar 7 09:14:39 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Mon, 7 Mar 2005 18:14:39 +0100 Subject: PHPMapScript : pixels to geo problem using dynamic symbols In-Reply-To: <422C8447.8060903@noaa.gov> Message-ID: The image at your link : http://www.ranetproject.net/apps/maps/ms/africa_view2.php does not seems to be 800 pixels width and 600 pixels height. Did you set these parameters in your html file ? Can you check your temporary images size ? More : I don't know how your vector layer is referenced, but the x pixel size is : xs = (55.541 + 17.533) / 800 = 0.0913 and the y pixel size is : ys = (37.340 + 46.970) / 600 = 0.1405 I think they should match closer. hope it helps Blaise > ah, i guess that could be it. how to you match the image size to the > extent? > > blaise wrote: > >hi, > >your mapfile : > >.... > > SIZE 800 600 > > STATUS ON > > > > EXTENT -17.533 -46.970 55.541 37.340 > > UNITS ..... > > > >does your x/y extent really match your image size ? > >seems not... ? From eric at GOMOOS.ORG Mon Mar 7 09:10:36 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Mon, 7 Mar 2005 12:10:36 -0500 Subject: PHPMapScript : pixels to geo problem using dynamic symbols In-Reply-To: <422C8447.8060903@noaa.gov> Message-ID: On Mon, 2005-03-07 at 11:41, Geoff Rowland wrote: > ah, i guess that could be it. how to you match the image size to the > extent? Pick a width or a height such that: width / height = (maxx - minxx) / (maxy - minx) Another issue might be that your UNITS look like decimal degrees (DD) but you had METERS. > SIZE 800 600 > STATUS ON > > EXTENT -17.533 -46.970 55.541 37.340 > UNITS METERS > SHAPEPATH "data" > From martin426 at YAHOO.COM Mon Mar 7 09:26:19 2005 From: martin426 at YAHOO.COM (James Martin) Date: Mon, 7 Mar 2005 11:26:19 -0600 Subject: Figure out the XY position on the resulting map of a point Message-ID: Duh.. It works exactly as you say, for some reason it just didn't seem logical to me so I never tried it and of course dove into looking for a much more complex solution. Thanks for setting me straight Paul! For any pythoners out there I've included a translation (minus the comments--they're essentially the same): def Geo2Pix (nGeoPos, dfPixMin, dfPixMax, dfGeoMin, dfGeoMax, nInverseGeo = False): dfWidthGeo = abs(dfGeoMax - dfGeoMin) dfWidthPix = abs(dfPixMax - dfPixMin) if dfWidthGeo > 0: dfGeoToPix = dfWidthPix / dfWidthGeo if nInverseGeo: dfDeltaGeo = dfGeoMax - nGeoPos else: dfDeltaGeo = nGeoPos - dfGeoMin dfDeltaPix = dfDeltaGeo * dfGeoToPix dfPosPix = dfPixMin + dfDeltaPix return round(dfPosPix) return False # dfWidthGeo is <= 0 -James On Sun, 6 Mar 2005 17:10:03 -0500, Paul Spencer wrote: >Hi James. > >Assuming your output projection is not lat/lon, you can create a point >object and reproject it into the map's projection and do the same >calculation. Here's some (untested) code that should work: > >$oProjIn = ms_newProjectionObj("init=epsg:4326"); >$oProjOut = ms_newProjectionObj($oMap->getProjection()); >$oPoint = ms_newPointObj(); >$oPoint->setXY( $lon, $lat ); >$oPoint->project( $oProjIn, $oProjOut ); > >$px = Geo2Pix( $oPoint->x, 0, $oMap->width > $oMap->extent->minx, $oMap->extent->maxx, false ); > >$py = Geo2Pix( $oPoint->y, 0, $oMap->height > $oMap->extent->miny, $oMap->extent->maxy, true ); > >/** > * convert a geocoded position to pixel coord > * > * @param nGeoPos double Geocoded position > * @param dfPixMin double minimum map pixel value > * @param dfPixMax double maximum map pixel value > * @param dfGeoMin double minimum map geocoded value > * @param dfGeoMax double maximum map geocoded value > * @param nInverseGeo integer optional flag to inverse , set to 1 for > * Y pixel coordinates where UL > LR > * @return double geocoded position > */ >function Geo2Pix ($nGeoPos, $dfPixMin, $dfPixMax, $dfGeoMin, > $dfGeoMax, $nInverseGeo = "") >{ > // calculate the geocoded & pixel width > $dfWidthGeo = abs($dfGeoMax - $dfGeoMin); > $dfWidthPix = abs($dfPixMax - $dfPixMin); > > // get ratio > if ( $dfWidthGeo <= 0 ) > { > return 0; > } > $dfGeoToPix = $dfWidthPix / $dfWidthGeo; > > // get difference > if (!$nInverseGeo) > $dfDeltaGeo = $nGeoPos - $dfGeoMin; > else > $dfDeltaGeo = $dfGeoMax - $nGeoPos; > > // calculate > $dfDeltaPix = $dfDeltaGeo * $dfGeoToPix; > $dfPosPix = $dfPixMin + $dfDeltaPix; > > // return value > return round ($dfPosPix); > > // end pixel_to_geo function >} > >Cheers, > >Paul > >James wrote: >> Hello, >> >> Using mapscript, is there a way to figure out what the resultant XY position >> of a point object will be on the output image? As an example, using a >> simple lat/lon projection, knowing the lat/lon position of the point, the >> dimensions of the image and the extent, simple algebra leads me to the XY >> position of said point. >> >> However, when using a different projection this is not possible as each >> pixel no longer represents the same amount of lat/lon distance. I can >> project my lat/lon point to the new projection, but is there any way to >> extract the XY coordinates? >> >> Obviously Mapserver must do this to actually place the point on the >> resulting image, but I haven't been able to figure out how to get at that >> information. Any suggestions are greatly appreciated. >> >> Thank you, >> >> James >> > >-- >+-----------------------------------------------------------------+ >|Paul Spencer pspencer at dmsolutions.ca | >+-----------------------------------------------------------------+ >|Applications & Software Development | >|DM Solutions Group Inc http://www.dmsolutions.ca/| >+-----------------------------------------------------------------+ From scarselli at FAUNALIA.IT Mon Mar 7 09:25:14 2005 From: scarselli at FAUNALIA.IT (Daniele Scarselli) Date: Mon, 7 Mar 2005 18:25:14 +0100 Subject: raster colour Message-ID: Hi all Sorry for the stupid question. I'm trying to get into mapserver a grass colour raster but the results is a reclassification of the layer in a 256 colours image with the high classes flattened in a single class (the last one). I'm using Linux/Debian sarge with all updated packages and the layer in the map file is the following: LAYER NAME "dtm" STATUS ON DATA "/home/Documenti/datigrass/Toscana/PERMANENT/cellhd/t_dtm" TYPE RASTER END You can see an example at http://www.faunalia.com/mapserv/ then click on Toscana and switch on the layer 'DTM' Can you help me? thank you. _________________________________________________________________ Daniele Scarselli Agronomo Corso Amedeo 141 Livorno www.faunalia.it scarselli at faunalia.it From abcpriya at LYCOS.COM Mon Mar 7 09:56:44 2005 From: abcpriya at LYCOS.COM (padmapriya balachandran) Date: Mon, 7 Mar 2005 22:56:44 +0500 Subject: Can someone help Message-ID: Hi all, I am developing an application for satellite data availability using Mapscript,PHP and MySQL.My .dbf file has path and row fields. My database contains information about pathrow,DateofPass,etc. I want to get information available in the database just by selecting the area of interest in the mapfile. How to connect mapfile fields with MySQL attributes(Both having common entity-path&row)? Can anyone reply me. Thanks -- _______________________________________________ NEW! Lycos Dating Search. The only place to search multiple dating sites at once. http://datingsearch.lycos.com From geoffrey.rowland at NOAA.GOV Mon Mar 7 10:32:26 2005 From: geoffrey.rowland at NOAA.GOV (Geoff Rowland) Date: Mon, 7 Mar 2005 13:32:26 -0500 Subject: PHPMapScript : pixels to geo problem using dynamic symbols In-Reply-To: <1110215441.1528.12.camel@ubet.gomoos.org> Message-ID: Thanks, it works by using that equation (i changed the size to 600x700) Eric Bridger wrote: >On Mon, 2005-03-07 at 11:41, Geoff Rowland wrote: > > >>ah, i guess that could be it. how to you match the image size to the >>extent? >> >> > >Pick a width or a height such that: > >width / height = (maxx - minxx) / (maxy - minx) > >Another issue might be that your UNITS look like decimal degrees (DD) >but you had METERS. > > > >> SIZE 800 600 >> STATUS ON >> >> EXTENT -17.533 -46.970 55.541 37.340 >> UNITS METERS >> SHAPEPATH "data" >> >> >> -- Geoffrey Rowland Technical Officer Climate Information Project NOAA Research Office of Global Programs http://www.cip.ogp.noaa.gov Contractor, RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com Phone: 301-427-2089x186 Fax : 301-427-2082 geoffrey.rowland at noaa.gov From husu6 at EARTHLINK.NET Mon Mar 7 10:55:52 2005 From: husu6 at EARTHLINK.NET (Hugh Graham) Date: Mon, 7 Mar 2005 10:55:52 -0800 Subject: MAPSERVER-USERS Digest - 5 Mar 2005 to 6 Mar 2005 (#2005-67) In-Reply-To: Message-ID: Please remove from mailing list >>> > > ------------------------------ > > End of MAPSERVER-USERS Digest - 5 Mar 2005 to 6 Mar 2005 (#2005-67) > ******************************************************************* From karl-umn at SC.COM Mon Mar 7 11:47:34 2005 From: karl-umn at SC.COM (Karl Lehenbauer) Date: Mon, 7 Mar 2005 13:47:34 -0600 Subject: Question about showing a location in mapserver by longitude/latitude In-Reply-To: <5f27e20bd60321f6e794eace6bbb3855@sc.com> Message-ID: On Mar 7, 2005, at 10:53 AM, Karl Lehenbauer wrote: > Greetings mapserver users.... OK, so I figured out more about this, and it's gotta be THE dumb question y'all are sick of hearing. So I gotta figure out projections and stuff. I get that. But that is something mapserver is already doing, right? I have some lat/longs I want to add to my file, I can do it with the inline layer. I'm trying stuff like this: LAYER NAME "inline_cities" STATUS default DEBUG ON PROJECTION "proj=merc" "ellps=GRS80" "lat_ts=34" "lon_0=-118" "no_defs" END TYPE POINT FEATURE POINTS 32.42 99.68 END TEXT "Abilene" END ...etc... But of course the points are way off from where they need to be. I know I'm over my head here, and I have ordered "the book", but in the meantime, is there some cool way to make this go? I mean, Tiger data is lat/long and mapserver groks it. From fwarmerdam at GMAIL.COM Mon Mar 7 12:04:57 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 7 Mar 2005 15:04:57 -0500 Subject: Question about showing a location in mapserver by longitude/latitude In-Reply-To: <6e3f2ee36b78ca054d76fd70b8f23db6@sc.com> Message-ID: On Mon, 7 Mar 2005 13:47:34 -0600, Karl Lehenbauer wrote: > OK, so I figured out more about this, and it's gotta be THE dumb > question y'all are sick of hearing. So I gotta figure out projections > and stuff. I get that. But that is something mapserver is already > doing, right? I have some lat/longs I want to add to my file, I can do > it with the inline layer. I'm trying stuff like this: > > LAYER > NAME "inline_cities" > STATUS default > DEBUG ON > PROJECTION > "proj=merc" > "ellps=GRS80" > "lat_ts=34" > "lon_0=-118" > "no_defs" > END > TYPE POINT > FEATURE > POINTS > 32.42 99.68 > END > TEXT "Abilene" > END > ...etc... > > But of course the points are way off from where they need to be. I > know I'm over my head here, and I have ordered "the book", but in the > meantime, is there some cool way to make this go? I mean, Tiger data > is lat/long and mapserver groks it. Karl, If your data is in latlong, then your layer should also be declared that way. Change the PROJECTION declaration to: PROJECTION "+proj=latlong +ellps=GRS80" END 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 a_naz at ECE.CONCORDIA.CA Mon Mar 7 14:22:03 2005 From: a_naz at ECE.CONCORDIA.CA (Afifa Naz) Date: Mon, 7 Mar 2005 17:22:03 -0500 Subject: How to create shape file from postgresql Message-ID: Hi: I am wondering if any one can help me to create a shape file from postgresql database table. I need a code or how to instructions so that I can convert my file into a shape file. Thanks Afifa From a_naz at ECE.CONCORDIA.CA Mon Mar 7 14:24:42 2005 From: a_naz at ECE.CONCORDIA.CA (Afifa Naz) Date: Mon, 7 Mar 2005 17:24:42 -0500 Subject: How to creat a shape file from postgresql table Message-ID: Hi I am wondering if any one can help me or forward me a code that can help me to create a shape file from a postgresql table. Thanks Afifa From stigmata_blackangel at YAHOO.COM Mon Mar 7 15:50:45 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Mon, 7 Mar 2005 15:50:45 -0800 Subject: How to create shape file from postgresql In-Reply-To: Message-ID: Use the pgsql2shp program, which was included with the PostGIS distribution. It's pretty simple. --- Afifa Naz wrote: > Hi: > > I am wondering if any one can help me to create a > shape file from > postgresql database table. I need a code or how to > instructions so that > I can convert my file into a shape file. > > Thanks > Afifa > __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From rjames57 at YAHOO.COM Mon Mar 7 15:56:35 2005 From: rjames57 at YAHOO.COM (Randy James) Date: Mon, 7 Mar 2005 15:56:35 -0800 Subject: How to create shape file from postgresql In-Reply-To: 6667 Message-ID: pgsql2shp will work if you are converting a postgis database. If you do not have postgis installed and the database is a point table with xy fields; covert them to a dbf and add as a xy layer in arcview. --- Gregor Mosheh wrote: > Use the pgsql2shp program, which was included with the > PostGIS distribution. It's pretty simple. > > --- Afifa Naz wrote: > > > Hi: > > > > I am wondering if any one can help me to create a > > shape file from > > postgresql database table. I need a code or how to > > instructions so that > > I can convert my file into a shape file. > > > > Thanks > > Afifa > > > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From pspencer at DMSOLUTIONS.CA Mon Mar 7 10:30:25 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Mon, 7 Mar 2005 13:30:25 -0500 Subject: How to creat a shape file from postgresql table In-Reply-To: Message-ID: Afifa, there is a utility that comes with postgis called pgsql2shp but that assumes you have postgis installed and are using geometry columns. If this is not your case, you have several options: * you can install postgis into your postgres, add a geometry column, and run an sql command using GeometryFromText and appropriate string concatentation to build your points from existing lon/lat columns * you can use the ogr2ogr utility to convert from any supported format to any supported format. http://gdal.maptools.org/ogr/ogr_utilities.html http://gdal.maptools.org/ogr/ogr_formats.html OGR supports access to databases that are not inherently spatial (i.e. postgres without postgis) using the virtual format driver (VRT), I encourage you to use the GDAL mailing list for information on pursuing this. * you can write a script in PHP or some other scripting language that MapServer supports and use the script support for enumerating your database and MapServer's support for scripting the ShapefileObj Cheers Paul Afifa Naz wrote: > Hi > > I am wondering if any one can help me or forward me a code that can help > me to create a shape file from a postgresql table. > > Thanks > Afifa > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From saintsjd at YAHOO.COM Tue Mar 8 04:49:04 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 8 Mar 2005 04:49:04 -0800 Subject: Python Mapscript QueryByPoint In-Reply-To: 6667 Message-ID: I am having trouble querying a flat shapefile using python mapscript with the queryByPoint function. My getResults always equals None. I believe my trouble has something to do with: (from the swig documentation) "A query will not set results for a layer with a NULL 'template' attribute." I have tried using both map and pixel coords for the point object. Both point objects, I am sure intersect a feature of layer 0 on my map. I receive the error: "'NoneType' object has no attribute 'numresults'" My code: ------------------------------------------ #Map coords #click = pointObj() #click.x = 77.01 #click.y = 38.89 #pixel Coords click = pointObj() click.x = 300 click.y = 200 myMap.getLayer(0).queryByPoint( myMap, click, MS_SINGLE, 10.0 ) results = myMap.getLayer(0).getResults() output = results.numresults ------------------------------------------- excerpt from My mapfile: ------------------------------------------ LAYER NAME dcdem2000 TYPE POLYGON STATUS ON METADATA desc "Census Blocks" logo "test.jpg" END DATA "/home/jons/Data/DC/created/dcdem2000" CLASS NAME "Census Blocks 2000" COLOR 225 225 225 OUTLINECOLOR 100 100 100 END END ------------------------------------------ Thanks in advance From saintsjd at YAHOO.COM Tue Mar 8 04:52:24 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 8 Mar 2005 04:52:24 -0800 Subject: Place to post python examples Message-ID: Hi, I am learning Python mapscript and along the way I have been creating simple yet detailed task-based examples of using python mapscript. Is there a good place I could post them once I have had time to finish? Each example contains a simple task such as "Zoom to a Point on the map", a short snipit of the python code, and a copy of the mapfile that was used for the example. Thanks Jon From jdport at VERITIME.COM Tue Mar 8 05:32:44 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Tue, 8 Mar 2005 08:32:44 -0500 Subject: Figure out the XY position on the resulting map of a point Message-ID: You can reproject it back to the original lat/long coordinates and then do the math like before. Either that or you can use the cs2cs utility to calculate your projected extents and use the projected image extents to calculate the XY coordinates. -Jeff From bjoern.platzen at MOMATEC.DE Tue Mar 8 05:50:28 2005 From: bjoern.platzen at MOMATEC.DE (=?iso-8859-1?Q?Bj=F6rn_Platzen?=) Date: Tue, 8 Mar 2005 14:50:28 +0100 Subject: Labels are not displayed in 4.4.1 Message-ID: Hello List, I just upgraded from Version 3.6.5 to 4.4.1 and now some of my labels don't seem to appear... Here's a snippet from the mapfile: These Labels don't appear: LAYER NAME "beschriftung1" TYPE ANNOTATION DATA "labels" STATUS ON CLASSITEM "Level" LABELITEM "Text" LABELANGLEITEM "Angle" SYMBOLSCALE 6500 LABELCACHE on CLASS EXPRESSION "1" MAXSCALE 25000 LABEL ANTIALIAS true TYPE TRUETYPE FONT swiss MINSIZE 6 SIZE 8 MAXSIZE 10 COLOR 0 0 0 FORCE true POSITION uc END END CLASS EXPRESSION "43" LABEL TYPE TRUETYPE FONT swiss ANTIALIAS true MINSIZE 8 SIZE 12 MAXSIZE 16 COLOR 0 0 0 FORCE true POSITION uc END END END These Labels _do_ appear: LAYER NAME quartiere TYPE POLYGON STATUS on MAXSCALE 200000 DATA quartiere CLASSITEM "ID" LABELITEM "Name" LABELMINSCALE 8000 LABELCACHE off CLASS EXPRESSION '1' STYLE SYMBOL 'circle' SIZE 6 OUTLINECOLOR 131 157 197 END LABEL #FORCE TRUE ANTIALIAS true POSITION auto SIZE 10 TYPE TRUETYPE FONT swiss COLOR 0 51 255 #OUTLINECOLOR 0 0 0 END # Label END # CLASS template "rahmen_q.html" END #LAYER With version 3.6.5, all the labels appeared. So I think, there must have been some changes in the mapfile-syntax for labels, but I wasn't able to find out what... So, if anyone has an idea, please give me a hint. Thanks and bye, Bjoern From eric at GOMOOS.ORG Tue Mar 8 06:05:36 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Tue, 8 Mar 2005 09:05:36 -0500 Subject: Labels are not displayed in 4.4.1 In-Reply-To: Message-ID: On Tue, 2005-03-08 at 08:50, Bj?rn Platzen wrote: > Hello List, > > I just upgraded from Version 3.6.5 to 4.4.1 and now some of my labels don't > seem to appear... > > Here's a snippet from the mapfile: > > These Labels don't appear: > LAYER > NAME "beschriftung1" > TYPE ANNOTATION > DATA "labels" > STATUS ON > CLASSITEM "Level" > LABELITEM "Text" > LABELANGLEITEM "Angle" > SYMBOLSCALE 6500 > LABELCACHE on > CLASS > EXPRESSION "1" > MAXSCALE 25000 > LABEL > ANTIALIAS true > TYPE TRUETYPE > FONT swiss > MINSIZE 6 > SIZE 8 > MAXSIZE 10 > COLOR 0 0 0 > FORCE true > POSITION uc > END > END > CLASS > EXPRESSION "43" > LABEL > TYPE TRUETYPE > FONT swiss > ANTIALIAS true > MINSIZE 8 > SIZE 12 > MAXSIZE 16 > COLOR 0 0 0 > FORCE true > POSITION uc > END > END > END > > These Labels _do_ appear: > LAYER > NAME quartiere > TYPE POLYGON > STATUS on > MAXSCALE 200000 > DATA quartiere > CLASSITEM "ID" > LABELITEM "Name" > LABELMINSCALE 8000 > LABELCACHE off > CLASS > EXPRESSION '1' > STYLE > SYMBOL 'circle' > SIZE 6 > OUTLINECOLOR 131 157 197 > END > LABEL > #FORCE TRUE > ANTIALIAS true > POSITION auto > SIZE 10 > TYPE TRUETYPE > FONT swiss > COLOR 0 51 255 > #OUTLINECOLOR 0 0 0 > END # Label > END # CLASS > template "rahmen_q.html" > END #LAYER > > With version 3.6.5, all the labels appeared. So I think, there must have > been some changes in the mapfile-syntax for labels, but I wasn't able to > find out what... This is just a guess, but you may need an empty STYLE object in your ANNOTATION layer.Try putting STYLE END in your CLASS. Eric From eric at GOMOOS.ORG Tue Mar 8 06:06:51 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Tue, 8 Mar 2005 09:06:51 -0500 Subject: Python Mapscript QueryByPoint In-Reply-To: <20050308124904.16585.qmail@web53907.mail.yahoo.com> Message-ID: On Tue, 2005-03-08 at 07:49, Jon Saints wrote: > I am having trouble querying a flat shapefile using > python mapscript with the queryByPoint function. > > My getResults always equals None. I believe my trouble > has something to do with: (from the swig > documentation) "A query will not set results for a > layer with a NULL 'template' attribute." > > I have tried using both map and pixel coords for the > point object. Both point objects, I am sure intersect > a feature of layer 0 on my map. > > I receive the error: > "'NoneType' object has no attribute 'numresults'" > > My code: > ------------------------------------------ > #Map coords > #click = pointObj() > #click.x = 77.01 > #click.y = 38.89 > > #pixel Coords > click = pointObj() > click.x = 300 > click.y = 200 > > myMap.getLayer(0).queryByPoint( myMap, click, > MS_SINGLE, 10.0 ) > results = myMap.getLayer(0).getResults() > output = results.numresults > ------------------------------------------- > > > excerpt from My mapfile: > ------------------------------------------ > LAYER > NAME dcdem2000 > TYPE POLYGON > STATUS ON > METADATA > desc "Census Blocks" > logo "test.jpg" > END > DATA "/home/jons/Data/DC/created/dcdem2000" > CLASS > NAME "Census Blocks 2000" > COLOR 225 225 225 > OUTLINECOLOR 100 100 100 > END > END > ------------------------------------------ In your LAYER add TEMPLATE "ttt". That will define a template and allow queries even though you don't use it. Eric From sgillies at FRII.COM Tue Mar 8 06:44:59 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 8 Mar 2005 07:44:59 -0700 Subject: Place to post python examples In-Reply-To: Message-ID: On Mar 8, 2005, at 5:52 AM, Jon Saints wrote: > Hi, > > I am learning Python mapscript and along the way I > have been creating simple yet detailed task-based > examples of using python mapscript. Is there a good > place I could post them once I have had time to > finish? > > Each example contains a simple task such as "Zoom to > a Point on the map", a short snipit of the python > code, and a copy of the mapfile that was used for the > example. > > Thanks > Jon > > Jon, Best is to post them back on this list with a good descriptive subject line. They'll be archived and can be found by an archive search, and this would be a good way for you to get some feedback on them before putting them online at your own site. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From bjoern.platzen at MOMATEC.DE Tue Mar 8 06:49:37 2005 From: bjoern.platzen at MOMATEC.DE (=?iso-8859-1?Q?Bj=F6rn_Platzen?=) Date: Tue, 8 Mar 2005 15:49:37 +0100 Subject: Labels are not displayed in 4.4.1 In-Reply-To: Message-ID: Hi Eric, > > I just upgraded from Version 3.6.5 to 4.4.1 and now some of > my labels > > don't seem to appear... [...] > This is just a guess, but you may need an empty STYLE object > in your ANNOTATION layer.Try putting STYLE END in your CLASS. thanks for your fast supply, but unfortunately your guess didn't do the trick 8~( I just tried to declare the layer as a Point-Layer, dropped all the label-stuff and gave the classes a style like STYLE SYMBOL 'circle' SIZE 2 COLOR 255 0 0 END but even the red dots did not appear. So maybe my problem hasn't much to do with labeling? What else could it be? I checked ogrinfo and it showed me thousands of features within the layer. Any further help would be appreciated... Bye, Bjoern From eric at GOMOOS.ORG Tue Mar 8 08:39:05 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Tue, 8 Mar 2005 11:39:05 -0500 Subject: Labels are not displayed in 4.4.1 In-Reply-To: Message-ID: On Tue, 2005-03-08 at 08:50, Bj?rn Platzen wrote: > Hello List, > > I just upgraded from Version 3.6.5 to 4.4.1 and now some of my labels don't > seem to appear... > > Here's a snippet from the mapfile: > > These Labels don't appear: > LAYER > NAME "beschriftung1" > TYPE ANNOTATION > DATA "labels" > STATUS ON > CLASSITEM "Level" > LABELITEM "Text" > LABELANGLEITEM "Angle" > SYMBOLSCALE 6500 > LABELCACHE on > CLASS > EXPRESSION "1" > MAXSCALE 25000 > LABEL > ANTIALIAS true > TYPE TRUETYPE > FONT swiss > MINSIZE 6 > SIZE 8 > MAXSIZE 10 > COLOR 0 0 0 > FORCE true > POSITION uc > END > END > CLASS > EXPRESSION "43" > LABEL > TYPE TRUETYPE > FONT swiss > ANTIALIAS true > MINSIZE 8 > SIZE 12 > MAXSIZE 16 > COLOR 0 0 0 > FORCE true > POSITION uc > END > END > END > > These Labels _do_ appear: > LAYER > NAME quartiere > TYPE POLYGON > STATUS on > MAXSCALE 200000 > DATA quartiere > CLASSITEM "ID" > LABELITEM "Name" > LABELMINSCALE 8000 > LABELCACHE off > CLASS > EXPRESSION '1' > STYLE > SYMBOL 'circle' > SIZE 6 > OUTLINECOLOR 131 157 197 > END > LABEL > #FORCE TRUE > ANTIALIAS true > POSITION auto > SIZE 10 > TYPE TRUETYPE > FONT swiss > COLOR 0 51 255 > #OUTLINECOLOR 0 0 0 > END # Label > END # CLASS > template "rahmen_q.html" > END #LAYER I would concentrate on the differences between your layer which works and the one that doesn't. E.g. MAXSCALE 200000 vs. MAXSCALE 25000 is quite a big difference. You mention ogrinfo, but you don't have CONNECTIONTYPE OGR. From bartvde at XS4ALL.NL Tue Mar 8 08:43:04 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 8 Mar 2005 17:43:04 +0100 Subject: WFS: multipolygons in GML while DescribeFeatureType says polygonProperty Message-ID: Hi list, while testing a worldmap WFS set up with Mapserver against the Cadcorp SIS Mapbrowser I ran into the following error: In the DescribeFeatureType response Mapserver states: But then in the actual GML some of the items are multipolygon: Cadcorp SIS Mapbrowser gives an error message about this. Is this a known issue? Best regards, Bart From s_gbadebo at HOTMAIL.COM Tue Mar 8 08:36:42 2005 From: s_gbadebo at HOTMAIL.COM (Shaq Gbadebo) Date: Tue, 8 Mar 2005 16:36:42 +0000 Subject: No subject Message-ID: You are not authorized to send mail to the MAPSERVER-USERS list from your s_gbadebo at HOTMAIL.COM account. You might be authorized to send to the list from another of your accounts, or perhaps when using another mail program which generates slightly different addresses, but LISTSERV has no way to associate this other account or address with yours. If you need assistance or if you have any question regarding the policy of the MAPSERVER-USERS list, please contact the list owners: MAPSERVER-USERS-request at LISTS.UMN.EDU. From: Shaq Gbadebo To: mapserver-users at lists.umn.edu Subject: Display data from postgis database Sent: 08 March 2005 16:27:30 Hello, I am carrying out a project on displaying maps from a postgis database over the web with a mapserver. I have installed MapServer-4.0.1, on a LInux redhat 9 platform. I have also installed version 7.3.4 of postgresql and postgis. I have successfully loaded shapefiles into the postgis database and now am just trying to display the maps, Here is a copy of the mapfile I am using, where am just trying to display on the tables. MAP IMAGETYPE PNG EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 400 300 SHAPEPATH "/home/MapData" IMAGECOLOR 0 0 255 # PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # #END LAYER CONNECTIONTYPE postgis NAME "motor" CONNECTION "user=postgres password=postgres dbname=fyp host=localhost.localdomain" DATA "the_geom FROM motorway" STATUS ON TYPE LINE CLASS COLOR 255 0 0 END END END This mapfile displays the background but not the actual map. I wondering If there is anything I have left out. When right click the background of the map, in the alternative text field it says: " The image ?http://localhost.localdomain/cgi-bin/mapserv?map=/home/Mapfiles/testit.map&mode=map? cannot be displayed, because it contains errors." I am not sure what exactly this means, any sort of help would be highly appreciated. From bjoern.platzen at MOMATEC.DE Tue Mar 8 08:58:27 2005 From: bjoern.platzen at MOMATEC.DE (=?iso-8859-1?Q?Bj=F6rn_Platzen?=) Date: Tue, 8 Mar 2005 17:58:27 +0100 Subject: Labels are not displayed in 4.4.1 In-Reply-To: Message-ID: Hi Eric, > > I would concentrate on the differences between your layer > which works and the one that doesn't. E.g. MAXSCALE 200000 > vs. MAXSCALE 25000 is quite a big difference. > > You mention ogrinfo, but you don't have CONNECTIONTYPE OGR. actually the data is an ESRI Shapefile. I just used ogrinfo to check if the shapefile/dbf/etc. survived the hard and stony ftp-way to the server 8~) Meanwhile I tried to put some other point-based annotationlayers into my mapfile and it seems as if they don't work either. On the other hand, I've got a queryable pointlayer with symbol and label which works fine. The main-difference between the working and the non-working layer in my snippet was, I think, the working one was a polygon-layer. Maybe I'll try to convert my shapes to *dgn, which is the format, most of the other data is in. ... I'm in the mood for trying anything, just to get it to work... So, if anyone has some other ideas ... Bye, Bjoern. From bpicinbono at WORLDONLINE.FR Tue Mar 8 09:14:27 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Tue, 8 Mar 2005 18:14:27 +0100 Subject: Labels are not displayed in 4.4.1 In-Reply-To: Message-ID: > > I just upgraded from Version 3.6.5 to 4.4.1 and now some of........ have you check the wiki MapServer 3.6->4.0 Migration Guide ? http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MigrationGuide might find interesting infos ? blaise From nunoragil at GMAIL.COM Tue Mar 8 10:31:01 2005 From: nunoragil at GMAIL.COM (Nuno GIL) Date: Tue, 8 Mar 2005 18:31:01 +0000 Subject: styles with umms wms and grid keyword Message-ID: Dear users, I would like to know if the new version of the MapServer software supports WMS styles? The LatLon grid available through the GRID keyword on the map file can be accessed via a WMS or via a WFS only? Can someone please forward me an example of a mapfile using the GRID keyword? Thank you, Nuno From bartvde at XS4ALL.NL Tue Mar 8 11:21:11 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 8 Mar 2005 20:21:11 +0100 Subject: styles with umms wms and grid keyword In-Reply-To: Message-ID: Hi Nuno, WMS named styles are not available as yet. You can style layers using UserStyles from the SLD spec though. I just tested the GRID, it has no problems with WMS, but in WFS I got an internal server error on a GetFeature. So probably only WMS works for GRID :) I have an example, but that is for my projection: LAYER METADATA WMS_TITLE "Grid" WMS_SRS "EPSG:28992" WFS_TITLE "Grid" END NAME "Grid" DUMP TRUE PROJECTION "init=epsg:28992" END TYPE LINE STATUS ON CLASS COLOR 128 128 128 LABEL TYPE BITMAP SIZE SMALL COLOR 0 0 0 PARTIALS FALSE END END GRID LABELFORMAT "%5.0f" END END Other examples are on the Wiki: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerGrid Best regards, Bart On Tue, 8 Mar 2005 18:31:01 +0000, Nuno GIL wrote: > Dear users, > I would like to know if the new version of the MapServer software > supports WMS styles? > The LatLon grid available through the GRID keyword on the map file can > be accessed via a WMS or via a WFS only? > Can someone please forward me an example of a mapfile using the GRID > keyword? > Thank you, > Nuno > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From steve.lime at DNR.STATE.MN.US Tue Mar 8 12:20:52 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 8 Mar 2005 14:20:52 -0600 Subject: Call for Volunteers - New MapServer Website Message-ID: Greetings all: A small group of folks have been working for some time on developing a new and improved MapServer website. Howard Butler was the main instigator and has probably spent the most time getting this initiative underway. One of the driving principles of the new site is based around community ownership and development. (the site will still live on UMN infrastructure) Bottom line? Howard et al. have done a great job so far, but they cannot do it alone- we need your help! To date a prototype site has been developed using a content management system called Plone ;. Plone will allow give our website some capabilities that members of the project have been wishing for. These include: - Through-the-web editing using a browser, WebDAV, or an external editor like emacs or vi ;-) - Translatable content (the French/German/Portuguese/etc version of documents exist alongside English ones. They aren't automagically translated, however. - User contributed content and workflow (anyone can submit a document for review and inclusion on main/public/anonymous portion of the website) - Authenticated document commenting (an authenticated user can post comments on a document) - Multiple content input types (reStructured text will be preferred, but HTML and plain text are supported). - RSS feed of items that were recently added to the site One big advantage is that all MapServer Documentation Project (MDP) documents will be moved out of their current XML format into Plone. This will really make a difference for authors. Contributing and maintaining a "how-to" documents will be as easy as logging on to the web site. No more hand editing of XML documents and then waiting overnight to make sure the changes you made look right in HTML. Yipee! The new site should also address the spam issues that plagued towards the end, yet will still allow user contributed documentation- such as the Python MapScript samples that a user recently wanted to contribute. So, if you've been looking for a way to get involved in the project this might be it! You don't have to be a C/C++ programmer to participate. Please contact me (steve.lime at state.mn.us) if you are interested in helping out. Thanks! Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From jdutton at AWS.COM Tue Mar 8 12:16:29 2005 From: jdutton at AWS.COM (JFD) Date: Tue, 8 Mar 2005 14:16:29 -0600 Subject: PERL - Geo::Shapelib help Message-ID: Hello, I'm trying to create a polygon shapefile using the PERL module Geo::Shapelib and find I can't quite get it. At this stage, I'm just trying to create a square polygon to get the hang of it, before moving on to bigger and better things. Unfortunately, the script bombs on me despite many consultations of the man page and the ESRI shapefile whitepaper. My best attemp to accomplish this task is below. Any guidance on what I'm doing wrong would be greatly appreciated. Thanks, JFD ------------------------------------------------------------------ #!/usr/bin/perl # # an attempt to create a polygon shapefile # use strict ; use Geo::Shapelib ; # points of the polygon my @lat = (45.0, 45.0, 55.0, 55.0, 45.0) ; my @lon = (-75.0, -85.0, -85.0, -75.0, -75.0) ; my @verts = ( [$lat[0], $lon[0]], [$lat[1], $lon[1]], [$lat[2], $lon[2]], [$lat[3], $lon[3]], [$lat[4], $lon[4]] ) ; #print "@verts\n" ; my $shape = new Geo::Shapelib; $shape->{Shapetype} = 5; $shape->{MinBounds} = [20,-100] ; $shape->{MaxBounds} = [80,-10] ; $shape->{FieldNames} = ['ID', 'SPD','DIR']; $shape->{FieldTypes} = ['Integer','Integer','Integer']; push @{$shape->{Shapes}}, { SHPType=>5, ShapeId=>1, Nparts=>0, NShapes=>0, NVertices=>5, Vertices=>[\@lat, \@lon] }; push @{$shape->{ShapeRecords}}, [1,13,250]; #i++; $shape->dump(); $shape->save('/mydir/test'); From covariance at SHAW.CA Tue Mar 8 13:02:04 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Tue, 8 Mar 2005 15:02:04 -0600 Subject: Can someone help Message-ID: Right off the top of my head, this is what I recently did to select the database attributes for the objects inside of the current map view: 1) $CurrentMapRectObj= $MyMapObj->extent; 2) $AlayerObj = $MyMapObj->getLayer(1); // (if you're querying on 2nd layer in the map) 3) $AlayerObj->queryByRect($CurrentMapRectObj); 4) $NumObjects = $AlayerObj->getNumResults(); 5) for($i=0; $i < $NumObjects; $i++) { $ThisCacheObj = $AlayerObj->getResult($i) $ThisShapeObj = $AlayerObj->getShape($ThisCacheObj->tileindex, $ThisCacheObj->shapeindex); $MyShapeAttribute = $ThisShapeObj->values["theattributename"]; // // Now connect to the database using mysql_connect and formulate your // query string based on $MyShapeAttribute and submit the SQL query // and retrieve the results // } I hope that this helps you. Bob Bruce On Mon, 7 Mar 2005 22:56:44 +0500, padmapriya balachandran wrote: >Hi all, > I am developing an application for satellite data availability using Mapscript,PHP and MySQL.My .dbf file has path and row fields. >My database contains information about pathrow,DateofPass,etc. > >I want to get information available in the database just by selecting the area of interest in the mapfile. > >How to connect mapfile fields with MySQL attributes(Both having common entity-path&row)? > From adh at ICE.UCDAVIS.EDU Tue Mar 8 13:45:45 2005 From: adh at ICE.UCDAVIS.EDU (Allan Hollander) Date: Tue, 8 Mar 2005 13:45:45 -0800 Subject: Help with building python mapscript Message-ID: Hi, I'm trying to build python mapscript for mapserver 4.4.1 and it seems to be unable to find the OGR library. This is on Debian Sarge. Here's the error message when I run the test in mapscript/python/tests/cases: --- % python runalltests.py -v Traceback (most recent call last): File "runalltests.py", line 59, in ? m = __import__(test) File "/usr/local/src/mapserver-4.4.1/mapscript/python/tests/cases/classtest.py", line 39, in ? from testing import mapscript File "/usr/local/src/mapserver-4.4.1/mapscript/python/tests/cases/testing.py", line 59, in ? import mapscript File "../../build/lib.linux-i686-2.3/mapscript.py", line 4, in ? import _mapscript ImportError: ../../build/lib.linux-i686-2.3/_mapscript.so: undefinedsymbol: getExteriorRing__10OGRPolygon --- I have built gdal-1.2.5 with ogr and have installed it to /usr/local. I also have /usr/local/lib as an entry in my ld.so.conf file and rehashed the library database with ldconfig. So I don't understand why _mapscript.so is failing to find the OGR symbol above. If anyone can share thoughts about why I'm getting this problem is it would be much appreciated. Thanks, Allan Hollander From saintsjd at YAHOO.COM Tue Mar 8 15:07:58 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 8 Mar 2005 15:07:58 -0800 Subject: Help with building python mapscript In-Reply-To: 6667 Message-ID: If you are using debian sarge, binary packages of mapserver with python support are already available in the DebianGIS project repository. Their home page will have the exacte URLS to include in your /etc/apt/sources.list file. http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl after adding the sources to you list, search for mapserver in apt and install. If you are looking for a custom built mapserver this will not help. Take care Jon --- Allan Hollander wrote: > Hi, > > I'm trying to build python mapscript for mapserver > 4.4.1 and it seems to > be unable to find the OGR library. This is on Debian > Sarge. Here's the > error message when I run the test in > mapscript/python/tests/cases: > > --- > > % python runalltests.py -v > Traceback (most recent call last): > File "runalltests.py", line 59, in ? > m = __import__(test) > File > "/usr/local/src/mapserver-4.4.1/mapscript/python/tests/cases/classtest.py", > line 39, in ? > from testing import mapscript > File > "/usr/local/src/mapserver-4.4.1/mapscript/python/tests/cases/testing.py", > line 59, in ? > import mapscript > File > "../../build/lib.linux-i686-2.3/mapscript.py", line > 4, in ? > import _mapscript > ImportError: > ../../build/lib.linux-i686-2.3/_mapscript.so: > undefinedsymbol: getExteriorRing__10OGRPolygon > > --- > > I have built gdal-1.2.5 with ogr and have installed > it to /usr/local. I > also have /usr/local/lib as an entry in my > ld.so.conf file and rehashed > the library database with ldconfig. So I don't > understand why > _mapscript.so is failing to find the OGR symbol > above. > > If anyone can share thoughts about why I'm getting > this problem is it > would be much appreciated. > > Thanks, > > Allan Hollander > From sgillies at FRII.COM Tue Mar 8 15:15:40 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 8 Mar 2005 16:15:40 -0700 Subject: Help with building python mapscript In-Reply-To: Message-ID: On Mar 8, 2005, at 2:45 PM, Allan Hollander wrote: > Hi, > > I'm trying to build python mapscript for mapserver 4.4.1 and it seems > to > be unable to find the OGR library. This is on Debian Sarge. Here's the > error message when I run the test in mapscript/python/tests/cases: > > --- > > % python runalltests.py -v > Traceback (most recent call last): > File "runalltests.py", line 59, in ? > m = __import__(test) > File > "/usr/local/src/mapserver-4.4.1/mapscript/python/tests/cases/ > classtest.py", > line 39, in ? > from testing import mapscript > File > "/usr/local/src/mapserver-4.4.1/mapscript/python/tests/cases/ > testing.py", > line 59, in ? > import mapscript > File "../../build/lib.linux-i686-2.3/mapscript.py", line 4, in ? > import _mapscript > ImportError: ../../build/lib.linux-i686-2.3/_mapscript.so: > undefinedsymbol: getExteriorRing__10OGRPolygon > > --- > > I have built gdal-1.2.5 with ogr and have installed it to /usr/local. I > also have /usr/local/lib as an entry in my ld.so.conf file and rehashed > the library database with ldconfig. So I don't understand why > _mapscript.so is failing to find the OGR symbol above. > > If anyone can share thoughts about why I'm getting this problem is it > would be much appreciated. > > Thanks, > > Allan Hollander > > Allan, do you have any other GDAL versions on your system? Any chance of a mismatch between the GDAL/OGR you pointed the configure script at, and the library in /usr/local/lib? Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From woodbri at SWOODBRIDGE.COM Tue Mar 8 16:33:41 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 8 Mar 2005 19:33:41 -0500 Subject: PERL - Geo::Shapelib help In-Reply-To: Message-ID: JFD, A couple of comments. 1) [lat, long] == [Y, X] so all you X/Y coordinates are being stored as Y/X which is not a problem in and of itself, until you try to line it up with other data. 2) from the man page ... Vertices=>[[$x,$y]] which is not what you are doing below. I think you might want to do something like reverse your lat-lon's when you create your @verts array Then when you create your shape: Vertices => \@verts Also don't ser the bounds, they will get set automatically based on your data when you do the save. -Steve W. JFD wrote: > Hello, > > I'm trying to create a polygon shapefile using the PERL module > Geo::Shapelib and find I can't quite get it. > > At this stage, I'm just trying to create a square polygon to get the hang > of it, before moving on to bigger and better things. Unfortunately, the > script bombs on me despite many consultations of the man page and the ESRI > shapefile whitepaper. My best attemp to accomplish this task is below. > Any guidance on what I'm doing wrong would be greatly appreciated. > > Thanks, > > JFD > ------------------------------------------------------------------ > #!/usr/bin/perl > > # > # an attempt to create a polygon shapefile > # > > use strict ; > use Geo::Shapelib ; > > # points of the polygon > my @lat = (45.0, 45.0, 55.0, 55.0, 45.0) ; > my @lon = (-75.0, -85.0, -85.0, -75.0, -75.0) ; > > my @verts = ( > [$lat[0], $lon[0]], > [$lat[1], $lon[1]], > [$lat[2], $lon[2]], > [$lat[3], $lon[3]], > [$lat[4], $lon[4]] > ) ; > #print "@verts\n" ; > my $shape = new Geo::Shapelib; > $shape->{Shapetype} = 5; > > $shape->{MinBounds} = [20,-100] ; > $shape->{MaxBounds} = [80,-10] ; > > $shape->{FieldNames} = ['ID', 'SPD','DIR']; > $shape->{FieldTypes} = ['Integer','Integer','Integer']; > > push @{$shape->{Shapes}}, { > SHPType=>5, > ShapeId=>1, > Nparts=>0, > NShapes=>0, > NVertices=>5, > Vertices=>[\@lat, \@lon] > }; > push @{$shape->{ShapeRecords}}, [1,13,250]; > #i++; > $shape->dump(); > > $shape->save('/mydir/test'); > From arnulf.christl at CCGIS.DE Wed Mar 9 00:07:19 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Wed, 9 Mar 2005 09:07:19 +0100 Subject: Call for Volunteers - New MapServer Website In-Reply-To: Message-ID: Steve Lime wrote: > Greetings all: A small group of folks have been working for some time on > developing a new and improved MapServer website. Howard Butler was the > main instigator and has probably spent the most time getting this > initiative underway. One of the driving principles of the new site is > based around community ownership and development. (the site will still > live on UMN infrastructure) Bottom line? Howard et al. have done a great > job so far, but they cannot do it alone- we need your help! This is great news! [...] > - Translatable content (the French/German/Portuguese/etc version of > documents exist alongside English ones. They aren't automagically > translated, however. Rest assured that we will hop on the train as soon as possible and ensure that the German translations are up to date. > So, if you've been looking for a way to get involved in the project this > might be it! You don't have to be a C/C++ programmer to participate. > Please contact me (steve.lime at state.mn.us) if you are interested in > helping out. We will sooner than later drop the German site - as it is just a crude copy of the original - but it served us well so far. Best, Arnulf. > Thanks! > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.org http://www.mapbender.org ------------------------ From joseluismapserver at YAHOO.ES Wed Mar 9 02:59:31 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Wed, 9 Mar 2005 11:59:31 +0100 Subject: .map and .tab files In-Reply-To: 6667 Message-ID: Hi Brent and all the rest. I have resolved the problem just as I told you, thanks to your solution, but I have a problem related to it, and I do not know how to solve it. In the begining I only was using one map, so I included the .tfw file manually en th WEB-INF directory and that was all. But now I use many maps, and I have to include the correct .tfw file depending on the map I use. So is there any mapserver instruction so I can associate the .tfw to the mapObj I am generating? Or what is the way of doing it? Thank you to all Jose Luis P.D. I am using Linux, and Mapserver 4.4.1 Brent Fraser wrote: For a world file description, have a look at: http://lists.umn.edu/cgi-bin/wa?A2=ind0501&L=mapserver-users&P=R31342&I=-3&X=5DD2E75F03DF29CF75 Sorry about the ellps info (it's not Clark 1866). Your tab file shows 1001 as the datum code. From the MapInfo doc, this indicates a datum of Pulkovo 1942, which uses the the Krassovsky ellipsoid. Your PROJECTION object should include the Proj4 keyword of "ellps=krass" Brent ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 31, 2005 8:52 AM Subject: Re: [UMN_MAPSERVER-USERS] .map and .tab files Sorry but I don't undersand what to do in point number 1. How can I do a .tfw file? How does it look like? and respect to point 3: how do you know which is the ellps parameter? Thanks Jose Luis Brent Fraser wrote: Jose Luis, Three possibilities: 1. The tiff might be a plain tiff, not a GeoTiff (with registration info attached as a TIFF tag). Make a .tfw georeferencing "world" file for it using the information in the TAB file 2. You may have your false_easting and false_northing values swapped in the PROJECTION object of your map file. Double check with the CoordSys statement in t he TAB file. 3. No ellipse is given in the PROJECTION object. Add "ellps=clrk66" Since your output projection is the same as your input projection, you could just remove the two PROJECTION objects in your map file. You would stillneed to make a world file for the tiff file. Brent Fraser ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 31, 2005 8:19 AM Subject: [UMN_MAPSERVER-USERS] .map and .tab files Hi everyone I can not manage to draw a raster I have. This raster is a .tiff file that has associated this .tab file: !table !version 300 !charset WindowsLatin2 Definition T able File "praha.tif" Type "RASTER" (3445375,5560000) (0,0) Label "Pt 1", (3474000,5560000) (4507,0) Label "Pt 2", (3474000,5539250) (4507,3266) Label "Pt 3" CoordSys Earth Projection 8, 1001, "m", 15, 0, 1, 3500000, 0 Units "m" RasterStyle 7 0 When I put this data to the .map file I write it as: MAP NAME praha STATUS ON IMAGETYPE PNG SIZE 800 500 SHAPEPATH "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8" EXTENT 3445375 5539 250 3474000 5560000 UNITS METERS PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END WEB IMAGEPATH "/opt/SUNappserver /domains/domain1/applications/j2ee-modules/test8/" IMAGEURL "/test8/" END LAYER NAME "Nighttime lights" TYPE RASTER STATUS ON DATA "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/praha.tif " PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END END END Am I doing it correctly? Am I missing anything? Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From berend.veldkamp at ARIS.NL Wed Mar 9 03:02:59 2005 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Wed, 9 Mar 2005 12:02:59 +0100 Subject: Error message after uprade to MS 4.4.1 Message-ID: Hi, After upgrading MapServer from version 4.2 to 4.4.1, I suddenly get the following message when I query the ErrorObj: "Error in msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query." The map is drawn fine, so maybe the error object is not properly cleared? Here's my PHP code: setXY(400,300); $map->zoompoint(100,$pt,800,600,$map->extent); $img = $map->draw(); ?> code != MS_NOERR) { printf ("Error in %s: %s
\n", $error->routine, $error->message); $error = $error->next(); } ?> -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From bartvde at XS4ALL.NL Wed Mar 9 03:06:39 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 9 Mar 2005 12:06:39 +0100 Subject: Error message after uprade to MS 4.4.1 In-Reply-To: <422ED7E3.3060305@aris.nl> Message-ID: Hi Berend, this has been fixed by Frank Warmerdam and will be released in 4.4.2. See: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1118 There is also a thread about this in the archives (Feb 2005) named "msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query" Best regards, Bart > Hi, > > After upgrading MapServer from version 4.2 to 4.4.1, I suddenly get the > following message when I query the ErrorObj: > > "Error in msRASTERLayerOpen(): Attempt to open a RASTER layer, but this > is only supported after a raster query." > > The map is drawn fine, so maybe the error object is not properly cleared? > > Here's my PHP code: > > dl ("php_mapscript_44.dll"); > $map = ms_newMapObj("/path/to/map/my.map"); > $pt = ms_newPointObj(); > $pt->setXY(400,300); > $map->zoompoint(100,$pt,800,600,$map->extent); > $img = $map->draw(); > ?> > > > > > > $error = ms_GetErrorObj(); > while ($error && $error->code != MS_NOERR) { > printf ("Error in %s: %s
\n", $error->routine, $error->message); > $error = $error->next(); > } > ?> > > > > > > -- > ____________________________ > > Berend Veldkamp - ARIS > http://www.aris.nl/ > ____________________________ > From berend.veldkamp at ARIS.NL Wed Mar 9 03:11:41 2005 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Wed, 9 Mar 2005 12:11:41 +0100 Subject: Error message after uprade to MS 4.4.1 In-Reply-To: <9632.212.238.227.182.1110366399.squirrel@212.238.227.182> Message-ID: Hi Bart, Thanks for your fast reply (4 minutes!). Teaches me to *first* search the archives before hitting Send :") Regards, Berend bartvde at xs4all.nl wrote: > Hi Berend, > > this has been fixed by Frank Warmerdam and will be released in 4.4.2. > > See: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1118 > > There is also a thread about this in the archives (Feb 2005) named > "msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only > supported after a raster query" > > Best regards, > Bart > > -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From saintsjd at YAHOO.COM Wed Mar 9 06:52:50 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Wed, 9 Mar 2005 06:52:50 -0800 Subject: Python Mapscript QueryByPoint In-Reply-To: 6667 Message-ID: Thanks to the list, adding a blank template to my mapfile worked like a charm. Now I can access the resultset and call the function results.getResult(0). this object appears to only have a memeber variable called shapeindex. how can I use this information to get the other attribute fields from the dbf information in the shape file? thanks in advance Jon --- Eric Bridger wrote: > On Tue, 2005-03-08 at 07:49, Jon Saints wrote: > > I am having trouble querying a flat shapefile > using > > python mapscript with the queryByPoint function. > > > > My getResults always equals None. I believe my > trouble > > has something to do with: (from the swig > > documentation) "A query will not set results for a > > layer with a NULL 'template' attribute." > > > > I have tried using both map and pixel coords for > the > > point object. Both point objects, I am sure > intersect > > a feature of layer 0 on my map. > > > > I receive the error: > > "'NoneType' object has no attribute 'numresults'" > > > > My code: > > ------------------------------------------ > > #Map coords > > #click = pointObj() > > #click.x = 77.01 > > #click.y = 38.89 > > > > #pixel Coords > > click = pointObj() > > click.x = 300 > > click.y = 200 > > > > myMap.getLayer(0).queryByPoint( myMap, click, > > MS_SINGLE, 10.0 ) > > results = myMap.getLayer(0).getResults() > > output = results.numresults > > ------------------------------------------- > > > > > > excerpt from My mapfile: > > ------------------------------------------ > > LAYER > > NAME dcdem2000 > > TYPE POLYGON > > STATUS ON > > METADATA > > desc "Census Blocks" > > logo "test.jpg" > > END > > DATA "/home/jons/Data/DC/created/dcdem2000" > > CLASS > > NAME "Census Blocks 2000" > > COLOR 225 225 225 > > OUTLINECOLOR 100 100 100 > > END > > END > > ------------------------------------------ > > In your LAYER add TEMPLATE "ttt". > That will define a template and allow queries even > though you don't use > it. > > Eric > From sgillies at FRII.COM Wed Mar 9 06:56:33 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 9 Mar 2005 07:56:33 -0700 Subject: Python Mapscript QueryByPoint In-Reply-To: Message-ID: Jon, Check the querying howto under mapscript/doc. I am hosting an HTML version of the same doc at http://users.frii.com/sgillies/projects/mapscript/querying-HOWTO.html cheers, Sean On Mar 9, 2005, at 7:52 AM, Jon Saints wrote: > Thanks to the list, > > adding a blank template to my mapfile worked like a > charm. Now I can access the resultset and call the > function results.getResult(0). this object appears to > only have a memeber variable called shapeindex. > > how can I use this information to get the other > attribute fields from the dbf information in the shape > file? > > thanks in advance > Jon > > > --- Eric Bridger wrote: >> On Tue, 2005-03-08 at 07:49, Jon Saints wrote: >>> I am having trouble querying a flat shapefile >> using >>> python mapscript with the queryByPoint function. >>> >>> My getResults always equals None. I believe my >> trouble >>> has something to do with: (from the swig >>> documentation) "A query will not set results for a >>> layer with a NULL 'template' attribute." >>> >>> I have tried using both map and pixel coords for >> the >>> point object. Both point objects, I am sure >> intersect >>> a feature of layer 0 on my map. >>> >>> I receive the error: >>> "'NoneType' object has no attribute 'numresults'" >>> >>> My code: >>> ------------------------------------------ >>> #Map coords >>> #click = pointObj() >>> #click.x = 77.01 >>> #click.y = 38.89 >>> >>> #pixel Coords >>> click = pointObj() >>> click.x = 300 >>> click.y = 200 >>> >>> myMap.getLayer(0).queryByPoint( myMap, click, >>> MS_SINGLE, 10.0 ) >>> results = myMap.getLayer(0).getResults() >>> output = results.numresults >>> ------------------------------------------- >>> >>> >>> excerpt from My mapfile: >>> ------------------------------------------ >>> LAYER >>> NAME dcdem2000 >>> TYPE POLYGON >>> STATUS ON >>> METADATA >>> desc "Census Blocks" >>> logo "test.jpg" >>> END >>> DATA "/home/jons/Data/DC/created/dcdem2000" >>> CLASS >>> NAME "Census Blocks 2000" >>> COLOR 225 225 225 >>> OUTLINECOLOR 100 100 100 >>> END >>> END >>> ------------------------------------------ >> >> In your LAYER add TEMPLATE "ttt". >> That will define a template and allow queries even >> though you don't use >> it. >> >> Eric >> > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From bfraser at GEOANALYTIC.COM Wed Mar 9 07:18:55 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 9 Mar 2005 08:18:55 -0700 Subject: .map and .tab files Message-ID: Jose Luis, Make sure the .tfw files are in the same directory as the image files and named the same (except for the prefix part). For example, image1.tif image1.tfw image2.tif image2.tfw The tfw file is associated with the image file automatically based on the file name. Brent ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, March 09, 2005 3:59 AM Subject: Re: [UMN_MAPSERVER-USERS] .map and .tab files Hi Brent and all the rest. I have resolved the problem just as I told you, thanks to your solution, but I have a problem related to it, and I do not know how to solve it. In the begining I only was using one map, so I included the .tfw file manually en th WEB-INF directory and that was all. But now I use many maps, and I have to include the correct .tfw file depending on the map I use. So is there any mapserver instruction so I can associate the .tfw to the mapObj I am generating? Or what is the way of doing it? Thank you to all Jose Luis P.D. I am using Linux, and Mapserver 4.4.1 Brent Fraser wrote: For a world file description, have a look at: http://lists.umn.edu/cgi-bin/wa?A2=ind0501&L=mapserver-users&P=R31342&I=-3&X=5DD2E75F03 DF29CF75 Sorry about the ellps info (it's not Clark 1866). Your tab file shows 1001 as the datum code. From the MapInfo doc, this indicates a datum of Pulkovo 1942, which uses the the Krassovsky ellipsoid. Your PROJECTION object should i nclude the Proj4 keyword of "ellps=krass" Brent ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 31, 2005 8:52 AM Subject: Re: [UMN_MAPSERVER-USERS] .map and .tab files Sorry but I don't undersand what to do in point number 1. How can I do a .tfw file? How does it look like? and respect to point 3: how do you know which is the ellps parameter? Thanks Jose Luis Brent Fraser wrote: Jose Luis, Three possibilities: 1. The tiff might be a plain tiff, not a GeoTiff (with registration info attached as a TIFF tag). Make a .tfw georeferencing "world" file for i t using the information in the TAB file 2. You may have your false_easting and false_northing values swapped in the PROJECTION object of your map file. Double check with the CoordSys statement in t he TAB file. 3. No ellipse is gi ven in the PROJECTION object. Add "ellps=clrk66" Since your output projection is the same as your input projection, you could just remove the two PROJECTION objects in your map file. You would stillneed to make a world file for the tiff file. Brent Fraser ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 31, 2005 8:19 AM Subject: [UMN_MAPSERVER-USERS] .map and .tab files Hi everyone I can not manage to draw a raster I have. This raster is a .tiff file that has associated this .tab file: !table !version 300 !charset WindowsLatin2 Definition T able File "praha.tif" Type "RASTER" (3445375,5 560000) (0,0) Label "Pt 1", (3474000,5560000) (4507,0) Label "Pt 2", (3474000,5539250) (4507,3266) Label "Pt 3" CoordSys Earth Projection 8, 1001, "m", 15, 0, 1, 3500000, 0 Units "m" RasterStyle 7 0 When I put this data to the .map file I write it as: MAP NAME praha STATUS ON IMAGETYPE PNG SIZE 800 500 SHAPEPATH "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8" EXTENT 3445375 5539 250 3474000 5560000 UNITS METERS PROJECTION "pro j=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END WEB IMAGEPATH "/opt/SUNappserver /domains/domain1/applications/j2ee-modules/test8/" IMAGEURL "/test8/" END LAYER NAME "Nighttime lights" TYPE RASTER STATUS ON DATA "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/praha.tif " PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END END END Am I doing it correctly? Am I missin g anything? Thank you Jose Luis ------------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgis.lists at GMAIL.COM Wed Mar 9 07:36:34 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Wed, 9 Mar 2005 09:36:34 -0600 Subject: Javascript Woes Message-ID: I have written a dbox (or I should say a butchered version of dbox orignally based of the MNDNR Landview) application that is very heavily based on js and dhtml. It works great in firefox, but I am at my wits end to get the thing to even load into IE -- and the Microsoft Script Debugger is doing absolutely nothing to help me. I have an application with some layers gathered from PostGIS that often take a _long_ time to load. As such, to provide maximum usability, I split my layers into different mapfiles to be loaded separately. When the page loads, or the map is refreshed, all the maps are loaded -- but only turned on if they are selected (so non-selected layers continue to load in the background). It provides great usability because you can turn on/off layers and you get instant response. When zooming you get near instant feedback as the small layers refresh very quickly. And if you have one of the layers that takes a long time to load and you are trying to zoom to a particular place, you can zoom off the background layers before that layer has even loaded to the current extent. The application is at: http://maps.macnoise.com/mapserver/init1.php JS file locations are in the header of the page. If there is anybody who can help me get my js/dhtml debugged in IE, I'll by you a beer at the Users Meeting. Thanks, David From lisi at MYDELRAYBEACH.COM Wed Mar 9 07:31:40 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 9 Mar 2005 10:31:40 -0500 Subject: MapServer 4.4.1 Demo Message-ID: I've installed MapServer and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Now I am trying to get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, MapServer 4.4.1) Here are the steps I have taken: 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and gave the IUSR account Read/Write/Execute permissions 3. Set default page to INDEX.HTML in IIS 4. Changed Execute Permissions in IIS to allow SCRIPTS and EXECUTABLES. 5. Edited INDEX.HTML file as follows (edits in bold):
I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. 6. Edited INDEX.HTML file as follows (edits in bold): I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error: msLoadMap(): Unable to access file. (http:\\esgisrv001\workshop\itasca.map) Can anyone help? Thanks. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From saintsjd at YAHOO.COM Wed Mar 9 07:53:22 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Wed, 9 Mar 2005 07:53:22 -0800 Subject: Python Mapscript QueryByPoint In-Reply-To: 6667 Message-ID: this may be useful documentation for others: I can see the layer.getFeature(integer shapeindex, integer tileindex) function. I assume that the shapeindex is the index of a row in my shapefiles dbf. What does the tileindex represent? is it required for every shapefile query or just those that are raster tile indexes? Thanks --- Sean Gillies wrote: > Jon, > > Check the querying howto under mapscript/doc. I am > hosting an HTML > version of the same doc at > > > http://users.frii.com/sgillies/projects/mapscript/querying-HOWTO.html > > cheers, > Sean > > On Mar 9, 2005, at 7:52 AM, Jon Saints wrote: > > > Thanks to the list, > > > > adding a blank template to my mapfile worked like > a > > charm. Now I can access the resultset and call the > > function results.getResult(0). this object > appears to > > only have a memeber variable called shapeindex. > > > > how can I use this information to get the other > > attribute fields from the dbf information in the > shape > > file? > > > > thanks in advance > > Jon > > > > > > --- Eric Bridger wrote: > >> On Tue, 2005-03-08 at 07:49, Jon Saints wrote: > >>> I am having trouble querying a flat shapefile > >> using > >>> python mapscript with the queryByPoint function. > >>> > >>> My getResults always equals None. I believe my > >> trouble > >>> has something to do with: (from the swig > >>> documentation) "A query will not set results for > a > >>> layer with a NULL 'template' attribute." > >>> > >>> I have tried using both map and pixel coords for > >> the > >>> point object. Both point objects, I am sure > >> intersect > >>> a feature of layer 0 on my map. > >>> > >>> I receive the error: > >>> "'NoneType' object has no attribute > 'numresults'" > >>> > >>> My code: > >>> ------------------------------------------ > >>> #Map coords > >>> #click = pointObj() > >>> #click.x = 77.01 > >>> #click.y = 38.89 > >>> > >>> #pixel Coords > >>> click = pointObj() > >>> click.x = 300 > >>> click.y = 200 > >>> > >>> myMap.getLayer(0).queryByPoint( myMap, click, > >>> MS_SINGLE, 10.0 ) > >>> results = myMap.getLayer(0).getResults() > >>> output = results.numresults > >>> ------------------------------------------- > >>> > >>> > >>> excerpt from My mapfile: > >>> ------------------------------------------ > >>> LAYER > >>> NAME dcdem2000 > >>> TYPE POLYGON > >>> STATUS ON > >>> METADATA > >>> desc "Census Blocks" > >>> logo "test.jpg" > >>> END > >>> DATA "/home/jons/Data/DC/created/dcdem2000" > >>> CLASS > >>> NAME "Census Blocks 2000" > >>> COLOR 225 225 225 > >>> OUTLINECOLOR 100 100 100 > >>> END > >>> END > >>> ------------------------------------------ > >> > >> In your LAYER add TEMPLATE "ttt". > >> That will define a template and allow queries > even > >> though you don't use > >> it. > >> > >> Eric > >> > > > > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From stephane.riff at CERENE.FR Wed Mar 9 07:57:56 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Wed, 9 Mar 2005 16:57:56 +0100 Subject: LabelAngleItem question Message-ID: Hi, I want to orient symbols on map. So i create an annotation layer with a trueType symbols. My question is which value i have to insert in angle filed: 0 to 360 degres or -180 to 180 degres ??? Thanks From eric at GOMOOS.ORG Wed Mar 9 08:05:34 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Wed, 9 Mar 2005 11:05:34 -0500 Subject: LabelAngleItem question In-Reply-To: <422F1D04.6020807@cerene.fr> Message-ID: On Wed, 2005-03-09 at 10:57, St?phane RIFF wrote: > Hi, > I want to orient symbols on map. So > i create an annotation layer with a trueType symbols. > My question is which value i have to insert in angle filed: > 0 to 360 degres or -180 to 180 degres ??? > Thanks 0 to 360. From bfraser at GEOANALYTIC.COM Wed Mar 9 08:16:29 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 9 Mar 2005 09:16:29 -0700 Subject: MapServer 4.4.1 Demo Message-ID: Christine, In your first example it appears that mapserver was reading the map file but crashed for some reason. In the second example it couldn't find the map file because it expects a file system path not a url. So the first example is good, but the second is not (mapserver just handled the second case a lot better!). The crash is likely due to a missing dll required by mapserver. You can run mapserv.exe from the command line to get messages about missing dlls. Here are the steps: 1. Open a command prompt window on your server 2. cd to the location of mapserv.exe 3. type in mapserv QUERY_STRING=" 4. Copy the query string from the your browser address bar and paste it into the command window. The query string should look like: layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fworkshop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&map_web_template=itasca_basic.html 5. Add a double quote to the end of the string and press return. If a dll is missing, the operating system will show a dialog box giving the name of the dll. Brent Fraser ----- Original Message ----- From: Lisi, Christine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, March 09, 2005 8:31 AM Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo I've installed MapServer and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Now I am trying to get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, MapServer 4.4.1) Here are the steps I have taken: 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and gave the IUSR account Read/Write/Execute permissions 3. Set default page to INDEX.HTML in IIS 4. Changed Execute Permissions in IIS to allow SCRIPTS and EXECUTABLES. 5. Edited INDEX.HTML file as follows (edits in bold): I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. 6. Edited INDEX.HTML file as follows (edits in bold): I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error: msLoadMap(): Unable to access file. (http:\\esgisrv001\workshop\itasca.map) Can anyone help? Thanks. Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From wesp at GDV.COM Wed Mar 9 08:22:19 2005 From: wesp at GDV.COM (Oliver Wesp) Date: Wed, 9 Mar 2005 17:22:19 +0100 Subject: Javascript Woes In-Reply-To: <71c3c6c5050309073639c5f864@mail.gmail.com> Message-ID: Hello David, I agree that the script degbugger is not helping in any way. Seems to me as if IE doesn't like the following statement: const defaultextent=new Array(475600, 4961800, 492500, 4974600); Changing this to var defaultextent=new Array(475600, 4961800, 492500, 4974600); and the page is loading without any errors. Unfortunately that doesn't mean it's working but it's one step further. Seems to me as if there is still some work to do. But maybe it's just because I'm using a local copy. Oliver David Bitner schrieb: >I have written a dbox (or I should say a butchered version of dbox >orignally based of the MNDNR Landview) application that is very >heavily based on js and dhtml. It works great in firefox, but I am at >my wits end to get the thing to even load into IE -- and the Microsoft >Script Debugger is doing absolutely nothing to help me. > >I have an application with some layers gathered from PostGIS that >often take a _long_ time to load. As such, to provide maximum >usability, I split my layers into different mapfiles to be loaded >separately. When the page loads, or the map is refreshed, all the >maps are loaded -- but only turned on if they are selected (so >non-selected layers continue to load in the background). It provides >great usability because you can turn on/off layers and you get instant >response. When zooming you get near instant feedback as the small >layers refresh very quickly. And if you have one of the layers that >takes a long time to load and you are trying to zoom to a particular >place, you can zoom off the background layers before that layer has >even loaded to the current extent. > >The application is at: >http://maps.macnoise.com/mapserver/init1.php >JS file locations are in the header of the page. > >If there is anybody who can help me get my js/dhtml debugged in IE, >I'll by you a beer at the Users Meeting. > >Thanks, >David > > > > > -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com From eric at GOMOOS.ORG Wed Mar 9 08:23:55 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Wed, 9 Mar 2005 11:23:55 -0500 Subject: Python Mapscript QueryByPoint In-Reply-To: <48808284bd1bc5c0a347fdffa9d52159@frii.com> Message-ID: On Wed, 2005-03-09 at 09:56, Sean Gillies wrote: > Jon, > > Check the querying howto under mapscript/doc. I am hosting an HTML > version of the same doc at > > > http://users.frii.com/sgillies/projects/mapscript/querying-HOWTO.html > > cheers, > Sean > Sean's guide was a big help to me, though a little sparse on some of the finer details, in particular on how to get the field names as well as the values. So here's some Perl code: (only tested with shape files and PostGIS layers) $layer->open(); my $shape = $layer->getFeature($qid, $tid); if($shape) { for(my $i = 0; $i < $shape->{numvalues}; $i++) { my $val = $shape->getValue($i); my $name = $layer->getItem($i); print "$name = $val\n"; } } $data_layer->close(); HTH Eric P.S. the tile index is used in the getFeature call, but if you are not using tiled shape files it is probably not needed. I'm not sure. From lisi at MYDELRAYBEACH.COM Wed Mar 9 08:31:11 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 9 Mar 2005 11:31:11 -0500 Subject: MapServer 4.4.1 Demo Message-ID: I ran the mapserv QUERY_STRING and it returned to a command prompt with no errors. I guess I can assume that no .dll's are missing. Someone else on the list mentioned using forward slashes instead of backslashes in the html file variables. I will try that. If you have any input on that I would welcome it. Thanks, Brent. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Wednesday, March 09, 2005 11:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Christine, In your first example it appears that mapserver was reading the map file but crashed for some reason. In the second example it couldn't find the map file because it expects a file system path not a url. So the first example is good, but the second is not (mapserver just handled the second case a lot better!). The crash is likely due to a missing dll required by mapserver. You can run mapserv.exe from the command line to get messages about missing dlls. Here are the steps: 1. Open a command prompt window on your server 2. cd to the location of mapserv.exe 3. type in mapserv QUERY_STRING=" 4. Copy the query string from the your browser address bar and paste it into the command window. The query string should look like: layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m ap_web_template=itasca_basic.html 5. Add a double quote to the end of the string and press return. If a dll is missing, the operating system will show a dialog box giving the name of the dll. Brent Fraser ----- Original Message ----- From: Lisi, Christine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, March 09, 2005 8:31 AM Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo I've installed MapServer and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Now I am trying to get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, MapServer 4.4.1) Here are the steps I have taken: 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and gave the IUSR account Read/Write/Execute permissions 3. Set default page to INDEX.HTML in IIS 4. Changed Execute Permissions in IIS to allow SCRIPTS and EXECUTABLES. 5. Edited INDEX.HTML file as follows (edits in bold): I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. 6. Edited INDEX.HTML file as follows (edits in bold): I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error: msLoadMap(): Unable to access file. (http:\\esgisrv001\workshop\itasca.map) Can anyone help? Thanks. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lisi at MYDELRAYBEACH.COM Wed Mar 9 08:41:57 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 9 Mar 2005 11:41:57 -0500 Subject: MapServer 4.4.1 Demo Message-ID: Till, Can you send me your index.html file from the demo? This will help a lot. Thanks. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Till Adams [mailto:adams at terrestris.de] Sent: Wednesday, March 09, 2005 11:09 AM To: Lisi, Christine Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Dear Christine, maybe it's a good idea to use forward slashes ("/") in a web-environment instead of backward slashes ("\") ;-) Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * AmeiN! ArcGIS Map-Export-2-UMN * * AmeiN! Workshop 11. Mai 2005 * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * www.terrestris.de From bfraser at GEOANALYTIC.COM Wed Mar 9 08:47:12 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 9 Mar 2005 09:47:12 -0700 Subject: MapServer 4.4.1 Demo Message-ID: Christine, Did mapserv generate html when you executed it from the command prompt? The fact that mapserver didn't crash leads me to believe the problem is with the IIS configuration of the workshop demo directory, likely write access to the tmp directory. Did you set write access for the tmp directory using IIS Manager? Brent ----- Original Message ----- From: Lisi, Christine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, March 09, 2005 9:31 AM Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo I ran the mapserv QUERY_STRING and it returned to a command prompt with no errors. I guess I can assume that no .dll's are missing. Someone else on the list mentioned using forward slashes instead of backslashes in the html file variables. I will try that. If you have any input on that I would welcome it. Thanks, Brent. Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com ------------------------------------------------------------------------------ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Wednesday, March 09, 2005 11:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Christine, In your first example it appears that mapserver was reading the map file but crashed for some reason. In the second example it couldn't find the map file because it expects a file system path not a url. So the first example is good, but the second is not (mapserver just handled the second case a lot better!). The crash is likely due to a missing dll required by mapserver. You can run mapserv.exe from the command line to get messages about missing dlls. Here are the steps: 1. Open a command prompt window on your server 2. cd to the location of mapserv.exe 3. type in mapserv QUERY_STRING=" 4. Copy the query string from the your browser address bar and paste it into the command window. The query string should look like: layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fworkshop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&map_web_template=itasca_basic.html 5. Add a double quote to the end of the string and press return. If a dll is missing, the operating system will show a dialog box giving the name of the dll. Brent Fraser ----- Original Message ----- From: Lisi, Christine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, March 09, 2005 8:31 AM Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo I've installed MapServer and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Now I am trying to get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, MapServer 4.4.1) Here are the steps I have taken: 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and gave the IUSR account Read/Write/Execute permissions 3. Set default page to INDEX.HTML in IIS 4. Changed Execute Permissions in IIS to allow SCRIPTS and EXECUTABLES. 5. Edited INDEX.HTML file as follows (edits in bold): I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. 6. Edited INDEX.HTML file as follows (edits in bold): I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error: msLoadMap(): Unable to access file. (http:\\esgisrv001\workshop\itasca.map) Can anyone help? Thanks. Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lisi at MYDELRAYBEACH.COM Wed Mar 9 09:03:01 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 9 Mar 2005 12:03:01 -0500 Subject: MapServer 4.4.1 Demo Message-ID: I ran the following command at the command prompt: When I pressed Enter it hesitated for about 5 seconds and returned me back to a command prompt. If MapServer generated an html file, where would it put it? I hadn't applied the WRITE access in IIS, but instead applied it in the NTFS file system. I now have applied the WRITE access in IIS (see below): I still get the same error. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Wednesday, March 09, 2005 11:47 AM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Christine, Did mapserv generate html when you executed it from the command prompt? The fact that mapserver didn't crash leads me to believe the problem is with the IIS configuration of the workshop demo directory, likely write access to the tmp directory. Did you set write access for the tmp directory using IIS Manager? Brent ----- Original Message ----- From: Lisi, Christine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, March 09, 2005 9:31 AM Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo I ran the mapserv QUERY_STRING and it returned to a command prompt with no errors. I guess I can assume that no .dll's are missing. Someone else on the list mentioned using forward slashes instead of backslashes in the html file variables. I will try that. If you have any input on that I would welcome it. Thanks, Brent. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Wednesday, March 09, 2005 11:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Christine, In your first example it appears that mapserver was reading the map file but crashed for some reason. In the second example it couldn't find the map file because it expects a file system path not a url. So the first example is good, but the second is not (mapserver just handled the second case a lot better!). The crash is likely due to a missing dll required by mapserver. You can run mapserv.exe from the command line to get messages about missing dlls. Here are the steps: 1. Open a command prompt window on your server 2. cd to the location of mapserv.exe 3. type in mapserv QUERY_STRING=" 4. Copy the query string from the your browser address bar and paste it into the command window. The query string should look like: layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m ap_web_template=itasca_basic.html 5. Add a double quote to the end of the string and press return. If a dll is missing, the operating system will show a dialog box giving the name of the dll. Brent Fraser ----- Original Message ----- From: Lisi, Christine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, March 09, 2005 8:31 AM Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo I've installed MapServer and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Now I am trying to get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, MapServer 4.4.1) Here are the steps I have taken: 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and gave the IUSR account Read/Write/Execute permissions 3. Set default page to INDEX.HTML in IIS 4. Changed Execute Permissions in IIS to allow SCRIPTS and EXECUTABLES. 5. Edited INDEX.HTML file as follows (edits in bold): I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. 6. Edited INDEX.HTML file as follows (edits in bold): I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error: msLoadMap(): Unable to access file. (http:\\esgisrv001\workshop\itasca.map) Can anyone help? Thanks. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 42936 bytes Desc: image001.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 38223 bytes Desc: image002.jpg URL: From bfraser at GEOANALYTIC.COM Wed Mar 9 09:22:24 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 9 Mar 2005 10:22:24 -0700 Subject: MapServer 4.4.1 Demo Message-ID: Christine, Well that's strange. Mapserver is supposed to write the html to "standard out"; in this case to the command window. Perhaps enabling Mapserver debugging will help. Add "debug on" to the itasca.map file: SHAPEPATH "data" IMAGECOLOR 255 255 255 TEMPLATEPATTERN "itasca" IMAGETYPE PNG DEBUG on # On the command line add redirection of standard out to a file (e.g. temp.html): mapserv QUERY_STRING="layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fworkshop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&map_web_template=itasca_basic.html" > temp.html You should see something like: msDrawMap(): Layer 1 (ctybdpy2), 0.015s msDrawMap(): Layer 4 (lakespy2), 0.078s msDrawMap(): Layer 5 (dlgstln2), 0.047s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.234s in the command window. Brent ----- Original Message ----- From: Lisi, Christine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, March 09, 2005 10:03 AM Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo I ran the following command at the command prompt: When I pressed Enter it hesitated for about 5 seconds and returned me back to a command prompt. If MapServer generated an html file, where would it put it? I hadn't applied the WRITE access in IIS, but instead applied it in the NTFS file system. I now have applied the WRITE access in IIS (see below): I still get the same error. Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com ------------------------------------------------------------------------------ From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Wednesday, March 09, 2005 11:47 AM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Christine, Did mapserv generate html when you executed it from the command prompt? The fact that mapserver didn't crash leads me to believe the problem is with the IIS configuration of the workshop demo directory, likely write access to the tmp directory. Did you set write access for the tmp directory using IIS Manager? Brent ----- Original Message ----- From: Lisi, Christine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, March 09, 2005 9:31 AM Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo I ran the mapserv QUERY_STRING and it returned to a command prompt with no errors. I guess I can assume that no .dll's are missing. Someone else on the list mentioned using forward slashes instead of backslashes in the html file variables. I will try that. If you have any input on that I would welcome it. Thanks, Brent. Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com ---------------------------------------------------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Wednesday, March 09, 2005 11:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Christine, In your first example it appears that mapserver was reading the map file but crashed for some reason. In the second example it couldn't find the map file because it expects a file system path not a url. So the first example is good, but the second is not (mapserver just handled the second case a lot better!). The crash is likely due to a missing dll required by mapserver. You can run mapserv.exe from the command line to get messages about missing dlls. Here are the steps: 1. Open a command prompt window on your server 2. cd to the location of mapserv.exe 3. type in mapserv QUERY_STRING=" 4. Copy the query string from the your browser address bar and paste it into the command window. The query string should look like: layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fworkshop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&map_web_template=itasca_basic.html 5. Add a double quote to the end of the string and press return. If a dll is missing, the operating system will show a dialog box giving the name of the dll. Brent Fraser ----- Original Message ----- From: Lisi, Christine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, March 09, 2005 8:31 AM Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo I've installed MapServer and successfully received the "No query information to decode. QUERY_STRING is set, but empty." message. Now I am trying to get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, MapServer 4.4.1) Here are the steps I have taken: 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and gave the IUSR account Read/Write/Execute permissions 3. Set default page to INDEX.HTML in IIS 4. Changed Execute Permissions in IIS to allow SCRIPTS and EXECUTABLES. 5. Edited INDEX.HTML file as follows (edits in bold): I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. 6. Edited INDEX.HTML file as follows (edits in bold): I get the MapServer Itasca Application initial screen, but when I click to initialize the BASIC APPLICATION using these variables I receive the following error: msLoadMap(): Unable to access file. (http:\\esgisrv001\workshop\itasca.map) Can anyone help? Thanks. Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 42936 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 38223 bytes Desc: not available URL: From kenlord at GMAIL.COM Wed Mar 9 09:32:31 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 9 Mar 2005 09:32:31 -0800 Subject: MapServer 4.4.1 Demo In-Reply-To: Message-ID: Hi! This problem has come up a few times in the last couple weeks for several people. I worked through it myself. It seems to be a problem with how the current windows binaries available from the mapserver homepage were compiled. Download mapserver 4.4.1 from www.maptools.org/dl Use the mapserv.exe and the .dll'sthat are contained within the zip files that are included in that package. This version appears to have been compiled so that it is less dependant on external dll's, using a larger exe and fewer dll's. ... and it works. So, this is the 3rd or 4th time this has come up on the list. Think it's time to take down/replace the current windows binaries available at the mapserver homepage? Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine wrote: > > > I ran the following command at the command prompt: > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and returned me back > to a command prompt. If MapServer generated an html file, where would it > put it? > > > > I hadn't applied the WRITE access in IIS, but instead applied it in the NTFS > file system. I now have applied the WRITE access in IIS (see below): > > > > > > > > I still get the same error. > > > > > Christine Lisi > Application Specialist > > Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, > Delray Beach, FL 33444 > > Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com > ________________________________ > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Wednesday, March 09, 2005 11:47 AM > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > Christine, > > > > > > Did mapserv generate html when you executed it from the command prompt? > > > > > > The fact that mapserver didn't crash leads me to believe the problem is with > the IIS configuration of the workshop demo directory, likely write access to > the tmp directory. Did you set write access for the tmp directory using IIS > Manager? > > > > > > Brent > > > > > > ----- Original Message ----- > > > From: Lisi, Christine > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > I ran the mapserv QUERY_STRING and it returned to a command prompt with no > errors. I guess I can assume that no .dll's are missing. Someone else on > the list mentioned using forward slashes instead of backslashes in the html > file variables. I will try that. If you have any input on that I would > welcome it. > > > > Thanks, Brent. > > > Christine Lisi > Application Specialist > > Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, > Delray Beach, FL 33444 > > Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com > ________________________________ > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Brent Fraser > Sent: Wednesday, March 09, 2005 11:16 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > Christine, > > > > > > In your first example it appears that mapserver was reading the map file > but crashed for some reason. In the second example it couldn't find the map > file because it expects a file system path not a url. So the first example > is good, but the second is not (mapserver just handled the second case a lot > better!). > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > You can run mapserv.exe from the command line to get messages about missing > dlls. Here are the steps: > > > > > > 1. Open a command prompt window on your server > > > 2. cd to the location of mapserv.exe > > > 3. type in > > > mapserv QUERY_STRING=" > > > > > > 4. Copy the query string from the your browser address bar and paste it > into the command window. The query string should look like: > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fworkshop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&map_web_template=itasca_basic.html > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > If a dll is missing, the operating system will show a dialog box giving the > name of the dll. > > > > > > Brent Fraser > > > > > > > > > > > > ----- Original Message ----- > > > From: Lisi, Christine > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > I've installed MapServer and successfully received the "No query information > to decode. QUERY_STRING is set, but empty." message. Now I am trying to > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, MapServer > 4.4.1) > > > > Here are the steps I have taken: > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and gave > the IUSR account Read/Write/Execute permissions > > 3. Set default page to INDEX.HTML in IIS > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > EXECUTABLES. > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" onSubmit="submit_form()"> > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > I get the MapServer Itasca Application initial screen, but when I click to > initialize the BASIC APPLICATION using these variables I receive the > following error: > > CGI Error > > The specified CGI application misbehaved by not returning a complete set of > HTTP headers. > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" onSubmit="submit_form()"> > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > value="http:\\esgisrv001\workshop\tmp\"> > > value="http:\\esgisrv001\workshop\tmp\"> > > > > I get the MapServer Itasca Application initial screen, but when I click to > initialize the BASIC APPLICATION using these variables I receive the > following error: > > > > msLoadMap(): Unable to access file. (http:\\esgisrv001\workshop\itasca.map) > > > > Can anyone help? > > > > Thanks. > > Christine Lisi > Application Specialist > > Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, > Delray Beach, FL 33444 > > Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com > > From osgis.lists at GMAIL.COM Wed Mar 9 10:24:56 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Wed, 9 Mar 2005 12:24:56 -0600 Subject: Javascript Woes In-Reply-To: <422F22BB.3070108@gdv.com> Message-ID: Removing the const and replacing it with var got it to load, now I've just got to get the events to register and the maps to draw -- at least with those, I know where to start looking... Thanks From mark at MARKRODRIGO.COM Wed Mar 9 10:31:40 2005 From: mark at MARKRODRIGO.COM (Mark Rodrigo) Date: Wed, 9 Mar 2005 12:31:40 -0600 Subject: Arizona Geographic Information Council (AGIC) Presentation Message-ID: -- Hello All: I think I gave a pretty good presentation for MapServer last week, so I am sharing a link to the PowerPoint. Feel free to use it at will. I gave special kudos to the Canadians and the folks at DM Solutions in the presentation. http://agic.az.gov/usergroup/ Thanks Mark P.S. To the powers that be, add it to the PowerPoints on the MapServer site if it looks good enough. From lisi at MYDELRAYBEACH.COM Wed Mar 9 11:01:19 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 9 Mar 2005 14:01:19 -0500 Subject: MapServer 4.4.1 Demo Message-ID: Thanks for this information, Ken. I just want to make sure I've got this right. The download includes many files, but you say to just replace the mapserv.exe and any .dll's included in the download from maptools.org? If this is correct then I will be replacing the following files in my existing MapServer folder: Mapserv.exe Gdal12.dll NCScnet.dll NCSEcw.dll NCSEcwC.dll NCSUtil.dll Libcurl.dll Libpq.dll Pdflib.dll Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Wednesday, March 09, 2005 12:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Hi! This problem has come up a few times in the last couple weeks for several people. I worked through it myself. It seems to be a problem with how the current windows binaries available from the mapserver homepage were compiled. Download mapserver 4.4.1 from www.maptools.org/dl Use the mapserv.exe and the .dll'sthat are contained within the zip files that are included in that package. This version appears to have been compiled so that it is less dependant on external dll's, using a larger exe and fewer dll's. ... and it works. So, this is the 3rd or 4th time this has come up on the list. Think it's time to take down/replace the current windows binaries available at the mapserver homepage? Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine wrote: > > > I ran the following command at the command prompt: > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and returned me back > to a command prompt. If MapServer generated an html file, where would it > put it? > > > > I hadn't applied the WRITE access in IIS, but instead applied it in the NTFS > file system. I now have applied the WRITE access in IIS (see below): > > > > > > > > I still get the same error. > > > > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First Avenue, > Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > ________________________________ > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Wednesday, March 09, 2005 11:47 AM > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > Christine, > > > > > > Did mapserv generate html when you executed it from the command prompt? > > > > > > The fact that mapserver didn't crash leads me to believe the problem is with > the IIS configuration of the workshop demo directory, likely write access to > the tmp directory. Did you set write access for the tmp directory using IIS > Manager? > > > > > > Brent > > > > > > ----- Original Message ----- > > > From: Lisi, Christine > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > I ran the mapserv QUERY_STRING and it returned to a command prompt with no > errors. I guess I can assume that no .dll's are missing. Someone else on > the list mentioned using forward slashes instead of backslashes in the html > file variables. I will try that. If you have any input on that I would > welcome it. > > > > Thanks, Brent. > > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First Avenue, > Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > ________________________________ > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Brent Fraser > Sent: Wednesday, March 09, 2005 11:16 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > Christine, > > > > > > In your first example it appears that mapserver was reading the map file > but crashed for some reason. In the second example it couldn't find the map > file because it expects a file system path not a url. So the first example > is good, but the second is not (mapserver just handled the second case a lot > better!). > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > You can run mapserv.exe from the command line to get messages about missing > dlls. Here are the steps: > > > > > > 1. Open a command prompt window on your server > > > 2. cd to the location of mapserv.exe > > > 3. type in > > > mapserv QUERY_STRING=" > > > > > > 4. Copy the query string from the your browser address bar and paste it > into the command window. The query string should look like: > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m ap_web_template=itasca_basic.html > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > If a dll is missing, the operating system will show a dialog box giving the > name of the dll. > > > > > > Brent Fraser > > > > > > > > > > > > ----- Original Message ----- > > > From: Lisi, Christine > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > I've installed MapServer and successfully received the "No query information > to decode. QUERY_STRING is set, but empty." message. Now I am trying to > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, MapServer > 4.4.1) > > > > Here are the steps I have taken: > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and gave > the IUSR account Read/Write/Execute permissions > > 3. Set default page to INDEX.HTML in IIS > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > EXECUTABLES. > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" onSubmit="submit_form()"> > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > I get the MapServer Itasca Application initial screen, but when I click to > initialize the BASIC APPLICATION using these variables I receive the > following error: > > CGI Error > > The specified CGI application misbehaved by not returning a complete set of > HTTP headers. > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" onSubmit="submit_form()"> > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > value="http:\\esgisrv001\workshop\tmp\"> > > value="http:\\esgisrv001\workshop\tmp\"> > > > > I get the MapServer Itasca Application initial screen, but when I click to > initialize the BASIC APPLICATION using these variables I receive the > following error: > > > > msLoadMap(): Unable to access file. (http:\\esgisrv001\workshop\itasca.map) > > > > Can anyone help? > > > > Thanks. > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First Avenue, > Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > From pauljame at GMAIL.COM Wed Mar 9 11:11:24 2005 From: pauljame at GMAIL.COM (Paul james) Date: Wed, 9 Mar 2005 16:11:24 -0300 Subject: get a selected point ... Message-ID: Hi, I developing an asp mapserver app with mapscript(csharp)... I have my map in web and I?d like to know how get a map?s selected point (with mapscript) ... From kenlord at GMAIL.COM Wed Mar 9 12:09:07 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 9 Mar 2005 12:09:07 -0800 Subject: MapServer 4.4.1 Demo In-Reply-To: Message-ID: Hi Christine, Yes, thats right. That made it work for me on both a windows 2000 and windows XP Pro SP1 installation. There's no harm in leaving both the xerces dll's incase you have some other application using the newer version. Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine wrote: > Thanks for this information, Ken. I just want to make sure I've got > this right. The download includes many files, but you say to just > replace the mapserv.exe and any .dll's included in the download from > maptools.org? If this is correct then I will be replacing the following > files in my existing MapServer folder: > > Mapserv.exe > Gdal12.dll > NCScnet.dll > NCSEcw.dll > NCSEcwC.dll > NCSUtil.dll > Libcurl.dll > Libpq.dll > Pdflib.dll > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Ken Lord > Sent: Wednesday, March 09, 2005 12:33 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > Hi! > > This problem has come up a few times in the last couple weeks for > several people. I worked through it myself. > > It seems to be a problem with how the current windows binaries > available from the mapserver homepage were compiled. > > Download mapserver 4.4.1 from www.maptools.org/dl > > Use the mapserv.exe and the .dll'sthat are contained within the zip > files that are included in that package. > > This version appears to have been compiled so that it is less > dependant on external dll's, using a larger exe and fewer dll's. > > ... and it works. > > So, this is the 3rd or 4th time this has come up on the list. Think > it's time to take down/replace the current windows binaries available > at the mapserver homepage? > > Cheers, > Ken Lord > Vancouver BC > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > wrote: > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and returned me > back > > to a command prompt. If MapServer generated an html file, where would > it > > put it? > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied it in > the NTFS > > file system. I now have applied the WRITE access in IIS (see below): > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, > > Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > ________________________________ > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > Sent: Wednesday, March 09, 2005 11:47 AM > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > Did mapserv generate html when you executed it from the command > prompt? > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the problem > is with > > the IIS configuration of the workshop demo directory, likely write > access to > > the tmp directory. Did you set write access for the tmp directory > using IIS > > Manager? > > > > > > > > > > > > Brent > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: Lisi, Christine > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command prompt > with no > > errors. I guess I can assume that no .dll's are missing. Someone > else on > > the list mentioned using forward slashes instead of backslashes in the > html > > file variables. I will try that. If you have any input on that I > would > > welcome it. > > > > > > > > Thanks, Brent. > > > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, > > Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > ________________________________ > > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > > Behalf Of Brent Fraser > > Sent: Wednesday, March 09, 2005 11:16 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > Christine, > > > > > > > > > > > > In your first example it appears that mapserver was reading the map > file > > but crashed for some reason. In the second example it couldn't find > the map > > file because it expects a file system path not a url. So the first > example > > is good, but the second is not (mapserver just handled the second case > a lot > > better!). > > > > > > > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages about > missing > > dlls. Here are the steps: > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > 2. cd to the location of mapserv.exe > > > > > > 3. type in > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > 4. Copy the query string from the your browser address bar and paste > it > > into the command window. The query string should look like: > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > ap_web_template=itasca_basic.html > > > > > > > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog box > giving the > > name of the dll. > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: Lisi, Christine > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > I've installed MapServer and successfully received the "No query > information > > to decode. QUERY_STRING is set, but empty." message. Now I am trying > to > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, > MapServer > > 4.4.1) > > > > > > > > Here are the steps I have taken: > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and > gave > > the IUSR account Read/Write/Execute permissions > > > > 3. Set default page to INDEX.HTML in IIS > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > > EXECUTABLES. > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > click to > > initialize the BASIC APPLICATION using these variables I receive the > > following error: > > > > CGI Error > > > > The specified CGI application misbehaved by not returning a complete > set of > > HTTP headers. > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > value="http:\\esgisrv001\workshop\"> > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > click to > > initialize the BASIC APPLICATION using these variables I receive the > > following error: > > > > > > > > msLoadMap(): Unable to access file. > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > Can anyone help? > > > > > > > > Thanks. > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, > > Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > > > > From lisi at MYDELRAYBEACH.COM Wed Mar 9 12:21:06 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 9 Mar 2005 15:21:06 -0500 Subject: MapServer 4.4.1 Demo Message-ID: This worked, Ken, so thank you SOOOO much. It works when I run it from the web server. But here's my dilemma now. I am not an HTML programmer and I need to know what syntax to use in the INDEX.HTML file so that this demo is available INTERNALLY over the web. If I use the full paths in the INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the error that the map cannot be found. Can you tell me the syntax to use for the paths in this section of the HTML file: Your help is GREATLY appreciated. Thanks. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ken Lord [mailto:kenlord at gmail.com] Sent: Wednesday, March 09, 2005 3:09 PM To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Hi Christine, Yes, thats right. That made it work for me on both a windows 2000 and windows XP Pro SP1 installation. There's no harm in leaving both the xerces dll's incase you have some other application using the newer version. Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine wrote: > Thanks for this information, Ken. I just want to make sure I've got > this right. The download includes many files, but you say to just > replace the mapserv.exe and any .dll's included in the download from > maptools.org? If this is correct then I will be replacing the following > files in my existing MapServer folder: > > Mapserv.exe > Gdal12.dll > NCScnet.dll > NCSEcw.dll > NCSEcwC.dll > NCSUtil.dll > Libcurl.dll > Libpq.dll > Pdflib.dll > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Ken Lord > Sent: Wednesday, March 09, 2005 12:33 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > Hi! > > This problem has come up a few times in the last couple weeks for > several people. I worked through it myself. > > It seems to be a problem with how the current windows binaries > available from the mapserver homepage were compiled. > > Download mapserver 4.4.1 from www.maptools.org/dl > > Use the mapserv.exe and the .dll'sthat are contained within the zip > files that are included in that package. > > This version appears to have been compiled so that it is less > dependant on external dll's, using a larger exe and fewer dll's. > > ... and it works. > > So, this is the 3rd or 4th time this has come up on the list. Think > it's time to take down/replace the current windows binaries available > at the mapserver homepage? > > Cheers, > Ken Lord > Vancouver BC > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > wrote: > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and returned me > back > > to a command prompt. If MapServer generated an html file, where would > it > > put it? > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied it in > the NTFS > > file system. I now have applied the WRITE access in IIS (see below): > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, > > Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > ________________________________ > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > Sent: Wednesday, March 09, 2005 11:47 AM > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > Did mapserv generate html when you executed it from the command > prompt? > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the problem > is with > > the IIS configuration of the workshop demo directory, likely write > access to > > the tmp directory. Did you set write access for the tmp directory > using IIS > > Manager? > > > > > > > > > > > > Brent > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: Lisi, Christine > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command prompt > with no > > errors. I guess I can assume that no .dll's are missing. Someone > else on > > the list mentioned using forward slashes instead of backslashes in the > html > > file variables. I will try that. If you have any input on that I > would > > welcome it. > > > > > > > > Thanks, Brent. > > > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, > > Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > ________________________________ > > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > > Behalf Of Brent Fraser > > Sent: Wednesday, March 09, 2005 11:16 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > Christine, > > > > > > > > > > > > In your first example it appears that mapserver was reading the map > file > > but crashed for some reason. In the second example it couldn't find > the map > > file because it expects a file system path not a url. So the first > example > > is good, but the second is not (mapserver just handled the second case > a lot > > better!). > > > > > > > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages about > missing > > dlls. Here are the steps: > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > 2. cd to the location of mapserv.exe > > > > > > 3. type in > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > 4. Copy the query string from the your browser address bar and paste > it > > into the command window. The query string should look like: > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > ap_web_template=itasca_basic.html > > > > > > > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog box > giving the > > name of the dll. > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: Lisi, Christine > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > I've installed MapServer and successfully received the "No query > information > > to decode. QUERY_STRING is set, but empty." message. Now I am trying > to > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, > MapServer > > 4.4.1) > > > > > > > > Here are the steps I have taken: > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and > gave > > the IUSR account Read/Write/Execute permissions > > > > 3. Set default page to INDEX.HTML in IIS > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > > EXECUTABLES. > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > click to > > initialize the BASIC APPLICATION using these variables I receive the > > following error: > > > > CGI Error > > > > The specified CGI application misbehaved by not returning a complete > set of > > HTTP headers. > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > value="http:\\esgisrv001\workshop\"> > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > click to > > initialize the BASIC APPLICATION using these variables I receive the > > following error: > > > > > > > > msLoadMap(): Unable to access file. > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > Can anyone help? > > > > > > > > Thanks. > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, > > Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenlord at GMAIL.COM Wed Mar 9 12:42:51 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 9 Mar 2005 12:42:51 -0800 Subject: MapServer 4.4.1 Demo In-Reply-To: Message-ID: Great! I'm not a contributor to mapserver code etc, so I'm glad I was able to give a little back by helping you make it work. I have setup mapserver to run as an intranet application, its not too tricky, and the great thing is that over a LAN, it will run amazingly fast. In your index.html file, and your .map file (and anywhere else if needed) you need to change some web addresses to point at the local network IP address of the computer hosting mapserver. Here's the setttings I used: . . . . and in the map file.. IMAGEURL "http://192.168.1.103/Mining/temp/" Then just view the index.html file in your webbrowser using the appropriate address http://192....../yourfolders/index.html The 192 domain is reserved for internal networks, anyone trying to get to the application from outside your network will just get an error since that address would point them to a machine on their own internal network if it exists. I'm no expert on network things but this worked for me. If there's any important considerations I've overlooked, hopefully someone else will add them. Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 15:19:31 -0500, Lisi, Christine wrote: > > > This worked, Ken, so thank you SOOOO much. It works when I run it from the > web server. But here's my dilemma now. I am not an HTML programmer and I > need to know what syntax to use in the INDEX.HTML file so that this demo is > available INTERNALLY over the web. If I use the full paths in the > INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the error > that the map cannot be found. Can you tell me the syntax to use for the > paths in this section of the HTML file: > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\itasca.map"> > > value="\\esgisrv001\inetpub\wwwroot\cgi-bin\mapserv.exe"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > Your help is GREATLY appreciated. > > > > Thanks. > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems ? City of Delray Beach ? 100 NW First Avenue, > Delray Beach, FL 33444 > > > > Phone, 561-243-7142 ? Fax, 561-243-7166 ? eMail, Lisi at MyDelrayBeach.com > > > > > > > -----Original Message----- > From: Ken Lord [mailto:kenlord at gmail.com] > Sent: Wednesday, March 09, 2005 3:09 PM > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > Hi Christine, > > > > Yes, thats right. That made it work for me on both a windows 2000 and > > windows XP Pro SP1 installation. > > > > There's no harm in leaving both the xerces dll's incase you have some > > other application using the newer version. > > > > Cheers, > > Ken Lord > > Vancouver BC > > > > On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine > > wrote: > > > Thanks for this information, Ken. I just want to make sure I've got > > > this right. The download includes many files, but you say to just > > > replace the mapserv.exe and any .dll's included in the download from > > > maptools.org? If this is correct then I will be replacing the following > > > files in my existing MapServer folder: > > > > > > Mapserv.exe > > > Gdal12.dll > > > NCScnet.dll > > > NCSEcw.dll > > > NCSEcwC.dll > > > NCSUtil.dll > > > Libcurl.dll > > > Libpq.dll > > > Pdflib.dll > > > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > > > > > > > Christine Lisi > > > Application Specialist > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, Delray Beach, FL 33444 > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > > > > -----Original Message----- > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > Behalf Of Ken Lord > > > Sent: Wednesday, March 09, 2005 12:33 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > Hi! > > > > > > This problem has come up a few times in the last couple weeks for > > > several people. I worked through it myself. > > > > > > It seems to be a problem with how the current windows binaries > > > available from the mapserver homepage were compiled. > > > > > > Download mapserver 4.4.1 from www.maptools.org/dl > > > > > > Use the mapserv.exe and the .dll'sthat are contained within the zip > > > files that are included in that package. > > > > > > This version appears to have been compiled so that it is less > > > dependant on external dll's, using a larger exe and fewer dll's. > > > > > > ... and it works. > > > > > > So, this is the 3rd or 4th time this has come up on the list. Think > > > it's time to take down/replace the current windows binaries available > > > at the mapserver homepage? > > > > > > Cheers, > > > Ken Lord > > > Vancouver BC > > > > > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > > > wrote: > > > > > > > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and returned me > > > back > > > > to a command prompt. If MapServer generated an html file, where would > > > it > > > > put it? > > > > > > > > > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied it in > > > the NTFS > > > > file system. I now have applied the WRITE access in IIS (see below): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > ________________________________ > > > > > > > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > > > Sent: Wednesday, March 09, 2005 11:47 AM > > > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > Did mapserv generate html when you executed it from the command > > > prompt? > > > > > > > > > > > > > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the problem > > > is with > > > > the IIS configuration of the workshop demo directory, likely write > > > access to > > > > the tmp directory. Did you set write access for the tmp directory > > > using IIS > > > > Manager? > > > > > > > > > > > > > > > > > > > > > > > > Brent > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command prompt > > > with no > > > > errors. I guess I can assume that no .dll's are missing. Someone > > > else on > > > > the list mentioned using forward slashes instead of backslashes in the > > > html > > > > file variables. I will try that. If you have any input on that I > > > would > > > > welcome it. > > > > > > > > > > > > > > > > Thanks, Brent. > > > > > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > ________________________________ > > > > > > > > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > On > > > > Behalf Of Brent Fraser > > > > Sent: Wednesday, March 09, 2005 11:16 AM > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > In your first example it appears that mapserver was reading the map > > > file > > > > but crashed for some reason. In the second example it couldn't find > > > the map > > > > file because it expects a file system path not a url. So the first > > > example > > > > is good, but the second is not (mapserver just handled the second case > > > a lot > > > > better!). > > > > > > > > > > > > > > > > > > > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > > > > > > > > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages about > > > missing > > > > dlls. Here are the steps: > > > > > > > > > > > > > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > > > > > > > 2. cd to the location of mapserv.exe > > > > > > > > > > > > 3. type in > > > > > > > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > > > > > > > > > > > > > 4. Copy the query string from the your browser address bar and paste > > > it > > > > into the command window. The query string should look like: > > > > > > > > > > > > > > > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > > > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > > > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > > > ap_web_template=itasca_basic.html > > > > > > > > > > > > > > > > > > > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > > > > > > > > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog box > > > giving the > > > > name of the dll. > > > > > > > > > > > > > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > I've installed MapServer and successfully received the "No query > > > information > > > > to decode. QUERY_STRING is set, but empty." message. Now I am trying > > > to > > > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, > > > MapServer > > > > 4.4.1) > > > > > > > > > > > > > > > > Here are the steps I have taken: > > > > > > > > > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > > > > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and > > > gave > > > > the IUSR account Read/Write/Execute permissions > > > > > > > > 3. Set default page to INDEX.HTML in IIS > > > > > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > > > > EXECUTABLES. > > > > > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > click to > > > > initialize the BASIC APPLICATION using these variables I receive the > > > > following error: > > > > > > > > CGI Error > > > > > > > > The specified CGI application misbehaved by not returning a complete > > > set of > > > > HTTP headers. > > > > > > > > > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > > > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > > > > > > > value="http:\\esgisrv001\workshop\"> > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > click to > > > > initialize the BASIC APPLICATION using these variables I receive the > > > > following error: > > > > > > > > > > > > > > > > msLoadMap(): Unable to access file. > > > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > > > > > > > > > Can anyone help? > > > > > > > > > > > > > > > > Thanks. > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > > From sysadmin at SATSHOT.COM Wed Mar 9 13:27:33 2005 From: sysadmin at SATSHOT.COM (Avi A Blackmore) Date: Wed, 9 Mar 2005 15:27:33 -0600 Subject: Odd mapserv CGI problem Message-ID: I'm having a very peculiar problem with Mapserver 4.0.1. Given a valid mapfile, which points to valid index and shape files (for vector layers), the shp2img program returns the correct image. However, when I try to run the same query (same extents, map file, and the like) through the CGI mapserv program via a browser, the program returns...a copy of itself. As in, a copy of the ELF 32-bit binary executable. I have no idea whatsoever why it does this, especially since the mapfile is known to be correct (it's automatically generated by a Java webapp), and works for shp2img. Any ideas on where to start looking? Thanks, Avi Blackmore Agri ImaGIS Technologies System Administrator From lisi at MYDELRAYBEACH.COM Wed Mar 9 13:37:37 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 9 Mar 2005 16:37:37 -0500 Subject: MapServer 4.4.1 Demo Message-ID: I'm really struggling here. I about at my wits end. I tried every which path. The only way I get a map at all is if I use the full path of c:\... to point to the map file and it only works on the local server. Maybe I have a rights issue? Can you share with me your rights (NTFS and IIS) on your mining folder? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Wednesday, March 09, 2005 3:43 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Great! I'm not a contributor to mapserver code etc, so I'm glad I was able to give a little back by helping you make it work. I have setup mapserver to run as an intranet application, its not too tricky, and the great thing is that over a LAN, it will run amazingly fast. In your index.html file, and your .map file (and anywhere else if needed) you need to change some web addresses to point at the local network IP address of the computer hosting mapserver. Here's the setttings I used: . . . . and in the map file.. IMAGEURL "http://192.168.1.103/Mining/temp/" Then just view the index.html file in your webbrowser using the appropriate address http://192....../yourfolders/index.html The 192 domain is reserved for internal networks, anyone trying to get to the application from outside your network will just get an error since that address would point them to a machine on their own internal network if it exists. I'm no expert on network things but this worked for me. If there's any important considerations I've overlooked, hopefully someone else will add them. Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 15:19:31 -0500, Lisi, Christine wrote: > > > This worked, Ken, so thank you SOOOO much. It works when I run it from the > web server. But here's my dilemma now. I am not an HTML programmer and I > need to know what syntax to use in the INDEX.HTML file so that this demo is > available INTERNALLY over the web. If I use the full paths in the > INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the error > that the map cannot be found. Can you tell me the syntax to use for the > paths in this section of the HTML file: > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\itasca.map"> > > value="\\esgisrv001\inetpub\wwwroot\cgi-bin\mapserv.exe"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > Your help is GREATLY appreciated. > > > > Thanks. > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First Avenue, > Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > > > > > -----Original Message----- > From: Ken Lord [mailto:kenlord at gmail.com] > Sent: Wednesday, March 09, 2005 3:09 PM > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > Hi Christine, > > > > Yes, thats right. That made it work for me on both a windows 2000 and > > windows XP Pro SP1 installation. > > > > There's no harm in leaving both the xerces dll's incase you have some > > other application using the newer version. > > > > Cheers, > > Ken Lord > > Vancouver BC > > > > On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine > > wrote: > > > Thanks for this information, Ken. I just want to make sure I've got > > > this right. The download includes many files, but you say to just > > > replace the mapserv.exe and any .dll's included in the download from > > > maptools.org? If this is correct then I will be replacing the following > > > files in my existing MapServer folder: > > > > > > Mapserv.exe > > > Gdal12.dll > > > NCScnet.dll > > > NCSEcw.dll > > > NCSEcwC.dll > > > NCSUtil.dll > > > Libcurl.dll > > > Libpq.dll > > > Pdflib.dll > > > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > > > > > > > Christine Lisi > > > Application Specialist > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, Delray Beach, FL 33444 > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > > > > -----Original Message----- > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > Behalf Of Ken Lord > > > Sent: Wednesday, March 09, 2005 12:33 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > Hi! > > > > > > This problem has come up a few times in the last couple weeks for > > > several people. I worked through it myself. > > > > > > It seems to be a problem with how the current windows binaries > > > available from the mapserver homepage were compiled. > > > > > > Download mapserver 4.4.1 from www.maptools.org/dl > > > > > > Use the mapserv.exe and the .dll'sthat are contained within the zip > > > files that are included in that package. > > > > > > This version appears to have been compiled so that it is less > > > dependant on external dll's, using a larger exe and fewer dll's. > > > > > > ... and it works. > > > > > > So, this is the 3rd or 4th time this has come up on the list. Think > > > it's time to take down/replace the current windows binaries available > > > at the mapserver homepage? > > > > > > Cheers, > > > Ken Lord > > > Vancouver BC > > > > > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > > > wrote: > > > > > > > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and returned me > > > back > > > > to a command prompt. If MapServer generated an html file, where would > > > it > > > > put it? > > > > > > > > > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied it in > > > the NTFS > > > > file system. I now have applied the WRITE access in IIS (see below): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > ________________________________ > > > > > > > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > > > Sent: Wednesday, March 09, 2005 11:47 AM > > > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > Did mapserv generate html when you executed it from the command > > > prompt? > > > > > > > > > > > > > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the problem > > > is with > > > > the IIS configuration of the workshop demo directory, likely write > > > access to > > > > the tmp directory. Did you set write access for the tmp directory > > > using IIS > > > > Manager? > > > > > > > > > > > > > > > > > > > > > > > > Brent > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command prompt > > > with no > > > > errors. I guess I can assume that no .dll's are missing. Someone > > > else on > > > > the list mentioned using forward slashes instead of backslashes in the > > > html > > > > file variables. I will try that. If you have any input on that I > > > would > > > > welcome it. > > > > > > > > > > > > > > > > Thanks, Brent. > > > > > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > ________________________________ > > > > > > > > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > On > > > > Behalf Of Brent Fraser > > > > Sent: Wednesday, March 09, 2005 11:16 AM > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > In your first example it appears that mapserver was reading the map > > > file > > > > but crashed for some reason. In the second example it couldn't find > > > the map > > > > file because it expects a file system path not a url. So the first > > > example > > > > is good, but the second is not (mapserver just handled the second case > > > a lot > > > > better!). > > > > > > > > > > > > > > > > > > > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > > > > > > > > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages about > > > missing > > > > dlls. Here are the steps: > > > > > > > > > > > > > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > > > > > > > 2. cd to the location of mapserv.exe > > > > > > > > > > > > 3. type in > > > > > > > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > > > > > > > > > > > > > 4. Copy the query string from the your browser address bar and paste > > > it > > > > into the command window. The query string should look like: > > > > > > > > > > > > > > > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > > > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > > > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > > > ap_web_template=itasca_basic.html > > > > > > > > > > > > > > > > > > > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > > > > > > > > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog box > > > giving the > > > > name of the dll. > > > > > > > > > > > > > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > I've installed MapServer and successfully received the "No query > > > information > > > > to decode. QUERY_STRING is set, but empty." message. Now I am trying > > > to > > > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, > > > MapServer > > > > 4.4.1) > > > > > > > > > > > > > > > > Here are the steps I have taken: > > > > > > > > > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > > > > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and > > > gave > > > > the IUSR account Read/Write/Execute permissions > > > > > > > > 3. Set default page to INDEX.HTML in IIS > > > > > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > > > > EXECUTABLES. > > > > > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > click to > > > > initialize the BASIC APPLICATION using these variables I receive the > > > > following error: > > > > > > > > CGI Error > > > > > > > > The specified CGI application misbehaved by not returning a complete > > > set of > > > > HTTP headers. > > > > > > > > > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > > > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > > > > > > > value="http:\\esgisrv001\workshop\"> > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > click to > > > > initialize the BASIC APPLICATION using these variables I receive the > > > > following error: > > > > > > > > > > > > > > > > msLoadMap(): Unable to access file. > > > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > > > > > > > > > Can anyone help? > > > > > > > > > > > > > > > > Thanks. > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > > From kenlord at GMAIL.COM Wed Mar 9 13:46:19 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 9 Mar 2005 13:46:19 -0800 Subject: MapServer 4.4.1 Demo In-Reply-To: Message-ID: Are you able to get the index.html page using the http://192..../ path? If not then its probably an address thing still. Were you able to determine the correct IP address of your webserver to put in place of my 192.168.1.103 address? If your website worked before over the internet, then I dont think any permissions need to be changed to make this work, as you are using the same setup. In my intranet case, I had set it up on a workstation on our network using Apache, and i think it worked right away. Can anyone else make a suggestion here? Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 16:37:37 -0500, Lisi, Christine wrote: > I'm really struggling here. I about at my wits end. I tried every > which path. The only way I get a map at all is if I use the full path > of c:\... to point to the map file and it only works on the local > server. Maybe I have a rights issue? Can you share with me your rights > (NTFS and IIS) on your mining folder? > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Ken Lord > Sent: Wednesday, March 09, 2005 3:43 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > Great! > > I'm not a contributor to mapserver code etc, so I'm glad I was able to > give a little back by helping you make it work. > > I have setup mapserver to run as an intranet application, its not too > tricky, and the great thing is that over a LAN, it will run amazingly > fast. > > In your index.html file, and your .map file (and anywhere else if > needed) you need to change some web addresses to point at the local > network IP address of the computer hosting mapserver. Here's the > setttings I used: > > . > . > value="http://192.168.1.103/cgi-bin/mapserv.exe"> > value="http://192.168.1.103/Mining/temp/"> > . > . > and in the map file.. > IMAGEURL "http://192.168.1.103/Mining/temp/" > > Then just view the index.html file in your webbrowser using the > appropriate address http://192....../yourfolders/index.html > > The 192 domain is reserved for internal networks, anyone trying to get > to the application from outside your network will just get an error > since that address would point them to a machine on their own internal > network if it exists. > > I'm no expert on network things but this worked for me. If there's > any important considerations I've overlooked, hopefully someone else > will add them. > > Cheers, > Ken Lord > Vancouver BC > > On Wed, 9 Mar 2005 15:19:31 -0500, Lisi, Christine > wrote: > > > > > > This worked, Ken, so thank you SOOOO much. It works when I run it > from the > > web server. But here's my dilemma now. I am not an HTML programmer > and I > > need to know what syntax to use in the INDEX.HTML file so that this > demo is > > available INTERNALLY over the web. If I use the full paths in the > > INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the > error > > that the map cannot be found. Can you tell me the syntax to use for > the > > paths in this section of the HTML file: > > > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\itasca.map"> > > > > > value="\\esgisrv001\inetpub\wwwroot\cgi-bin\mapserv.exe"> > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\"> > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > > > > > Your help is GREATLY appreciated. > > > > > > > > Thanks. > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > > > > > > > > > > > > > -----Original Message----- > > From: Ken Lord [mailto:kenlord at gmail.com] > > Sent: Wednesday, March 09, 2005 3:09 PM > > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > Hi Christine, > > > > > > > > Yes, thats right. That made it work for me on both a windows 2000 and > > > > windows XP Pro SP1 installation. > > > > > > > > There's no harm in leaving both the xerces dll's incase you have some > > > > other application using the newer version. > > > > > > > > Cheers, > > > > Ken Lord > > > > Vancouver BC > > > > > > > > On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine > > > > wrote: > > > > > Thanks for this information, Ken. I just want to make sure I've got > > > > > this right. The download includes many files, but you say to just > > > > > replace the mapserv.exe and any .dll's included in the download from > > > > > maptools.org? If this is correct then I will be replacing the > following > > > > > files in my existing MapServer folder: > > > > > > > > > > Mapserv.exe > > > > > Gdal12.dll > > > > > NCScnet.dll > > > > > NCSEcw.dll > > > > > NCSEcwC.dll > > > > > NCSUtil.dll > > > > > Libcurl.dll > > > > > Libpq.dll > > > > > Pdflib.dll > > > > > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > > > > > > > > > > > > > Christine Lisi > > > > > Application Specialist > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > > > Avenue, Delray Beach, FL 33444 > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > > > > > > > > > -----Original Message----- > > > > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > > > Behalf Of Ken Lord > > > > > Sent: Wednesday, March 09, 2005 12:33 PM > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > Hi! > > > > > > > > > > This problem has come up a few times in the last couple weeks for > > > > > several people. I worked through it myself. > > > > > > > > > > It seems to be a problem with how the current windows binaries > > > > > available from the mapserver homepage were compiled. > > > > > > > > > > Download mapserver 4.4.1 from www.maptools.org/dl > > > > > > > > > > Use the mapserv.exe and the .dll'sthat are contained within the zip > > > > > files that are included in that package. > > > > > > > > > > This version appears to have been compiled so that it is less > > > > > dependant on external dll's, using a larger exe and fewer dll's. > > > > > > > > > > ... and it works. > > > > > > > > > > So, this is the 3rd or 4th time this has come up on the list. Think > > > > > it's time to take down/replace the current windows binaries > available > > > > > at the mapserver homepage? > > > > > > > > > > Cheers, > > > > > Ken Lord > > > > > Vancouver BC > > > > > > > > > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > > > > > wrote: > > > > > > > > > > > > > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and returned > me > > > > > back > > > > > > to a command prompt. If MapServer generated an html file, where > would > > > > > it > > > > > > put it? > > > > > > > > > > > > > > > > > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied it > in > > > > > the NTFS > > > > > > file system. I now have applied the WRITE access in IIS (see > below): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > Application Specialist > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > First > > > > > Avenue, > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > Lisi at MyDelrayBeach.com > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > > > > > Sent: Wednesday, March 09, 2005 11:47 AM > > > > > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Did mapserv generate html when you executed it from the command > > > > > prompt? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the > problem > > > > > is with > > > > > > the IIS configuration of the workshop demo directory, likely write > > > > > access to > > > > > > the tmp directory. Did you set write access for the tmp directory > > > > > using IIS > > > > > > Manager? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Brent > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command prompt > > > > > with no > > > > > > errors. I guess I can assume that no .dll's are missing. Someone > > > > > else on > > > > > > the list mentioned using forward slashes instead of backslashes in > the > > > > > html > > > > > > file variables. I will try that. If you have any input on that I > > > > > would > > > > > > welcome it. > > > > > > > > > > > > > > > > > > > > > > > > Thanks, Brent. > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > Application Specialist > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > First > > > > > Avenue, > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > Lisi at MyDelrayBeach.com > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > > > On > > > > > > Behalf Of Brent Fraser > > > > > > Sent: Wednesday, March 09, 2005 11:16 AM > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In your first example it appears that mapserver was reading the > map > > > > > file > > > > > > but crashed for some reason. In the second example it couldn't > find > > > > > the map > > > > > > file because it expects a file system path not a url. So the > first > > > > > example > > > > > > is good, but the second is not (mapserver just handled the second > case > > > > > a lot > > > > > > better!). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages > about > > > > > missing > > > > > > dlls. Here are the steps: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > > > > > > > > > > > > > 2. cd to the location of mapserv.exe > > > > > > > > > > > > > > > > > > 3. type in > > > > > > > > > > > > > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 4. Copy the query string from the your browser address bar and > paste > > > > > it > > > > > > into the command window. The query string should look like: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > > > > > > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > > > > > > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > > > > > ap_web_template=itasca_basic.html > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog box > > > > > giving the > > > > > > name of the dll. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > > > > > > > > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've installed MapServer and successfully received the "No query > > > > > information > > > > > > to decode. QUERY_STRING is set, but empty." message. Now I am > trying > > > > > to > > > > > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, > > > > > MapServer > > > > > > 4.4.1) > > > > > > > > > > > > > > > > > > > > > > > > Here are the steps I have taken: > > > > > > > > > > > > > > > > > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > > > > > > > > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop > and > > > > > gave > > > > > > the IUSR account Read/Write/Execute permissions > > > > > > > > > > > > 3. Set default page to INDEX.HTML in IIS > > > > > > > > > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > > > > > > EXECUTABLES. > > > > > > > > > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > > > click to > > > > > > initialize the BASIC APPLICATION using these variables I receive > the > > > > > > following error: > > > > > > > > > > > > CGI Error > > > > > > > > > > > > The specified CGI application misbehaved by not returning a > complete > > > > > set of > > > > > > HTTP headers. > > > > > > > > > > > > > > > > > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\"> > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > > > click to > > > > > > initialize the BASIC APPLICATION using these variables I receive > the > > > > > > following error: > > > > > > > > > > > > > > > > > > > > > > > > msLoadMap(): Unable to access file. > > > > > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > > > > > > > > > > > > > > > > > Can anyone help? > > > > > > > > > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > Christine Lisi > > > > > > Application Specialist > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > First > > > > > Avenue, > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > Lisi at MyDelrayBeach.com > > > > From lisi at MYDELRAYBEACH.COM Wed Mar 9 13:48:12 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 9 Mar 2005 16:48:12 -0500 Subject: MapServer 4.4.1 Demo Message-ID: Yes, I always get the index.html page. It's the map and all the other functions that don't work. I can use either the IP or the name of the server because it's in our DNS. This demo site has never worked. It's my first shot at it. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ken Lord [mailto:kenlord at gmail.com] Sent: Wednesday, March 09, 2005 4:46 PM To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Are you able to get the index.html page using the http://192..../ path? If not then its probably an address thing still. Were you able to determine the correct IP address of your webserver to put in place of my 192.168.1.103 address? If your website worked before over the internet, then I dont think any permissions need to be changed to make this work, as you are using the same setup. In my intranet case, I had set it up on a workstation on our network using Apache, and i think it worked right away. Can anyone else make a suggestion here? Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 16:37:37 -0500, Lisi, Christine wrote: > I'm really struggling here. I about at my wits end. I tried every > which path. The only way I get a map at all is if I use the full path > of c:\... to point to the map file and it only works on the local > server. Maybe I have a rights issue? Can you share with me your rights > (NTFS and IIS) on your mining folder? > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Ken Lord > Sent: Wednesday, March 09, 2005 3:43 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > Great! > > I'm not a contributor to mapserver code etc, so I'm glad I was able to > give a little back by helping you make it work. > > I have setup mapserver to run as an intranet application, its not too > tricky, and the great thing is that over a LAN, it will run amazingly > fast. > > In your index.html file, and your .map file (and anywhere else if > needed) you need to change some web addresses to point at the local > network IP address of the computer hosting mapserver. Here's the > setttings I used: > > . > . > value="http://192.168.1.103/cgi-bin/mapserv.exe"> > value="http://192.168.1.103/Mining/temp/"> > . > . > and in the map file.. > IMAGEURL "http://192.168.1.103/Mining/temp/" > > Then just view the index.html file in your webbrowser using the > appropriate address http://192....../yourfolders/index.html > > The 192 domain is reserved for internal networks, anyone trying to get > to the application from outside your network will just get an error > since that address would point them to a machine on their own internal > network if it exists. > > I'm no expert on network things but this worked for me. If there's > any important considerations I've overlooked, hopefully someone else > will add them. > > Cheers, > Ken Lord > Vancouver BC > > On Wed, 9 Mar 2005 15:19:31 -0500, Lisi, Christine > wrote: > > > > > > This worked, Ken, so thank you SOOOO much. It works when I run it > from the > > web server. But here's my dilemma now. I am not an HTML programmer > and I > > need to know what syntax to use in the INDEX.HTML file so that this > demo is > > available INTERNALLY over the web. If I use the full paths in the > > INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the > error > > that the map cannot be found. Can you tell me the syntax to use for > the > > paths in this section of the HTML file: > > > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\itasca.map"> > > > > > value="\\esgisrv001\inetpub\wwwroot\cgi-bin\mapserv.exe"> > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\"> > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > > > > > Your help is GREATLY appreciated. > > > > > > > > Thanks. > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > > > > > > > > > > > > > -----Original Message----- > > From: Ken Lord [mailto:kenlord at gmail.com] > > Sent: Wednesday, March 09, 2005 3:09 PM > > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > Hi Christine, > > > > > > > > Yes, thats right. That made it work for me on both a windows 2000 and > > > > windows XP Pro SP1 installation. > > > > > > > > There's no harm in leaving both the xerces dll's incase you have some > > > > other application using the newer version. > > > > > > > > Cheers, > > > > Ken Lord > > > > Vancouver BC > > > > > > > > On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine > > > > wrote: > > > > > Thanks for this information, Ken. I just want to make sure I've got > > > > > this right. The download includes many files, but you say to just > > > > > replace the mapserv.exe and any .dll's included in the download from > > > > > maptools.org? If this is correct then I will be replacing the > following > > > > > files in my existing MapServer folder: > > > > > > > > > > Mapserv.exe > > > > > Gdal12.dll > > > > > NCScnet.dll > > > > > NCSEcw.dll > > > > > NCSEcwC.dll > > > > > NCSUtil.dll > > > > > Libcurl.dll > > > > > Libpq.dll > > > > > Pdflib.dll > > > > > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > > > > > > > > > > > > > Christine Lisi > > > > > Application Specialist > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > > > Avenue, Delray Beach, FL 33444 > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > > > > > > > > > -----Original Message----- > > > > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > > > Behalf Of Ken Lord > > > > > Sent: Wednesday, March 09, 2005 12:33 PM > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > Hi! > > > > > > > > > > This problem has come up a few times in the last couple weeks for > > > > > several people. I worked through it myself. > > > > > > > > > > It seems to be a problem with how the current windows binaries > > > > > available from the mapserver homepage were compiled. > > > > > > > > > > Download mapserver 4.4.1 from www.maptools.org/dl > > > > > > > > > > Use the mapserv.exe and the .dll'sthat are contained within the zip > > > > > files that are included in that package. > > > > > > > > > > This version appears to have been compiled so that it is less > > > > > dependant on external dll's, using a larger exe and fewer dll's. > > > > > > > > > > ... and it works. > > > > > > > > > > So, this is the 3rd or 4th time this has come up on the list. Think > > > > > it's time to take down/replace the current windows binaries > available > > > > > at the mapserver homepage? > > > > > > > > > > Cheers, > > > > > Ken Lord > > > > > Vancouver BC > > > > > > > > > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > > > > > wrote: > > > > > > > > > > > > > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and returned > me > > > > > back > > > > > > to a command prompt. If MapServer generated an html file, where > would > > > > > it > > > > > > put it? > > > > > > > > > > > > > > > > > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied it > in > > > > > the NTFS > > > > > > file system. I now have applied the WRITE access in IIS (see > below): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > Application Specialist > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > First > > > > > Avenue, > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > Lisi at MyDelrayBeach.com > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > > > > > Sent: Wednesday, March 09, 2005 11:47 AM > > > > > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Did mapserv generate html when you executed it from the command > > > > > prompt? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the > problem > > > > > is with > > > > > > the IIS configuration of the workshop demo directory, likely write > > > > > access to > > > > > > the tmp directory. Did you set write access for the tmp directory > > > > > using IIS > > > > > > Manager? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Brent > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command prompt > > > > > with no > > > > > > errors. I guess I can assume that no .dll's are missing. Someone > > > > > else on > > > > > > the list mentioned using forward slashes instead of backslashes in > the > > > > > html > > > > > > file variables. I will try that. If you have any input on that I > > > > > would > > > > > > welcome it. > > > > > > > > > > > > > > > > > > > > > > > > Thanks, Brent. > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > Application Specialist > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > First > > > > > Avenue, > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > Lisi at MyDelrayBeach.com > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > > > On > > > > > > Behalf Of Brent Fraser > > > > > > Sent: Wednesday, March 09, 2005 11:16 AM > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In your first example it appears that mapserver was reading the > map > > > > > file > > > > > > but crashed for some reason. In the second example it couldn't > find > > > > > the map > > > > > > file because it expects a file system path not a url. So the > first > > > > > example > > > > > > is good, but the second is not (mapserver just handled the second > case > > > > > a lot > > > > > > better!). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages > about > > > > > missing > > > > > > dlls. Here are the steps: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > > > > > > > > > > > > > 2. cd to the location of mapserv.exe > > > > > > > > > > > > > > > > > > 3. type in > > > > > > > > > > > > > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 4. Copy the query string from the your browser address bar and > paste > > > > > it > > > > > > into the command window. The query string should look like: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > > > > > > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > > > > > > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > > > > > ap_web_template=itasca_basic.html > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog box > > > > > giving the > > > > > > name of the dll. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > > > > > > > > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've installed MapServer and successfully received the "No query > > > > > information > > > > > > to decode. QUERY_STRING is set, but empty." message. Now I am > trying > > > > > to > > > > > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, > > > > > MapServer > > > > > > 4.4.1) > > > > > > > > > > > > > > > > > > > > > > > > Here are the steps I have taken: > > > > > > > > > > > > > > > > > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > > > > > > > > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop > and > > > > > gave > > > > > > the IUSR account Read/Write/Execute permissions > > > > > > > > > > > > 3. Set default page to INDEX.HTML in IIS > > > > > > > > > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > > > > > > EXECUTABLES. > > > > > > > > > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > > > click to > > > > > > initialize the BASIC APPLICATION using these variables I receive > the > > > > > > following error: > > > > > > > > > > > > CGI Error > > > > > > > > > > > > The specified CGI application misbehaved by not returning a > complete > > > > > set of > > > > > > HTTP headers. > > > > > > > > > > > > > > > > > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\"> > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > > > click to > > > > > > initialize the BASIC APPLICATION using these variables I receive > the > > > > > > following error: > > > > > > > > > > > > > > > > > > > > > > > > msLoadMap(): Unable to access file. > > > > > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > > > > > > > > > > > > > > > > > Can anyone help? > > > > > > > > > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > Christine Lisi > > > > > > Application Specialist > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > First > > > > > Avenue, > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > Lisi at MyDelrayBeach.com > > > > From kenlord at GMAIL.COM Wed Mar 9 14:03:17 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 9 Mar 2005 14:03:17 -0800 Subject: MapServer 4.4.1 Demo In-Reply-To: Message-ID: Ok, I think we are on track anyways, When the map fails, what error is returned? Ken On Wed, 9 Mar 2005 16:48:12 -0500, Lisi, Christine wrote: > Yes, I always get the index.html page. It's the map and all the other > functions that don't work. I can use either the IP or the name of the > server because it's in our DNS. > > This demo site has never worked. It's my first shot at it. > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > -----Original Message----- > From: Ken Lord [mailto:kenlord at gmail.com] > Sent: Wednesday, March 09, 2005 4:46 PM > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > Are you able to get the index.html page using the http://192..../ path? > > If not then its probably an address thing still. Were you able to > determine the correct IP address of your webserver to put in place of > my 192.168.1.103 address? > > If your website worked before over the internet, then I dont think any > permissions need to be changed to make this work, as you are using the > same setup. > > In my intranet case, I had set it up on a workstation on our network > using Apache, and i think it worked right away. > > Can anyone else make a suggestion here? > > Cheers, > Ken Lord > Vancouver BC > > On Wed, 9 Mar 2005 16:37:37 -0500, Lisi, Christine > wrote: > > I'm really struggling here. I about at my wits end. I tried every > > which path. The only way I get a map at all is if I use the full path > > of c:\... to point to the map file and it only works on the local > > server. Maybe I have a rights issue? Can you share with me your > rights > > (NTFS and IIS) on your mining folder? > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First > > Avenue, Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > > Behalf Of Ken Lord > > Sent: Wednesday, March 09, 2005 3:43 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > Great! > > > > I'm not a contributor to mapserver code etc, so I'm glad I was able to > > give a little back by helping you make it work. > > > > I have setup mapserver to run as an intranet application, its not too > > tricky, and the great thing is that over a LAN, it will run amazingly > > fast. > > > > In your index.html file, and your .map file (and anywhere else if > > needed) you need to change some web addresses to point at the local > > network IP address of the computer hosting mapserver. Here's the > > setttings I used: > > > > . > > . > > > value="http://192.168.1.103/cgi-bin/mapserv.exe"> > > > value="http://192.168.1.103/Mining/temp/"> > > . > > . > > and in the map file.. > > IMAGEURL "http://192.168.1.103/Mining/temp/" > > > > Then just view the index.html file in your webbrowser using the > > appropriate address http://192....../yourfolders/index.html > > > > The 192 domain is reserved for internal networks, anyone trying to get > > to the application from outside your network will just get an error > > since that address would point them to a machine on their own internal > > network if it exists. > > > > I'm no expert on network things but this worked for me. If there's > > any important considerations I've overlooked, hopefully someone else > > will add them. > > > > Cheers, > > Ken Lord > > Vancouver BC > > > > On Wed, 9 Mar 2005 15:19:31 -0500, Lisi, Christine > > wrote: > > > > > > > > > This worked, Ken, so thank you SOOOO much. It works when I run it > > from the > > > web server. But here's my dilemma now. I am not an HTML programmer > > and I > > > need to know what syntax to use in the INDEX.HTML file so that this > > demo is > > > available INTERNALLY over the web. If I use the full paths in the > > > INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the > > error > > > that the map cannot be found. Can you tell me the syntax to use for > > the > > > paths in this section of the HTML file: > > > > > > > > > > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\cgi-bin\mapserv.exe"> > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\"> > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > Your help is GREATLY appreciated. > > > > > > > > > > > > Thanks. > > > > > > > > > > > > Christine Lisi > > > > > > Application Specialist > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > Avenue, > > > Delray Beach, FL 33444 > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > Lisi at MyDelrayBeach.com > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > From: Ken Lord [mailto:kenlord at gmail.com] > > > Sent: Wednesday, March 09, 2005 3:09 PM > > > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > Hi Christine, > > > > > > > > > > > > Yes, thats right. That made it work for me on both a windows 2000 > and > > > > > > windows XP Pro SP1 installation. > > > > > > > > > > > > There's no harm in leaving both the xerces dll's incase you have > some > > > > > > other application using the newer version. > > > > > > > > > > > > Cheers, > > > > > > Ken Lord > > > > > > Vancouver BC > > > > > > > > > > > > On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine > > > > > > wrote: > > > > > > > Thanks for this information, Ken. I just want to make sure I've > got > > > > > > > this right. The download includes many files, but you say to just > > > > > > > replace the mapserv.exe and any .dll's included in the download > from > > > > > > > maptools.org? If this is correct then I will be replacing the > > following > > > > > > > files in my existing MapServer folder: > > > > > > > > > > > > > > Mapserv.exe > > > > > > > Gdal12.dll > > > > > > > NCScnet.dll > > > > > > > NCSEcw.dll > > > > > > > NCSEcwC.dll > > > > > > > NCSUtil.dll > > > > > > > Libcurl.dll > > > > > > > Libpq.dll > > > > > > > Pdflib.dll > > > > > > > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > Application Specialist > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > First > > > > > > > Avenue, Delray Beach, FL 33444 > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > Lisi at MyDelrayBeach.com > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > > > > > Behalf Of Ken Lord > > > > > > > Sent: Wednesday, March 09, 2005 12:33 PM > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > Hi! > > > > > > > > > > > > > > This problem has come up a few times in the last couple weeks for > > > > > > > several people. I worked through it myself. > > > > > > > > > > > > > > It seems to be a problem with how the current windows binaries > > > > > > > available from the mapserver homepage were compiled. > > > > > > > > > > > > > > Download mapserver 4.4.1 from www.maptools.org/dl > > > > > > > > > > > > > > Use the mapserv.exe and the .dll'sthat are contained within the > zip > > > > > > > files that are included in that package. > > > > > > > > > > > > > > This version appears to have been compiled so that it is less > > > > > > > dependant on external dll's, using a larger exe and fewer dll's. > > > > > > > > > > > > > > ... and it works. > > > > > > > > > > > > > > So, this is the 3rd or 4th time this has come up on the list. > Think > > > > > > > it's time to take down/replace the current windows binaries > > available > > > > > > > at the mapserver homepage? > > > > > > > > > > > > > > Cheers, > > > > > > > Ken Lord > > > > > > > Vancouver BC > > > > > > > > > > > > > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and > returned > > me > > > > > > > back > > > > > > > > to a command prompt. If MapServer generated an html file, where > > would > > > > > > > it > > > > > > > > put it? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied it > > in > > > > > > > the NTFS > > > > > > > > file system. I now have applied the WRITE access in IIS (see > > below): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > First > > > > > > > Avenue, > > > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > > > Lisi at MyDelrayBeach.com > > > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > > > > > > > Sent: Wednesday, March 09, 2005 11:47 AM > > > > > > > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Did mapserv generate html when you executed it from the > command > > > > > > > prompt? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the > > problem > > > > > > > is with > > > > > > > > the IIS configuration of the workshop demo directory, likely > write > > > > > > > access to > > > > > > > > the tmp directory. Did you set write access for the tmp > directory > > > > > > > using IIS > > > > > > > > Manager? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Brent > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > > > > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command > prompt > > > > > > > with no > > > > > > > > errors. I guess I can assume that no .dll's are missing. > Someone > > > > > > > else on > > > > > > > > the list mentioned using forward slashes instead of backslashes > in > > the > > > > > > > html > > > > > > > > file variables. I will try that. If you have any input on that > I > > > > > > > would > > > > > > > > welcome it. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, Brent. > > > > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > First > > > > > > > Avenue, > > > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > > > Lisi at MyDelrayBeach.com > > > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > > > > > > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > > > > > On > > > > > > > > Behalf Of Brent Fraser > > > > > > > > Sent: Wednesday, March 09, 2005 11:16 AM > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In your first example it appears that mapserver was reading > the > > map > > > > > > > file > > > > > > > > but crashed for some reason. In the second example it couldn't > > find > > > > > > > the map > > > > > > > > file because it expects a file system path not a url. So the > > first > > > > > > > example > > > > > > > > is good, but the second is not (mapserver just handled the > second > > case > > > > > > > a lot > > > > > > > > better!). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages > > about > > > > > > > missing > > > > > > > > dlls. Here are the steps: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > > > > > > > > > > > > > > > > > > > 2. cd to the location of mapserv.exe > > > > > > > > > > > > > > > > > > > > > > > > 3. type in > > > > > > > > > > > > > > > > > > > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 4. Copy the query string from the your browser address bar and > > paste > > > > > > > it > > > > > > > > into the command window. The query string should look like: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > > > > > > > > > > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > > > > > > > > > > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > > > > > > > ap_web_template=itasca_basic.html > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog box > > > > > > > giving the > > > > > > > > name of the dll. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > > > > > > > > > > > > > > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've installed MapServer and successfully received the "No query > > > > > > > information > > > > > > > > to decode. QUERY_STRING is set, but empty." message. Now I am > > trying > > > > > > > to > > > > > > > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, > IIS6, > > > > > > > MapServer > > > > > > > > 4.4.1) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Here are the steps I have taken: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > > > > > > > > > > > > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop > > and > > > > > > > gave > > > > > > > > the IUSR account Read/Write/Execute permissions > > > > > > > > > > > > > > > > 3. Set default page to INDEX.HTML in IIS > > > > > > > > > > > > > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > > > > > > > > EXECUTABLES. > > > > > > > > > > > > > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when > I > > > > > > > click to > > > > > > > > initialize the BASIC APPLICATION using these variables I receive > > the > > > > > > > > following error: > > > > > > > > > > > > > > > > CGI Error > > > > > > > > > > > > > > > > The specified CGI application misbehaved by not returning a > > complete > > > > > > > set of > > > > > > > > HTTP headers. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\"> > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when > I > > > > > > > click to > > > > > > > > initialize the BASIC APPLICATION using these variables I receive > > the > > > > > > > > following error: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > msLoadMap(): Unable to access file. > > > > > > > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Can anyone help? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > First > > > > > > > Avenue, > > > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > > > Lisi at MyDelrayBeach.com > > > > > > From bfraser at GEOANALYTIC.COM Wed Mar 9 14:09:13 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 9 Mar 2005 15:09:13 -0700 Subject: MapServer 4.4.1 Demo Message-ID: Christine, Here's what editable portions of your index.html file should look like: : : Note the forward slashes and lack of drive letters. Also note that map_web_imageurl is relative to "web root" (C:\inetpub\wwwroot) while map_web_imagepath is relative to file system root (C:) Does this work on your server? Brent ----- Original Message ----- From: "Lisi, Christine" To: Sent: Wednesday, March 09, 2005 2:37 PM Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo I'm really struggling here. I about at my wits end. I tried every which path. The only way I get a map at all is if I use the full path of c:\... to point to the map file and it only works on the local server. Maybe I have a rights issue? Can you share with me your rights (NTFS and IIS) on your mining folder? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Wednesday, March 09, 2005 3:43 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Great! I'm not a contributor to mapserver code etc, so I'm glad I was able to give a little back by helping you make it work. I have setup mapserver to run as an intranet application, its not too tricky, and the great thing is that over a LAN, it will run amazingly fast. In your index.html file, and your .map file (and anywhere else if needed) you need to change some web addresses to point at the local network IP address of the computer hosting mapserver. Here's the setttings I used: . . . . and in the map file.. IMAGEURL "http://192.168.1.103/Mining/temp/" Then just view the index.html file in your webbrowser using the appropriate address http://192....../yourfolders/index.html The 192 domain is reserved for internal networks, anyone trying to get to the application from outside your network will just get an error since that address would point them to a machine on their own internal network if it exists. I'm no expert on network things but this worked for me. If there's any important considerations I've overlooked, hopefully someone else will add them. Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 15:19:31 -0500, Lisi, Christine wrote: > > > This worked, Ken, so thank you SOOOO much. It works when I run it from the > web server. But here's my dilemma now. I am not an HTML programmer and I > need to know what syntax to use in the INDEX.HTML file so that this demo is > available INTERNALLY over the web. If I use the full paths in the > INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the error > that the map cannot be found. Can you tell me the syntax to use for the > paths in this section of the HTML file: > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\itasca.map"> > > value="\\esgisrv001\inetpub\wwwroot\cgi-bin\mapserv.exe"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > Your help is GREATLY appreciated. > > > > Thanks. > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First Avenue, > Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > > > > > -----Original Message----- > From: Ken Lord [mailto:kenlord at gmail.com] > Sent: Wednesday, March 09, 2005 3:09 PM > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > Hi Christine, > > > > Yes, thats right. That made it work for me on both a windows 2000 and > > windows XP Pro SP1 installation. > > > > There's no harm in leaving both the xerces dll's incase you have some > > other application using the newer version. > > > > Cheers, > > Ken Lord > > Vancouver BC > > > > On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine > > wrote: > > > Thanks for this information, Ken. I just want to make sure I've got > > > this right. The download includes many files, but you say to just > > > replace the mapserv.exe and any .dll's included in the download from > > > maptools.org? If this is correct then I will be replacing the following > > > files in my existing MapServer folder: > > > > > > Mapserv.exe > > > Gdal12.dll > > > NCScnet.dll > > > NCSEcw.dll > > > NCSEcwC.dll > > > NCSUtil.dll > > > Libcurl.dll > > > Libpq.dll > > > Pdflib.dll > > > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > > > > > > > Christine Lisi > > > Application Specialist > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, Delray Beach, FL 33444 > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > > > > -----Original Message----- > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > Behalf Of Ken Lord > > > Sent: Wednesday, March 09, 2005 12:33 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > Hi! > > > > > > This problem has come up a few times in the last couple weeks for > > > several people. I worked through it myself. > > > > > > It seems to be a problem with how the current windows binaries > > > available from the mapserver homepage were compiled. > > > > > > Download mapserver 4.4.1 from www.maptools.org/dl > > > > > > Use the mapserv.exe and the .dll'sthat are contained within the zip > > > files that are included in that package. > > > > > > This version appears to have been compiled so that it is less > > > dependant on external dll's, using a larger exe and fewer dll's. > > > > > > ... and it works. > > > > > > So, this is the 3rd or 4th time this has come up on the list. Think > > > it's time to take down/replace the current windows binaries available > > > at the mapserver homepage? > > > > > > Cheers, > > > Ken Lord > > > Vancouver BC > > > > > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > > > wrote: > > > > > > > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and returned me > > > back > > > > to a command prompt. If MapServer generated an html file, where would > > > it > > > > put it? > > > > > > > > > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied it in > > > the NTFS > > > > file system. I now have applied the WRITE access in IIS (see below): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > ________________________________ > > > > > > > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > > > Sent: Wednesday, March 09, 2005 11:47 AM > > > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > Did mapserv generate html when you executed it from the command > > > prompt? > > > > > > > > > > > > > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the problem > > > is with > > > > the IIS configuration of the workshop demo directory, likely write > > > access to > > > > the tmp directory. Did you set write access for the tmp directory > > > using IIS > > > > Manager? > > > > > > > > > > > > > > > > > > > > > > > > Brent > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command prompt > > > with no > > > > errors. I guess I can assume that no .dll's are missing. Someone > > > else on > > > > the list mentioned using forward slashes instead of backslashes in the > > > html > > > > file variables. I will try that. If you have any input on that I > > > would > > > > welcome it. > > > > > > > > > > > > > > > > Thanks, Brent. > > > > > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > ________________________________ > > > > > > > > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > On > > > > Behalf Of Brent Fraser > > > > Sent: Wednesday, March 09, 2005 11:16 AM > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > In your first example it appears that mapserver was reading the map > > > file > > > > but crashed for some reason. In the second example it couldn't find > > > the map > > > > file because it expects a file system path not a url. So the first > > > example > > > > is good, but the second is not (mapserver just handled the second case > > > a lot > > > > better!). > > > > > > > > > > > > > > > > > > > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > > > > > > > > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages about > > > missing > > > > dlls. Here are the steps: > > > > > > > > > > > > > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > > > > > > > 2. cd to the location of mapserv.exe > > > > > > > > > > > > 3. type in > > > > > > > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > > > > > > > > > > > > > 4. Copy the query string from the your browser address bar and paste > > > it > > > > into the command window. The query string should look like: > > > > > > > > > > > > > > > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > > > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > > > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > > > ap_web_template=itasca_basic.html > > > > > > > > > > > > > > > > > > > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > > > > > > > > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog box > > > giving the > > > > name of the dll. > > > > > > > > > > > > > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > I've installed MapServer and successfully received the "No query > > > information > > > > to decode. QUERY_STRING is set, but empty." message. Now I am trying > > > to > > > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, > > > MapServer > > > > 4.4.1) > > > > > > > > > > > > > > > > Here are the steps I have taken: > > > > > > > > > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > > > > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and > > > gave > > > > the IUSR account Read/Write/Execute permissions > > > > > > > > 3. Set default page to INDEX.HTML in IIS > > > > > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > > > > EXECUTABLES. > > > > > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > click to > > > > initialize the BASIC APPLICATION using these variables I receive the > > > > following error: > > > > > > > > CGI Error > > > > > > > > The specified CGI application misbehaved by not returning a complete > > > set of > > > > HTTP headers. > > > > > > > > > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > > > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > > > > > > > value="http:\\esgisrv001\workshop\"> > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > click to > > > > initialize the BASIC APPLICATION using these variables I receive the > > > > following error: > > > > > > > > > > > > > > > > msLoadMap(): Unable to access file. > > > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > > > > > > > > > Can anyone help? > > > > > > > > > > > > > > > > Thanks. > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > > From kenlord at GMAIL.COM Wed Mar 9 14:10:07 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 9 Mar 2005 14:10:07 -0800 Subject: Odd mapserv CGI problem In-Reply-To: <200503091527.33807.sysadmin@satshot.com> Message-ID: Hi Avi, If you are using IIS, make sure that your scripts folder has 'execute permissions' set to 'scripts and executables' Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 15:27:33 -0600, Avi A Blackmore wrote: > I'm having a very peculiar problem with Mapserver 4.0.1. Given a valid > mapfile, which points to valid index and shape files (for vector layers), the > shp2img program returns the correct image. > > However, when I try to run the same query (same extents, map file, and the > like) through the CGI mapserv program via a browser, the program returns...a > copy of itself. As in, a copy of the ELF 32-bit binary executable. > > I have no idea whatsoever why it does this, especially since the mapfile is > known to be correct (it's automatically generated by a Java webapp), and > works for shp2img. Any ideas on where to start looking? > > Thanks, > Avi Blackmore > Agri ImaGIS Technologies > System Administrator > From joe at OTSYS.COM Wed Mar 9 13:28:03 2005 From: joe at OTSYS.COM (Joseph Bussell) Date: Wed, 9 Mar 2005 13:28:03 -0800 Subject: - determining if great circle segments intersect Message-ID: Greetings Group, Could someone please offer an efficient algorithm for determining if two great circle segments intersect? Specifically, given: Segment A (startLatA,startLonA) - (destLatA, destLonA) & Segment B (startLatB,startLonB) - (destLatB, destLonB) bool intersects( Segment& A, Segment& B ) { ??? } All I want to know is if they share a point. A bonus would be knowing where that point is. Cordially, Joe Bussell On Time Systems From stevem at SPATIALMAPPING.COM Wed Mar 9 14:17:44 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Wed, 9 Mar 2005 16:17:44 -0600 Subject: Odd mapserv CGI problem Message-ID: Avi: This sounds like a configuration problem with your web server. Very likely what's happening is that the web server is serving your mapserver executable as though it were static content (e.g. like an HTML page or a PDF document), instead of running the executable and returning its output. If you're using Apache, make sure you've correctly set up a for the directory containing your mapserv binary. If you're using something else, then do the equivalent thing (whatever that might be ;-). Hope this helped, -SM -- On Wed, 9 Mar 2005 15:27:33 -0600, Avi A Blackmore wrote: >I'm having a very peculiar problem with Mapserver 4.0.1. Given a valid >mapfile, which points to valid index and shape files (for vector layers), the >shp2img program returns the correct image. > >However, when I try to run the same query (same extents, map file, and the >like) through the CGI mapserv program via a browser, the program returns...a >copy of itself. As in, a copy of the ELF 32-bit binary executable. > >I have no idea whatsoever why it does this, especially since the mapfile is >known to be correct (it's automatically generated by a Java webapp), and >works for shp2img. Any ideas on where to start looking? > >Thanks, >Avi Blackmore >Agri ImaGIS Technologies >System Administrator From lisi at MYDELRAYBEACH.COM Wed Mar 9 14:17:40 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 9 Mar 2005 17:17:40 -0500 Subject: MapServer 4.4.1 Demo Message-ID: msLoadMap(): Unable to access file. (http://esgisrv001/MapServerDemo/itasca.map) Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ken Lord [mailto:kenlord at gmail.com] Sent: Wednesday, March 09, 2005 5:03 PM To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Ok, I think we are on track anyways, When the map fails, what error is returned? Ken On Wed, 9 Mar 2005 16:48:12 -0500, Lisi, Christine wrote: > Yes, I always get the index.html page. It's the map and all the other > functions that don't work. I can use either the IP or the name of the > server because it's in our DNS. > > This demo site has never worked. It's my first shot at it. > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > -----Original Message----- > From: Ken Lord [mailto:kenlord at gmail.com] > Sent: Wednesday, March 09, 2005 4:46 PM > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > Are you able to get the index.html page using the http://192..../ path? > > If not then its probably an address thing still. Were you able to > determine the correct IP address of your webserver to put in place of > my 192.168.1.103 address? > > If your website worked before over the internet, then I dont think any > permissions need to be changed to make this work, as you are using the > same setup. > > In my intranet case, I had set it up on a workstation on our network > using Apache, and i think it worked right away. > > Can anyone else make a suggestion here? > > Cheers, > Ken Lord > Vancouver BC > > On Wed, 9 Mar 2005 16:37:37 -0500, Lisi, Christine > wrote: > > I'm really struggling here. I about at my wits end. I tried every > > which path. The only way I get a map at all is if I use the full path > > of c:\... to point to the map file and it only works on the local > > server. Maybe I have a rights issue? Can you share with me your > rights > > (NTFS and IIS) on your mining folder? > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First > > Avenue, Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > > Behalf Of Ken Lord > > Sent: Wednesday, March 09, 2005 3:43 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > Great! > > > > I'm not a contributor to mapserver code etc, so I'm glad I was able to > > give a little back by helping you make it work. > > > > I have setup mapserver to run as an intranet application, its not too > > tricky, and the great thing is that over a LAN, it will run amazingly > > fast. > > > > In your index.html file, and your .map file (and anywhere else if > > needed) you need to change some web addresses to point at the local > > network IP address of the computer hosting mapserver. Here's the > > setttings I used: > > > > . > > . > > > value="http://192.168.1.103/cgi-bin/mapserv.exe"> > > > value="http://192.168.1.103/Mining/temp/"> > > . > > . > > and in the map file.. > > IMAGEURL "http://192.168.1.103/Mining/temp/" > > > > Then just view the index.html file in your webbrowser using the > > appropriate address http://192....../yourfolders/index.html > > > > The 192 domain is reserved for internal networks, anyone trying to get > > to the application from outside your network will just get an error > > since that address would point them to a machine on their own internal > > network if it exists. > > > > I'm no expert on network things but this worked for me. If there's > > any important considerations I've overlooked, hopefully someone else > > will add them. > > > > Cheers, > > Ken Lord > > Vancouver BC > > > > On Wed, 9 Mar 2005 15:19:31 -0500, Lisi, Christine > > wrote: > > > > > > > > > This worked, Ken, so thank you SOOOO much. It works when I run it > > from the > > > web server. But here's my dilemma now. I am not an HTML programmer > > and I > > > need to know what syntax to use in the INDEX.HTML file so that this > > demo is > > > available INTERNALLY over the web. If I use the full paths in the > > > INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the > > error > > > that the map cannot be found. Can you tell me the syntax to use for > > the > > > paths in this section of the HTML file: > > > > > > > > > > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\cgi-bin\mapserv.exe"> > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\"> > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > Your help is GREATLY appreciated. > > > > > > > > > > > > Thanks. > > > > > > > > > > > > Christine Lisi > > > > > > Application Specialist > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > Avenue, > > > Delray Beach, FL 33444 > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > Lisi at MyDelrayBeach.com > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > From: Ken Lord [mailto:kenlord at gmail.com] > > > Sent: Wednesday, March 09, 2005 3:09 PM > > > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > Hi Christine, > > > > > > > > > > > > Yes, thats right. That made it work for me on both a windows 2000 > and > > > > > > windows XP Pro SP1 installation. > > > > > > > > > > > > There's no harm in leaving both the xerces dll's incase you have > some > > > > > > other application using the newer version. > > > > > > > > > > > > Cheers, > > > > > > Ken Lord > > > > > > Vancouver BC > > > > > > > > > > > > On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine > > > > > > wrote: > > > > > > > Thanks for this information, Ken. I just want to make sure I've > got > > > > > > > this right. The download includes many files, but you say to just > > > > > > > replace the mapserv.exe and any .dll's included in the download > from > > > > > > > maptools.org? If this is correct then I will be replacing the > > following > > > > > > > files in my existing MapServer folder: > > > > > > > > > > > > > > Mapserv.exe > > > > > > > Gdal12.dll > > > > > > > NCScnet.dll > > > > > > > NCSEcw.dll > > > > > > > NCSEcwC.dll > > > > > > > NCSUtil.dll > > > > > > > Libcurl.dll > > > > > > > Libpq.dll > > > > > > > Pdflib.dll > > > > > > > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > Application Specialist > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > First > > > > > > > Avenue, Delray Beach, FL 33444 > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > Lisi at MyDelrayBeach.com > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > > > > > Behalf Of Ken Lord > > > > > > > Sent: Wednesday, March 09, 2005 12:33 PM > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > Hi! > > > > > > > > > > > > > > This problem has come up a few times in the last couple weeks for > > > > > > > several people. I worked through it myself. > > > > > > > > > > > > > > It seems to be a problem with how the current windows binaries > > > > > > > available from the mapserver homepage were compiled. > > > > > > > > > > > > > > Download mapserver 4.4.1 from www.maptools.org/dl > > > > > > > > > > > > > > Use the mapserv.exe and the .dll'sthat are contained within the > zip > > > > > > > files that are included in that package. > > > > > > > > > > > > > > This version appears to have been compiled so that it is less > > > > > > > dependant on external dll's, using a larger exe and fewer dll's. > > > > > > > > > > > > > > ... and it works. > > > > > > > > > > > > > > So, this is the 3rd or 4th time this has come up on the list. > Think > > > > > > > it's time to take down/replace the current windows binaries > > available > > > > > > > at the mapserver homepage? > > > > > > > > > > > > > > Cheers, > > > > > > > Ken Lord > > > > > > > Vancouver BC > > > > > > > > > > > > > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and > returned > > me > > > > > > > back > > > > > > > > to a command prompt. If MapServer generated an html file, where > > would > > > > > > > it > > > > > > > > put it? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied it > > in > > > > > > > the NTFS > > > > > > > > file system. I now have applied the WRITE access in IIS (see > > below): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > First > > > > > > > Avenue, > > > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > > > Lisi at MyDelrayBeach.com > > > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > > > > > > > Sent: Wednesday, March 09, 2005 11:47 AM > > > > > > > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Did mapserv generate html when you executed it from the > command > > > > > > > prompt? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the > > problem > > > > > > > is with > > > > > > > > the IIS configuration of the workshop demo directory, likely > write > > > > > > > access to > > > > > > > > the tmp directory. Did you set write access for the tmp > directory > > > > > > > using IIS > > > > > > > > Manager? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Brent > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > > > > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command > prompt > > > > > > > with no > > > > > > > > errors. I guess I can assume that no .dll's are missing. > Someone > > > > > > > else on > > > > > > > > the list mentioned using forward slashes instead of backslashes > in > > the > > > > > > > html > > > > > > > > file variables. I will try that. If you have any input on that > I > > > > > > > would > > > > > > > > welcome it. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, Brent. > > > > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > First > > > > > > > Avenue, > > > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > > > Lisi at MyDelrayBeach.com > > > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > > > > > > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > > > > > On > > > > > > > > Behalf Of Brent Fraser > > > > > > > > Sent: Wednesday, March 09, 2005 11:16 AM > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In your first example it appears that mapserver was reading > the > > map > > > > > > > file > > > > > > > > but crashed for some reason. In the second example it couldn't > > find > > > > > > > the map > > > > > > > > file because it expects a file system path not a url. So the > > first > > > > > > > example > > > > > > > > is good, but the second is not (mapserver just handled the > second > > case > > > > > > > a lot > > > > > > > > better!). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages > > about > > > > > > > missing > > > > > > > > dlls. Here are the steps: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > > > > > > > > > > > > > > > > > > > 2. cd to the location of mapserv.exe > > > > > > > > > > > > > > > > > > > > > > > > 3. type in > > > > > > > > > > > > > > > > > > > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 4. Copy the query string from the your browser address bar and > > paste > > > > > > > it > > > > > > > > into the command window. The query string should look like: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > > > > > > > > > > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > > > > > > > > > > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > > > > > > > ap_web_template=itasca_basic.html > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog box > > > > > > > giving the > > > > > > > > name of the dll. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > > > > > > > > > > > > > > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've installed MapServer and successfully received the "No query > > > > > > > information > > > > > > > > to decode. QUERY_STRING is set, but empty." message. Now I am > > trying > > > > > > > to > > > > > > > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, > IIS6, > > > > > > > MapServer > > > > > > > > 4.4.1) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Here are the steps I have taken: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > > > > > > > > > > > > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop > > and > > > > > > > gave > > > > > > > > the IUSR account Read/Write/Execute permissions > > > > > > > > > > > > > > > > 3. Set default page to INDEX.HTML in IIS > > > > > > > > > > > > > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > > > > > > > > EXECUTABLES. > > > > > > > > > > > > > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when > I > > > > > > > click to > > > > > > > > initialize the BASIC APPLICATION using these variables I receive > > the > > > > > > > > following error: > > > > > > > > > > > > > > > > CGI Error > > > > > > > > > > > > > > > > The specified CGI application misbehaved by not returning a > > complete > > > > > > > set of > > > > > > > > HTTP headers. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\"> > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when > I > > > > > > > click to > > > > > > > > initialize the BASIC APPLICATION using these variables I receive > > the > > > > > > > > following error: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > msLoadMap(): Unable to access file. > > > > > > > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Can anyone help? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > First > > > > > > > Avenue, > > > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > > > Lisi at MyDelrayBeach.com > > > > > > From osgis.lists at GMAIL.COM Wed Mar 9 14:29:07 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Wed, 9 Mar 2005 16:29:07 -0600 Subject: Javascript Woes In-Reply-To: <422F22BB.3070108@gdv.com> Message-ID: Alright, I got it working fine in both (until I break something again). Thanks for the pointers. My next problem after the const issue was that to get my events to register I had to have a transparent background image set set for my drawing canvas in ie. From kenlord at GMAIL.COM Wed Mar 9 14:38:24 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 9 Mar 2005 14:38:24 -0800 Subject: MapServer 4.4.1 Demo In-Reply-To: Message-ID: Change the address to the map file .. Instead of a URL address -Ken On Wed, 9 Mar 2005 17:17:40 -0500, Lisi, Christine wrote: > msLoadMap(): Unable to access file. > (http://esgisrv001/MapServerDemo/itasca.map) > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > -----Original Message----- > From: Ken Lord [mailto:kenlord at gmail.com] > Sent: Wednesday, March 09, 2005 5:03 PM > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > Ok, I think we are on track anyways, When the map fails, what error > is returned? > > Ken > > On Wed, 9 Mar 2005 16:48:12 -0500, Lisi, Christine > wrote: > > Yes, I always get the index.html page. It's the map and all the other > > functions that don't work. I can use either the IP or the name of the > > server because it's in our DNS. > > > > This demo site has never worked. It's my first shot at it. > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First > > Avenue, Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > > > -----Original Message----- > > From: Ken Lord [mailto:kenlord at gmail.com] > > Sent: Wednesday, March 09, 2005 4:46 PM > > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > Are you able to get the index.html page using the http://192..../ > path? > > > > If not then its probably an address thing still. Were you able to > > determine the correct IP address of your webserver to put in place of > > my 192.168.1.103 address? > > > > If your website worked before over the internet, then I dont think any > > permissions need to be changed to make this work, as you are using the > > same setup. > > > > In my intranet case, I had set it up on a workstation on our network > > using Apache, and i think it worked right away. > > > > Can anyone else make a suggestion here? > > > > Cheers, > > Ken Lord > > Vancouver BC > > > > On Wed, 9 Mar 2005 16:37:37 -0500, Lisi, Christine > > wrote: > > > I'm really struggling here. I about at my wits end. I tried every > > > which path. The only way I get a map at all is if I use the full > path > > > of c:\... to point to the map file and it only works on the local > > > server. Maybe I have a rights issue? Can you share with me your > > rights > > > (NTFS and IIS) on your mining folder? > > > > > > Christine Lisi > > > Application Specialist > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, Delray Beach, FL 33444 > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > Lisi at MyDelrayBeach.com > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On > > > Behalf Of Ken Lord > > > Sent: Wednesday, March 09, 2005 3:43 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > Great! > > > > > > I'm not a contributor to mapserver code etc, so I'm glad I was able > to > > > give a little back by helping you make it work. > > > > > > I have setup mapserver to run as an intranet application, its not > too > > > tricky, and the great thing is that over a LAN, it will run > amazingly > > > fast. > > > > > > In your index.html file, and your .map file (and anywhere else if > > > needed) you need to change some web addresses to point at the local > > > network IP address of the computer hosting mapserver. Here's the > > > setttings I used: > > > > > > . > > > . > > > > > value="http://192.168.1.103/cgi-bin/mapserv.exe"> > > > > > value="http://192.168.1.103/Mining/temp/"> > > > . > > > . > > > and in the map file.. > > > IMAGEURL "http://192.168.1.103/Mining/temp/" > > > > > > Then just view the index.html file in your webbrowser using the > > > appropriate address http://192....../yourfolders/index.html > > > > > > The 192 domain is reserved for internal networks, anyone trying to > get > > > to the application from outside your network will just get an error > > > since that address would point them to a machine on their own > internal > > > network if it exists. > > > > > > I'm no expert on network things but this worked for me. If there's > > > any important considerations I've overlooked, hopefully someone else > > > will add them. > > > > > > Cheers, > > > Ken Lord > > > Vancouver BC > > > > > > On Wed, 9 Mar 2005 15:19:31 -0500, Lisi, Christine > > > wrote: > > > > > > > > > > > > This worked, Ken, so thank you SOOOO much. It works when I run it > > > from the > > > > web server. But here's my dilemma now. I am not an HTML > programmer > > > and I > > > > need to know what syntax to use in the INDEX.HTML file so that > this > > > demo is > > > > available INTERNALLY over the web. If I use the full paths in the > > > > INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the > > > error > > > > that the map cannot be found. Can you tell me the syntax to use > for > > > the > > > > paths in this section of the HTML file: > > > > > > > > > > > > > > > > > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\cgi-bin\mapserv.exe"> > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\"> > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > Your help is GREATLY appreciated. > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Ken Lord [mailto:kenlord at gmail.com] > > > > Sent: Wednesday, March 09, 2005 3:09 PM > > > > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > Hi Christine, > > > > > > > > > > > > > > > > Yes, thats right. That made it work for me on both a windows 2000 > > and > > > > > > > > windows XP Pro SP1 installation. > > > > > > > > > > > > > > > > There's no harm in leaving both the xerces dll's incase you have > > some > > > > > > > > other application using the newer version. > > > > > > > > > > > > > > > > Cheers, > > > > > > > > Ken Lord > > > > > > > > Vancouver BC > > > > > > > > > > > > > > > > On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine > > > > > > > > wrote: > > > > > > > > > Thanks for this information, Ken. I just want to make sure I've > > got > > > > > > > > > this right. The download includes many files, but you say to > just > > > > > > > > > replace the mapserv.exe and any .dll's included in the download > > from > > > > > > > > > maptools.org? If this is correct then I will be replacing the > > > following > > > > > > > > > files in my existing MapServer folder: > > > > > > > > > > > > > > > > > > Mapserv.exe > > > > > > > > > Gdal12.dll > > > > > > > > > NCScnet.dll > > > > > > > > > NCSEcw.dll > > > > > > > > > NCSEcwC.dll > > > > > > > > > NCSUtil.dll > > > > > > > > > Libcurl.dll > > > > > > > > > Libpq.dll > > > > > > > > > Pdflib.dll > > > > > > > > > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > First > > > > > > > > > Avenue, Delray Beach, FL 33444 > > > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > > > > > > > Behalf Of Ken Lord > > > > > > > > > Sent: Wednesday, March 09, 2005 12:33 PM > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > Hi! > > > > > > > > > > > > > > > > > > This problem has come up a few times in the last couple weeks > for > > > > > > > > > several people. I worked through it myself. > > > > > > > > > > > > > > > > > > It seems to be a problem with how the current windows binaries > > > > > > > > > available from the mapserver homepage were compiled. > > > > > > > > > > > > > > > > > > Download mapserver 4.4.1 from www.maptools.org/dl > > > > > > > > > > > > > > > > > > Use the mapserv.exe and the .dll'sthat are contained within the > > zip > > > > > > > > > files that are included in that package. > > > > > > > > > > > > > > > > > > This version appears to have been compiled so that it is less > > > > > > > > > dependant on external dll's, using a larger exe and fewer dll's. > > > > > > > > > > > > > > > > > > ... and it works. > > > > > > > > > > > > > > > > > > So, this is the 3rd or 4th time this has come up on the list. > > Think > > > > > > > > > it's time to take down/replace the current windows binaries > > > available > > > > > > > > > at the mapserver homepage? > > > > > > > > > > > > > > > > > > Cheers, > > > > > > > > > Ken Lord > > > > > > > > > Vancouver BC > > > > > > > > > > > > > > > > > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and > > returned > > > me > > > > > > > > > back > > > > > > > > > > to a command prompt. If MapServer generated an html file, > where > > > would > > > > > > > > > it > > > > > > > > > > put it? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied > it > > > in > > > > > > > > > the NTFS > > > > > > > > > > file system. I now have applied the WRITE access in IIS (see > > > below): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > > First > > > > > > > > > Avenue, > > > > > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > > > > > Lisi at MyDelrayBeach.com > > > > > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > > > > > > > > > Sent: Wednesday, March 09, 2005 11:47 AM > > > > > > > > > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Did mapserv generate html when you executed it from the > > command > > > > > > > > > prompt? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the > > > problem > > > > > > > > > is with > > > > > > > > > > the IIS configuration of the workshop demo directory, likely > > write > > > > > > > > > access to > > > > > > > > > > the tmp directory. Did you set write access for the tmp > > directory > > > > > > > > > using IIS > > > > > > > > > > Manager? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Brent > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command > > prompt > > > > > > > > > with no > > > > > > > > > > errors. I guess I can assume that no .dll's are missing. > > Someone > > > > > > > > > else on > > > > > > > > > > the list mentioned using forward slashes instead of > backslashes > > in > > > the > > > > > > > > > html > > > > > > > > > > file variables. I will try that. If you have any input on > that > > I > > > > > > > > > would > > > > > > > > > > welcome it. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, Brent. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > > First > > > > > > > > > Avenue, > > > > > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > > > > > Lisi at MyDelrayBeach.com > > > > > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > > > > > > > On > > > > > > > > > > Behalf Of Brent Fraser > > > > > > > > > > Sent: Wednesday, March 09, 2005 11:16 AM > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In your first example it appears that mapserver was reading > > the > > > map > > > > > > > > > file > > > > > > > > > > but crashed for some reason. In the second example it > couldn't > > > find > > > > > > > > > the map > > > > > > > > > > file because it expects a file system path not a url. So the > > > first > > > > > > > > > example > > > > > > > > > > is good, but the second is not (mapserver just handled the > > second > > > case > > > > > > > > > a lot > > > > > > > > > > better!). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The crash is likely due to a missing dll required by > mapserver. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages > > > about > > > > > > > > > missing > > > > > > > > > > dlls. Here are the steps: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2. cd to the location of mapserv.exe > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 3. type in > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 4. Copy the query string from the your browser address bar > and > > > paste > > > > > > > > > it > > > > > > > > > > into the command window. The query string should look like: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > > > > > > > > > > > > > > > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > > > > > > > > > > > > > > > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > > > > > > > > > ap_web_template=itasca_basic.html > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 5. Add a double quote to the end of the string and press > return. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog > box > > > > > > > > > giving the > > > > > > > > > > name of the dll. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've installed MapServer and successfully received the "No > query > > > > > > > > > information > > > > > > > > > > to decode. QUERY_STRING is set, but empty." message. Now I > am > > > trying > > > > > > > > > to > > > > > > > > > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, > > IIS6, > > > > > > > > > MapServer > > > > > > > > > > 4.4.1) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Here are the steps I have taken: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > > > > > > > > > > > > > > > > > 2. Created a tmp folder inside > C:\Inetpub\wwwroot\workshop > > > and > > > > > > > > > gave > > > > > > > > > > the IUSR account Read/Write/Execute permissions > > > > > > > > > > > > > > > > > > > > 3. Set default page to INDEX.HTML in IIS > > > > > > > > > > > > > > > > > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS > and > > > > > > > > > > EXECUTABLES. > > > > > > > > > > > > > > > > > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > > > > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but > when > > I > > > > > > > > > click to > > > > > > > > > > initialize the BASIC APPLICATION using these variables I > receive > > > the > > > > > > > > > > following error: > > > > > > > > > > > > > > > > > > > > CGI Error > > > > > > > > > > > > > > > > > > > > The specified CGI application misbehaved by not returning a > > > complete > > > > > > > > > set of > > > > > > > > > > HTTP headers. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > > > > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but > when > > I > > > > > > > > > click to > > > > > > > > > > initialize the BASIC APPLICATION using these variables I > receive > > > the > > > > > > > > > > following error: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > msLoadMap(): Unable to access file. > > > > > > > > > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Can anyone help? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > > First > > > > > > > > > Avenue, > > > > > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > > > > > Lisi at MyDelrayBeach.com > > > > > > > > > From lisi at MYDELRAYBEACH.COM Wed Mar 9 14:39:19 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 9 Mar 2005 17:39:19 -0500 Subject: MapServer 4.4.1 Demo Message-ID: OK, Brent! It works now. I don't understand what is so different? Maybe you can shed some light. Thank you so much! Thanks to everyone who helped on this! My head is pounding! Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Wednesday, March 09, 2005 5:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Christine, Here's what editable portions of your index.html file should look like: : : Note the forward slashes and lack of drive letters. Also note that map_web_imageurl is relative to "web root" (C:\inetpub\wwwroot) while map_web_imagepath is relative to file system root (C:) Does this work on your server? Brent ----- Original Message ----- From: "Lisi, Christine" To: Sent: Wednesday, March 09, 2005 2:37 PM Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo I'm really struggling here. I about at my wits end. I tried every which path. The only way I get a map at all is if I use the full path of c:\... to point to the map file and it only works on the local server. Maybe I have a rights issue? Can you share with me your rights (NTFS and IIS) on your mining folder? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Wednesday, March 09, 2005 3:43 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Great! I'm not a contributor to mapserver code etc, so I'm glad I was able to give a little back by helping you make it work. I have setup mapserver to run as an intranet application, its not too tricky, and the great thing is that over a LAN, it will run amazingly fast. In your index.html file, and your .map file (and anywhere else if needed) you need to change some web addresses to point at the local network IP address of the computer hosting mapserver. Here's the setttings I used: . . . . and in the map file.. IMAGEURL "http://192.168.1.103/Mining/temp/" Then just view the index.html file in your webbrowser using the appropriate address http://192....../yourfolders/index.html The 192 domain is reserved for internal networks, anyone trying to get to the application from outside your network will just get an error since that address would point them to a machine on their own internal network if it exists. I'm no expert on network things but this worked for me. If there's any important considerations I've overlooked, hopefully someone else will add them. Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 15:19:31 -0500, Lisi, Christine wrote: > > > This worked, Ken, so thank you SOOOO much. It works when I run it from the > web server. But here's my dilemma now. I am not an HTML programmer and I > need to know what syntax to use in the INDEX.HTML file so that this demo is > available INTERNALLY over the web. If I use the full paths in the > INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the error > that the map cannot be found. Can you tell me the syntax to use for the > paths in this section of the HTML file: > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\itasca.map"> > > value="\\esgisrv001\inetpub\wwwroot\cgi-bin\mapserv.exe"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > Your help is GREATLY appreciated. > > > > Thanks. > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First Avenue, > Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > > > > > -----Original Message----- > From: Ken Lord [mailto:kenlord at gmail.com] > Sent: Wednesday, March 09, 2005 3:09 PM > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > Hi Christine, > > > > Yes, thats right. That made it work for me on both a windows 2000 and > > windows XP Pro SP1 installation. > > > > There's no harm in leaving both the xerces dll's incase you have some > > other application using the newer version. > > > > Cheers, > > Ken Lord > > Vancouver BC > > > > On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine > > wrote: > > > Thanks for this information, Ken. I just want to make sure I've got > > > this right. The download includes many files, but you say to just > > > replace the mapserv.exe and any .dll's included in the download from > > > maptools.org? If this is correct then I will be replacing the following > > > files in my existing MapServer folder: > > > > > > Mapserv.exe > > > Gdal12.dll > > > NCScnet.dll > > > NCSEcw.dll > > > NCSEcwC.dll > > > NCSUtil.dll > > > Libcurl.dll > > > Libpq.dll > > > Pdflib.dll > > > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > > > > > > > Christine Lisi > > > Application Specialist > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, Delray Beach, FL 33444 > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > > > > -----Original Message----- > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > Behalf Of Ken Lord > > > Sent: Wednesday, March 09, 2005 12:33 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > Hi! > > > > > > This problem has come up a few times in the last couple weeks for > > > several people. I worked through it myself. > > > > > > It seems to be a problem with how the current windows binaries > > > available from the mapserver homepage were compiled. > > > > > > Download mapserver 4.4.1 from www.maptools.org/dl > > > > > > Use the mapserv.exe and the .dll'sthat are contained within the zip > > > files that are included in that package. > > > > > > This version appears to have been compiled so that it is less > > > dependant on external dll's, using a larger exe and fewer dll's. > > > > > > ... and it works. > > > > > > So, this is the 3rd or 4th time this has come up on the list. Think > > > it's time to take down/replace the current windows binaries available > > > at the mapserver homepage? > > > > > > Cheers, > > > Ken Lord > > > Vancouver BC > > > > > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > > > wrote: > > > > > > > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and returned me > > > back > > > > to a command prompt. If MapServer generated an html file, where would > > > it > > > > put it? > > > > > > > > > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied it in > > > the NTFS > > > > file system. I now have applied the WRITE access in IIS (see below): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > ________________________________ > > > > > > > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > > > Sent: Wednesday, March 09, 2005 11:47 AM > > > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > Did mapserv generate html when you executed it from the command > > > prompt? > > > > > > > > > > > > > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the problem > > > is with > > > > the IIS configuration of the workshop demo directory, likely write > > > access to > > > > the tmp directory. Did you set write access for the tmp directory > > > using IIS > > > > Manager? > > > > > > > > > > > > > > > > > > > > > > > > Brent > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command prompt > > > with no > > > > errors. I guess I can assume that no .dll's are missing. Someone > > > else on > > > > the list mentioned using forward slashes instead of backslashes in the > > > html > > > > file variables. I will try that. If you have any input on that I > > > would > > > > welcome it. > > > > > > > > > > > > > > > > Thanks, Brent. > > > > > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > ________________________________ > > > > > > > > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > On > > > > Behalf Of Brent Fraser > > > > Sent: Wednesday, March 09, 2005 11:16 AM > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > In your first example it appears that mapserver was reading the map > > > file > > > > but crashed for some reason. In the second example it couldn't find > > > the map > > > > file because it expects a file system path not a url. So the first > > > example > > > > is good, but the second is not (mapserver just handled the second case > > > a lot > > > > better!). > > > > > > > > > > > > > > > > > > > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > > > > > > > > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages about > > > missing > > > > dlls. Here are the steps: > > > > > > > > > > > > > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > > > > > > > 2. cd to the location of mapserv.exe > > > > > > > > > > > > 3. type in > > > > > > > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > > > > > > > > > > > > > 4. Copy the query string from the your browser address bar and paste > > > it > > > > into the command window. The query string should look like: > > > > > > > > > > > > > > > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > > > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > > > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > > > ap_web_template=itasca_basic.html > > > > > > > > > > > > > > > > > > > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > > > > > > > > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog box > > > giving the > > > > name of the dll. > > > > > > > > > > > > > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > I've installed MapServer and successfully received the "No query > > > information > > > > to decode. QUERY_STRING is set, but empty." message. Now I am trying > > > to > > > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, > > > MapServer > > > > 4.4.1) > > > > > > > > > > > > > > > > Here are the steps I have taken: > > > > > > > > > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > > > > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and > > > gave > > > > the IUSR account Read/Write/Execute permissions > > > > > > > > 3. Set default page to INDEX.HTML in IIS > > > > > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > > > > EXECUTABLES. > > > > > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > click to > > > > initialize the BASIC APPLICATION using these variables I receive the > > > > following error: > > > > > > > > CGI Error > > > > > > > > The specified CGI application misbehaved by not returning a complete > > > set of > > > > HTTP headers. > > > > > > > > > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > > > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > > > > > > > value="http:\\esgisrv001\workshop\"> > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > click to > > > > initialize the BASIC APPLICATION using these variables I receive the > > > > following error: > > > > > > > > > > > > > > > > msLoadMap(): Unable to access file. > > > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > > > > > > > > > Can anyone help? > > > > > > > > > > > > > > > > Thanks. > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > > From lisi at MYDELRAYBEACH.COM Wed Mar 9 14:41:06 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Wed, 9 Mar 2005 17:41:06 -0500 Subject: MapServer 4.4.1 Demo Message-ID: Ken, I received this from Brent and it fixed the problem. Between yours and his advice I have finally got it working. My head is pounding, but the demo is now working! Christine, Here's what editable portions of your index.html file should look like: : : Note the forward slashes and lack of drive letters. Also note that map_web_imageurl is relative to "web root" (C:\inetpub\wwwroot) while map_web_imagepath is relative to file system root (C:) Does this work on your server? Brent Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Ken Lord [mailto:kenlord at gmail.com] Sent: Wednesday, March 09, 2005 5:38 PM To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Change the address to the map file .. Instead of a URL address -Ken On Wed, 9 Mar 2005 17:17:40 -0500, Lisi, Christine wrote: > msLoadMap(): Unable to access file. > (http://esgisrv001/MapServerDemo/itasca.map) > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > -----Original Message----- > From: Ken Lord [mailto:kenlord at gmail.com] > Sent: Wednesday, March 09, 2005 5:03 PM > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > Ok, I think we are on track anyways, When the map fails, what error > is returned? > > Ken > > On Wed, 9 Mar 2005 16:48:12 -0500, Lisi, Christine > wrote: > > Yes, I always get the index.html page. It's the map and all the other > > functions that don't work. I can use either the IP or the name of the > > server because it's in our DNS. > > > > This demo site has never worked. It's my first shot at it. > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First > > Avenue, Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > Lisi at MyDelrayBeach.com > > > > -----Original Message----- > > From: Ken Lord [mailto:kenlord at gmail.com] > > Sent: Wednesday, March 09, 2005 4:46 PM > > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > Are you able to get the index.html page using the http://192..../ > path? > > > > If not then its probably an address thing still. Were you able to > > determine the correct IP address of your webserver to put in place of > > my 192.168.1.103 address? > > > > If your website worked before over the internet, then I dont think any > > permissions need to be changed to make this work, as you are using the > > same setup. > > > > In my intranet case, I had set it up on a workstation on our network > > using Apache, and i think it worked right away. > > > > Can anyone else make a suggestion here? > > > > Cheers, > > Ken Lord > > Vancouver BC > > > > On Wed, 9 Mar 2005 16:37:37 -0500, Lisi, Christine > > wrote: > > > I'm really struggling here. I about at my wits end. I tried every > > > which path. The only way I get a map at all is if I use the full > path > > > of c:\... to point to the map file and it only works on the local > > > server. Maybe I have a rights issue? Can you share with me your > > rights > > > (NTFS and IIS) on your mining folder? > > > > > > Christine Lisi > > > Application Specialist > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, Delray Beach, FL 33444 > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > Lisi at MyDelrayBeach.com > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On > > > Behalf Of Ken Lord > > > Sent: Wednesday, March 09, 2005 3:43 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > Great! > > > > > > I'm not a contributor to mapserver code etc, so I'm glad I was able > to > > > give a little back by helping you make it work. > > > > > > I have setup mapserver to run as an intranet application, its not > too > > > tricky, and the great thing is that over a LAN, it will run > amazingly > > > fast. > > > > > > In your index.html file, and your .map file (and anywhere else if > > > needed) you need to change some web addresses to point at the local > > > network IP address of the computer hosting mapserver. Here's the > > > setttings I used: > > > > > > . > > > . > > > > > value="http://192.168.1.103/cgi-bin/mapserv.exe"> > > > > > value="http://192.168.1.103/Mining/temp/"> > > > . > > > . > > > and in the map file.. > > > IMAGEURL "http://192.168.1.103/Mining/temp/" > > > > > > Then just view the index.html file in your webbrowser using the > > > appropriate address http://192....../yourfolders/index.html > > > > > > The 192 domain is reserved for internal networks, anyone trying to > get > > > to the application from outside your network will just get an error > > > since that address would point them to a machine on their own > internal > > > network if it exists. > > > > > > I'm no expert on network things but this worked for me. If there's > > > any important considerations I've overlooked, hopefully someone else > > > will add them. > > > > > > Cheers, > > > Ken Lord > > > Vancouver BC > > > > > > On Wed, 9 Mar 2005 15:19:31 -0500, Lisi, Christine > > > wrote: > > > > > > > > > > > > This worked, Ken, so thank you SOOOO much. It works when I run it > > > from the > > > > web server. But here's my dilemma now. I am not an HTML > programmer > > > and I > > > > need to know what syntax to use in the INDEX.HTML file so that > this > > > demo is > > > > available INTERNALLY over the web. If I use the full paths in the > > > > INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the > > > error > > > > that the map cannot be found. Can you tell me the syntax to use > for > > > the > > > > paths in this section of the HTML file: > > > > > > > > > > > > > > > > > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\cgi-bin\mapserv.exe"> > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\"> > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > Your help is GREATLY appreciated. > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Ken Lord [mailto:kenlord at gmail.com] > > > > Sent: Wednesday, March 09, 2005 3:09 PM > > > > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > Hi Christine, > > > > > > > > > > > > > > > > Yes, thats right. That made it work for me on both a windows 2000 > > and > > > > > > > > windows XP Pro SP1 installation. > > > > > > > > > > > > > > > > There's no harm in leaving both the xerces dll's incase you have > > some > > > > > > > > other application using the newer version. > > > > > > > > > > > > > > > > Cheers, > > > > > > > > Ken Lord > > > > > > > > Vancouver BC > > > > > > > > > > > > > > > > On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine > > > > > > > > wrote: > > > > > > > > > Thanks for this information, Ken. I just want to make sure I've > > got > > > > > > > > > this right. The download includes many files, but you say to > just > > > > > > > > > replace the mapserv.exe and any .dll's included in the download > > from > > > > > > > > > maptools.org? If this is correct then I will be replacing the > > > following > > > > > > > > > files in my existing MapServer folder: > > > > > > > > > > > > > > > > > > Mapserv.exe > > > > > > > > > Gdal12.dll > > > > > > > > > NCScnet.dll > > > > > > > > > NCSEcw.dll > > > > > > > > > NCSEcwC.dll > > > > > > > > > NCSUtil.dll > > > > > > > > > Libcurl.dll > > > > > > > > > Libpq.dll > > > > > > > > > Pdflib.dll > > > > > > > > > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > First > > > > > > > > > Avenue, Delray Beach, FL 33444 > > > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > > > > > > > Behalf Of Ken Lord > > > > > > > > > Sent: Wednesday, March 09, 2005 12:33 PM > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > Hi! > > > > > > > > > > > > > > > > > > This problem has come up a few times in the last couple weeks > for > > > > > > > > > several people. I worked through it myself. > > > > > > > > > > > > > > > > > > It seems to be a problem with how the current windows binaries > > > > > > > > > available from the mapserver homepage were compiled. > > > > > > > > > > > > > > > > > > Download mapserver 4.4.1 from www.maptools.org/dl > > > > > > > > > > > > > > > > > > Use the mapserv.exe and the .dll'sthat are contained within the > > zip > > > > > > > > > files that are included in that package. > > > > > > > > > > > > > > > > > > This version appears to have been compiled so that it is less > > > > > > > > > dependant on external dll's, using a larger exe and fewer dll's. > > > > > > > > > > > > > > > > > > ... and it works. > > > > > > > > > > > > > > > > > > So, this is the 3rd or 4th time this has come up on the list. > > Think > > > > > > > > > it's time to take down/replace the current windows binaries > > > available > > > > > > > > > at the mapserver homepage? > > > > > > > > > > > > > > > > > > Cheers, > > > > > > > > > Ken Lord > > > > > > > > > Vancouver BC > > > > > > > > > > > > > > > > > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and > > returned > > > me > > > > > > > > > back > > > > > > > > > > to a command prompt. If MapServer generated an html file, > where > > > would > > > > > > > > > it > > > > > > > > > > put it? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied > it > > > in > > > > > > > > > the NTFS > > > > > > > > > > file system. I now have applied the WRITE access in IIS (see > > > below): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > > First > > > > > > > > > Avenue, > > > > > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > > > > > Lisi at MyDelrayBeach.com > > > > > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > > > > > > > > > Sent: Wednesday, March 09, 2005 11:47 AM > > > > > > > > > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Did mapserv generate html when you executed it from the > > command > > > > > > > > > prompt? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the > > > problem > > > > > > > > > is with > > > > > > > > > > the IIS configuration of the workshop demo directory, likely > > write > > > > > > > > > access to > > > > > > > > > > the tmp directory. Did you set write access for the tmp > > directory > > > > > > > > > using IIS > > > > > > > > > > Manager? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Brent > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command > > prompt > > > > > > > > > with no > > > > > > > > > > errors. I guess I can assume that no .dll's are missing. > > Someone > > > > > > > > > else on > > > > > > > > > > the list mentioned using forward slashes instead of > backslashes > > in > > > the > > > > > > > > > html > > > > > > > > > > file variables. I will try that. If you have any input on > that > > I > > > > > > > > > would > > > > > > > > > > welcome it. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, Brent. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > > First > > > > > > > > > Avenue, > > > > > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > > > > > Lisi at MyDelrayBeach.com > > > > > > > > > > ________________________________ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > > > > > > > On > > > > > > > > > > Behalf Of Brent Fraser > > > > > > > > > > Sent: Wednesday, March 09, 2005 11:16 AM > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In your first example it appears that mapserver was reading > > the > > > map > > > > > > > > > file > > > > > > > > > > but crashed for some reason. In the second example it > couldn't > > > find > > > > > > > > > the map > > > > > > > > > > file because it expects a file system path not a url. So the > > > first > > > > > > > > > example > > > > > > > > > > is good, but the second is not (mapserver just handled the > > second > > > case > > > > > > > > > a lot > > > > > > > > > > better!). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The crash is likely due to a missing dll required by > mapserver. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages > > > about > > > > > > > > > missing > > > > > > > > > > dlls. Here are the steps: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2. cd to the location of mapserv.exe > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 3. type in > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 4. Copy the query string from the your browser address bar > and > > > paste > > > > > > > > > it > > > > > > > > > > into the command window. The query string should look like: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > > > > > > > > > > > > > > > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > > > > > > > > > > > > > > > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > > > > > > > > > ap_web_template=itasca_basic.html > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 5. Add a double quote to the end of the string and press > return. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog > box > > > > > > > > > giving the > > > > > > > > > > name of the dll. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've installed MapServer and successfully received the "No > query > > > > > > > > > information > > > > > > > > > > to decode. QUERY_STRING is set, but empty." message. Now I > am > > > trying > > > > > > > > > to > > > > > > > > > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, > > IIS6, > > > > > > > > > MapServer > > > > > > > > > > 4.4.1) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Here are the steps I have taken: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > > > > > > > > > > > > > > > > > 2. Created a tmp folder inside > C:\Inetpub\wwwroot\workshop > > > and > > > > > > > > > gave > > > > > > > > > > the IUSR account Read/Write/Execute permissions > > > > > > > > > > > > > > > > > > > > 3. Set default page to INDEX.HTML in IIS > > > > > > > > > > > > > > > > > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS > and > > > > > > > > > > EXECUTABLES. > > > > > > > > > > > > > > > > > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > > > > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but > when > > I > > > > > > > > > click to > > > > > > > > > > initialize the BASIC APPLICATION using these variables I > receive > > > the > > > > > > > > > > following error: > > > > > > > > > > > > > > > > > > > > CGI Error > > > > > > > > > > > > > > > > > > > > The specified CGI application misbehaved by not returning a > > > complete > > > > > > > > > set of > > > > > > > > > > HTTP headers. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > > > > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but > when > > I > > > > > > > > > click to > > > > > > > > > > initialize the BASIC APPLICATION using these variables I > receive > > > the > > > > > > > > > > following error: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > msLoadMap(): Unable to access file. > > > > > > > > > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Can anyone help? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > > > > > > > Application Specialist > > > > > > > > > > > > > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW > > > First > > > > > > > > > Avenue, > > > > > > > > > > Delray Beach, FL 33444 > > > > > > > > > > > > > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > > > > > > > Lisi at MyDelrayBeach.com > > > > > > > > > From bfraser at GEOANALYTIC.COM Wed Mar 9 15:15:59 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 9 Mar 2005 16:15:59 -0700 Subject: MapServer 4.4.1 Demo Message-ID: Well, it was a learning experience for me too. I learned that the mapserv.exe (v4.4.1) on my test server was not reliable (it was crashing in odd places). After downloading the one from MapTools things got a lot easier. Must be a library mismatch in mine somewhere.. I expect your difficulties were related to the contents of the variables in the index.html; some are "filesystem-relative" and others are "websystem-relative". To make things more confusing, some are MapServer CGI variables and others are MapServer mapfile variables, so you need to know where to look in the doc. Even then it might not help, for example look at our official doc for the map CGI variable (from http://mapserver.gis.umn.edu/doc44/cgi-reference.html): MAP [filename] Path, relative to the CGI directory, of the map file to be used. Hmm, kinda terse. Brent ----- Original Message ----- From: "Lisi, Christine" To: Sent: Wednesday, March 09, 2005 3:39 PM Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo OK, Brent! It works now. I don't understand what is so different? Maybe you can shed some light. Thank you so much! Thanks to everyone who helped on this! My head is pounding! Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Wednesday, March 09, 2005 5:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Christine, Here's what editable portions of your index.html file should look like: : : Note the forward slashes and lack of drive letters. Also note that map_web_imageurl is relative to "web root" (C:\inetpub\wwwroot) while map_web_imagepath is relative to file system root (C:) Does this work on your server? Brent ----- Original Message ----- From: "Lisi, Christine" To: Sent: Wednesday, March 09, 2005 2:37 PM Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo I'm really struggling here. I about at my wits end. I tried every which path. The only way I get a map at all is if I use the full path of c:\... to point to the map file and it only works on the local server. Maybe I have a rights issue? Can you share with me your rights (NTFS and IIS) on your mining folder? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Wednesday, March 09, 2005 3:43 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Great! I'm not a contributor to mapserver code etc, so I'm glad I was able to give a little back by helping you make it work. I have setup mapserver to run as an intranet application, its not too tricky, and the great thing is that over a LAN, it will run amazingly fast. In your index.html file, and your .map file (and anywhere else if needed) you need to change some web addresses to point at the local network IP address of the computer hosting mapserver. Here's the setttings I used: . . . . and in the map file.. IMAGEURL "http://192.168.1.103/Mining/temp/" Then just view the index.html file in your webbrowser using the appropriate address http://192....../yourfolders/index.html The 192 domain is reserved for internal networks, anyone trying to get to the application from outside your network will just get an error since that address would point them to a machine on their own internal network if it exists. I'm no expert on network things but this worked for me. If there's any important considerations I've overlooked, hopefully someone else will add them. Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 15:19:31 -0500, Lisi, Christine wrote: > > > This worked, Ken, so thank you SOOOO much. It works when I run it from the > web server. But here's my dilemma now. I am not an HTML programmer and I > need to know what syntax to use in the INDEX.HTML file so that this demo is > available INTERNALLY over the web. If I use the full paths in the > INDEX.HTML file (C:\...) or UNC paths (\\SERVERNAME\...) I get the error > that the map cannot be found. Can you tell me the syntax to use for the > paths in this section of the HTML file: > > > > > > value="\\esgisrv001\inetpub\wwwroot\workshop\itasca.map"> > > value="\\esgisrv001\inetpub\wwwroot\cgi-bin\mapserv.exe"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > value="\\esgisrv001\inetpub\wwwroot\workshop\tmp\"> > > > > Your help is GREATLY appreciated. > > > > Thanks. > > > > Christine Lisi > > Application Specialist > > > > Management Information Systems * City of Delray Beach * 100 NW First Avenue, > Delray Beach, FL 33444 > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > > > > > -----Original Message----- > From: Ken Lord [mailto:kenlord at gmail.com] > Sent: Wednesday, March 09, 2005 3:09 PM > To: Lisi, Christine; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > Hi Christine, > > > > Yes, thats right. That made it work for me on both a windows 2000 and > > windows XP Pro SP1 installation. > > > > There's no harm in leaving both the xerces dll's incase you have some > > other application using the newer version. > > > > Cheers, > > Ken Lord > > Vancouver BC > > > > On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine > > wrote: > > > Thanks for this information, Ken. I just want to make sure I've got > > > this right. The download includes many files, but you say to just > > > replace the mapserv.exe and any .dll's included in the download from > > > maptools.org? If this is correct then I will be replacing the following > > > files in my existing MapServer folder: > > > > > > Mapserv.exe > > > Gdal12.dll > > > NCScnet.dll > > > NCSEcw.dll > > > NCSEcwC.dll > > > NCSUtil.dll > > > Libcurl.dll > > > Libpq.dll > > > Pdflib.dll > > > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > > > > > > > Christine Lisi > > > Application Specialist > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, Delray Beach, FL 33444 > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > > > > > -----Original Message----- > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > Behalf Of Ken Lord > > > Sent: Wednesday, March 09, 2005 12:33 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > Hi! > > > > > > This problem has come up a few times in the last couple weeks for > > > several people. I worked through it myself. > > > > > > It seems to be a problem with how the current windows binaries > > > available from the mapserver homepage were compiled. > > > > > > Download mapserver 4.4.1 from www.maptools.org/dl > > > > > > Use the mapserv.exe and the .dll'sthat are contained within the zip > > > files that are included in that package. > > > > > > This version appears to have been compiled so that it is less > > > dependant on external dll's, using a larger exe and fewer dll's. > > > > > > ... and it works. > > > > > > So, this is the 3rd or 4th time this has come up on the list. Think > > > it's time to take down/replace the current windows binaries available > > > at the mapserver homepage? > > > > > > Cheers, > > > Ken Lord > > > Vancouver BC > > > > > > On Wed, 9 Mar 2005 12:03:01 -0500, Lisi, Christine > > > wrote: > > > > > > > > > > > > I ran the following command at the command prompt: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > When I pressed Enter it hesitated for about 5 seconds and returned me > > > back > > > > to a command prompt. If MapServer generated an html file, where would > > > it > > > > put it? > > > > > > > > > > > > > > > > I hadn't applied the WRITE access in IIS, but instead applied it in > > > the NTFS > > > > file system. I now have applied the WRITE access in IIS (see below): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I still get the same error. > > > > > > > > > > > > > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > ________________________________ > > > > > > > > > > > > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > > > > Sent: Wednesday, March 09, 2005 11:47 AM > > > > To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > Did mapserv generate html when you executed it from the command > > > prompt? > > > > > > > > > > > > > > > > > > > > > > > > The fact that mapserver didn't crash leads me to believe the problem > > > is with > > > > the IIS configuration of the workshop demo directory, likely write > > > access to > > > > the tmp directory. Did you set write access for the tmp directory > > > using IIS > > > > Manager? > > > > > > > > > > > > > > > > > > > > > > > > Brent > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 9:31 AM > > > > > > > > > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > I ran the mapserv QUERY_STRING and it returned to a command prompt > > > with no > > > > errors. I guess I can assume that no .dll's are missing. Someone > > > else on > > > > the list mentioned using forward slashes instead of backslashes in the > > > html > > > > file variables. I will try that. If you have any input on that I > > > would > > > > welcome it. > > > > > > > > > > > > > > > > Thanks, Brent. > > > > > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > ________________________________ > > > > > > > > > > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > On > > > > Behalf Of Brent Fraser > > > > Sent: Wednesday, March 09, 2005 11:16 AM > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > Christine, > > > > > > > > > > > > > > > > > > > > > > > > In your first example it appears that mapserver was reading the map > > > file > > > > but crashed for some reason. In the second example it couldn't find > > > the map > > > > file because it expects a file system path not a url. So the first > > > example > > > > is good, but the second is not (mapserver just handled the second case > > > a lot > > > > better!). > > > > > > > > > > > > > > > > > > > > > > > > The crash is likely due to a missing dll required by mapserver. > > > > > > > > > > > > > > > > > > > > > > > > You can run mapserv.exe from the command line to get messages about > > > missing > > > > dlls. Here are the steps: > > > > > > > > > > > > > > > > > > > > > > > > 1. Open a command prompt window on your server > > > > > > > > > > > > 2. cd to the location of mapserv.exe > > > > > > > > > > > > 3. type in > > > > > > > > > > > > mapserv QUERY_STRING=" > > > > > > > > > > > > > > > > > > > > > > > > 4. Copy the query string from the your browser address bar and paste > > > it > > > > into the command window. The query string should look like: > > > > > > > > > > > > > > > > > > > > > > > > > > > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Finetpub%2Fwwwroot%2Fwork > > > shop%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv.exe&root=%2Fworkshop&map_ > > > web_imagepath=%2Finetpub%2Fwwwroot%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&m > > > ap_web_template=itasca_basic.html > > > > > > > > > > > > > > > > > > > > > > > > 5. Add a double quote to the end of the string and press return. > > > > > > > > > > > > > > > > > > > > > > > > If a dll is missing, the operating system will show a dialog box > > > giving the > > > > name of the dll. > > > > > > > > > > > > > > > > > > > > > > > > Brent Fraser > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > > From: Lisi, Christine > > > > > > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > > > > > > Sent: Wednesday, March 09, 2005 8:31 AM > > > > > > > > > > > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > > > > > > > > > > > > > > > > > > > I've installed MapServer and successfully received the "No query > > > information > > > > to decode. QUERY_STRING is set, but empty." message. Now I am trying > > > to > > > > get the MapServer 4.4.1 Demo to work. (Windows Server 2003, IIS6, > > > MapServer > > > > 4.4.1) > > > > > > > > > > > > > > > > Here are the steps I have taken: > > > > > > > > > > > > > > > > 1. Copied the WORKSHOP folder to C:\Inetpub\wwwroot > > > > > > > > 2. Created a tmp folder inside C:\Inetpub\wwwroot\workshop and > > > gave > > > > the IUSR account Read/Write/Execute permissions > > > > > > > > 3. Set default page to INDEX.HTML in IIS > > > > > > > > 4. Changed Execute Permissions in IIS to allow SCRIPTS and > > > > EXECUTABLES. > > > > > > > > 5. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\itasca.map"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\cgi-bin/mapserv.exe"> > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > value="C:\Inetpub\wwwroot\workshop\tmp\"> > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > click to > > > > initialize the BASIC APPLICATION using these variables I receive the > > > > following error: > > > > > > > > CGI Error > > > > > > > > The specified CGI application misbehaved by not returning a complete > > > set of > > > > HTTP headers. > > > > > > > > > > > > > > > > 6. Edited INDEX.HTML file as follows (edits in bold): > > > > > > > > > > > > > > > > > > > > > > > > > > > action="http:\\esgisrv001\cgi-bin\mapserv.exe" > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > value="http:\\esgisrv001\workshop\itasca.map"> > > > > > > > > > > > value="http:\\esgisrv001\cgi-bin\mapserv.exe"> > > > > > > > > > > value="http:\\esgisrv001\workshop\"> > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > value="http:\\esgisrv001\workshop\tmp\"> > > > > > > > > > > > > > > > > I get the MapServer Itasca Application initial screen, but when I > > > click to > > > > initialize the BASIC APPLICATION using these variables I receive the > > > > following error: > > > > > > > > > > > > > > > > msLoadMap(): Unable to access file. > > > (http:\\esgisrv001\workshop\itasca.map) > > > > > > > > > > > > > > > > Can anyone help? > > > > > > > > > > > > > > > > Thanks. > > > > > > > > Christine Lisi > > > > Application Specialist > > > > > > > > Management Information Systems * City of Delray Beach * 100 NW First > > > Avenue, > > > > Delray Beach, FL 33444 > > > > > > > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, > > > Lisi at MyDelrayBeach.com > > > > > From wokar1 at YAHOO.COM Wed Mar 9 17:21:44 2005 From: wokar1 at YAHOO.COM (w m) Date: Wed, 9 Mar 2005 17:21:44 -0800 Subject: pgsql2shp command...need help In-Reply-To: 6667 Message-ID: Hi, Im trying to use the pgsql2shp command to convert a very small table from pgadmin My database is called montreal and the table is called hotspots in the root dierectory i do the following. i get the following error -bash-2.05b$ pgsql2shp Montreal Hotspots Initializing... No geometry column found. The DBF file will be created but not the shx or shp files. Done. Dumping: XX [4 rows]. What am I doing wrong???? where is the geometry column supposed to be? and where does this newly created DBF file reside? Thanks wokar __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at DMSOLUTIONS.CA Wed Mar 9 17:40:36 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Wed, 9 Mar 2005 20:40:36 -0500 Subject: pgsql2shp command...need help In-Reply-To: <20050310012144.36807.qmail@web53408.mail.yahoo.com> Message-ID: wokar, pgsql2shp is distributed with the postgis extension to postgres. When you have a properly configured postgis database, you can create geometry columns in your tables and they represent real geometries. Your table has no 'geometry' column so the utility doesn't know how to create a shape file for it ... so it just created the attribute table. I will assume you have two columns that represent the latitude and longitude. You need to review the postgis documentation on adding postgis support into your database. There are several steps, including (but not limited to) running the contents of postgis.sql and spatial_ref_sys.sql. If you haven't done this yet, you will have to. Once you have spatial support installed, you can then create a new geometry column in your table (again, the postgis documentation has the necessary steps). Once you have created the geometry column, you can put real geometries in using an sql statement like: update hotspots set the_geom=GeometryFromText( "POINT(" || longitude::STRING || " " || latitude::STRING || ")", -1); which will create a POINT geometry from your lon/lat fields. Note the syntax may be wrong and you may have to change it depending on how you are storing the lon/lat values. Once you have the_geom populated, you can run pgsql2shp :) Cheers Paul w m wrote: > Hi, > Im trying to use the pgsql2shp command to convert a very small table from pgadmin > > My database is called montreal and the table is called hotspots > > in the root dierectory i do the following. > > i get the following error > > -bash-2.05b$ pgsql2shp Montreal Hotspots > Initializing... No geometry column found. > The DBF file will be created but not the shx or shp files. > Done. > Dumping: XX [4 rows]. > > What am I doing wrong???? > where is the geometry column supposed to be? > and where does this newly created DBF file reside? > Thanks > > wokar > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From adh at ICE.UCDAVIS.EDU Wed Mar 9 18:05:53 2005 From: adh at ICE.UCDAVIS.EDU (Allan Hollander) Date: Wed, 9 Mar 2005 18:05:53 -0800 Subject: Help with building python mapscript In-Reply-To: <61e683920968a70e99c8a03c61582a81@frii.com> Message-ID: Thanks Sean and Jon, I never had any luck with getting my build of python mapscript to successfully import the _mapscript.so object, despite many manipulations of the GDAL library. But I tried the binaries of mapserver, python-mapscript, and GDAL from the Debian-GIS project, and these work for me. Debian-GIS is an excellent and much-needed project: thanks for the pointer. Now on to ZMapserver! -- Allan On Tue, 8 Mar 2005, Sean Gillies wrote: > > > > Allan, do you have any other GDAL versions on your system? Any chance > of a mismatch between the GDAL/OGR you pointed the configure script at, > and the library in /usr/local/lib? > > Sean > > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > -- From bjordan555 at GMAIL.COM Wed Mar 9 18:14:41 2005 From: bjordan555 at GMAIL.COM (Ben Jordan) Date: Wed, 9 Mar 2005 20:14:41 -0600 Subject: TCLUG Speaking Engagement Message-ID: Hello Mapserver folks. I would like to invite a representative of the Mapserver team to come and speak for the Twin Cities Linux Users Group (www.tclug.org ). We have an opening on April 2nd, which is a Saturday, from Noon - 2 Pm. Obviously, were interested in hearing about how you use linux in your ongoing development, and what the benefits and detractors of using Linux are for you. If someone could contact me whenever possible, that would be great. Ben Jordan -------------- next part -------------- An HTML attachment was scrubbed... URL: From wokar1 at YAHOO.COM Wed Mar 9 19:46:33 2005 From: wokar1 at YAHOO.COM (w m) Date: Wed, 9 Mar 2005 19:46:33 -0800 Subject: pgsql2shp command...need help In-Reply-To: 6667 Message-ID: Thanks Paul:) Okay everthing is installed and its up and running. now the point that im stuck at is that im not sure what to put in my geometry column. im not using sql commnads. im using the pgadmin interface but at the top it gives me this error SQL error: ERROR: column "latitude" does not exist In statement: INSERT INTO "geometry_columns" ("f_table_catalog", "f_table_schema", "f_table_name", "f_geometry_column", "coord_dimension", "srid", "type", "attrelid", "varattnum", "stats") VALUES (Latitude, public, 'Hotspots', circle, '45.5177', '1', polygon, '1', '1', '1') so it says that insert failed f_table_catlog is a clomun from my table??? If yea thats why i put latitude. the column latitude does exist in my table called hotspots do i have to worry about entering values in every field? and what exactly has to go in coord_dimension...can i put any values...or i have to put the real latitude ( or my values in the latitude?) is it supposed to be in the form of x, y coordiantes?? Thanks Wokar Paul Spencer wrote: wokar, pgsql2shp is distributed with the postgis extension to postgres. When you have a properly configured postgis database, you can create geometry columns in your tables and they represent real geometries. Your table has no 'geometry' column so the utility doesn't know how to create a shape file for it ... so it just created the attribute table. I will assume you have two columns that represent the latitude and longitude. You need to review the postgis documentation on adding postgis support into your database. There are several steps, including (but not limited to) running the contents of postgis.sql and spatial_ref_sys.sql. If you haven't done this yet, you will have to. Once you have spatial support installed, you can then create a new geometry column in your table (again, the postgis documentation has the necessary steps). Once you have created the geometry column, you can put real geometries in using an sql statement like: update hotspots set the_geom=GeometryFromText( "POINT(" || longitude::STRING || " " || latitude::STRING || ")", -1); which will create a POINT geometry from your lon/lat fields. Note the syntax may be wrong and you may have to change it depending on how you are storing the lon/lat values. Once you have the_geom populated, you can run pgsql2shp :) Cheers Paul w m wrote: > Hi, > Im trying to use the pgsql2shp command to convert a very small table from pgadmin > > My database is called montreal and the table is called hotspots > > in the root dierectory i do the following. > > i get the following error > > -bash-2.05b$ pgsql2shp Montreal Hotspots > Initializing... No geometry column found. > The DBF file will be created but not the shx or shp files. > Done. > Dumping: XX [4 rows]. > > What am I doing wrong???? > where is the geometry column supposed to be? > and where does this newly created DBF file reside? > Thanks > > wokar > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacob.delfos at MAUNSELL.COM Wed Mar 9 22:01:36 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Thu, 10 Mar 2005 14:01:36 +0800 Subject: compile error Gdal on .net SDK - iostream not found Message-ID: Hi All, I'm working really hard to try and get Gdal compiled on Windows XP, with the microsoft .net SDK and the platform SDK for windows XP. Bear in mind, I'm pretty ignorant in this. I'm running into the following error: libtiff\tiffio.h(499) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory I'm no expert in C++, but I thought iostream was pretty fundamental. I've googled the world, and all it left me was a headache. But I'm not giving up. Why is iostream missing? What can I do to get it? I've tried substituting with the Cygwin iostream.h (experts will probably crinch at this). Didn't work too well. Anybody have any ideas? Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, WA 6007 PO Box 81, WA 6902 Leederville Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Hiten.Ravani at ADAPTIVESYSTEMS.COM.AU Wed Mar 9 23:17:30 2005 From: Hiten.Ravani at ADAPTIVESYSTEMS.COM.AU (Hiten Ravani) Date: Thu, 10 Mar 2005 18:17:30 +1100 Subject: dynamic symbol name Message-ID: Hi all, I am accessing a layer through postgres/postgis database. The layer is about different cities and their minimum and maximum temperatures. I would like to display city name, min/max temperature and weather icon symbol for major cities. I have no troubles displaying the city name, min/max temperatures using the following text([location] [min]/[max]) The problem I am having is the icon id for symbol is stored in the database and the data is updated every hour depending on the min/max temperatures for that place, hence i cannot hard code the value of weather icon id in the mapfile (since icon id could be sunny then later rainy etc). In order to display that symbol i use symbol [integer|string|filename] => symbol 'sunny' sunny is the value i get from the database and the symbol file has reference to sunny.gif image. But i do not know how to dynamically substitute the value passed to symbol, i mean is there anyway to set a value i get from the database? I tried symbol ([icon]) , but it didn't work. (icon is attribute name of column in db) One more question.For min/max temperatures if one of them is unavailable the value in the database is stored as -99, and so say the min temp is unavailable for a city then when i display that value on map it gets displayed as -99/26. (min/max) Is there a way that in my map file if min or max temp is equal to -99 then display '-' on the map instead of showing -99 ? i.e -/26 I am using php mapserver 4.4.1 and chameleon 2.0. I thought of achieving the above using php-mapscript, but since i am using chameleon , i will have to dig in their code , so it would be best if it is possible to do it in mapfile itself. Any help is greatly appreciated. Thanks, Regards, Hiten Ravani. From jacob.delfos at MAUNSELL.COM Thu Mar 10 00:32:50 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Thu, 10 Mar 2005 16:32:50 +0800 Subject: compile error Gdal on .net SDK - iostream not found Message-ID: Craig, Thanks for the tip. Unfortunately it wasn't that simple. It seems in this .net version, there is no support at all for iostream. Apparently they got rid of it in .net 2005 (which I think is what I use). I resorted to a last option, and commented those lines out. It did not complain about it. I got lots of other errors, though. The free .net compiler misses some fundamental files (e.g. lib.exe), which means a lot of improvisation. In the end, it created a gdal12.dll file. Unfortunately, the mrsid support did not work (which was why I embarked on this in the first place). The rest did work. regards, Jacob -------------------------------------------------------------------------------- From: Craig Miller [mailto:craig.miller at spatialminds.com] Sent: 10 March 2005 14:31 To: 'Jacob Delfos' Subject: RE: [UMN_MAPSERVER-USERS] compile error Gdal on .net SDK - iostream not found In .NET 2003 they removed all the old .h headers, so just remove the .h (e.g iostream.h becomes iostream) from the include files and add a "using namespace std;" in your source code. Another option is to install an STL libraty like STLport which should still have support for old include files. --Craig -------------------------------------------------------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jacob Delfos Sent: Wednesday, March 09, 2005 10:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] compile error Gdal on .net SDK - iostream not found Hi All, I'm working really hard to try and get Gdal compiled on Windows XP, with the microsoft .net SDK and the platform SDK for windows XP. Bear in mind, I'm pretty ignorant in this. I'm running into the following error: libtiff\tiffio.h(499) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory I'm no expert in C++, but I thought iostream was pretty fundamental. I've googled the world, and all it left me was a headache. But I'm not giving up. Why is iostream missing? What can I do to get it? I've tried substituting with the Cygwin iostream.h (experts will probably crinch at this). Didn't work too well. Anybody have any ideas? Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, WA 6007 PO Box 81, WA 6902 Leederville Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ragnvald at MINDLAND.COM Thu Mar 10 00:46:24 2005 From: ragnvald at MINDLAND.COM (Ragnvald Larsen) Date: Thu, 10 Mar 2005 02:46:24 -0600 Subject: Errorlog/errormessages? (problem is drawReferenceMap) Message-ID: I am having troubles with making a referencemap using this: $referencemap=$map->drawReferenceMap(); The real map is already made - perfectly. So it is only when I try to make a reference-map things go bad and the output aborts. Trying to solve this myself I was looking for an error-log, but it simply is not there. Where do I turn it on? - - - - - This is my Mapscript configuration: MapServer Version MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.220.2.2 $ $Date: 2004/12/19 22:17:59 $) GD version: bundled (2.0.28 compatible) - - - - - Any suggestions? Ragnvald Larsen TAWIRI, Tanzania From ragnvald at MINDLAND.COM Thu Mar 10 01:16:10 2005 From: ragnvald at MINDLAND.COM (Ragnvald Larsen) Date: Thu, 10 Mar 2005 03:16:10 -0600 Subject: adding a layer programmatically with PHP Message-ID: So how would specifically the DATA, PROJECTION and SYMBOL part of this .map-file look in php mapscript? LAYER NAME "Parks" TYPE POLYGON STATUS ON DATA "TZ_PAs_2002_Poly" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "Parks" OUTLINECOLOR 50 120 50 COLOR 115 178 115 SYMBOL 0 END END From stephane.riff at CERENE.FR Thu Mar 10 01:18:56 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-15?Q?St=E9phane_RIFF?=) Date: Thu, 10 Mar 2005 10:18:56 +0100 Subject: LabelAngleItem question In-Reply-To: <1110384339.10114.26.camel@ubet.gomoos.org> Message-ID: Another question : My symbol is an arrow b llike this when angle is 0.0 When angle is 90.0 i get d or i thought i get a a oriented symbol. How can i tell mapserver to reverse the symbols without change database records ??? Thanks Eric Bridger wrote: >On Wed, 2005-03-09 at 10:57, St?phane RIFF wrote: > > >>Hi, >>I want to orient symbols on map. So >>i create an annotation layer with a trueType symbols. >>My question is which value i have to insert in angle filed: >> 0 to 360 degres or -180 to 180 degres ??? >>Thanks >> >> > >0 to 360. > > > > > > > From stephane.riff at CERENE.FR Thu Mar 10 01:23:32 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-15?Q?St=E9phane_RIFF?=) Date: Thu, 10 Mar 2005 10:23:32 +0100 Subject: LabelAngleItem question In-Reply-To: <42301100.7030909@cerene.fr> Message-ID: My symbol is an arrow ^ like this when angle is 0.0 When angle is 90.0 i get < or i thought i get a > oriented symbol. How can i tell mapserver to reverse the symbols without change database records ??? Thanks St?phane RIFF wrote: > Another question : > > My symbol is an arrow b llike this when angle is 0.0 > When angle is 90.0 i get d or i thought i get a a oriented symbol. > > How can i tell mapserver to reverse the symbols without change database > records ??? > Thanks > > Eric Bridger wrote: > >> On Wed, 2005-03-09 at 10:57, St?phane RIFF wrote: >> >> >>> Hi, >>> I want to orient symbols on map. So >>> i create an annotation layer with a trueType symbols. >>> My question is which value i have to insert in angle filed: >>> 0 to 360 degres or -180 to 180 degres ??? >>> Thanks >>> >>> >> >> 0 to 360. >> >> >> >> >> >> >> > > From ragnvald at MINDLAND.COM Thu Mar 10 01:37:55 2005 From: ragnvald at MINDLAND.COM (Ragnvald Larsen) Date: Thu, 10 Mar 2005 12:37:55 +0300 Subject: Errorlog/errormessages? (problem is drawReferenceMap) In-Reply-To: <000001c52552$d91c8c80$aa696e94@EPCCARTOGIS> Message-ID: Yes I think I am using a map object. The map is made by using a mapfile like this: $map_file="tanzania.map"; $map = ms_newMapObj($map_file); This draws the map-object which I am successfully using later in my code when I get the map image saved: $image=$map->draw(); $image_url=$image->saveWebImage(); Then I print it to the screen: And work further on it to get a list of layers like this: $nLayers=$map->numlayers; for ($i=0;$i<$nLayers; $i++) { $oLayer=$map->getlayer($i); echo $oLayer->name."
"; } It all really works smoothly until I try making a reference map by using this line. $image = $map->drawReferenceMap(); That's where it just stops. Actually no more code is fed to the browser after this line. A complete halt... Ragnvald From Frank.Broniewski at MNHA.ETAT.LU Thu Mar 10 01:23:40 2005 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Thu, 10 Mar 2005 10:23:40 +0100 Subject: AW: [UMN_MAPSERVER-USERS] Errorlog/errormessages? (problem is drawReferenceMap) In-Reply-To: Message-ID: I'm not sure, but do you have a Reference Map Object in your Mapfile? Otherwise, your code is not complete. I do something like this to draw my referencemap: function DrawKeymap(&$MapObj) { /* Draws the Keymap for orientation purposes */ $image = $MapObj->drawReferenceMap(); $image_url = $image->saveWebImage(); // echo ""; echo "\"Keymap\""; } Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC T?l: +352 260 281-21 241, Rue de Luxembourg L-8077 Bertrange -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Ragnvald Larsen Gesendet: Donnerstag, 10. M?rz 2005 09:46 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] Errorlog/errormessages? (problem is drawReferenceMap) I am having troubles with making a referencemap using this: $referencemap=$map->drawReferenceMap(); The real map is already made - perfectly. So it is only when I try to make a reference-map things go bad and the output aborts. Trying to solve this myself I was looking for an error-log, but it simply is not there. Where do I turn it on? - - - - - This is my Mapscript configuration: MapServer Version MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.220.2.2 $ $Date: 2004/12/19 22:17:59 $) GD version: bundled (2.0.28 compatible) - - - - - Any suggestions? Ragnvald Larsen TAWIRI, Tanzania From stefan.schwarzer at GRID.UNEP.CH Thu Mar 10 02:07:38 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 10 Mar 2005 11:07:38 +0100 Subject: MouseOver & Coordinates Message-ID: Hi, I would like to display the coordinates in a corner of the map, when a user moves the mouse over it. Is there any Javascript (or Java) code out there that would do this? Thanks for any suggestions. Stef ????????_______________________________________ ????????Stefan Schwarzer ????????GIS & Data Management ????????UNEP/DEWA/GRID-Geneva ????????Chemin des Anemones 11 ????????CH - 1219 Chatelaine ????????Switzerland ????????Tel: (+41) 22.917.83.49 ????????Fax: (+41) 22.917.80.29 ????????Internet: http://geodata.grid.unep.ch/ ????????_______________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 732 bytes Desc: not available URL: From boily at BSW.ORG Thu Mar 10 02:27:47 2005 From: boily at BSW.ORG (Roger Boily) Date: Thu, 10 Mar 2005 11:27:47 +0100 Subject: MouseOver & Coordinates In-Reply-To: Message-ID: Hi Stefan, you can try this java script (from who? I do not remember): Hope it helps. Roger public void mouseMoved(MouseEvent e) { String msg; xover = e.getX(); yover = e.getY(); thex = (thecurxmin + (xover * ((thecurxmax - thecurxmin)/Applet_Width))); they = (thecurymin - (yover * ((thecurymax - thecurymin)/Applet_Height))); String xs = String.valueOf(thex).toString(); String ys = String.valueOf(they).toString(); msg = "Coordinate: " + xs + " E " + ys + " N"; showStatus(msg); // function to display where you want. } Stefan Schwarzer wrote: > Hi, > > I would like to display the coordinates in a corner of the map, when a > user moves the mouse over it. Is there any Javascript (or Java) code > out there that would do this? > > Thanks for any suggestions. > > Stef > > > > _______________________________________ > > Stefan Schwarzer > GIS & Data Management > > UNEP/DEWA/GRID-Geneva > Chemin des Anemones 11 > CH - 1219 Chatelaine > Switzerland > > Tel: (+41) 22.917.83.49 > Fax: (+41) 22.917.80.29 > > Internet: http://geodata.grid.unep.ch/ > _______________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.1 - Release Date: 09/03/2005 From d.huisman at INGBCC.NL Thu Mar 10 02:28:18 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Thu, 10 Mar 2005 11:28:18 +0100 Subject: inline feature Message-ID: Hi all, I want to draw text (copyright) in my map. In my mapfile I put the code (FEATURE keyword). The string is drawed once and it looks good. But after zooming it's gone. What to do to draw the text again after each request? Dirk Jan ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ From bartvde at XS4ALL.NL Thu Mar 10 02:54:36 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 10 Mar 2005 11:54:36 +0100 Subject: inline feature In-Reply-To: Message-ID: Hi, did you try something like described in: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0103/msg00026.html ? Can you provide more info? The LAYER from your MAP file will help analyzing the problem. Best regards, Bart > Hi all, > > I want to draw text (copyright) in my map. In my mapfile I put the code > (FEATURE keyword). The string is drawed once and it looks good. But > after zooming it's gone. > What to do to draw the text again after each request? > > Dirk Jan > > > ------------------------------------------------------------------------------ > Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam > Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, > E-mail post at ingbcc.nl > Internet www.ingbcc.nl > ------------------------------------------------------------------------------ > Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn > vertrouwelijk en alleen bedoeld voor het gebruik door de individu of > instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail > onterecht ontvangen heeft wilt u het ons dan laten weten. > ------------------------------------------------------------------------------ > This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. If you have received this e-mail in error please notify the > system manager. > ------------------------------------------------------------------------------ > > From pspencer at DMSOLUTIONS.CA Thu Mar 10 03:28:05 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Thu, 10 Mar 2005 06:28:05 -0500 Subject: pgsql2shp command...need help In-Reply-To: <20050310034633.1200.qmail@web53401.mail.yahoo.com> Message-ID: Wokar, using pgAdmin, you can run sql commands. You add a geometry column to your existing table by running: SELECT AddGeometryColumn( 'hotspots', 'the_geom', -1, 'POINT', 2 ); Paul w m wrote: > Thanks Paul:) > Okay everthing is installed and its up and running. > now the point that im stuck at is that im not sure what to put in my geometry column. > im not using sql commnads. im using the pgadmin interface > > > but at the top it gives me this error > > SQL error: > > ERROR: column "latitude" does not exist > > > > In statement: > INSERT INTO "geometry_columns" ("f_table_catalog", "f_table_schema", "f_table_name", "f_geometry_column", "coord_dimension", "srid", "type", "attrelid", "varattnum", "stats") > > VALUES (Latitude, public, 'Hotspots', circle, '45.5177', '1', polygon, '1', '1', '1') > > > > so it says that insert failed > > f_table_catlog is a clomun from my table??? If yea thats why i put latitude. the column latitude does exist in my table called hotspots > > do i have to worry about entering values in every field? > > and what exactly has to go in coord_dimension...can i put any values...or i have to put the real latitude ( or my values in the latitude?) is it supposed to be in the form of x, y coordiantes?? > > > > Thanks > > Wokar > > > > > > > > > > Paul Spencer wrote: > wokar, > > pgsql2shp is distributed with the postgis extension to postgres. When > you have a properly configured postgis database, you can create geometry > columns in your tables and they represent real geometries. Your table > has no 'geometry' column so the utility doesn't know how to create a > shape file for it ... so it just created the attribute table. > > I will assume you have two columns that represent the latitude and > longitude. You need to review the postgis documentation on adding > postgis support into your database. There are several steps, including > (but not limited to) running the contents of postgis.sql and > spatial_ref_sys.sql. If you haven't done this yet, you will have to. > > Once you have spatial support installed, you can then create a new > geometry column in your table (again, the postgis documentation has the > necessary steps). > > Once you have created the geometry column, you can put real geometries > in using an sql statement like: > > update hotspots set the_geom=GeometryFromText( "POINT(" || > longitude::STRING || " " || latitude::STRING || ")", -1); > > which will create a POINT geometry from your lon/lat fields. Note the > syntax may be wrong and you may have to change it depending on how you > are storing the lon/lat values. > > Once you have the_geom populated, you can run pgsql2shp :) > > Cheers > > Paul > > w m wrote: > >>Hi, >>Im trying to use the pgsql2shp command to convert a very small table from pgadmin >> >>My database is called montreal and the table is called hotspots >> >>in the root dierectory i do the following. >> >>i get the following error >> >>-bash-2.05b$ pgsql2shp Montreal Hotspots >>Initializing... No geometry column found. >>The DBF file will be created but not the shx or shp files. >>Done. >>Dumping: XX [4 rows]. >> >>What am I doing wrong???? >>where is the geometry column supposed to be? >>and where does this newly created DBF file reside? >>Thanks >> >>wokar >> >> >> >> >> >> >> >> >> >>__________________________________________________ >>Do You Yahoo!? >>Tired of spam? Yahoo! Mail has the best spam protection around >>http://mail.yahoo.com > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From aborruso at TIN.IT Thu Mar 10 03:40:04 2005 From: aborruso at TIN.IT (andy) Date: Thu, 10 Mar 2005 12:40:04 +0100 Subject: MouseOver & Coordinates In-Reply-To: Message-ID: Stefan, look to my code: LAYER NAME "credits" status on TYPE ANNOTATION TRANSFORM FALSE CLASS LABEL TYPE truetype FONT "trebu" SIZE 8 POSITION ul COLOR 255 255 255 OUTLINECOLOR 93 99 159 ANTIALIAS true END END FEATURE TEXT "? sample text" POINTS 490 496 END END END It's important to set TRANSFORM parameter to FALSE. andrea Stefan Schwarzer ha scritto: > Hi, > > I would like to display the coordinates in a corner of the map, when a > user moves the mouse over it. Is there any Javascript (or Java) code > out there that would do this? > > Thanks for any suggestions. > > Stef > > > > _______________________________________ > > *Stefan Schwarzer > * GIS & Data Management > > UNEP/DEWA/GRID-Geneva > Chemin des Anemones 11 > CH - 1219 Chatelaine > Switzerland > > Tel: (+41) 22.917.83.49 > Fax: (+41) 22.917.80.29 > > Internet: http://geodata.grid.unep.ch/ > _______________________________________ From stephane.riff at CERENE.FR Thu Mar 10 03:41:30 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Thu, 10 Mar 2005 12:41:30 +0100 Subject: QueryByPoint problem Message-ID: Hi, I want to query my map with QueryByPoint layer function. The problem i face is : my map projection is esri:27582 i have a layer which projection is epsg:4326 (the layer i want to query) To get coordinate from mouse click i use pix2geo function which is base on map projection so i get click coordinate in esri:27582. When i use queryByPoint it returns no results. My question is do i have to reproject my point in epsg:4326 before doing query or does mapserver handles it by itself ??? Thanks From mweinelt at PLANIGLOBE.COM Thu Mar 10 03:42:50 2005 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Thu, 10 Mar 2005 12:42:50 +0100 Subject: MouseOver & Coordinates In-Reply-To: Message-ID: On Thursday 10 March 2005 11:07, Stefan Schwarzer wrote: > Hi, > > I would like to display the coordinates in a corner of the map, when a > user moves the mouse over it. Is there any Javascript (or Java) code > out there that would do this? > > Thanks for any suggestions. > > Stef Stefan, you need to know the pixel size of your map image in map units (DD, meters,..). using MapScript you can pass this value along with every new map generated as a (hidden) value and set a javascript object or variable to this value. With mapserver CGI you must calculate this value by image size and map extent yourself. Next you define an eventhandler for the mouseover event of your map image, for instance: function MapElmOverHndl(e) { var imgOrig = theMap.getorig(); var posx = ((e.offsetX * theMap.getcsz())+imgOrig[0]); var posy = (((400-e.offsetY) * theMap.getcsz())+imgOrig[1])); Dspl.innerHTML=posx+' '+posy; } 'theMap.getorig()': returns minx, miny (mapunits) of the current image 'theMap.getcsz()': returns the cellsize (pixelsize) in mapunits '400' is the image height in pixels 'Dspl' is a document element like

, ,

or some such. Once you got the handler you add this event handler to your map image. If your map image got an id of - say - 'myMap': for DOM-Browsers you type: document.getElementById('myMap').addEventListener("mousemove",MapElmOverHndl , false) for IE6 you type: document.all['myMap''].attachEvent("onmousemover", MapElmOverHndl); A cross browser solution could look similar to: var d= document; if (!d.getElementById && d.all) d.getElementById = new Function('id', 'return d.all[id]'); function X_addEventListener(elm, evt, lstnr, useCapture) { (! elm.addEventListener && d.all)? elm.attachEvent('on'+evt, lstnr) : elm.addEventListener(evt, lstnr, useCapture); } Now you add the listener by: myMapElm= d.getElementById('myMap'); X_addEventListener(myMapElm ,"mousemove", MapElmOverHndl, false); Cheers, Martin From stefan.schwarzer at GRID.UNEP.CH Thu Mar 10 04:06:01 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 10 Mar 2005 13:06:01 +0100 Subject: MouseOver & Coordinates In-Reply-To: <200503101242.50306.mweinelt@planiglobe.com> Message-ID: Thanks Martin for that. The only thing I am not sure about is how the javascript variable, which holds the information about the pixel size, should be called. How does this variable get into the Javascript functions? Thanks for your help - and congratulations to your planiglobe.com site. Looks really neat!! Stef > On Thursday 10 March 2005 11:07, Stefan Schwarzer wrote: >> Hi, >> >> I would like to display the coordinates in a corner of the map, when a >> user moves the mouse over it. Is there any Javascript (or Java) code >> out there that would do this? >> >> Thanks for any suggestions. >> >> Stef > > Stefan, > > you need to know the pixel size of your map image in map units (DD, > meters,..). > using MapScript you can pass this value along with every new map > generated > as a (hidden) value and set a javascript object or variable to this > value. > With mapserver CGI you must calculate this value by image size and map > extent > yourself. > > Next you define an eventhandler for the mouseover event of your map > image, > for instance: > > function MapElmOverHndl(e) { > var imgOrig = theMap.getorig(); > var posx = ((e.offsetX * theMap.getcsz())+imgOrig[0]); > var posy = (((400-e.offsetY) * theMap.getcsz())+imgOrig[1])); > Dspl.innerHTML=posx+' '+posy; > } > > 'theMap.getorig()': returns minx, miny (mapunits) of the current image > 'theMap.getcsz()': returns the cellsize (pixelsize) in mapunits > '400' is the image height in pixels > 'Dspl' is a document element like

, ,

or some such. > > Once you got the handler you add this event handler to your map image. > If your map image got an id of - say - 'myMap': > > for DOM-Browsers you type: > document.getElementById('myMap').addEventListener("mousemove",MapElmOve > rHndl , false) > > for IE6 you type: > document.all['myMap''].attachEvent("onmousemover", MapElmOverHndl); > > A cross browser solution could look similar to: > var d= document; > if (!d.getElementById && d.all) d.getElementById = new Function('id', > 'return d.all[id]'); > > function X_addEventListener(elm, evt, lstnr, useCapture) { > (! elm.addEventListener && d.all)? elm.attachEvent('on'+evt, lstnr) > : elm.addEventListener(evt, lstnr, useCapture); > } > > Now you add the listener by: > myMapElm= d.getElementById('myMap'); > X_addEventListener(myMapElm ,"mousemove", MapElmOverHndl, false); > > Cheers, Martin > > ????????_______________________________________ ????????Stefan Schwarzer ????????GIS & Data Management ????????UNEP/DEWA/GRID-Geneva ????????Chemin des Anemones 11 ????????CH - 1219 Chatelaine ????????Switzerland ????????Tel: (+41) 22.917.83.49 ????????Fax: (+41) 22.917.80.29 ????????Internet: http://geodata.grid.unep.ch/ ????????_______________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2874 bytes Desc: not available URL: From arnulf.christl at CCGIS.DE Thu Mar 10 04:19:55 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Thu, 10 Mar 2005 13:19:55 +0100 Subject: Next test... Message-ID: Hey Christine, you seem to perfectly fill the position of quality assurance and as you didn't mail in the past 14 hours I believe that you must be deeply bored and depressed by now (or do you sleep every now and then). When will you start testing MapServer's OGC capabilities - we are already eagerly awaiting your input... (-: Anybody having a problem with our documentation can now just search the archives for "Lisi, Christine". Cool thing! Best, Arnulf. -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.org http://www.mapbender.org ------------------------ From mweinelt at PLANIGLOBE.COM Thu Mar 10 05:04:05 2005 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Thu, 10 Mar 2005 14:04:05 +0100 Subject: MouseOver & Coordinates In-Reply-To: <87867c4679a465dabed8b4674320a0c0@grid.unep.ch> Message-ID: On Thursday 10 March 2005 13:06, Stefan Schwarzer wrote: > Thanks Martin for that. The only thing I am not sure about is how the > javascript variable, which holds the information about the pixel size, > should be called. How does this variable get into the Javascript > functions? > > Thanks for your help - and congratulations to your planiglobe.com site. > Looks really neat!! > > Stef If your server delivers the entire interface (page) on every map generation, simply set the javascript obj or variable at generation time. With the last projects I send the core map elements generated (map, ref, scale, etc) to a hidden iframe which calls a function in the parent document onload to parse/copy the new content. Part of the document in the iframe could be a good ol' HTML-form holding the values. With Perl mapScript one part of the page sent back could look like: print <<"EOFORM"; EOFORM where $m is the Perl mapScript map object you are working on. With CGI mapserver you would put a similar form into the template, but since the cell size is not an available CGI variable - as far as I know - you must pass the mapextent.
The tag of the doc in the iframe could be: and the function in the parent doc could look like: function parseIframe() { var paramsForm= parent.frames[0].document.forms["params"], myMap.mapext = paramsForm.elements["mext"].value; // or myMap.csz=paramsForm.elements["csz"].value; } As I said before, if you use mapextent you calc cell size yourself. Cheers, Martin > > On Thursday 10 March 2005 11:07, Stefan Schwarzer wrote: > >> Hi, > >> > >> I would like to display the coordinates in a corner of the map, when a > >> user moves the mouse over it. Is there any Javascript (or Java) code > >> out there that would do this? > >> > >> Thanks for any suggestions. > >> > >> Stef > > > > Stefan, > > > > you need to know the pixel size of your map image in map units (DD, > > meters,..). > > using MapScript you can pass this value along with every new map > > generated > > as a (hidden) value and set a javascript object or variable to this > > value. > > With mapserver CGI you must calculate this value by image size and map > > extent > > yourself. > > > > Next you define an eventhandler for the mouseover event of your map > > image, > > for instance: > > > > function MapElmOverHndl(e) { > > var imgOrig = theMap.getorig(); > > var posx = ((e.offsetX * theMap.getcsz())+imgOrig[0]); > > var posy = (((400-e.offsetY) * theMap.getcsz())+imgOrig[1])); > > Dspl.innerHTML=posx+' '+posy; > > } > > > > 'theMap.getorig()': returns minx, miny (mapunits) of the current image > > 'theMap.getcsz()': returns the cellsize (pixelsize) in mapunits > > '400' is the image height in pixels > > 'Dspl' is a document element like

, ,

or some such. > > > > Once you got the handler you add this event handler to your map image. > > If your map image got an id of - say - 'myMap': > > > > for DOM-Browsers you type: > > document.getElementById('myMap').addEventListener("mousemove",MapElmOve > > rHndl , false) > > > > for IE6 you type: > > document.all['myMap''].attachEvent("onmousemover", MapElmOverHndl); > > > > A cross browser solution could look similar to: > > var d= document; > > if (!d.getElementById && d.all) d.getElementById = new Function('id', > > 'return d.all[id]'); > > > > function X_addEventListener(elm, evt, lstnr, useCapture) { > > (! elm.addEventListener && d.all)? elm.attachEvent('on'+evt, lstnr) > > : elm.addEventListener(evt, lstnr, useCapture); > > } > > > > Now you add the listener by: > > myMapElm= d.getElementById('myMap'); > > X_addEventListener(myMapElm ,"mousemove", MapElmOverHndl, false); > > > > Cheers, Martin > > > > > > ????????_______________________________________ > > ????????Stefan Schwarzer > ????????GIS & Data Management > > ????????UNEP/DEWA/GRID-Geneva > ????????Chemin des Anemones 11 > ????????CH - 1219 Chatelaine > ????????Switzerland > > ????????Tel: (+41) 22.917.83.49 > ????????Fax: (+41) 22.917.80.29 > > ????????Internet: http://geodata.grid.unep.ch/ > ????????_______________________________________ > -- --- Martin Weinelt --- kk+w - digital cartography --- Kiel, Germany --- Tel: +49.431.5791165 --- http://www.planiglobe.com From d.huisman at INGBCC.NL Thu Mar 10 05:27:25 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Thu, 10 Mar 2005 14:27:25 +0100 Subject: inline feature Message-ID: Hi, My LAYER is: LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 300 300 END TEXT 'Hello world.' END CLASS LABEL TYPE BITMAP COLOR 0 0 0 END END END The LAYER in the link below gives the same problem. best regards, Hi, did you try something like described in: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0103/msg00026.h tml ? Can you provide more info? The LAYER from your MAP file will help analyzing the problem. Best regards, Bart > Hi all, > > I want to draw text (copyright) in my map. In my mapfile I put the code > (FEATURE keyword). The string is drawed once and it looks good. But > after zooming it's gone. > What to do to draw the text again after each request? > > Dirk Jan > > > > ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ From stephane.riff at CERENE.FR Thu Mar 10 05:32:57 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Thu, 10 Mar 2005 14:32:57 +0100 Subject: QueryByPoint problem In-Reply-To: <4230326A.3040401@cerene.fr> Message-ID: I think i have to project the point. But does this can work in phpmapscript : $proj_27582 = new projectionObj("init=esri:27582"); St?phane RIFF wrote: > Hi, > > I want to query my map with QueryByPoint layer function. > The problem i face is : > my map projection is esri:27582 > i have a layer which projection is epsg:4326 (the layer i want to query) > > To get coordinate from mouse click i use pix2geo function which is base > on map projection > so i get click coordinate in esri:27582. > When i use queryByPoint it returns no results. > My question is do i have to reproject my point in epsg:4326 before doing > query > or does mapserver handles it by itself ??? > > Thanks > > From eric at GOMOOS.ORG Thu Mar 10 05:36:00 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 10 Mar 2005 08:36:00 -0500 Subject: LabelAngleItem question In-Reply-To: <42301214.9060702@cerene.fr> Message-ID: On Thu, 2005-03-10 at 04:23, St?phane RIFF wrote: > My symbol is an arrow ^ like this when angle is 0.0 > When angle is 90.0 i get < or i thought i get a > oriented symbol. > > How can i tell mapserver to reverse the symbols without change database > records ??? > Thanks > > St?phane RIFF wrote: > > > Another question : > > > > My symbol is an arrow b llike this when angle is 0.0 > > When angle is 90.0 i get d or i thought i get a a oriented symbol. > > > > How can i tell mapserver to reverse the symbols without change database > > records ??? > > Thanks > > > > Eric Bridger wrote: > > > >> On Wed, 2005-03-09 at 10:57, St?phane RIFF wrote: > >> > >> > >>> Hi, > >>> I want to orient symbols on map. So > >>> i create an annotation layer with a trueType symbols. > >>> My question is which value i have to insert in angle filed: > >>> 0 to 360 degres or -180 to 180 degres ??? > >>> Thanks > >>> > >>> > >> > >> 0 to 360. I don't know of any way to do this via the mapfile. We use mapscript and have to use the negative of the angle. Seems to be a GD issue. If you are using a database how about "select -angle, ... "? From eric at GOMOOS.ORG Thu Mar 10 05:40:18 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 10 Mar 2005 08:40:18 -0500 Subject: QueryByPoint problem In-Reply-To: <4230326A.3040401@cerene.fr> Message-ID: On Thu, 2005-03-10 at 06:41, St?phane RIFF wrote: > Hi, > > I want to query my map with QueryByPoint layer function. > The problem i face is : > my map projection is esri:27582 > i have a layer which projection is epsg:4326 (the layer i want to query) > > To get coordinate from mouse click i use pix2geo function which is base > on map projection > so i get click coordinate in esri:27582. > When i use queryByPoint it returns no results. > My question is do i have to reproject my point in epsg:4326 before doing > query > or does mapserver handles it by itself ??? > Mapscript handles it. So there is probably some other issue. From stephane.riff at CERENE.FR Thu Mar 10 05:54:55 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-15?Q?St=E9phane_RIFF?=) Date: Thu, 10 Mar 2005 14:54:55 +0100 Subject: LabelAngleItem question In-Reply-To: <1110461765.1549.11.camel@ubet.gomoos.org> Message-ID: I don't understand how can i do it with mapscript since the angle is set by mapserver with labelangleitem. Do you mean i have to dynamically create all the point ??? Eric Bridger wrote: >On Thu, 2005-03-10 at 04:23, St?phane RIFF wrote: > > >>My symbol is an arrow ^ like this when angle is 0.0 >>When angle is 90.0 i get < or i thought i get a > oriented symbol. >> >>How can i tell mapserver to reverse the symbols without change database >>records ??? >>Thanks >> >>St?phane RIFF wrote: >> >> >> >>>Another question : >>> >>>My symbol is an arrow b llike this when angle is 0.0 >>>When angle is 90.0 i get d or i thought i get a a oriented symbol. >>> >>>How can i tell mapserver to reverse the symbols without change database >>>records ??? >>>Thanks >>> >>>Eric Bridger wrote: >>> >>> >>> >>>>On Wed, 2005-03-09 at 10:57, St?phane RIFF wrote: >>>> >>>> >>>> >>>> >>>>>Hi, >>>>>I want to orient symbols on map. So >>>>>i create an annotation layer with a trueType symbols. >>>>>My question is which value i have to insert in angle filed: >>>>> 0 to 360 degres or -180 to 180 degres ??? >>>>>Thanks >>>>> >>>>> >>>>> >>>>> >>>>0 to 360. >>>> >>>> > >I don't know of any way to do this via the mapfile. We use mapscript and >have to use the negative of the angle. Seems to be a GD issue. > >If you are using a database how about "select -angle, ... "? > > > > > From stefan.schwarzer at GRID.UNEP.CH Thu Mar 10 06:23:53 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 10 Mar 2005 15:23:53 +0100 Subject: MouseOver & Coordinates In-Reply-To: <200503101242.50306.mweinelt@planiglobe.com> Message-ID: Just as a side-note: there was a small errors in the code: +imgOrig[1])); -- the last ")" is too much; And, ok, obviously enough, the code must be integrated after inserting the map-image, not before. The "theMap" in the first function... is this really correct? And why is it theMap.getcsz() - thus, a function, not the retrieval of the value? And where does the getorig() come from? Are these build-in functions? I get different error messages - "theMap is not defined", etc... Sorry, sorry. I really tried my best. But I am not a crack in Javascript... Thanks for your help. Stef ------------------------------------------------------------------------ -------------------------------- This is what I have now... > On Thursday 10 March 2005 11:07, Stefan Schwarzer wrote: >> Hi, >> >> I would like to display the coordinates in a corner of the map, when a >> user moves the mouse over it. Is there any Javascript (or Java) code >> out there that would do this? >> >> Thanks for any suggestions. >> >> Stef > > Stefan, > > you need to know the pixel size of your map image in map units (DD, > meters,..). > using MapScript you can pass this value along with every new map > generated > as a (hidden) value and set a javascript object or variable to this > value. > With mapserver CGI you must calculate this value by image size and map > extent > yourself. > > Next you define an eventhandler for the mouseover event of your map > image, > for instance: > > function MapElmOverHndl(e) { > var imgOrig = theMap.getorig(); > var posx = ((e.offsetX * theMap.getcsz())+imgOrig[0]); > var posy = (((400-e.offsetY) * theMap.getcsz())+imgOrig[1])); > Dspl.innerHTML=posx+' '+posy; > } > > 'theMap.getorig()': returns minx, miny (mapunits) of the current image > 'theMap.getcsz()': returns the cellsize (pixelsize) in mapunits > '400' is the image height in pixels > 'Dspl' is a document element like

, ,

or some such. > > Once you got the handler you add this event handler to your map image. > If your map image got an id of - say - 'myMap': > > for DOM-Browsers you type: > document.getElementById('myMap').addEventListener("mousemove",MapElmOve > rHndl , false) > > for IE6 you type: > document.all['myMap''].attachEvent("onmousemover", MapElmOverHndl); > > A cross browser solution could look similar to: > var d= document; > if (!d.getElementById && d.all) d.getElementById = new Function('id', > 'return d.all[id]'); > > function X_addEventListener(elm, evt, lstnr, useCapture) { > (! elm.addEventListener && d.all)? elm.attachEvent('on'+evt, lstnr) > : elm.addEventListener(evt, lstnr, useCapture); > } > > Now you add the listener by: > myMapElm= d.getElementById('myMap'); > X_addEventListener(myMapElm ,"mousemove", MapElmOverHndl, false); > > Cheers, Martin > > ????????_______________________________________ ????????Stefan Schwarzer ????????GIS & Data Management ????????UNEP/DEWA/GRID-Geneva ????????Chemin des Anemones 11 ????????CH - 1219 Chatelaine ????????Switzerland ????????Tel: (+41) 22.917.83.49 ????????Fax: (+41) 22.917.80.29 ????????Internet: http://geodata.grid.unep.ch/ ????????_______________________________________ From woodbri at SWOODBRIDGE.COM Thu Mar 10 06:50:17 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 10 Mar 2005 09:50:17 -0500 Subject: inline feature In-Reply-To: Message-ID: Dirk, Just make sure that this is the last layer in your mapfile so when the label cache is run it will be the first label draw. Then all the other labels will avoid it. If it is not the first, and other labels are drawn where it needs to be drawn, then it will get bumped and not draw. You can also add FORCE TRUE to the label block. -Steve W. http://imaptools.com Dirk-Jan Huisman wrote: > Hi, > > My LAYER is: > > LAYER > NAME "credits" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 300 300 > END > TEXT 'Hello world.' > END > CLASS > LABEL > TYPE BITMAP > COLOR 0 0 0 > END > END > END > > The LAYER in the link below gives the same problem. > > best regards, > > > Hi, > > did you try something like described in: > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0103/msg00026.h > tml > > ? > > Can you provide more info? The LAYER from your MAP file will help > analyzing the problem. > > Best regards, > Bart > > >>Hi all, >> >>I want to draw text (copyright) in my map. In my mapfile I put the > > code > >>(FEATURE keyword). The string is drawed once and it looks good. But >>after zooming it's gone. >>What to do to draw the text again after each request? >> >>Dirk Jan >> >> >> >> > > > > ------------------------------------------------------------------------------ > Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam > Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, > E-mail post at ingbcc.nl > Internet www.ingbcc.nl > ------------------------------------------------------------------------------ > Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. > ------------------------------------------------------------------------------ > This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. > ------------------------------------------------------------------------------ > From stefan.schwarzer at GRID.UNEP.CH Thu Mar 10 06:54:33 2005 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 10 Mar 2005 15:54:33 +0100 Subject: MouseOver & Coordinates In-Reply-To: <200503101404.05279.mweinelt@planiglobe.com> Message-ID: Voila, surely not as nice as yours, and still needs some tuning (the document and getElementById thing...), but at least on IE it works... Thanks for your help!! ----- function MapElmOverHndl(e) { var imgOrig0 = document.mapserv.orig0.value; var imgOrig1 = document.mapserv.orig1.value; var imgCsz = document.mapserv.csz.value; var posx = ((e.offsetX * imgCsz)+imgOrig0); var posy = (((400-e.offsetY) * imgCsz)+imgOrig1); Dspl.innerHTML=posx+' '+posy; } function X_addEventListener(elm, evt, lstnr, useCapture) { (! elm.addEventListener && d.all)? elm.attachEvent('on'+evt, lstnr) : elm.addEventListener(evt, lstnr, useCapture); } var d= document; if (!d.getElementById && d.all) d.getElementById = new Function('id', 'return d.all[id]'); myMapElm= d.getElementById('map1'); X_addEventListener(myMapElm ,"mousemove", MapElmOverHndl, false); > On Thursday 10 March 2005 13:06, Stefan Schwarzer wrote: >> Thanks Martin for that. The only thing I am not sure about is how > the >> javascript variable, which holds the information about the pixel > size, >> should be called. How does this variable get into the Javascript >> functions? >> >> Thanks for your help - and congratulations to your planiglobe.com > site. >> Looks really neat!! >> >> Stef > > > If your server delivers the entire interface (page) on every map > generation, simply set the javascript obj or variable at generation > time. > > With the last projects I send the core map elements generated (map, > ref, scale, etc) to a hidden iframe which calls a function in the > parent document onload to parse/copy the new content. > > Part of the document in the iframe could be a good ol' HTML-form > holding the values. > > With Perl mapScript one part of the page sent back could look like: > > print <<"EOFORM"; >
> >
> EOFORM > > where $m is the Perl mapScript map object you are working on. > > With CGI mapserver you would put a similar form into the template, > but since the cell size is not an available CGI variable - as far as I > know - you must pass the mapextent. > >
> >
> > The tag of the doc in the iframe could be: > > > > and the function in the parent doc could look like: > > function parseIframe() { > var paramsForm= parent.frames[0].document.forms["params"], > myMap.mapext = paramsForm.elements["mext"].value; > // or myMap.csz=paramsForm.elements["csz"].value; > } > > As I said before, if you use mapextent you calc cell size yourself. > > Cheers, Martin > >>> On Thursday 10 March 2005 11:07, Stefan Schwarzer wrote: >>>> Hi, >>>> >>>> I would like to display the coordinates in a corner of the map, > when a >>>> user moves the mouse over it. Is there any Javascript (or Java) > code >>>> out there that would do this? >>>> >>>> Thanks for any suggestions. >>>> >>>> Stef >>> >>> Stefan, >>> >>> you need to know the pixel size of your map image in map units > (DD, >>> meters,..). >>> using MapScript you can pass this value along with every new map >>> generated >>> as a (hidden) value and set a javascript object or variable to > this >>> value. >>> With mapserver CGI you must calculate this value by image size and > map >>> extent >>> yourself. >>> >>> Next you define an eventhandler for the mouseover event of your > map >>> image, >>> for instance: >>> >>> function MapElmOverHndl(e) { >>> var imgOrig = theMap.getorig(); >>> var posx = ((e.offsetX * theMap.getcsz())+imgOrig[0]); >>> var posy = (((400-e.offsetY) * theMap.getcsz())+imgOrig[1])); >>> Dspl.innerHTML=posx+' '+posy; >>> } >>> >>> 'theMap.getorig()': returns minx, miny (mapunits) of the current > image >>> 'theMap.getcsz()': returns the cellsize (pixelsize) in mapunits >>> '400' is the image height in pixels >>> 'Dspl' is a document element like

, ,

or some such. >>> >>> Once you got the handler you add this event handler to your map > image. >>> If your map image got an id of - say - 'myMap': >>> >>> for DOM-Browsers you type: >>> > document.getElementById('myMap').addEventListener("mousemove",MapElmOve >>> rHndl , false) >>> >>> for IE6 you type: >>> document.all['myMap''].attachEvent("onmousemover", > MapElmOverHndl); >>> >>> A cross browser solution could look similar to: >>> var d= document; >>> if (!d.getElementById && d.all) d.getElementById = new > Function('id', >>> 'return d.all[id]'); >>> >>> function X_addEventListener(elm, evt, lstnr, useCapture) { >>> (! elm.addEventListener && d.all)? elm.attachEvent('on'+evt, > lstnr) >>> : elm.addEventListener(evt, lstnr, useCapture); >>> } >>> >>> Now you add the listener by: >>> myMapElm= d.getElementById('myMap'); >>> X_addEventListener(myMapElm ,"mousemove", MapElmOverHndl, false); >>> >>> Cheers, Martin >>> >>> >> >> ????????_______________________________________ >> >> ????????Stefan Schwarzer >> ????????GIS & Data Management >> >> ????????UNEP/DEWA/GRID-Geneva >> ????????Chemin des Anemones 11 >> ????????CH - 1219 Chatelaine >> ????????Switzerland >> >> ????????Tel: (+41) 22.917.83.49 >> ????????Fax: (+41) 22.917.80.29 >> >> ????????Internet: http://geodata.grid.unep.ch/ >> ????????_______________________________________ >> > > -- > --- Martin Weinelt > --- kk+w - digital cartography > --- Kiel, Germany > --- Tel: +49.431.5791165 > --- http://www.planiglobe.com > > ????????_______________________________________ ????????Stefan Schwarzer ????????GIS & Data Management ????????UNEP/DEWA/GRID-Geneva ????????Chemin des Anemones 11 ????????CH - 1219 Chatelaine ????????Switzerland ????????Tel: (+41) 22.917.83.49 ????????Fax: (+41) 22.917.80.29 ????????Internet: http://geodata.grid.unep.ch/ ????????_______________________________________ From bpicinbono at WORLDONLINE.FR Thu Mar 10 07:05:22 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Thu, 10 Mar 2005 16:05:22 +0100 Subject: - determining if great circle segments intersect In-Reply-To: <422F6A63.6000105@otsys.com> Message-ID: Hi Joe, First : you'll need to fully define your circle segments : sarting and ending points are not enough, you can have an infinite number of circle segments passing by : you need another parameter such as center of circle. Second : you mean circle segments on the earth surface ? Well, this is 3D geometry; i don't know if lat/lon coordinate system will be the easier to work with... ? Third : for 2D plane geometry, I found this page : http://perso.wanadoo.fr/math.15873/IntCercl.html It's in french but math is kind of international langage, you will understand it very easily. It deals with entire circles, but you should adapt it to segment easily. hope it'll help Blaise Le mercredi 9 Mars 2005 22:28, Joseph Bussell a ?crit?: > Greetings Group, > Could someone please offer an efficient algorithm for determining if > two great circle segments intersect? > Specifically, given: > Segment A (startLatA,startLonA) - (destLatA, destLonA) > & > Segment B (startLatB,startLonB) - (destLatB, destLonB) > > bool intersects( Segment& A, Segment& B ) > { > ??? > } > > All I want to know is if they share a point. A bonus would be knowing > where that point is. > > Cordially, > > Joe Bussell > On Time Systems From eric at GOMOOS.ORG Thu Mar 10 07:00:59 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 10 Mar 2005 10:00:59 -0500 Subject: LabelAngleItem question In-Reply-To: <423051AF.8040308@cerene.fr> Message-ID: On Thu, 2005-03-10 at 08:54, St?phane RIFF wrote: > I don't understand how can i do it with mapscript > since the angle is set by mapserver with labelangleitem. > Do you mean i have to dynamically create all the point ??? > Yes. From d.huisman at INGBCC.NL Thu Mar 10 07:08:55 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Thu, 10 Mar 2005 16:08:55 +0100 Subject: Projection Message-ID: Hi all, My projection(British_National_Grid) file should be something like this: PROJECTION "proj=tmerc" "lat_0=49" "lon_0=-2" "x_0=400000" "y_0=-100000" "k=0.999601272" "ellps=Airy_1830" "datum=D_OSGB_1936" "to_meter=1" "no_defs END I'm using Windows2000 and Apache. With the install of Mapserver I copy proj/nad to C:\ I have an unknown elliptical parameter ("ellps=Airy_1830") and unknown datum parameter("datum=D_OSGB_1936"). The information on http://www.remotesensing.org/proj/ tells me to compile something?? Isn't this already done? Can someone help me? Best regards, Dirk Jan ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ From lisi at MYDELRAYBEACH.COM Thu Mar 10 07:09:40 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Thu, 10 Mar 2005 10:09:40 -0500 Subject: Next test... Message-ID: Thank you, Arnulf. You gave me a good laugh this morning and a little pride too. I never did get rid of that headache last night, but today I am much better and your e-mail has helped. Now that all the pieces of my GIS implementation are working, I just have to wait for the consultant to come in. Then it'll all start up again. I don't know what OGC is, but rest assured, I'LL BE BACK! Cheers. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Arnulf Christl [mailto:arnulf.christl at ccgis.de] Sent: Thursday, March 10, 2005 7:20 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Lisi, Christine Subject: Next test... Hey Christine, you seem to perfectly fill the position of quality assurance and as you didn't mail in the past 14 hours I believe that you must be deeply bored and depressed by now (or do you sleep every now and then). When will you start testing MapServer's OGC capabilities - we are already eagerly awaiting your input... (-: Anybody having a problem with our documentation can now just search the archives for "Lisi, Christine". Cool thing! Best, Arnulf. -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.org http://www.mapbender.org ------------------------ From fwarmerdam at GMAIL.COM Thu Mar 10 07:20:08 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 10 Mar 2005 10:20:08 -0500 Subject: Projection In-Reply-To: Message-ID: On Thu, 10 Mar 2005 16:08:55 +0100, Dirk-Jan Huisman wrote: > Hi all, > > My projection(British_National_Grid) file should be something like this: > PROJECTION > "proj=tmerc" > "lat_0=49" > "lon_0=-2" > "x_0=400000" > "y_0=-100000" > "k=0.999601272" > "ellps=Airy_1830" > "datum=D_OSGB_1936" > "to_meter=1" > "no_defs > END > > I'm using Windows2000 and Apache. > > With the install of Mapserver I copy proj/nad to C:\ > > I have an unknown elliptical parameter ("ellps=Airy_1830") and unknown > datum parameter("datum=D_OSGB_1936"). Dirk-Jan, You can use the command "cs2cs -ld" to list available datum names. D_OSGB_1936 is not amoung them. In fact, I don't know a good approximation to use for the OSGB 1936 to WGS84 transformation. If you have a preferred 3 or 7 parameter transform you would like to use, then provide it via the +towgs84 parameter. Otherwise just drop the datum identfier and stick to operating on the OSGB 1936 datum. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From nhv at CAPE.COM Thu Mar 10 07:37:10 2005 From: nhv at CAPE.COM (Norman Vine) Date: Thu, 10 Mar 2005 10:37:10 -0500 Subject: - determining if great circle segments intersect In-Reply-To: <422F6A63.6000105@otsys.com> Message-ID: On Mar 9, 2005, at 4:28 PM, Joseph Bussell wrote: > Greetings Group, > Could someone please offer an efficient algorithm for determining if > two great circle segments intersect? Lots of Great Circle code samples here http://williams.best.vwh.net/avform.htm HTH Norman From mweinelt at PLANIGLOBE.COM Thu Mar 10 07:42:29 2005 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Thu, 10 Mar 2005 16:42:29 +0100 Subject: MouseOver & Coordinates In-Reply-To: <0e57ab8488245312be9742f865dd99c6@grid.unep.ch> Message-ID: On Thursday 10 March 2005 15:23, Stefan Schwarzer wrote: > Just as a side-note: there was a small errors in the code: > > +imgOrig[1])); -- the last ")" is too much; > And, ok, obviously enough, the code must be integrated after inserting > the map-image, not before. > > > The "theMap" in the first function... is this really correct? And why > is it theMap.getcsz() - thus, a function, not the retrieval of the > value? And where does the getorig() come from? Are these build-in > functions? I get different error messages - "theMap is not defined", > etc... This was just an example. I keep an JS class which mirrors some of the map(-server) specific properties / methods. 'theMap' is an instance of that class and '.getcsz()' simply returns the current cell size. In your code below it would be the value if the input field named "csz". Wrap your input field in
tags and retrieve the value by var hugo = document.forms[0].csz.value; Likewise you would want to to change 'theMap.getorig()' ( imgOrig[0], imgOrig[1]) with $extent[0], $extent[1]. The whole thing is really simple. Grab the numbers you need for calculating the mouse position in mapunits. > Sorry, sorry. I really tried my best. But I am not a crack in > Javascript... > > Thanks for your help. > > Stef > > ------------------------------------------------------------------------ > -------------------------------- > This is what I have now... > > >
>
The value '400' here has to reflect your image width. > > > > > > On Thursday 10 March 2005 11:07, Stefan Schwarzer wrote: > >> Hi, > >> > >> I would like to display the coordinates in a corner of the map, when a > >> user moves the mouse over it. Is there any Javascript (or Java) code > >> out there that would do this? > >> > >> Thanks for any suggestions. > >> > >> Stef > > > > Stefan, > > > > you need to know the pixel size of your map image in map units (DD, > > meters,..). > > using MapScript you can pass this value along with every new map > > generated > > as a (hidden) value and set a javascript object or variable to this > > value. > > With mapserver CGI you must calculate this value by image size and map > > extent > > yourself. > > > > Next you define an eventhandler for the mouseover event of your map > > image, > > for instance:damn > > > > function MapElmOverHndl(e) { > > var imgOrig = theMap.getorig(); > > var posx = ((e.offsetX * theMap.getcsz())+imgOrig[0]); > > var posy = (((400-e.offsetY) * theMap.getcsz())+imgOrig[1])); > > Dspl.innerHTML=posx+' '+posy; > > } > > > > 'theMap.getorig()': returns minx, miny (mapunits) of the current image > > 'theMap.getcsz()': returns the cellsize (pixelsize) in mapunits > > '400' is the image height in pixels > > 'Dspl' is a document element like

, ,

or some such. > > > > Once you got the handler you add this event handler to your map image. > > If your map image got an id of - say - 'myMap': > > > > for DOM-Browsers you type: > > document.getElementById('myMap').addEventListener("mousemove",MapElmOve > > rHndl , false) > > > > for IE6 you type: > > document.all['myMap''].attachEvent("onmousemover", MapElmOverHndl); > > > > A cross browser solution could look similar to: > > var d= document; > > if (!d.getElementById && d.all) d.getElementById = new Function('id', > > 'return d.all[id]'); > > > > function X_addEventListener(elm, evt, lstnr, useCapture) { > > (! elm.addEventListener && d.all)? elm.attachEvent('on'+evt, lstnr) > > : elm.addEventListener(evt, lstnr, useCapture); > > } > > > > Now you add the listener by: > > myMapElm= d.getElementById('myMap'); > > X_addEventListener(myMapElm ,"mousemove", MapElmOverHndl, false); > > > > Cheers, Martin > > > > > > ????????_______________________________________ > > ????????Stefan Schwarzer > ????????GIS & Data Management > > ????????UNEP/DEWA/GRID-Geneva > ????????Chemin des Anemones 11 > ????????CH - 1219 Chatelaine > ????????Switzerland > > ????????Tel: (+41) 22.917.83.49 > ????????Fax: (+41) 22.917.80.29 > > ????????Internet: http://geodata.grid.unep.ch/ > ????????_______________________________________ From geoffrey.rowland at NOAA.GOV Thu Mar 10 08:34:29 2005 From: geoffrey.rowland at NOAA.GOV (Geoff Rowland) Date: Thu, 10 Mar 2005 11:34:29 -0500 Subject: php mapscript + .map file question (color specific country) In-Reply-To: <200503101642.29990.mweinelt@planiglobe.com> Message-ID: I don't quite understand how to do this. I have a shp file of Africa. Based on user selection, I want to 'zoom' to the selected country - color that country a specific color and all its neighbors a different color. I can set the extents of the country based on user selection with no problem. However I am unsure how to set the color of the country that was selected. Any help would be great! Attribute name in the shape file is Cntry_name here is my map file NAME "Africa" SIZE 600 700 STATUS ON EXTENT -17.533 -46.970 55.541 37.340 UNITS dd SHAPEPATH "data" WEB IMAGEPATH "d:\ms\tmp\" IMAGEURL "tmp/" END SYMBOL NAME 'star' TYPE VECTOR FILLED TRUE POINTS 0 .375 .35 .375 .5 0 .65 .375 1 .375 .75 .625 .875 1 .5 .75 .125 1 .25 .625 END END LAYER NAME "INLINE" TYPE POINT STATUS ON CLASS NAME "0" STYLE COLOR 255 0 0 # red SYMBOL 'star' SIZE 16 END #style END #class END #layer LAYER NAME "Africa" TYPE POLYGON STATUS ON DATA "africa" CLASS STYLE COLOR 255 243 227 OUTLINECOLOR 200 200 200 SYMBOL 0 END END END END -- Geoffrey Rowland Technical Officer Climate Information Project NOAA Research Office of Global Programs http://www.cip.ogp.noaa.gov Contractor, RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com Phone: 301-427-2089x186 Fax : 301-427-2082 geoffrey.rowland at noaa.gov From Tim.Pascoe at EC.GC.CA Thu Mar 10 08:48:58 2005 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Thu, 10 Mar 2005 11:48:58 -0500 Subject: Multiple Versions Issue Message-ID: Currently, I am developing a Mapserver application on a server used to host several different web apps. In order to avoid causing version issues with other applications (which I am not responsible for), I am attempting to install a completely encapsulated version of Mapserver and Chameleon on the server - Windows2000 with IIS. I have a straight-forward installation on my local XP box, but I use the PATH variable to set the location of the DLL's for mapserver. On the web server, I was hoping that I could simply place all of the required dlls in the same directory (MS44/bin), and that mapserv.exe would use these dlls for its execution. However, I get a CGI header return error when I access the mapserv.exe file through the browser, indicating that a DLL was not found properly (correct?). The mapserv.exe and dlls are in a virtual directory under the main web, with read and execute permissions. IUSR has also been granted access to the directory. Anyone have any experience with this? TIA Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From taatuut at PLANET.NL Thu Mar 10 09:04:45 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Thu, 10 Mar 2005 18:04:45 +0100 Subject: Multiple Versions Issue In-Reply-To: <2576812186CDD411BF1500508B6DCE9506A8C86B@ecnwri1.ontario.int.ec.gc.ca> Message-ID: The configuration you describe does work if all needed dll's are available, looks like your still missing one or more. Depending on your MapServer version it might need the msvcr70.dll or some other dll which is not always included in the binary download. Best is to check dependencies for your current mapserver.exe with a tool like dependency walker and then check is all needed dll's are in the bin directory. If not, copy missing dll's to this directory too (for example, msvcr70.dll can be found in the windows system). Regards, Emil Zegers -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Pascoe,Tim [Burlington] Sent: donderdag 10 maart 2005 17:49 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Multiple Versions Issue Currently, I am developing a Mapserver application on a server used to host several different web apps. In order to avoid causing version issues with other applications (which I am not responsible for), I am attempting to install a completely encapsulated version of Mapserver and Chameleon on the server - Windows2000 with IIS. I have a straight-forward installation on my local XP box, but I use the PATH variable to set the location of the DLL?s for mapserver. On the web server, I was hoping that I could simply place all of the required dlls in the same directory (MS44/bin), and that mapserv.exe would use these dlls for its execution. However, I get a CGI header return error when I access the mapserv.exe file through the browser, indicating that a DLL was not found properly (correct?). The mapserv.exe and dlls are in a virtual directory under the main web, with read and execute permissions. IUSR has also been granted access to the directory. Anyone have any experience with this? TIA Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. From sgillies at FRII.COM Thu Mar 10 09:30:35 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 10 Mar 2005 10:30:35 -0700 Subject: Help with building python mapscript In-Reply-To: Message-ID: Allan, Subscribe to the zmapserver-users list or contact me directly for assistance with the Zope product. Or for more immediate support, find me on irc.freenode.net's #mapserver channel. cheers, Sean On Mar 9, 2005, at 7:05 PM, Allan Hollander wrote: > Thanks Sean and Jon, > > I never had any luck with getting my build of python mapscript to > successfully import the _mapscript.so object, despite many > manipulations > of the GDAL library. But I tried the binaries of mapserver, > python-mapscript, and GDAL from the Debian-GIS project, and these work > for > me. Debian-GIS is an excellent and much-needed project: thanks for the > pointer. > > Now on to ZMapserver! > > -- Allan -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From nicolas.fortin at EC.GC.CA Thu Mar 10 09:41:03 2005 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Thu, 10 Mar 2005 12:41:03 -0500 Subject: [UMN_MAPSERVER-USERS] Multiple Versions Issue Message-ID: Hi Tim, I know 2 ways to see what dll are use by an app... 1- run filemon (www.sysinternals.com) while accessing the site and check which dll are loaded. You will see the directories order in which the system search for dll too. 2- run depends.exe and open mapserv.exe and check which dll are used by browsing the tree. Greetings, Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Pascoe,Tim [Burlington] Envoy? : Thursday, March 10, 2005 11:49 AM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Multiple Versions Issue Currently, I am developing a Mapserver application on a server used to host several different web apps. In order to avoid causing version issues with other applications (which I am not responsible for), I am attempting to install a completely encapsulated version of Mapserver and Chameleon on the server - Windows2000 with IIS. I have a straight-forward installation on my local XP box, but I use the PATH variable to set the location of the DLL's for mapserver. On the web server, I was hoping that I could simply place all of the required dlls in the same directory (MS44/bin), and that mapserv.exe would use these dlls for its execution. However, I get a CGI header return error when I access the mapserv.exe file through the browser, indicating that a DLL was not found properly (correct?). The mapserv.exe and dlls are in a virtual directory under the main web, with read and execute permissions. IUSR has also been granted access to the directory. Anyone have any experience with this? TIA Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenlord at GMAIL.COM Thu Mar 10 09:43:45 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Thu, 10 Mar 2005 09:43:45 -0800 Subject: Multiple Versions Issue In-Reply-To: Message-ID: Hi Tim, This will be my near daily reminder that if you use the mapserver windows binaries 4.4.1 downloaded from the mapserver homepage, you very likely will get the http header error, and the usual fixes will not work to fix the problem. There may be a problem with how it was compiled. If you think this is the case for you, go to www.maptools.org/dl and get their version of 4.4.1. Use the mapserv.exe and the dll's that are within the zip files inside the main file you download from them. This version has a larger .exe file that appears to have been compiled to be less dependant on external dll's, and it works. This has worked for me on a windows 2000 and windows XP SP1 installation, as well as for a few other people here on the list. This is also my near daily reminder that the powers above should remove/update the windows binary on the mapserver homepage. Cheers, Ken Lord Vancouver BC On Thu, 10 Mar 2005 18:04:45 +0100, Emil Zegers wrote: > The configuration you describe does work if all needed dll's are available, > looks like your still missing one or more. > > Depending on your MapServer version it might need the msvcr70.dll or some > other dll which is not always included in the binary download. > > Best is to check dependencies for your current mapserver.exe with a tool > like dependency walker and then check is all needed dll's are in the bin > directory. > > If not, copy missing dll's to this directory too (for example, msvcr70.dll > can be found in the windows system). > > Regards, > > Emil Zegers > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Pascoe,Tim [Burlington] > Sent: donderdag 10 maart 2005 17:49 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Multiple Versions Issue > > Currently, I am developing a Mapserver application on a server used > to host several different web apps. In order to avoid causing version issues > with other applications (which I am not responsible for), I am attempting to > install a completely encapsulated version of Mapserver and Chameleon on the > server - Windows2000 with IIS. > I have a straight-forward installation on my local XP box, but I use > the PATH variable to set the location of the DLL's for mapserver. On the web > server, I was hoping that I could simply place all of the required dlls in > the same directory (MS44/bin), and that mapserv.exe would use these dlls for > its execution. However, I get a CGI header return error when I access the > mapserv.exe file through the browser, indicating that a DLL was not found > properly (correct?). The mapserv.exe and dlls are in a virtual directory > under the main web, with read and execute permissions. IUSR has also been > granted access to the directory. > Anyone have any experience with this? TIA > Timothy Pascoe > > Environment Canada / Environnement Canada > Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures > 867 Lakeshore Road / 867, chemin Lakeshore > Burlington, Ontario / Burlington (Ontario) > L7R 4A6 > > Tel/T?l: (905) 336-6239 > Fax/T?l?c: (905) 336-4699 > E-mail/C. ?lec: tim.pascoe at ec.gc.ca > Government of Canada/Gouvernement du Canada > This e-mail represents the opinions and views solely held by its author and > in no manner may be considered as representing those of his/her employer. > From Tim.Pascoe at EC.GC.CA Thu Mar 10 09:59:29 2005 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Thu, 10 Mar 2005 12:59:29 -0500 Subject: Multiple Versions Issue Message-ID: Ken, Thanks for the info - I am indeed using the binaries from the Mapserver home page, although I did manage to get it working after running Dependency Walker. I should have thought of that first, but I figured I had everything in there I needed ;) However, I think I'll try the MapTools version just to limit the number of DLL files I have drifting around my installation. Thanks, Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Thursday, March 10, 2005 12:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Multiple Versions Issue Hi Tim, This will be my near daily reminder that if you use the mapserver windows binaries 4.4.1 downloaded from the mapserver homepage, you very likely will get the http header error, and the usual fixes will not work to fix the problem. There may be a problem with how it was compiled. If you think this is the case for you, go to www.maptools.org/dl and get their version of 4.4.1. Use the mapserv.exe and the dll's that are within the zip files inside the main file you download from them. This version has a larger .exe file that appears to have been compiled to be less dependant on external dll's, and it works. This has worked for me on a windows 2000 and windows XP SP1 installation, as well as for a few other people here on the list. This is also my near daily reminder that the powers above should remove/update the windows binary on the mapserver homepage. Cheers, Ken Lord Vancouver BC On Thu, 10 Mar 2005 18:04:45 +0100, Emil Zegers wrote: > The configuration you describe does work if all needed dll's are available, > looks like your still missing one or more. > > Depending on your MapServer version it might need the msvcr70.dll or some > other dll which is not always included in the binary download. > > Best is to check dependencies for your current mapserver.exe with a tool > like dependency walker and then check is all needed dll's are in the bin > directory. > > If not, copy missing dll's to this directory too (for example, msvcr70.dll > can be found in the windows system). > > Regards, > > Emil Zegers > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Pascoe,Tim [Burlington] > Sent: donderdag 10 maart 2005 17:49 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Multiple Versions Issue > > Currently, I am developing a Mapserver application on a server used > to host several different web apps. In order to avoid causing version issues > with other applications (which I am not responsible for), I am attempting to > install a completely encapsulated version of Mapserver and Chameleon on the > server - Windows2000 with IIS. > I have a straight-forward installation on my local XP box, but I use > the PATH variable to set the location of the DLL's for mapserver. On the web > server, I was hoping that I could simply place all of the required dlls in > the same directory (MS44/bin), and that mapserv.exe would use these dlls for > its execution. However, I get a CGI header return error when I access the > mapserv.exe file through the browser, indicating that a DLL was not found > properly (correct?). The mapserv.exe and dlls are in a virtual directory > under the main web, with read and execute permissions. IUSR has also been > granted access to the directory. > Anyone have any experience with this? TIA > Timothy Pascoe > > Environment Canada / Environnement Canada > Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures > 867 Lakeshore Road / 867, chemin Lakeshore > Burlington, Ontario / Burlington (Ontario) > L7R 4A6 > > Tel/T?l: (905) 336-6239 > Fax/T?l?c: (905) 336-4699 > E-mail/C. ?lec: tim.pascoe at ec.gc.ca > Government of Canada/Gouvernement du Canada > This e-mail represents the opinions and views solely held by its author and > in no manner may be considered as representing those of his/her employer. > From joe at OTSYS.COM Thu Mar 10 10:21:33 2005 From: joe at OTSYS.COM (Joseph Bussell) Date: Thu, 10 Mar 2005 10:21:33 -0800 Subject: - determining if great circle segments intersect In-Reply-To: <200503101605.22160.bpicinbono@worldonline.fr> Message-ID: The euclidean version will not apply. Great circle segments are well defined as their center points are always at the center of the planet. The 2D case is a simple case of solving simultaneous equations. The spherical case is likewise solvable in that manner, but not efficiently. Thanks for replying though. Cordially, Joe Bussell blaise wrote: >Hi Joe, > >First : you'll need to fully define your circle segments : sarting and ending >points are not enough, you can have an infinite number of circle segments >passing by : you need another parameter such as center of circle. > >Second : you mean circle segments on the earth surface ? Well, this is 3D >geometry; i don't know if lat/lon coordinate system will be the easier to >work with... ? > >Third : for 2D plane geometry, I found this page : >http://perso.wanadoo.fr/math.15873/IntCercl.html >It's in french but math is kind of international langage, you will understand >it very easily. It deals with entire circles, but you should adapt it to >segment easily. > >hope it'll help >Blaise > >Le mercredi 9 Mars 2005 22:28, Joseph Bussell a ?crit : > > >>Greetings Group, >> Could someone please offer an efficient algorithm for determining if >>two great circle segments intersect? >>Specifically, given: >> Segment A (startLatA,startLonA) - (destLatA, destLonA) >> & >> Segment B (startLatB,startLonB) - (destLatB, destLonB) >> >>bool intersects( Segment& A, Segment& B ) >>{ >> ??? >>} >> >>All I want to know is if they share a point. A bonus would be knowing >>where that point is. >> >>Cordially, >> >>Joe Bussell >>On Time Systems >> >> > > > From joe at OTSYS.COM Thu Mar 10 10:24:21 2005 From: joe at OTSYS.COM (Joseph Bussell) Date: Thu, 10 Mar 2005 10:24:21 -0800 Subject: - determining if great circle segments intersect In-Reply-To: Message-ID: I have lived and breathed Williams' Aviation Formulary ever since TrafficDodger was discontinued and I was assigned to our aircraft routing tool (WARP). He does have some of the juice, but certain cases appear to slip through the cracks of his algorithm (or my interpretation of it). Thanks for the reply. Cordially, Joe Bussell Norman Vine wrote: > > On Mar 9, 2005, at 4:28 PM, Joseph Bussell wrote: > >> Greetings Group, >> Could someone please offer an efficient algorithm for determining if >> two great circle segments intersect? > > > Lots of Great Circle code samples here > http://williams.best.vwh.net/avform.htm > > HTH > > Norman > > From nhv at CAPE.COM Thu Mar 10 10:47:23 2005 From: nhv at CAPE.COM (Norman Vine) Date: Thu, 10 Mar 2005 13:47:23 -0500 Subject: - determining if great circle segments intersect In-Reply-To: <423090D5.8090700@otsys.com> Message-ID: On Mar 10, 2005, at 1:24 PM, Joseph Bussell wrote: > I have lived and breathed Williams' Aviation Formulary ever since > TrafficDodger was discontinued and I was assigned to our aircraft > routing tool (WARP). He does have some of the juice, but certain > cases appear to slip through the cracks of his algorithm (or my > interpretation of it). I believe the formulary has everything you need but perhaps you will find this more illuminating :-) http://nsidc.org/data/tools/spheres/GCAIntersect.html Norman From cdaily at GMAIL.COM Thu Mar 10 10:56:00 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 10 Mar 2005 12:56:00 -0600 Subject: Rubber-Band Box Zooming Message-ID: Hello all. I'm developing a php/mapscript mapping application, and I'm trying to implement zooming where the user clicks and drags a box on the map that they would like to zoom to. What's making this tricky is that I'd also like to make hidden
s pop up over specific locations on the map when the mouse moves over them. The popup stuff isn't too tricky using maparea and onmouseovers. I've also used the rosa applet to get the click-and-drag zooming working nicely. However, trying to combine these two things seems impossible for a few reasons: 1) There's no way to tag an applet with an areamap for the pop ups. 2) Even scrapping the areamap and using pure javascript to track the mouse position won't work, because mouse events aren't triggered over applets, and even if they were, it would be impossible to then draw the divs over the applet (as applets are always 'in front'). I've looked at other apps like rosa (jBox, dBox), but they seem to be java applets as well . I think the only way I'm going to accomplish this will be to either find an applet that supports location popups, or to find a jBox/dBox like application that's pure JavaScript (or write my own, if there's a way to draw the boxes in javascript). If anyone has suggestions, I'd love to hear 'em. From lisi at MYDELRAYBEACH.COM Thu Mar 10 11:26:22 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Thu, 10 Mar 2005 14:26:22 -0500 Subject: Multiple Versions Issue Message-ID: Tim - This version from MapTools worked for me as well. Another note: You should also consider putting the MapServer directory somewhere other than wwwroot, setting paths and variables in Windows, and not moving any files to system32. The CGI file (mapserv.exe) is all you need in IIS. See the MapServer readme-install.txt file (what little documentation there is) items 6 and 7. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Thursday, March 10, 2005 12:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Multiple Versions Issue Hi Tim, This will be my near daily reminder that if you use the mapserver windows binaries 4.4.1 downloaded from the mapserver homepage, you very likely will get the http header error, and the usual fixes will not work to fix the problem. There may be a problem with how it was compiled. If you think this is the case for you, go to www.maptools.org/dl and get their version of 4.4.1. Use the mapserv.exe and the dll's that are within the zip files inside the main file you download from them. This version has a larger .exe file that appears to have been compiled to be less dependant on external dll's, and it works. This has worked for me on a windows 2000 and windows XP SP1 installation, as well as for a few other people here on the list. This is also my near daily reminder that the powers above should remove/update the windows binary on the mapserver homepage. Cheers, Ken Lord Vancouver BC On Thu, 10 Mar 2005 18:04:45 +0100, Emil Zegers wrote: > The configuration you describe does work if all needed dll's are available, > looks like your still missing one or more. > > Depending on your MapServer version it might need the msvcr70.dll or some > other dll which is not always included in the binary download. > > Best is to check dependencies for your current mapserver.exe with a tool > like dependency walker and then check is all needed dll's are in the bin > directory. > > If not, copy missing dll's to this directory too (for example, msvcr70.dll > can be found in the windows system). > > Regards, > > Emil Zegers > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Pascoe,Tim [Burlington] > Sent: donderdag 10 maart 2005 17:49 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Multiple Versions Issue > > Currently, I am developing a Mapserver application on a server used > to host several different web apps. In order to avoid causing version issues > with other applications (which I am not responsible for), I am attempting to > install a completely encapsulated version of Mapserver and Chameleon on the > server - Windows2000 with IIS. > I have a straight-forward installation on my local XP box, but I use > the PATH variable to set the location of the DLL's for mapserver. On the web > server, I was hoping that I could simply place all of the required dlls in > the same directory (MS44/bin), and that mapserv.exe would use these dlls for > its execution. However, I get a CGI header return error when I access the > mapserv.exe file through the browser, indicating that a DLL was not found > properly (correct?). The mapserv.exe and dlls are in a virtual directory > under the main web, with read and execute permissions. IUSR has also been > granted access to the directory. > Anyone have any experience with this? TIA > Timothy Pascoe > > Environment Canada / Environnement Canada > Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures > 867 Lakeshore Road / 867, chemin Lakeshore > Burlington, Ontario / Burlington (Ontario) > L7R 4A6 > > Tel/T?l: (905) 336-6239 > Fax/T?l?c: (905) 336-4699 > E-mail/C. ?lec: tim.pascoe at ec.gc.ca > Government of Canada/Gouvernement du Canada > This e-mail represents the opinions and views solely held by its author and > in no manner may be considered as representing those of his/her employer. > From schuyler at NOCAT.NET Thu Mar 10 11:47:03 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Thu, 10 Mar 2005 11:47:03 -0800 Subject: Rubber-Band Box Zooming In-Reply-To: <16264e07050310105678a8c1a1@mail.gmail.com> Message-ID: * On 10-Mar-2005 at 10:55AM PST, Camden Daily said: > > I think the only way I'm going to accomplish this will be to either > find an applet that supports location popups, or to find a jBox/dBox > like application that's pure JavaScript (or write my own, if there's a > way to draw the boxes in javascript). > > If anyone has suggestions, I'd love to hear 'em. Steve Lime's MapServer Web Client does this completely in JavaScript. I haven't dissected the code yet, but you can find it at http://darkstar.rr.nu/mwc.html, which unfortunately isn't loading for me right now. SDE From cdaily at GMAIL.COM Thu Mar 10 11:54:32 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 10 Mar 2005 13:54:32 -0600 Subject: Rubber-Band Box Zooming In-Reply-To: <20050310194703.GW25704@vishnu.tridity.org> Message-ID: Thanks for the suggestions all. I'll check out Web Client and explore dBox a bit more (guess it's not an applet!) I'll report back if I have any success. -Camden From geoffrey.rowland at NOAA.GOV Thu Mar 10 12:03:06 2005 From: geoffrey.rowland at NOAA.GOV (Geoff Rowland) Date: Thu, 10 Mar 2005 15:03:06 -0500 Subject: php mapscript + .map file question (color specific country) In-Reply-To: <42307715.1020407@noaa.gov> Message-ID: Figured it out. When I was testing, I was drawing the layers in the wrong order, doh. Geoff Rowland wrote: > I don't quite understand how to do this. > > I have a shp file of Africa. Based on user selection, I want to 'zoom' > to the selected country - color that country a specific color and all > its neighbors a different color. I can set the extents of the country > based on user selection with no problem. However I am unsure how to set > the color of the country that was selected. Any help would be great! > Attribute name in the shape file is Cntry_name > > here is my map file > -- Geoffrey Rowland Technical Officer Climate Information Project NOAA Research Office of Global Programs http://www.cip.ogp.noaa.gov Contractor, RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com Phone: 301-427-2089x186 Fax : 301-427-2082 geoffrey.rowland at noaa.gov From dbkeon.ml at GMAIL.COM Thu Mar 10 12:17:39 2005 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Thu, 10 Mar 2005 12:17:39 -0800 Subject: Rubber-Band Box Zooming In-Reply-To: <16264e07050310105678a8c1a1@mail.gmail.com> Message-ID: On 03/10/2005 10:56 AM, Camden Daily wrote: > Hello all. I'm developing a php/mapscript mapping application, and > I'm trying to implement zooming where the user clicks and drags a box > on the map that they would like to zoom to. Camden, Here's a link to the rubber band javascript code I'm using. I borrowed most of it from Stefan Schwarzer a while back, and made a few modifications. It could probably be improved upon as I am no javascript expert, but it might get you started. I use it with php mapscript apps. http://gis.nacse.org/temp/zoombox.js --Dylan From osgis.lists at GMAIL.COM Thu Mar 10 12:34:53 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Thu, 10 Mar 2005 14:34:53 -0600 Subject: Rubber-Band Box Zooming In-Reply-To: <16264e07050310115436916a54@mail.gmail.com> Message-ID: The Mapserver Web Client is developed by Mathew Perry. A site that Steve Lime uses dbox in is the landview site http://www.dnr.state.mn.us/maps/landview_dhtml_x.html . A presentation about dbox from the 2004 Mapserver Users Meeting can be found here: http://www.omsug.ca/dl/osgis2004/box_presentation.zip . On Thu, 10 Mar 2005 13:54:32 -0600, Camden Daily wrote: > Thanks for the suggestions all. I'll check out Web Client and explore > dBox a bit more (guess it's not an applet!) > > I'll report back if I have any success. > > -Camden > From rhysi at OMNILINK.COM.AU Thu Mar 10 14:38:03 2005 From: rhysi at OMNILINK.COM.AU (Rhys Ickeringill) Date: Fri, 11 Mar 2005 09:38:03 +1100 Subject: Projection Message-ID: G'day Dirk-Jan, My comments below: ----- Original Message ----- From: "Dirk-Jan Huisman" To: Sent: Friday, March 11, 2005 2:08 AM Subject: [UMN_MAPSERVER-USERS] Projection Hi all, My projection(British_National_Grid) file should be something like this: PROJECTION "proj=tmerc" "lat_0=49" "lon_0=-2" "x_0=400000" "y_0=-100000" "k=0.999601272" "ellps=Airy_1830" "datum=D_OSGB_1936" "to_meter=1" "no_defs END I'm using Windows2000 and Apache. With the install of Mapserver I copy proj/nad to C:\ I have an unknown elliptical parameter ("ellps=Airy_1830") and unknown datum parameter("datum=D_OSGB_1936"). ----- End Message ----- Just had a quick look at the Proj data files and I think your ellps parameter should be just "airy" rather than "Airy_1830". Your datum "OSGB_1936" is not defined anywhere as a *named* datum. AFAIK since you're providing all the other parameters (false eastings, northings, scale factors etc.), you don't need to have a datum parameter anyway - it just duplicates the definition of those parameters. Actually, I think you can replace your entire projection statement with just: PROJECTION "init=epsg:27700" END Personally I still prefer the long version like you were using: PROJECTION "proj=tmerc" "lat_0=49" "lon_0=-2" "x_0=400000" "y_0=-100000" "k=0.999601272" "ellps=airy" "to_meter=1" "no_defs END If you're still being told that the ellipsoid you've specified can't be found, try specifying its' parameters directly (ie. specify two from: {semi-major axis, semi-minor axis, eccentricity, inverse flattening, ...}) HTH - Rhys From woklist at CHARTER.NET Thu Mar 10 15:56:07 2005 From: woklist at CHARTER.NET (William K) Date: Thu, 10 Mar 2005 17:56:07 -0600 Subject: label in symbol? Message-ID: Is there a way to draw labels inside a symbol, such as a highway number in a shield? I'm open to programatic php methods (I could probably figure that out), but would prefer something automatic or built into MS (that's not obvious, since I don't see anything in the docs, tho there is an unanswered question in the wiki). (MS 4.4.1, php-mapscript) ----- William Kyngesburye http://webpages.charter.net/kyngchaos/ "This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?" - The Ruler of the Universe From bpicinbono at WORLDONLINE.FR Thu Mar 10 16:07:10 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Fri, 11 Mar 2005 01:07:10 +0100 Subject: label in symbol? In-Reply-To: <82a3a25cd3f634830e1d106d8ec37bb5@charter.net> Message-ID: > Is there a way to draw labels inside a symbol, such as a highway number > in a shield? I'm open to programatic php methods (I could probably > figure that out), but would prefer something automatic or built into MS > (that's not obvious, since I don't see anything in the docs, tho there > is an unanswered question in the wiki). Have you looked at the Itasca demo (that you can download at mapserver website) ? It seems that it's doing that pretty well with three different road symbol. Blaise From jacob.delfos at MAUNSELL.COM Thu Mar 10 16:24:46 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 11 Mar 2005 08:24:46 +0800 Subject: compile error Gdal on .net SDK - iostream not found Message-ID: Hi All, Just to let you know it's fixed. Turns out my dll was fine, but I copied it to the right space (forgot gdal must sit in system directory). So conclusion: gdal can be compiled with the free microsoft .net compiler, but it takes a lot of improvising, and you might not get past the stage of the dll (it did not compile any executables). I had to enable the linker flag in the nmake.opt file: LINKER_FLAGS = /NODEFAULTLIB:LIBC I also had to change a few filenames for the ecw plugin (NCSEcwU.lib -> NCSEcw.lib), comment out a line NCSErrors.h (#include , which apparently is safe to get rid of), and remove the last bit in tiffio.h (where it tries to make use of iostream, istream and ostream, which are not supported by this .net version). So not very clean, but it does work. regards, Jacob -------------------------------------------------------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jacob Delfos Sent: 10 March 2005 16:33 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] compile error Gdal on .net SDK - iostream not found Craig, Thanks for the tip. Unfortunately it wasn't that simple. It seems in this .net version, there is no support at all for iostream. Apparently they got rid of it in .net 2005 (which I think is what I use). I resorted to a last option, and commented those lines out. It did not complain about it. I got lots of other errors, though. The free .net compiler misses some fundamental files (e.g. lib.exe), which means a lot of improvisation. In the end, it created a gdal12.dll file. Unfortunately, the mrsid support did not work (which was why I embarked on this in the first place). The rest did work. regards, Jacob -------------------------------------------------------------------------------- From: Craig Miller [mailto:craig.miller at spatialminds.com] Sent: 10 March 2005 14:31 To: 'Jacob Delfos' Subject: RE: [UMN_MAPSERVER-USERS] compile error Gdal on .net SDK - iostream not found In .NET 2003 they removed all the old .h headers, so just remove the .h (e.g iostream.h becomes iostream) from the include files and add a "using namespace std;" in your source code. Another option is to install an STL libraty like STLport which should still have support for old include files. --Craig -------------------------------------------------------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jacob Delfos Sent: Wednesday, March 09, 2005 10:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] compile error Gdal on .net SDK - iostream not found Hi All, I'm working really hard to try and get Gdal compiled on Windows XP, with the microsoft .net SDK and the platform SDK for windows XP. Bear in mind, I'm pretty ignorant in this. I'm running into the following error: libtiff\tiffio.h(499) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory I'm no expert in C++, but I thought iostream was pretty fundamental. I've googled the world, and all it left me was a headache. But I'm not giving up. Why is iostream missing? What can I do to get it? I've tried substituting with the Cygwin iostream.h (experts will probably crinch at this). Didn't work too well. Anybody have any ideas? Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, WA 6007 PO Box 81, WA 6902 Leederville Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacob.delfos at MAUNSELL.COM Thu Mar 10 17:46:58 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 11 Mar 2005 09:46:58 +0800 Subject: overriding embedded mrsid projection Message-ID: Hi, Does anybody know how to make mapserver override the projection embedded in a mrsid file? I am trying to make use of the landsat 2000 mosaics, which for some reason are all in northern UTM zones (our website is in a southern zone). Having to re-project it would make it unacceptably slow. I've tried changing the sdw file (and creating a wld file). But it keeps picking up the negative coordinates embedded in the image. Can you force extents of an image somehow? regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, WA 6007 PO Box 81, WA 6902 Leederville Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ram at RAMPAGE.NET Thu Mar 10 19:50:47 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Thu, 10 Mar 2005 21:50:47 -0600 Subject: Controlling mapsize in CGI Message-ID: I'm trying to change the mapsize from a CGI form, and not having much success as mapsize_check doesn't seem to be valid, nor is any construct I can think of. I've searched the archive here and found Richard Greenwood's javascript solution posted last September 2nd, but I can't make that work either. I get no output at all in the JavaScript console in FireFox, and only an unpopulated drop down box on the browser screen. Does the javascript solution work with the current rev of MapServer? Can anyone point me at a publicly accessible site that uses a JavaScript to change mapsize on the fly? Thanks! -- Richard From woodbri at SWOODBRIDGE.COM Thu Mar 10 20:11:49 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 10 Mar 2005 23:11:49 -0500 Subject: Controlling mapsize in CGI In-Reply-To: Message-ID: The following works for me on 4.01 and 4.4.1 http://server/cgi-bin/mapserv?mode=map&layers=all&scale=20000000&map=/path/tp/mapfile.map&mapxy=-71.38918+42.61935&map_size=600+400 Just change map_size=600+400 to whatever map_size=width+height So what version are you using? -Steve W Richard A. Milewski wrote: > I'm trying to change the mapsize from a CGI form, and not having much > success as mapsize_check doesn't seem to be valid, nor is any construct I > can think of. > > I've searched the archive here and found Richard Greenwood's javascript > solution posted last September 2nd, but I can't make that work either. I > get no output at all in the JavaScript console in FireFox, and only an > unpopulated drop down box on the browser screen. > > Does the javascript solution work with the current rev of MapServer? Can > anyone point me at a publicly accessible site that uses a JavaScript to > change mapsize on the fly? > > Thanks! > > -- Richard > From ram at RAMPAGE.NET Thu Mar 10 21:28:35 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Thu, 10 Mar 2005 23:28:35 -0600 Subject: Controlling mapsize in CGI Message-ID: Stephen, Thank you for the speedy reply! I don't have any trouble setting the size in the querystring, that works reliably. The problem is in showing a checkbox or the default value in a drop-down box that shows the current setting. How do I handle the problem on the cgi/html side. Thanks! -- Richard From jacob.delfos at MAUNSELL.COM Thu Mar 10 21:44:54 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 11 Mar 2005 13:44:54 +0800 Subject: Controlling mapsize in CGI Message-ID: Richard, Try putting something like this inside your form: Then have a bit of javascript like this: Make sure the body has something like: I have not really tested this code, but it should work. It basically puts in a dropdown selector for the mapsize form variable. When the page is loaded, the javascript checks out the URL, searching for the value of the map_size. Make sure there are no other form variables with similar values, because it might pick those up too. It sets the dropdown box to the value it found in the URL. Let me know if you have any troubles. Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard A. Milewski Sent: 11 March 2005 13:29 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Controlling mapsize in CGI Stephen, Thank you for the speedy reply! I don't have any trouble setting the size in the querystring, that works reliably. The problem is in showing a checkbox or the default value in a drop-down box that shows the current setting. How do I handle the problem on the cgi/html side. Thanks! -- Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From wokar1 at YAHOO.COM Thu Mar 10 21:45:52 2005 From: wokar1 at YAHOO.COM (w m) Date: Thu, 10 Mar 2005 21:45:52 -0800 Subject: one layer doesn't show up??? Message-ID: Hi, i have a mapfile which returns no errors whatsoever. all the layers work except one, the hotspot layer. if i turn all the other layers off, the hotspot layer still doesnt show up. its type point. it returns no errors only returns a white page if hotspot layer is the only layer turned on. i did ogr info and everything is fine. i created this shp file myself in postgresql by using pgsql2shp i have no clue wat the problem is..... u can check out the map here http://132.205.108.60/cgi-bin/mapserv?map=tut4.map&mode=map thank You wokar NAME P1EX1 EXTENT -73.992437 45.138200 -73.174263 45.861800 # EXTENT -97.238976 41.619778 -82.122902 49.38562 #EXTENT 407.997812 4103475.750 443135.000 415.250 #EXTENT 407.997812 4103475.750 443135.000 4157027.250 #EXTENT -4362443.743696 3864199.098181 2916998.546244 9336805.43055 #EXTENT -79.533992 44.991472 -61.467212 54.869379 SIZE 600 700 SHAPEPATH "/var/www/cgi-bin/montreal/" WEB IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" END LAYER # start of the "land" layer object NAME "land" DATA V0LLand STATUS DEFAULT TYPE POLYGON CLASS COLOR 56 234 254 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # start of the "cropland" layer object NAME "cropland" DATA V0CCroplands STATUS DEFAULT TYPE POLYGON CLASS COLOR 213 172 13 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # start of the "grass" layer object NAME "grass" DATA V0GGrasslands STATUS DEFAULT TYPE POLYGON CLASS COLOR -255 120 60 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # start of the "trees" layer object NAME "trees" DATA V0TTrees STATUS DEFAULT TYPE POLYGON CLASS COLOR 101 177 105 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # start of the "rivers" layer object NAME "rivers" DATA V0WWaterCourses STATUS DEFAULT TYPE LINE CLASS COLOR 102 215 238 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # start of the "inland water bodies" layer object NAME "water bodies" DATA V0IInlandWaterBodies STATUS DEFAULT TYPE LINE CLASS COLOR 0 0 222 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # start of the "majorroads" layer object NAME "majorroads" DATA V0MMajorRoads STATUS DEFAULT TYPE LINE CLASS COLOR 0 0 0 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # start of the "urban areas" layer object NAME "urban areas" DATA V0UUrbanAreas STATUS DEFAULT TYPE POLYGON CLASS COLOR 136 137 142 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # start of the "bridges" layer object NAME "bridges" DATA V0BBridges STATUS DEFAULT TYPE LINE CLASS COLOR 237 251 60 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # start of the "hotspots" layer object NAME "hotspots" DATA Hotspots STATUS DEFAULT TYPE POINT CLASS COLOR 255 255 255 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # start of the "Airport1" layer object NAME "Airport1" DATA Airports1 STATUS DEFAULT TYPE POINT CLASS COLOR 237 251 60 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # start of the "hotspots" layer object NAME "hotspots" DATA Hotspots STATUS DEFAULT TYPE POINT CLASS COLOR 255 255 255 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object LAYER # start of the "Airport1" layer object NAME "Airport1" DATA Airports1 STATUS DEFAULT TYPE POINT CLASS COLOR 249 0 0 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object #LAYER # start of the "hotspots" layer object # NAME "hotspots" # DATA Hotspots # STATUS DEFAULT # TYPE POINT # CLASS # COLOR 255 255 255 # OUTLINECOLOR 0 0 0 #END # end of class object #END # end of layer object END # end of map file --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ram at RAMPAGE.NET Thu Mar 10 21:46:01 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Thu, 10 Mar 2005 23:46:01 -0600 Subject: Controlling mapsize in CGI Message-ID: Stephen, Forgot to mention... I'm running 4.4.1 on Linux, and ms4w on my workstation. -- RAM From wokar1 at YAHOO.COM Thu Mar 10 21:53:40 2005 From: wokar1 at YAHOO.COM (w m) Date: Thu, 10 Mar 2005 21:53:40 -0800 Subject: size of POINT in shp file Message-ID: Hi, If i create a shapefile form a postgresql database and define the geometry to be point, is it possible to change the size of that point. what if the point appears too small on a map once i use the shp file, is there a way to change the size? thanks wokar __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ram at RAMPAGE.NET Thu Mar 10 22:10:24 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Fri, 11 Mar 2005 00:10:24 -0600 Subject: Controlling mapsize in CGI Message-ID: Jacob, Thank you for the help! I tried your code, and it generates the message: getInteger(): Symbol definition error. Parsing error near (+):(line 266) The template (.html) file is only 103 lines long, but line 266 is the last line of the .map file. Any suggestions? Thank you. --RAM From jacob.delfos at MAUNSELL.COM Fri Mar 11 00:01:04 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 11 Mar 2005 16:01:04 +0800 Subject: Controlling mapsize in CGI Message-ID: Richard, I don't suppose it could have to do with this: http://lists.gis.umn.edu/pipermail/mapserver-users/2004-July/014719.html It seems to be the same error...... although I don't see how it relates. Check what the URL is to the site after you submit using the code I provided. Does the parameter for map_size look healthy? I don't think it starts to do integer arithmetic because of the + symbol, because it's in quotes. But if it does, put a backslash before the +. regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard A. Milewski Sent: 11 March 2005 14:10 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Controlling mapsize in CGI Jacob, Thank you for the help! I tried your code, and it generates the message: getInteger(): Symbol definition error. Parsing error near (+):(line 266) The template (.html) file is only 103 lines long, but line 266 is the last line of the .map file. Any suggestions? Thank you. --RAM -------------- next part -------------- An HTML attachment was scrubbed... URL: From ram at RAMPAGE.NET Fri Mar 11 00:21:56 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Fri, 11 Mar 2005 02:21:56 -0600 Subject: Controlling mapsize in CGI Message-ID: Jacob, Well, it may be related in that it looks like the error message generated when the number of arguments for a parameter is wrong. I'll dig a little and try a couple of things. ...if I can find an answer, I'll post it here in hopes of helping those who follow. Thanks! -- Richard From stephane.riff at CERENE.FR Fri Mar 11 00:21:46 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-15?Q?St=E9phane_RIFF?=) Date: Fri, 11 Mar 2005 09:21:46 +0100 Subject: LabelAngleItem question In-Reply-To: <1110466865.1895.26.camel@ubet.gomoos.org> Message-ID: Can someone show me an example because i don't know how to do it. I can create dynamic layer but the problem is how to set orientation for each points, i don't think a class for each orientation is a good solution but i don't see anything else. Eric Bridger wrote: >On Thu, 2005-03-10 at 08:54, St?phane RIFF wrote: > > >>I don't understand how can i do it with mapscript >>since the angle is set by mapserver with labelangleitem. >>Do you mean i have to dynamically create all the point ??? >> >> >> > >Yes > > > > From mapserver at GEOWORLD.DE Fri Mar 11 02:21:10 2005 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Fri, 11 Mar 2005 11:21:10 +0100 Subject: layer type circle Message-ID: Hi List, i would like to use the layer type 'circle'. Attached you find the mapfile i use. I expect to get a circle whose diameter is determined by the two vertices of my line (bounding box for the circle). What i get is as single point (1x1 pixel) in the center of the two points. Do i have a wrong understanding of the layer type, do i miss something or is this a bug? Many thanks for your help Nicol MAP NAME Germany EXTENT 5.86628568 47.27360151 15.0486318 55.05826185 SIZE 300 300 UNITS DD WEB IMAGEURL "/~nicol/mapserver/phpmapserver/tmp/" IMAGEPATH "/home/nicol/public_html/mapserver/phpmapserver/tmp/" END LAYER NAME "buffer" STATUS DEFAULT TYPE circle #TYPE line FEATURE POINTS 8.2588482 48.87774279 8.2588482 49.1577759 END TEXT "circle" END TEMPLATE "dummy.html" CLASS NAME germany COLOR 0 0 255 OUTLINECOLOR 0 0 0 LABEL TYPE bitmap SIZE small END END END END From bartvde at XS4ALL.NL Fri Mar 11 03:35:43 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 11 Mar 2005 12:35:43 +0100 Subject: layer type circle In-Reply-To: <1110536470.1692.20.camel@emil> Message-ID: Hi Nicol, AFAIK inline features are in pixel coordinates, not in world coordinates. I don't know how to create a buffer in real world coordinates with Mapserver though, so that doesn't help you ... Best regards, Bart > Hi List, > > i would like to use the layer type 'circle'. Attached you find the > mapfile i use. I expect to get a circle whose diameter is determined by > the two vertices of my line (bounding box for the circle). > What i get is as single point (1x1 pixel) in the center of the two > points. > Do i have a wrong understanding of the layer type, do i miss something > or is this a bug? > > Many thanks for your help > Nicol > > > > MAP > NAME Germany > EXTENT 5.86628568 47.27360151 15.0486318 55.05826185 > SIZE 300 300 > UNITS DD > WEB > IMAGEURL "/~nicol/mapserver/phpmapserver/tmp/" > IMAGEPATH "/home/nicol/public_html/mapserver/phpmapserver/tmp/" > END > LAYER > NAME "buffer" > STATUS DEFAULT > TYPE circle > #TYPE line > FEATURE > POINTS > 8.2588482 48.87774279 > 8.2588482 49.1577759 > END > TEXT "circle" > END > TEMPLATE "dummy.html" > CLASS > NAME germany > COLOR 0 0 255 > OUTLINECOLOR 0 0 0 > LABEL > TYPE bitmap > SIZE small > END > END > END > END > From schuyler at NOCAT.NET Fri Mar 11 03:55:40 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Fri, 11 Mar 2005 03:55:40 -0800 Subject: Compiling in PHP MapScript causes segfault in mapfile.c Message-ID: Hi, folks. I have a somewhat bewildering bug. If I compile the PHP MapScript extension in Fedora Core 3, mapfile.c fails with a segfault at line 4173, while attempting to assign to msyyin. Since msyyin is a extern FILE *, is it possible that compiling against the PHP source tree somehow confuses the linker about the location of msyyin? I've tried compiling --with-php-regex-dir set to either $php_source_tree/build-cgi/regex and $php_source_tree/build-apache/regex/.libs with the same result. Compiling without PHP MapScript eliminates the segfault. Any thoughts? SDE From mapserver at GEOWORLD.DE Fri Mar 11 04:27:05 2005 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Fri, 11 Mar 2005 13:27:05 +0100 Subject: layer type circle In-Reply-To: <9064.212.238.227.182.1110540943.squirrel@212.238.227.182> Message-ID: Hi Bart, i changed the feature section and the extents to pixel coordinates to see if it works at all. The result is the same. One single 1x1 pixel. So there must be something else wrong. Nicol Am Freitag, den 11.03.2005, 12:35 +0100 schrieb Bart van den Eijnden: > Hi Nicol, > > AFAIK inline features are in pixel coordinates, not in world coordinates. > > I don't know how to create a buffer in real world coordinates with > Mapserver though, so that doesn't help you ... > > Best regards, > Bart > > > Hi List, > > > > i would like to use the layer type 'circle'. Attached you find the > > mapfile i use. I expect to get a circle whose diameter is determined by > > the two vertices of my line (bounding box for the circle). > > What i get is as single point (1x1 pixel) in the center of the two > > points. > > Do i have a wrong understanding of the layer type, do i miss something > > or is this a bug? > > > > Many thanks for your help > > Nicol > > > > > > > > MAP > > NAME Germany > > EXTENT 5.86628568 47.27360151 15.0486318 55.05826185 > > SIZE 300 300 > > UNITS DD > > WEB > > IMAGEURL "/~nicol/mapserver/phpmapserver/tmp/" > > IMAGEPATH "/home/nicol/public_html/mapserver/phpmapserver/tmp/" > > END > > LAYER > > NAME "buffer" > > STATUS DEFAULT > > TYPE circle > > #TYPE line > > FEATURE > > POINTS > > 8.2588482 48.87774279 > > 8.2588482 49.1577759 > > END > > TEXT "circle" > > END > > TEMPLATE "dummy.html" > > CLASS > > NAME germany > > COLOR 0 0 255 > > OUTLINECOLOR 0 0 0 > > LABEL > > TYPE bitmap > > SIZE small > > END > > END > > END > > END > > > > From eric at GOMOOS.ORG Fri Mar 11 06:27:18 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Fri, 11 Mar 2005 09:27:18 -0500 Subject: LabelAngleItem question In-Reply-To: <4231551A.3000305@cerene.fr> Message-ID: On Fri, 2005-03-11 at 03:21, St?phane RIFF wrote: > Can someone show me an example because > i don't know how to do it. > I can create dynamic layer but the problem > is how to set orientation for each points, i don't think > a class for each orientation is a good solution > but i don't see anything else. > You are not providing enough details about what you are trying to do. Where are your points? Shapefile, PostGIS, etc. Are you using CGI Mapserver or Mapscript? If I understand correctly the only issue is that your angles need to be mulitplied by -1. The easiest way is to create a new column in your datasource which is negative of you existing angles. And use the new column as your LABELANGLEITEM. From stephane.riff at CERENE.FR Fri Mar 11 06:46:04 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-15?Q?St=E9phane_RIFF?=) Date: Fri, 11 Mar 2005 15:46:04 +0100 Subject: LabelAngleItem question In-Reply-To: <1110551244.1762.8.camel@ubet.gomoos.org> Message-ID: I want to show gps positions with orientation path. I use mapscript 4.2.5 and postgis as datasource. I don't think i can modify the datasource field because another application use the same data and i don't have access to those source... Thanks Eric Bridger wrote: >On Fri, 2005-03-11 at 03:21, St?phane RIFF wrote: > > >>Can someone show me an example because >>i don't know how to do it. >>I can create dynamic layer but the problem >>is how to set orientation for each points, i don't think >>a class for each orientation is a good solution >>but i don't see anything else. >> >> >> > >You are not providing enough details about what you are trying to do. > >Where are your points? Shapefile, PostGIS, etc. >Are you using CGI Mapserver or Mapscript? > >If I understand correctly the only issue is that your angles need to be >mulitplied by -1. The easiest way is to create a new column in your >datasource which is negative of you existing angles. And use the new >column as your LABELANGLEITEM. > > > > > > > From woodbri at SWOODBRIDGE.COM Fri Mar 11 07:16:24 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 11 Mar 2005 10:16:24 -0500 Subject: LabelAngleItem question In-Reply-To: <4231AF2C.5060807@cerene.fr> Message-ID: Seems like you should be able to add another column without impacting the other applications or create a view with this new column, then add something like a trigger or stored procedure the updates your new column anytime the angle field is modified. This would make it all automagic and the application writing the records would not need to know about the extra column. I don't know all the details on how to do this or if it is even possible, so I'll defer to the postgresql experts at this point :) -Steve St?phane RIFF wrote: > I want to show gps positions with orientation path. > I use mapscript 4.2.5 and postgis as datasource. > I don't think i can modify the datasource field because > another application use the same data and i don't have access to those > source... > Thanks > > Eric Bridger wrote: > >> On Fri, 2005-03-11 at 03:21, St?phane RIFF wrote: >> >> >>> Can someone show me an example because >>> i don't know how to do it. >>> I can create dynamic layer but the problem >>> is how to set orientation for each points, i don't think >>> a class for each orientation is a good solution >>> but i don't see anything else. >>> >>> >>> >> >> You are not providing enough details about what you are trying to do. >> >> Where are your points? Shapefile, PostGIS, etc. >> Are you using CGI Mapserver or Mapscript? >> >> If I understand correctly the only issue is that your angles need to be >> mulitplied by -1. The easiest way is to create a new column in your >> datasource which is negative of you existing angles. And use the new >> column as your LABELANGLEITEM. >> >> >> >> >> >> >> > From cdaily at GMAIL.COM Fri Mar 11 07:29:50 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Fri, 11 Mar 2005 09:29:50 -0600 Subject: size of POINT in shp file In-Reply-To: <20050311055340.8747.qmail@web53408.mail.yahoo.com> Message-ID: You'll want to look into using STYLE and SYMBOL definitions in your map file. Here's an example of a layer with red circles for points that are 3 pixels large. LAYER NAME "points" TYPE POINT STATUS DEFAULT DATA "points" CLASS STYLE SYMBOL 'circle' COLOR 255 0 0 SIZE 3 END END END SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END From e.otuama at UCC.IE Fri Mar 11 07:33:44 2005 From: e.otuama at UCC.IE (Eamonn O Tuama) Date: Fri, 11 Mar 2005 09:33:44 -0600 Subject: WMS TIME Client Support Message-ID: Hi There, I'm using MapServer 4.4.1 both as a WMS server and client. The client uses the mapserv.js / DHTML library. I'm trying to set up the client so that the user can submit WMS time values to appropriately configured layers. This works perfectly if I submit a GetMap request by typing it into the browser address bar, but I cannot figure out a way of passing the WMS TIME parameter to the server via a form in the client. I tried using the mapserv 'options' attribute (e.g. ms.options = '&TIME=2005-02-01'), and also a hidden variable, but while these parameters are being passed in the GET request (as evidenced from the Apache access.log file - see the request from the client 'xxx.xxx.xxx.69' below), there does not seem to be way of getting the server to use it when it makes the GetMap request (see request from the server 'xxx.xxx.xxx.70' below). The other possibility - changing a map file parameter via an URL - does not work either. Any pointers on how to do this much appreciated. Eamonn -------------------------------------------------------------------------------------- The following are extracted from the apache access.log - IP address numbers replaced by 'xxx'. Request from client to MapServer xxx.xxx.xxx.69 - - [11/Mar/2005:14:33:05 +0000] "GET /cgi-bin/mapserv?mode=map& map=/home/dispro/profiles/0.029876081186345105.map& mapext=61606.75358931553+29577.50808080245+105516.11452420702+60878.50494090039& mapsize=600+428& layers=habitats& TIME=2005-02-01 HTTP/1.1" 200 4044 "http://localhost/dispro/profiles/0.029876081186345105.html? zoomsize=2& map=%2Fhome%2Fdispro%2Fprofiles%2F0.029876081186345105.map& program=%2Fcgi-bin%2Fmapserv&root=%2Fdispro%2F& map_web_imagepath=%2Fhome%2Fmstmp%2F& map_web_imageurl=%2Fmstmp%2F& map_web_template=0.029876081186345105.html" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0" GetMap request from server xxx.xxx.xxx.70 - - [11/Mar/2005:14:33:05 +0000] "GET /cgi-bin/mapserv?map=/home/dismar/dispro-wms.map&& LAYERS=habitats& REQUEST=GetMap& SERVICE=WMS& FORMAT=image%2Fpng& STYLES=& HEIGHT=428& QUERY_LAYERS=habitats& VERSION=1.1.1& SRS=EPSG:29900& WIDTH=600& BBOX=61606%2E753589315529%2C29567%2E001110740122%2C105516%2E11452420702%2C60889%2E011910962719& TRANSPARENT=TRUE& EXCEPTIONS=application/vnd.ogc.se_inimage HTTP/1.1" 200 4647 "-" "-" From woklist at CHARTER.NET Fri Mar 11 08:24:57 2005 From: woklist at CHARTER.NET (William K) Date: Fri, 11 Mar 2005 10:24:57 -0600 Subject: label in symbol? In-Reply-To: Message-ID: Ah, I had looked at that once long ago to get me started and haven't touched it since. Then for this I was looking on the documentation page of the website for ideas from examples and tutorials and missed the demo. Looks very simple, just not obvious from the MAP file documentation. thanks On Mar 10, 2005, at 6:07 PM, blaise wrote: >> Is there a way to draw labels inside a symbol, such as a highway >> number >> in a shield? I'm open to programatic php methods (I could probably >> figure that out), but would prefer something automatic or built into >> MS >> (that's not obvious, since I don't see anything in the docs, tho there >> is an unanswered question in the wiki). > > Have you looked at the Itasca demo (that you can download at mapserver > website) ? It seems that it's doing that pretty well with three > different > road symbol. > Blaise > > ----- William Kyngesburye http://webpages.charter.net/kyngchaos/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From lisi at MYDELRAYBEACH.COM Fri Mar 11 08:27:43 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Fri, 11 Mar 2005 11:27:43 -0500 Subject: MapServer 4.4.1 Demo Message-ID: In the MapServer Itasca Application, I Initialize the Basic Application and then I see a map. I can see the airports, cities and lakes with the Refresh button, but when I select the "Query Feature" bullet and hit the Refresh/Query button I get this error: msQueryByPoint(): Search returned no results. No matching record(s) found. Is this normal behavior in the Demo? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Fri Mar 11 08:33:50 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 11 Mar 2005 09:33:50 -0700 Subject: MapServer 4.4.1 Demo Message-ID: Pretty much. It's expecting the user to click on a lake feature in the map graphic. ----- Original Message ----- From: Lisi, Christine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, March 11, 2005 9:27 AM Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo In the MapServer Itasca Application, I Initialize the Basic Application and then I see a map. I can see the airports, cities and lakes with the Refresh button, but when I select the "Query Feature" bullet and hit the Refresh/Query button I get this error: msQueryByPoint(): Search returned no results. No matching record(s) found. Is this normal behavior in the Demo? Christine Lisi Application Specialist Management Information Systems . City of Delray Beach . 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 . Fax, 561-243-7166 . eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lisi at MYDELRAYBEACH.COM Fri Mar 11 08:35:15 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Fri, 11 Mar 2005 11:35:15 -0500 Subject: MapServer 4.4.1 Demo Message-ID: Oh, I see. Got it. Thanks, Brent! Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com ________________________________ From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Friday, March 11, 2005 11:34 AM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Pretty much. It's expecting the user to click on a lake feature in the map graphic. ----- Original Message ----- From: Lisi, Christine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, March 11, 2005 9:27 AM Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo In the MapServer Itasca Application, I Initialize the Basic Application and then I see a map. I can see the airports, cities and lakes with the Refresh button, but when I select the "Query Feature" bullet and hit the Refresh/Query button I get this error: msQueryByPoint(): Search returned no results. No matching record(s) found. Is this normal behavior in the Demo? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.fortin at EC.GC.CA Fri Mar 11 08:35:39 2005 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Fri, 11 Mar 2005 11:35:39 -0500 Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Message-ID: Hi Christine, I think you have to click on the map to get a result for a query. The coordinate of the click is then use to query each layer. Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] De la part de Lisi, Christine Envoy? : Friday, March 11, 2005 11:28 AM ? : MAPSERVER-USERS at lists.umn.edu Objet : [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo In the MapServer Itasca Application, I Initialize the Basic Application and then I see a map. I can see the airports, cities and lakes with the Refresh button, but when I select the "Query Feature" bullet and hit the Refresh/Query button I get this error: msQueryByPoint(): Search returned no results. No matching record(s) found. Is this normal behavior in the Demo? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com From lisi at MYDELRAYBEACH.COM Fri Mar 11 08:37:18 2005 From: lisi at MYDELRAYBEACH.COM (Lisi, Christine) Date: Fri, 11 Mar 2005 11:37:18 -0500 Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Message-ID: Thank you, Nicholas. I see now. Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com -----Original Message----- From: Fortin,Nicolas [SteFoy] [mailto:nicolas.fortin at ec.gc.ca] Sent: Friday, March 11, 2005 11:36 AM To: Lisi, Christine; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE : [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo Hi Christine, I think you have to click on the map to get a result for a query. The coordinate of the click is then use to query each layer. Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] De la part de Lisi, Christine Envoy? : Friday, March 11, 2005 11:28 AM ? : MAPSERVER-USERS at lists.umn.edu Objet : [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo In the MapServer Itasca Application, I Initialize the Basic Application and then I see a map. I can see the airports, cities and lakes with the Refresh button, but when I select the "Query Feature" bullet and hit the Refresh/Query button I get this error: msQueryByPoint(): Search returned no results. No matching record(s) found. Is this normal behavior in the Demo? Christine Lisi Application Specialist Management Information Systems * City of Delray Beach * 100 NW First Avenue, Delray Beach, FL 33444 Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com From bpicinbono at WORLDONLINE.FR Fri Mar 11 08:43:33 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Fri, 11 Mar 2005 17:43:33 +0100 Subject: Controlling mapsize in CGI In-Reply-To: Message-ID: Le vendredi 11 Mars 2005 07:10, Richard A. Milewski a ?crit?: > Jacob, > Thank you for the help! I tried your code, and it generates the message: > getInteger(): Symbol definition error. Parsing error near (+):(line 266) > The template (.html) file is only 103 lines long, but line 266 is the last > line of the .map file. > Any suggestions? It sounds like an error in your map file, can you post it ? blaise From nunoragil at GMAIL.COM Fri Mar 11 09:09:07 2005 From: nunoragil at GMAIL.COM (Nuno GIL) Date: Fri, 11 Mar 2005 17:09:07 +0000 Subject: Problems with mime type in WMS capabilities request Message-ID: Dear Listers, When I request a getcapabilites from our server (http://iceds.ge.ucl.ac.uk/cgi-bin/wms?map=wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities), the capabilities file type that is returned is not recognized as XML and not displayed immediately on the browser... To go around this I simply rename the file adding an XML extension to it. This may have to do with a wrong mimetype configuration... Any ideas how to sort this out? Regards, Nuno From woklist at CHARTER.NET Fri Mar 11 09:10:05 2005 From: woklist at CHARTER.NET (William K) Date: Fri, 11 Mar 2005 11:10:05 -0600 Subject: label in symbol? In-Reply-To: Message-ID: I gave that a try. It works, mostly. I have to use the CC label position, or it will not be centered on the symbol, or the symbol may be drawn but the labelcache will cause the label to not be drawn. So, works but kinda restricted (no auto placement). At least for points and polygons. CC position is probably OK for lines. On Mar 10, 2005, at 6:07 PM, blaise wrote: >> Is there a way to draw labels inside a symbol, such as a highway >> number >> in a shield? I'm open to programatic php methods (I could probably >> figure that out), but would prefer something automatic or built into >> MS >> (that's not obvious, since I don't see anything in the docs, tho there >> is an unanswered question in the wiki). > > Have you looked at the Itasca demo (that you can download at mapserver > website) ? It seems that it's doing that pretty well with three > different > road symbol. > Blaise > > ----- William Kyngesburye http://webpages.charter.net/kyngchaos/ "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence.... - the wisdom of Tarzan From bartvde at XS4ALL.NL Fri Mar 11 09:14:35 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 11 Mar 2005 18:14:35 +0100 Subject: Problems with mime type in WMS capabilities request In-Reply-To: Message-ID: Hi Nuno, this was something introduced by OGC in WMS spec 1.1, they invented their own mime types, but ofcourse no single browser interprets things like: application/vnd.ogc.se_xml. In WMS 1.3 they have changed the MIME type for capabilities back to text/xml AFAIK. Best regards, Bart > Dear Listers, > When I request a getcapabilites from our server > (http://iceds.ge.ucl.ac.uk/cgi-bin/wms?map=wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities), > the capabilities file type that is returned is not recognized as XML > and not displayed immediately on the browser... To go around this I > simply rename the file adding an XML extension to it. This may have to > do with a wrong mimetype configuration... > Any ideas how to sort this out? > Regards, > Nuno > From ram at RAMPAGE.NET Fri Mar 11 09:26:41 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Fri, 11 Mar 2005 11:26:41 -0600 Subject: Controlling mapsize in CGI Message-ID: Blaise, I can't see how it could be a mapfile problem. The map works find without the Javascript to stuff the size drop-down. But then, I'm a Mapserver neophyte so there's probably something critical I'm missing. Thank you for helping! Here's the mapfile: # Start of Mapfile (GeoReg.map) MAP NAME GeoReg STATUS ON SIZE 1200 600 EXTENT -14255599.173549 511074.380180 -7644028.925639 7122644.628090 # EXTENT -122 36 -120 38 IMAGETYPE gif SHAPEPATH "../../gisdata" IMAGECOLOR 30 28 125 # Map projection definition PROJECTION "proj=merc" "ellps=WGS84" # "init=epsg:4326" END # Map interface definition WEB LOG "/var/www/WebRoots/WxServer/html/mapserver/logs/mapserver.log" TEMPLATE "GeoRegTemplate.html" IMAGEPATH "/var/www/WebRoots/WxServer/html/mapserver/tmp/" IMAGEURL "/mapserver/tmp/" END # Our states shapefile LAYER TYPE POLYGON STATUS ON NAME bkgnd0 DATA "NorthAmerica/USA/Lower48" PROJECTION "init=epsg:4326" END CLASS OUTLINECOLOR 0 0 0 COLOR 200 200 200 END END # The Shaded Land Mass - High Resolution LAYER TYPE RASTER STATUS OFF NAME bkgnd1 DATA "NorthAmerica/USA/Raster/48USAcolshade.jpg" PROJECTION "init=epsg:4326" END END # The Shaded Land Mass - Desaturated, Low Resolution LAYER TYPE RASTER STATUS OFF NAME bkgnd2 DATA "NorthAmerica/USA/Raster/48USAcolshadeLowRes.jpg" PROJECTION "init=epsg:4326" END END # Our Test Image LAYER TYPE RASTER STATUS ON NAME TestImage DATA "Test/TestImage.gif" PROJECTION "proj=merc" "ellps=WGS84" # "init=epsg:4326" END END # Oh Canada! LAYER TYPE Polygon STATUS ON NAME province DATA "NorthAmerica/Canada/province" PROJECTION "init=epsg:42304" END CLASS COLOR 220 220 220 OUTLINECOLOR 0 0 100 END END # of Layer # Mexico LAYER TYPE POLYGON STATUS ON NAME Mexico DATA "NorthAmerica/Mexico/Mexico" PROJECTION "init=epsg:4326" END CLASS COLOR 220 220 220 OUTLINECOLOR 0 0 100 END END # of Layer # Caribbean LAYER TYPE POLYGON STATUS ON NAME Caribbean DATA "NorthAmerica/Caribbean/Caribbean" PROJECTION "init=epsg:4326" END CLASS COLOR 220 220 220 OUTLINECOLOR 0 0 100 END END # of Layer # Our Geo-referenced RADAR layer LAYER TYPE RASTER STATUS ON NAME radar DATA "Radar/radar_0.png" PROJECTION "init=epsg:4326" END OFFSITE 0 0 0 END # NOAA METAR Overlay LAYER TYPE RASTER STATUS ON NAME FLTC DATA "NOAA/FLTC.gif" PROJECTION "proj=merc" "ellps=WGS84" END END # NOAA RCM Overlay LAYER TYPE RASTER STATUS ON NAME RCM DATA "NOAA/radar.gif" PROJECTION "proj=merc" "ellps=WGS84" END END # NOAA Wind05 Overlay LAYER TYPE RASTER STATUS ON NAME Wind05 DATA "NOAA/Wind05.gif" PROJECTION "proj=merc" "ellps=WGS84" END END # NOAA Wind10 Overlay LAYER TYPE RASTER STATUS ON NAME Wind10 DATA "NOAA/Wind10.gif" PROJECTION "proj=merc" "ellps=WGS84" END END # NOAA Wind14 Overlay LAYER TYPE RASTER STATUS ON NAME Wind14 DATA "NOAA/Wind14.gif" PROJECTION "proj=merc" "ellps=WGS84" END END # NOAA Wind18 Overlay LAYER TYPE RASTER STATUS ON NAME Wind18 DATA "NOAA/Wind18.gif" PROJECTION "proj=merc" "ellps=WGS84" END END # NOAA Wind24 Overlay LAYER TYPE RASTER STATUS ON NAME Wind24 DATA "NOAA/Wind24.gif" PROJECTION "proj=merc" "ellps=WGS84" END END # NOAA Wind30 Overlay LAYER TYPE RASTER STATUS ON NAME Wind30 DATA "NOAA/Wind30.gif" PROJECTION "proj=merc" "ellps=WGS84" END END # Our states shapefile (for state lines on raster images and over big storms) LAYER TYPE Line STATUS ON NAME states DATA "NorthAmerica/USA/Lower48" PROJECTION "init=epsg:4326" END CLASS OUTLINECOLOR 0 0 100 END END # of Layer END # End of mapfile From solo6259 at YAHOO.COM Fri Mar 11 09:27:50 2005 From: solo6259 at YAHOO.COM (Solomon) Date: Fri, 11 Mar 2005 11:27:50 -0600 Subject: Path Graph representation in memory Message-ID: hi guys. i've a problem on ho to represent graphs in memory. i want to perform pathfinding so that i can get the shortest distance between two points on a map considering distance and traffic. my data is in an oracle db,so i want to extract it, represent it in a graph memory in memory and then employ A* algorithm to do pathfinding. extracting is no big deal, but i don't know what data structures to use to represent the graph in memory so that i can be able to associate adjacent nodes and incident paths. The A* algorithm will be getting data from this structure then using its open and closed lists to perform its function. i want to use C++ or php. hope someone out there has done this and can assist me. regards solomon From bpicinbono at WORLDONLINE.FR Fri Mar 11 09:51:12 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Fri, 11 Mar 2005 18:51:12 +0100 Subject: label in symbol? In-Reply-To: <24daf910ec82c58b60e88d46114c326b@charter.net> Message-ID: Le vendredi 11 Mars 2005 18:10, William K a ?crit?: > I gave that a try. It works, mostly. I have to use the CC label > position, or it will not be centered on the symbol, or the symbol may > be drawn but the labelcache will cause the label to not be drawn. No way to force it with mapscript ? > So, works but kinda restricted (no auto placement). At least for > points and polygons. CC position is probably OK for lines. Very nice ! Same as you, I was well surprised when I saw this possibility, but then, I don't remember why, I could not play with it as I wanted. Now, when I want fine tuning labels, I use one or several design layers in mapscript (annotation, symbol, ... ). But this means more code and synchro. It would be better to have mapserver cope with it alone. Maybe by creating symbols on the fly ? Blaise From nunoragil at GMAIL.COM Fri Mar 11 10:06:01 2005 From: nunoragil at GMAIL.COM (Nuno GIL) Date: Fri, 11 Mar 2005 18:06:01 +0000 Subject: Problems with mime type in WMS capabilities request In-Reply-To: <4964.212.238.227.182.1110561275.squirrel@212.238.227.182> Message-ID: Hi, But is there any way of controlling the capabilities output mime type in MapServer? If I test other services, also WMS 1.1 compliant, their capabilities document is automatically show on the browser... Thanks in advance, Nuno On Fri, 11 Mar 2005 18:14:35 +0100 (CET), bartvde at xs4all.nl wrote: > Hi Nuno, > > this was something introduced by OGC in WMS spec 1.1, they invented their > own mime types, but ofcourse no single browser interprets things like: > application/vnd.ogc.se_xml. > > In WMS 1.3 they have changed the MIME type for capabilities back to > text/xml AFAIK. > > Best regards, > Bart > > > Dear Listers, > > When I request a getcapabilites from our server > > (http://iceds.ge.ucl.ac.uk/cgi-bin/wms?map=wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities), > > the capabilities file type that is returned is not recognized as XML > > and not displayed immediately on the browser... To go around this I > > simply rename the file adding an XML extension to it. This may have to > > do with a wrong mimetype configuration... > > Any ideas how to sort this out? > > Regards, > > Nuno > > > > From jclabaugh at MAC.COM Fri Mar 11 10:07:12 2005 From: jclabaugh at MAC.COM (Jerod Clabaugh) Date: Fri, 11 Mar 2005 12:07:12 -0600 Subject: MapScript queryByPoint index error Message-ID: All: I am in the process of using PHP/MapScript to build a dynamic point layer that I can query. When I query the point layer, the result (using an echo) shows me $result ->shapeindex=-1 The code to query the layer and to build this layer are detailed below. I have built a rectangular query, which works with the same dynamic layer, but I am having trouble with the point layer. Any advice on why I am getting the wrong indexes in the results of queryByPoint on the dynamic layer? Thanks in advance, Jerod Clabaugh TransNatura, LLC ##### # Code to query layer and display results ##### =-=-=-=-=-=-= if( MS_SUCCESS != @$layer->queryByPoint( $my_point, MS_MULTIPLE, -1 ) ){ continue; } $lname = $layer->name; $result_count = $layer->getNumResults(); if( $result_count ){ $layer->open(); for( $i = 0; $i < $result_count; $i++ ){ $result = $layer->getResult( $i ); if( $result && $result->shapeindex > -1 ){ $shape = $layer->getShape( -1, $result->shapeindex ); echo "shpInd:". $result->shapeindex ."
"; if( count( $shape->values ) ){ $query_results[ $lname ][ $i ] = $shape->values; } } } $layer->close(); } ###### ##### #Code to build the dynamic layer: ##### foreach( $points as $row ){ $pt = $row["point"]; $g = $row["genus"]; $classname = $g ." ". $row["species"] .( $row["subspecies"] ? " ". $row["subspecies"] : "" ) .( $row["var"] ? " var. ". $row["var"] : "" ); if( !in_array( $classname, $legended_species ) ){ array_push( $legended_species, $classname ); $dummy_class = $species_layer_dummy_classes[ $species_layer_dummy_class_index ]; $classObj = ms_newClassObj( $layer, $dummy_class ); $classObj->set( "status", MS_ON ); $classObj->set( "name", $classname ); ++$species_layer_dummy_class_index; } $line = ms_newLineObj(); $line->add( $pt ); $shp = ms_newShapeObj( MS_SHAPE_POINT ); $shp->add( $line ); $shp->index = $point_number; //$shp->set("tileindex", $point_number ); //$shp->index = $point_number; $classname2index = array_flip( $legended_species ); $shp->set( "classindex", $classname2index[ $classname ] ); /*$rect = ms_newRectObj(); $rect->minx = $pt.x - 150; $rect->miny = $pt.y - 150; $rect->maxx = $pt.x + 150; $rect->maxy = $pt.y + 150; $shp->rectObj = $rect;*/ $layer->addFeature( $shp ); //draw(mapObj map, layerObj layer, imageObj img, int class_index, string text) //$pt->draw( $map, $layer, $img, $genus2index[ $g ], "TEST" ); $pt->draw( $map, $layer, $img, $classname2index[ $classname ], "TEST" ); //$pt->draw( $map, $layer, $img, $point_number, "TEST" ); ++$point_number; } ###### From jhusveth at CCESINC.COM Fri Mar 11 10:16:57 2005 From: jhusveth at CCESINC.COM (Jason Husveth) Date: Fri, 11 Mar 2005 12:16:57 -0600 Subject: Mapserver Newby requests help In-Reply-To: <4231B648.5050005@swoodbridge.com> Message-ID: Hi all: I am new to the list and new to mapserver. I am just getting started and was wondering of there is anyone willing to help me get started using mapserver. I am well versed with GIS (taught myself to program and develop applications with Avenue in ArcView, as well as ArcInfo, ArcMap, etc.), but need some help getting started with constructing spatially enabled internet-web applications using mapserver. I am the type of person that if someone can explain the basic concepts to me, I can take it from there (with a nudge here and there). I spent a several hours this week reading the available documentation re: Mapserver, and I still need some guidance on how to get set up. If this is beyond the scope of the list serve, I appologize in advance. I'll get to where I want to be one way or another, but I would sure appreciate any help that I can get. Best regards, Jason Jason J. Husveth, M.S. Principal Ecologist Critical Connections Ecological Services, Inc. 14758 Ostlund Trail North Marine on Saint Croix, Minnesota 55047 Office: 651.433.4410 Fax: 651.433.4528 Cell: 651.247.0474 Email: jhusveth at ccesinc.com web: www.ccesinc.com > From bartvde at XS4ALL.NL Fri Mar 11 10:27:33 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 11 Mar 2005 19:27:33 +0100 Subject: Problems with mime type in WMS capabilities request In-Reply-To: Message-ID: Hi, there is no way to control it since it required by the OGC specification (at least WMS 1.1.X), except for changing the source code and recompile. Or use &version=1.0.7 instead. Those other services are not fully OGC complaint, since the spec states you have to use application/vnd.ogc.wms_xml for a GetCapabilities response. See also: http://cite.occamlab.com/test_engine/wms_1_1_1/files/wms_assertions/ testcase: "ms/wmsops/getcapabilities/response/1" When a GetCapabilities request is made, then the content-type header of the response is application/vnd.ogc.wms_xml Best regards, Bart On Fri, 11 Mar 2005 18:06:01 +0000, Nuno GIL wrote: > Hi, > But is there any way of controlling the capabilities output mime type > in MapServer? > If I test other services, also WMS 1.1 compliant, their capabilities > document is automatically show on the browser... > Thanks in advance, > Nuno > > > On Fri, 11 Mar 2005 18:14:35 +0100 (CET), bartvde at xs4all.nl > wrote: >> Hi Nuno, >> >> this was something introduced by OGC in WMS spec 1.1, they invented >> their >> own mime types, but ofcourse no single browser interprets things like: >> application/vnd.ogc.se_xml. >> >> In WMS 1.3 they have changed the MIME type for capabilities back to >> text/xml AFAIK. >> >> Best regards, >> Bart >> >> > Dear Listers, >> > When I request a getcapabilites from our server >> > >> (http://iceds.ge.ucl.ac.uk/cgi-bin/wms?map=wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities), >> > the capabilities file type that is returned is not recognized as XML >> > and not displayed immediately on the browser... To go around this I >> > simply rename the file adding an XML extension to it. This may have to >> > do with a wrong mimetype configuration... >> > Any ideas how to sort this out? >> > Regards, >> > Nuno >> > >> >> > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From osgis.lists at GMAIL.COM Fri Mar 11 10:57:38 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 11 Mar 2005 12:57:38 -0600 Subject: Mapserver Newby requests help In-Reply-To: Message-ID: Perhaps the best way to get started is to try to get Mapserver up and running. If you work in a windows environment, the MS4W suite is a good place to get started. It includes the Apache Web Server and Mapserver in executables that can be used without even being installed. From there, I would take a look at the Itasca demos to see how basic Mapserver CGI code works. Since you are in the Twin Cities area, the Twin Cities Mapserver Users Group (TCMUG -- subscribe to that list at http://lists.umn.edu/archives/tcmug.html) is tentativley planning a Mapserver Install Fest either the end of this month or sometime next month where some more advanced Mapserver Users could help you get Mapserver installed and show you some of the basics one on one. Also, there will be some good workshops at the Users Meeting in June (http://mapserver.gis.umn.edu/mum/mtg2005.html) for learning Mapserver and other Open Source GIS software. On Fri, 11 Mar 2005 12:16:57 -0600, Jason Husveth wrote: > Hi all: > > I am new to the list and new to mapserver. I am just getting started and > was wondering of there is anyone willing to help me get started using > mapserver. I am well versed with GIS (taught myself to program and develop > applications with Avenue in ArcView, as well as ArcInfo, ArcMap, etc.), but > need some help getting started with constructing spatially enabled > internet-web applications using mapserver. I am the type of person that if > someone can explain the basic concepts to me, I can take it from there (with > a nudge here and there). I spent a several hours this week reading the > available documentation re: Mapserver, and I still need some guidance on how > to get set up. If this is beyond the scope of the list serve, I appologize > in advance. > > I'll get to where I want to be one way or another, but I would sure > appreciate any help that I can get. > > Best regards, > > Jason > > Jason J. Husveth, M.S. > Principal Ecologist > Critical Connections Ecological Services, Inc. > 14758 Ostlund Trail North > Marine on Saint Croix, Minnesota 55047 > > Office: 651.433.4410 > Fax: 651.433.4528 > Cell: 651.247.0474 > > Email: jhusveth at ccesinc.com > web: www.ccesinc.com > > > > From wokar1 at YAHOO.COM Fri Mar 11 12:01:39 2005 From: wokar1 at YAHOO.COM (w m) Date: Fri, 11 Mar 2005 12:01:39 -0800 Subject: size of POINT in shp file In-Reply-To: 6667 Message-ID: For these symbols to appear, do we have to include a specific symbol and font library?? If so is it part of mapserver installation? Camden Daily wrote: You'll want to look into using STYLE and SYMBOL definitions in your map file. Here's an example of a layer with red circles for points that are 3 pixels large. LAYER NAME "points" TYPE POINT STATUS DEFAULT DATA "points" CLASS STYLE SYMBOL 'circle' COLOR 255 0 0 SIZE 3 END END END SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at GOMOOS.ORG Fri Mar 11 12:27:56 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Fri, 11 Mar 2005 15:27:56 -0500 Subject: size of POINT in shp file In-Reply-To: <20050311200139.71231.qmail@web53409.mail.yahoo.com> Message-ID: On Fri, 2005-03-11 at 15:01, w m wrote: > For these symbols to appear, do we have to include a specific symbol and font library?? If so is it part of mapserver installation? > > > Camden Daily wrote: > You'll want to look into using STYLE and SYMBOL definitions in your map file. > > Here's an example of a layer with red circles for points that are 3 > pixels large. > > LAYER > NAME "points" > TYPE POINT > STATUS DEFAULT > DATA "points" > CLASS > STYLE > SYMBOL 'circle' > COLOR 255 0 0 > SIZE 3 > END > END > END > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > END This 'circle' SYMBOL is defined right in the map file. Look for symbols.sym in your Mapserver installation and read about symbols here: http://mapserver.gis.umn.edu/doc44/mapfile-reference.html From steve.lime at DNR.STATE.MN.US Fri Mar 11 14:11:53 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 11 Mar 2005 16:11:53 -0600 Subject: Controlling mapsize in CGI Message-ID: You don't want to escape the space in a select list like this. Turn the + into whitespace and it should work fine. Otherwise the browser escapes the + and MapServer actually see's it which causes the parsing error. Steve >>> Jacob Delfos 3/10/2005 11:44:54 PM >>> Richard, Try putting something like this inside your form: Then have a bit of javascript like this: Make sure the body has something like: I have not really tested this code, but it should work. It basically puts in a dropdown selector for the mapsize form variable. When the page is loaded, the javascript checks out the URL, searching for the value of the map_size. Make sure there are no other form variables with similar values, because it might pick those up too. It sets the dropdown box to the value it found in the URL. Let me know if you have any troubles. Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard A. Milewski Sent: 11 March 2005 13:29 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Controlling mapsize in CGI Stephen, Thank you for the speedy reply! I don't have any trouble setting the size in the querystring, that works reliably. The problem is in showing a checkbox or the default value in a drop-down box that shows the current setting. How do I handle the problem on the cgi/html side. Thanks! -- Richard From kyle at PBX.ORG Fri Mar 11 11:21:15 2005 From: kyle at PBX.ORG (Kyle Cronan) Date: Fri, 11 Mar 2005 14:21:15 -0500 Subject: labeling of polygons, PARTIALS and FORCE Message-ID: Hello, I've written some mapfiles that I use to generate tiles for a web mapping application. One of these maps is supposed to show tax lots (polygons) with a label giving the lot number at the center of each lot. Originally, I had maps that were created dynamically with mapscript, and I was using the "FORCE true" option to make sure that the label was always drawn at the center of the lot. Now that I pregenerate the tiles, I have to specify the "PARTIALS false" option, or else the labels get cut off at the edge. But the problem is that "FORCE true" seems to override "PARTIALS false". So I turned off "FORCE true", but this causes odd behavior at the boundaries between tiles: mapserver begins to consider label positions that are not in the center, causing many labels to actually appear on the boundary line between lots, and lots near the edges to be labelled excessively. Is it possible in mapfile syntax to say "FORCE true", except when the label would run off the edge, in which case just drop it? This would be very handy--otherwise I have to generate much larger tiles and then break them up with a separate program, which only partially alleviates the problem anyway. Your help is much appreciated, Kyle Cronan From toomas.aas at RAAD.TARTU.EE Fri Mar 11 14:27:26 2005 From: toomas.aas at RAAD.TARTU.EE (Toomas Aas) Date: Sat, 12 Mar 2005 00:27:26 +0200 Subject: rpms for RHES Message-ID: I didn't think I would ever ask such a lame question, but here I am. I've installed Mapserver on couple of FreeBSD and Linux servers successfully and I can generally find my way around the installation procedure. But now we are trying to give our Mapserver application to someone else so they can run it on their server, which is Red Hat Enterprise 3.0. I don't think I can get administrative access on that server to do the installation myself. The owners of the server seem to be somewhat overwhelmed by the installation procedure and have asked me to just give them rpms for all the dependencies and Mapserver itself. Since I don't have RHES, it's difficult for me to do. Would the rpms for Fedora Core 1 that are pointed to at the 'EasyInstallationWithRPMs' work on RHES? If not, has anyone ever built Mapserver rpms for RHES and is willing to share their experience? Thanks in advance, -- Toomas From brauplists at GMAIL.COM Fri Mar 11 14:41:31 2005 From: brauplists at GMAIL.COM (Bruce Raup) Date: Fri, 11 Mar 2005 15:41:31 -0700 Subject: puzzling error message: arString(): Unable to access file. adLabelString() Message-ID: Hi all, I've just installed mapserver on a new Linux computer (config details below). The build process went apparently flawlessly, and I copied the resulting "mapserv" to the cgi-bin directory. I built it for use with MapScript, but haven't finished installed those parts. I tried a simple test, but only get the error message: arString(): Unable to access file. adLabelString() which is the same message I get when I specifiy a nonexistent mapfile name. When I use the query-less URL "http://glims.colorado.edu/cgi-bin/mapserv", I get the (normal?) response No query information to decode. QUERY_STRING is set, but empty. The form of the first error message looks strange. Running "strings" on the mapserv executable, I see functions called "loadScalebarString" and "loadLabelString", but not the subsets of these as in the error message. Any ideas what could be wrong? TIA, Bruce Config details: $ ./mapserv -v MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE $ uname -a Linux glims 2.6.5-7.111.19-smp #1 SMP Fri Dec 10 15:10:58 UTC 2004 i686 i686 i386 GNU/Linux -- Bruce Raup http://cires.colorado.edu/~braup/ From ram at RAMPAGE.NET Fri Mar 11 22:30:22 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Sat, 12 Mar 2005 00:30:22 -0600 Subject: Controlling mapsize in CGI Message-ID: Steve, Thank you for the help. I'm a little confused though. In which lines of the JavaScript should I be using a space or a %20 and where should I use a + ?? It appears that something is escaping the whitespace to plus signs in the query string, so does that mean that the match line should be: if (urlstring.match("300+300") != null) or if (urlstring.match("300%20300") != null) I've tried both and nothing seems to set the default value of the drop-down box. The size of the map changes, but the drop-down box default is always the first element in the list. -- Richard From rodrigo.lists at FABRICADEIDEIAS.COM Sat Mar 12 07:16:48 2005 From: rodrigo.lists at FABRICADEIDEIAS.COM (Rodrigo Severo) Date: Sat, 12 Mar 2005 09:16:48 -0600 Subject: Newbie stucked - no maps at all. Message-ID: Hi, I have, apparently, installed mapserver and php/mapscript just fine but I can't make any of them to produce one single map. I've already tried php/mapscript, mapserver's demo and MSAutoTest. I might be facing the same problem all the time. I believe that MSAutoTest is the must straightforward so here is the results I get with it: ----------------------------------------------------------------- root at scott gdal # ./run_test.py version = MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE Processing: classtest1.map ERN: Unable to access file. as. (classtest1.map)
no result file generated, TEST FAILED. . . . Processing: class16_ndmap.map ERN: Unable to access file. as. (class16_ndmap.map)
no result file generated, TEST FAILED. Test done: 0 tested skipped 0 tests succeeded 39 tests failed 0 test results initialized ----------------------------------------------------------------- As a final act of despair I even chmoded my whole msautotest directory with "chmod 0777 ./msautotest -R" but my tests kept consistently failing with the same error messages. What I am doing wrong? I welcome any suggestions as I'm really clueless what else to try. Thanks in advance for your attention, Rodrigo Severo From logicalgenetics at GMAIL.COM Sat Mar 12 08:30:19 2005 From: logicalgenetics at GMAIL.COM (Dan Taylor) Date: Sat, 12 Mar 2005 16:30:19 +0000 Subject: Vector data smoothing and palettes Message-ID: Hi, I'm pretty new to mapserver, but I think I'm making reasonable progress. Have managed to get my head around the vmap0 and gtopo30 datasets to generate some good results. However, I am having problems displaying raster data nicely when zoomed in. Basically, the problem is with jagged edges. I've created about 20 classes in my map file with a range of different colours to display the gtopo30 data, but I still get very jagged edges - especially in mountainous areas like the Himalayas or the Rockies. Is there a more elegant way to display raster data than using a huge set of classes? Can anyone suggest good classes/colours/palette to use with gtop030? Is there some way of smoothing the height data to avoid jagged edges? Cheers, Dan -- Dan Taylor Software Development Engineer, JTL Systems Ltd PhD Student, Reading University, UK http://www.logicalgenetics.com From ed at TOPOZONE.COM Sat Mar 12 10:04:45 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 12 Mar 2005 13:04:45 -0500 Subject: Vector data smoothing and palettes Message-ID: Dan - Is this an issue of the resolution of the source dataset? Remember that GTOPO30 is roughly 1 kilometer per pixel, so a map produced at any larger scale than that will zoom in on the source image and produce multiple output pixels per input pixel. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dan Taylor Sent: Saturday, March 12, 2005 11:30 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Vector data smoothing and palettes Hi, I'm pretty new to mapserver, but I think I'm making reasonable progress. Have managed to get my head around the vmap0 and gtopo30 datasets to generate some good results. However, I am having problems displaying raster data nicely when zoomed in. Basically, the problem is with jagged edges. I've created about 20 classes in my map file with a range of different colours to display the gtopo30 data, but I still get very jagged edges - especially in mountainous areas like the Himalayas or the Rockies. Is there a more elegant way to display raster data than using a huge set of classes? Can anyone suggest good classes/colours/palette to use with gtop030? Is there some way of smoothing the height data to avoid jagged edges? Cheers, Dan -- Dan Taylor Software Development Engineer, JTL Systems Ltd PhD Student, Reading University, UK http://www.logicalgenetics.com From fwarmerdam at GMAIL.COM Sat Mar 12 10:06:47 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Sat, 12 Mar 2005 13:06:47 -0500 Subject: Vector data smoothing and palettes In-Reply-To: <830dd37405031208309478a1a@mail.gmail.com> Message-ID: On Sat, 12 Mar 2005 16:30:19 +0000, Dan Taylor wrote: > Hi, > > I'm pretty new to mapserver, but I think I'm making reasonable > progress. Have managed to get my head around the vmap0 and gtopo30 > datasets to generate some good results. However, I am having problems > displaying raster data nicely when zoomed in. > > Basically, the problem is with jagged edges. I've created about 20 > classes in my map file with a range of different colours to display > the gtopo30 data, but I still get very jagged edges - especially in > mountainous areas like the Himalayas or the Rockies. Dan, I'm not exactly clear what you mean by jagged edges. The GTOPO30 data is inherently fairly low res, so in areas of high relief such as mountains it will tend to look pretty crappy when zoomed in fairly close. Are you hoping for some sort of interpolation of the elevation data when zoomed in past the natural resolution of the elevation data? I'm afraid that MapServer does not support any sort of interpolation of raster data. You could preprocess the GTOPO data to higher resolution using some external tool, though this will increase the amount of disk space and not add any *real* information. The gdalwarp utility can be used to resample raster data with a bilinear or cubic convolution resampling kernel. > Is there a more elegant way to display raster data than using a huge > set of classes? No, unfortunately not. This is definately something I would like to add. 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 ram at RAMPAGE.NET Sat Mar 12 15:02:56 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Sat, 12 Mar 2005 17:02:56 -0600 Subject: Controlling mapsize in CGI Message-ID: I went back and tried Richard Greenwwod's original code again using what I've learned about JavaScript in fighting the problem. It now works fine, so I must have been doing something wrong the first time around. Many thanks to Stephen, Steve and Jacob for all the help. -- Richard From overbored at OVERBORED.NET Sat Mar 12 16:13:53 2005 From: overbored at OVERBORED.NET (overbored) Date: Sat, 12 Mar 2005 16:13:53 -0800 Subject: Help setting up MapScript Message-ID: Hi all, I'm trying to set up PHP/MapScript. I am running PHP-4.3.9, but I did not install it (I don't have root on this box). So I downloaded the PHP-4.3.9 source (for regex), but I run into the following problem. $ ./configure --prefix=$HOME/local --with-proj=$HOME/local --with-php=/usr/local --with-php-regex-dir=/tmp/yang169/php-4.3.9 && make checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking if compiler supports -R... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... egrep checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... yes MapServer Version from map.h: '4.4.1' configure: checking where FreeType 2.x is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed... using libz from -L/lib -lz configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... using libXpm from -L/lib -lXpm -lX11 configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.12 or higher... checking for gdImageSetAntiAliased in -lgd... yes checking for gdImageSetAntiAliased in -lgd... (cached) yes using libgd 2.0.12 (or higher) from system libs (-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -L/lib -lz -L/lib -lXpm -lX11 ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system libs. configure: checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... no libpdf not found... PDF support not included. configure: checking whether we should include EPPL7 support... including EPPL7 support. configure: checking whether we should include PROJ.4 support... checking for pj_transform in -lproj... yes checking for pj_latlong_from_proj in -lproj... yes using PROJ.4 from /home/cc/cs169/sp05/class/cs169-db/local. configure: checking whether we should include thread safe support... thread safe support disabled. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. configure: checking whether we should include SDE raster support... not including experimental SDE raster support. configure: checking whether we should compile in MPATROL support... MPATROL support not requested. checking if GEOS support requested... no configure: checking whether we should include OGR support... OGR support not requested. checking if GDAL support requested... no checking checking ms JPEG output... yes, GDAL is not available but libjpeg is. configure: checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... yes using libtiff from system libs. checking if PostGIS support requested... no checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support not requested. configure: checking whether we should include WCS Server support... OGC WCS Server support not requested. configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... OGC WFS Client Connections not enabled (PROJ.4, libcurl and OGR required). configure: checking for curl-config... configure: checking whether FastCGI support should be enabled... FastCGI support not enabled. configure: checking HTTPD server (Apache) version... checking for httpd... /usr/local/apache2/bin/httpd awk: syntax error near line 1 awk: bailing out near line 1 awk: syntax error near line 1 awk: bailing out near line 1 /usr/local/apache2/bin/httpd version is Apache/2.0.52 (). Compiling with -DIGNORE_MISSING_DATA. configure: checking whether we should enable debug features... configure: checking for PHP/MapScript module options... checking for g++ -shared ... yes using 'g++ -shared' for dynamic linking checking for location of config.h or php_config.h... /usr/local/include/php//main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... yes using PHP regex source from /tmp/yang169/php-4.3.9/regex PHP/MapScript module configured. configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/php3/Makefile config.status: creating mapscript/java/Makefile gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_PHP_REGEX -I/tmp/yang169/php-4.3.9/regex/.. -I/usr/local/include -I/home/cc/cs169/sp05/class/cs169-db/local/include /tmp/yang169/php-4.3.9/regex/regcomp.c -o /tmp/yang169/php-4.3.9/regex/regcomp.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_PHP_REGEX -I/tmp/yang169/php-4.3.9/regex/.. -I/usr/local/include -I/home/cc/cs169/sp05/class/cs169-db/local/include /tmp/yang169/php-4.3.9/regex/regerror.c -o /tmp/yang169/php-4.3.9/regex/regerror.o /tmp/yang169/php-4.3.9/regex/regerror.c:38: error: `REG_OKAY' undeclared here (not in a function) /tmp/yang169/php-4.3.9/regex/regerror.c:38: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:38: error: (near initialization for `rerrs[0].code') /tmp/yang169/php-4.3.9/regex/regerror.c:38: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:38: error: (near initialization for `rerrs[0]') /tmp/yang169/php-4.3.9/regex/regerror.c:39: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:39: error: (near initialization for `rerrs[1]') /tmp/yang169/php-4.3.9/regex/regerror.c:40: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:40: error: (near initialization for `rerrs[2]') /tmp/yang169/php-4.3.9/regex/regerror.c:41: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:41: error: (near initialization for `rerrs[3]') /tmp/yang169/php-4.3.9/regex/regerror.c:42: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:42: error: (near initialization for `rerrs[4]') /tmp/yang169/php-4.3.9/regex/regerror.c:43: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:43: error: (near initialization for `rerrs[5]') /tmp/yang169/php-4.3.9/regex/regerror.c:44: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:44: error: (near initialization for `rerrs[6]') /tmp/yang169/php-4.3.9/regex/regerror.c:45: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:45: error: (near initialization for `rerrs[7]') /tmp/yang169/php-4.3.9/regex/regerror.c:46: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:46: error: (near initialization for `rerrs[8]') /tmp/yang169/php-4.3.9/regex/regerror.c:47: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:47: error: (near initialization for `rerrs[9]') /tmp/yang169/php-4.3.9/regex/regerror.c:48: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:48: error: (near initialization for `rerrs[10]') /tmp/yang169/php-4.3.9/regex/regerror.c:49: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:49: error: (near initialization for `rerrs[11]') /tmp/yang169/php-4.3.9/regex/regerror.c:50: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:50: error: (near initialization for `rerrs[12]') /tmp/yang169/php-4.3.9/regex/regerror.c:51: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:51: error: (near initialization for `rerrs[13]') /tmp/yang169/php-4.3.9/regex/regerror.c:52: error: `REG_EMPTY' undeclared here (not in a function) /tmp/yang169/php-4.3.9/regex/regerror.c:52: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:52: error: (near initialization for `rerrs[14].code') /tmp/yang169/php-4.3.9/regex/regerror.c:52: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:52: error: (near initialization for `rerrs[14]') /tmp/yang169/php-4.3.9/regex/regerror.c:53: error: `REG_ASSERT' undeclared here (not in a function) /tmp/yang169/php-4.3.9/regex/regerror.c:53: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:53: error: (near initialization for `rerrs[15].code') /tmp/yang169/php-4.3.9/regex/regerror.c:53: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:53: error: (near initialization for `rerrs[15]') /tmp/yang169/php-4.3.9/regex/regerror.c:54: error: `REG_INVARG' undeclared here (not in a function) /tmp/yang169/php-4.3.9/regex/regerror.c:54: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:54: error: (near initialization for `rerrs[16].code') /tmp/yang169/php-4.3.9/regex/regerror.c:54: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:54: error: (near initialization for `rerrs[16]') /tmp/yang169/php-4.3.9/regex/regerror.c:55: error: initializer element is not constant /tmp/yang169/php-4.3.9/regex/regerror.c:55: error: (near initialization for `rerrs[17]') /tmp/yang169/php-4.3.9/regex/regerror.c:64: error: parse error before "php_regerror" /tmp/yang169/php-4.3.9/regex/regerror.c:65: warning: return type defaults to `int' /tmp/yang169/php-4.3.9/regex/regerror.c: In function `php_regerror': /tmp/yang169/php-4.3.9/regex/regerror.c:72: error: `REG_ITOA' undeclared (first use in this function) /tmp/yang169/php-4.3.9/regex/regerror.c:72: error: (Each undeclared identifier is reported only once /tmp/yang169/php-4.3.9/regex/regerror.c:72: error: for each function it appears in.) /tmp/yang169/php-4.3.9/regex/regerror.c:76: error: `REG_ATOI' undeclared (first use in this function) /tmp/yang169/php-4.3.9/regex/regerror.c: In function `regatoi': /tmp/yang169/php-4.3.9/regex/regerror.c:119: error: structure has no member named `re_endp' *** Error code 1 make: Fatal error: Command failed for target `/tmp/yang169/php-4.3.9/regex/regerror.o' Googling for these errors turned up nothing. Can anybody help me out? Thanks in advance, Yang From gmanepal at GMAIL.COM Sat Mar 12 19:53:31 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Sat, 12 Mar 2005 21:53:31 -0600 Subject: Mapserver Usage Message-ID: Hello All, I am working on a project in which one of the application produces some information viz., location of agents, each agents characteristics(age, health etc) into a database(PostGresql). The location of agents is in the form of PostGIS Supportive Spatial Data format. The agents produced by the application belong to a area whose shapefile is available. I appreciate a lot if someone can throw some light on the following:- How can I dynamically produce a map using mapserver, so that I can grab the agent data from the Database and display it(This includes the agent characterisitics as mentioned above)? It would be helpful to me, if you can point out some general/specific guidelines for achieving the same. Also, a pointers to similar applications, especially one which integrates querying on agent characteristics, if I am not asking too much. Thanks, Giridhar From mhbasa at YAHOO.COM Sun Mar 13 00:14:49 2005 From: mhbasa at YAHOO.COM (Mario H. Basa) Date: Sun, 13 Mar 2005 00:14:49 -0800 Subject: rpms for RHES In-Reply-To: 6667 Message-ID: Hello Toomas, For RHES3.0, you'll have to include a newer GD in your list of packages since RHES3.0 still uses a very old version of GD (1.8 I think). There is CentOS (http://www.centos.org) distribution that is compatible with RHES3 which you can use to create RPMS. Regards, mario yokohama, japan --- Toomas Aas wrote: > I didn't think I would ever ask such a lame > question, but here I am. > > I've installed Mapserver on couple of FreeBSD and > Linux servers > successfully and I can generally find my way around > the installation > procedure. But now we are trying to give our > Mapserver application to > someone else so they can run it on their server, > which is Red Hat > Enterprise 3.0. I don't think I can get > administrative access on that > server to do the installation myself. The owners of > the server seem to > be somewhat overwhelmed by the installation > procedure and have asked me > to just give them rpms for all the dependencies and > Mapserver itself. > Since I don't have RHES, it's difficult for me to > do. > > Would the rpms for Fedora Core 1 that are pointed to > at the > 'EasyInstallationWithRPMs' work on RHES? If not, has > anyone ever built > Mapserver rpms for RHES and is willing to share > their experience? > > Thanks in advance, > -- > Toomas > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bartvde at XS4ALL.NL Sun Mar 13 00:47:54 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 13 Mar 2005 09:47:54 +0100 Subject: Mapserver Usage In-Reply-To: Message-ID: Hi Giridhar, check out the following: Building MapServer Applications with PostGIS - Paul Ramsey & Chris Hodgson http://www.omsug.ca/dl/osgis2004/PostGIS-ms.ppt http://www.omsug.ca/dl/osgis2004/PostGIS-Mapserver.doc http://www.omsug.ca/dl/osgis2004/postgis-ms.zip That should help you getting started. Best regards, Bart On Sat, 12 Mar 2005 21:53:31 -0600, Giridhar Manepalli wrote: > Hello All, > I am working on a project in which one of the application produces some > information viz., location of agents, each agents characteristics(age, > health etc) into a database(PostGresql). The location of agents is in the > form of > PostGIS Supportive Spatial Data format. The agents produced by the > application belong to a area whose shapefile is available. > > I appreciate a lot if someone can throw some light on the following:- > > How can I dynamically produce a map using mapserver, so that I can grab > the > agent data from the Database and display it(This includes the agent > characterisitics as mentioned above)? > > It would be helpful to me, if you can point out some general/specific > guidelines for achieving the same. Also, a pointers to similar > applications, > especially one which integrates querying on agent characteristics, if I > am > not asking too much. > > Thanks, > Giridhar > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From rodrigo.lists at FABRICADEIDEIAS.COM Sun Mar 13 02:58:18 2005 From: rodrigo.lists at FABRICADEIDEIAS.COM (Rodrigo Severo) Date: Sun, 13 Mar 2005 07:58:18 -0300 Subject: Help setting up MapScript In-Reply-To: <423385C1.5030408@overbored.net> Message-ID: Hi, Have you built php inside '/tmp/yang169/php-4.3.9'? As far as I remember you need to 'configure && make' php. No need to 'make install'. Rodrigo Severo overbored wrote: > Hi all, > > I'm trying to set up PHP/MapScript. I am running PHP-4.3.9, but I did > not install it (I don't have root on this box). So I downloaded the > PHP-4.3.9 source (for regex), but I run into the following problem. > > config.status: creating mapscript/php3/Makefile > config.status: creating mapscript/java/Makefile > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV > -DUSE_PHP_REGEX -I/tmp/yang169/php-4.3.9/regex/.. > -I/usr/local/include > -I/home/cc/cs169/sp05/class/cs169-db/local/include > /tmp/yang169/php-4.3.9/regex/regcomp.c -o > /tmp/yang169/php-4.3.9/regex/regcomp.o > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV > -DUSE_PHP_REGEX -I/tmp/yang169/php-4.3.9/regex/.. > -I/usr/local/include > -I/home/cc/cs169/sp05/class/cs169-db/local/include > /tmp/yang169/php-4.3.9/regex/regerror.c -o > /tmp/yang169/php-4.3.9/regex/regerror.o > /tmp/yang169/php-4.3.9/regex/regerror.c:38: error: `REG_OKAY' undeclared > here (not in a function) ------------------------------------------------------ Rodrigo Severo F?brica de Id?ias SBS - Ed. Empire Center - Sala 1301 - Cobertura Fone: (61) 321 1357 Fax: (61) 223 1712 ------------------------------------------------------ Creativity is no substitute for knowing what you're doing. ------------------------------------------------------ From wokar1 at YAHOO.COM Sun Mar 13 07:53:26 2005 From: wokar1 at YAHOO.COM (w m) Date: Sun, 13 Mar 2005 07:53:26 -0800 Subject: No subject Message-ID: Hi, I have a .shp file layer that i created from postgres. then i inserted that .shp in my mapscript and it is of type POINT. I want user to be able to click on the points and retrieve information from the data base(perhaps on another webpage which would display the results of the query). I tried using the CONNECTION command but nothing happend. any clue as to where i should start........ Thanks Wokar __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcradock at ME3.COM Sun Mar 13 13:13:00 2005 From: jcradock at ME3.COM (James Cradock) Date: Sun, 13 Mar 2005 16:13:00 -0500 Subject: DEBUG Message-ID: How is MapServer's log enabled? Can it be? I'm using MapServer 4.4.1, I've configured MapServer with (among other options) '--enable-debug', and I've written my map files with 'DEBUG on' and 'LOG "/file/system/path/to/mapserver_log"', but I don't get a peep from MapServer. Thanks. JC ----- James Cradock, jcradock at me3.com From wokar1 at YAHOO.COM Sun Mar 13 14:56:49 2005 From: wokar1 at YAHOO.COM (w m) Date: Sun, 13 Mar 2005 14:56:49 -0800 Subject: CONNECTION to database In-Reply-To: 6667 Message-ID: w m wrote:Hi, I have a .shp file layer that i created from postgres. then i inserted that .shp in my mapscript and it is of type POINT. I want user to be able to click on the points and retrieve information from the data base(perhaps on another webpage which would display the results of the query). I tried using the CONNECTION command but nothing happend. any clue as to where i should start........ Thanks Wokar __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Sun Mar 13 18:45:54 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Sun, 13 Mar 2005 18:45:54 -0800 Subject: CONNECTION to database In-Reply-To: <20050313225649.75477.qmail@web53410.mail.yahoo.com> Message-ID: http://www.catb.org/~esr/faqs/smart-questions.html On 13-Mar-05, at 2:56 PM, w m wrote: > w m wrote: > Hi, > I have a .shp file layer that i created from postgres.? then i > inserted that .shp in my mapscript and it is of type POINT. I want > user to be able to click on the points and retrieve information from > the data base(perhaps on another webpage which would display the > results of the query).? I tried using the CONNECTION command but > nothing happend.? any clue as to where i should start........ > ? > Thanks > Wokar From woodbri at SWOODBRIDGE.COM Sun Mar 13 19:25:25 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 13 Mar 2005 22:25:25 -0500 Subject: CONNECTION to database In-Reply-To: <0c95fde680dc0195da92a934b2e672e8@refractions.net> Message-ID: Paul Ramsey wrote: > http://www.catb.org/~esr/faqs/smart-questions.html > > On 13-Mar-05, at 2:56 PM, w m wrote: > >> w m wrote: >> Hi, >> I have a .shp file layer that i created from postgres. then i >> inserted that .shp in my mapscript and it is of type POINT. I want >> user to be able to click on the points and retrieve information from >> the data base(perhaps on another webpage which would display the >> results of the query). I tried using the CONNECTION command but >> nothing happend. any clue as to where i should start........ Wokar, There is not automatic way to do what you are trying to do. Here are the steps that you will need to work out: 1) display yourt data as a map using mapserver and a mapfile 2) implement a query using a JOIN of a column in the shapefile to your database to get the information you want to display and set up some templates to display it. 3) if you want it to display in another window there is a way to do that, but I don't remember the details, but they are irrelavant if you can't get the above working. 4) If you haven't checked out the demo you should, because I think it has a good example of doing a query, that would help you understand that part. -Steve W. From fwarmerdam at GMAIL.COM Sun Mar 13 20:50:24 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Sun, 13 Mar 2005 23:50:24 -0500 Subject: GDAL/OGR 1.2.6 Released Message-ID: Folks, I am pleased to announce the release of GDAL/OGR 1.2.6. The new release can be downloaded from: http://www.gdal.org/dl/gdal-1.2.6.tar.tz http://www.gdal.org/dl/gdal126.zip Signficant improvements and changes in this release are mentioned in the NEWS entries below. GDAL 1.2.6 - Overview of Changes -------------------------------- gdal_translate: - Added -sds switch to copy all subdatasets. gdalwarp: - Added Thin Plate Spline support (-tps switch). GDALRasterBand: - Now uses two level block cache allowing efficient access to files with a very large number of tiles. - Added support for YCbCr color space for raster band color interpretations. - Added AdviseRead() method - currently only used by ECW driver and OGDI drivers. ILWIS Driver: - New driver for the raster format of the ILWIS software. ECW Driver: - Updated to use ECW SDK 3.1 (older ECW SDK no longer supported!) ECWJP2 Driver: - Added JPEG2000 support driver based on ECW/JPEG2000 SDK with a variety of features. NITF Driver: - Added support for reading *and* writing JPEG2000 compressed NITF files using the ECW/JPEG2000 SDK. - Added ICHIPB support. HDF Driver: - Add support for georeferencing from some additional metadata formats. - Fixed bug with multi-band HDF-EOS datasets. MrSID Driver: - Driver can now be built as a plugin on win32. - Split out MrSID 3.x SDK support - not readily buildable now. - Implemented accelerated IO cases for MrSID 4.x SDK. - Support for writing MrSID files added (improved?) Imagine Driver: - Fixed bug reading some large multiband Imagine files. - Added support for writing compressed files. Win32 Builds: - Added versioning information to GDAL DLL. L1B Driver: - Only return a reduced grid of control points. IDA (WinDisp4) Driver: - New read/write driver for the Image Display and Analysis raster format used by WinDisp 4. NDF (NLAPS) Driver: - Added NDF/NLAPS read driver for version 1 and 2. MSG Driver: - Added support for the Metosat Second Generation raw file format. GTiff Driver: - Added support for offset/scale being saved and loaded (special metadata). - Added Cylindrical Equal Area. - Added PROFILE creation option to limit extra tags. PNG Driver: - Updated internal code for libpng to libpng 1.2.8. OGR 1.2.6 - Overview of Changes ------------------------------- OGRSFDriverRegistrar: - Added support for autoloading plugin drivers from ogr_.so. ogr.py: - Geometry, and Feature now take care of their own reference counting and will delete themselves when unreferenced. Care must still be taken to unreference all features before destroying the corresponding layer/datasource. - ogr.Feature fields can now be fetched and set directly as attributes. - Geometry contructor can now take various formats (wkt, gml, and wkb). - Added docstrings. - Added better __str__ methods on several objects. - Various other improvements. OGRLayer: - Re-wrote generic spatial search support to be faster in case of rectangular filters. - Intersects() method now really uses GEOS. This also affects all OGR layer spatial filtering (with non-rectangular filters). - Added SetNextByIndex() method on OGRLayer. OGRSpatialReference: - Automatically generate +towgs84 from EPSG tables when translating to PROJ.4 if available and TOWGS84 not specified in source WKT. - Updated GML CRS translation to follow OGC 05-011 more closely. Still incomplete but operational for some projections. - Added support for FIPSZONE State Plane processing for old ESRI .prjs. - Added Goode Homolosine support. - Added GEOS (Geostationary Satellite) support. OCI (Oracle) Driver: - Added GEOMETRY_NAME creation option to control the name of the field to hold the geometry. PostGIS Driver: - Fixed some problems with truncation for integer and float list fields. Shapefile Driver: - Added support for MapServer style spatial index (.qix). GML Driver: - Improved support for 3L0 (GML 3 - Level 0 profile) reading and writing. On read we can now use the .xsd instead of needing to build a .gfs file. 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 daniele.rizzo at SPACESPA.IT Mon Mar 14 03:29:04 2005 From: daniele.rizzo at SPACESPA.IT (Daniele Rizzo) Date: Mon, 14 Mar 2005 12:29:04 +0100 Subject: epsg:26591 ? Message-ID: Hi all, In the srid 26591 (epsg:26591) column in the table spatial_ref_sys (POSTGIS) and in the relative text file 'epsg' there are different values for the parameter 'lon_0'. The value of this parameter (lon_0) 'd be 9.0 ... i think. Isn' it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Mon Mar 14 04:41:16 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 14 Mar 2005 13:41:16 +0100 Subject: DEBUG In-Reply-To: <821ea5e18e961a7544ab1d70332a80bf@me3.com> Message-ID: Hi, you need to set an environment variable called MS_ERRORFILE. For instance for Apache (httpd.conf): SetEnv MS_ERRORFILE "stderr" This will output to the Apache error file. Best regards, Bart On Sun, 13 Mar 2005 16:13:00 -0500, James Cradock wrote: > How is MapServer's log enabled? Can it be? I'm using MapServer 4.4.1, > I've configured MapServer with (among other options) '--enable-debug', > and I've written my map files with 'DEBUG on' and 'LOG > "/file/system/path/to/mapserver_log"', but I don't get a peep from > MapServer. > > Thanks. > > JC > > ----- > James Cradock, jcradock at me3.com > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From d.huisman at INGBCC.NL Mon Mar 14 05:04:08 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Mon, 14 Mar 2005 14:04:08 +0100 Subject: inline feature Message-ID: Hi, It still doesn't work. The inline feature disappeare after zooming. This is the code. LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 20 20 END TEXT '© 2005' END CLASS LABEL TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE COLOR 5 255 5 POSITION UR FORCE TRUE END END END I'm using PHP/Mapscript and rosa-applet. Maybe i have to draw it through the PHP-code? But how? Dirk -----Oorspronkelijk bericht----- Van: Stephen Woodbridge [mailto:woodbri at SWOODBRIDGE.COM] Verzonden: donderdag 10 maart 2005 15:50 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] inline feature Dirk, Just make sure that this is the last layer in your mapfile so when the label cache is run it will be the first label draw. Then all the other labels will avoid it. If it is not the first, and other labels are drawn where it needs to be drawn, then it will get bumped and not draw. You can also add FORCE TRUE to the label block. -Steve W. http://imaptools.com Dirk-Jan Huisman wrote: > Hi, > > My LAYER is: > > LAYER > NAME "credits" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 300 300 > END > TEXT 'Hello world.' > END > CLASS > LABEL > TYPE BITMAP > COLOR 0 0 0 > END > END > END > > The LAYER in the link below gives the same problem. > > best regards, > > > Hi, > > did you try something like described in: > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0103/msg00026.h > tml > > ? > > Can you provide more info? The LAYER from your MAP file will help > analyzing the problem. > > Best regards, > Bart > > >>Hi all, >> >>I want to draw text (copyright) in my map. In my mapfile I put the > > code > >>(FEATURE keyword). The string is drawed once and it looks good. But >>after zooming it's gone. >>What to do to draw the text again after each request? >> >>Dirk Jan >> >> >> >> > > > > ------------------------------------------------------------------------ ------ > Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam > Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, > E-mail post at ingbcc.nl > Internet www.ingbcc.nl > ------------------------------------------------------------------------ ------ > Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. > ------------------------------------------------------------------------ ------ > This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. > ------------------------------------------------------------------------ ------ > ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ From jcradock at ME3.COM Mon Mar 14 05:50:19 2005 From: jcradock at ME3.COM (James Cradock) Date: Mon, 14 Mar 2005 08:50:19 -0500 Subject: Raster Layers Message-ID: I've installed MapServer 4.4.1, and shapefiles are rendering well, but raster layers are not. This is on Debian, and GDAL was installed from APT. (MapServer is *not* in APT.) Info: ./mapserv -v MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE The GDAL utilities (gdalinfo, gdal_translate) appear to work fine -- I'm just not getting rasters from MapServer. Common problem? JC ----- James Cradock, jcradock at me3.com From ed at TOPOZONE.COM Mon Mar 14 06:34:28 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 14 Mar 2005 09:34:28 -0500 Subject: Raster Layers Message-ID: JC - Not common, but you should rebuild MapServer WITHOUT "INPUT=TIFF" support. I'm assuming your rasters are TIFF images, and the GDAL library provides much better support for TIFF than the former standalone TIFF library. If I recall correctly, I think the default configuration does not include INPUT=TIFF support, so you may have added it when you configured MapServer. Reconfigure it without TIFF support and you'll let GDAL provide TIFF support. If you still have trouble, please provide more details about the image you're using and how you're using it. Thanks! - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of James Cradock Sent: Monday, March 14, 2005 8:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster Layers I've installed MapServer 4.4.1, and shapefiles are rendering well, but raster layers are not. This is on Debian, and GDAL was installed from APT. (MapServer is *not* in APT.) Info: ./mapserv -v MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE The GDAL utilities (gdalinfo, gdal_translate) appear to work fine -- I'm just not getting rasters from MapServer. Common problem? JC ----- James Cradock, jcradock at me3.com From David.Fawcett at STATE.MN.US Mon Mar 14 06:38:22 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 14 Mar 2005 08:38:22 -0600 Subject: label in symbol? Message-ID: If the Wiki was still open to public editing, I would suggest posting the solution on the SymbolExamples page of the Wiki. Perhaps once the new MapServer Web site is up, we can get more examples up there. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of William K Sent: Friday, March 11, 2005 10:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] label in symbol? Ah, I had looked at that once long ago to get me started and haven't touched it since. Then for this I was looking on the documentation page of the website for ideas from examples and tutorials and missed the demo. Looks very simple, just not obvious from the MAP file documentation. thanks On Mar 10, 2005, at 6:07 PM, blaise wrote: >> Is there a way to draw labels inside a symbol, such as a highway >> number >> in a shield? I'm open to programatic php methods (I could probably >> figure that out), but would prefer something automatic or built into >> MS >> (that's not obvious, since I don't see anything in the docs, tho there >> is an unanswered question in the wiki). > > Have you looked at the Itasca demo (that you can download at mapserver > website) ? It seems that it's doing that pretty well with three > different > road symbol. > Blaise > > ----- William Kyngesburye http://webpages.charter.net/kyngchaos/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From David.Fawcett at STATE.MN.US Mon Mar 14 07:02:26 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 14 Mar 2005 09:02:26 -0600 Subject: CONNECTION to database Message-ID: Another option is that if you are using something like php, asp, ColdFusion, etc. You can use MapServer to query your .shp file and retrieve the ID for the database record. Then, you use php (or whatever) to dynamically build a query and display the result set. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Stephen Woodbridge Sent: Sunday, March 13, 2005 9:25 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] CONNECTION to database Paul Ramsey wrote: > http://www.catb.org/~esr/faqs/smart-questions.html > > On 13-Mar-05, at 2:56 PM, w m wrote: > >> w m wrote: >> Hi, >> I have a .shp file layer that i created from postgres. then i >> inserted that .shp in my mapscript and it is of type POINT. I want >> user to be able to click on the points and retrieve information from >> the data base(perhaps on another webpage which would display the >> results of the query). I tried using the CONNECTION command but >> nothing happend. any clue as to where i should start........ Wokar, There is not automatic way to do what you are trying to do. Here are the steps that you will need to work out: 1) display yourt data as a map using mapserver and a mapfile 2) implement a query using a JOIN of a column in the shapefile to your database to get the information you want to display and set up some templates to display it. 3) if you want it to display in another window there is a way to do that, but I don't remember the details, but they are irrelavant if you can't get the above working. 4) If you haven't checked out the demo you should, because I think it has a good example of doing a query, that would help you understand that part. -Steve W. From mweinelt at PLANIGLOBE.COM Mon Mar 14 07:09:07 2005 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Mon, 14 Mar 2005 16:09:07 +0100 Subject: WFS layer projection problem Message-ID: Hello list, we're setting up a mapserver installation to render and query a scientific data base with global coverage. The data base layers are provided as WFS. This WFS has DD (epsg:4326) as reference system. The mapserver installation provides for 4 projections which can be set by the user: DD, Mercator, LAEA (South Pole aspect) and LAEA (North Pole aspect). The corresponding values for the resp. keywords in the mapfile (eg, PROJECTION) are passed over as CGI-variables ('&map_projection=...', etc.). While things run smoothly now with the DD-'projection and the Mercator, we are facing severe problems with the polar aspect maps. The points from the WFS-layer get sometimes partly plotted on the maps sometimes not at all. In cases, only some of the points you can see on the DD- or Mercator-versions show up on the polar aspect maps. (of course I am talking about the points actually within the scope of LAEA-covered regions.) From the logs of the WFS-server we can see, that the mapserver CGI sometimes sends strange bounding boxes to the WFS, which do not really cover the area shown by the map. Is there anything special with LAEA and mapserver (proj4). Has anyone encountered s/th similar? Where should we start searching for potential solutions to this problem? Cheers, Martin PS: You can see the thing by going to "http://www.pangaea.de/PangaVista" and hitting the 'Show map'-entry in the search form. Mapfile excerpt: MAP NAME "Pangaea_WMS" STATUS ON DEBUG ON # nb! UNITS passed in by URL SIZE 400 400 IMAGETYPE jpeg EXTENT -180 -90 180 90 OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END FONTSET "/path/to/fonts.list" SYMBOLSET "/path/to/symbols.sym" # SHAPEPATH "/path/to/data/" SHAPEPATH " nb!:passed in by URL" REFERENCE IMAGE "ref/ddindex200.png" EXTENT -180 -90 180 90 SIZE 199 99 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MAXBOXSIZE 190 END # of Reference WEB METADATA "wms_title" "pangaea_wms" "wms_onlineresource" "http://www.pangaea.de/pvmap/mapserv.cgi?" "wms_srs" "EPSG:4326" END # metadata IMAGEPATH "/path/to/tmp/" IMAGEURL "/path/to/tmp/" LOG "/path/to/pv_ms.log" TEMPLATE "/path/to/tmpl.html" EMPTY "/pvmap/nf.html" # these are URLs ERROR "/pvmap/er.html" # these are URLs END #web PROJECTION # nb!: passed in by URL END # projection .... ## then some basic layers, such as coastline, etc ... ## and then the WFS-layer, here the points: LAYER NAME "dataSetPoint" METADATA "wfs_service" "WFS" "wfs_typename" "pv:dataSetPoint" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "60" END PROJECTION "init=epsg:4326" END DUMP TRUE TYPE POINT STATUS on CONNECTIONTYPE WFS CONNECTION "%wfsurl%" #this is passed in by a CGI variable TOLERANCE 10 CLASS NAME "DataSets" SYMBOL "circle" SIZE 8 COLOR 220 0 0 OUTLINECOLOR 120 120 120 TEMPLATE "/path/to/tmpl.html" END # class END # Layer From d.huisman at INGBCC.NL Mon Mar 14 07:16:29 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Mon, 14 Mar 2005 16:16:29 +0100 Subject: inline feature Message-ID: I found what was wrong. Thanks for the help! -----Oorspronkelijk bericht----- Van: Dirk-Jan Huisman Verzonden: maandag 14 maart 2005 14:04 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] inline feature Hi, It still doesn't work. The inline feature disappeare after zooming. This is the code. LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 20 20 END TEXT '© 2005' END CLASS LABEL TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE COLOR 5 255 5 POSITION UR FORCE TRUE END END END I'm using PHP/Mapscript and rosa-applet. Maybe i have to draw it through the PHP-code? But how? Dirk -----Oorspronkelijk bericht----- Van: Stephen Woodbridge [mailto:woodbri at SWOODBRIDGE.COM] Verzonden: donderdag 10 maart 2005 15:50 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] inline feature Dirk, Just make sure that this is the last layer in your mapfile so when the label cache is run it will be the first label draw. Then all the other labels will avoid it. If it is not the first, and other labels are drawn where it needs to be drawn, then it will get bumped and not draw. You can also add FORCE TRUE to the label block. -Steve W. http://imaptools.com Dirk-Jan Huisman wrote: > Hi, > > My LAYER is: > > LAYER > NAME "credits" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 300 300 > END > TEXT 'Hello world.' > END > CLASS > LABEL > TYPE BITMAP > COLOR 0 0 0 > END > END > END > > The LAYER in the link below gives the same problem. > > best regards, > > > Hi, > > did you try something like described in: > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0103/msg00026.h > tml > > ? > > Can you provide more info? The LAYER from your MAP file will help > analyzing the problem. > > Best regards, > Bart > > >>Hi all, >> >>I want to draw text (copyright) in my map. In my mapfile I put the > > code > >>(FEATURE keyword). The string is drawed once and it looks good. But >>after zooming it's gone. >>What to do to draw the text again after each request? >> >>Dirk Jan >> >> >> >> > > > > ------------------------------------------------------------------------ ------ > Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam > Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, > E-mail post at ingbcc.nl > Internet www.ingbcc.nl > ------------------------------------------------------------------------ ------ > Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. > ------------------------------------------------------------------------ ------ > This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. > ------------------------------------------------------------------------ ------ > ------------------------------------------------------------------------ ------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------ ------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------ ------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------ ------ ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ From fwarmerdam at GMAIL.COM Mon Mar 14 07:29:22 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 14 Mar 2005 10:29:22 -0500 Subject: WFS layer projection problem In-Reply-To: <200503141609.07417.mweinelt@planiglobe.com> Message-ID: On Mon, 14 Mar 2005 16:09:07 +0100, Martin Weinelt wrote: > From the logs of the WFS-server we can see, that the mapserver > CGI sometimes sends strange bounding boxes to the WFS, which > do not really cover the area shown by the map. > > Is there anything special with LAEA and mapserver (proj4). Has anyone > encountered s/th similar? Where should we start searching for > potential solutions to this problem? Martin, There are many challenges in global scale mapping with MapServer or many other GIS packages. In particular, spatial queries are normally represented as a bounding box. If you reproject a bounding box from a projection like LAEA, near the pole, to decimal degrees, you can encounter many quirky situations where the resulting rectangle does not accurately represent the same area of the earth due to the different natures of the two coordinate systems (for instance the specialness of the north pole in geographic coordinates). There is a mapserver wiki topic discussing some of the challenges of global scale mapping, though unfortunately we can't add to it anymore. I don't have any useful suggestions on how to resolve the problem for your particular case. The proper solution would *likely* be to make the MapServer bounding-rect reprojection function know alot more about the nature of coordinate systems. But that is a hairy area. 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 bartvde at XS4ALL.NL Mon Mar 14 07:44:32 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 14 Mar 2005 16:44:32 +0100 Subject: inline feature In-Reply-To: Message-ID: It would help future users if you report back what solved your problem :) Best regards, Bart On Mon, 14 Mar 2005 16:16:29 +0100, Dirk-Jan Huisman wrote: > I found what was wrong. > Thanks for the help! > > -----Oorspronkelijk bericht----- > Van: Dirk-Jan Huisman > Verzonden: maandag 14 maart 2005 14:04 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] inline feature > > > Hi, > > It still doesn't work. The inline feature disappeare after zooming. > This is the code. > LAYER > NAME "credits" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 20 20 > END > TEXT '© 2005' > END > CLASS > LABEL > TYPE TRUETYPE > FONT arial > SIZE 8 > ANTIALIAS TRUE > COLOR 5 255 5 > POSITION UR > FORCE TRUE > END > END > END > > I'm using PHP/Mapscript and rosa-applet. Maybe i have to draw it through > the PHP-code? But how? > > Dirk > > > > > -----Oorspronkelijk bericht----- > Van: Stephen Woodbridge [mailto:woodbri at SWOODBRIDGE.COM] > Verzonden: donderdag 10 maart 2005 15:50 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] inline feature > > > Dirk, > > Just make sure that this is the last layer in your mapfile so when the > label cache is run it will be the first label draw. Then all the other > labels will avoid it. If it is not the first, and other labels are drawn > where it needs to be drawn, then it will get bumped and not draw. You > can also add FORCE TRUE to the label block. > > -Steve W. > http://imaptools.com > > Dirk-Jan Huisman wrote: >> Hi, >> >> My LAYER is: >> >> LAYER >> NAME "credits" >> STATUS DEFAULT >> TRANSFORM FALSE >> TYPE ANNOTATION >> FEATURE >> POINTS >> 300 300 >> END >> TEXT 'Hello world.' >> END >> CLASS >> LABEL >> TYPE BITMAP >> COLOR 0 0 0 >> END >> END >> END >> >> The LAYER in the link below gives the same problem. >> >> best regards, >> >> >> Hi, >> >> did you try something like described in: >> >> > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0103/msg00026.h >> tml >> >> ? >> >> Can you provide more info? The LAYER from your MAP file will help >> analyzing the problem. >> >> Best regards, >> Bart >> >> >>> Hi all, >>> >>> I want to draw text (copyright) in my map. In my mapfile I put the >> >> code >> >>> (FEATURE keyword). The string is drawed once and it looks good. But >>> after zooming it's gone. >>> What to do to draw the text again after each request? >>> >>> Dirk Jan >>> >>> >>> >>> >> >> >> >> > ------------------------------------------------------------------------ > ------ >> Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam >> Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, >> E-mail post at ingbcc.nl >> Internet www.ingbcc.nl >> > ------------------------------------------------------------------------ > ------ >> Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn > vertrouwelijk en alleen bedoeld voor het gebruik door de individu of > instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail > onterecht ontvangen heeft wilt u het ons dan laten weten. >> > ------------------------------------------------------------------------ > ------ >> This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. If you have received this e-mail in error please notify the > system manager. >> > ------------------------------------------------------------------------ > ------ >> > ------------------------------------------------------------------------ > ------ > Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam > Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, > E-mail post at ingbcc.nl > Internet www.ingbcc.nl > ------------------------------------------------------------------------ > ------ > Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn > vertrouwelijk en alleen bedoeld voor het gebruik door de individu of > instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail > onterecht ontvangen heeft wilt u het ons dan laten weten. > ------------------------------------------------------------------------ > ------ > This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. If you have received this e-mail in error please notify the > system manager. > ------------------------------------------------------------------------ > ------ > ------------------------------------------------------------------------------ > Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam > Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, > E-mail post at ingbcc.nl > Internet www.ingbcc.nl > ------------------------------------------------------------------------------ > Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn > vertrouwelijk en alleen bedoeld voor het gebruik door de individu of > instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail > onterecht ontvangen heeft wilt u het ons dan laten weten. > ------------------------------------------------------------------------------ > This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. If you have received this e-mail in error please notify the > system manager. > ------------------------------------------------------------------------------ > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From mweinelt at PLANIGLOBE.COM Mon Mar 14 07:54:13 2005 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Mon, 14 Mar 2005 16:54:13 +0100 Subject: WFS layer projection problem In-Reply-To: <931f8ea905031407291e49e880@mail.gmail.com> Message-ID: On Monday 14 March 2005 16:29, Frank Warmerdam wrote: > On Mon, 14 Mar 2005 16:09:07 +0100, Martin Weinelt > wrote: > > From the logs of the WFS-server we can see, that the mapserver > > CGI sometimes sends strange bounding boxes to the WFS, which > > do not really cover the area shown by the map. > > > > Is there anything special with LAEA and mapserver (proj4). Has anyone > > encountered s/th similar? Where should we start searching for > > potential solutions to this problem? > > Martin, > > There are many challenges in global scale mapping with MapServer or > many other GIS packages. In particular, spatial queries are normally > represented as a bounding box. If you reproject a bounding box > from a projection like LAEA, near the pole, to decimal degrees, you can > encounter many quirky situations where the resulting rectangle does > not accurately represent the same area of the earth due to the > different natures of the two coordinate systems (for instance the specialness > of the north pole in geographic coordinates). > > There is a mapserver wiki topic discussing some of the challenges of > global scale mapping, though unfortunately we can't add to it anymore. > > I don't have any useful suggestions on how to resolve the problem for > your particular case. The proper solution would *likely* be to make > the MapServer bounding-rect reprojection function know alot more > about the nature of coordinate systems. But that is a hairy area. > Frank, thanks a lot. I visited some of the 'hairy areas' when I wrote a JS routine for inverse projection from LAEA and mercator which are part of the interface. For instance, Snyder states that the inverse formula for LAEA my return undefined values for specific coordinates, but he at the same time says that you should return a value of so-and-so in this case. I am still not sure to what extent such semantic 'rules' are implemented in the projection routines of mapserver. Besides, a LAEA-box - as you say - is not a box at all 'back' in DD. It's not a box in the first place anyways, it's four points ... We may do better with mapscript where we might be able to implements some of the sematics needed for our purposes, but then - mapserver calls itself a WFS-client to the specs of the OGC ... Thanks again, at least for reassuring and your answering at the speed of light .. Martin From d.huisman at INGBCC.NL Mon Mar 14 08:06:36 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Mon, 14 Mar 2005 17:06:36 +0100 Subject: inline feature Message-ID: The problem was that in my PHP-code the layers status was based on the legend. The inline feature was not in the legend. After the redraw of the map the inline feature disappeared because is doesn't exist in de array with the status of the layers. No one else would make a blunder like this so I didn't report it :) -----Oorspronkelijk bericht----- Van: Bart van den Eijnden [mailto:bartvde at xs4all.nl] Verzonden: maandag 14 maart 2005 16:45 Aan: Dirk-Jan Huisman; MAPSERVER-USERS at lists.umn.edu Onderwerp: Re: [UMN_MAPSERVER-USERS] inline feature It would help future users if you report back what solved your problem :) Best regards, Bart On Mon, 14 Mar 2005 16:16:29 +0100, Dirk-Jan Huisman wrote: > I found what was wrong. > Thanks for the help! > > -----Oorspronkelijk bericht----- > Van: Dirk-Jan Huisman > Verzonden: maandag 14 maart 2005 14:04 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] inline feature > > > Hi, > > It still doesn't work. The inline feature disappeare after zooming. > This is the code. > LAYER > NAME "credits" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 20 20 > END > TEXT '© 2005' > END > CLASS > LABEL > TYPE TRUETYPE > FONT arial > SIZE 8 > ANTIALIAS TRUE > COLOR 5 255 5 > POSITION UR > FORCE TRUE > END > END > END > > I'm using PHP/Mapscript and rosa-applet. Maybe i have to draw it through > the PHP-code? But how? > > Dirk > > > > > -----Oorspronkelijk bericht----- > Van: Stephen Woodbridge [mailto:woodbri at SWOODBRIDGE.COM] > Verzonden: donderdag 10 maart 2005 15:50 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] inline feature > > > Dirk, > > Just make sure that this is the last layer in your mapfile so when the > label cache is run it will be the first label draw. Then all the other > labels will avoid it. If it is not the first, and other labels are drawn > where it needs to be drawn, then it will get bumped and not draw. You > can also add FORCE TRUE to the label block. > > -Steve W. > http://imaptools.com > > Dirk-Jan Huisman wrote: >> Hi, >> >> My LAYER is: >> >> LAYER >> NAME "credits" >> STATUS DEFAULT >> TRANSFORM FALSE >> TYPE ANNOTATION >> FEATURE >> POINTS >> 300 300 >> END >> TEXT 'Hello world.' >> END >> CLASS >> LABEL >> TYPE BITMAP >> COLOR 0 0 0 >> END >> END >> END >> >> The LAYER in the link below gives the same problem. >> >> best regards, >> >> >> Hi, >> >> did you try something like described in: >> >> > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0103/msg00026.h >> tml >> >> ? >> >> Can you provide more info? The LAYER from your MAP file will help >> analyzing the problem. >> >> Best regards, >> Bart >> >> >>> Hi all, >>> >>> I want to draw text (copyright) in my map. In my mapfile I put the >> >> code >> >>> (FEATURE keyword). The string is drawed once and it looks good. But >>> after zooming it's gone. >>> What to do to draw the text again after each request? >>> >>> Dirk Jan >>> >>> >>> >>> >> >> >> >> > ------------------------------------------------------------------------ > ------ >> Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam >> Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, >> E-mail post at ingbcc.nl >> Internet www.ingbcc.nl >> > ------------------------------------------------------------------------ > ------ >> Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn > vertrouwelijk en alleen bedoeld voor het gebruik door de individu of > instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail > onterecht ontvangen heeft wilt u het ons dan laten weten. >> > ------------------------------------------------------------------------ > ------ >> This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. If you have received this e-mail in error please notify the > system manager. >> > ------------------------------------------------------------------------ > ------ >> > ------------------------------------------------------------------------ > ------ > Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam > Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, > E-mail post at ingbcc.nl > Internet www.ingbcc.nl > ------------------------------------------------------------------------ > ------ > Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn > vertrouwelijk en alleen bedoeld voor het gebruik door de individu of > instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail > onterecht ontvangen heeft wilt u het ons dan laten weten. > ------------------------------------------------------------------------ > ------ > This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. If you have received this e-mail in error please notify the > system manager. > ------------------------------------------------------------------------ > ------ > ------------------------------------------------------------------------ ------ > Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam > Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, > E-mail post at ingbcc.nl > Internet www.ingbcc.nl > ------------------------------------------------------------------------ ------ > Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn > vertrouwelijk en alleen bedoeld voor het gebruik door de individu of > instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail > onterecht ontvangen heeft wilt u het ons dan laten weten. > ------------------------------------------------------------------------ ------ > This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. If you have received this e-mail in error please notify the > system manager. > ------------------------------------------------------------------------ ------ > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ From d.huisman at INGBCC.NL Mon Mar 14 08:40:19 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Mon, 14 Mar 2005 17:40:19 +0100 Subject: refresh Message-ID: Hi, I use the PHP/mapscript with the rosa applet. It works fine. But when i zoom the rectangle doesn't refresh. See the attached picture and you'll see what i mean. Is this problem caused by the applet? Is there a solution for this? Best regards, Dirk Jan ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ -------------- next part -------------- A non-text attachment was scrubbed... Name: refresh.jpg Type: image/jpeg Size: 29316 bytes Desc: refresh.jpg URL: From kenlord at GMAIL.COM Mon Mar 14 09:11:04 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Mon, 14 Mar 2005 09:11:04 -0800 Subject: refresh In-Reply-To: Message-ID: Hi Dirk, I cant say that I've seen that problem, but I would like to add that often for me the Rosa applet has another problem where one or more of its buttons disappear from the map randomly. Sometimes clearing your cache of java applets helps to fix it, but usually not for long. And on a new windows xp sp2 machine the applet woouldn't load the picture properly, the picture only being visible the insant you click a tool on it. This isn't the Rosa list, but perhaps other's here have some hints for us. Cheers, Ken Lord Vancouver BC On Mon, 14 Mar 2005 17:40:19 +0100, Dirk-Jan Huisman wrote: > Hi, > > I use the PHP/mapscript with the rosa applet. It works fine. But when i > zoom the rectangle doesn't refresh. See the attached picture and you'll > see what i mean. > Is this problem caused by the applet? Is there a solution for this? > > Best regards, > Dirk Jan > > ------------------------------------------------------------------------------ > Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam > Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, > E-mail post at ingbcc.nl > Internet www.ingbcc.nl > ------------------------------------------------------------------------------ > Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. > ------------------------------------------------------------------------------ > This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. > ------------------------------------------------------------------------------ > From jean-guilhem.cailton at TISCALI.FR Mon Mar 14 09:27:38 2005 From: jean-guilhem.cailton at TISCALI.FR (Jean-Guilhem Cailton) Date: Mon, 14 Mar 2005 18:27:38 +0100 Subject: Problems with mime type in WMS capabilities request Message-ID: Hello, As a workaround, you should also be able to associate this mime type with your browser itself (when your browser asks you how to open the file, select the browser itself.) It works for me using Firefox, Mozilla or IE. The browser then opens the "downloaded file" into a new tab or window. Best regards, Jean-Guilhem ----- Message d'origine ----- De : "Bart van den Eijnden" ? : Envoy? : vendredi 11 mars 2005 19:27 Objet : Re: [UMN_MAPSERVER-USERS] Problems with mime type in WMS capabilities request Hi, there is no way to control it since it required by the OGC specification (at least WMS 1.1.X), except for changing the source code and recompile. Or use &version=1.0.7 instead. Those other services are not fully OGC complaint, since the spec states you have to use application/vnd.ogc.wms_xml for a GetCapabilities response. See also: http://cite.occamlab.com/test_engine/wms_1_1_1/files/wms_assertions/ testcase: "ms/wmsops/getcapabilities/response/1" When a GetCapabilities request is made, then the content-type header of the response is application/vnd.ogc.wms_xml Best regards, Bart On Fri, 11 Mar 2005 18:06:01 +0000, Nuno GIL wrote: > Hi, > But is there any way of controlling the capabilities output mime type > in MapServer? > If I test other services, also WMS 1.1 compliant, their capabilities > document is automatically show on the browser... > Thanks in advance, > Nuno > > > On Fri, 11 Mar 2005 18:14:35 +0100 (CET), bartvde at xs4all.nl > wrote: >> Hi Nuno, >> >> this was something introduced by OGC in WMS spec 1.1, they invented >> their >> own mime types, but ofcourse no single browser interprets things like: >> application/vnd.ogc.se_xml. >> >> In WMS 1.3 they have changed the MIME type for capabilities back to >> text/xml AFAIK. >> >> Best regards, >> Bart >> >> > Dear Listers, >> > When I request a getcapabilites from our server >> > >> (http://iceds.ge.ucl.ac.uk/cgi-bin/wms?map=wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities), >> > the capabilities file type that is returned is not recognized as XML >> > and not displayed immediately on the browser... To go around this I >> > simply rename the file adding an XML extension to it. This may have to >> > do with a wrong mimetype configuration... >> > Any ideas how to sort this out? >> > Regards, >> > Nuno >> > >> >> > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From rodrigo.lists at FABRICADEIDEIAS.COM Mon Mar 14 10:07:57 2005 From: rodrigo.lists at FABRICADEIDEIAS.COM (Rodrigo Severo) Date: Mon, 14 Mar 2005 15:07:57 -0300 Subject: PHP/MapScript preventing proper working of MapServer (was: Newbie stucked - no maps at all.) In-Reply-To: Message-ID: Hi, No answer from the list, but I managed to find the apparent root of all my problems: php/mapscript. I only removed --with-php from my configure and everything else started working for the first time. I currently have the following mapserver installation: MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE Both MSAutoTests and MapServer demo are working fine. I will start working on my application now. This setup uses MapServer 4.4.1, GDAL 1.2.5, Proj 4.4.8, php 4.3.10, GD 2.0.32, Freetype 2.1.5 and Apache 1.3.33 over Linux 2.6.9. I mentioned php just for the sake of completeness as it's sadly unusable right now. My advice is: keep away from php/mapscript by now. I couldn't find anything wrong with my setup so I'm assuming php/mapscript it to blame for all my prior difficulties. If anyone more knowledgeable is interested in looking at this issue, I can help testing, debuging etc. I would really prefer to access MapServer from php instead of through CGI but I'm clueless where else to look for fixes related to php/mapscript. Thanks again, Rodrigo Severo Rodrigo Severo wrote: >Hi, > > >I have, apparently, installed mapserver and php/mapscript just fine but I >can't make any of them to produce one single map. I've already tried >php/mapscript, mapserver's demo and MSAutoTest. > > From assefa at DMSOLUTIONS.CA Mon Mar 14 12:10:46 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 14 Mar 2005 15:10:46 -0500 Subject: refresh In-Reply-To: Message-ID: Did you built the applet from source or got only the jar from the download ? I think I remeber a simpilar problem happenning with PNG24 images. Is it your case or does it happen all image types Later, Dirk-Jan Huisman wrote: > Hi, > > I use the PHP/mapscript with the rosa applet. It works fine. But when i > zoom the rectangle doesn't refresh. See the attached picture and you'll > see what i mean. > Is this problem caused by the applet? Is there a solution for this? > > > Best regards, > Dirk Jan > > ------------------------------------------------------------------------------ > Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam > Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, > E-mail post at ingbcc.nl > Internet www.ingbcc.nl > ------------------------------------------------------------------------------ > Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. > ------------------------------------------------------------------------------ > This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Saul.Farber at STATE.MA.US Mon Mar 14 12:39:37 2005 From: Saul.Farber at STATE.MA.US (Farber, Saul (ENV)) Date: Mon, 14 Mar 2005 15:39:37 -0500 Subject: Mapserver and SDE, one trivial question, one informational question Message-ID: Hello Mapserver Gurus, First off, thanks much for such a wonderful project. You guys are truly making some incredible software and it's exciting to know that this level of experience is helping so many people. Two questions. 1) I have the following .map file: MAP DEBUG ON CONFIG PROJ_LIB ../mapserver-bundle-4.4.1/proj-4.4.9/share/proj NAME test STATUS on UNITS meters EXTENT 221593.91942230912 882446.3536074255 253829.55453864884 914171.7844269598 SIZE 800 600 WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" LOG "/tmp/mapserver.log" END LAYER CONNECTIONTYPE sde CONNECTION "localhost,port:5151,xxx,xxx,xxx" DATA "MYLAYER_ARC,shape" DEBUG ON NAME roads FILTER "where ADMIN_TYPE is not NULL" STATUS on TYPE line CLASS DEBUG ON NAME "Roads" COLOR 10 10 10 SYMBOL 1 END END END The point of this layer is to classify roads with an admin_type of 1 (hence the filter) into many different thematic classes. Some in red, some in blue, some in black, etc. I have tried many different EXPRESSION lines in the CLASS section. Here are some examples: EXPRESSION "[ADMIN_TYPE] = 1" EXPRESSION "'[ADMIN_TYPE]' = 1" EXPRESSION "'[ADMIN_TYPE]' = '1'" EXPRESSION "'[ADMIN_TYPE]' eq 1" EXPRESSION "'[ADMIN_TYPE]' eq '1'" EXPRESSION "'[ADMIN_TYPE]' IN '1'" EXPRESSION "'[ADMIN_TYPE]' LIKE '%1%'" Etc. I've tried all the combinations of attribute name and quotes/operators I can think of. I've tried the attribute name fully qualified, partially qualified and unqualified (as above). In all cases, I get a completely blank map, as though no features are selected by the expression. Any hints on what I should be putting in for the expression? Are Expressions supported in SDE layers? 2) Completely unrelated to the first question: how does mapserver handle Database connections (SDE in particular) with regards to scalability? Are new DB connections created every time that a map request is sent? Are database connections pooled in any way? Are the different layers in a map request rendered sequentially, or in parallel? Thanks once again for a great project. --saul GIS Web Services MassGIS - Executive Office of Environmental Affairs 251 Causeway Street 5th Floor Boston, MA 02114 617-626-1145 From pramsey at REFRACTIONS.NET Mon Mar 14 13:15:07 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Mon, 14 Mar 2005 13:15:07 -0800 Subject: Mapserver and SDE, one trivial question, one informational question In-Reply-To: Message-ID: Farber, Saul (ENV) wrote: > > 2) Completely unrelated to the first question: how does mapserver > handle Database connections (SDE in particular) with regards to > scalability? Better now than before. If you run in "fast cgi" mode, you can cut down on the large SDE connection overhead. We have benchmarked fcgi mapserver very competitively against IMS. > Are new DB connections created every time that a map request is sent? Not in fcgi mode. > Are database connections pooled in any way? In fcgi, they are pooled in a per-database way. > Are the different layers in > a map request rendered sequentially, or in parallel? Sequentially for most data sources, in parallel for WMS client requests (sort of, the HTTP requests go out in parallel, the rendering is still serial once they have all returned). Yours, Paul From numerous at GMAIL.COM Mon Mar 14 14:13:18 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Mon, 14 Mar 2005 16:13:18 -0600 Subject: gdaltindex in DOS Message-ID: Hi, I need help on using gdaltindex command in DOS on my Windows machine. I have 78 shape files for each county in the state of Oklahoma. I want to make them load fast as I zoom into a specific portion of the map. I used these instructions http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?BathymetryHowTo But, I can't seem to get it working. All of my shape files are in C:\its\Apache2\htdocs\statewide\shape_files\tile folder My gdaltindex utility is in C:\its\GDAL\125\bin folder My first question is - What's the difference between "tileindex shape file" and "shptree index" ? I can see that I need to first create tileindex shape file and only then shptree index. I tried the following command: for %f in (C:\its\Apache2\htdocs\statewide\shape_files\tile*.shp) do gdaltindex index.shp %f - I found this comand on the forum. I didn't get any eror messages, but at the same time my shape files did not change and no new files were created. Could anyone please tell me what are the steps and syntaxis that I should use to create tileindex in DOS environment? I really appreciate your help!!! Feel free to email numerous at gmail.com Thank you! From ealpert at DIGITALGLOBE.COM Mon Mar 14 14:18:01 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Mon, 14 Mar 2005 15:18:01 -0700 Subject: gdaltindex in DOS Message-ID: Gdalindex is for indexing images not shapefiles. From hobu at IASTATE.EDU Mon Mar 14 14:21:07 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Mon, 14 Mar 2005 16:21:07 -0600 Subject: Mapserver and SDE, one trivial question, one informational question Message-ID: Forgot to cc the list ;) At 4:15 PM -0600 3/14/05, Howard Butler wrote: >Saul, > >> >>I have tried many different EXPRESSION lines in the CLASS section. Here >>are some examples: >>EXPRESSION "[ADMIN_TYPE] =3D 1" >>EXPRESSION "'[ADMIN_TYPE]' =3D 1" >>EXPRESSION "'[ADMIN_TYPE]' =3D '1'" >>EXPRESSION "'[ADMIN_TYPE]' eq 1" >>EXPRESSION "'[ADMIN_TYPE]' eq '1'" >>EXPRESSION "'[ADMIN_TYPE]' IN '1'" >>EXPRESSION "'[ADMIN_TYPE]' LIKE '%1%'" >> >>Etc. >> >>I've tried all the combinations of attribute name and quotes/operators I >>can think of. I've tried the attribute name fully qualified, partially >>qualified and unqualified (as above). >> >>In all cases, I get a completely blank map, as though no features are >>selected by the expression. Any hints on what I should be putting in >>for the expression? Are Expressions supported in SDE layers? > >Expressions are supported, and I've often had some trouble getting >them to go as well. Here is an example that works for me. Also, as >you are already doing, make sure to have a filter set to query out >the NULL values or the expression parser will choke on them. > > CLASS > NAME "My class" > EXPRESSION ([CODE] = 310) > STYLE > COLOR 255 0 0 > END > END > > >> >> >>2) Completely unrelated to the first question: how does mapserver >>handle Database connections (SDE in particular) with regards to >>scalability? > >If you are using MapServer in regular CGI or MapScript mode, a new >SDE connection is made for each map request. This can consume SDE >connections, especially if Apache is hanging on to them for an >HTTP_WAIT or you have many multiple requests coming in. > >The other approach is to use FastCGI in combination with SDE. >MapServer has FastCGI support thanks to Frank Warmerdam, and SDE >supports connection/layerinfo pooling through this mechanism. >FastCGI allows SDE to share connections and layer information so >that subsequent requests do not require additional connections to >SDE. > >Even with FastCGI, however, I've found that SDE's connection count >seems to be consumed with multiple subsequent requests because of >how SDE does its connection accounting. I've bumped my SDE >connection limits high enough to not have this problem, but if you >don't have enough licenses, or enough memory in your SDE server, >this can be a problem. > >HTH > >Howard From Saul.Farber at STATE.MA.US Mon Mar 14 14:28:30 2005 From: Saul.Farber at STATE.MA.US (Farber, Saul (ENV)) Date: Mon, 14 Mar 2005 17:28:30 -0500 Subject: Mapserver and SDE, one trivial question, one informationalquestion Message-ID: Thanks howard, that did the trick! The quotes around things were fudging up my results. --saul -----Original Message----- From: Howard Butler [mailto:hobu at iastate.edu] Sent: Monday, March 14, 2005 4:07 PM To: Farber, Saul (ENV) Subject: Re: Mapserver and SDE, one trivial question, one informationalquestion Saul, > >I have tried many different EXPRESSION lines in the CLASS section. >Here are some examples: EXPRESSION "[ADMIN_TYPE] =3D 1" >EXPRESSION "'[ADMIN_TYPE]' =3D 1" >EXPRESSION "'[ADMIN_TYPE]' =3D '1'" >EXPRESSION "'[ADMIN_TYPE]' eq 1" >EXPRESSION "'[ADMIN_TYPE]' eq '1'" >EXPRESSION "'[ADMIN_TYPE]' IN '1'" >EXPRESSION "'[ADMIN_TYPE]' LIKE '%1%'" > >Etc. > >I've tried all the combinations of attribute name and quotes/operators >I can think of. I've tried the attribute name fully qualified, >partially qualified and unqualified (as above). > >In all cases, I get a completely blank map, as though no features are >selected by the expression. Any hints on what I should be putting in >for the expression? Are Expressions supported in SDE layers? Expressions are supported, and I've often had some trouble getting them to go as well. Here is an example that works for me. Also, as you are already doing, make sure to have a filter set to query out the NULL values or the expression parser will choke on them. CLASS NAME "My class" EXPRESSION ([CODE] = 310) STYLE COLOR 255 0 0 END END > > >2) Completely unrelated to the first question: how does mapserver >handle Database connections (SDE in particular) with regards to >scalability? If you are using MapServer in regular CGI or MapScript mode, a new SDE connection is made for each map request. This can consume SDE connections, especially if Apache is hanging on to them for an HTTP_WAIT or you have many multiple requests coming in. The other approach is to use FastCGI in combination with SDE. MapServer has FastCGI support thanks to Frank Warmerdam, and SDE supports connection/layerinfo pooling through this mechanism. FastCGI allows SDE to share connections and layer information so that subsequent requests do not require additional connections to SDE. Even with FastCGI, however, I've found that SDE's connection count seems to be consumed with multiple subsequent requests because of how SDE does its connection accounting. I've bumped my SDE connection limits high enough to not have this problem, but if you don't have enough licenses, or enough memory in your SDE server, this can be a problem. HTH Howard From numerous at GMAIL.COM Mon Mar 14 15:24:57 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Mon, 14 Mar 2005 17:24:57 -0600 Subject: gdaltindex in DOS Message-ID: Thank You Ethan! Is tile4ms my only option for tiling shapefiles then? I've heard that tile4ms won't improve my performance. If yes, what is the correct order if geting tile4ms to work in DOS? Here is the way I tried it before. I created an index file containing the paths to and names of my shapefiles (I did it half-manually, since dir \a \o:gen > data_dir.in creates an index of every file, including dbf, not only .shp) Next, I ran tile4ms data_dir.in data-tile command and I got a dbf type mismatch error message (sorry can't tell exact error message since I'm on my laptop, not at work) I also know from the following link that, qoute: "One of the caveats of this is that all the shapefiles in the index MUST have the SAME attributes and order of attributes and they must be all the same type." Which atributes, order and type? http://lists.umn.edu/cgi-bin/wa?A2=ind0502&L=mapserver- users&T=0&F=&S=&X=5990007F5C894A6EE4&Y=numerous at gmail.com&P=83312 Does anyone know the syntax for tile4ms in DOS? Thank You! From ealpert at DIGITALGLOBE.COM Mon Mar 14 15:34:30 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Mon, 14 Mar 2005 16:34:30 -0700 Subject: gdaltindex in DOS Message-ID: The DBF file part of shapefiles contains values (attributes) that are associated with each shape. It sounds like the DBF files of each shapefile have different attribute names and types so they can't be tiled. Basically to use tiling your shapefiles must all represent the same types of features. So you won't be able to tile say a streets shapefile with a highways shapefile unless you make sure the entries in the DBF files have the same name and types across files. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Yar Doroshenko Sent: Monday, March 14, 2005 4:25 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] gdaltindex in DOS Thank You Ethan! Is tile4ms my only option for tiling shapefiles then? I've heard that tile4ms won't improve my performance. If yes, what is the correct order if geting tile4ms to work in DOS? Here is the way I tried it before. I created an index file containing the paths to and names of my shapefiles (I did it half-manually, since dir \a \o:gen > data_dir.in creates an index of every file, including dbf, not only .shp) Next, I ran tile4ms data_dir.in data-tile command and I got a dbf type mismatch error message (sorry can't tell exact error message since I'm on my laptop, not at work) I also know from the following link that, qoute: "One of the caveats of this is that all the shapefiles in the index MUST have the SAME attributes and order of attributes and they must be all the same type." Which atributes, order and type? http://lists.umn.edu/cgi-bin/wa?A2=ind0502&L=mapserver- users&T=0&F=&S=&X=5990007F5C894A6EE4&Y=numerous at gmail.com&P=83312 Does anyone know the syntax for tile4ms in DOS? Thank You! From numerous at GMAIL.COM Mon Mar 14 16:43:04 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Mon, 14 Mar 2005 18:43:04 -0600 Subject: TILE4MS syntax needed for DOS Message-ID: Thank You Ethan! Would anyone have an example of using tile4ms in DOS environment? Again, I'm working with shapefiles. Please see my previous messages above. From wlx at MYGIS.ORG Mon Mar 14 18:37:25 2005 From: wlx at MYGIS.ORG (wlx) Date: Tue, 15 Mar 2005 10:37:25 +0800 Subject: how to use java mapscript in tomcat4/jsp environment? Message-ID: Hi list, I have compiled java mapscript with mapserver 4.4.1 in my system,but I don't know how to use it. My system is Debian sarge,and I compiled mapserver with: ./configure --with-gd=/usr --with-gdal=/usr/bin/gdal-config --with-ogr --with-proj --with-threads make cd mapscript/java make make test cp *.so /usr/lib/jni/ cp *.jar /usr/share/tomcat4/common/lib Are there something wrong? I even copy the jar file to tomcat4 webapps/ROOT/WEB-INF/lib/. But when I want to create a simple test jsp file with java mapscript, just create a new mapObj,errors happened. So is there a simple introduction with java mapscript or a simple example? Best wish, Sincerely yours, Liangxu Wang From ed at TOPOZONE.COM Mon Mar 14 18:59:47 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 14 Mar 2005 21:59:47 -0500 Subject: TILE4MS syntax needed for DOS Message-ID: Yar - I'll try to cover all your issues - tile4ms should not be difficult to use. 1. There's nothing special about using tile4ms on DOS (Windows, I presume). 2. tile4ms and gdaltindex perform completely analogous services, one for shapefiles and one for raster images. I don't know why you think tile4ms wouldn't improve your performance. 3. tile4ms allows you to take multiple shapefiles and treat them as a single logical shapefile. 4. tile4ms doesn't quite "improve" the performance of your 78 independent shapefiles - it simply makes them easier to manage, since you can treat them all in a single MapServer layer rather than having 78 different LAYER blocks in your map file, one for each shapefile. However, you could obtain the same result by merging your 78 shapefiles into a single shapefile. That would give you POORER performance (in most common cases) so in that sense the tile4ms approach gives you better performance than that likely alternative. 5. You can use wildcards like "dir *.shp >tile4ms.in" to cover all the SHP files without getting the DBF files. 6. It appears that you are now using tile4ms properly, and you're doing all the right steps. You are getting an error message that the shapefile attributes do not match, and you must fix that if you're going to use tile4ms. As I said above, tile4ms makes multiple input shapefiles act like a single logical shapefile; to do that, they all have to look the same, as if they were pieces of the same shapefile. If you're getting that error message, then the attribute tables (the .DBF files) are not the same for each shapefile. If you look at the DBF files in a database program, or if you load the shapefiles into ESRI software or other shapefile viewers, you can look at the "attributes" of the shapefile. You will see that the file causing the error does not have the same columns with the same properties as the other files. This is a fatal problem for tile4ms. If, for example, 77 of your shapefiles have a "POPULATION" column/attribute and one does not, tile4ms cannot treat them as one logical file. The input files must all have the same columns, in the same order. You can also use the dbfdump utility (part of the shapelib distribution) as a command-line tool to examine the contents of your 78 shapefiles. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Yar Doroshenko Sent: Monday, March 14, 2005 7:43 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TILE4MS syntax needed for DOS Thank You Ethan! Would anyone have an example of using tile4ms in DOS environment? Again, I'm working with shapefiles. Please see my previous messages above. From mdieterich at GMAIL.COM Mon Mar 14 19:06:51 2005 From: mdieterich at GMAIL.COM (Mark Dieterich) Date: Mon, 14 Mar 2005 22:06:51 -0500 Subject: problems with tileindex... Message-ID: Hi everyone, I'm a newbie to mapserver. Having worked my way through the tutorials and created a few maps using my own data, I'm trying to get tiled shapefiles working. I've created the index shapefile and ogrinfo seems to be able to read it just fine. However, when I point mapserver at a map file with the TILEINDEX defined, it returns and error: msDrawMap(): Image handling error. Failed to draw layer named 'roads' msTiledSHPOpenFile(): SDE error. Tileindex layer must be a shapefile. I'm totally confused because everything I reference is a shapefile ;) Here are the relevant sections of my map file: SHAPEPATH /data LAYER NAME roads TILEINDEX roads under /data, I have roads.[dbf,shp,shx], which references tiles/a, tiles/b, tiles/c in the location field. The corresponding tiles/[a,b,c].[dbf,shp,shx] all exist. I tested with tiles/[a,b,c] in a standalone map file and they looked okay. I must be missing something here, but for the life of me I can't figure out what it is. I don't actually need to reference DATA anywhere, do I? Thanks! Mark From steveb at BUNDABERG.QLD.GOV.AU Mon Mar 14 21:11:34 2005 From: steveb at BUNDABERG.QLD.GOV.AU (Steven Bowden) Date: Mon, 14 Mar 2005 23:11:34 -0600 Subject: Mapserver 4.4.1 with postgis 1rc3 Message-ID: Hi List, I am in the process of upgrading from mapserver 3.6.6 and postgis 0.7.1 running on the one machine to mapserver 4.4.1 and postgis 1rc3, both running on separate machines. I have pretty much got the upgrade of mapserver working ok but I am having troubles getting the upgrade of postgis working. I can get my mapserver3 and mapserver4 app working using postgis 0.7.1 but I can't get any data layers drawing from postgis1rc3. Mapserver config MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Layer config in map file LAYER NAME house_nos CONNECTIONTYPE postgis CONNECTION "user=xxx dbname=xxx host=xxx" TYPE annotation DEBUG on STATUS on DATA "the_geom from housenos" LABELITEM "tag" LABELMAXSCALE 1500 LABELCACHE on CLASS LABEL TYPE truetype POSITION CC FONT f16 FORCE true ANTIALIAS true SIZE 10 COLOR 254 0 0 OUTLINECOLOR 254 254 254 END END END I suspect that it is something to do with the way that the geometry is stored in postgres. In postgis 0.7.1 it is stored as what I assume is the well known text format but in postgis1rc3 it looks like it is stored in well known binary format. So my questions are: Will mapserver 4.4.1 work with postgis1rc3? If so what other options do I need to enable in the configuration of mapserver? Is it possible to mix and match mapserver postgis layers between the different postgis versions? ie Layer 1 connects to postgis 0.7.1 and Layer 2 connects to postgis1rc3 both to be drawn on the one map. Here is a sample of how the data is stored in postgis 0.7.1 select * from housenos ; gid | tag | the_geom -------+------+------------------------------------------- 0 | 62 | SRID=-1;POINT(433634.63353 7252530.30099) 1 | 60 | SRID=-1;POINT(433632.24681 7252510.01592) 2 | 58 | SRID=-1;POINT(433629.46231 7252490.52634) Here is how it is stored in postgis1rc3 select * from housenos ; gid | tag | the_geom -----+------+-------------------------------------------- 0 | 62 | 01010000009C16BC888A771A41906B43938CAA5B41 1 | 60 | 0101000000B9C2BBFC80771A4152D5048187AA5B41 2 | 58 | 0101000000EACA67D975771A41F88DAFA182AA5B41 And here is how it is when it is returned as text select gid, tag, astext(the_geom) from housenos ; gid | tag | astext -----+------+----------------------------------- 0 | 62 | POINT(433634.63353 7252530.30099) 1 | 60 | POINT(433632.24681 7252510.01592) 2 | 58 | POINT(433629.46231 7252490.52634) So I am pretty sure that my postgis setup is ok. Any suggestions would be greatly appreciated. Regards Steve From pramsey at REFRACTIONS.NET Mon Mar 14 21:45:45 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Mon, 14 Mar 2005 21:45:45 -0800 Subject: Mapserver 4.4.1 with postgis 1rc3 In-Reply-To: Message-ID: Steven, PostGIS stores data in it's own internal structure, neither WKB nor WKT, what you see on the commandline is the "canonical format" (the default text representation) which was changed from WKT-ish to WKB-ish in order to make dump-n-restore more accurate. Anyways, your problem should *not* exist in RC3, so (a) try the CVS head of mapserver and (b) try the CVS head of postgis and (c) if you still get no love send us a dump of your table, or a small portion of it. Thanks, Paul On 14-Mar-05, at 9:11 PM, Steven Bowden wrote: > Hi List, > > I am in the process of upgrading from mapserver 3.6.6 and postgis 0.7.1 > running on the one machine to mapserver 4.4.1 and postgis 1rc3, both > running > on separate machines. > > I have pretty much got the upgrade of mapserver working ok but I am > having > troubles getting the upgrade of postgis working. I can get my > mapserver3 > and mapserver4 app working using postgis 0.7.1 but I can't get any data > layers drawing from postgis1rc3. > > Mapserver config > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS > INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > Layer config in map file > LAYER > NAME house_nos > CONNECTIONTYPE postgis > CONNECTION "user=xxx dbname=xxx host=xxx" > TYPE annotation > DEBUG on > STATUS on > DATA "the_geom from housenos" > LABELITEM "tag" > LABELMAXSCALE 1500 > LABELCACHE on > CLASS > LABEL > TYPE truetype > POSITION CC > FONT f16 > FORCE true > ANTIALIAS true > SIZE 10 > COLOR 254 0 0 > OUTLINECOLOR 254 254 254 > END > END > END > > I suspect that it is something to do with the way that the geometry is > stored in postgres. In postgis 0.7.1 it is stored as what I assume is > the > well known text format but in postgis1rc3 it looks like it is stored > in well > known binary format. > > So my questions are: > Will mapserver 4.4.1 work with postgis1rc3? > > If so what other options do I need to enable in the configuration of > mapserver? > > Is it possible to mix and match mapserver postgis layers between the > different postgis versions? ie Layer 1 connects to postgis 0.7.1 and > Layer 2 > connects to postgis1rc3 both to be drawn on the one map. > > Here is a sample of how the data is stored in postgis 0.7.1 > select * from housenos ; > gid | tag | the_geom > -------+------+------------------------------------------- > 0 | 62 | SRID=-1;POINT(433634.63353 7252530.30099) > 1 | 60 | SRID=-1;POINT(433632.24681 7252510.01592) > 2 | 58 | SRID=-1;POINT(433629.46231 7252490.52634) > > Here is how it is stored in postgis1rc3 > select * from housenos ; > gid | tag | the_geom > -----+------+-------------------------------------------- > 0 | 62 | 01010000009C16BC888A771A41906B43938CAA5B41 > 1 | 60 | 0101000000B9C2BBFC80771A4152D5048187AA5B41 > 2 | 58 | 0101000000EACA67D975771A41F88DAFA182AA5B41 > > And here is how it is when it is returned as text > select gid, tag, astext(the_geom) from housenos ; > gid | tag | astext > -----+------+----------------------------------- > 0 | 62 | POINT(433634.63353 7252530.30099) > 1 | 60 | POINT(433632.24681 7252510.01592) > 2 | 58 | POINT(433629.46231 7252490.52634) > > So I am pretty sure that my postgis setup is ok. > > Any suggestions would be greatly appreciated. > > Regards > Steve From armin.burger at GMX.NET Mon Mar 14 23:01:50 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Tue, 15 Mar 2005 08:01:50 +0100 Subject: MapScript and GeoTiff output Message-ID: Hi everybody, When I use the shp2img tool and select as output format 'GTiff' the tool creates a true GeoTiff, with the georeferencing and coodinates information of the map file. I would like to produce a GeoTiff output with PHP/Mapscript. I tried $mymap->selectOutputFormat("GTiff"); $mapImg = $mymap->draw(); $mapImg->saveWebImage(); using the same mapfile as with shp2img, but the output is just a plain tiff, no georeferencing etc., just pixel coordinates. I this a bug or is just the shp2img (and maybe CGI mapserv) producing true GeoTiffs? I tried it PHP/with Mapserver 4.4 and 4.5. Thanks for any help Armin From fwarmerdam at GMAIL.COM Mon Mar 14 23:48:54 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 15 Mar 2005 02:48:54 -0500 Subject: MapScript and GeoTiff output In-Reply-To: <72RdPNr2N7rrHoSxxSPiP8j2lqL1bVdLUgkqIGJH4rX@akmail> Message-ID: On Tue, 15 Mar 2005 08:01:50 +0100, Armin Burger wrote: > Hi everybody, > > When I use the shp2img tool and select as output format 'GTiff' the tool creates a true GeoTiff, with the georeferencing and coodinates information of the map file. > > I would like to produce a GeoTiff output with PHP/Mapscript. I tried > > $mymap->selectOutputFormat("GTiff"); > $mapImg = $mymap->draw(); > $mapImg->saveWebImage(); > > using the same mapfile as with shp2img, but the output is just a plain tiff, no georeferencing etc., just pixel coordinates. I this a bug or is just the shp2img (and maybe CGI mapserv) producing true GeoTiffs? I tried it PHP/with Mapserver 4.4 and 4.5. Armin, I think the problem is that the saveWebImage() call does not include the map, and without the map, MapServer is unable to associate a projection and extent with the file. It looks like the saveImage() method would do the trick, but you will need to supply an explicit filename yourself, and also the map object used to render it (for georeferencing). Perhaps: $mymap->selectOutputFormat("GTiff"); $mapImg = $mymap->draw(); $mapImg->saveImage("/tmp/my.tif", $mymap); 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 hypery2kus at YAHOO.COM Tue Mar 15 00:03:07 2005 From: hypery2kus at YAHOO.COM (Lawal Olanrewaju) Date: Tue, 15 Mar 2005 08:03:07 +0000 Subject: Tutorial Example1-9 Message-ID: Hi Everyone I am a new to Mapserver and I am kind of stuck at example1-9 of the Tutorial. The second map is not displayed I only get the message submit query in this box. And if click on this box I get at error message like this msEvalRegex(): Regular expression error. String ([map]) failed expression test. Can anyone help me out Thanks Olanrewaju Lawal Institute for Soil Science and Land Evaluation (310) University of Hohenheim 70599, Stuttgart Germany Office. +497114593633 Mob. +491797397160 Send instant messages to your online friends http://uk.messenger.yahoo.com From armin.burger at GMX.NET Tue Mar 15 04:22:31 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Tue, 15 Mar 2005 13:22:31 +0100 Subject: MapScript and GeoTiff output Message-ID: Frank, thanks a lot, that did the trick. Armin > On Tue, 15 Mar 2005 08:01:50 +0100, Armin Burger > wrote: > > Hi everybody, > > > > When I use the shp2img tool and select as output format 'GTiff' the tool > creates a true GeoTiff, with the georeferencing and coodinates information > of the map file. > > > > I would like to produce a GeoTiff output with PHP/Mapscript. I tried > > > > $mymap->selectOutputFormat("GTiff"); > > $mapImg = $mymap->draw(); > > $mapImg->saveWebImage(); > > > > using the same mapfile as with shp2img, but the output is just a plain > tiff, no georeferencing etc., just pixel coordinates. I this a bug or is > just the shp2img (and maybe CGI mapserv) producing true GeoTiffs? I tried it > PHP/with Mapserver 4.4 and 4.5. > > Armin, > > I think the problem is that the saveWebImage() call does not include the > map, and without the map, MapServer is unable to associate a > projection and extent with the file. It looks like the saveImage() method > would do the trick, but you will need to supply an explicit filename > yourself, and also the map object used to render it (for georeferencing). > > Perhaps: > > $mymap->selectOutputFormat("GTiff"); > $mapImg = $mymap->draw(); > $mapImg->saveImage("/tmp/my.tif", $mymap); > > 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 > -- SMS bei wichtigen e-mails und Ihre Gedanken sind frei ... Alle Infos zur SMS-Benachrichtigung: http://www.gmx.net/de/go/sms From jcradock at ME3.COM Tue Mar 15 04:39:03 2005 From: jcradock at ME3.COM (James Cradock) Date: Tue, 15 Mar 2005 07:39:03 -0500 Subject: Raster Layers In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8188163@ptolemy.topozone.com> Message-ID: Thanks, Ed. Configuring '--without-tiff' was it. Jim On Mar 14, 2005, at 9:34 AM, Ed McNierney wrote: > JC - > > Not common, but you should rebuild MapServer WITHOUT "INPUT=TIFF" > support. I'm assuming your rasters are TIFF images, and the GDAL > library provides much better support for TIFF than the former > standalone > TIFF library. If I recall correctly, I think the default configuration > does not include INPUT=TIFF support, so you may have added it when you > configured MapServer. Reconfigure it without TIFF support and you'll > let GDAL provide TIFF support. > > If you still have trouble, please provide more details about the image > you're using and how you're using it. Thanks! > > - Ed > > Ed McNierney > TopoZone.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > Behalf Of James Cradock > Sent: Monday, March 14, 2005 8:50 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Raster Layers > > I've installed MapServer 4.4.1, and shapefiles are rendering well, but > raster layers are not. This is on Debian, and GDAL was installed from > APT. (MapServer is *not* in APT.) Info: > > ./mapserv -v > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE > > The GDAL utilities (gdalinfo, gdal_translate) appear to work fine -- > I'm just not getting rasters from MapServer. > > Common problem? > > JC > > ----- > James Cradock, jcradock at me3.com > > ----- James Cradock, jcradock at me3.com me3 Technology Consultants, LLC 24 Preble Street, 2nd Floor Portland, ME 04101 207-772-3217 (office) 207-838-8678 (mobile) www.me3.com From burnsy at VIVIDFISH.CO.UK Tue Mar 15 05:52:06 2005 From: burnsy at VIVIDFISH.CO.UK (Carl Burn) Date: Tue, 15 Mar 2005 13:52:06 +0000 Subject: image generation help please Message-ID: Hello All, I have a mapping project completed in maplab which shows a base raster layer with several layers sourced from shapefiles. A last minute request has been handed in and Iam just wondering if someone can help me out. I now need to be able to generate a map image directly from mapserver, I need to use a unique identifier and pull out a map image centered on this item in a layer at a predetermined zoom factor. I think I can do this using the cgi interface, as I will be able to use scripting to generate the url request and each itme in the layer has a unique identifier this should be possible but iam not sure of the query string I need to use. Any help much appreciated. Thanks burnsy From btenbroeck at ITSSG.COM Tue Mar 15 05:43:25 2005 From: btenbroeck at ITSSG.COM (Bill TenBroeck) Date: Tue, 15 Mar 2005 07:43:25 -0600 Subject: SDE on SQL Server Message-ID: Has anyone had any luck connecting using the "Single database Model" on SQL Server. (Each DB stands alone and has its own service and port number.) I have 2 servers set up, one using the "multiple database model" and can connect to Mapserver successfully. Against the single database model server I'm getting the following error: msSDELayerOpen(): SDE error. SE_connection_create(): Invalid database name. (-162) I am using the following in the layer definition: CONNECTIONTYPE SDE CONNECTION "BILLP4,port:5155,sde,xxx,xxx" DATA "BOUND_SDE.SDE.STATESP020,SHAPE" On the DATA line I have tried every permutation I can think of; the example shown is the way it shows up in ArcExplorer. From unicoletti at PROMETEO.IT Tue Mar 15 06:01:17 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Tue, 15 Mar 2005 15:01:17 +0100 Subject: how to use java mapscript in tomcat4/jsp environment? In-Reply-To: Message-ID: On Tue, 2005-03-15 at 10:37 +0800, wlx wrote: > Hi list, > I have compiled java mapscript with mapserver 4.4.1 in my system,but I > don't know how to use it. My system is Debian sarge,and I compiled mapserver > with: > > ./configure --with-gd=/usr --with-gdal=/usr/bin/gdal-config --with-ogr > --with-proj --with-threads > make > cd mapscript/java > make > make test > cp *.so /usr/lib/jni/ > cp *.jar /usr/share/tomcat4/common/lib > > Are there something wrong? I even copy the jar file to tomcat4 > webapps/ROOT/WEB-INF/lib/. > But when I want to create a simple test jsp file with java mapscript, just > create a new mapObj,errors happened. > What kind of errors do you get? Umberto > So is there a simple introduction with java mapscript or a simple example? > > Best wish, > > Sincerely yours, > > Liangxu Wang -- Umberto Nicoletti | We are Pentium of Borg. +390415701366 unicoletti at prometeo.it | Division is futile. Prometeo S.R.L. The Software Experience | You will be approximated. From d.huisman at INGBCC.NL Tue Mar 15 06:19:38 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Tue, 15 Mar 2005 15:19:38 +0100 Subject: refresh Message-ID: It happens all image types. On the rosa list someone has the same problem. The question was not answered. -----Oorspronkelijk bericht----- Van: Yewondwossen Assefa [mailto:assefa at DMSOLUTIONS.CA] Verzonden: maandag 14 maart 2005 21:11 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] refresh Did you built the applet from source or got only the jar from the download ? I think I remeber a simpilar problem happenning with PNG24 images. Is it your case or does it happen all image types Later, Dirk-Jan Huisman wrote: > Hi, > > I use the PHP/mapscript with the rosa applet. It works fine. But when i > zoom the rectangle doesn't refresh. See the attached picture and you'll > see what i mean. > Is this problem caused by the applet? Is there a solution for this? > > > Best regards, > Dirk Jan > > ------------------------------------------------------------------------ ------ > Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam > Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, > E-mail post at ingbcc.nl > Internet www.ingbcc.nl > ------------------------------------------------------------------------ ------ > Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. > ------------------------------------------------------------------------ ------ > This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. > ------------------------------------------------------------------------ ------ > > > ------------------------------------------------------------------------ > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ From saintsjd at YAHOO.COM Tue Mar 15 06:33:14 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 15 Mar 2005 06:33:14 -0800 Subject: libcurl error on compile Debian Sarge In-Reply-To: 6667 Message-ID: Trying to compile custom mapserver on Debian sarge. Running make after successful configure command I get the error: /usr/lib/libcurl.so: undefined reference to `tld_strerror' /usr/lib/libcurl.so: undefined reference to `idna_strerror' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 My configuration completes with no errors. The command I use is: ./configure --with-proj --with-threads --with-ogr --with-gdal --with-postgis --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-fastcgi I am using version 7.13.1-1 of libcurl3-dev Thanks Jon From hobu at IASTATE.EDU Tue Mar 15 06:24:59 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Tue, 15 Mar 2005 08:24:59 -0600 Subject: SDE on SQL Server In-Reply-To: Message-ID: Bill, I have confirmed by looking through the code that the "database" argument *is* being passed into the connection creation function, so I don't think that is the problem. Is the name of your "single database model" database actually "sde"? Is the client windows or unix (this shouldn't make much of a difference)? Are there any complicating factors like FastCGI going on here too? Howard >Has anyone had any luck connecting using the "Single database Model" on SQL >Server. (Each DB stands alone and has its own service and port number.) > >I have 2 servers set up, one using the "multiple database model" and can >connect to Mapserver successfully. Against the single database model server >I'm getting the following error: > >msSDELayerOpen(): SDE error. SE_connection_create(): Invalid database name. >(-162) > >I am using the following in the layer definition: > > CONNECTIONTYPE SDE > CONNECTION "BILLP4,port:5155,sde,xxx,xxx" > DATA "BOUND_SDE.SDE.STATESP020,SHAPE" > >On the DATA line I have tried every permutation I can think of; the example >shown is the way it shows up in ArcExplorer. From bpicinbono at WORLDONLINE.FR Tue Mar 15 06:34:29 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Tue, 15 Mar 2005 15:34:29 +0100 Subject: refresh In-Reply-To: Message-ID: Le mardi 15 Mars 2005 15:19, Dirk-Jan Huisman a ?crit?: > It happens all image types. On the rosa list someone has the same > problem. The question was not answered. > > Van: Yewondwossen Assefa [mailto:assefa at DMSOLUTIONS.CA] > Did you built the applet from source or got only the jar from the > download ? I think I remeber a simpilar problem happenning with PNG24 > images. Is it your case or does it happen all image types > > Dirk-Jan Huisman wrote: > > Hi, > > I use the PHP/mapscript with the rosa applet. It works fine. But when > > i zoom the rectangle doesn't refresh. See the attached picture and > > you'll see what i mean. > > Is this problem caused by the applet? Is there a solution for this? Java virtual machine problem ? What OS, browser and java virtual machine do you use ? Blaise From kristjan at TARKVARASTUUDIO.EE Tue Mar 15 06:40:32 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Tue, 15 Mar 2005 16:40:32 +0200 Subject: different layer units Message-ID: Hi, I have two type of Mapinfo layers in my map, in one type map coordinates are meters and in the other kilometers. Output is set to the meters. Is there any chance to view the kilometer-layers without converting them to meters in MapInfo? My problem is that the data comes from the different sources and needs to be updated now and then - so the conversion is not a good option. thanks Kristjan From hobu at IASTATE.EDU Tue Mar 15 07:08:51 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Tue, 15 Mar 2005 09:08:51 -0600 Subject: SDE on SQL Server In-Reply-To: <9891286ED6741D4588883B2128309B6AC12236@ITMAIL2K3.itserve.com> Message-ID: Given that information, I think your CONNECTION and DATA strings should look like this: CONNECTION "BILLP4,port:5155,BOUND_SDE,sde,password" DATA "BOUND_SDE.STATESP020,SHAPE" The 3rd argument there is the dbname, which should be bound_sde. Also, it is generally bad practice to use the "sde" user for anything but maintenance, as it can be confusing, and because user tables can muck up the sde schema (I've never had this cause explicit trouble, but it can make things messy). If you haven't already seen it, I've put together a document on the wiki that outlines some more of this stuff. Howard >Hi Howard. > >No, the database name is BOUND_SDE, the username is "sde". > >I have also tried: >DATA "BOUND_SDE.STATESP020,SHAPE" as well as >DATA "STATESP020,SHAPE" > >The client is windows, and I am not *yet* using FastCGI. (Though that >will likely change, based on one of your recent posts :) > >I also believe service packs are in sync, if that has any bearing. > >Thanks, > >Bill > > > >> -----Original Message----- >> From: Howard Butler [mailto:hobu at iastate.edu] >> Sent: Tuesday, March 15, 2005 9:25 AM >> To: Bill Tenbroeck >> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: SDE on SQL Server >> >> Bill, >> >> I have confirmed by looking through the code that the "database" >> argument *is* being passed into the connection creation function, so >> I don't think that is the problem. Is the name of your "single >> database model" database actually "sde"? >> >> Is the client windows or unix (this shouldn't make much of a >> difference)? Are there any complicating factors like FastCGI going >> on here too? >> >> Howard >> >> >> >> >Has anyone had any luck connecting using the "Single database Model" >on >> SQL >> >Server. (Each DB stands alone and has its own service and port >number.) >> > >> >I have 2 servers set up, one using the "multiple database model" and >can >> >connect to Mapserver successfully. Against the single database model >> server >> >I'm getting the following error: >> > >> >msSDELayerOpen(): SDE error. SE_connection_create(): Invalid database >> name. >> >(-162) >> > >> >I am using the following in the layer definition: >> > >> > CONNECTIONTYPE SDE >> > CONNECTION "BILLP4,port:5155,sde,xxx,xxx" >> > DATA "BOUND_SDE.SDE.STATESP020,SHAPE" >> > >> >On the DATA line I have tried every permutation I can think of; the >> example >> >shown is the way it shows up in ArcExplorer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From genuchten at YAHOO.COM Tue Mar 15 07:04:41 2005 From: genuchten at YAHOO.COM (Paul) Date: Tue, 15 Mar 2005 07:04:41 -0800 Subject: When will a new binary be available? In-Reply-To: Message-ID: Hi list, i had the strange experience that on 1 server (winxp/iis) the current mapserver 441 binary (with oracle) works fine, and on another server (win2000/iis) the same binary doesn't work. The request gives a blank response, so not even 'no querystring to decode'. If i type mapserver.exe on the dos-prompt, i get proper message, 'this program can only be accessed by cgi'. However if i put the current fwtools binary on the malfunctioning server, all works fine, only this binary doesn't have oracle support. Does anybody recognize my problem, or can anybody tell me when a new binary (like on fwtools) will be available? Thanx in advance genuchten.blogspot.com --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhou_naijun at HOTMAIL.COM Tue Mar 15 07:26:17 2005 From: zhou_naijun at HOTMAIL.COM (N Zhou) Date: Tue, 15 Mar 2005 09:26:17 -0600 Subject: WFS filter query Message-ID: Hi, I have a problem of using WFS filter to get data within a bounding box. My WFS post request is: 0,0 505234,5448023 But the mapserver would stop with an error of "Premature end of script headers: mapserv_44.exe" Could anyone tell me why? I know there is a WFS bug of filtering some elements rather than getting all elements. Thank you very much! N. Zhou From bpicinbono at WORLDONLINE.FR Tue Mar 15 07:32:39 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Tue, 15 Mar 2005 16:32:39 +0100 Subject: refresh In-Reply-To: Message-ID: Le mardi 15 Mars 2005 16:13, Dirk-Jan Huisman a ?crit?: > I use: > browser IE 6.0 > OS windows 2000 professional. > java virtual machine is what you get with the installation of windows > 2000. > > Dirk Rosa applet should work with IE on W2K, but with Sun java virtual machine. Can you check which JVM IE is using ? You should find that somewhere in the Advanced Options of IE. If you only have Microsoft's one, I think it won't work properly. You have to dl Sun's one from their site, and then tells IE to use Sun JVM instead of Microsoft's. (Or maybe it could work if you upgrade your Microsoft JVM, because I think I have understood they were trying to stick again to Sun compatibility ? ? ?) Maybe you should try with Firefox or Mozilla because I think they are set to use Sun JVM. Blaise From bartvde at XS4ALL.NL Tue Mar 15 07:33:28 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 15 Mar 2005 16:33:28 +0100 Subject: WFS filter query In-Reply-To: Message-ID: Hi, this works for me: MS_GEOMETRY 121000,469000 140000,470000 Best regards, Bart > Hi, > > I have a problem of using WFS filter to get data within a bounding box. My > WFS post request is: > > > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:gml="http://www.opengis.net/gml" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs" > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> > > > > > 0,0 505234,5448023 > > > > > > > But the mapserver would stop with an error of "Premature end of script > headers: mapserv_44.exe" > Could anyone tell me why? I know there is a WFS bug of filtering some > elements rather than getting all elements. > > Thank you very much! > > N. Zhou > From btenbroeck at ITSSG.COM Tue Mar 15 07:35:44 2005 From: btenbroeck at ITSSG.COM (Bill TenBroeck) Date: Tue, 15 Mar 2005 09:35:44 -0600 Subject: SDE on SQL Server Message-ID: That did the trick. I did need the original form for the DAT string: DATA "BOUND_SDE.SDE.STATESP020,SHAPE" I had looked at the wiki, but was confused at the connection piece re: the sde user. Thanks a bunch! >Given that information, I think your CONNECTION and DATA strings >should look like this: > >CONNECTION "BILLP4,port:5155,BOUND_SDE,sde,password" >DATA "BOUND_SDE.STATESP020,SHAPE" > >The 3rd argument there is the dbname, which should be bound_sde. >Also, it is generally bad practice to use the "sde" user for anything >but maintenance, as it can be confusing, and because user tables can >muck up the sde schema (I've never had this cause explicit trouble, >but it can make things messy). > >If you haven't already seen it, I've put together a document on the >wiki that outlines some more of this stuff. > > >Howard > > >>Hi Howard. >> >>No, the database name is BOUND_SDE, the username is "sde". >> >>I have also tried: >>DATA "BOUND_SDE.STATESP020,SHAPE" as well as >>DATA "STATESP020,SHAPE" >> >>The client is windows, and I am not *yet* using FastCGI. (Though that >>will likely change, based on one of your recent posts :) >> >>I also believe service packs are in sync, if that has any bearing. >> >>Thanks, >> >>Bill >> >> >> >>> -----Original Message----- >>> From: Howard Butler [mailto:hobu at iastate.edu] >>> Sent: Tuesday, March 15, 2005 9:25 AM >>> To: Bill Tenbroeck >>> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: SDE on SQL Server >>> >>> Bill, >>> >>> I have confirmed by looking through the code that the "database" >>> argument *is* being passed into the connection creation function, so >>> I don't think that is the problem. Is the name of your "single >>> database model" database actually "sde"? >>> >>> Is the client windows or unix (this shouldn't make much of a >>> difference)? Are there any complicating factors like FastCGI going >>> on here too? >>> >>> Howard >>> >>> >>> >>> >Has anyone had any luck connecting using the "Single database Model" >>on >>> SQL >>> >Server. (Each DB stands alone and has its own service and port >>number.) >>> > >>> >I have 2 servers set up, one using the "multiple database model" and >>can >>> >connect to Mapserver successfully. Against the single database model >>> server >>> >I'm getting the following error: >>> > >>> >msSDELayerOpen(): SDE error. SE_connection_create(): Invalid database >>> name. >>> >(-162) >>> > >>> >I am using the following in the layer definition: >>> > >>> > CONNECTIONTYPE SDE >>> > CONNECTION "BILLP4,port:5155,sde,xxx,xxx" >>> > DATA "BOUND_SDE.SDE.STATESP020,SHAPE" >>> > >>> >On the DATA line I have tried every permutation I can think of; the >>> example >>> >shown is the way it shows up in ArcExplorer. > From dbarron at DSWLLC.COM Tue Mar 15 07:44:42 2005 From: dbarron at DSWLLC.COM (Dan Barron) Date: Tue, 15 Mar 2005 07:44:42 -0800 Subject: PhP Mapscript In-Reply-To: <200503151140.j2FBeEiu014273@taz.dswllc.com> Message-ID: Thomas, Here's some info to hopefully help you get to drawing your points. You need a "dummy" layer in your map file and a point symbol (many ways to draw a symbol - I show the use of a gif file defined in the sysmbols.list file). The PHP I show is excerpts from a much larger script, so I do not guarantee it will work exactly as written, but should give you an idea of the basics steps so you can find your way to drawing the point layer in php mapscript. This is also from php mapscript that is a couple revs back, things may have changed slightly in some of these commands, so be sure to verify them against current php mapscript documentation. hth, Dan << excerpts from map file >> symbolset "./symbols/symbols.list" LAYER NAME 'Points' TYPE POINT STATUS ON CLASS name 'points' style SYMBOL 'point' end END END << excerpt from symbol.list file >> SYMBOL NAME 'point' TYPE PIXMAP IMAGE 'point.gif' END << excerpt from php mapscript >> /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Get the MAPSERVER MAP FILE and create NEW MAP OBJECT *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ $map = ms_newMapObj($mapPath.$mapFile); $image=$map->draw(); $layer = $map->getLayerByName( "Points" ); $results = queryDBase( $dbaseInfo, $table, $where, $map ); // Loop through result of point query and: while ($line = mysql_fetch_array($results, MYSQL_ASSOC)) { $pt = ms_newPointObj(); $pt->setXY( $line["longitude"], $line["latitude"] ); $pt->draw($map, $layer, $image, 0, ""); } //end while() $layer->draw($image); $image_url_PNG=$image->saveWebImage(); //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // queryDBase - query the database for point within the current extent // // $dbaseInfo - array holding host, user, pwd, dbase, and table info for the database query // $table - table to query for layer in database // $where - additional where clause info for the select query // $map - current map object to determine current map extents // // returns $result - the query results //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ function queryDBase( $dbaseInfo, $table, $where, $map ) { $lf = " \n"; $method = "[queryDBase]"; // Connect to mySQL database then select the database to use. $link = mysql_connect($dbaseInfo["host"], $dbaseInfo["user"], $dbaseInfo["pwd"] ) or die("Could not connect to mySQL"); mysql_select_db($dbaseInfo["dbase"]) or die("Could not select database"); // Set query string - query for points only in current extent $queryStr = "SELECT * FROM ".$table. " WHERE latitude < ".$map->extent->maxy. " AND latitude > ".$map->extent->miny. " AND longitude < ".$map->extent->maxx. " AND longitude > ".$map->extent->minx. $where; fwrite( $file, $lf.$method."DEBUG: queryStr= ".$queryStr); // perform query, then close database link $result = mysql_query($queryStr) or die("Query failed"); $numRows = mysql_num_rows( $result ); mysql_close($link); return $result; } At 03:41 AM 3/15/2005, you wrote: >Hi Dan, > >Firstly forgive me, I found your email in a post from 2003. > >Do you have any example of using PHP mapscript to retrieve a list of lat >longs from a mysql (or any) database and add as a layer to a map file >? My expertise is in c, .net and java, so a quick example will save me >tons of time. > >Many Thanks in advance. >Thomas > >Ps >This is the link I found. >http://lists.gis.umn.edu/pipermail/mapserver-users/2003-April/003034.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Tue Mar 15 08:22:48 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 15 Mar 2005 11:22:48 -0500 Subject: Labels that follow streets - like Google maps Message-ID: Hi all, I love the way Google maps label their streets. The labels bend to follow the streets. What kind of interest is there from the community for this type of enhancement? I suppose that ideally the developers would like the GD folks or the Freetype folks to implement this, but it seems like about 2 years since I originally brought it up. There is at least one bug that covers this: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=206 (this bug should probably be split into two separate items) I think that "label follows" should be raised in priority because the MapText project has gone away, and this would be a very good feature to have in mapserver. I'm not sure I would "spline" the label, as that is NOT what other implementations are doing and spline math is Way more complicated than plunking down characters that are aligned with the various street segments. So, in an effort to gage the community interest in this and hopefully get a developer to champion this cause, make yourself heard. -Steve W. From zhou_naijun at HOTMAIL.COM Tue Mar 15 08:37:10 2005 From: zhou_naijun at HOTMAIL.COM (N Zhou) Date: Tue, 15 Mar 2005 10:37:10 -0600 Subject: WFS filter query In-Reply-To: <22822.212.238.227.182.1110900808.squirrel@212.238.227.182> Message-ID: Hi Bart, Thank you for your email. The only difference between your example and mine is "PropertyName" under the . I think "PropertyName" is optional to specify returned elements. Does "MS_GEOMETRY" mean that spatial BBOX query should use the column "MS_GEOMETRY"? I use .shp files. Should I change my map file (or mapserver, which works for non Filter requests) to support the Filter and/or BBOX query? When I use the URL request: http://localhost/cgi-bin/mapserv_44.exe?map=mymapfile&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=myType&FILTER=0,0 600000,600000 the mapserver told me this: msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature Thank you! N. Zhou >From: Bart van den Eijnden >Reply-To: bartvde at XS4ALL.NL >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] WFS filter query >Date: Tue, 15 Mar 2005 16:33:28 +0100 > >Hi, > >this works for me: > > maxFeatures="20" > xmlns="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://schemas.opengis.net/wfs/1.0.0 WFS-basic.xsd"> > > > > MS_GEOMETRY > 121000,469000 >140000,470000 > > > > > >Best regards, >Bart > > > Hi, > > > > I have a problem of using WFS filter to get data within a bounding box. >My > > WFS post request is: > > > > > > > xmlns:wfs="http://www.opengis.net/wfs" > > xmlns:ogc="http://www.opengis.net/ogc" > > xmlns:gml="http://www.opengis.net/gml" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://www.opengis.net/wfs" > > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> > > > > > > > > > > 0,0 505234,5448023 > > > > > > > > > > > > > > But the mapserver would stop with an error of "Premature end of script > > headers: mapserv_44.exe" > > Could anyone tell me why? I know there is a WFS bug of filtering some > > elements rather than getting all elements. > > > > Thank you very much! > > > > N. Zhou > > From bartvde at XS4ALL.NL Tue Mar 15 09:01:48 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 15 Mar 2005 18:01:48 +0100 Subject: Labels that follow streets - like Google maps In-Reply-To: <42370BD8.9040301@swoodbridge.com> Message-ID: Hi Steve, I think this would be a very much wanted feature for sure. Is it final that there is not gonna be any integration with Label-EZ? Cairo doesn't seem to have anything for this as well as far as I can see. Best regards, Bart > Hi all, > > I love the way Google maps label their streets. The labels bend to > follow the streets. What kind of interest is there from the community > for this type of enhancement? > > I suppose that ideally the developers would like the GD folks or the > Freetype folks to implement this, but it seems like about 2 years since > I originally brought it up. There is at least one bug that covers this: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=206 > (this bug should probably be split into two separate items) > > I think that "label follows" should be raised in priority because the > MapText project has gone away, and this would be a very good feature to > have in mapserver. I'm not sure I would "spline" the label, as that is > NOT what other implementations are doing and spline math is Way more > complicated than plunking down characters that are aligned with the > various street segments. > > So, in an effort to gage the community interest in this and hopefully > get a developer to champion this cause, make yourself heard. > > -Steve W. > From bartvde at XS4ALL.NL Tue Mar 15 08:55:33 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 15 Mar 2005 17:55:33 +0100 Subject: WFS filter query In-Reply-To: Message-ID: Hi, if you use the HTTP GET interface, you need to provide the same filter, so for my situation: http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/general/map/provincies.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=Provincies&FILTER=MS_GEOMETRY121000,469000 140000,470000 You do need to specify the propertyName *inside the BBOX filter*, this is the spatial column, Mapserver has a default of MS_GEOMETRY, which you can also see by doing a DescribeFeatureType request on your WFS. This is something else than the propertyName *outside the Filter* which you are talking about, which can be used to only retrieve some attributes, which is however not implemented in Mapserver. Did you try adapting my example for your situation? I don't use the wfs namespace (GetFeature instead of wfs:GetFeature), and don't provide the XML header which you do. Is GetCapabilities and DescribeFeatureType working? Good luck. Best regards, Bart > Hi Bart, > > Thank you for your email. > > The only difference between your example and mine is "PropertyName" under > the . I think "PropertyName" is optional to specify returned > elements. Does "MS_GEOMETRY" mean that > spatial > BBOX query should use the column "MS_GEOMETRY"? I use .shp files. > > Should I change my map file (or mapserver, which works for non Filter > requests) to support the Filter and/or BBOX query? When I use the URL > request: > http://localhost/cgi-bin/mapserv_44.exe?map=mymapfile&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=myType&FILTER=0,0 > 600000,600000 > > the mapserver told me this: > msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in > GetFeature > > Thank you! > > N. Zhou > >>From: Bart van den Eijnden >>Reply-To: bartvde at XS4ALL.NL >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] WFS filter query >>Date: Tue, 15 Mar 2005 16:33:28 +0100 >> >>Hi, >> >>this works for me: >> >>> maxFeatures="20" >> xmlns="http://www.opengis.net/wfs" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xlink="http://www.w3.org/1999/xlink" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://schemas.opengis.net/wfs/1.0.0 >> WFS-basic.xsd"> >> >> >> >> MS_GEOMETRY >> 121000,469000 >>140000,470000 >> >> >> >> >> >>Best regards, >>Bart >> >> > Hi, >> > >> > I have a problem of using WFS filter to get data within a bounding >> box. >>My >> > WFS post request is: >> > >> > >> > > > xmlns:wfs="http://www.opengis.net/wfs" >> > xmlns:ogc="http://www.opengis.net/ogc" >> > xmlns:gml="http://www.opengis.net/gml" >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> > xsi:schemaLocation="http://www.opengis.net/wfs" >> > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> >> > >> > >> > >> > >> > 0,0 505234,5448023 >> > >> > >> > >> > >> > >> > >> > But the mapserver would stop with an error of "Premature end of script >> > headers: mapserv_44.exe" >> > Could anyone tell me why? I know there is a WFS bug of filtering some >> > elements rather than getting all elements. >> > >> > Thank you very much! >> > >> > N. Zhou >> > > From kenlord at GMAIL.COM Tue Mar 15 09:36:57 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 15 Mar 2005 09:36:57 -0800 Subject: Tutorial Example1-9 In-Reply-To: <20050315080308.64131.qmail@web52303.mail.yahoo.com> Message-ID: Hi Olanrewaju, Generally when you see that error, it's because your mapfile has the wrong TEMPLATEPATTERN value. The value must match (or partialy match) the name of the html template being used. For example i have a mapfile with a templatepattern value of 'mapimage' that works with an html template named mapimage.html. I have other mapfiles and templates that have values similar to this: xxx_FOO.html, templatepattern FOO Its a kind of security tool to help prevent people from accessing your mapfiles in ways you may not want. It sounds like in the example, the template or mapfile changed from the previous example, and the templatepattern value no longer matches. Cheers, Ken Lord Vancouver BC On Tue, 15 Mar 2005 08:03:07 +0000, Lawal Olanrewaju wrote: > Hi Everyone > I am a new to Mapserver and I am kind of stuck at > example1-9 of the Tutorial. The second map is not > displayed I only get the message submit query in this > box. And if click on this box I get at error message > like this > msEvalRegex(): Regular expression error. String > ([map]) failed expression test. > Can anyone help me out > Thanks > > Olanrewaju Lawal > Institute for Soil Science and Land Evaluation (310) > University of Hohenheim > 70599, Stuttgart > Germany > Office. +497114593633 > Mob. +491797397160 > > Send instant messages to your online friends http://uk.messenger.yahoo.com > From kenlord at GMAIL.COM Tue Mar 15 09:43:34 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 15 Mar 2005 09:43:34 -0800 Subject: different layer units In-Reply-To: <4236F3E0.8060902@tarkvarastuudio.ee> Message-ID: Hi Kristjan, You could try to setup the kilometers layer as a WMS layer controlled by its own mapfile set to output as kilometers. With your original mapfile set to access that WMS layer. If that doesnt work ... perhaps there is a projection, or perhaps you could define a projection that differs from the other only by the units. Maybe a projection expert could comment on that. Cheers, Ken Lord Vancouver BC On Tue, 15 Mar 2005 16:40:32 +0200, Kristjan Annus wrote: > Hi, > > I have two type of Mapinfo layers in my map, in one type map coordinates > are meters and in the other kilometers. Output is set to the meters. Is > there any chance to view the kilometer-layers without converting them to > meters in MapInfo? My problem is that the data comes from the different > sources and needs to be updated now and then - so the conversion is not > a good option. > > thanks > Kristjan > From kenlord at GMAIL.COM Tue Mar 15 09:45:58 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 15 Mar 2005 09:45:58 -0800 Subject: When will a new binary be available? In-Reply-To: <20050315150441.64698.qmail@web90004.mail.scd.yahoo.com> Message-ID: Hi Paul, You might want to try the 441 binary available at www.maptools.org/dl A few listers have had problems with the present 441 on the mapserver homepage, the maptools version has helped us. Cheers, Ken Lord Vancouver BC On Tue, 15 Mar 2005 07:04:41 -0800, Paul wrote: > Hi list, i had the strange experience that on 1 server (winxp/iis) the > current mapserver 441 binary (with oracle) works fine, and on another server > (win2000/iis) the same binary doesn't work. The request gives a blank > response, so not even 'no querystring to decode'. If i type mapserver.exe on > the dos-prompt, i get proper message, 'this program can only be accessed by > cgi'. > > However if i put the current fwtools binary on the malfunctioning server, > all works fine, only this binary doesn't have oracle support. Does anybody > recognize my problem, or can anybody tell me when a new binary (like on > fwtools) will be available? > > Thanx in advance > genuchten.blogspot.com > > ________________________________ > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > > From erv.mcnally at GMAIL.COM Tue Mar 15 09:49:19 2005 From: erv.mcnally at GMAIL.COM (Erv McNally) Date: Tue, 15 Mar 2005 11:49:19 -0600 Subject: Labels that follow streets - like Google maps In-Reply-To: <96E776AB91C6BC4E86DC72717DD2C7BA08D4A5F9@itdemail1.nd.gov> Message-ID: Hi Steve, I think this would be fantastic. I've been struggling with naming streams and railroads and getting them to look decent. I've been leaning towards using a point file and angling and labeling streams at set locations so I can control where and how the labeling occurs so it looks decent... which most of the time, would leave me with no names when zoomed in. At least if street naming were done, it would be a step in a positive direction. Thanks for your efforts, Erv > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Stephen Woodbridge > Sent: Tuesday, March 15, 2005 10:23 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Labels that follow streets - like Google > maps > > Hi all, > > I love the way Google maps label their streets. The labels bend to > follow the streets. What kind of interest is there from the community > for this type of enhancement? > > I suppose that ideally the developers would like the GD folks or the > Freetype folks to implement this, but it seems like about 2 years since > I originally brought it up. There is at least one bug that covers this: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=206 > (this bug should probably be split into two separate items) > > I think that "label follows" should be raised in priority because the > MapText project has gone away, and this would be a very good feature to > have in mapserver. I'm not sure I would "spline" the label, as that is > NOT what other implementations are doing and spline math is Way more > complicated than plunking down characters that are aligned with the > various street segments. > > So, in an effort to gage the community interest in this and hopefully > get a developer to champion this cause, make yourself heard. > > -Steve W. > From john.hagstrand at INTERAGERESEARCH.COM Tue Mar 15 10:15:17 2005 From: john.hagstrand at INTERAGERESEARCH.COM (John Hagstrand) Date: Tue, 15 Mar 2005 12:15:17 -0600 Subject: upside down labels Message-ID: Hi, My street maps are displaying labels upside down. I see that bug 564 has already been entered for this. Here is an example on a live customer site. Of 48 labels, 5 are upside down. http://www.westportnow.com/realestate/map.php? &irn=41.134325436851&irs=41.119548563149&ire=-73.309842191861&irw=- 73.324483808139&iract=zoomout&irsacct=10283 John From saintsjd at YAHOO.COM Tue Mar 15 10:41:06 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 15 Mar 2005 10:41:06 -0800 Subject: libcurl error on compile Debian Sarge In-Reply-To: 6667 Message-ID: This is a known bug in debian Sarge and is not a problem with mapserver. See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=299348 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=299319 Jon --- Jon Saints wrote: > Trying to compile custom mapserver on Debian sarge. > Running make after successful configure command I > get > the error: > > /usr/lib/libcurl.so: undefined reference to > `tld_strerror' > /usr/lib/libcurl.so: undefined reference to > `idna_strerror' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > > My configuration completes with no errors. The > command > I use is: > ./configure --with-proj --with-threads --with-ogr > --with-gdal --with-postgis --with-wfs --with-wcs > --with-wmsclient --with-wfsclient --with-fastcgi > > I am using version 7.13.1-1 of libcurl3-dev > > Thanks > Jon > From rishi at MAPTEXT.COM Tue Mar 15 10:18:25 2005 From: rishi at MAPTEXT.COM (Rishi Mehra) Date: Tue, 15 Mar 2005 13:18:25 -0500 Subject: Labels that follow streets - like Google maps Message-ID: Hi Steve / All: The MapText project is not dead atleast on the part of MapText, however we never were able to gauge the interest level of the MapServer community to be able to make a product. We do have a concept ready that we did demonstrate to some of the developers of MapServer in the past. If there is genuine interest for an add-on (for a cost) package that would yield high quality labeling for MapServer, we can hit the market with something in a short span of time. Let us know of the same. Regards, Rishi Mehra MapText, Inc. Tel: 609-716-7552 Fax: 609-716-7553 www.maptext.com ----- Original Message ----- From: "Erv McNally" To: Sent: Tuesday, March 15, 2005 12:49 PM Subject: Re: [UMN_MAPSERVER-USERS] Labels that follow streets - like Google maps > Hi Steve, > > I think this would be fantastic. I've been struggling with naming > streams and railroads and getting them to look decent. I've been > leaning towards using a point file and angling and labeling streams at > set locations so I can control where and how the labeling occurs so it > looks decent... which most of the time, would leave me with no names > when zoomed in. > > At least if street naming were done, it would be a step in a positive > direction. > > Thanks for your efforts, > Erv > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Stephen Woodbridge > > Sent: Tuesday, March 15, 2005 10:23 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Labels that follow streets - like Google > > maps > > > > Hi all, > > > > I love the way Google maps label their streets. The labels bend to > > follow the streets. What kind of interest is there from the community > > for this type of enhancement? > > > > I suppose that ideally the developers would like the GD folks or the > > Freetype folks to implement this, but it seems like about 2 years since > > I originally brought it up. There is at least one bug that covers this: > > > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=206 > > (this bug should probably be split into two separate items) > > > > I think that "label follows" should be raised in priority because the > > MapText project has gone away, and this would be a very good feature to > > have in mapserver. I'm not sure I would "spline" the label, as that is > > NOT what other implementations are doing and spline math is Way more > > complicated than plunking down characters that are aligned with the > > various street segments. > > > > So, in an effort to gage the community interest in this and hopefully > > get a developer to champion this cause, make yourself heard. > > > > -Steve W. > > > From wokar1 at YAHOO.COM Tue Mar 15 11:14:11 2005 From: wokar1 at YAHOO.COM (w m) Date: Tue, 15 Mar 2005 11:14:11 -0800 Subject: convert .pdf to .shp Message-ID: Hi, Is it possible to convert a .pdf file .shp file or vice versa?? Thanks Wokar --------------------------------- Do you Yahoo!? Make Yahoo! your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Tue Mar 15 11:51:19 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 15 Mar 2005 12:51:19 -0700 Subject: convert .pdf to .shp Message-ID: Wokar, One way to do it is to use GhostView/Ghostscript to convert the vectors in a PDF doc to dxf, then use some other software (ArcView, GlobalMapper, etc) to convert dxf to shp. There will not be any geo-referencing or coordinate system definition information, so you'll have to add that somehow to make the data useful in Mapserver. Brent Fraser ----- Original Message ----- From: w m To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, March 15, 2005 12:14 PM Subject: [UMN_MAPSERVER-USERS] convert .pdf to .shp Hi, Is it possible to convert a .pdf file .shp file or vice versa?? Thanks Wokar ------------------------------------------------------------------------------ Do you Yahoo!? Make Yahoo! your home page -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Tue Mar 15 11:51:17 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 15 Mar 2005 20:51:17 +0100 Subject: Labels that follow streets - like Google maps In-Reply-To: <00a301c5298b$61e52f90$1100a8c0@mt17> Message-ID: Hi Rishi, I think since a lot of small commercial companies are starting to use Mapserver, this could be a very useful feature. It could be a potential market for you guys, but you never know ofcourse beforehand how things will work out. I don't think a lot of our customers would have a problem paying for such a feature, if they really need it, ofcourse depending on the price and the license model. I for one would be interested to see this happen. Best regards, Bart On Tue, 15 Mar 2005 13:18:25 -0500, Rishi Mehra wrote: > Hi Steve / All: > > The MapText project is not dead atleast on the part of MapText, however > we > never were able to gauge the interest level of the MapServer community > to be > able to make a product. We do have a concept ready that we did > demonstrate > to some of the developers of MapServer in the past. If there is genuine > interest for an add-on (for a cost) package that would yield high quality > labeling for MapServer, we can hit the market with something in a short > span > of time. Let us know of the same. > > Regards, > Rishi Mehra > MapText, Inc. > Tel: 609-716-7552 > Fax: 609-716-7553 > www.maptext.com > > ----- Original Message ----- > From: "Erv McNally" > To: > Sent: Tuesday, March 15, 2005 12:49 PM > Subject: Re: [UMN_MAPSERVER-USERS] Labels that follow streets - like > Google > maps > > >> Hi Steve, >> >> I think this would be fantastic. I've been struggling with naming >> streams and railroads and getting them to look decent. I've been >> leaning towards using a point file and angling and labeling streams at >> set locations so I can control where and how the labeling occurs so it >> looks decent... which most of the time, would leave me with no names >> when zoomed in. >> >> At least if street naming were done, it would be a step in a positive >> direction. >> >> Thanks for your efforts, >> Erv >> >> >> > -----Original Message----- >> > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> On >> > Behalf Of Stephen Woodbridge >> > Sent: Tuesday, March 15, 2005 10:23 AM >> > To: MAPSERVER-USERS at LISTS.UMN.EDU >> > Subject: [UMN_MAPSERVER-USERS] Labels that follow streets - like >> Google >> > maps >> > >> > Hi all, >> > >> > I love the way Google maps label their streets. The labels bend to >> > follow the streets. What kind of interest is there from the community >> > for this type of enhancement? >> > >> > I suppose that ideally the developers would like the GD folks or the >> > Freetype folks to implement this, but it seems like about 2 years >> since >> > I originally brought it up. There is at least one bug that covers >> this: >> > >> > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=206 >> > (this bug should probably be split into two separate items) >> > >> > I think that "label follows" should be raised in priority because the >> > MapText project has gone away, and this would be a very good feature >> to >> > have in mapserver. I'm not sure I would "spline" the label, as that is >> > NOT what other implementations are doing and spline math is Way more >> > complicated than plunking down characters that are aligned with the >> > various street segments. >> > >> > So, in an effort to gage the community interest in this and hopefully >> > get a developer to champion this cause, make yourself heard. >> > >> > -Steve W. >> > >> > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From cryptic_acrophobiac at YAHOO.COM Tue Mar 15 12:46:44 2005 From: cryptic_acrophobiac at YAHOO.COM (K.J. L) Date: Tue, 15 Mar 2005 14:46:44 -0600 Subject: Intallation issue Message-ID: Hey Guys, This is the first time I am using Mapserver so pardon me if the question seemed too naive. I have downloaded Mapserver 4.4.1(the binary file) for Windows and follow the instruction given in the README-Install file. But I get a different result when I try to test the mapserver. ****Test MapServer by typing "http://localhost/scripts/mapserv.exe" on you browser. It should return the following message: "No query information to decode. QUERY_STRING is set, but empty." ***** When I type the above URL in my web browser the browser try to download the mapserver.exe file rather than showing the message. I revised the intallation process a couple of times but the result is the same. I am using Windows2000 advanced Server. Any help would be highly appriciated. k.j.l From kenlord at GMAIL.COM Tue Mar 15 13:01:34 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 15 Mar 2005 13:01:34 -0800 Subject: Intallation issue In-Reply-To: Message-ID: Hi K, In your IIS settings, you need to set the permissions on your scripts folder to allow execution of 'scripts and executables'. Cheers, Ken Lord Vancouver BC On Tue, 15 Mar 2005 14:46:44 -0600, K.J. L wrote: > Hey Guys, > > This is the first time I am using Mapserver so pardon me if the question > seemed too naive. > > I have downloaded Mapserver 4.4.1(the binary file) for Windows and follow > the instruction given in the README-Install file. > But I get a different result when I try to test the mapserver. > > ****Test MapServer by typing "http://localhost/scripts/mapserv.exe" on you > browser. It should return the following message: > "No query information to decode. QUERY_STRING is set, but empty." > ***** > > When I type the above URL in my web browser the browser try to download the > mapserver.exe file rather than showing the message. > > I revised the intallation process a couple of times but the result is the same. > > I am using Windows2000 advanced Server. > > Any help would be highly appriciated. > > k.j.l > From bpicinbono at WORLDONLINE.FR Tue Mar 15 13:05:55 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Tue, 15 Mar 2005 22:05:55 +0100 Subject: Intallation issue In-Reply-To: Message-ID: Le mardi 15 Mars 2005 21:46, K.J. L a ?crit?: > I have downloaded Mapserver 4.4.1(the binary file) for Windows and follow > the instruction given in the README-Install file. > But I get a different result when I try to test the mapserver. > ****Test MapServer by typing "http://localhost/scripts/mapserv.exe" on you > browser. It should return the following message: > "No query information to decode. QUERY_STRING is set, but empty." > ***** > When I type the above URL in my web browser the browser try to download the > mapserver.exe file rather than showing the message. don't know exactly about windows, but on linux, the browser adress is : http://localhost/cgi-bin/mapserv? don't you need the question mark (?) at the end of the adress with windows as well ? Blaise From ferencikioan at YAHOO.COM Tue Mar 15 13:12:52 2005 From: ferencikioan at YAHOO.COM (Ioan Ferencik) Date: Tue, 15 Mar 2005 13:12:52 -0800 Subject: test Mapserver Message-ID: Hi list, I have installed Mapserver 4 and tested it with folowing map file MAP IMAGETYPE PNG EXTENT 388465 583750 398900 590850 SIZE 200 200 #SHAPEPATH "c:\web\xampp\htdocs\map\date" IMAGECOLOR 255 255 4 NAME TEST UNITS METERS SIZE 400 400 PROJECTION "proj=stere" "ellps=krass" "lat_0=46" "lon_0=25" "k_0=0.99975" "x_0=500000" "y_0=500000" "no_defs" END LAYER NAME strazi DATA str STATUS ON TYPE LINE PROJECTION "proj=stere" "ellps=krass" "lat_0=46" "lon_0=25" "k_0=0.99975" "x_0=500000" "y_0=500000" "no_defs" END CLASS COLOR 45 67 22 END END WEB IMAGEPATH "c:\web\xampp\htdocs\map\tmp\ms_tmp\" IMAGEURL "\ms_tmp" MAXSCALE 5000 MINSCALE 100000 TEMPLATE "test.html" END END and folowing template file Testare MapServer

Testare Mapserver


 Powered by MapServer
when i try to put it to work using: http://localhost/cgi-bin/mapserv.exe?map=c:/web/xampp/htdocs/map/test.map&mode=browse i see a blank box,,and no data when I change the mode to map I see only a yellow png image Am I missing someting? I am a newbie to mapserver, I installed it just 2 days ago. Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From saintsjd at YAHOO.COM Tue Mar 15 14:10:49 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 15 Mar 2005 14:10:49 -0800 Subject: python mapscript comparing zoomPoint and queryByPoint Message-ID: I am learning python mapscript and I think that I have found something interesting: Has anyone noticed that the map.zoomPoint function accepts a pointObj in PIXEL coordinates, while the layer.queryByPoint function seems to want a pointObj in MAP coordinates? I am not sure the reason for this.The documentation didn't seem to mention that there was a difference. If this is true that layer.queryByPoint needs map coordinates, then it seems we should include in python mapscript a function to convert pixel clicks to map coords and vice-versa. Thinking outloud, Jon From ram at RAMPAGE.NET Tue Mar 15 14:36:57 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Tue, 15 Mar 2005 16:36:57 -0600 Subject: Mark center of map? Message-ID: Can someone point me at a how-to that describes how to draw on a map? What I need to do is plant a big red X at the very center of a map served by mapserver. The Symbology reference seems to be all about how to place symbols at locations defined in a dbf file, but I need to plot this symbol at the center of whatever extent the user has chosen. The maps are specified by Lat/Lng, so I know the coordinates but not until they request is actually sent to MapServer. Running MapServer 4.4.1 on Linux (but not Mapscript ...yet). I can build a script that fetches the image and then places the symbol in the center of the image with netpbm or image magick, but that seems crude, and I suspect there is a way to do it inside mapserver, but I haven't found it yet. Thanks for the help! -- Richard From David.Fawcett at STATE.MN.US Tue Mar 15 14:51:17 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 15 Mar 2005 16:51:17 -0600 Subject: Mark center of map? Message-ID: Richard, I am pretty sure that you want to place a FEATURE on your map. Take a look at the documentation here: http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#feature The POINTS are in pixels, so based on the image size that you have specified, you can easily calculate the center pixel. Instead of placing a label as done below, you want to draw an 'x' or cross. I don't have a symbol definition handy, but you should be able to find one in the list archives. Here is a layer from a mapfile that I use to label the top of a map image: LAYER NAME "MapLabel" TYPE ANNOTATION STATUS DEFAULT TRANSFORM FALSE FEATURE POINTS 55 10 END # Text in Upper-left TEXT "Grandstand - Lower Level" END CLASS LABEL COLOR 0 0 0 #COLOR 255 255 255 #OUTLINECOLOR 0 0 0 TYPE TRUETYPE FONT arial SIZE 12 POSITION AUTO FORCE TRUE OFFSET 1 1 PARTIALS FALSE END # Label END # CLASS END -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Richard A. Milewski Sent: Tuesday, March 15, 2005 4:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mark center of map? Can someone point me at a how-to that describes how to draw on a map? What I need to do is plant a big red X at the very center of a map served by mapserver. The Symbology reference seems to be all about how to place symbols at locations defined in a dbf file, but I need to plot this symbol at the center of whatever extent the user has chosen. The maps are specified by Lat/Lng, so I know the coordinates but not until they request is actually sent to MapServer. Running MapServer 4.4.1 on Linux (but not Mapscript ...yet). I can build a script that fetches the image and then places the symbol in the center of the image with netpbm or image magick, but that seems crude, and I suspect there is a way to do it inside mapserver, but I haven't found it yet. Thanks for the help! -- Richard From jeff at PROPERTYKEY.COM Tue Mar 15 14:57:43 2005 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Tue, 15 Mar 2005 16:57:43 -0600 Subject: Mark center of map? In-Reply-To: Message-ID: Richard A. Milewski wrote: > Can someone point me at a how-to that describes how to draw on a map? What > I need to do is plant a big red X at the very center of a map served by > mapserver. The Symbology reference seems to be all about how to place > symbols at locations defined in a dbf file, but I need to plot this symbol > at the center of whatever extent the user has chosen. The maps are specified > by Lat/Lng, so I know the coordinates but not until they request is actually > sent to MapServer. Running MapServer 4.4.1 on Linux (but not Mapscript > ...yet). If you know the size of your map, it's pretty simple. Just create a layer, set "TRANSFORM FALSE" to tell it that your coordinates are pixels, not lat/lon (or whatever) & put a FEATURE block in there to tell it where you want it to show up. Here's a sample from a map file that created a map 600x450. LAYER NAME center STATUS DEFAULT TYPE POINT TRANSFORM FALSE FEATURE POINTS 299 224 END END CLASS SYMBOL "/usr/local/mapserver/symbols/flag.png" END END -- Jeff Hoffmann jeff at propertykey.com From brauplists at GMAIL.COM Tue Mar 15 15:42:13 2005 From: brauplists at GMAIL.COM (Bruce Raup) Date: Tue, 15 Mar 2005 16:42:13 -0700 Subject: puzzling error message: arString(): Unable to access file. adLabelString() In-Reply-To: <1464295a05031114417cdc895d@mail.gmail.com> Message-ID: I have narrowed down my problem (described below). I repeatedly built MapServer, adding more features each time, and it worked until I added phpmapscript: --with-php=/usr/include/php \ --with-php-regex-dir=/home/braup/Builds/php-4.3.4/regex It appears that the error messages in memory are not being handled properly, as each unsuccessful build, the details of the message changed. Now it is "sLoadMapString(): Unable to access file. on() " I think someone else recently wrote with a similar problem with php mapscript. If this isn't already a known bug, should I do something other than this message to report it? Are there any work-arounds? Thanks, Bruce On Fri, 11 Mar 2005 15:41:31 -0700, Bruce Raup wrote: > Hi all, > > I've just installed mapserver on a new Linux computer (config details > below). The build process went apparently flawlessly, and I copied > the resulting "mapserv" to the cgi-bin directory. I built it for use > with MapScript, but haven't finished installed those parts. > > I tried a simple test, but only get the error message: > > arString(): Unable to access file. adLabelString() > > which is the same message I get when I specifiy a nonexistent mapfile > name. When I use the query-less URL > "http://glims.colorado.edu/cgi-bin/mapserv", I get the (normal?) > response > > No query information to decode. QUERY_STRING is set, but empty. > > The form of the first error message looks strange. Running "strings" > on the mapserv executable, I see functions called "loadScalebarString" > and "loadLabelString", but not the subsets of these as in the error > message. > > Any ideas what could be wrong? TIA, Bruce > > Config details: > $ ./mapserv -v > MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > $ uname -a > Linux glims 2.6.5-7.111.19-smp #1 SMP Fri Dec 10 15:10:58 UTC 2004 > i686 i686 i386 GNU/Linux > > -- > Bruce Raup > http://cires.colorado.edu/~braup/ > -- Bruce Raup http://cires.colorado.edu/~braup/ From saintsjd at YAHOO.COM Tue Mar 15 16:26:27 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 15 Mar 2005 16:26:27 -0800 Subject: two layers different projections Message-ID: I have two layers in different projections. My mapserver is compiled with PROJ support. One layer is: lat-long the other is: UTM Zone 18N, NAD 83, meters resolution: 30 cm my mapfile is: NAME DC STATUS ON SIZE 1024 768 WEB IMAGEPATH "/var/www/jons/dcmap/tmp/" IMAGEURL "/jons/dcmap/tmp/" MAXSCALE -2.0 END EXTENT -77.1665 38.7813 -76.8628 39.0053 UNITS dd IMAGECOLOR 255 255 255 IMAGETYPE png PROJECTION "proj=latlong" END LEGEND KEYSPACING 10 0 END REFERENCE EXTENT -77.1665 38.7813 -76.8628 39.0053 IMAGE /var/www/jons/dcmap/tmp/ref.gif STATUS on SIZE 200 150 END LAYER NAME dcdem2000 TYPE POLYGON STATUS ON METADATA desc "Census Blocks" logo "test.jpg" END TEMPLATE "blank.html" DATA "/home/jons/Data/DC/created/dcdem2000" CLASS NAME "Census Blocks 2000" COLOR 225 225 225 OUTLINECOLOR 100 100 100 END PROJECTION "proj=latlong" END UNITS dd END LAYER UNITS meters NAME dcorthoindex TYPE POLYGON STATUS ON METADATA desc "Aerial Photos Index" logo "test.jpg" END TEMPLATE "blank.html" DATA "/home/jons/Data/DC/created/dcorthoindex" CLASS NAME "Aerial Photo Index" OUTLINECOLOR 200 100 100 END PROJECTION "proj=utm" "ellps=GRS80" "datum=NAD83" " zone=18" END END END Thanks Jon From rtaylor at COVE.COM Tue Mar 15 18:22:20 2005 From: rtaylor at COVE.COM (Richard Taylor) Date: Tue, 15 Mar 2005 21:22:20 -0500 Subject: seemingly simple question Message-ID: Hello list - have installed ms4w 4.4.0 and have steadily increased additions of 'my own' vector and raster layers, getting the feel of it with primarily only previous experience with esriworld (but not IMS) and with the Univ Kansas 'flat earth' javascript WMS client. at this point am blending output from multiple WMS servers and serving my layers from localhost into the Javascript client and getting images that are correctly registered in geographic space however a simple line shapefile from my server is rendered with a grey background across the entire image extent. must be in good company, or at least sharing bad habits with good company in that the 'global_mosaic' layer from the JPL WMS server also has this grey background where ever there is no data. have searched the documentation but unsuccessfully to date except for transparent png symbols. What is the best way of setting background of MS output to transparent, presumably in the mapfile? thanks in advance Richard Taylor my current version of the flat earth WMS javascript client can be seen at http://www.seascallop.com/COOA_660.html or any of the larger sizes linked at the bottom of that page From woodbri at SWOODBRIDGE.COM Tue Mar 15 18:46:22 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 15 Mar 2005 21:46:22 -0500 Subject: seemingly simple question In-Reply-To: <007601c529ce$fba6edb0$9a62a545@PHOENIX52> Message-ID: Try setting the "IMAGECOLOR -1 -1 -1" in the map object. -Steve W. http://imaptools.com Richard Taylor wrote: > Hello list - > > have installed ms4w 4.4.0 and have steadily increased > additions of 'my own' vector and raster layers, getting > the feel of it with primarily only previous experience > with esriworld (but not IMS) and with the Univ Kansas > 'flat earth' javascript WMS client. > > at this point am blending output from multiple WMS servers > and serving my layers from localhost into the Javascript client > and getting images that are correctly registered in geographic > space however a simple line shapefile from my server > is rendered with a grey background across the entire image > extent. must be in good company, or at least sharing bad > habits with good company in that the 'global_mosaic' layer > from the JPL WMS server also has this grey background where > ever there is no data. > > have searched the documentation but unsuccessfully to date > except for transparent png symbols. > What is the best way of setting background of MS output > to transparent, presumably in the mapfile? > > thanks in advance > > Richard Taylor > > my current version of the flat earth WMS javascript client > can be seen at http://www.seascallop.com/COOA_660.html > or any of the larger sizes linked at the bottom of that page > From wlx at MYGIS.ORG Tue Mar 15 18:46:50 2005 From: wlx at MYGIS.ORG (wlx) Date: Wed, 16 Mar 2005 10:46:50 +0800 Subject: how to use java mapscript in tomcat4/jsp environment? Message-ID: Hi Umberto, This is my test.jsp content: <%@ page language="java" import="edu.umn.gis.mapscript.*" %> <%@ page import="java.lang.System" %> <% System.loadLibrary("mapscript"); mapObj map = new mapObj("/usr/share/tomcat4/webapps/ROOT/test/test.map"); // imageObj img = map.draw(); // img.save("test.gif",map); // webObj web = new mapObj(web); %> Hello! The image is : <% // String test1=img.getImageurl(); out.println("hello,world"); %> The error message is : The server encountered an internal error () that prevented it from fulfilling this request. And you can you view the detailed error message here: http://210.77.68.214:8180/test.jsp I have tested with comment the new mapObj sentence,thus it is working. Best regard, Yours sincerely, Liangxu Wang > tomcat4/jsp environment? > > On Tue, 2005-03-15 at 10:37 +0800, wlx wrote: > > Hi list, > > I have compiled java mapscript with mapserver 4.4.1 in my > > system,but I don't know how to use it. My system is Debian > sarge,and I > > compiled mapserver > > with: > > > > ./configure --with-gd=/usr --with-gdal=/usr/bin/gdal-config > > --with-ogr --with-proj --with-threads > > make > > cd mapscript/java > > make > > make test > > cp *.so /usr/lib/jni/ > > cp *.jar /usr/share/tomcat4/common/lib > > > > Are there something wrong? I even copy the jar file to tomcat4 > > webapps/ROOT/WEB-INF/lib/. > > But when I want to create a simple test jsp file with java > mapscript, > > just create a new mapObj,errors happened. > > > > What kind of errors do you get? > > Umberto > > > So is there a simple introduction with java mapscript or a > simple example? > > > > Best wish, > > > > Sincerely yours, > > > > Liangxu Wang > -- > Umberto Nicoletti | We are Pentium of Borg. > +390415701366 unicoletti at prometeo.it | Division is futile. > Prometeo S.R.L. The Software Experience | You will be > approximated. > > From saintsjd at YAHOO.COM Tue Mar 15 22:13:48 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 15 Mar 2005 22:13:48 -0800 Subject: two layers different projections In-Reply-To: 6667 Message-ID: Not all of my email pasted into the first post. Using the mapfile below, the layers do not line up. Are my projection settings in the map incorrect? any other hints from others who have tried the same? Thanks Jon --- Jon Saints wrote: > I have two layers in different projections. My > mapserver is compiled with PROJ support. > > One layer is: lat-long > > the other is: > UTM Zone 18N, NAD 83, meters > resolution: 30 cm > > my mapfile is: > > NAME DC > STATUS ON > > SIZE 1024 768 > WEB > IMAGEPATH "/var/www/jons/dcmap/tmp/" > IMAGEURL "/jons/dcmap/tmp/" > MAXSCALE -2.0 > END > > EXTENT -77.1665 38.7813 -76.8628 39.0053 > UNITS dd > IMAGECOLOR 255 255 255 > IMAGETYPE png > > PROJECTION > "proj=latlong" > END > > LEGEND > KEYSPACING 10 0 > END > > REFERENCE > EXTENT -77.1665 38.7813 -76.8628 39.0053 > IMAGE /var/www/jons/dcmap/tmp/ref.gif > STATUS on > SIZE 200 150 > END > > LAYER > NAME dcdem2000 > TYPE POLYGON > STATUS ON > METADATA > desc "Census Blocks" > logo "test.jpg" > END > TEMPLATE "blank.html" > DATA "/home/jons/Data/DC/created/dcdem2000" > CLASS > NAME "Census Blocks 2000" > COLOR 225 225 225 > OUTLINECOLOR 100 100 100 > END > PROJECTION > "proj=latlong" > END > UNITS dd > END > > LAYER > UNITS meters > NAME dcorthoindex > TYPE POLYGON > STATUS ON > METADATA > desc "Aerial Photos Index" > logo "test.jpg" > END > TEMPLATE "blank.html" > DATA "/home/jons/Data/DC/created/dcorthoindex" > CLASS > NAME "Aerial Photo Index" > OUTLINECOLOR 200 100 100 > END > PROJECTION > "proj=utm" > "ellps=GRS80" > "datum=NAD83" > " zone=18" > > END > END > > END > > Thanks > Jon > From unicoletti at PROMETEO.IT Tue Mar 15 23:38:48 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Wed, 16 Mar 2005 08:38:48 +0100 Subject: how to use java mapscript in tomcat4/jsp environment? In-Reply-To: <20050315234700.297197DE@mx1.prometeo.it> Message-ID: Please reply to the ml too next time. Th error you are getting is relative to the security policy of the jvm that forbids the servlet to invoke system.loadLibrary. This is rather unusual, please post the output of the following command: java -version and the tomcat version (seems 4.1). Regards, Umberto On Wed, 2005-03-16 at 09:23 +0800, wlx wrote: > Hi Umberto, > This is my test.jsp content: > > <%@ page language="java" import="edu.umn.gis.mapscript.*" %> > <%@ page import="java.lang.System" %> > <% > System.loadLibrary("mapscript"); > mapObj map = new mapObj("/usr/share/tomcat4/webapps/ROOT/test/test.map"); > // imageObj img = map.draw(); > // img.save("test.gif",map); > // webObj web = new mapObj(web); > %> > > > Hello! The image is : > <% > // String test1=img.getImageurl(); > out.println("hello,world"); > %> > > > > The error message is : > The server encountered an internal error () that prevented it from > fulfilling this request. > And you can you view the detailed error message here: > http://210.77.68.214:8180/test.jsp > > I have tested with comment the new mapObj sentence,thus it is > working. > > Best regard, > > Yours sincerely, > Liangxu Wang > > > tomcat4/jsp environment? > > > > On Tue, 2005-03-15 at 10:37 +0800, wlx wrote: > > > Hi list, > > > I have compiled java mapscript with mapserver 4.4.1 in my > > > system,but I don't know how to use it. My system is Debian > > sarge,and I > > > compiled mapserver > > > with: > > > > > > ./configure --with-gd=/usr --with-gdal=/usr/bin/gdal-config > > > --with-ogr --with-proj --with-threads > > > make > > > cd mapscript/java > > > make > > > make test > > > cp *.so /usr/lib/jni/ > > > cp *.jar /usr/share/tomcat4/common/lib > > > > > > Are there something wrong? I even copy the jar file to tomcat4 > > > webapps/ROOT/WEB-INF/lib/. > > > But when I want to create a simple test jsp file with java > > mapscript, > > > just create a new mapObj,errors happened. > > > > > > > What kind of errors do you get? > > > > Umberto > > > > > So is there a simple introduction with java mapscript or a > > simple example? > > > > > > Best wish, > > > > > > Sincerely yours, > > > > > > Liangxu Wang > > -- > > Umberto Nicoletti | We are Pentium of Borg. > > +390415701366 unicoletti at prometeo.it | Division is futile. > > Prometeo S.R.L. The Software Experience | You will be > > approximated. > > > > > > > -- Umberto Nicoletti | We are Pentium of Borg. +390415701366 unicoletti at prometeo.it | Division is futile. Prometeo S.R.L. The Software Experience | You will be approximated. From bartvde at XS4ALL.NL Wed Mar 16 01:51:08 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 16 Mar 2005 10:51:08 +0100 Subject: Mapserver and ECW SDK license Message-ID: Hi list, I have some confusion wether or not we are allowed to use ECW (through GDAL) in Mapserver right now. I was re-checking the license agreement for ECW SDK 2.X versions, and also in that agreement is a paragraph stating "For conditions, requirements and fees associated with redistribution, installation or use in "Server Products" or "SDK Products" contact Earth Resource Mapping.". I thought the problems with using ECW in Mapserver had arisen because of a change in the license agreement with ECW SDK 3.X. What is the current state of affairs? Can we serve ECW images with Mapserver using: 1) ECW SDK 2.X, yes or no? 2) ECW SDK 3.X, yes or no? Thanks in advance for any clarification. Best regards, Bart From constantin.a.cristian at GMAIL.COM Wed Mar 16 01:47:04 2005 From: constantin.a.cristian at GMAIL.COM (Constantin Cristian) Date: Wed, 16 Mar 2005 11:47:04 +0200 Subject: refresh Message-ID: I had the same problem and the solution was simple, the problem apears only if you have "TRANSPARENT TRUE" in the OUTPUTFORMAT in your map file set it to FALSE and it will work ok. ----- Original Message ----- From: "blaise" To: Sent: Tuesday, March 15, 2005 5:32 PM Subject: Re: [UMN_MAPSERVER-USERS] refresh Le mardi 15 Mars 2005 16:13, Dirk-Jan Huisman a ?crit : > I use: > browser IE 6.0 > OS windows 2000 professional. > java virtual machine is what you get with the installation of windows > 2000. > > Dirk Rosa applet should work with IE on W2K, but with Sun java virtual machine. Can you check which JVM IE is using ? You should find that somewhere in the Advanced Options of IE. If you only have Microsoft's one, I think it won't work properly. You have to dl Sun's one from their site, and then tells IE to use Sun JVM instead of Microsoft's. (Or maybe it could work if you upgrade your Microsoft JVM, because I think I have understood they were trying to stick again to Sun compatibility ? ? ?) Maybe you should try with Firefox or Mozilla because I think they are set to use Sun JVM. Blaise From Gail.Millin at MANCHESTER.AC.UK Wed Mar 16 02:07:01 2005 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Wed, 16 Mar 2005 04:07:01 -0600 Subject: Problems getting MapServer Demo to work Message-ID: Hi All! I have been attempting to install the MapServer Demo. I tested the CGI program is running correctly by pointing the URL to http://localhost/cgi- bin/mapserv.exe and the No query information to decode. QUERY_STRING is set, but empty Message has appeared which as I understand it means the program is running fine? I have attempted trying to get mapserver to work with two different demos off the website but with no avail. The older demo contained within the Itasca folder I pointed the URL to http://localhost/itasca/demo_init.html, when I press the Initialize button I get the following error: - The specified CGI application misbehaved by not returning a complete set of HTTP headers I have no idea what is causing this error, I have double checked all my edits in the demo files and they look fine. The second demo I tried is contained in the workshop folder and I pointed the URL to http//localhost/workshop/index.html and pressed initialize and the message page cannot be found is presented. The version of MapServer I am using is MapServer 4.4.1 I have installed the workshop demo for 4.4.1 and also the older demo for 3.6.6. I would appreciate any help on this as I have been trying to figure out what is happening for a couple of days on and off. Thanks in Advance Gail ---------------------------------------- Gail Rebecca Millin Geodata Interoperability Support Officer ---------------------------------------- MIMAS Manchester Computing The University of Manchester Oxford Road Manchester M13 9PL E-mail: Gail.Millin at manchester.ac.uk Website: http://www.mimas.ac.uk/spatial ----------------------------------------- From wlx at MYGIS.ORG Wed Mar 16 03:44:34 2005 From: wlx at MYGIS.ORG (wlx) Date: Wed, 16 Mar 2005 19:44:34 +0800 Subject: how to use java mapscript in tomcat4/jspenvironment? In-Reply-To: <1110958728.20093.4.camel@friedrich.prometeo.it> Message-ID: Hi, My java version is 1.4.2, the result of run java -version is: java version "1.4.2_07" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05) Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode) And I am sorry for that I forget to cc the mail to the mail list. Liangxu Wang > > Please reply to the ml too next time. > > Th error you are getting is relative to the security policy > of the jvm that forbids the servlet to invoke > system.loadLibrary. This is rather unusual, please post the > output of the following command: > > java -version > > and the tomcat version (seems 4.1). > > Regards, > Umberto > > On Wed, 2005-03-16 at 09:23 +0800, wlx wrote: > > Hi Umberto, > > This is my test.jsp content: > > > > <%@ page language="java" import="edu.umn.gis.mapscript.*" > %> <%@ page > > import="java.lang.System" %> <% System.loadLibrary("mapscript"); > > mapObj map = new > > mapObj("/usr/share/tomcat4/webapps/ROOT/test/test.map"); > > // imageObj img = map.draw(); > > // img.save("test.gif",map); > > // webObj web = new mapObj(web); > > %> > > > > > > Hello! The image is : > > <% > > // String test1=img.getImageurl(); > > out.println("hello,world"); > > %> > > > > > > > > The error message is : > > The server encountered an internal error () that > prevented it > > from fulfilling this request. > > And you can you view the detailed error message here: > > http://210.77.68.214:8180/test.jsp > > > > I have tested with comment the new mapObj > sentence,thus it is > > working. > > > > Best regard, > > > > Yours sincerely, > > Liangxu Wang > > > > > tomcat4/jsp environment? > > > > > > On Tue, 2005-03-15 at 10:37 +0800, wlx wrote: > > > > Hi list, > > > > I have compiled java mapscript with mapserver 4.4.1 in my > > > > system,but I don't know how to use it. My system is Debian > > > sarge,and I > > > > compiled mapserver > > > > with: > > > > > > > > ./configure --with-gd=/usr --with-gdal=/usr/bin/gdal-config > > > > --with-ogr --with-proj --with-threads > > > > make > > > > cd mapscript/java > > > > make > > > > make test > > > > cp *.so /usr/lib/jni/ > > > > cp *.jar /usr/share/tomcat4/common/lib > > > > > > > > Are there something wrong? I even copy the jar file to tomcat4 > > > > webapps/ROOT/WEB-INF/lib/. > > > > But when I want to create a simple test jsp file with java > > > mapscript, > > > > just create a new mapObj,errors happened. > > > > > > > > > > What kind of errors do you get? > > > > > > Umberto > > > > > > > So is there a simple introduction with java mapscript or a > > > simple example? > > > > > > > > Best wish, > > > > > > > > Sincerely yours, > > > > > > > > Liangxu Wang > > > -- > > > Umberto Nicoletti | We are > Pentium of Borg. > > > +390415701366 unicoletti at prometeo.it | Division is futile. > > > Prometeo S.R.L. The Software Experience | You will be > > > approximated. > > > > > > > > > > > > > -- > Umberto Nicoletti | We are Pentium of Borg. > +390415701366 unicoletti at prometeo.it | Division is futile. > Prometeo S.R.L. The Software Experience | You will be > approximated. > > > From unicoletti at PROMETEO.IT Wed Mar 16 04:01:03 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Wed, 16 Mar 2005 13:01:03 +0100 Subject: how to use java mapscript in tomcat4/jspenvironment? In-Reply-To: Message-ID: When you built java mapscript did you run make test at the end? Did you install tomcat yourself (grabbed binary for jakarta.apache.org) or installed the version that came with your distro? If you did the latter the I suggest you should experiment with a binary release from the jakarta site. Umberto On Wed, 2005-03-16 at 19:44 +0800, wlx wrote: > Hi, > My java version is 1.4.2, the result of run java -version is: > > java version "1.4.2_07" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05) > Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode) > > And I am sorry for that I forget to cc the mail to the mail list. > > Liangxu Wang > > > > Please reply to the ml too next time. > > > > Th error you are getting is relative to the security policy > > of the jvm that forbids the servlet to invoke > > system.loadLibrary. This is rather unusual, please post the > > output of the following command: > > > > java -version > > > > and the tomcat version (seems 4.1). > > > > Regards, > > Umberto > > > > On Wed, 2005-03-16 at 09:23 +0800, wlx wrote: > > > Hi Umberto, > > > This is my test.jsp content: > > > > > > <%@ page language="java" import="edu.umn.gis.mapscript.*" > > %> <%@ page > > > import="java.lang.System" %> <% System.loadLibrary("mapscript"); > > > mapObj map = new > > > mapObj("/usr/share/tomcat4/webapps/ROOT/test/test.map"); > > > // imageObj img = map.draw(); > > > // img.save("test.gif",map); > > > // webObj web = new mapObj(web); > > > %> > > > > > > > > > Hello! The image is : > > > <% > > > // String test1=img.getImageurl(); > > > out.println("hello,world"); > > > %> > > > > > > > > > > > > The error message is : > > > The server encountered an internal error () that > > prevented it > > > from fulfilling this request. > > > And you can you view the detailed error message here: > > > http://210.77.68.214:8180/test.jsp > > > > > > I have tested with comment the new mapObj > > sentence,thus it is > > > working. > > > > > > Best regard, > > > > > > Yours sincerely, > > > Liangxu Wang > > > > > > > tomcat4/jsp environment? > > > > > > > > On Tue, 2005-03-15 at 10:37 +0800, wlx wrote: > > > > > Hi list, > > > > > I have compiled java mapscript with mapserver 4.4.1 in my > > > > > system,but I don't know how to use it. My system is Debian > > > > sarge,and I > > > > > compiled mapserver > > > > > with: > > > > > > > > > > ./configure --with-gd=/usr --with-gdal=/usr/bin/gdal-config > > > > > --with-ogr --with-proj --with-threads > > > > > make > > > > > cd mapscript/java > > > > > make > > > > > make test > > > > > cp *.so /usr/lib/jni/ > > > > > cp *.jar /usr/share/tomcat4/common/lib > > > > > > > > > > Are there something wrong? I even copy the jar file to tomcat4 > > > > > webapps/ROOT/WEB-INF/lib/. > > > > > But when I want to create a simple test jsp file with java > > > > mapscript, > > > > > just create a new mapObj,errors happened. > > > > > > > > > > > > > What kind of errors do you get? > > > > > > > > Umberto > > > > > > > > > So is there a simple introduction with java mapscript or a > > > > simple example? > > > > > > > > > > Best wish, > > > > > > > > > > Sincerely yours, > > > > > > > > > > Liangxu Wang > > > > -- > > > > Umberto Nicoletti | We are > > Pentium of Borg. > > > > +390415701366 unicoletti at prometeo.it | Division is futile. > > > > Prometeo S.R.L. The Software Experience | You will be > > > > approximated. > > > > > > > > > > > > > > > > > > > -- > > Umberto Nicoletti | We are Pentium of Borg. > > +390415701366 unicoletti at prometeo.it | Division is futile. > > Prometeo S.R.L. The Software Experience | You will be > > approximated. > > > > > > -- Umberto Nicoletti | We are Pentium of Borg. +390415701366 unicoletti at prometeo.it | Division is futile. Prometeo S.R.L. The Software Experience | You will be approximated. From wlx at MYGIS.ORG Wed Mar 16 04:08:34 2005 From: wlx at MYGIS.ORG (wlx) Date: Wed, 16 Mar 2005 20:08:34 +0800 Subject: how to use java mapscript intomcat4/jspenvironment? In-Reply-To: <1110974463.21515.4.camel@friedrich.prometeo.it> Message-ID: Hi, > When you built java mapscript did you run make test at the end? > Did you install tomcat yourself (grabbed binary for > jakarta.apache.org) or installed the version that came with > your distro? Yes,I have run the make test command, and it is successful executed, and as my system is Debian sarge, I installed the tomcat4 with simple command: apt-get install tomcat4. > If you did the latter the I suggest you should experiment > with a binary release from the jakarta site. ok,I will try it.. Thank you very much. > > Umberto > > On Wed, 2005-03-16 at 19:44 +0800, wlx wrote: > > Hi, > > My java version is 1.4.2, the result of run java -version is: > > > > java version "1.4.2_07" > > Java(TM) 2 Runtime Environment, Standard Edition (build > 1.4.2_07-b05) > > Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode) > > > > And I am sorry for that I forget to cc the mail to the > mail list. > > > > Liangxu Wang > > > > > > Please reply to the ml too next time. > > > > > > Th error you are getting is relative to the security > policy of the > > > jvm that forbids the servlet to invoke > system.loadLibrary. This is > > > rather unusual, please post the output of the following command: > > > > > > java -version > > > > > > and the tomcat version (seems 4.1). > > > > > > Regards, > > > Umberto > > > > > > On Wed, 2005-03-16 at 09:23 +0800, wlx wrote: > > > > Hi Umberto, > > > > This is my test.jsp content: > > > > > > > > <%@ page language="java" import="edu.umn.gis.mapscript.*" > > > %> <%@ page > > > > import="java.lang.System" %> <% > System.loadLibrary("mapscript"); > > > > mapObj map = new > > > > mapObj("/usr/share/tomcat4/webapps/ROOT/test/test.map"); > > > > // imageObj img = map.draw(); > > > > // img.save("test.gif",map); > > > > // webObj web = new mapObj(web); > > > > %> > > > > > > > > > > > > Hello! The image is : > > > > <% > > > > // String test1=img.getImageurl(); > > > > out.println("hello,world"); > > > > %> > > > > > > > > > > > > > > > > The error message is : > > > > The server encountered an internal error () that > > > prevented it > > > > from fulfilling this request. > > > > And you can you view the detailed error message here: > > > > http://210.77.68.214:8180/test.jsp > > > > > > > > I have tested with comment the new mapObj > > > sentence,thus it is > > > > working. > > > > > > > > Best regard, > > > > > > > > Yours sincerely, > > > > Liangxu Wang > > > > > > > > > tomcat4/jsp environment? > > > > > > > > > > On Tue, 2005-03-15 at 10:37 +0800, wlx wrote: > > > > > > Hi list, > > > > > > I have compiled java mapscript with mapserver > 4.4.1 in my > > > > > > system,but I don't know how to use it. My system is Debian > > > > > sarge,and I > > > > > > compiled mapserver > > > > > > with: > > > > > > > > > > > > ./configure --with-gd=/usr > --with-gdal=/usr/bin/gdal-config > > > > > > --with-ogr --with-proj --with-threads > > > > > > make > > > > > > cd mapscript/java > > > > > > make > > > > > > make test > > > > > > cp *.so /usr/lib/jni/ > > > > > > cp *.jar /usr/share/tomcat4/common/lib > > > > > > > > > > > > Are there something wrong? I even copy the jar file > to tomcat4 > > > > > > webapps/ROOT/WEB-INF/lib/. > > > > > > But when I want to create a simple test jsp file with java > > > > > mapscript, > > > > > > just create a new mapObj,errors happened. > > > > > > > > > > > > > > > > What kind of errors do you get? > > > > > > > > > > Umberto > > > > > > > > > > > So is there a simple introduction with java mapscript or a > > > > > simple example? > > > > > > > > > > > > Best wish, > > > > > > > > > > > > Sincerely yours, > > > > > > > > > > > > Liangxu Wang > > > > > -- > > > > > Umberto Nicoletti | We are > > > Pentium of Borg. > > > > > +390415701366 unicoletti at prometeo.it | > Division is futile. > > > > > Prometeo S.R.L. The Software Experience | You will be > > > > > approximated. > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Umberto Nicoletti | We are > Pentium of Borg. > > > +390415701366 unicoletti at prometeo.it | Division is futile. > > > Prometeo S.R.L. The Software Experience | You will be > > > approximated. > > > > > > > > > > -- > Umberto Nicoletti | We are Pentium of Borg. > +390415701366 unicoletti at prometeo.it | Division is futile. > Prometeo S.R.L. The Software Experience | You will be > approximated. > > > From JamesP at ESDM.CO.UK Wed Mar 16 04:35:16 2005 From: JamesP at ESDM.CO.UK (James Perrins) Date: Wed, 16 Mar 2005 12:35:16 -0000 Subject: HELP - NQuery CGI call fails on ONE server Message-ID: Hi, I have a strange problem with NQuery and Mapserver 4.20 using CGI scripting I have this all setup and working on a development server and on a test deployment server (which basically mimics the public server setup - W2K server - all patches applied) Generally mapserver works fine on all servers - with one exception - on the live public server (typically!) - Nquery appears to hang mapserver and eventually you get a timeout error. If I use a MODE=Query - and basically query a point - all is fine - so all the .MAP files and setup is OK (and other mapping functionality works fine) This Call works: ============ http://testurl/scripts/mapserv420.exe?map=C:/Inetpub/ClareSpeciesRecording/t mp/CachedMap.map&MODE=QUERY&imgext=79735 148322.5 105250 173837.5&img.x=262&img.y=192&layers=ClareOS50K Species&QLAYER=Species&map_Species_Template=templates/Specieskey.html&SAVEQU ERY=true&map_web_imagepath=C:\Inetpub\ClareSpeciesRecording\tmp\&map_web_ima geurl=http://testurl/tmp/&MAPSIZE=400 400&map_QueryMap_Size=400 400&map_ClareOS50K_LABELITEM=NULL&map_Species_LABELITEM=NULL&map_querymap_st yle=hilite If I use MODE=NQuery and supply an IMGSHAPE then it fails This call fails: ========== http://testurl/scripts/mapserv420.exe?map=C:/Inetpub/ClareSpeciesRecording/t mp/CachedMap.map&MODE=NQUERY&IMGSHAPE=81 100 234 100 234 271 81 271 &imgext=79735 148322.5 105250 173837.5&layers=ClareOS50K Species&QLAYER=Species&map_Species_Template=templates/Specieskey.html&map_Sp ecies_Tolerance=1&SAVEQUERY=true&map_web_imagepath=C:\Inetpub\ClareSpeciesRe cording\tmp\&map_web_imageurl=http://testurl/tmp/&MAPSIZE=400 400&map_QueryMap_Size=400 400&map_ClareOS50K_LABELITEM=NULL&map_Species_LABELITEM=NULL&map_querymap_st yle=hilite Please remember - BOTH the above calls work on what is supposed to be an IDENTICAL setup. Although the examples here show lengthy URLs - in practice the parameters are posted to mapserver - just in case URL length is an issue I don't really know where to start looking for this - I presume Mapserver is setup OK because it basically works and works for the Query mode which is using identical data. The call is OK as it works fine on other servers. Can anyone think of a server / firewall / IIS setting that could cause this to happen ? A missing mapserver file ? Any other suggestions ? As it's the public server that has the issue - this is causing me some grief ! Any ideas gratefully received Many Thanks James Dr James Perrins exeGesIS SDM Ltd Great House Barn New Street, Talgarth Powys LD3 0AH. Direct Line: 01646 686650 Tel: 01874 711145 Fax: 01874 711156 Email: JamesP at esdm.co.uk This E-mail and any files transmitted with it are private and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, the E-mail and any files have been transmitted to you in error and any copying, distribution or other use of the information contained in them is strictly prohibited. Nothing in this E-mail message amounts to a contractual or other legal commitment on the part of exeGesIS SDM Ltd unless confirmed by a signed communication. exeGesIS SDM Ltd will make every effort to keep its network free of viruses. However, the recipient of this message will need to scan this message, and any attachments, for viruses, as exeGesIS SDM Ltd can take no responsibility for any computer virus that might be transferred by this e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigo.lists at FABRICADEIDEIAS.COM Wed Mar 16 05:09:23 2005 From: rodrigo.lists at FABRICADEIDEIAS.COM (Rodrigo Severo) Date: Wed, 16 Mar 2005 10:09:23 -0300 Subject: puzzling error message: arString(): Unable to access file. adLabelString() In-Reply-To: <1464295a0503151542720bf8ea@mail.gmail.com> Message-ID: Bruce, I faced exactly the same problem you are experiencing now. I used php 4.3.10 with the same results so it probably isn't a php issue. The only "solution" I found was not to use php/mapscript at all. I could get no answer from the list, neither when I reported my problem, nor when I reported my "solution" of getting rid of php/mapscript to fix mapserver. As far as I can tell, if you enable php/mapscript in a Linux (maybe Unix) environment, the whole mapserver suite gets broken/unusable. I'm about to start building an application that will use mapserver and it seems that I won't be able to use php/mapscript, sadly. My advice: stay away from php/mapscript until someone with the appropriate resources decide to look at/fix this issue. I already offered my help to debug/test any changes and this offer is still valid, obviously. I hope this info is of some help to you, Rodrigo Severo Bruce Raup wrote: >I have narrowed down my problem (described below). I repeatedly built >MapServer, adding more features each time, and it worked until I added >phpmapscript: > > --with-php=/usr/include/php \ > --with-php-regex-dir=/home/braup/Builds/php-4.3.4/regex > >It appears that the error messages in memory are not being handled >properly, as each unsuccessful build, the details of the message >changed. Now it is > > "sLoadMapString(): Unable to access file. on() " > >I think someone else recently wrote with a similar problem with php >mapscript. If this isn't already a known bug, should I do something >other than this message to report it? Are there any work-arounds? > > ----------------------------------------------- Rodrigo Severo F?brica de Id?ias SBS -Ed. Empire Center Sala 1301 - Cobertura Fone: (61) 321 1357 Fax: (61) 223 1712 Bras?lia/DF ----------------------------------------------------------------------- When your only tool is a hammer, all of your problems start looking like nails. -- Mark Twain ------------------------- From jegou at UNIV-TLSE2.FR Wed Mar 16 05:18:56 2005 From: jegou at UNIV-TLSE2.FR (=?ISO-8859-1?Q?Laurent_J=E9gou?=) Date: Wed, 16 Mar 2005 14:18:56 +0100 Subject: puzzling error message: arString(): Unable to access file. adLabelString() In-Reply-To: <42383019.7030003@fabricadeideias.com> Message-ID: Hello, the problem occured to my installation and the list answered, so do i. The solution is to build separately mapserver and php_mapscript. One configuration for each. Classically i was doing progressive ./configure and builds, to finally arrive at php_mapscript, but this approach broke the mapserv binary when building the php_mapscript module. I thinks that's a real void in the documentaion files, at least for nioubies like me on Linux ;-) -- Laurent J?gou IGE Cartographe UTM - D?pt. G?ographie 31058 TOULOUSE Cedex 9 - 05.61.50.43.89 http://www.univ-tlse2.fr/geoprdc From wlx at MYGIS.ORG Wed Mar 16 06:02:54 2005 From: wlx at MYGIS.ORG (wlx) Date: Wed, 16 Mar 2005 22:02:54 +0800 Subject: how to use java mapscript in tomcat4/jspenvironment? Message-ID: Hi Umberto, I remove tomcat4.1, and install tomcat 5.5, and recomiled the mapserver with java mapscript, and copy the so file to /usr/lib/ and /usr/lib/jni/, copy the jar file to /usr/local/tomcat/common/lib/ and /usr/local/tomcat/shared/lib/, but there are something wrong too. You can see the error message here: http://210.77.68.214:8080/test.jsp. Best regard, Yours sincerely, Liangxu Wang From stigmata_blackangel at YAHOO.COM Wed Mar 16 06:13:06 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Wed, 16 Mar 2005 06:13:06 -0800 Subject: Mapserver and ECW SDK license In-Reply-To: 6667 Message-ID: > I have some confusion wether or not we are allowed > to use ECW (through > GDAL) in Mapserver right now. I was reading the license because I wanted to bundle the ECW SDK with something, and it's pretty specific and repetitive about a few points, one of them being: - the ECW SDK cannot be used to provide functionality on any computer that acts as a server This seems to me to pretty clearly make it not usable by MapServer, even if you didn't plan to redistribute your copy. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From jmckenna at DMSOLUTIONS.CA Wed Mar 16 06:46:47 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 16 Mar 2005 09:46:47 -0500 Subject: two layers different projections In-Reply-To: <20050316061348.38511.qmail@web53905.mail.yahoo.com> Message-ID: have u tried it with EPSG codes (to eliminate the possibility that you are missing parameters)? for the map object and dcdem2000 layers: PROJECTION "init=EPSG:4326" END for the dcorthoindex layer: PROJECTION "init=EPSG:26918" END jeff Jon Saints wrote: > Not all of my email pasted into the first post. Using > the mapfile below, the layers do not line up. Are my > projection settings in the map incorrect? any other > hints from others who have tried the same? > > Thanks > Jon > > > --- Jon Saints wrote: > >>I have two layers in different projections. My >>mapserver is compiled with PROJ support. >> >>One layer is: lat-long >> >>the other is: >>UTM Zone 18N, NAD 83, meters >>resolution: 30 cm >> >>my mapfile is: >> >>NAME DC >>STATUS ON >> >>SIZE 1024 768 >>WEB >> IMAGEPATH "/var/www/jons/dcmap/tmp/" >> IMAGEURL "/jons/dcmap/tmp/" >> MAXSCALE -2.0 >>END >> >>EXTENT -77.1665 38.7813 -76.8628 39.0053 >>UNITS dd >>IMAGECOLOR 255 255 255 >>IMAGETYPE png >> >>PROJECTION >> "proj=latlong" >>END >> >>LEGEND >> KEYSPACING 10 0 >>END >> >>REFERENCE >> EXTENT -77.1665 38.7813 -76.8628 39.0053 >> IMAGE /var/www/jons/dcmap/tmp/ref.gif >> STATUS on >> SIZE 200 150 >>END >> >>LAYER >> NAME dcdem2000 >> TYPE POLYGON >> STATUS ON >> METADATA >> desc "Census Blocks" >> logo "test.jpg" >> END >> TEMPLATE "blank.html" >> DATA "/home/jons/Data/DC/created/dcdem2000" >> CLASS >> NAME "Census Blocks 2000" >> COLOR 225 225 225 >> OUTLINECOLOR 100 100 100 >> END >> PROJECTION >> "proj=latlong" >> END >> UNITS dd >>END >> >>LAYER >> UNITS meters >> NAME dcorthoindex >> TYPE POLYGON >> STATUS ON >> METADATA >> desc "Aerial Photos Index" >> logo "test.jpg" >> END >> TEMPLATE "blank.html" >> DATA "/home/jons/Data/DC/created/dcorthoindex" >> CLASS >> NAME "Aerial Photo Index" >> OUTLINECOLOR 200 100 100 >> END >> PROJECTION >> "proj=utm" >> "ellps=GRS80" >> "datum=NAD83" >> " zone=18" >> >> END >>END >> >>END >> >>Thanks >>Jon >> > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From wlx at MYGIS.ORG Wed Mar 16 06:49:16 2005 From: wlx at MYGIS.ORG (wlx) Date: Wed, 16 Mar 2005 22:49:16 +0800 Subject: how to use java mapscript in tomcat4/jspenvironment? Message-ID: Hi Umberto, When I copy the so file to the /usr/lib/j2sdk1.5-sun/jre/lib/i386/ directory, it is working! So much thanks to you! And now I am use the method you offered from the web to prevent load two times now. And if you have some simple example with jsp to show and zoom and pan a map file? Best regard, Yours sincerely, Liangxu Wang From ealpert at DIGITALGLOBE.COM Wed Mar 16 08:12:26 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 16 Mar 2005 09:12:26 -0700 Subject: how to use java mapscript in tomcat4/jspenvironment? Message-ID: Look in your code for System.loadLibrary("mapscript") Clearly that's being called somewhere more than once. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of wlx Sent: Wednesday, March 16, 2005 7:03 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] how to use java mapscript in tomcat4/jspenvironment? Hi Umberto, I remove tomcat4.1, and install tomcat 5.5, and recomiled the mapserver with java mapscript, and copy the so file to /usr/lib/ and /usr/lib/jni/, copy the jar file to /usr/local/tomcat/common/lib/ and /usr/local/tomcat/shared/lib/, but there are something wrong too. You can see the error message here: http://210.77.68.214:8080/test.jsp. Best regard, Yours sincerely, Liangxu Wang From Gail.Millin at MANCHESTER.AC.UK Wed Mar 16 08:42:44 2005 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Wed, 16 Mar 2005 10:42:44 -0600 Subject: Problem Resolved about installing 4.4.1 demo Message-ID: The problem I had with installing the 4.4.1 Mapserver demo has now been resolved, however for people that might come across the issues I have I would advise reading the following 2 messages as this is what helped me to get the 4.4.1 demo to work. Gail Hi Christine, Yes, thats right. That made it work for me on both a windows 2000 and windows XP Pro SP1 installation. There's no harm in leaving both the xerces dll's incase you have some other application using the newer version. Cheers, Ken Lord Vancouver BC On Wed, 9 Mar 2005 14:01:19 -0500, Lisi, Christine wrote: > Thanks for this information, Ken. I just want to make sure I've got > this right. The download includes many files, but you say to just > replace the mapserv.exe and any .dll's included in the download from > maptools.org? If this is correct then I will be replacing the following > files in my existing MapServer folder: > > Mapserv.exe > Gdal12.dll > NCScnet.dll > NCSEcw.dll > NCSEcwC.dll > NCSUtil.dll > Libcurl.dll > Libpq.dll > Pdflib.dll > Xerces-c_1_6_0.dll (existing file is Xerces-c_1_7_0.dll) > > > Christine Lisi > Application Specialist > > Management Information Systems * City of Delray Beach * 100 NW First > Avenue, Delray Beach, FL 33444 > > Phone, 561-243-7142 * Fax, 561-243-7166 * eMail, Lisi at MyDelrayBeach.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Ken Lord > Sent: Wednesday, March 09, 2005 12:33 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.1 Demo > > Hi! > > This problem has come up a few times in the last couple weeks for > several people. I worked through it myself. > > It seems to be a problem with how the current windows binaries > available from the mapserver homepage were compiled. > > Download mapserver 4.4.1 from www.maptools.org/dl > > Use the mapserv.exe and the .dll'sthat are contained within the zip > files that are included in that package. > > This version appears to have been compiled so that it is less > dependant on external dll's, using a larger exe and fewer dll's. > > ... and it works. > > So, this is the 3rd or 4th time this has come up on the list. Think > it's time to take down/replace the current windows binaries available > at the mapserver homepage? > > Cheers, > Ken Lord > Vancouver BC From unicoletti at PROMETEO.IT Wed Mar 16 08:55:39 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Wed, 16 Mar 2005 17:55:39 +0100 Subject: how to use java mapscript in tomcat4/jspenvironment? In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CA81@COMAIL01.digitalglobe.com> Message-ID: There is no need to call System.loadLibrary as mapscript.jar should do it for you in the initialization code (this one I am not sure, for sure there is a patch for it in CVS). Liangxu, please copy the mapscript.jar only in common/lib: this is not windows! Regards, Umberto On Wed, 2005-03-16 at 09:12 -0700, Ethan Alpert wrote: > Look in your code for System.loadLibrary("mapscript") > > Clearly that's being called somewhere more than once. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of wlx > Sent: Wednesday, March 16, 2005 7:03 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] how to use java mapscript in > tomcat4/jspenvironment? > > > Hi Umberto, > I remove tomcat4.1, and install tomcat 5.5, and recomiled the > mapserver with java mapscript, and copy the so file to /usr/lib/ and > /usr/lib/jni/, copy the jar file to /usr/local/tomcat/common/lib/ and > /usr/local/tomcat/shared/lib/, but there are something wrong too. You > can see the error message here: http://210.77.68.214:8080/test.jsp. > > Best regard, > Yours sincerely, > Liangxu Wang -- Umberto Nicoletti | We are Pentium of Borg. +390415701366 unicoletti at prometeo.it | Division is futile. Prometeo S.R.L. The Software Experience | You will be approximated. From kenlord at GMAIL.COM Wed Mar 16 09:27:02 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 16 Mar 2005 09:27:02 -0800 Subject: Problems getting MapServer Demo to work In-Reply-To: Message-ID: Hi Gail, This will be another reminder that there is a problem with mapserver 4.4.1 for windows, downloaded from the mapserver homepage, and another request that the powers above either update or remove that file or at least make a note of the potential problem on the download page. Gail, to fix your problem, go to www.maptools.org/dl and get their version of 4.4.1. Use the mapserv.exe and the .dll files that are found within the .zip files within the main file you download. The maptools version has been compiled differently, with a larger .exe file that is less dependant on a large set of external dll's like what the homepage version relies on ... and it works. I think at last count 6 others posting your error (including myself) have fixed their problem by using the maptools version. I'm sure a search of the list for 'http headers' must send back a novel by now. Cheers, Ken Lord Vancouver BC On Wed, 16 Mar 2005 04:07:01 -0600, Gail Millin wrote: > Hi All! > > I have been attempting to install the MapServer Demo. I tested the CGI > program is running correctly by pointing the URL to http://localhost/cgi- > bin/mapserv.exe and the > > No query information to decode. QUERY_STRING is set, but empty > > Message has appeared which as I understand it means the program is running > fine? > > I have attempted trying to get mapserver to work with two different demos > off the website but with no avail. The older demo contained within the > Itasca folder I pointed the URL to http://localhost/itasca/demo_init.html, > when I press the Initialize button I get the following error: - > > The specified CGI application misbehaved by not returning a complete set of > HTTP headers > > I have no idea what is causing this error, I have double checked all my > edits in the demo files and they look fine. > > The second demo I tried is contained in the workshop folder and I pointed > the URL to http//localhost/workshop/index.html and pressed initialize and > the message page cannot be found is presented. > > The version of MapServer I am using is MapServer 4.4.1 I have installed the > workshop demo for 4.4.1 and also the older demo for 3.6.6. I would > appreciate any help on this as I have been trying to figure out what is > happening for a couple of days on and off. > > Thanks in Advance > > Gail > > ---------------------------------------- > > Gail Rebecca Millin > > Geodata Interoperability Support Officer > > ---------------------------------------- > > MIMAS > > Manchester Computing > > The University of Manchester > > Oxford Road > > Manchester > > M13 9PL > > E-mail: Gail.Millin at manchester.ac.uk > > Website: http://www.mimas.ac.uk/spatial > From yecarrillo at YAHOO.COM Wed Mar 16 09:27:20 2005 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Wed, 16 Mar 2005 11:27:20 -0600 Subject: Mapserver 4.4.1 with postgis 1rc3 Message-ID: How somebody compiles MapServer 4.4.1 with postgis 1rc3 in RedHat9? I'm getting some errors: gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_POSTGIS -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I -I/usr/local/include mappostgis.c -o mappostgis.o mappostgis.c:60:22: libpq-fe.h: No existe el fichero o el directorio mappostgis.c:69: error de decodificaci?n antes de "PGconn" mappostgis.c:69: aviso: no hay punto y coma al final del struct o union mappostgis.c:71: error de decodificaci?n antes del elemento '*' mappostgis.c:71: aviso: el tipo de dato por omisi?n es `int' en la declaraci?n de `query_result' mappostgis.c:71: aviso: la definici?n de datos no tiene tipo o clase de almacenamiento mappostgis.c:75: error de decodificaci?n antes del elemento '}' mappostgis.c:75: aviso: el tipo de dato por omisi?n es `int' en la declaraci?n de `msPOSTGISLayerInfo' mappostgis.c:75: aviso: la definici?n de datos no tiene tipo o clase de almacenamiento mappostgis.c:88: error de decodificaci?n antes del elemento '*' mappostgis.c:89: aviso: el tipo de devoluci?n por omisi?n es `int' mappostgis.c:93: error de decodificaci?n antes de "msPOSTGISLayerInfo" mappostgis.c: En la funci?n `setPostGISLayerInfo': mappostgis.c:95: `layer' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:95: (Cada identificador no declarado solamente se reporta una vez mappostgis.c:95: para cada funcion en la que aparece.) mappostgis.c:95: `postgislayerinfo' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c: En la funci?n `msPOSTGISCloseConnection': mappostgis.c:215: aviso: declaraci?n impl?cita de la funci?n `PQfinish' mappostgis.c:215: `PGconn' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:215: error de decodificaci?n antes del elemento ')' mappostgis.c: En la funci?n `msPOSTGISLayerOpen': mappostgis.c:224: `layerinfo' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:251: error de decodificaci?n antes del elemento ')' mappostgis.c:258: `PGconn' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:258: error de decodificaci?n antes del elemento ')' mappostgis.c:268: aviso: declaraci?n impl?cita de la funci?n `PQconnectdb' mappostgis.c:270: aviso: declaraci?n impl?cita de la funci?n `PQstatus' mappostgis.c:270: `CONNECTION_BAD' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:273: aviso: declaraci?n impl?cita de la funci?n `PQerrorMessage' mappostgis.c:282: aviso: declaraci?n impl?cita de la funci?n `PQsetNoticeProcessor' mappostgis.c: En el nivel principal: mappostgis.c:365: error de decodificaci?n antes de "PGresult" mappostgis.c: En la funci?n `prep_DB': mappostgis.c:367: `PGresult' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:367: `result' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:375: `layerinfo' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:381: `layer' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:396: `geom_table' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:437: `geom_column' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:457: `rect' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:514: aviso: declaraci?n impl?cita de la funci?n `PQexec' mappostgis.c:515: aviso: declaraci?n impl?cita de la funci?n `PQresultStatus' mappostgis.c:515: `PGRES_COMMAND_OK' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:520: aviso: declaraci?n impl?cita de la funci?n `PQclear' mappostgis.c:537: `sql_results' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:538: `query_string' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:543: aviso: pasando el argumento 1 de `strlen' crea un apuntador desde un entero sin una conversi?n mappostgis.c:543: aviso: pasando el argumento 2 de `memcpy' crea un apuntador desde un entero sin una conversi?n mappostgis.c:543: aviso: pasando el argumento 2 de `strncpy' crea un apuntador desde un entero sin una conversi?n mappostgis.c:543: aviso: pasando el argumento 2 de `strncpy' crea un apuntador desde un entero sin una conversi?n mappostgis.c: En la funci?n `msPOSTGISLayerWhichShapes': mappostgis.c:602: `layerinfo' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:650: `PGRES_TUPLES_OK' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:654: aviso: el argumento de formato no es un apuntador (argumento 4) mappostgis.c: En la funci?n `msPOSTGISLayerResultClose': mappostgis.c:675: `layerinfo' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:676: `PGresult' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:676: `res' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c: En la funci?n `msPOSTGISLayerClose': mappostgis.c:693: `layerinfo' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c: En la funci?n `msPOSTGISLayerNextShape': mappostgis.c:1035: `layerinfo' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c: En la funci?n `msPOSTGISLayerGetShapeRandom': mappostgis.c:1066: `layerinfo' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:1102: aviso: declaraci?n impl?cita de la funci?n `PQntuples' mappostgis.c:1105: aviso: declaraci?n impl?cita de la funci?n `PQgetvalue' mappostgis.c:1143: aviso: declaraci?n impl?cita de la funci?n `PQgetlength' mappostgis.c: En la funci?n `msPOSTGISLayerGetShape': mappostgis.c:1193: `PGresult' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:1194: `layerinfo' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:1248: aviso: asignaci?n crea un apuntador desde un entero sin una conversi?n mappostgis.c:1249: `PGRES_COMMAND_OK' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:1264: aviso: asignaci?n crea un apuntador desde un entero sin una conversi?n mappostgis.c:1270: aviso: el argumento de formato no es un apuntador (argumento 4) mappostgis.c:1284: aviso: asignaci?n crea un apuntador desde un entero sin una conversi?n mappostgis.c:1285: `PGRES_TUPLES_OK' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:1289: aviso: el argumento de formato no es un apuntador (argumento 4) mappostgis.c:1363: aviso: asignaci?n crea un apuntador desde un entero sin una conversi?n mappostgis.c:1382: aviso: asignaci?n crea un apuntador desde un entero sin una conversi?n mappostgis.c: En la funci?n `msPOSTGISLayerGetItems': mappostgis.c:1417: `layerinfo' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:1426: `PGresult' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:1460: aviso: asignaci?n crea un apuntador desde un entero sin una conversi?n mappostgis.c:1461: `PGRES_TUPLES_OK' no ha sido declarado aqu? (primero p?selo en esta funci?n) mappostgis.c:1465: aviso: el argumento de formato no es un apuntador (argumento 4) mappostgis.c:1477: aviso: declaraci?n impl?cita de la funci?n `PQnfields' mappostgis.c:1486: aviso: declaraci?n impl?cita de la funci?n `PQfname' mappostgis.c:1486: aviso: asignaci?n crea un apuntador desde un entero sin una conversi?n make: *** [mappostgis.o] Error 1 Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From kboyleAlt at YAHOO.COM Wed Mar 16 10:03:57 2005 From: kboyleAlt at YAHOO.COM (Keith Boyle) Date: Wed, 16 Mar 2005 12:03:57 -0600 Subject: adding a layer programmatically with PHP Message-ID: thanks Kristjan, sorry for the late reply. I also found that the numlayers property isn't updated when you use ms_newLayerObj() and that using $map->getAllLayerNames() and iterating over the list seems a decent workaround. My layer controls were not being created , since I was looping over numlayers. cheers, -Keith On Fri, 4 Mar 2005 09:39:10 +0200, Kristjan Annus wrote: >Here is one sample how to create layer in PHP, may be this could help. > > $layer = ms_newLayerObj($map); > $layer->set("name", "points"); > $layer->set("type", MS_LAYER_POINT); > $layer->set("status", MS_ON); > > $class = ms_newClassObj($layer); > $class->set("status", MS_ON); > $class->label->set("type", MS_TRUETYPE); > $class->label->set("font", 'arial'); > $class->label->color->setRGB( 200,200,200); > $class->label->outlinecolor->setRGB(255, 255, 255); > $class->label->set("size", 12); > $class->label->set("position", 9); > > $style = ms_newStyleObj($class); > $style->set("symbol", $map->getsymbolbyname( 'circle')); > $style->set("size", 8); > $style->color->setRGB( 200,200,200); > $style->outlinecolor->setRGB(255, 255, 255); > >Kristjan > >>I'm trying to add Classes to Layers and copied Layers to a Map through >>PHPMapScript, but can't find a way in the documentation/faq/mail archive. >>This seems really basic, so must just be missing something obvious and >>simple. Can anyone give me a quick pointer? >> >>thanks for any help, >>-Keith >> >> From raghu at KU.EDU Wed Mar 16 10:23:03 2005 From: raghu at KU.EDU (Shantha, Raghavendra Vasanth) Date: Wed, 16 Mar 2005 12:23:03 -0600 Subject: scale buckets programatically Message-ID: Hi All, I am new to Mapserver/mapscript. I am trying to do "scale buckets" on a AIG (Arc/Info Grid) raster file. Here is a snippet of the code (python mapscript): #MapObj done #LayerObj done # Scale Buckets in LayerObj lyr.classitem = '[pixel]' lyr.addProcessing('BANDS=1') lyr.addProcessing('SCALE=13,96') lyr.addProcessing('SCALE_BUCKETS=2') clsRed = mapscript.classObj(lyr) clsRed.name = 'red' clsRed.setExpression('[pixel] < 10.0') styleo = mapscript.styleObj(clsRed) styleo.color.setRGB(255,0,0) clsGreen = mapscript.classObj(lyr) clsGreen.name = 'green' clsGreen.setExpression('[pixel] >=10.0') styleo = mapscript.styleObj(clsGreen) styleo.color.setRGB(0,255,0) If I render the AIG (Arc/Info Grid) raster file using the above code, I always get a "white" image (=> no features are selected). (the SCALE=13,96 limits were obtained using gdalinfo ) I don't know where I am going wrong. Any ideas? Thanks, Raghu From steve.lime at DNR.STATE.MN.US Wed Mar 16 10:48:48 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 16 Mar 2005 12:48:48 -0600 Subject: Mapserver and ECW SDK license Message-ID: Our conversations with ERMapper on the subject indicate that they realize there's a problem with the license and they will be ammending it. So cross your fingers... Steve >>> Gregor Mosheh 3/16/2005 8:13:06 AM >>> > I have some confusion wether or not we are allowed > to use ECW (through > GDAL) in Mapserver right now. I was reading the license because I wanted to bundle the ECW SDK with something, and it's pretty specific and repetitive about a few points, one of them being: - the ECW SDK cannot be used to provide functionality on any computer that acts as a server This seems to me to pretty clearly make it not usable by MapServer, even if you didn't plan to redistribute your copy. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From fwarmerdam at GMAIL.COM Wed Mar 16 10:52:54 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 16 Mar 2005 13:52:54 -0500 Subject: scale buckets programatically In-Reply-To: Message-ID: On Wed, 16 Mar 2005 12:23:03 -0600, Shantha, Raghavendra Vasanth wrote: > Hi All, > > I am new to Mapserver/mapscript. > > I am trying to do "scale buckets" on a AIG (Arc/Info Grid) raster file. Raghu, I'm not exactly sure why what you are doing isn't working ... at least a bit. but my suggestion would be to avoid setting explicit scale bounds, and number of buckets and trying again. I would also encourage you to first try getting things working with a static map file before trying to construct things via mapscript. Also, when reporting problems like this it is helpful to report the software version you are using. In particular, raster classification has been altered non-trivially in the 4.4.0 release compared to earlier versions. 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 stigmata_blackangel at YAHOO.COM Wed Mar 16 10:57:36 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Wed, 16 Mar 2005 10:57:36 -0800 Subject: Mapserver and ECW SDK license In-Reply-To: 6667 Message-ID: --- Steve Lime wrote: > Our conversations with ERMapper on the subject > indicate that they realize there's a > problem with the license and they will be ammending > it. So cross your fingers... That is *great* news, Steve! Thanks for the update. __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ From cryptic_acrophobiac at YAHOO.COM Wed Mar 16 11:53:31 2005 From: cryptic_acrophobiac at YAHOO.COM (K.J. L) Date: Wed, 16 Mar 2005 13:53:31 -0600 Subject: Follow Up Installation Issue Message-ID: Thank You Ken and Blaise for the response. Well As per Ken I have changed the IIS settings and allow the execution of 'Scripts and and Exes'. But now it is showing me a new Error output. It says ***CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: **** Instead of the desired output ***"No query information to decode. QUERY_STRING is set, but empty.*** Well Blaise in windows "cgi-bin" folder is known as "scripts" so in url it showed as /scripts in place of /cgi-bin and the ? mark doesn't make any difference. Thank You once again. -K From kenlord at GMAIL.COM Wed Mar 16 12:09:14 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 16 Mar 2005 12:09:14 -0800 Subject: Follow Up Installation Issue In-Reply-To: Message-ID: Hi K, The HTTP Headers error is something I've ranted about a few times here on the list in the last couple weeks ... I believe you are the 7th person to ask that I am sending the fix to, and the second today. Go to www.maptools.org/dl Get their version of 4.4.1 Use the mapserv.exe and the .dll files that are within the .zip files in the main file you download. This version has a larger exe file that is less dependant on external dll's and avoids a problem that exists in 4.4.1 downloaded from the mapserver homepage. It fixed the problem for me on windows xp sp1 and windows 2000 installations. Cheers, Ken Lord Vancouver BC ... right next door to the Air India trial, where they just declared a Not Guilty verdict. I guess that makes them heros instead of terrorists. On Wed, 16 Mar 2005 13:53:31 -0600, K.J. L wrote: > Thank You Ken and Blaise for the response. > > Well As per Ken I have changed the IIS settings and allow the execution of > 'Scripts and and Exes'. But now it is showing me a new Error output. > It says > > ***CGI Error > The specified CGI application misbehaved by not returning a complete set > of HTTP headers. The headers it did return are: > **** > Instead of the desired output > > ***"No query information to decode. QUERY_STRING is set, but empty.*** > > Well Blaise in windows "cgi-bin" folder is known as "scripts" so in url it > showed as /scripts in place of /cgi-bin > > and the ? mark doesn't make any difference. > > Thank You once again. > > -K > From rhysi at OMNILINK.COM.AU Wed Mar 16 22:27:48 2005 From: rhysi at OMNILINK.COM.AU (Rhys Ickeringill) Date: Thu, 17 Mar 2005 17:27:48 +1100 Subject: Mapserver/PostGIS performance Message-ID: Hi List, When using MapServer to rasterise a map which references PostGIS layers, does anyone know if: (1) there a performance impact if the generic geometry type of the layer is set to "GEOMERY" rather than using one of the more specific geometry types (eg. LINESTRING, POLYGON, POINT)? (2) there a performance impact if the geometry type of a layer of polygons is set to MULTIPOLYGON rather than using the more specific POLYGON type ? I have a number of big layers which are 99% of one geometry type, but with a sprinkling of others. Hence I am wondering whether it is worth huting out and removing the other 1%, or whether it's not worth it and I should just use a more generic geometry type description... Thanks Rhys From stephane.riff at CERENE.FR Thu Mar 17 00:14:13 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Thu, 17 Mar 2005 09:14:13 +0100 Subject: scalebar units Message-ID: I want to change scalebar units via phpmapscript when scale under a certain number. I want to change from MS_KILOMETERS to MS_METERS. I did it like this : $map->scalebar->set("units",MS_METERS); This seems to work because when i look in the mapfile after $map->save() I see UNITS METERS in the scalebar section. The problem is when i reload the .map file i've just save and draw an image from it the scale is still in KILOMETERS........ Does someone success in changing scalebar units with phpmapscript ??? Thanks From ragnvald at MINDLAND.COM Thu Mar 17 01:01:47 2005 From: ragnvald at MINDLAND.COM (Ragnvald) Date: Thu, 17 Mar 2005 12:01:47 +0300 Subject: Controlling classitems through PHP? (Tanzanian protected areas) Message-ID: I have a layer of Tanzanian protected areas (National parks, Game Reserves, Conservation areas, etc). My goal is to be able to control the visual appearances of the separate parks based on numerical data in an animal survey database using PHP. I am really struggling with this and have not been able to figure it out. I have done several searches, and to be honest working with classes through PHP is a bit new to me. If I manage to do this it will be VERY helpful for us here at TAWIRI. The planned script should generate different maps for different estimated species concentrations in these protected areas. The first step is to be able to control the different parks appearances by referring to their names. (Currently the developed solution will only be for testing purposes and internal use at my department.) This is what I can do by using a simple map-file: http://www.mindland.com/test/tanzania_parks_pres_1.gif The code for the "Parks" layer is like this: LAYER NAME "Parks" TYPE POLYGON STATUS ON DATA "TZ_PAs_2002_Poly" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASSITEM 'NAME' CLASS COLOR 190 190 190 SYMBOL 0 EXPRESSION "Serengeti" NAME "Serengeti" END CLASS COLOR 210 210 210 SYMBOL 0 EXPRESSION "Ikorongo" NAME "Ikorongo" END CLASS COLOR 220 220 220 SYMBOL 0 EXPRESSION "Grumeti" NAME "Grumeti" END CLASS COLOR 220 220 220 SYMBOL 0 EXPRESSION "Masawa" NAME "Masawa" END CLASS COLOR 220 220 220 SYMBOL 0 EXPRESSION "Ngorongoro" NAME "Ngorogoro" END END END The question is then how to control the CLASSITEM color appearance and also selection of which classitems to show - through PHP. In the end I will use database queries, but for now I will be happy to do this by hard coding it in PHP. I am able to do changes on the other parks (not displayed as classitems). This code is added before the map is drawn: $layerObj = $map->getlayerbyname("Parks"); $class = ms_newClassObj($layerObj); $style = ms_newStyleObj($class); $style->color->setRGB(200,200,0); Resulting image is then: http://www.mindland.com/test/tanzania_parks_pres_2.gif Suggestions and references to relevant postings would be fine. I re Ragnvald Larsen Geographer / data systems developer Conservation Information and Monitoring Unit, Tanzania Wildlife Researc Institute, Tanzania -------------- next part -------------- An HTML attachment was scrubbed... URL: From margottid at COMUNE.LUGO.RA.IT Thu Mar 17 01:23:27 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 17 Mar 2005 10:23:27 +0100 Subject: How can I allow/deny a layer if I browse the map from Intranet/Internet? Message-ID: Hi list, I have a layer with ortophotos: I can legally use these ortophotos in Intranet application, but I cannot/won't show them I someone browses the map from Internet. I use cgi-bin Mapserver on a server that is both on the Intranet and on the Internet. Is there a way to block the visualization of ortophotos layer if the request comes from the Internet? Unfortunately, I cannot use two different templates (one with "ortophotos checkbox", and one without it) since everyone can "create" his own map using cgi-bin Mapserver syntax (and activate/deactivate layers even if they are not in the template). Perhaps this is a more Apache-related question... I can configure my Apache with many VirtualHosts (based on the ServerName, that is different if accessed from Intranet or from Internet), but I need ad idea to prevent Mapserver reading certain files (or certain directories) if invoked from Intranet or from Internet. Can you help me? Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.huisman at INGBCC.NL Thu Mar 17 01:48:52 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Thu, 17 Mar 2005 10:48:52 +0100 Subject: refresh Message-ID: Thanks! It's simple. I didn't thought about that. -----Oorspronkelijk bericht----- Van: Constantin Cristian [mailto:constantin.a.cristian at GMAIL.COM] Verzonden: woensdag 16 maart 2005 10:47 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] refresh I had the same problem and the solution was simple, the problem apears only if you have "TRANSPARENT TRUE" in the OUTPUTFORMAT in your map file set it to FALSE and it will work ok. ----- Original Message ----- From: "blaise" To: Sent: Tuesday, March 15, 2005 5:32 PM Subject: Re: [UMN_MAPSERVER-USERS] refresh Le mardi 15 Mars 2005 16:13, Dirk-Jan Huisman a ?crit : > I use: > browser IE 6.0 > OS windows 2000 professional. > java virtual machine is what you get with the installation of windows > 2000. > > Dirk Rosa applet should work with IE on W2K, but with Sun java virtual machine. Can you check which JVM IE is using ? You should find that somewhere in the Advanced Options of IE. If you only have Microsoft's one, I think it won't work properly. You have to dl Sun's one from their site, and then tells IE to use Sun JVM instead of Microsoft's. (Or maybe it could work if you upgrade your Microsoft JVM, because I think I have understood they were trying to stick again to Sun compatibility ? ? ?) Maybe you should try with Firefox or Mozilla because I think they are set to use Sun JVM. Blaise ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ From rodrigo.lists at FABRICADEIDEIAS.COM Thu Mar 17 04:10:28 2005 From: rodrigo.lists at FABRICADEIDEIAS.COM (Rodrigo Severo) Date: Thu, 17 Mar 2005 09:10:28 -0300 Subject: puzzling error message: arString(): Unable to access file. adLabelString() In-Reply-To: <42383240.4070407@univ-tlse2.fr> Message-ID: Laurent J?gou wrote: > The solution is to build separately mapserver and php_mapscript. One > configuration for each. Have you managed to get a working php/mapscript this way? Could you please share the exact configure options you used to create a working php/mapscript under Linux? > > Classically i was doing progressive ./configure and builds, to finally > arrive at php_mapscript, but this approach broke the mapserv binary when > building the php_mapscript module. I thinks that's a real void in the > documentaion files, at least for nioubies like me on Linux ;-) I agree. TIA, Rodrigo Severo ----------------------------------------------- Rodrigo Severo F?brica de Id?ias SBS -Ed. Empire Center Sala 1301 - Cobertura Fone: (61) 321 1357 Fax: (61) 223 1712 Bras?lia/DF ----------------------------------------------------------------------- The function of the expert is not to be more right than other people, but to be wrong for more sophisticated reasons. -- Dr. David Butler, British psephologist ------------------------- From schuyler at NOCAT.NET Thu Mar 17 05:30:44 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Thu, 17 Mar 2005 05:30:44 -0800 Subject: in memory of Sol Katz Message-ID: Here's a really nice suggestion from Sonny Parafina for a "Sol Katz Memorial Open Source Geospatial Award" to be given out at MUM... Folks on the Geowanking list seemed to feel it was a good idea. Does anyone have any thoughts about this? SDE ----- Forwarded message from Sonny Parafina ----- Date: Wed, 16 Mar 2005 23:25:27 -0500 From: "Sonny Parafina" To: Subject: RE: [Geowanking] Anyone at ETech this year? I think that open source geospatial / MUM is the place to be this year. As an aside, I'm not sure how many of you are familiar with the late Sol Katz of the BLM. In the early nineties, Sol was a proponent of open source geospatial software and posted many utilities for converting DEM's, reading SDTS files, providing a reverse engineered specification of the ESRI E00 format, and of course maintaining PC MOSS (an early raster GIS). Sol passed away in 1999 from non-Hodgkins lymphoma. Sol's utilities are still available from here: ftp://ftp.blm.gov/pub/gis/ And, his site with web mapping and metadata references is still available: http://www.blm.gov/gis/nsdi.html I think would great to recognize Sol's contributions to the geospatial community by creating an award for Geospatial FOSS in his name. Does anyone think that this is a good idea to suggest to organizers of open source geospatial / MUM? sonny From kristjan at TARKVARASTUUDIO.EE Thu Mar 17 05:42:44 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Thu, 17 Mar 2005 15:42:44 +0200 Subject: Controlling classitems through PHP? (Tanzanian protected areas) In-Reply-To: <20050317090145.1EB2053863@mail.habari.co.tz> Message-ID: Hi, I am a little bit confused what you actually want to do? If you have the data witch you want to publish in database, then you could for example loop through the records and draw each one of them to the map with PHP functions and change the color or appearance of the current shape before you draw this particular shape. In this case you could use different pre-made classes in your map file and change the classitem of the shape. How the actual code should look like depends witch database you are using and how the datastructure is organized. I can make you a better example if I could have more information. But generally it could be something like this: do (with every shape on the database) { // gather the points to the shape from your database (some loop required I assume): $line = ms_newLineObj(); do ( ... ) { $point = ms_newPointObj(); $point->setXY( $myrow["koord1"], $myrow["koord2"]); $line->add( $point); } // draw the shape to the map ( the $classitem variable could be set before by some information from your database) $pind=ms_newShapeObj( 2); $pind->add($line); $lshape->draw( $map, $layer, $image, $classitem, $tekst); } Kristjan > I have a layer of Tanzanian protected areas (National parks, Game > Reserves, Conservation areas, etc). My goal is to be able to control > the visual appearances of the separate parks based on numerical data > in an animal survey database using PHP. > > I am really struggling with this and have not been able to figure it > out. I have done several searches, and to be honest working with > classes through PHP is a bit new to me. If I manage to do this it will > be VERY helpful for us here at TAWIRI. > > The planned script should generate different maps for different > estimated species concentrations in these protected areas. The first > step is to be able to control the different parks appearances by > referring to their names. (Currently the developed solution will only > be for testing purposes and internal use at my department.) > > This is what I can do by using a simple map-file: > > http://www.mindland.com/test/tanzania_parks_pres_1.gif > > The code for the ?Parks? layer is like this: > > LAYER > > NAME "Parks" > > TYPE POLYGON > > STATUS ON > > DATA "TZ_PAs_2002_Poly" > > PROJECTION > > "proj=latlong" > > "ellps=GRS80" > > "datum=NAD83" > > END > > CLASSITEM 'NAME' > > CLASS > > COLOR 190 190 190 > > SYMBOL 0 > > EXPRESSION "Serengeti" > > NAME "Serengeti" > > END > > CLASS > > COLOR 210 210 210 > > SYMBOL 0 > > EXPRESSION "Ikorongo" > > NAME "Ikorongo" > > END > > CLASS > > COLOR 220 220 220 > > SYMBOL 0 > > EXPRESSION "Grumeti" > > NAME "Grumeti" > > END > > CLASS > > COLOR 220 220 220 > > SYMBOL 0 > > EXPRESSION "Masawa" > > NAME "Masawa" > > END > > CLASS > > COLOR 220 220 220 > > SYMBOL 0 > > EXPRESSION "Ngorongoro" > > NAME "Ngorogoro" > > END > > END > > END > > The question is then how to control the CLASSITEM color appearance and > also selection of which classitems to show - through PHP. In the end I > will use database queries, but for now I will be happy to do this by > hard coding it in PHP. I am able to do changes on the other parks (not > displayed as classitems). This code is added before the map is drawn: > > $layerObj = $map->getlayerbyname("Parks"); > > $class = ms_newClassObj($layerObj); > > $style = ms_newStyleObj($class); > > $style->color->setRGB(200,200,0); > > Resulting image is then: > > http://www.mindland.com/test/tanzania_parks_pres_2.gif > > Suggestions and references to relevant postings would be fine. I re > > Ragnvald Larsen > > Geographer / data systems developer > > Conservation Information and Monitoring Unit, > > Tanzania Wildlife Researc Institute, > > Tanzania > From cryptic_acrophobiac at YAHOO.COM Thu Mar 17 05:53:40 2005 From: cryptic_acrophobiac at YAHOO.COM (cryptic acrophobiac) Date: Thu, 17 Mar 2005 05:53:40 -0800 Subject: Follow Up Installation Issue-1 In-Reply-To: 6667 Message-ID: Hey Ken, Sorry to cause you extra writing.. But Thnx a lot .. Finaly I have been able to see that QUERY_STRING output which meant the mapserver is working for the moment. The new downloaded bigger mapserve.exe is working I guess Thank You very Much. I wonder why in the main mapserver page they are calling 4.4.1 a stable version when it's makeing people confused? -K --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Thu Mar 17 05:51:18 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 17 Mar 2005 08:51:18 -0500 Subject: Tiger Shapefile tiling problem Message-ID: I wanted to create a single layer for several states worth of Tiger shapefiles, and I remembered a thread a few weeks ago about using tiles to accomplish this. I tried to follow the advice given then but I am having a few problems. First of all, i'm running mapserver with a debian install and it seems that this install did not include tile4ms. However, I had previously installed mapserver under windows xp and I found that I do have the windows binary for this utility so that's what I tried to use. I used the command: tile4ms data_dir.in tiger-roads where "data_dir.in" was a list of all the tiger .shp files with the full path to those files. If my file list does not include file extensions, I get an error that looks like this: Aborted. Unable to open DBF:c:\tiger\all\CT_Fairfield_County Processed 0 of 1 files If the file list includes either the extension .shp or .dbf, I get the following errors: Aborted. DBF fields do not match for file:c:\tiger\all\VT_Orleans_County_Poly.shp Aborted. DBF fields do not match for file:c:\tiger\all\VT_Rutland_County_Poly.shp Aborted. DBF fields do not match for file:c:\tiger\all\VT_Washington_County_Poly.shp Aborted. DBF fields do not match for file:c:\tiger\all\VT_Windham_County_Poly.shp..... Can anybody tell me what I'm doing wrong and how to properly use the tile4ms utility? Thanks, Jeff From gerry.creager at TAMU.EDU Thu Mar 17 06:09:52 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Thu, 17 Mar 2005 08:09:52 -0600 Subject: in memory of Sol Katz In-Reply-To: <20050317133044.GX25704@vishnu.tridity.org> Message-ID: As someone who grew up in GIS using a lot of Sol's tools, I think this'd be an excellent idea. Gerry Schuyler Erle wrote: > Here's a really nice suggestion from Sonny Parafina for a "Sol Katz > Memorial Open Source Geospatial Award" to be given out at MUM... Folks > on the Geowanking list seemed to feel it was a good idea. Does anyone > have any thoughts about this? > > SDE > > ----- Forwarded message from Sonny Parafina ----- > > Date: Wed, 16 Mar 2005 23:25:27 -0500 > From: "Sonny Parafina" > To: > Subject: RE: [Geowanking] Anyone at ETech this year? > > I think that open source geospatial / MUM is the place to be this year. > > As an aside, I'm not sure how many of you are familiar with the late Sol > Katz of the BLM. In the early nineties, Sol was a proponent of open source > geospatial software and posted many utilities for converting DEM's, reading > SDTS files, providing a reverse engineered specification of the ESRI E00 > format, and of course maintaining PC MOSS (an early raster GIS). Sol passed > away in 1999 from non-Hodgkins lymphoma. > > Sol's utilities are still available from here: ftp://ftp.blm.gov/pub/gis/ > And, his site with web mapping and metadata references is still available: > http://www.blm.gov/gis/nsdi.html > > I think would great to recognize Sol's contributions to the geospatial > community by creating an award for Geospatial FOSS in his name. Does anyone > think that this is a good idea to suggest to organizers of open source > geospatial / MUM? > > sonny -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From fwarmerdam at GMAIL.COM Thu Mar 17 06:10:52 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 17 Mar 2005 09:10:52 -0500 Subject: in memory of Sol Katz In-Reply-To: <20050317133044.GX25704@vishnu.tridity.org> Message-ID: On Thu, 17 Mar 2005 05:30:44 -0800, Schuyler Erle wrote: > Here's a really nice suggestion from Sonny Parafina for a "Sol Katz > Memorial Open Source Geospatial Award" to be given out at MUM... Folks > on the Geowanking list seemed to feel it was a good idea. Does anyone > have any thoughts about this? Schuyler, I think it would be a great idea. Sol made a real groundbreaking effort to provide open source GIS utilities and translators through the 90's. Of course, there might be some challenges organizing it. I gather it would fall on the OSGIS/MUM/... organizing committee to select a winner? At OGC they have the Ken Gardel's award which is given out once per year to an outstanding contributor to OGC's efforts. I have attended a couple of these and I think it really gives a chance to look at the broader picture of what we are trying to do and the kinds of contributions over the years that have made a cumulative difference. So I think having something similar in Sol Katz' name for Geospatial FOSS would be great. 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 woodbri at SWOODBRIDGE.COM Thu Mar 17 06:11:35 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 17 Mar 2005 09:11:35 -0500 Subject: Tiger Shapefile tiling problem In-Reply-To: <00c101c52af8$770ca2e0$1bf2fbd0@solo> Message-ID: Jeff, I use Debian also, and I just downloaded the tarbar and built mapserver in my local directory and copied the utilities to ~/bin If you create the tileindex on windows you may not be able to use it on Linux as the path names may be different. Also as for your file list, it should NOT have the "file:" on the front and I would create the paths with a "/" instead of "\" and I would leave the "C:" if this is your default drive. Does it work with the ".shp" on the file names? if it does then just include them. -Steve Jeff Portwine wrote: > I wanted to create a single layer for several states worth of Tiger > shapefiles, and I remembered a thread a few weeks ago about using tiles to > accomplish this. I tried to follow the advice given then but I am > having a > few problems. First of all, i'm running mapserver with a debian install > and it seems that this install did not include tile4ms. However, I had > previously installed mapserver under windows xp and I found that I do have > the windows binary for this utility so that's what I tried to use. > > I used the command: > tile4ms data_dir.in tiger-roads > where "data_dir.in" was a list of all the tiger .shp files with the full > path to those files. > If my file list does not include file extensions, I get an error that > looks > like this: > > Aborted. Unable to open DBF:c:\tiger\all\CT_Fairfield_County > Processed 0 of 1 files > > If the file list includes either the extension .shp or .dbf, I get the > following errors: > Aborted. DBF fields do not match for > file:c:\tiger\all\VT_Orleans_County_Poly.shp > Aborted. DBF fields do not match for > file:c:\tiger\all\VT_Rutland_County_Poly.shp > Aborted. DBF fields do not match for > file:c:\tiger\all\VT_Washington_County_Poly.shp > Aborted. DBF fields do not match for > file:c:\tiger\all\VT_Windham_County_Poly.shp..... > > > Can anybody tell me what I'm doing wrong and how to properly use the > tile4ms > utility? > > Thanks, > Jeff > From jdport at VERITIME.COM Thu Mar 17 06:15:22 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 17 Mar 2005 09:15:22 -0500 Subject: Tiger Shapefile tiling problem Message-ID: My data_dir.in file looks like this: c:\tiger\all\CT_Fairfield_County c:\tiger\all\CT_Fairfield_County_Poly c:\tiger\all\CT_Hartford_County c:\tiger\all\CT_Hartford_County_Poly c:\tiger\all\CT_Litchfield_County c:\tiger\all\CT_Litchfield_County_Poly c:\tiger\all\CT_Middlesex_County c:\tiger\all\CT_Middlesex_County_Poly ... ... I tried appending .shp to the ends of the files, but that gave me the second set of errors. I'll try compiling the utilities and see if i can get a debian binary for tile4ms. Thanks, Jeff ----- Original Message ----- From: "Stephen Woodbridge" To: "Jeff Portwine" Cc: Sent: Thursday, March 17, 2005 9:11 AM Subject: Re: [UMN_MAPSERVER-USERS] Tiger Shapefile tiling problem > Jeff, > > I use Debian also, and I just downloaded the tarbar and built mapserver in > my local directory and copied the utilities to ~/bin > > If you create the tileindex on windows you may not be able to use it on > Linux as the path names may be different. > > Also as for your file list, it should NOT have the "file:" on the front > and I would create the paths with a "/" instead of "\" and I would leave > the "C:" if this is your default drive. Does it work with the ".shp" on > the file names? if it does then just include them. > > -Steve > > Jeff Portwine wrote: >> I wanted to create a single layer for several states worth of Tiger >> shapefiles, and I remembered a thread a few weeks ago about using tiles >> to >> accomplish this. I tried to follow the advice given then but I am >> having a >> few problems. First of all, i'm running mapserver with a debian install >> and it seems that this install did not include tile4ms. However, I had >> previously installed mapserver under windows xp and I found that I do >> have >> the windows binary for this utility so that's what I tried to use. >> >> I used the command: >> tile4ms data_dir.in tiger-roads >> where "data_dir.in" was a list of all the tiger .shp files with the full >> path to those files. >> If my file list does not include file extensions, I get an error that >> looks >> like this: >> >> Aborted. Unable to open DBF:c:\tiger\all\CT_Fairfield_County >> Processed 0 of 1 files >> >> If the file list includes either the extension .shp or .dbf, I get the >> following errors: >> Aborted. DBF fields do not match for >> file:c:\tiger\all\VT_Orleans_County_Poly.shp >> Aborted. DBF fields do not match for >> file:c:\tiger\all\VT_Rutland_County_Poly.shp >> Aborted. DBF fields do not match for >> file:c:\tiger\all\VT_Washington_County_Poly.shp >> Aborted. DBF fields do not match for >> file:c:\tiger\all\VT_Windham_County_Poly.shp..... >> >> >> Can anybody tell me what I'm doing wrong and how to properly use the >> tile4ms >> utility? >> >> Thanks, >> Jeff >> > > From murilo.yoshida at AGX.COM.BR Thu Mar 17 06:56:48 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Thu, 17 Mar 2005 11:56:48 -0300 Subject: RES: [UMN_MAPSERVER-USERS] scalebar units Message-ID: -----Mensagem original----- De: Murilo Lacerda Yoshida [mailto:murilo.yoshida at agx.com.br] Enviada em: quinta-feira, 17 de mar?o de 2005 11:53 Para: 'St?phane RIFF'; 'MAPSERVER-USERS at LISTS.UMN.EDU' Assunto: RES: [UMN_MAPSERVER-USERS] scalebar units Stephane, I do the same way you do, with $map->scalebar->set("units",MS_METERS); But in my case and don't do $map->save because I only change the scalebar unit when the user zooms in... if he zooms out I change the scalebar back to kilometers. I don't know if this will help you, but yes, I had success in changing scalebar units with php/mapscript... Bye, Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de St?phane RIFF Enviada em: quinta-feira, 17 de mar?o de 2005 05:14 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: [UMN_MAPSERVER-USERS] scalebar units I want to change scalebar units via phpmapscript when scale under a certain number. I want to change from MS_KILOMETERS to MS_METERS. I did it like this : $map->scalebar->set("units",MS_METERS); This seems to work because when i look in the mapfile after $map->save() I see UNITS METERS in the scalebar section. The problem is when i reload the .map file i've just save and draw an image from it the scale is still in KILOMETERS........ Does someone success in changing scalebar units with phpmapscript ??? Thanks From lists at WEBMAPIT.COM.BR Thu Mar 17 07:24:12 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Thu, 17 Mar 2005 12:24:12 -0300 Subject: Commercial/Large datasets MapServer/PostGIS sample sites Message-ID: Hi folks, Here I am again trying to convince a traditional "$pay software" consumer to accept free software... :-) I'm looking for commercial websites or larget data set website to use as example for the power, and trust of MapServer and PostGIS features. Can anybody suggest one? Best. -- Eduardo Patto Kanegae Treinamento & Consultoria em UMN MapServer, PostGIS e FreeGIS Software http://www.webmapit.com.br Skype: eduardopattokanegae ICQ: 303747254 MSN: eduardo_patto~at~hotmail.com Phone: +55(16)9994-2928 ***Fim da Mensagem / End of Message *** From schuyler at NOCAT.NET Thu Mar 17 07:27:02 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Thu, 17 Mar 2005 07:27:02 -0800 Subject: Commercial/Large datasets MapServer/PostGIS sample sites In-Reply-To: <4239A11C.3030009@webmapit.com.br> Message-ID: How about TopoZone? http://www.topozone.com/webservices.asp SDE * On 17-Mar-2023 at 7:23AM PST, Eduardo Patto Kanegae said: > Hi folks, > > Here I am again trying to convince a traditional "$pay software" > consumer to accept free software... :-) > > I'm looking for commercial websites or larget data set website to use as > example for the power, and trust of MapServer and PostGIS features. > > Can anybody suggest one? > > Best. > > -- > Eduardo Patto Kanegae > Treinamento & Consultoria em UMN MapServer, PostGIS e FreeGIS Software > http://www.webmapit.com.br > Skype: eduardopattokanegae > ICQ: 303747254 > MSN: eduardo_patto~at~hotmail.com > Phone: +55(16)9994-2928 > > ***Fim da Mensagem / End of Message *** From cdaily at GMAIL.COM Thu Mar 17 07:42:12 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 17 Mar 2005 09:42:12 -0600 Subject: How can I allow/deny a layer if I browse the map from Intranet/Internet? In-Reply-To: <004601c52ad2$f9e4b020$041410ac@comune.lugo.ra.it> Message-ID: I would strongly suggest using mapscript to get the desired results. With mapscript, it would be quite simple to just check the ip of the person requesting the page and set different layers to be turned off accordingly. If you're going to be confined to using the cgi-bin mapserver, you might look into mod_suexec for apache. You can use it to define a different user/group that cgi apps will be run as for different virtual hosts. Then, you could set your layers with permissions that only make them available for the specific user or group that should have access. -Camden On Thu, 17 Mar 2005 10:23:27 +0100, Daniele Margotti wrote: > > Hi list, > I have a layer with ortophotos: I can legally use these ortophotos in > Intranet application, but I cannot/won't show them I someone browses the map > from Internet. > > I use cgi-bin Mapserver on a server that is both on the Intranet and on the > Internet. > > Is there a way to block the visualization of ortophotos layer if the request > comes from the Internet? > > Unfortunately, I cannot use two different templates (one with "ortophotos > checkbox", and one without it) since everyone can "create" his own map using > cgi-bin Mapserver syntax (and activate/deactivate layers even if they are > not in the template). > > Perhaps this is a more Apache-related question... > I can configure my Apache with many VirtualHosts (based on the ServerName, > that is different if accessed from Intranet or from Internet), but I need ad > idea to prevent Mapserver reading certain files (or certain directories) if > invoked from Intranet or from Internet. > > Can you help me? > > Daniele > From flavio at TYDAC.CH Thu Mar 17 07:48:36 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 17 Mar 2005 16:48:36 +0100 Subject: Commercial/Large datasets MapServer/PostGIS sample sites In-Reply-To: <4239A11C.3030009@webmapit.com.br> Message-ID: hi eduardo see: - http://www.ortsplan.ch/ - http://www.swisscom-mobile.ch/bus_asp/bus_home.asp? nid=1672&UserLanguage=E (click on UMTS coverage) - http://waedenswil.mapserver.ch/stadtplan.htm Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From cdaily at GMAIL.COM Thu Mar 17 07:58:38 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 17 Mar 2005 09:58:38 -0600 Subject: Commercial/Large datasets MapServer/PostGIS sample sites In-Reply-To: <20050317152702.GB25704@vishnu.tridity.org> Message-ID: Our Real Estate company in Chicago has started using mapserver to display area maps and information for our properties. A sample property can be seen here: http://www.prupref.com/property-search/address-search-detail.cfm?mlsid=04268917&property_listing_id=156&city=chicago&state=IL&finder_search__order_by=highest%20price%20first&finder_search__current_row=1 If you click on the link 'Area Information' (or click here: http://map.prupref.com/legend.php?street_1=5320+Sheridan++2110&city=Chicago&state=IL&zip=60640&prepared=Jim+Michaels+(773)+572-7524 ) you can see a map that we generate using PHP/Mapscript. The 'Restaurant Guide' link is also created using mapscript functions. So far, we're only generating static maps, mostly used for our brochures and flyers. However, we hope to be implementing map-based property searches in the near future. Mapserver has been quite capable in all of the tasks we've been using it for, and the mailing list has been a great source of help when troubleshooting problems. Don't buy a commercial mapping software solution. Save your money for the data! -Camden From ed at TOPOZONE.COM Thu Mar 17 08:10:52 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 17 Mar 2005 11:10:52 -0500 Subject: Commercial/Large datasets MapServer/PostGIS sample sites Message-ID: Eduardo - Yes, is 25 terabytes of data - about 340,000 raster images and 54,000+ shapefiles, making over half a million maps a day for Web users, custom data downloads, desktop WMS clients, and server-based WMS clients big enough? We're not a PostGIS user, however. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Schuyler Erle Sent: Thursday, March 17, 2005 10:27 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Commercial/Large datasets MapServer/PostGIS sample sites How about TopoZone? http://www.topozone.com/webservices.asp SDE * On 17-Mar-2023 at 7:23AM PST, Eduardo Patto Kanegae said: > Hi folks, > > Here I am again trying to convince a traditional "$pay software" > consumer to accept free software... :-) > > I'm looking for commercial websites or larget data set website to use > as example for the power, and trust of MapServer and PostGIS features. > > Can anybody suggest one? > > Best. > > -- > Eduardo Patto Kanegae > Treinamento & Consultoria em UMN MapServer, PostGIS e FreeGIS Software > http://www.webmapit.com.br > Skype: eduardopattokanegae > ICQ: 303747254 > MSN: eduardo_patto~at~hotmail.com > Phone: +55(16)9994-2928 > > ***Fim da Mensagem / End of Message *** From cdaily at GMAIL.COM Thu Mar 17 08:24:37 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 17 Mar 2005 10:24:37 -0600 Subject: puzzling error message: arString(): Unable to access file. adLabelString() In-Reply-To: <423973CA.4080509@fabricadeideias.com> Message-ID: I'm running Apache 2, PHP 5, Mapserver 4.4.1 and Mapscript on Suse 9.1 with no problems so far. I installed most of the underlying libraries (proj, gdal, freetype, postgres, etc) from RPMs. I installed Apache 2 from source, and PHP 5 from source as well, configuring it with : ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-regex=system --with-mssql --with-mysql --with-curl --enable-dbase I then configured mapserver with: ./configure --with-wmsclient --with-gd --with-freetype --with-png --with-proj --with-gdal --with-tiff --with-postgis --with-php=/usr/local/src/php-5.0.3 Note that I point the --with-php directive to the php installation source, not the libraries or binaries. Works for me. -Camden From zhou_naijun at HOTMAIL.COM Thu Mar 17 08:28:17 2005 From: zhou_naijun at HOTMAIL.COM (N Zhou) Date: Thu, 17 Mar 2005 10:28:17 -0600 Subject: defining WFS Geometry/spatial column In-Reply-To: <4792.212.238.227.182.1110905733.squirrel@212.238.227.182> Message-ID: Hi, Thank you very much for your prompt response. I have a follow up question. How can I define the geometry/spatial column? My DescribeFeatureType never showed the name of such a column, so I never noticed this issue. In particular, when ArcView shape files are used, the geometry/spatial column is hidden. But I cannot see the information about the column in DescribeFeatureType even when I used in map file: wfs_geometry_element_name "MS_GEOMETRY" Thank you! N. Zhou >From: Bart van den Eijnden >Reply-To: bartvde at XS4ALL.NL >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] WFS filter query >Date: Tue, 15 Mar 2005 17:55:33 +0100 > >Hi, > >if you use the HTTP GET interface, you need to provide the same filter, so >for my situation: > >http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/general/map/provincies.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=Provincies&FILTER=MS_GEOMETRY121000,469000 >140000,470000 > >You do need to specify the propertyName *inside the BBOX filter*, this is >the spatial column, Mapserver has a default of MS_GEOMETRY, which you can >also see by doing a DescribeFeatureType request on your WFS. This is >something else than the propertyName *outside the Filter* which you are >talking about, which can be used to only retrieve some attributes, which >is however not implemented in Mapserver. > >Did you try adapting my example for your situation? I don't use the wfs >namespace (GetFeature instead of wfs:GetFeature), and don't provide the >XML header which you do. > >Is GetCapabilities and DescribeFeatureType working? > >Good luck. > >Best regards, >Bart > > > Hi Bart, > > > > Thank you for your email. > > > > The only difference between your example and mine is "PropertyName" >under > > the . I think "PropertyName" is optional to specify returned > > elements. Does "MS_GEOMETRY" mean that > > spatial > > BBOX query should use the column "MS_GEOMETRY"? I use .shp files. > > > > Should I change my map file (or mapserver, which works for non Filter > > requests) to support the Filter and/or BBOX query? When I use the URL > > request: > > >http://localhost/cgi-bin/mapserv_44.exe?map=mymapfile&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=myType&FILTER=0,0 > > 600000,600000 > > > > the mapserver told me this: > > msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in > > GetFeature > > > > Thank you! > > > > N. Zhou > > > >>From: Bart van den Eijnden > >>Reply-To: bartvde at XS4ALL.NL > >>To: MAPSERVER-USERS at LISTS.UMN.EDU > >>Subject: Re: [UMN_MAPSERVER-USERS] WFS filter query > >>Date: Tue, 15 Mar 2005 16:33:28 +0100 > >> > >>Hi, > >> > >>this works for me: > >> > >> >> maxFeatures="20" > >> xmlns="http://www.opengis.net/wfs" > >> xmlns:gml="http://www.opengis.net/gml" > >> xmlns:ogc="http://www.opengis.net/ogc" > >> xmlns:xlink="http://www.w3.org/1999/xlink" > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >> xsi:schemaLocation="http://schemas.opengis.net/wfs/1.0.0 > >> WFS-basic.xsd"> > >> > >> > >> > >> MS_GEOMETRY > >> 121000,469000 > >>140000,470000 > >> > >> > >> > >> > >> > >>Best regards, > >>Bart > >> > >> > Hi, > >> > > >> > I have a problem of using WFS filter to get data within a bounding > >> box. > >>My > >> > WFS post request is: > >> > > >> > > >> > >> > xmlns:wfs="http://www.opengis.net/wfs" > >> > xmlns:ogc="http://www.opengis.net/ogc" > >> > xmlns:gml="http://www.opengis.net/gml" > >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >> > xsi:schemaLocation="http://www.opengis.net/wfs" > >> > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> > >> > > >> > > >> > > >> > > >> > 0,0 505234,5448023 > >> > > >> > > >> > > >> > > >> > > >> > > >> > But the mapserver would stop with an error of "Premature end of >script > >> > headers: mapserv_44.exe" > >> > Could anyone tell me why? I know there is a WFS bug of filtering some > >> > elements rather than getting all elements. > >> > > >> > Thank you very much! > >> > > >> > N. Zhou > >> > > > From bartvde at XS4ALL.NL Thu Mar 17 08:46:43 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 17 Mar 2005 17:46:43 +0100 Subject: defining WFS Geometry/spatial column In-Reply-To: Message-ID: Hi, I guess something has changed in this department of Mapserver after version 4.0. If I look at the following post, it used to be true in 2003: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0312/msg00343.html I don't know what the background is of changing this, maybe someone else knows??? The metadata you mention (wfs_geometry_element_name) is not part of the latest WFS server docs anymore, so it is probably deprecated. The propertyName is needed in the Filter, but you can fill in any value you want, I just tried: a 121000,469000 140000,470000 and it works. But I leave it out (a) or use an empty PropertyName, it does not work. Best regards, Bart > Hi, > > Thank you very much for your prompt response. I have a follow up question. > > How can I define the geometry/spatial column? My DescribeFeatureType never > showed the name of such a column, so I never noticed this issue. In > particular, when ArcView shape files are used, the geometry/spatial column > is hidden. But I cannot see the information about the column in > DescribeFeatureType even when I used in map file: > wfs_geometry_element_name "MS_GEOMETRY" > > Thank you! > > N. Zhou > >>From: Bart van den Eijnden >>Reply-To: bartvde at XS4ALL.NL >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] WFS filter query >>Date: Tue, 15 Mar 2005 17:55:33 +0100 >> >>Hi, >> >>if you use the HTTP GET interface, you need to provide the same filter, >> so >>for my situation: >> >>http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/general/map/provincies.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=Provincies&FILTER=MS_GEOMETRY121000,469000 >>140000,470000 >> >>You do need to specify the propertyName *inside the BBOX filter*, this is >>the spatial column, Mapserver has a default of MS_GEOMETRY, which you can >>also see by doing a DescribeFeatureType request on your WFS. This is >>something else than the propertyName *outside the Filter* which you are >>talking about, which can be used to only retrieve some attributes, which >>is however not implemented in Mapserver. >> >>Did you try adapting my example for your situation? I don't use the wfs >>namespace (GetFeature instead of wfs:GetFeature), and don't provide the >>XML header which you do. >> >>Is GetCapabilities and DescribeFeatureType working? >> >>Good luck. >> >>Best regards, >>Bart >> >> > Hi Bart, >> > >> > Thank you for your email. >> > >> > The only difference between your example and mine is "PropertyName" >>under >> > the . I think "PropertyName" is optional to specify returned >> > elements. Does "MS_GEOMETRY" mean that >> > spatial >> > BBOX query should use the column "MS_GEOMETRY"? I use .shp files. >> > >> > Should I change my map file (or mapserver, which works for non Filter >> > requests) to support the Filter and/or BBOX query? When I use the URL >> > request: >> > >>http://localhost/cgi-bin/mapserv_44.exe?map=mymapfile&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=myType&FILTER=0,0 >> > 600000,600000 >> > >> > the mapserver told me this: >> > msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in >> > GetFeature >> > >> > Thank you! >> > >> > N. Zhou >> > >> >>From: Bart van den Eijnden >> >>Reply-To: bartvde at XS4ALL.NL >> >>To: MAPSERVER-USERS at LISTS.UMN.EDU >> >>Subject: Re: [UMN_MAPSERVER-USERS] WFS filter query >> >>Date: Tue, 15 Mar 2005 16:33:28 +0100 >> >> >> >>Hi, >> >> >> >>this works for me: >> >> >> >>> >> maxFeatures="20" >> >> xmlns="http://www.opengis.net/wfs" >> >> xmlns:gml="http://www.opengis.net/gml" >> >> xmlns:ogc="http://www.opengis.net/ogc" >> >> xmlns:xlink="http://www.w3.org/1999/xlink" >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> xsi:schemaLocation="http://schemas.opengis.net/wfs/1.0.0 >> >> WFS-basic.xsd"> >> >> >> >> >> >> >> >> MS_GEOMETRY >> >> 121000,469000 >> >>140000,470000 >> >> >> >> >> >> >> >> >> >> >> >>Best regards, >> >>Bart >> >> >> >> > Hi, >> >> > >> >> > I have a problem of using WFS filter to get data within a bounding >> >> box. >> >>My >> >> > WFS post request is: >> >> > >> >> > >> >> > > >> > xmlns:wfs="http://www.opengis.net/wfs" >> >> > xmlns:ogc="http://www.opengis.net/ogc" >> >> > xmlns:gml="http://www.opengis.net/gml" >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> > xsi:schemaLocation="http://www.opengis.net/wfs" >> >> > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"> >> >> > >> >> > >> >> > >> >> > >> >> > 0,0 505234,5448023 >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > But the mapserver would stop with an error of "Premature end of >>script >> >> > headers: mapserv_44.exe" >> >> > Could anyone tell me why? I know there is a WFS bug of filtering >> some >> >> > elements rather than getting all elements. >> >> > >> >> > Thank you very much! >> >> > >> >> > N. Zhou >> >> > >> > > From jdport at VERITIME.COM Thu Mar 17 09:09:42 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 17 Mar 2005 12:09:42 -0500 Subject: Tiger Shapefile tiling problem Message-ID: I tried doing the complile, but as expected it just blows up during the ./configure phase and I just can't get anywhere with it. I think mapserver is one of the most difficult to build programs i've dealt with. I never was able to get it to compile originally, and I was very happy when I found the debian package that I could install mapserver with. Now, I know that i have all the required packages installed because when I installed the debian package it updated all of the various libraries that mapserver requires. But when I try to do ./configure it can't find any of them. It looks to me like just about every library mapserver is complaining about is in /usr/lib but even when I try adding configure options like --with-gd=/usr or --with-gd=/usr/lib it still can't find the required libraries.... I just don't get it. libgd.so isn't hte only one it can't find... it can't find freetype, zlib, png, jpeg, or xpm either... here is a copy of the configure errors... configure: checking where FreeType 2.x is installed... checking for FT_Init_FreeType in -lfreetype... no freetype-config or libfreetype cannot be found, possibly needed for GD configure: checking where Zlib is installed... checking for zlibVersion in -lz... no Zlib (libz) library cannot be found, possibly needed for GD configure: checking where PNG is installed... checking for png_init_io in -lpng... no PNG (libpng) library cannot be found, possibly needed for GD configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... no libjpeg not found. JPEG support not included, possibly needed for GD. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... no XPM (libXpm) library cannot be found, possibly needed for GD configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.12 or higher... checking for gdImageSetAntiAliased in -lgd... yes checking for gdImageSetAntiAliased in -lgd... (cached) yes configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.12 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). This is the output with no configure options... the only thing that changes if i put in things like --with-gd=/usr or --with-freetype=/usr, etc, is that it says it can't find things in /usr instead of being unable to find them in /usr/local. If anybody has any clues on how to get this working please let me know. All this headache just for one utility... :\ -Jeff From cdaily at GMAIL.COM Thu Mar 17 09:17:49 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 17 Mar 2005 11:17:49 -0600 Subject: Tiger Shapefile tiling problem In-Reply-To: <00f401c52b14$2eb3e910$1bf2fbd0@solo> Message-ID: You may need to install the devel packages for the underlying libraries to compile against them. For example, you might have gd installed, but maybe not gd-devel. The developer packages aren't needed by RPMs, but they're usually necessary to compile software against. I've just taken to installing the devel packages for all the software I install anymore... -Camden On Thu, 17 Mar 2005 12:09:42 -0500, Jeff Portwine wrote: > I tried doing the complile, but as expected it just blows up during the > ./configure phase and I just can't get anywhere with it. I think mapserver > is one of the most difficult to build programs i've dealt with. I never > was able to get it to compile originally, and I was very happy when I found > the debian package that I could install mapserver with. > > Now, I know that i have all the required packages installed because when I > installed the debian package it updated all of the various libraries that > mapserver requires. But when I try to do ./configure it can't find any > of them. It looks to me like just about every library mapserver is > complaining about is in /usr/lib but even when I try adding configure > options like --with-gd=/usr or --with-gd=/usr/lib it still can't find the > required libraries.... I just don't get it. > > libgd.so isn't hte only one it can't find... it can't find freetype, zlib, > png, jpeg, or xpm either... here is a copy of the configure errors... > > configure: checking where FreeType 2.x is installed... > checking for FT_Init_FreeType in -lfreetype... no > freetype-config or libfreetype cannot be found, possibly needed for > GD > configure: checking where Zlib is installed... > checking for zlibVersion in -lz... no > Zlib (libz) library cannot be found, possibly needed for GD > configure: checking where PNG is installed... > checking for png_init_io in -lpng... no > PNG (libpng) library cannot be found, possibly needed for GD > configure: checking whether we should include JPEG support... > checking for jpeg_read_header in -ljpeg... no > libjpeg not found. JPEG support not included, possibly needed for > GD. > configure: checking where libXpm is installed... > checking for XpmFreeXpmImage in -lXpm... no > XPM (libXpm) library cannot be found, possibly needed for GD > configure: checking where libiconv is installed... > checking for iconv_open in -lc... yes > checking for libiconv_open in -liconv... no > using libiconv from system libs. > libiconv found. Enabling internationalization (-DUSE_ICONV) > configure: checking for GD 2.0.12 or higher... > checking for gdImageSetAntiAliased in -lgd... yes > checking for gdImageSetAntiAliased in -lgd... (cached) yes > configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local. > Make sure GD 2.0.12 or higher is compiled before calling configure. You may > also get this error if you didn't specify the appropriate location for one > of GD's dependencies (freetype, libpng, libjpeg or libiconv). > > This is the output with no configure options... the only thing that changes > if i put in things like --with-gd=/usr or --with-freetype=/usr, etc, is that > it says it can't find things in /usr instead of being unable to find them in > /usr/local. > > If anybody has any clues on how to get this working please let me know. > All this headache just for one utility... :\ > > -Jeff > From tinmean at YAHOO.COM.TW Thu Mar 17 09:11:12 2005 From: tinmean at YAHOO.COM.TW (Tinmean K. H. Liu) Date: Thu, 17 Mar 2005 11:11:12 -0600 Subject: About mapserver 4.4.1 and Chinese problem Message-ID: Hi, I installed mapserver 4.4.1 by using apt under Fedora Core 2. From the "what's new" and mapfile reference, I use "encoding" in my mapfile. It looks like: LAYER NAME Hchc_river TYPE LINE STATUS ON DATA Hchc_river LabelItem "NAME" #CLASSITEM "NO" CLASS NAME "Hchc_river" COLOR 0 0 255 LABEL COLOR 0 0 0 TYPE TRUETYPE FONT moe_kai SIZE 8 POSITION AUTO PARTIALS FALSE OUTLINECOLOR 255 255 255 ENCODING BIG5 END END TOLERANCE 5 END And I have an example in my site: http://140.113.223.74/hc_river/hello.phtml The right code(BIG5), the right font, but failed. Thanks for any response. Tinmean K. H. Liu From chris.dimeo at OPSPATIAL.COM Thu Mar 17 09:47:39 2005 From: chris.dimeo at OPSPATIAL.COM (Chris Dimeo) Date: Fri, 18 Mar 2005 06:47:39 +1300 Subject: Mapserver Install/Configuration Problems Message-ID: Hi all- I'm taking a first pass at using Mapserver as supplied in the latest FWTools release (0.9.6). After I've extracted the files, installed the package, changed the PATH variable and copied 'mapserv' to my cgi-bin directory, I'm getting an Internal Server Error. I'm using a test from the MapServer CGI Tutorial where they say you can test the webserver by typing: http://(url)/cgi-bin/mapserv? This is when I get the error. Are there any permissions settings that need to be set or any other blatent newbie mistakes I could be making? Any tips on what environment variables to look at? (x-posted with mapserver-users) Thanks, -chris From chris.dimeo at OPSPATIAL.COM Thu Mar 17 09:59:35 2005 From: chris.dimeo at OPSPATIAL.COM (Chris Dimeo) Date: Fri, 18 Mar 2005 06:59:35 +1300 Subject: [FWTools] Mapserver Install/Configuration Problems In-Reply-To: <15200.198.182.163.102.1111081659.squirrel@198.182.163.102> Message-ID: > I'm taking a first pass at using Mapserver as supplied in the latest > FWTools release (0.9.6). Sorry-- using Red Hat Linux server. thx -c From ram at RAMPAGE.NET Thu Mar 17 10:08:09 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Thu, 17 Mar 2005 12:08:09 -0600 Subject: Mark center of map? Message-ID: David, Thank you! That helps a lot. I completely missed FEATURES in my efforts to learn Mapserver. ...and being a GIS newbie, I'm still learning the vocabulary, which makes my searches of the listserv archives less efficient than they could be. -- Richard From ram at RAMPAGE.NET Thu Mar 17 10:14:16 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Thu, 17 Mar 2005 12:14:16 -0600 Subject: Mark center of map? Message-ID: Thanks Jeff, that's EXACTLY what I needed. ...but now I'm wondering what other useful Mapserver features (no pun intended) I missed when I read the docs the first three times. Many thanks for the help! -- Richard From osgis.lists at GMAIL.COM Thu Mar 17 10:14:33 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Thu, 17 Mar 2005 12:14:33 -0600 Subject: Mark center of map? In-Reply-To: Message-ID: You could also use dhtml to place an image of an x or an x drawn with something like the walter zorn graphics library and just place it using the image coordinates determined with javascript and use CSS to place that image always ontop of your mapserver generarted image. On Thu, 17 Mar 2005 12:08:09 -0600, Richard A. Milewski wrote: > David, > > Thank you! That helps a lot. I completely missed FEATURES in my efforts to > learn Mapserver. ...and being a GIS newbie, I'm still learning the > vocabulary, which makes my searches of the listserv archives less efficient > than they could be. > > -- Richard > From ARyan at CO.LINN.OR.US Tue Mar 15 10:45:08 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 15 Mar 2005 10:45:08 -0800 Subject: upside down labels Message-ID: Hey John, I can't help you with the label problem, but I have a question if you've got a minute. I like your site. I see your adding little dot images with pop up functionality client-side on top of your map. Did you compare this method to rendering the points with mapserver and using an html image map element and if so, would you mind sharing your findings? Cheers, Adam > -----Original Message----- > From: John Hagstrand [mailto:john.hagstrand at INTERAGERESEARCH.COM] > Sent: Tuesday, March 15, 2005 10:15 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] upside down labels > > > Hi, > > My street maps are displaying labels upside down. I see that > bug 564 has already been entered for this. > > Here is an example on a live customer site. Of 48 labels, 5 > are upside down. > http://www.westportnow.com/realestate/map.php? &irn=41.134325436851&irs=41.119548563149&ire=-73.309842191861&irw=- 73.324483808139&iract=zoomout&irsacct=10283 John From fwarmerdam at GMAIL.COM Thu Mar 17 10:52:36 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 17 Mar 2005 13:52:36 -0500 Subject: [FWTools] Mapserver Install/Configuration Problems In-Reply-To: <15200.198.182.163.102.1111081659.squirrel@198.182.163.102> Message-ID: On Fri, 18 Mar 2005 06:47:39 +1300 (NZDT), chris.dimeo at opspatial.com wrote: > Hi all- > > I'm taking a first pass at using Mapserver as supplied in the latest > FWTools release (0.9.6). > > After I've extracted the files, installed the package, changed the PATH > variable and copied 'mapserv' to my cgi-bin directory, I'm getting an > Internal Server Error. > > I'm using a test from the MapServer CGI Tutorial where they say you can > test the webserver by typing: > > http://(url)/cgi-bin/mapserv? > > This is when I get the error. Are there any permissions settings that > need to be set or any other blatent newbie mistakes I could be making? > Any tips on what environment variables to look at? Chris, The FWTools mapserv has alot of dependencies, and it is critical that it pick them up from the shared libraries distributed with the binary. If you want to move things around you need to be very careful about how you control various related environment variables. When I want to deploy the FWTools distribution on Linux for a mapserver server I normally leave FWTools in place (but having run the install script), and create a cgi-bin script to invoke it using the normal "setup". So for my http://maps.gdal.org/ server (Fedora Core 2) I just created a "mapserv_dem" script in my cgi-bin directory that looks like: #!/bin/sh export MS_MAPFILE=/home/warmerda/maps/srtm30plus.map . /opt/FWTools-linux-0.9.6/fwtools_env.sh exec /opt/FWTools-linux-0.9.6/bin/mapserv "$*" This ensures that the environment is setup normally using the fwtools_env.sh script and then execs the FWTools mapserv executable. I also set the MS_MAPFILE so that it does not need to appear in the URL. I would encourage you to use this approach, and it will avoid all issues with mixed up shared libraries. 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 jdport at VERITIME.COM Thu Mar 17 11:06:05 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 17 Mar 2005 14:06:05 -0500 Subject: Tiger Shapefile tiling problem Message-ID: I'm not sure but i'm pretty sure I had to install gd-devel when I first installed the rest of the mapserver debian package. At any rate, if i try now to install the libgd2-dev package it says it has to uninstall cgi-mapserver, libgd2-xpm, mapserver-bin, and php4-mapscript. After all the trouble I had getting mapserver installed and working, i'm not about to let anything uninstall them.. Is there a debian binaries package available anywhere ? -Jeff ----- Original Message ----- From: "Camden Daily" To: Sent: Thursday, March 17, 2005 12:17 PM Subject: Re: [UMN_MAPSERVER-USERS] Tiger Shapefile tiling problem > You may need to install the devel packages for the underlying > libraries to compile against them. For example, you might have gd > installed, but maybe not gd-devel. The developer packages aren't > needed by RPMs, but they're usually necessary to compile software > against. > > I've just taken to installing the devel packages for all the software > I install anymore... > > -Camden > > > On Thu, 17 Mar 2005 12:09:42 -0500, Jeff Portwine > wrote: >> I tried doing the complile, but as expected it just blows up during the >> ./configure phase and I just can't get anywhere with it. I think >> mapserver >> is one of the most difficult to build programs i've dealt with. I never >> was able to get it to compile originally, and I was very happy when I >> found >> the debian package that I could install mapserver with. >> >> Now, I know that i have all the required packages installed because when >> I >> installed the debian package it updated all of the various libraries that >> mapserver requires. But when I try to do ./configure it can't find >> any >> of them. It looks to me like just about every library mapserver is >> complaining about is in /usr/lib but even when I try adding configure >> options like --with-gd=/usr or --with-gd=/usr/lib it still can't find >> the >> required libraries.... I just don't get it. >> >> libgd.so isn't hte only one it can't find... it can't find freetype, >> zlib, >> png, jpeg, or xpm either... here is a copy of the configure errors... >> >> configure: checking where FreeType 2.x is installed... >> checking for FT_Init_FreeType in -lfreetype... no >> freetype-config or libfreetype cannot be found, possibly needed >> for >> GD >> configure: checking where Zlib is installed... >> checking for zlibVersion in -lz... no >> Zlib (libz) library cannot be found, possibly needed for GD >> configure: checking where PNG is installed... >> checking for png_init_io in -lpng... no >> PNG (libpng) library cannot be found, possibly needed for GD >> configure: checking whether we should include JPEG support... >> checking for jpeg_read_header in -ljpeg... no >> libjpeg not found. JPEG support not included, possibly needed for >> GD. >> configure: checking where libXpm is installed... >> checking for XpmFreeXpmImage in -lXpm... no >> XPM (libXpm) library cannot be found, possibly needed for GD >> configure: checking where libiconv is installed... >> checking for iconv_open in -lc... yes >> checking for libiconv_open in -liconv... no >> using libiconv from system libs. >> libiconv found. Enabling internationalization (-DUSE_ICONV) >> configure: checking for GD 2.0.12 or higher... >> checking for gdImageSetAntiAliased in -lgd... yes >> checking for gdImageSetAntiAliased in -lgd... (cached) yes >> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local. >> Make sure GD 2.0.12 or higher is compiled before calling configure. You >> may >> also get this error if you didn't specify the appropriate location for >> one >> of GD's dependencies (freetype, libpng, libjpeg or libiconv). >> >> This is the output with no configure options... the only thing that >> changes >> if i put in things like --with-gd=/usr or --with-freetype=/usr, etc, is >> that >> it says it can't find things in /usr instead of being unable to find them >> in >> /usr/local. >> >> If anybody has any clues on how to get this working please let me know. >> All this headache just for one utility... :\ >> >> -Jeff >> > From arnulf.christl at CCGIS.DE Thu Mar 17 11:23:03 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Thu, 17 Mar 2005 20:23:03 +0100 Subject: Commercial/Large datasets MapServer/PostGIS sample sites In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8188199@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > Eduardo - > > Yes, is 25 terabytes of data - about 340,000 raster images and 54,000+ > shapefiles, making over half a million maps a day for Web users, custom > data downloads, desktop WMS clients, and server-based WMS clients big > enough? We're not a PostGIS user, however. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 That is always a really imressing place to convince people! We implemented several architectures with PostgreSQL/PostGIS, UMN MapServer, Mapbender for public administraions in Germany. One larger database containes 6.5 million vector objects (land lot polygons), another 29 million. The latter runs on a 4-CPU Xeon, 32GB RAM (i believe). Map requests need around 40 up to 350 milliseconds in PG. We know of four ministries using PostGIS in productive environments, two police departmens, several technical divisions and five traffic control centers. The Deutsche Telekom sub T-Systems uses it to monitor availablility for all radio transmitters operated in Germany relaying traffic information. If you need references and links contact me offline. We use PostGIS in those installations since v 0.7 and it served us so well that our only change request to refractions/Paul so far was to bump up version number to 1.0 so that consumers can sleep better. Top of the notch software in my opinion. This is an old link to an old installation PG 7.3/PostGIS 0.8) on an old server (2.4 Ghz single CPU ide): http://online-service.nuernberg.de/stadtplandienst/ Click on the lowest button on the right side. Eduardo, just out of curiosity: how long does it take to load and show maps from this server in a client in Brazil? Best, Arnulf. -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.org http://www.mapbender.org ------------------------ From andy.canfield at GMAIL.COM Thu Mar 17 11:14:02 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Thu, 17 Mar 2005 11:14:02 -0800 Subject: upside down labels In-Reply-To: <5588904224861284356@unknownmsgid> Message-ID: What does your label statement look like for that street layer? On Tue, 15 Mar 2005 10:45:08 -0800, Ryan, Adam wrote: > Hey John, > > I can't help you with the label problem, but I have a question if you've got > a minute. > > I like your site. I see your adding little dot images with pop up > functionality client-side on top of your map. Did you compare this method > to rendering the points with mapserver and using an html image map element > and if so, would you mind sharing your findings? > > Cheers, > > Adam > > > -----Original Message----- > > From: John Hagstrand [mailto:john.hagstrand at INTERAGERESEARCH.COM] > > Sent: Tuesday, March 15, 2005 10:15 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] upside down labels > > > > > > Hi, > > > > My street maps are displaying labels upside down. I see that > > bug 564 has already been entered for this. > > > > Here is an example on a live customer site. Of 48 labels, 5 > > are upside down. > > > http://www.westportnow.com/realestate/map.php? > &irn=41.134325436851&irs=41.119548563149&ire=-73.309842191861&irw=- > 73.324483808139&iract=zoomout&irsacct=10283 > > John > From woodbri at SWOODBRIDGE.COM Thu Mar 17 11:25:20 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 17 Mar 2005 14:25:20 -0500 Subject: Tiger Shapefile tiling problem In-Reply-To: <010a01c52b24$709d9640$1bf2fbd0@solo> Message-ID: apt-get install libgd2-xpm-dev Jeff Portwine wrote: > I'm not sure but i'm pretty sure I had to install gd-devel when I first > installed the rest of the mapserver debian package. At any rate, if i > try now to install the libgd2-dev package it says it has to uninstall > cgi-mapserver, libgd2-xpm, mapserver-bin, and php4-mapscript. After all > the trouble I had getting mapserver installed and working, i'm not > about to > let anything uninstall them.. > > Is there a debian binaries package available anywhere ? > > -Jeff > > ----- Original Message ----- > From: "Camden Daily" > To: > Sent: Thursday, March 17, 2005 12:17 PM > Subject: Re: [UMN_MAPSERVER-USERS] Tiger Shapefile tiling problem > > >> You may need to install the devel packages for the underlying >> libraries to compile against them. For example, you might have gd >> installed, but maybe not gd-devel. The developer packages aren't >> needed by RPMs, but they're usually necessary to compile software >> against. >> >> I've just taken to installing the devel packages for all the software >> I install anymore... >> >> -Camden >> >> >> On Thu, 17 Mar 2005 12:09:42 -0500, Jeff Portwine >> wrote: >> >>> I tried doing the complile, but as expected it just blows up during the >>> ./configure phase and I just can't get anywhere with it. I think >>> mapserver >>> is one of the most difficult to build programs i've dealt with. I >>> never >>> was able to get it to compile originally, and I was very happy when I >>> found >>> the debian package that I could install mapserver with. >>> >>> Now, I know that i have all the required packages installed because when >>> I >>> installed the debian package it updated all of the various libraries >>> that >>> mapserver requires. But when I try to do ./configure it can't find >>> any >>> of them. It looks to me like just about every library mapserver is >>> complaining about is in /usr/lib but even when I try adding configure >>> options like --with-gd=/usr or --with-gd=/usr/lib it still can't find >>> the >>> required libraries.... I just don't get it. >>> >>> libgd.so isn't hte only one it can't find... it can't find freetype, >>> zlib, >>> png, jpeg, or xpm either... here is a copy of the configure errors... >>> >>> configure: checking where FreeType 2.x is installed... >>> checking for FT_Init_FreeType in -lfreetype... no >>> freetype-config or libfreetype cannot be found, possibly needed >>> for >>> GD >>> configure: checking where Zlib is installed... >>> checking for zlibVersion in -lz... no >>> Zlib (libz) library cannot be found, possibly needed for GD >>> configure: checking where PNG is installed... >>> checking for png_init_io in -lpng... no >>> PNG (libpng) library cannot be found, possibly needed for GD >>> configure: checking whether we should include JPEG support... >>> checking for jpeg_read_header in -ljpeg... no >>> libjpeg not found. JPEG support not included, possibly needed >>> for >>> GD. >>> configure: checking where libXpm is installed... >>> checking for XpmFreeXpmImage in -lXpm... no >>> XPM (libXpm) library cannot be found, possibly needed for GD >>> configure: checking where libiconv is installed... >>> checking for iconv_open in -lc... yes >>> checking for libiconv_open in -liconv... no >>> using libiconv from system libs. >>> libiconv found. Enabling internationalization (-DUSE_ICONV) >>> configure: checking for GD 2.0.12 or higher... >>> checking for gdImageSetAntiAliased in -lgd... yes >>> checking for gdImageSetAntiAliased in -lgd... (cached) yes >>> configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local. >>> Make sure GD 2.0.12 or higher is compiled before calling configure. You >>> may >>> also get this error if you didn't specify the appropriate location for >>> one >>> of GD's dependencies (freetype, libpng, libjpeg or libiconv). >>> >>> This is the output with no configure options... the only thing that >>> changes >>> if i put in things like --with-gd=/usr or --with-freetype=/usr, etc, is >>> that >>> it says it can't find things in /usr instead of being unable to find >>> them >>> in >>> /usr/local. >>> >>> If anybody has any clues on how to get this working please let me know. >>> All this headache just for one utility... :\ >>> >>> -Jeff >>> >> > From jdport at VERITIME.COM Thu Mar 17 11:28:50 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 17 Mar 2005 14:28:50 -0500 Subject: Tiger Shapefile tiling problem Message-ID: Ahh great! That one doesn't try to remove anything. Thanks a ton, I hope things go smoothly from here. I have really had problems with builds for mapserver... not because mapserver itself is difficult but because it requires so many libraries each of which have a ton of dependancies and if anything is the wrong version or in a place other than where the installation expects it to be things just don't work, and it seems like an infinite number of possible comibinations of libraries and packages... ugh. Thanks for pointing me in the right direction. -Jeff From ed at TOPOZONE.COM Thu Mar 17 11:33:35 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 17 Mar 2005 14:33:35 -0500 Subject: Commercial/Large datasets MapServer/PostGIS sample sites Message-ID: Arnulf - Thanks! We do a lot with MapServer, but there is a lot we DON'T use - your application covers many of the features ours does not, and I think these examples show not only the strength but the versatility of the tool set. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Arnulf Christl Sent: Thursday, March 17, 2005 2:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Commercial/Large datasets MapServer/PostGIS sample sites Ed McNierney wrote: > Eduardo - > > Yes, is 25 terabytes of data - about 340,000 raster images and 54,000+ > shapefiles, making over half a million maps a day for Web users, > custom data downloads, desktop WMS clients, and server-based WMS > clients big enough? We're not a PostGIS user, however. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 That is always a really imressing place to convince people! We implemented several architectures with PostgreSQL/PostGIS, UMN MapServer, Mapbender for public administraions in Germany. One larger database containes 6.5 million vector objects (land lot polygons), another 29 million. The latter runs on a 4-CPU Xeon, 32GB RAM (i believe). Map requests need around 40 up to 350 milliseconds in PG. We know of four ministries using PostGIS in productive environments, two police departmens, several technical divisions and five traffic control centers. The Deutsche Telekom sub T-Systems uses it to monitor availablility for all radio transmitters operated in Germany relaying traffic information. If you need references and links contact me offline. We use PostGIS in those installations since v 0.7 and it served us so well that our only change request to refractions/Paul so far was to bump up version number to 1.0 so that consumers can sleep better. Top of the notch software in my opinion. This is an old link to an old installation PG 7.3/PostGIS 0.8) on an old server (2.4 Ghz single CPU ide): http://online-service.nuernberg.de/stadtplandienst/ Click on the lowest button on the right side. Eduardo, just out of curiosity: how long does it take to load and show maps from this server in a client in Brazil? Best, Arnulf. -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.org http://www.mapbender.org ------------------------ From woodbri at SWOODBRIDGE.COM Thu Mar 17 11:34:49 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 17 Mar 2005 14:34:49 -0500 Subject: upside down labels In-Reply-To: <7425d08705031711141495089@mail.gmail.com> Message-ID: I have the same problem and have complained about it before. I have reproduced it on 4.0.1 and 4.4.1. LABEL ANGLE AUTO FONT "arial" TYPE TRUETYPE POSITION UC SIZE 7 BUFFER 4 COLOR 0 0 0 OUTLINECOLOR 245 245 231 ANTIALIAS TRUE PARTIALS FALSE MINDISTANCE 250 MINFEATURESIZE 10 END The problem is not that all labels are upside down, just random labels are upside down. and a little bit of zooming will cause the labels to reposition just slightly and then they will flip right-side up. -Steve Woodbridge Andy Canfield wrote: > What does your label statement look like for that street layer? > > > On Tue, 15 Mar 2005 10:45:08 -0800, Ryan, Adam wrote: > >>Hey John, >> >>I can't help you with the label problem, but I have a question if you've got >>a minute. >> >>I like your site. I see your adding little dot images with pop up >>functionality client-side on top of your map. Did you compare this method >>to rendering the points with mapserver and using an html image map element >>and if so, would you mind sharing your findings? >> >>Cheers, >> >>Adam >> >> >>>-----Original Message----- >>>From: John Hagstrand [mailto:john.hagstrand at INTERAGERESEARCH.COM] >>>Sent: Tuesday, March 15, 2005 10:15 AM >>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>Subject: [UMN_MAPSERVER-USERS] upside down labels >>> >>> >>>Hi, >>> >>>My street maps are displaying labels upside down. I see that >>>bug 564 has already been entered for this. >>> >>>Here is an example on a live customer site. Of 48 labels, 5 >>>are upside down. >>> >> >>http://www.westportnow.com/realestate/map.php? >>&irn=41.134325436851&irs=41.119548563149&ire=-73.309842191861&irw=- >>73.324483808139&iract=zoomout&irsacct=10283 >> >>John >> > > From jdport at VERITIME.COM Thu Mar 17 11:51:34 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 17 Mar 2005 14:51:34 -0500 Subject: Tiger Shapefile tiling problem Message-ID: I got the tile4ms utility compiled now... it went without any issue after getting that dev package installed, but I'm still getting the same errors that I was getting before. $ tile4ms data_dir.in tiger-roads Aborted. DBF fields do not match for file:/home/jdport/tiger/CT_Fairfield_County _Poly.shp Aborted. DBF fields do not match for file:/home/jdport/tiger/CT_Hartford_County_ Poly.shp Aborted. DBF fields do not match for file:/home/jdport/tiger/CT_Litchfield_Count y_Poly.shp Aborted. DBF fields do not match for file:/home/jdport/tiger/CT_Middlesex_County _Poly.shp Aborted. DBF fields do not match for file:/home/jdport/tiger/CT_New_Haven_County _Poly.shp ... ... My data metafile looks like: /home/jdport/tiger/CT_Fairfield_County.shp /home/jdport/tiger/CT_Fairfield_County_Poly.shp /home/jdport/tiger/CT_Hartford_County.shp /home/jdport/tiger/CT_Hartford_County_Poly.shp ... ... -Jeff From kristjan at TARKVARASTUUDIO.EE Thu Mar 17 12:01:06 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Thu, 17 Mar 2005 22:01:06 +0200 Subject: upside down labels In-Reply-To: <4239DBD9.3050406@swoodbridge.com> Message-ID: I just wanted to mention that I have the same problem with street name labels. At the beginning I thougth that something is wrong with TAB files but thanks to the postings here I found that it is an error in Mapserver. Kristjan > I have the same problem and have complained about it before. I have > reproduced it on 4.0.1 and 4.4.1. > > LABEL > ANGLE AUTO > FONT "arial" > TYPE TRUETYPE > POSITION UC > SIZE 7 > BUFFER 4 > COLOR 0 0 0 > OUTLINECOLOR 245 245 231 > ANTIALIAS TRUE > PARTIALS FALSE > MINDISTANCE 250 > MINFEATURESIZE 10 > END > > The problem is not that all labels are upside down, just random labels > are upside down. and a little bit of zooming will cause the labels to > reposition just slightly and then they will flip right-side up. > > -Steve Woodbridge > > Andy Canfield wrote: > >> What does your label statement look like for that street layer? >> >> >> On Tue, 15 Mar 2005 10:45:08 -0800, Ryan, Adam >> wrote: >> >>> Hey John, >>> >>> I can't help you with the label problem, but I have a question if >>> you've got >>> a minute. >>> >>> I like your site. I see your adding little dot images with pop up >>> functionality client-side on top of your map. Did you compare this >>> method >>> to rendering the points with mapserver and using an html image map >>> element >>> and if so, would you mind sharing your findings? >>> >>> Cheers, >>> >>> Adam >>> >>> >>>> -----Original Message----- >>>> From: John Hagstrand [mailto:john.hagstrand at INTERAGERESEARCH.COM] >>>> Sent: Tuesday, March 15, 2005 10:15 AM >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Subject: [UMN_MAPSERVER-USERS] upside down labels >>>> >>>> >>>> Hi, >>>> >>>> My street maps are displaying labels upside down. I see that >>>> bug 564 has already been entered for this. >>>> >>>> Here is an example on a live customer site. Of 48 labels, 5 >>>> are upside down. >>>> >>> >>> http://www.westportnow.com/realestate/map.php? >>> &irn=41.134325436851&irs=41.119548563149&ire=-73.309842191861&irw=- >>> 73.324483808139&iract=zoomout&irsacct=10283 >>> >>> John >>> >> >> From woodbri at SWOODBRIDGE.COM Thu Mar 17 12:03:30 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 17 Mar 2005 15:03:30 -0500 Subject: Tiger Shapefile tiling problem In-Reply-To: <011201c52b2a$cb411cb0$1bf2fbd0@solo> Message-ID: Ahh you should have postted this error earlier or I missed it. This nifty message is tell you that the files listed do not have the same DBF attribute field definitions as the first file that was loaded. ALL the files in the tileindex MUST have identical FIELD_NAMES, TYPES, and order of fields. -Steve Jeff Portwine wrote: > I got the tile4ms utility compiled now... it went without any issue > after getting that dev package installed, but I'm still getting the same > errors that I was getting before. > > $ tile4ms data_dir.in tiger-roads > Aborted. DBF fields do not match for > file:/home/jdport/tiger/CT_Fairfield_County > _Poly.shp > Aborted. DBF fields do not match for > file:/home/jdport/tiger/CT_Hartford_County_ > Poly.shp > Aborted. DBF fields do not match for > file:/home/jdport/tiger/CT_Litchfield_Count > y_Poly.shp > Aborted. DBF fields do not match for > file:/home/jdport/tiger/CT_Middlesex_County > _Poly.shp > Aborted. DBF fields do not match for > file:/home/jdport/tiger/CT_New_Haven_County > _Poly.shp > ... > ... > > My data metafile looks like: > /home/jdport/tiger/CT_Fairfield_County.shp > /home/jdport/tiger/CT_Fairfield_County_Poly.shp > /home/jdport/tiger/CT_Hartford_County.shp > /home/jdport/tiger/CT_Hartford_County_Poly.shp > ... > ... > > -Jeff > > From jdport at VERITIME.COM Thu Mar 17 12:04:42 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 17 Mar 2005 15:04:42 -0500 Subject: Tiger Shapefile tiling problem Message-ID: Ok ignore that problem, I realized what the issue was. The shapefiles I downloaded included both line and 'poly' shapefiles, and the two types of course had different fields in their cooresponding dbf files. I moved out all of the poly shapefiles, since i'm only interested in the road line data at this time and re-ran the utility and it gave me what I needed. Sorry for the extra traffic on the site, and thanks again for the assistance. -Jeff From jdport at VERITIME.COM Thu Mar 17 13:51:12 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 17 Mar 2005 16:51:12 -0500 Subject: one more tiger question - semi OT Message-ID: An easier one this time... anybody know if there is a reference anywhere that can tell me what the different CFCC codes for roads mean? I want to draw the roads differently based on the type they are... i.e. interstates are drawn one way, state highways another.. major roads.. minor roads, etc. and I want to display some of them only when zoomed in close and others all the time. It's not obvious looking at the files which values I want for which type of roads. It looks like Interstates are A15 and state highways are A11 for example, but some interstates are showing A11. It's just not easy to tell.. would make it easier if there is a reference someplace. And while I'm here asking questions that aren't entirely on topic, anybody know of any free dbf viewers? I am using excel right now to look at the dbf files and it just doesn't work all that well for this task :) Thanks! -Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From cdaily at GMAIL.COM Thu Mar 17 14:01:28 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 17 Mar 2005 16:01:28 -0600 Subject: one more tiger question - semi OT In-Reply-To: <016c01c52b3b$81e63620$1bf2fbd0@solo> Message-ID: For CFCC codes: http://www.topodepot.com/Docs/Doc_Tiger.htm I use Open Office (http://www.openoffice.org) for viewing .dbf files. Their calc program is bascially a free version of excel. -Camden From jeff at PROPERTYKEY.COM Thu Mar 17 14:02:28 2005 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Thu, 17 Mar 2005 16:02:28 -0600 Subject: one more tiger question - semi OT In-Reply-To: <016c01c52b3b$81e63620$1bf2fbd0@solo> Message-ID: Jeff Portwine wrote: > > An easier one this time... anybody know if there is a reference anywhere > that can tell me what the different CFCC codes for roads mean? You're in luck. The documentation is at http://www.census.gov/geo/www/tiger/tiger2004fe/TGR04FE.pdf Have fun. > files which values I want for which type of roads. It looks like > Interstates are A15 and state highways are A11 for example, but some > interstates are showing A11. It's just not easy to tell.. would make > it easier if there is a reference someplace. A15 is seperated, A11 is unseperated. All of the CFCC codes are listed with what they mean in that PDF, along with more than everything you ever wanted to know about anything else in TIGER. -- Jeff Hoffmann jeff at propertykey.com From gmanepal at GMAIL.COM Thu Mar 17 14:41:24 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Thu, 17 Mar 2005 17:41:24 -0500 Subject: Application Data Message-ID: Hello All, I would like to appreciate Bart who is on the list for helping me get in touch with some of the concepts of GIS and Mapserver. I would like to know, if it is possible to convert data produced from a third party application to a shapefile or PostGIS table. Hypothetically speaking, the data from the third party application will be in the following format. SSN, Lat, Long, Age etc Imagine that the above data is huge (as large as 100GB), so I need to dump this information to a database. I would like to know, how to use this data from a table to Map it onto a MAPServer. and process queries like: *.) How many people are at a given location Although it looks like I am asking for too much, I am willing to study this in detail. But, I just want to get the feel for GIS applications in this direction and also to feel little ease while researching. Thanks and Regards, Giridhar Manepalli From fwarmerdam at GMAIL.COM Thu Mar 17 14:52:02 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 17 Mar 2005 17:52:02 -0500 Subject: Application Data In-Reply-To: <6d675eda0503171441a7ceaa0@mail.gmail.com> Message-ID: On Thu, 17 Mar 2005 17:41:24 -0500, Giridhar Manepalli wrote: > I would like to know, if it is possible to convert data produced from > a third party application to a shapefile or PostGIS table. > > Hypothetically speaking, the data from the third party application > will be in the following format. > > SSN, Lat, Long, Age etc > > Imagine that the above data is huge (as large as 100GB), so I need to > dump this information to a database. > > I would like to know, how to use this data from a table to Map it onto > a MAPServer. > > and process queries like: > > *.) How many people are at a given location Giridhar, It is certainly possible in principle to translate this data to PostGIS or into a point shapefile, but if it is 100GB of data in that compact comma seperated value format, it is going to be alot larger in PostGIS or in a shapefile. A traditional approach to handling this sort of dataset, if you only need summary information is to aggregate it somehow. Otherwise you are going to have alot of performance and query optimization issues. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ealpert at DIGITALGLOBE.COM Thu Mar 17 15:12:15 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 17 Mar 2005 16:12:15 -0700 Subject: Application Data Message-ID: True it's going to be big in postgis but there is the advantage that you can spatially index it. Also He doesn't mention if the data is in ASCII in which case converting to a binary representation in a shapefile might take up less space. Just my two cents. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Thursday, March 17, 2005 3:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Application Data On Thu, 17 Mar 2005 17:41:24 -0500, Giridhar Manepalli wrote: > I would like to know, if it is possible to convert data produced from > a third party application to a shapefile or PostGIS table. > > Hypothetically speaking, the data from the third party application > will be in the following format. > > SSN, Lat, Long, Age etc > > Imagine that the above data is huge (as large as 100GB), so I need to > dump this information to a database. > > I would like to know, how to use this data from a table to Map it onto > a MAPServer. > > and process queries like: > > *.) How many people are at a given location Giridhar, It is certainly possible in principle to translate this data to PostGIS or into a point shapefile, but if it is 100GB of data in that compact comma seperated value format, it is going to be alot larger in PostGIS or in a shapefile. A traditional approach to handling this sort of dataset, if you only need summary information is to aggregate it somehow. Otherwise you are going to have alot of performance and query optimization issues. Good luck, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ram at RAMPAGE.NET Thu Mar 17 15:27:50 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Thu, 17 Mar 2005 17:27:50 -0600 Subject: Mark center of map? Message-ID: David, In this case I can't use Javascript or DHTML or even CSS. The maps are being served to phones and many of those don't have fully capable browsers, so I have to do the image manipulation completely on the server side. I could take the image Mapserver hands me and composite the mark using netpbm or image magick, but that doesn't help me learn Mapserver. -- Richard From chad at AGRIDATAINC.COM Thu Mar 17 15:32:48 2005 From: chad at AGRIDATAINC.COM (Chad Ringenberg) Date: Thu, 17 Mar 2005 17:32:48 -0600 Subject: empty template variables Message-ID: When processing my template files the special characters are not being replaced. The image is correctly produced in the tmp directory. win2k, IIS mapserver 4.4.1 template.html only contains: [img]|[version] url I place in the webbrowser: http://localhost/scripts/mapserv.exe?map=c:/mapserver/web/maps/map_files/states.map&layer=states The browser is then directed to the template url: http://localhost/phptest/template.html template page displays: [img]|[version] Why are these special characters not replaced?? mapfile: NAME "states" SIZE 400 400 STATUS ON EXTENT -120 40 -85 48 SHAPEPATH "/mapserver/web/maps/data" WEB TEMPLATE "http://localhost/phptest/template.html" IMAGEPATH "/mapserver/web/maps/tmp/" IMAGEURL "/tmp/" END LAYER NAME "states" TYPE POLYGON STATUS ON DATA "states" CLASS STYLE COLOR 110 50 100 OUTLINECOLOR 200 200 200 END END END END Thanks, Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: From ram at RAMPAGE.NET Thu Mar 17 15:42:58 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Thu, 17 Mar 2005 17:42:58 -0600 Subject: Mark center of map? Message-ID: Jeff, I tried your suggestion and got it to work, but I noticed some odd things and I just want to be sure I really understand what I'm doing. Here's the layer that works for me: LAYER NAME MapPin STATUS ON TYPE Point TRANSFORM FALSE FEATURE POINTS 150 150 END END CLASS SYMBOL "Symbols/Airport01.gif" OUTLINECOLOR 255 255 255 END END The unexpected things I found were: 1 - I seem to need either a COLOR or OUTLINECOLOR statement in the CLASS clause. It doesn't matter what color I specify or whether I use COLOR or OUTLINECOLOR, but without one of the two, the symbol doesn't appear. The specified color has no effect on the displayed color of the .gif however. 2 - The path to the marker specified in the SYMBOL statement is a path relative to the .map file directory. There is a SHAPEPATH statement in the MAP object definition, but that has no apparant effect here. 3 - It appears that the symbol is centered on the point defined in the FEATURE clause. This is really cool and makes things much easier, but came as a surprise. I was prepared to calculate my own centering a la netpbm and image magick. This is much easier. I now need to figure out how to change the POINT location on the fly because I don't know what the actual map size is until the maprequest comes in from the user. (These maps are being served to phones and different phones have different size screens). The note at the end of the MapServer CGI Reference seems to have enough information about how to do that though. I'll give it a try. I suspect you already know everything I've mentioned here, but I wanted to make sure it got into the thread in the MapServer-Users list archive. I've learned at least half of what I know about MapServer from the list, and want to leave as much information around for the next guy as I can. Many thanks for all the help! -- Richard From bpicinbono at WORLDONLINE.FR Thu Mar 17 16:33:47 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Fri, 18 Mar 2005 01:33:47 +0100 Subject: Mark center of map? In-Reply-To: Message-ID: Le vendredi 18 Mars 2005 00:42, Richard A. Milewski a ?crit?: > Jeff, > > I tried your suggestion and got it to work, but I noticed some odd things > and I just want to be sure I really understand what I'm doing. > > Here's the layer that works for me: >..... >...... > I suspect you already know everything I've mentioned here, but I wanted to > make sure it got into the thread in the MapServer-Users list archive. I've > learned at least half of what I know about MapServer from the list, and > want to leave as much information around for the next guy as I can. > Many thanks for all the help! > -- Richard Ha ? You too found the REAL doc ! A few weeks ago, somebody right in the middle of the doc could not see it and was making a lot of noise about missing phone support ! Thanks so much mapserver people. blaise From gmanepal at GMAIL.COM Thu Mar 17 17:15:12 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Thu, 17 Mar 2005 20:15:12 -0500 Subject: Fwd: [UMN_MAPSERVER-USERS] Application Data In-Reply-To: <6d675eda0503171459602b346b@mail.gmail.com> Message-ID: ---------- Forwarded message ---------- From: Giridhar Manepalli Date: Thu, 17 Mar 2005 17:59:29 -0500 Subject: Re: [UMN_MAPSERVER-USERS] Application Data To: warmerdam at pobox.com Thanks Frank, But how is it possible to convert that CSV data into a shapefile or POSTGIS supportive table, in order for me to use in a MAPSERVER. Condition being : data < 1MB Regards, Giridhar On Thu, 17 Mar 2005 17:52:02 -0500, Frank Warmerdam wrote: > On Thu, 17 Mar 2005 17:41:24 -0500, Giridhar Manepalli > wrote: > > I would like to know, if it is possible to convert data produced from > > a third party application to a shapefile or PostGIS table. > > > > Hypothetically speaking, the data from the third party application > > will be in the following format. > > > > SSN, Lat, Long, Age etc > > > > Imagine that the above data is huge (as large as 100GB), so I need to > > dump this information to a database. > > > > I would like to know, how to use this data from a table to Map it onto > > a MAPServer. > > > > and process queries like: > > > > *.) How many people are at a given location > > Giridhar, > > It is certainly possible in principle to translate this data to PostGIS > or into a point shapefile, but if it is 100GB of data in that > compact comma seperated value format, it is going to be alot > larger in PostGIS or in a shapefile. > > A traditional approach to handling this sort of dataset, if you > only need summary information is to aggregate it somehow. > Otherwise you are going to have alot of performance and > query optimization issues. > > Good luck, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From wlx at MYGIS.ORG Thu Mar 17 17:38:27 2005 From: wlx at MYGIS.ORG (wlx) Date: Fri, 18 Mar 2005 09:38:27 +0800 Subject: About mapserver 4.4.1 and Chinese problem In-Reply-To: Message-ID: Hi, Have you set the fontset variable and copy the font to the right place if you are sured your code right? And if you can read chinese,welcome to http://www.cngis.org/bbs/forumdisplay.php?f=83 discuss the related topic. Liangxu Wang > > Hi, > > I installed mapserver 4.4.1 by using apt under Fedora Core 2. > From the "what's new" and mapfile reference, I use > "encoding" in my mapfile. > It looks like: > > LAYER > NAME Hchc_river > TYPE LINE > STATUS ON > DATA Hchc_river > LabelItem "NAME" > #CLASSITEM "NO" > CLASS > NAME "Hchc_river" > COLOR 0 0 255 > LABEL > COLOR 0 0 0 > TYPE TRUETYPE > FONT moe_kai > SIZE 8 > POSITION AUTO > PARTIALS FALSE > OUTLINECOLOR 255 255 255 > ENCODING BIG5 > END > END > TOLERANCE 5 > END > > And I have an example in my site: > http://140.113.223.74/hc_river/hello.phtml > > The right code(BIG5), the right font, but failed. > Thanks for any response. > > Tinmean K. H. Liu > > From wlx at MYGIS.ORG Thu Mar 17 17:41:20 2005 From: wlx at MYGIS.ORG (wlx) Date: Fri, 18 Mar 2005 09:41:20 +0800 Subject: how to use java mapscript in tomcat4/jspenvironment? In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB1603A8CA81@COMAIL01.digitalglobe.com> Message-ID: Thank you. I have resolved this problem with Umberto's solution. > > > > Look in your code for System.loadLibrary("mapscript") > > Clearly that's being called somewhere more than once. > > -e > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of wlx > Sent: Wednesday, March 16, 2005 7:03 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] how to use java mapscript > in tomcat4/jspenvironment? > > > Hi Umberto, > I remove tomcat4.1, and install tomcat 5.5, and recomiled > the mapserver with java mapscript, and copy the so file to > /usr/lib/ and /usr/lib/jni/, copy the jar file to > /usr/local/tomcat/common/lib/ and > /usr/local/tomcat/shared/lib/, but there are something wrong > too. You can see the error message here: > http://210.77.68.214:8080/test.jsp. > > Best regard, > Yours sincerely, > Liangxu Wang > > From wlx at MYGIS.ORG Thu Mar 17 17:46:20 2005 From: wlx at MYGIS.ORG (wlx) Date: Fri, 18 Mar 2005 09:46:20 +0800 Subject: how to use java mapscript in tomcat4/jspenvironment? In-Reply-To: <1110992139.21515.12.camel@friedrich.prometeo.it> Message-ID: Thank you. It is not need for mapserver-4.4.1 java mapscript to do the System.loadLibrary as I has test this. > > There is no need to call System.loadLibrary as mapscript.jar > should do it for you in the initialization code (this one I > am not sure, for sure there is a patch for it in CVS). > > Liangxu, please copy the mapscript.jar only in common/lib: > this is not windows! > > Regards, > Umberto > > On Wed, 2005-03-16 at 09:12 -0700, Ethan Alpert wrote: > > Look in your code for System.loadLibrary("mapscript") > > > > Clearly that's being called somewhere more than once. > > > > -e > > > > -----Original Message----- > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On Behalf Of wlx > > Sent: Wednesday, March 16, 2005 7:03 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] how to use java mapscript in > > tomcat4/jspenvironment? > > > > > > Hi Umberto, > > I remove tomcat4.1, and install tomcat 5.5, and recomiled the > > mapserver with java mapscript, and copy the so file to > /usr/lib/ and > > /usr/lib/jni/, copy the jar file to > /usr/local/tomcat/common/lib/ and > > /usr/local/tomcat/shared/lib/, but there are something > wrong too. You > > can see the error message here: http://210.77.68.214:8080/test.jsp. > > > > Best regard, > > Yours sincerely, > > Liangxu Wang > -- > Umberto Nicoletti | We are Pentium of Borg. > +390415701366 unicoletti at prometeo.it | Division is futile. > Prometeo S.R.L. The Software Experience | You will be > approximated. > > From ram at RAMPAGE.NET Thu Mar 17 18:02:56 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Thu, 17 Mar 2005 18:02:56 -0800 Subject: Mark center of map? In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A83A8235@linnms,> Message-ID: Ryan, Adam wrote: >>-----Original Message----- >>From: Richard A. Milewski [mailto:ram at RAMPAGE.NET] >>Sent: Thursday, March 17, 2005 3:43 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] Mark center of map? >> >> >>Jeff, >> >>I tried your suggestion and got it to work, but I noticed >>some odd things and I just want to be sure I really >>understand what I'm doing. >> >>Here's the layer that works for me: >> >>LAYER >> NAME MapPin >> STATUS ON >> TYPE Point >> TRANSFORM FALSE >> FEATURE >> POINTS >> 150 150 >> END >> END >> CLASS >> SYMBOL "Symbols/Airport01.gif" >> OUTLINECOLOR 255 255 255 >> END >>END >> >>The unexpected things I found were: >> >>1 - I seem to need either a COLOR or OUTLINECOLOR statement >>in the CLASS clause. It doesn't matter what color I specify >>or whether I use COLOR or OUTLINECOLOR, but without one of >>the two, the symbol doesn't appear. The specified color has >>no effect on the displayed color of the .gif however. >> >>2 - The path to the marker specified in the SYMBOL statement >>is a path relative to the .map file directory. There is a >>SHAPEPATH statement in the MAP object definition, but that >>has no apparant effect here. >> >>3 - It appears that the symbol is centered on the point >>defined in the FEATURE clause. This is really cool and makes >>things much easier, but came as a surprise. I was prepared >>to calculate my own centering a la netpbm and image magick. >>This is much easier. >> >>I now need to figure out how to change the POINT location on >>the fly because I don't know what the actual map size is >>until the maprequest comes in from the user. (These maps are >>being served to phones and different phones have different >>size screens). The note at the end of the MapServer CGI >>Reference seems to have enough information about how to do >>that though. I'll give it a try. >> >>I suspect you already know everything I've mentioned here, >>but I wanted to make sure it got into the thread in the >>MapServer-Users list archive. I've learned at least half of >>what I know about MapServer from the list, and want to leave >>as much information around for the next guy as I can. >> >>Many thanks for all the help! >> >>-- Richard >> >> >> > >Richard, > >Try leaving the feature object out of your mappin layer in the map file and >add it to your cgi request instead. That way you can set both the size of >the map and the position of the icon. > >...mapserv.exe?map=yourMap.map&mapsize=300 300&map_MapPin_feature_points=150 >150&... > >Cheers, > >Adam > > Adam, Thanks for the help. That worked. However it created another conundrum. ...but being a bear of very little brain, I'm easily befuddled. Specifying the Feature/Points clause in the url ONLY works if I remove it from the layer specification in the .map file. So the question is how do I know which parameters I can specify in BOTH places (such as the extent, where the spec in the url overrides the one in the .map file), and the ones like the Feature/Points spec where it can only be in one place? -- Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at PCRESO.COM Thu Mar 17 18:50:13 2005 From: pcreso at PCRESO.COM (Brent Wood) Date: Thu, 17 Mar 2005 18:50:13 -0800 Subject: Application Data In-Reply-To: 6667 Message-ID: > > I would like to know, if it is possible to convert data produced from > a third party application to a shapefile or PostGIS table. In a nutshell, yes it is possible. Basic shell scripts, perl or awk can all be used to reformat such data to a format which can be loaded into PostGIS. > > Hypothetically speaking, the data from the third party application > will be in the following format. > > SSN, Lat, Long, Age etc eg, along the lines of: cat | awk "()" | psql -c "copy from STDIN [with delimiter];" There are many ways of getting the data into PostGIS. This is a shell based Linux/UNIX approaches, but it can be done under Windows if you use that, with something like Cygwin. > > Imagine that the above data is huge (as large as 100GB), so I need to > dump this information to a database. Using that many records in a single table may not be optimal for performance, so breaking it up into subsets based on some sort of sensible categories is probably worth looking into. Even for the loading process it may be worth processing subsets, one at a time. But performance issues aside, if you have the disk space it should work. > > I would like to know, how to use this data from a table to Map it onto > a MAPServer. I suggest you focus on one issue at a time, starting with how to load the data. Then how to query it with SQL, & then via other applications such as Mapserver. Taking things in a logical sequence, instead of everything at once, may make it easier to understand. Brent Wood From woodbri at SWOODBRIDGE.COM Thu Mar 17 19:12:10 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 17 Mar 2005 22:12:10 -0500 Subject: Application Data In-Reply-To: <20050318025013.26785.qmail@web31704.mail.mud.yahoo.com> Message-ID: I also might add to Brent's good suggestions that you prototype your application with a small amount of data before you try loading the whole thing. Load 1, 10 or 100 MB, see what issues you run into, get it working with mapserver, and work out the issues on a small set, then load progressively more data, and work out indexing and performance issues, etc. This allows you to easily change the schema, or indexing, etc early on if there are performance problems. If you load everything and performance is bad, it is hard to know where the problem is. Is, the indexes, is it the query, is it mapserver, is it your applications codes, is it your schema, etc. -Steve Woodbridge Brent Wood wrote: >>I would like to know, if it is possible to convert data produced from >>a third party application to a shapefile or PostGIS table. > > > In a nutshell, yes it is possible. Basic shell scripts, perl or awk can all be > used to reformat such data to a format which can be loaded into PostGIS. > > >>Hypothetically speaking, the data from the third party application >>will be in the following format. >> >>SSN, Lat, Long, Age etc > > > eg, along the lines of: > > cat | awk "()" | psql -c > "copy
from STDIN [with delimiter];" > > > There are many ways of getting the data into PostGIS. This is a shell based > Linux/UNIX approaches, but it can be done under Windows if you use that, with > something like Cygwin. > > >>Imagine that the above data is huge (as large as 100GB), so I need to >>dump this information to a database. > > > Using that many records in a single table may not be optimal for performance, > so breaking it up into subsets based on some sort of sensible categories is > probably worth looking into. Even for the loading process it may be worth > processing subsets, one at a time. But performance issues aside, if you have > the disk space it should work. > > >>I would like to know, how to use this data from a table to Map it onto >>a MAPServer. > > > I suggest you focus on one issue at a time, starting with how to load the data. > Then how to query it with SQL, & then via other applications such as Mapserver. > Taking things in a logical sequence, instead of everything at once, may make it > easier to understand. > > Brent Wood > From craig.miller at SPATIALMINDS.COM Thu Mar 17 19:26:15 2005 From: craig.miller at SPATIALMINDS.COM (Craig Miller) Date: Thu, 17 Mar 2005 19:26:15 -0800 Subject: in memory of Sol Katz In-Reply-To: <20050317133044.GX25704@vishnu.tridity.org> Message-ID: Yes. Sol was not only a great contributor; he was a fantastic guy who was very approachable. He embodied OSS ideals in more than just the code he contributed. He shared ideas openly as well. --Craig -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Schuyler Erle Sent: Thursday, March 17, 2005 5:31 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] in memory of Sol Katz Here's a really nice suggestion from Sonny Parafina for a "Sol Katz Memorial Open Source Geospatial Award" to be given out at MUM... Folks on the Geowanking list seemed to feel it was a good idea. Does anyone have any thoughts about this? SDE ----- Forwarded message from Sonny Parafina ----- Date: Wed, 16 Mar 2005 23:25:27 -0500 From: "Sonny Parafina" To: Subject: RE: [Geowanking] Anyone at ETech this year? I think that open source geospatial / MUM is the place to be this year. As an aside, I'm not sure how many of you are familiar with the late Sol Katz of the BLM. In the early nineties, Sol was a proponent of open source geospatial software and posted many utilities for converting DEM's, reading SDTS files, providing a reverse engineered specification of the ESRI E00 format, and of course maintaining PC MOSS (an early raster GIS). Sol passed away in 1999 from non-Hodgkins lymphoma. Sol's utilities are still available from here: ftp://ftp.blm.gov/pub/gis/ And, his site with web mapping and metadata references is still available: http://www.blm.gov/gis/nsdi.html I think would great to recognize Sol's contributions to the geospatial community by creating an award for Geospatial FOSS in his name. Does anyone think that this is a good idea to suggest to organizers of open source geospatial / MUM? sonny From ragnvald at MINDLAND.COM Thu Mar 17 20:56:30 2005 From: ragnvald at MINDLAND.COM (Ragnvald Larsen) Date: Thu, 17 Mar 2005 22:56:30 -0600 Subject: Controlling classitems through PHP? (Tanzanian protected areas) Message-ID: Some emails did not reach the list, so I will try to post the followup discussion here: Answer to Kristjans first question: >the control structure around is really not a problem. >The problem is how to do with PHP what I manage to >do with the code in my request. Kristjan then wrote: >Do you mean, how to create new layers and classes in PHP, so >that you dont have the pre-defined classes in the map file? My answer: No, not new layers and classes. I would like to extend the ones I already have. Eg change this one: CLASS COLOR 210 210 210 SYMBOL 0 EXPRESSION "Ikorongo" NAME "Ikorongo" END Let's imagine I start with all the parks in a neutral grey like the one above. Then the user wants to know how elephants are distributed in between the parks by visual inspection. Here at TAWIRI we just happen to have such numbers in a database, but we currently make the maps manually. With numbers from several years and also for other species than the elephant it will be a very big job to make all the maps - of which some probably not will be interesting anyway. So, I really would like to control the color of the specific classes by using PHP. Making new classes like the one above would also be very useful. The next thing is that I also have a shapefile with 22x24 squares (half degree sizes) with unique names. Used the fishnet functionality to make the grid squares. It is similar to the ggrid currently used by the Tanzania Bird Atlas project (http://tanzaniabirdatlas.com/). The Birdatlas has been subject to Mapserver earlier: http://www.gis.unbc.ca/courses/geog413/projects/2004/hoffman/ Based on our data I also hope to be able to make a presence/absence map by highlighting the grid squares. This problem is a bit like the one above, but the number of objects to be controlled is big. Ragnvald -----Original Message----- From: Kristjan Annus [mailto:kristjan at tarkvarastuudio.ee] Sent: 17. mars 2005 18:00 To: Ragnvald Larsen Subject: Re: [UMN_MAPSERVER-USERS] Controlling classitems through PHP? (Tanzanian protected areas) Do you mean, how to create new layers and classes in PHP, so that you dont have the pre-defined classes in the map file? Kristjan >Hello, > the control structure around is really not a problem. The problem >is how to do with PHP what I manage to do with the code in my request. > >Ragnvald > >-----Original Message----- >From: Kristjan Annus [mailto:kristjan at tarkvarastuudio.ee] >Sent: 17. mars 2005 16:43 >To: Ragnvald; MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Controlling classitems through PHP? >(Tanzanian protected areas) > >Hi, > >I am a little bit confused what you actually want to do? If you have >the data witch you want to publish in database, then you could for >example loop through the records and draw each one of them to the map >with PHP functions and change the color or appearance of the current >shape before you draw this particular shape. In this case you could use >different pre-made classes in your map file and change the classitem of >the shape. >How the actual code should look like depends witch database you are >using and how the datastructure is organized. >I can make you a better example if I could have more information. > >But generally it could be something like this: > >do (with every shape on the database) { // gather the points to the >shape from your database (some loop required I assume): > >$line = ms_newLineObj(); >do ( ... ) { >$point = ms_newPointObj(); >$point->setXY( $myrow["koord1"], $myrow["koord2"]); $line->add( >$point); } > >// draw the shape to the map ( the $classitem variable could be set >before by some information from your database) $pind=ms_newShapeObj( >2); $pind->add($line); $lshape->draw( $map, $layer, $image, $classitem, >$tekst); > >} > >Kristjan > > > >>I have a layer of Tanzanian protected areas (National parks, Game >>Reserves, Conservation areas, etc). My goal is to be able to control >>the visual appearances of the separate parks based on numerical data >>in an animal survey database using PHP. >> >>I am really struggling with this and have not been able to figure it >>out. I have done several searches, and to be honest working with >>classes through PHP is a bit new to me. If I manage to do this it will >>be VERY helpful for us here at TAWIRI. >> >>The planned script should generate different maps for different >>estimated species concentrations in these protected areas. The first >>step is to be able to control the different parks appearances by >>referring to their names. (Currently the developed solution will only >>be for testing purposes and internal use at my department.) >> >>This is what I can do by using a simple map-file: >> >>http://www.mindland.com/test/tanzania_parks_pres_1.gif >> >>The code for the "Parks" layer is like this: >> >>LAYER >> >>NAME "Parks" >> >>TYPE POLYGON >> >>STATUS ON >> >>DATA "TZ_PAs_2002_Poly" >> >>PROJECTION >> >>"proj=latlong" >> >>"ellps=GRS80" >> >>"datum=NAD83" >> >>END >> >>CLASSITEM 'NAME' >> >>CLASS >> >>COLOR 190 190 190 >> >>SYMBOL 0 >> >>EXPRESSION "Serengeti" >> >>NAME "Serengeti" >> >>END >> >>CLASS >> >>COLOR 210 210 210 >> >>SYMBOL 0 >> >>EXPRESSION "Ikorongo" >> >>NAME "Ikorongo" >> >>END >> >>CLASS >> >>COLOR 220 220 220 >> >>SYMBOL 0 >> >>EXPRESSION "Grumeti" >> >>NAME "Grumeti" >> >>END >> >>CLASS >> >>COLOR 220 220 220 >> >>SYMBOL 0 >> >>EXPRESSION "Masawa" >> >>NAME "Masawa" >> >>END >> >>CLASS >> >>COLOR 220 220 220 >> >>SYMBOL 0 >> >>EXPRESSION "Ngorongoro" >> >>NAME "Ngorogoro" >> >>END >> >>END >> >>END >> >>The question is then how to control the CLASSITEM color appearance and >>also selection of which classitems to show - through PHP. In the end I >>will use database queries, but for now I will be happy to do this by >>hard coding it in PHP. I am able to do changes on the other parks (not >>displayed as classitems). This code is added before the map is drawn: >> >>$layerObj = $map->getlayerbyname("Parks"); >> >>$class = ms_newClassObj($layerObj); >> >>$style = ms_newStyleObj($class); >> >>$style->color->setRGB(200,200,0); >> >>Resulting image is then: >> >>http://www.mindland.com/test/tanzania_parks_pres_2.gif >> >>Suggestions and references to relevant postings would be fine. I re >> >>Ragnvald Larsen >> >>Geographer / data systems developer >> >>Conservation Information and Monitoring Unit, >> >>Tanzania Wildlife Researc Institute, >> >>Tanzania >> >> >> > > > > From mhbasa at YAHOO.COM Thu Mar 17 21:33:04 2005 From: mhbasa at YAHOO.COM (Mario H. Basa) Date: Thu, 17 Mar 2005 21:33:04 -0800 Subject: About mapserver 4.4.1 and Chinese problem In-Reply-To: 6667 Message-ID: Hello, I am not so familliar with the font you are using, but this is what we used to test Chinese support: LAYER NAME "myline" TYPE line DATA myline STATUS DEFAULT LABELITEM "ZHNAME" CLASS NAME "myline" COLOR 227 27 227 LABEL TYPE TRUETYPE ENCODING GB2312 FONT "gbsn00lp" FORCE TRUE SIZE 10 COLOR 0 0 0 ANGLE AUTO END END END Can you try using gbsn00lp as your font, and see if the labels display well. The font is part of Fedora. Regards, mario yokohama,japan --- "Tinmean K. H. Liu" wrote: > Hi, > > I installed mapserver 4.4.1 by using apt under > Fedora Core 2. > From the "what's new" and mapfile reference, I > use "encoding" in my mapfile. > It looks like: > > LAYER > NAME Hchc_river > TYPE LINE > STATUS ON > DATA Hchc_river > LabelItem "NAME" > #CLASSITEM "NO" > CLASS > NAME "Hchc_river" > COLOR 0 0 255 > LABEL > COLOR 0 0 0 > TYPE TRUETYPE > FONT moe_kai > SIZE 8 > POSITION AUTO > PARTIALS FALSE > OUTLINECOLOR 255 255 255 > ENCODING BIG5 > END > END > TOLERANCE 5 > END > > And I have an example in my site: > http://140.113.223.74/hc_river/hello.phtml > > The right code(BIG5), the right font, but failed. > Thanks for any response. > > Tinmean K. H. Liu > __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ From Megan.Watson at DEH.GOV.AU Thu Mar 17 22:03:35 2005 From: Megan.Watson at DEH.GOV.AU (Megan Watson) Date: Fri, 18 Mar 2005 17:03:35 +1100 Subject: MAPSERVER-USERS Digest - 16 Mar 2005 to 17 Mar 2005(#2005-80) (out of office) Message-ID: I am currently out of the office and will return on Monday 4 April. Any enquires can be forwarded to Chris Gough. From ARyan at CO.LINN.OR.US Thu Mar 17 16:40:45 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 17 Mar 2005 16:40:45 -0800 Subject: Mark center of map? Message-ID: > -----Original Message----- > From: Richard A. Milewski [mailto:ram at RAMPAGE.NET] > Sent: Thursday, March 17, 2005 3:43 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mark center of map? > > > Jeff, > > I tried your suggestion and got it to work, but I noticed > some odd things and I just want to be sure I really > understand what I'm doing. > > Here's the layer that works for me: > > LAYER > NAME MapPin > STATUS ON > TYPE Point > TRANSFORM FALSE > FEATURE > POINTS > 150 150 > END > END > CLASS > SYMBOL "Symbols/Airport01.gif" > OUTLINECOLOR 255 255 255 > END > END > > The unexpected things I found were: > > 1 - I seem to need either a COLOR or OUTLINECOLOR statement > in the CLASS clause. It doesn't matter what color I specify > or whether I use COLOR or OUTLINECOLOR, but without one of > the two, the symbol doesn't appear. The specified color has > no effect on the displayed color of the .gif however. > > 2 - The path to the marker specified in the SYMBOL statement > is a path relative to the .map file directory. There is a > SHAPEPATH statement in the MAP object definition, but that > has no apparant effect here. > > 3 - It appears that the symbol is centered on the point > defined in the FEATURE clause. This is really cool and makes > things much easier, but came as a surprise. I was prepared > to calculate my own centering a la netpbm and image magick. > This is much easier. > > I now need to figure out how to change the POINT location on > the fly because I don't know what the actual map size is > until the maprequest comes in from the user. (These maps are > being served to phones and different phones have different > size screens). The note at the end of the MapServer CGI > Reference seems to have enough information about how to do > that though. I'll give it a try. > > I suspect you already know everything I've mentioned here, > but I wanted to make sure it got into the thread in the > MapServer-Users list archive. I've learned at least half of > what I know about MapServer from the list, and want to leave > as much information around for the next guy as I can. > > Many thanks for all the help! > > -- Richard > Richard, Try leaving the feature object out of your mappin layer in the map file and add it to your cgi request instead. That way you can set both the size of the map and the position of the icon. ...mapserv.exe?map=yourMap.map&mapsize=300 300&map_MapPin_feature_points=150 150&... Cheers, Adam From Dejan.Gambin at PULA.HR Thu Mar 17 23:29:50 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 18 Mar 2005 08:29:50 +0100 Subject: Highlighting features on mouse over Message-ID: Hello, I would like to be able to highlight the feature (a polygon or its outline for example) while moving the mouse over the map. Is it possible without having swf output? Thanks Dejan From ragnvald at MINDLAND.COM Thu Mar 17 23:31:51 2005 From: ragnvald at MINDLAND.COM (Ragnvald) Date: Fri, 18 Mar 2005 10:31:51 +0300 Subject: Controlling classitems through PHP? (Tanzanian protected areas) In-Reply-To: <4239F02D.9020901@tarkvarastuudio.ee> Message-ID: After trying this, my experience is that I can control classes which already have been defined in the .map-file. Fair enough, but when operating with 24*22 squares totalling 528 squares (from one shapefile) I have two problems: o Making the basic mapfile with 528 classes sounds like a lot of manual work. Perhaps I could do this through PHP. The procedure you illustrated involves changing an existing class. Adding classes with php? o But then, wouldn't 528 classes exceed the max nr of classes? (Think I read this somewhere on the list) On a later stage I will have to handle a grid with more squares (240*220 totalling 52.800 squares). The plan is to make a system where animal sightings information is allocated to the squares (size 5*5 km). For example we could end up with a map of green squares where we have had observations of certain animals (presence maps). We could also invert the maps and use them for planning new surveys. One solution suggested below by Kristjan is to draw the objects within a shape-file individually. This sounds like a good idea since we would not have to operate with classes (which is not really necessary in this case). But how is this done - by using PHP? Ragnvald PS I guess the code I will develop based on this will be made available as an example with some dummy data, so the information will not be lost on me :-) -----Original Message----- From: Kristjan Annus [mailto:kristjan at tarkvarastuudio.ee] Sent: 18. mars 2005 00:02 To: Ragnvald Larsen Subject: Re: [UMN_MAPSERVER-USERS] Controlling classitems through PHP? (Tanzanian protected areas) This is some fragment of the code witch I use to color the bus line depending of is it an express bus or not: $oCurrLayer = $map->getlayerbyname("Lines") $classObj = $oCurrLayer->getClass( 0); $styleobj = $classObj->getstyle(0); $styleobj->color->setRGB( 0, 0, 250); I assume that you could get the Parks layer and change all the classes in that layer according to the information in the database. getClass(0) gives you the first class in your map file (Serengeti), getClass(1) second one and so on. It is allso possible to use just one class and loop through the objects in the shapefile and color the class by database information and then draw the particular shape. Kristjan >No, not new layers and classes. I would like to extend the ones I already >have. Eg change this one: > >CLASS > COLOR 210 210 210 > SYMBOL 0 > EXPRESSION "Ikorongo" > NAME "Ikorongo" >END > >Let's imagine I start with all the parks in a neutral grey like the one >above. Then the user wants to know how elephants are distributed in between >the parks by visual inspection. Here at TAWIRI we just happen to have such >numbers in a database, but we currently make the maps manually. With numbers >from several years and also for other species than the elephant it will be a >very big job to make all the maps - of which some probably not will be >interesting anyway. > >So, I really would like to control the color of the specific classes by >using PHP. > >Making new classes like the one above would also be very useful. > >The next thing is that I also have a shapefile with 22x24 squares (half >degree sizes) with unique names. Used the fishnet functionality to make the >grid squares. It is similar to the ggrid currently used by the Tanzania Bird >Atlas project (http://tanzaniabirdatlas.com/). The Birdatlas has been >subject to Mapserver earlier: > >http://www.gis.unbc.ca/courses/geog413/projects/2004/hoffman/ > >Based on our data I also hope to be able to make a presence/absence map by >highlighting the grid squares. This problem is a bit like the one above, but >the number of objects to be controlled is big. > > >Ragnvald > > >-----Original Message----- >From: Kristjan Annus [mailto:kristjan at tarkvarastuudio.ee] >Sent: 17. mars 2005 18:00 >To: Ragnvald Larsen >Subject: Re: [UMN_MAPSERVER-USERS] Controlling classitems through PHP? >(Tanzanian protected areas) > >Do you mean, how to create new layers and classes in PHP, so that you >dont have the pre-defined classes in the map file? > >Kristjan > > > >>Hello, >> the control structure around is really not a problem. The problem is >>how to do with PHP what I manage to do with the code in my request. >> >>Ragnvald >> >>-----Original Message----- >>From: Kristjan Annus [mailto:kristjan at tarkvarastuudio.ee] >>Sent: 17. mars 2005 16:43 >>To: Ragnvald; MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] Controlling classitems through PHP? >>(Tanzanian protected areas) >> >>Hi, >> >>I am a little bit confused what you actually want to do? If you have the >>data witch you want to publish in database, then >>you could for example loop through the records and draw each one of them >>to the map with PHP functions and change the >>color or appearance of the current shape before you draw this particular >>shape. In this case you could use different pre-made >>classes in your map file and change the classitem of the shape. >>How the actual code should look like depends witch database you are >>using and how the datastructure is organized. >>I can make you a better example if I could have more information. >> >>But generally it could be something like this: >> >>do (with every shape on the database) { >>// gather the points to the shape from your database (some loop required >>I assume): >> >>$line = ms_newLineObj(); >>do ( ... ) { >>$point = ms_newPointObj(); >>$point->setXY( $myrow["koord1"], $myrow["koord2"]); >>$line->add( $point); >>} >> >>// draw the shape to the map ( the $classitem variable could be set >>before by some information from your database) >>$pind=ms_newShapeObj( 2); >>$pind->add($line); >>$lshape->draw( $map, $layer, $image, $classitem, $tekst); >> >>} >> >>Kristjan >> >> >> >> >> >>>I have a layer of Tanzanian protected areas (National parks, Game >>>Reserves, Conservation areas, etc). My goal is to be able to control >>>the visual appearances of the separate parks based on numerical data >>>in an animal survey database using PHP. >>> >>>I am really struggling with this and have not been able to figure it >>>out. I have done several searches, and to be honest working with >>>classes through PHP is a bit new to me. If I manage to do this it will >>>be VERY helpful for us here at TAWIRI. >>> >>>The planned script should generate different maps for different >>>estimated species concentrations in these protected areas. The first >>>step is to be able to control the different parks appearances by >>>referring to their names. (Currently the developed solution will only >>>be for testing purposes and internal use at my department.) >>> >>>This is what I can do by using a simple map-file: >>> >>>http://www.mindland.com/test/tanzania_parks_pres_1.gif >>> >>>The code for the "Parks" layer is like this: >>> >>>LAYER >>> >>>NAME "Parks" >>> >>>TYPE POLYGON >>> >>>STATUS ON >>> >>>DATA "TZ_PAs_2002_Poly" >>> >>>PROJECTION >>> >>>"proj=latlong" >>> >>>"ellps=GRS80" >>> >>>"datum=NAD83" >>> >>>END >>> >>>CLASSITEM 'NAME' >>> >>>CLASS >>> >>>COLOR 190 190 190 >>> >>>SYMBOL 0 >>> >>>EXPRESSION "Serengeti" >>> >>>NAME "Serengeti" >>> >>>END >>> >>>CLASS >>> >>>COLOR 210 210 210 >>> >>>SYMBOL 0 >>> >>>EXPRESSION "Ikorongo" >>> >>>NAME "Ikorongo" >>> >>>END >>> >>>CLASS >>> >>>COLOR 220 220 220 >>> >>>SYMBOL 0 >>> >>>EXPRESSION "Grumeti" >>> >>>NAME "Grumeti" >>> >>>END >>> >>>CLASS >>> >>>COLOR 220 220 220 >>> >>>SYMBOL 0 >>> >>>EXPRESSION "Masawa" >>> >>>NAME "Masawa" >>> >>>END >>> >>>CLASS >>> >>>COLOR 220 220 220 >>> >>>SYMBOL 0 >>> >>>EXPRESSION "Ngorongoro" >>> >>>NAME "Ngorogoro" >>> >>>END >>> >>>END >>> >>>END >>> >>>The question is then how to control the CLASSITEM color appearance and >>>also selection of which classitems to show - through PHP. In the end I >>>will use database queries, but for now I will be happy to do this by >>>hard coding it in PHP. I am able to do changes on the other parks (not >>>displayed as classitems). This code is added before the map is drawn: >>> >>>$layerObj = $map->getlayerbyname("Parks"); >>> >>>$class = ms_newClassObj($layerObj); >>> >>>$style = ms_newStyleObj($class); >>> >>>$style->color->setRGB(200,200,0); >>> >>>Resulting image is then: >>> >>>http://www.mindland.com/test/tanzania_parks_pres_2.gif >>> >>>Suggestions and references to relevant postings would be fine. I re >>> >>>Ragnvald Larsen >>> >>>Geographer / data systems developer >>> >>>Conservation Information and Monitoring Unit, >>> >>>Tanzania Wildlife Researc Institute, >>> >>>Tanzania >>> >>> >>> >>> >>> >> >> >> >> > > > > From tinmean at YAHOO.COM.TW Fri Mar 18 00:21:17 2005 From: tinmean at YAHOO.COM.TW (Tinmean K. H. Liu) Date: Fri, 18 Mar 2005 16:21:17 +0800 Subject: About mapserver 4.4.1 and Chinese problem In-Reply-To: <20050318053305.77619.qmail@web30506.mail.mud.yahoo.com> Message-ID: Thanks for your response first. I use traditional Chinese code, so the BIG5 is insteaded. And I choose the "bkai00mp" as my font settin, it is alse the part of fedora font. Rewriting the mapfile and keeping it simple. But still failed. The failure example is here: http://140.113.223.74/hc_river/test.php (It is no a php script and is a pure html script) the mapfile: MAP EXTENT 236874 2734194 252551 2749838 SIZE 300 400 SHAPEPATH "/var/www/html/hc_river/webgis/data" LAYER # start of the "states" layer object NAME Hchc_river DATA Hchc_river STATUS DEFAULT TYPE LINE LabelItem "NAME" CLASSITEM "NO" CLASS NAME "Hchc_river" COLOR 0 0 255 LABEL TYPE TRUETYPE ENCODING BIG5 FONT "bkai00mp" FORCE TRUE SIZE 12 POSITION AUTO PARTIALS FALSE OUTLINECOLOR 255 255 255 END #OUTLINECOLOR 255 255 255 END # end of class object END # end of layer object END # end of map file When I comment the line "Labelitem", the figure can be showed out. I am sure the data path is correct. May you give some advice? --Tinmean K. H. Liu >Hello, > >I am not so familliar with the font you are using, but >this is what we used to test Chinese support: > > LAYER > NAME "myline" > TYPE line > DATA myline > STATUS DEFAULT > > LABELITEM "ZHNAME" > > CLASS > NAME "myline" > COLOR 227 27 227 > LABEL > TYPE TRUETYPE > ENCODING GB2312 > FONT "gbsn00lp" > > FORCE TRUE > SIZE 10 > COLOR 0 0 0 > ANGLE AUTO > END > END > END > >Can you try using gbsn00lp as your font, and see if >the labels display well. The font is part of Fedora. > >Regards, > >mario >yokohama,japan > > > > >--- "Tinmean K. H. Liu" wrote: > > >>Hi, >> >> I installed mapserver 4.4.1 by using apt under >>Fedora Core 2. >> From the "what's new" and mapfile reference, I >>use "encoding" in my mapfile. >> It looks like: >> >>LAYER >> NAME Hchc_river >> TYPE LINE >> STATUS ON >> DATA Hchc_river >> LabelItem "NAME" >> #CLASSITEM "NO" >> CLASS >> NAME "Hchc_river" >> COLOR 0 0 255 >> LABEL >> COLOR 0 0 0 >> TYPE TRUETYPE >> FONT moe_kai >> SIZE 8 >> POSITION AUTO >> PARTIALS FALSE >> OUTLINECOLOR 255 255 255 >> ENCODING BIG5 >> END >> END >> TOLERANCE 5 >>END >> >> And I have an example in my site: >>http://140.113.223.74/hc_river/hello.phtml >> >> The right code(BIG5), the right font, but failed. >> Thanks for any response. >> >>Tinmean K. H. Liu >> >> >> > > > >__________________________________ >Do you Yahoo!? >Yahoo! Small Business - Try our new resources site! >http://smallbusiness.yahoo.com/resources/ > > > From kristjan at TARKVARASTUUDIO.EE Fri Mar 18 00:35:45 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Fri, 18 Mar 2005 10:35:45 +0200 Subject: Controlling classitems through PHP? (Tanzanian protected areas) In-Reply-To: <20050318073149.D48085382B@mail.habari.co.tz> Message-ID: You must use shapefile object and build some cycle i.e for ($i=0,$i<$oShapefile->numshapes,$i++) { // and here use $oShapefile->getshape() method to get the shape object and then change the color of the // one existing class of your layer and then draw the object } Kristjan >After trying this, my experience is that I can control classes which already >have been defined in the .map-file. Fair enough, but when operating with >24*22 squares totalling 528 squares (from one shapefile) I have two >problems: > >o Making the basic mapfile with 528 classes sounds like a lot of manual >work. Perhaps I could do this through PHP. The procedure you illustrated >involves changing an existing class. Adding classes with php? > >o But then, wouldn't 528 classes exceed the max nr of classes? (Think I read >this somewhere on the list) > >On a later stage I will have to handle a grid with more squares (240*220 >totalling 52.800 squares). The plan is to make a system where animal >sightings information is allocated to the squares (size 5*5 km). For example >we could end up with a map of green squares where we have had observations >of certain animals (presence maps). We could also invert the maps and use >them for planning new surveys. > >One solution suggested below by Kristjan is to draw the objects within a >shape-file individually. This sounds like a good idea since we would not >have to operate with classes (which is not really necessary in this case). > >But how is this done - by using PHP? > > >Ragnvald > >PS I guess the code I will develop based on this will be made available as >an example with some dummy data, so the information will not be lost on me >:-) > >-----Original Message----- >From: Kristjan Annus [mailto:kristjan at tarkvarastuudio.ee] >Sent: 18. mars 2005 00:02 >To: Ragnvald Larsen >Subject: Re: [UMN_MAPSERVER-USERS] Controlling classitems through PHP? >(Tanzanian protected areas) > >This is some fragment of the code witch I use to color the bus line >depending of is it an express bus or not: > >$oCurrLayer = $map->getlayerbyname("Lines") > >$classObj = $oCurrLayer->getClass( 0); >$styleobj = $classObj->getstyle(0); >$styleobj->color->setRGB( 0, 0, 250); > >I assume that you could get the Parks layer and change all the classes >in that layer according to the information in the database. getClass(0) >gives you >the first class in your map file (Serengeti), getClass(1) second one and >so on. > >It is allso possible to use just one class and loop through the objects >in the shapefile and color the class by database information and then >draw the particular shape. > >Kristjan > > > >>No, not new layers and classes. I would like to extend the ones I already >>have. Eg change this one: >> >>CLASS >> COLOR 210 210 210 >> SYMBOL 0 >> EXPRESSION "Ikorongo" >> NAME "Ikorongo" >>END >> >>Let's imagine I start with all the parks in a neutral grey like the one >>above. Then the user wants to know how elephants are distributed in between >>the parks by visual inspection. Here at TAWIRI we just happen to have such >>numbers in a database, but we currently make the maps manually. With >> >> >numbers >>from several years and also for other species than the elephant it will be >a > > >>very big job to make all the maps - of which some probably not will be >>interesting anyway. >> >>So, I really would like to control the color of the specific classes by >>using PHP. >> >>Making new classes like the one above would also be very useful. >> >>The next thing is that I also have a shapefile with 22x24 squares (half >>degree sizes) with unique names. Used the fishnet functionality to make the >>grid squares. It is similar to the ggrid currently used by the Tanzania >> >> >Bird > > >>Atlas project (http://tanzaniabirdatlas.com/). The Birdatlas has been >>subject to Mapserver earlier: >> >>http://www.gis.unbc.ca/courses/geog413/projects/2004/hoffman/ >> >>Based on our data I also hope to be able to make a presence/absence map by >>highlighting the grid squares. This problem is a bit like the one above, >> >> >but > > >>the number of objects to be controlled is big. >> >> >>Ragnvald >> >> >>-----Original Message----- >>From: Kristjan Annus [mailto:kristjan at tarkvarastuudio.ee] >>Sent: 17. mars 2005 18:00 >>To: Ragnvald Larsen >>Subject: Re: [UMN_MAPSERVER-USERS] Controlling classitems through PHP? >>(Tanzanian protected areas) >> >>Do you mean, how to create new layers and classes in PHP, so that you >>dont have the pre-defined classes in the map file? >> >>Kristjan >> >> >> >> >> >>>Hello, >>> the control structure around is really not a problem. The problem is >>>how to do with PHP what I manage to do with the code in my request. >>> >>>Ragnvald >>> >>>-----Original Message----- >>>From: Kristjan Annus [mailto:kristjan at tarkvarastuudio.ee] >>>Sent: 17. mars 2005 16:43 >>>To: Ragnvald; MAPSERVER-USERS at LISTS.UMN.EDU >>>Subject: Re: [UMN_MAPSERVER-USERS] Controlling classitems through PHP? >>>(Tanzanian protected areas) >>> >>>Hi, >>> >>>I am a little bit confused what you actually want to do? If you have the >>>data witch you want to publish in database, then >>>you could for example loop through the records and draw each one of them >>>to the map with PHP functions and change the >>>color or appearance of the current shape before you draw this particular >>>shape. In this case you could use different pre-made >>>classes in your map file and change the classitem of the shape. >>>How the actual code should look like depends witch database you are >>>using and how the datastructure is organized. >>>I can make you a better example if I could have more information. >>> >>>But generally it could be something like this: >>> >>>do (with every shape on the database) { >>>// gather the points to the shape from your database (some loop required >>>I assume): >>> >>>$line = ms_newLineObj(); >>>do ( ... ) { >>>$point = ms_newPointObj(); >>>$point->setXY( $myrow["koord1"], $myrow["koord2"]); >>>$line->add( $point); >>>} >>> >>>// draw the shape to the map ( the $classitem variable could be set >>>before by some information from your database) >>>$pind=ms_newShapeObj( 2); >>>$pind->add($line); >>>$lshape->draw( $map, $layer, $image, $classitem, $tekst); >>> >>>} >>> >>>Kristjan >>> >>> >>> >>> >>> >>> >>> >>>>I have a layer of Tanzanian protected areas (National parks, Game >>>>Reserves, Conservation areas, etc). My goal is to be able to control >>>>the visual appearances of the separate parks based on numerical data >>>>in an animal survey database using PHP. >>>> >>>>I am really struggling with this and have not been able to figure it >>>>out. I have done several searches, and to be honest working with >>>>classes through PHP is a bit new to me. If I manage to do this it will >>>>be VERY helpful for us here at TAWIRI. >>>> >>>>The planned script should generate different maps for different >>>>estimated species concentrations in these protected areas. The first >>>>step is to be able to control the different parks appearances by >>>>referring to their names. (Currently the developed solution will only >>>>be for testing purposes and internal use at my department.) >>>> >>>>This is what I can do by using a simple map-file: >>>> >>>>http://www.mindland.com/test/tanzania_parks_pres_1.gif >>>> >>>>The code for the "Parks" layer is like this: >>>> >>>>LAYER >>>> >>>>NAME "Parks" >>>> >>>>TYPE POLYGON >>>> >>>>STATUS ON >>>> >>>>DATA "TZ_PAs_2002_Poly" >>>> >>>>PROJECTION >>>> >>>>"proj=latlong" >>>> >>>>"ellps=GRS80" >>>> >>>>"datum=NAD83" >>>> >>>>END >>>> >>>>CLASSITEM 'NAME' >>>> >>>>CLASS >>>> >>>>COLOR 190 190 190 >>>> >>>>SYMBOL 0 >>>> >>>>EXPRESSION "Serengeti" >>>> >>>>NAME "Serengeti" >>>> >>>>END >>>> >>>>CLASS >>>> >>>>COLOR 210 210 210 >>>> >>>>SYMBOL 0 >>>> >>>>EXPRESSION "Ikorongo" >>>> >>>>NAME "Ikorongo" >>>> >>>>END >>>> >>>>CLASS >>>> >>>>COLOR 220 220 220 >>>> >>>>SYMBOL 0 >>>> >>>>EXPRESSION "Grumeti" >>>> >>>>NAME "Grumeti" >>>> >>>>END >>>> >>>>CLASS >>>> >>>>COLOR 220 220 220 >>>> >>>>SYMBOL 0 >>>> >>>>EXPRESSION "Masawa" >>>> >>>>NAME "Masawa" >>>> >>>>END >>>> >>>>CLASS >>>> >>>>COLOR 220 220 220 >>>> >>>>SYMBOL 0 >>>> >>>>EXPRESSION "Ngorongoro" >>>> >>>>NAME "Ngorogoro" >>>> >>>>END >>>> >>>>END >>>> >>>>END >>>> >>>>The question is then how to control the CLASSITEM color appearance and >>>>also selection of which classitems to show - through PHP. In the end I >>>>will use database queries, but for now I will be happy to do this by >>>>hard coding it in PHP. I am able to do changes on the other parks (not >>>>displayed as classitems). This code is added before the map is drawn: >>>> >>>>$layerObj = $map->getlayerbyname("Parks"); >>>> >>>>$class = ms_newClassObj($layerObj); >>>> >>>>$style = ms_newStyleObj($class); >>>> >>>>$style->color->setRGB(200,200,0); >>>> >>>>Resulting image is then: >>>> >>>>http://www.mindland.com/test/tanzania_parks_pres_2.gif >>>> >>>>Suggestions and references to relevant postings would be fine. I re >>>> >>>>Ragnvald Larsen >>>> >>>>Geographer / data systems developer >>>> >>>>Conservation Information and Monitoring Unit, >>>> >>>>Tanzania Wildlife Researc Institute, >>>> >>>>Tanzania >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> >> > > > From stephane.riff at CERENE.FR Fri Mar 18 00:35:12 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Fri, 18 Mar 2005 09:35:12 +0100 Subject: REsize window question Message-ID: My mapserver application need to redraw the map when the window is resized. My problem is that i don't know how to keep the same extent in two map with different size !!! in fact i don't want the map to change its scale when i resize the window. How can i calculate the newExtent to do that ??? Is it possible ??? How do you handle that kind of function ? example ? Thanks From tinmean at YAHOO.COM.TW Fri Mar 18 00:47:03 2005 From: tinmean at YAHOO.COM.TW (Tinmean K. H. Liu) Date: Fri, 18 Mar 2005 16:47:03 +0800 Subject: About mapserver 4.4.1 and Chinese problem Message-ID: Hi, Thanks for your response. The question is no solved. I post the question on your discussion board. About my question is about the "Label", I make a simple example here: http://140.113.223.74/hc_river/test.php Comparing the different mapfiles, the first one with labelitem cannot be showed out. Thank you, anyway. --Tinmean K. H. Liu > Hi, > Have you set the fontset variable and copy the font to the right place >if you are sured your code right? > And if you can read chinese,welcome to >http://www.cngis.org/bbs/forumdisplay.php?f=83 discuss the related topic. > > Liangxu Wang > > > >>Hi, >> >> I installed mapserver 4.4.1 by using apt under Fedora Core 2. >> From the "what's new" and mapfile reference, I use >>"encoding" in my mapfile. >> It looks like: >> >>LAYER >> NAME Hchc_river >> TYPE LINE >> STATUS ON >> DATA Hchc_river >> LabelItem "NAME" >> #CLASSITEM "NO" >> CLASS >> NAME "Hchc_river" >> COLOR 0 0 255 >> LABEL >> COLOR 0 0 0 >> TYPE TRUETYPE >> FONT moe_kai >> SIZE 8 >> POSITION AUTO >> PARTIALS FALSE >> OUTLINECOLOR 255 255 255 >> ENCODING BIG5 >> END >> END >> TOLERANCE 5 >>END >> >> And I have an example in my site: >>http://140.113.223.74/hc_river/hello.phtml >> >> The right code(BIG5), the right font, but failed. >> Thanks for any response. >> >>Tinmean K. H. Liu >> >> >> >> > > > > > > From stephane.riff at CERENE.FR Fri Mar 18 01:44:07 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Fri, 18 Mar 2005 10:44:07 +0100 Subject: Is it possible : Change color on database field Message-ID: What i want to do is : I represent gps track on a map, this work fine with one class and one color. I want mapserver to change the symbol color each time ths vehicles stop and start again in the database it's a field that match speed. So each time the speed field is equal to zero i want to change the color. I don't know how to do that , is it possible ??? How ??? Hope i'm understandable Thanks From stephane.riff at CERENE.FR Fri Mar 18 01:48:16 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Fri, 18 Mar 2005 10:48:16 +0100 Subject: Symbol question Message-ID: Sorry for all the question but i don't know how i can do ... :) I want to know if there is symbolitem in layer object like the labelangleitem ??? If no, how i can set a symbol for several type of mobile store in database without a class for each mobile ??? Thanks again, Steff From sweykam at TELELINE.ES Fri Mar 18 02:13:42 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Fri, 18 Mar 2005 11:13:42 +0100 Subject: link MapServer as client to ArcIMS Message-ID: Dear list, is anybody out there who has worked with ArcIMS before? I would like to connect our map service to another service. They are running ArcIMS on IIS and don't know how to do it. The ESRI maintanance has run out, the manual description is for Apache and my counterpart is as newby as I am. I wonder if there is any document on Internet which describes how to become an ArcIMS server. Any hint is wellcome. Stefanie Weykam > From bartvde at XS4ALL.NL Fri Mar 18 02:16:50 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 18 Mar 2005 11:16:50 +0100 Subject: link MapServer as client to ArcIMS In-Reply-To: Message-ID: Hi, from your e-mail I can't really make out a 100% if you want to have Mapserver act as the client or the server, so I'll describe both options. -AFAIK an ArcIMS service cannot cascade other services. You can however facade Mapserver to act as an ArcIMS service using ArcIMS emulator: http://mapserver.refractions.net/ -if you want Mapserver to act as a client to an existing ArcIMS service, you need an OGC:WMS interface on the ArcIMS service. Look at the ESRI interoperability site for that. Best regards, Bart > Dear list, > is anybody out there who has worked with ArcIMS before? I would like to > connect our map service to another service. They are running ArcIMS on IIS > and don't know how to do it. The ESRI maintanance has run out, the manual > description is for Apache and my counterpart is as newby as I am. > I wonder if there is any document on Internet which describes how to > become > an ArcIMS server. > Any hint is wellcome. > > Stefanie Weykam > >> > From jcradock at ME3.COM Fri Mar 18 02:36:24 2005 From: jcradock at ME3.COM (James Cradock) Date: Fri, 18 Mar 2005 05:36:24 -0500 Subject: Fwd: [UMN_MAPSERVER-USERS] Application Data In-Reply-To: <6d675eda0503171715648e624b@mail.gmail.com> Message-ID: Giridhar, CSV is text. PostgreSQL will hold the PostGIS data, and text (delimited text or SQL (INSERT) commands) can be easily loaded into PostgreSQL. Look at the docs for psql for loading data from SQL script commends. Look here: http://techdocs.postgresql.org/techdocs/usingcopy.php ...to see how to load data from delimited files. Performance *may* fall as the table holding this data gets large, but the speed of the query to return results can be improved by using EXPLAIN to examine how PostgreSQL thinks it ought to run queries (you'll see where you likely need to add or remove indices, cast data types, etc. I think you'll want to use EXPLAIN anyway to get a better handle on your data and to see how PostgreSQL is going to use it. http://www.postgresql.org/docs/7.4/interactive/sql-explain.html The database will need to be setup to use PostGIS: http://postgis.refractions.net/docs/ Look also at the sections on storing lon/lat data. You can do so in a geometry column or you can use PostGIS to transform the lon and lat data into geometry data in the mapfile. After you've loaded the data and are satisfied with the structure of the database objects and have some optimized queries, look at the MapServer section for making that data available as layers in your map application. Jim > ---------- Forwarded message ---------- > From: Giridhar Manepalli > Date: Thu, 17 Mar 2005 17:59:29 -0500 > Subject: Re: [UMN_MAPSERVER-USERS] Application Data > To: warmerdam at pobox.com > > > Thanks Frank, > But how is it possible to convert that CSV data into a shapefile or > POSTGIS supportive table, in order for me to use in a MAPSERVER. > > Condition being : data < 1MB > > Regards, > Giridhar > > > On Thu, 17 Mar 2005 17:52:02 -0500, Frank Warmerdam > wrote: >> On Thu, 17 Mar 2005 17:41:24 -0500, Giridhar Manepalli >> wrote: >> > I would like to know, if it is possible to convert data produced from >> > a third party application to a shapefile or PostGIS table. >> > >> > Hypothetically speaking, the data from the third party application >> > will be in the following format. >> > >> > SSN, Lat, Long, Age etc >> > >> > Imagine that the above data is huge (as large as 100GB), so I need to >> > dump this information to a database. >> > >> > I would like to know, how to use this data from a table to Map it onto >> > a MAPServer. >> > >> > and process queries like: >> > >> > *.) How many people are at a given location >> >> Giridhar, >> >> It is certainly possible in principle to translate this data to PostGIS >> or into a point shapefile, but if it is 100GB of data in that >> compact comma seperated value format, it is going to be alot >> larger in PostGIS or in a shapefile. >> >> A traditional approach to handling this sort of dataset, if you >> only need summary information is to aggregate it somehow. >> Otherwise you are going to have alot of performance and >> query optimization issues. >> >> Good luck, >> -- >> ---------------------------------------+-------------------------------------- >> I set the clouds in motion - turn up | Frank Warmerdam, >> warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush | Geospatial Programmer for Rent >> > ----- James Cradock, jcradock at me3.com From arnulf.christl at CCGIS.DE Fri Mar 18 03:03:18 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 18 Mar 2005 12:03:18 +0100 Subject: Application Data In-Reply-To: <6d675eda0503171441a7ceaa0@mail.gmail.com> Message-ID: Giridhar Manepalli wrote: > Hello All, > I would like to appreciate Bart who is on the list for helping me get > in touch with some of the concepts of GIS and Mapserver. Bart should be awarded something on the OpenGeoSpatial. Its a pity he is not coming! [...] > Imagine that the above data is huge (as large as 100GB), so I need to > dump this information to a database. The sheer size of the data is not a problem for either PostgreSQL or PostGIS. But as Stephen and Brent suggest it *is* a problem to try start optimizing and tuning the database with the full load. Start as suggested with smaller sections. Be aware that when requesting such a large dataset it is important that you know what functionality you want to use. We have learned a few weeks ago that a feature request (WFS) can be a performance killer although map requests (WMS) on the same MapServer and the database are perfectly fast. > I would like to know, how to use this data from a table to Map it onto > a MAPServer. One of many ways to do it: - Upload CSV text file into the database - Create new geometry column with AddGeometryColumn - Write an SQL which combines and copies the x and y columns with AddGeometryFromText into the new geometry column. The SQL can be qute ugly depengding on how many intermediate steps you need to put together the WKS string. if the the col 'objgeom' (TEXT) contains values like: "(7.15 55.8)" update test set the_geom = GeometryFromText('POINT '|| objgeom || '"', 4326) if the the col 'objgeom' (TEXT) contains values like: "7.15 55.8" without the brackets: update test set the_geom = GeometryFromText('POINT ('|| objgeom || ')"', 4326) Another way to do it: Create a shape file from the data with somme other tool and load it into PG/PostGIS using shp2pgsql. *** I just saw that Jim already pointed you to all the docs. One more thing: Never forget to create a GIST index on the geometry column and vacuum analyze the database to make it take effect. Best, Arnulf. -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.org http://www.mapbender.org ------------------------ From arnulf.christl at CCGIS.DE Fri Mar 18 03:30:52 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 18 Mar 2005 12:30:52 +0100 Subject: Highlighting features on mouse over In-Reply-To: Message-ID: Gambin Dejan wrote: > Hello, > > I would like to be able to highlight the feature (a polygon or its > outline for example) while moving the mouse over the map. Is it possible > without having swf output? > > Thanks > > Dejan > Yes, there are several possibilities to do this. As usual we try to implement it using OGC standards only. Have a look at this example: http://www.mapbender.org/demoserver.html You need: - MapServer as WMS - MapServer as WFS (WMS with DUMP=true might also do) - Mapbender 1. Query the WFS for a feature (enter 5311 into the field "Plz:" and click OK) 2. MapServer answers to this request by returning the geometry as GML 3. Mapbender takes and translates this GML into an HTML text (53111...) with JavaScript over-, out- and click-actions. 53111
Message-ID: I think the issue is the PHP I have not had any success using mapserver 4.4.1 php code on Fedora -- not sure if its still the regex issue. 4.2 works just fine. THere have been some similar posts. I'd go back to 4.2, recompile php with the system regex as noted when you do the configuration of mapserver ./configure --with-php (sorry I don't have the options right here), but it tells you how to recompile php. I use 4.4 mapserver cgi, but 4.2 php they are compiled independently and work just fine. Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Tinmean K. H. Liu Sent: Friday, March 18, 2005 3:47 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] About mapserver 4.4.1 and Chinese problem Hi, Thanks for your response. The question is no solved. I post the question on your discussion board. About my question is about the "Label", I make a simple example here: http://140.113.223.74/hc_river/test.php Comparing the different mapfiles, the first one with labelitem cannot be showed out. Thank you, anyway. --Tinmean K. H. Liu > Hi, > Have you set the fontset variable and copy the font to the right place >if you are sured your code right? > And if you can read chinese,welcome to >http://www.cngis.org/bbs/forumdisplay.php?f=83 discuss the related topic. > > Liangxu Wang > > > >>Hi, >> >> I installed mapserver 4.4.1 by using apt under Fedora Core 2. >> From the "what's new" and mapfile reference, I use >>"encoding" in my mapfile. >> It looks like: >> >>LAYER >> NAME Hchc_river >> TYPE LINE >> STATUS ON >> DATA Hchc_river >> LabelItem "NAME" >> #CLASSITEM "NO" >> CLASS >> NAME "Hchc_river" >> COLOR 0 0 255 >> LABEL >> COLOR 0 0 0 >> TYPE TRUETYPE >> FONT moe_kai >> SIZE 8 >> POSITION AUTO >> PARTIALS FALSE >> OUTLINECOLOR 255 255 255 >> ENCODING BIG5 >> END >> END >> TOLERANCE 5 >>END >> >> And I have an example in my site: >>http://140.113.223.74/hc_river/hello.phtml >> >> The right code(BIG5), the right font, but failed. >> Thanks for any response. >> >>Tinmean K. H. Liu >> >> >> >> > > > > > > From woodbri at SWOODBRIDGE.COM Fri Mar 18 05:33:38 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 18 Mar 2005 08:33:38 -0500 Subject: Symbol question In-Reply-To: <423AA3E0.90801@cerene.fr> Message-ID: Create a CLASSITEM "store_type" and then create a CLASS for each type of store and assign it a symbol in the CLASS. -Steve W. St?phane RIFF wrote: > Sorry for all the question but i don't know how i can do ... :) > > I want to know if there is symbolitem in layer object like the > labelangleitem ??? > > If no, how i can set a symbol for several type of mobile store in database > without a class for each mobile ??? > > Thanks again, > Steff > From woodbri at SWOODBRIDGE.COM Fri Mar 18 05:37:32 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 18 Mar 2005 08:37:32 -0500 Subject: Is it possible : Change color on database field In-Reply-To: <423AA2E7.6010900@cerene.fr> Message-ID: Use a and EXPRESSION ([SPEED] < 0.5) or whatever you want to consider as stopped in your CLASS and color it stopped, Follow this with a CLASS with no EXPRESSION to be the default case and color it moving. -Steve St?phane RIFF wrote: > What i want to do is : > I represent gps track on a map, this work fine with one class and one > color. > I want mapserver to change the symbol color each time ths vehicles stop > and start again > in the database it's a field that match speed. So each time the speed > field is equal to zero > i want to change the color. > I don't know how to do that , is it possible ??? How ??? > > Hope i'm understandable > Thanks > From richard at BARAHONA.CH Fri Mar 18 06:30:10 2005 From: richard at BARAHONA.CH (Richard Barahona) Date: Fri, 18 Mar 2005 08:30:10 -0600 Subject: Internal Server Error on queryByShape Message-ID: Hi list, I don't if the function queryByShape has a problem or i am doing something wrong, but the result is an Internal Server Error (php crashes). He is the piece of my code (php-mapscript): $oshape = ms_newShapeObj(MS_SHAPE_POLYGON); $oline = ms_newLineObj(); for($i=0; $i < sizeof($arXCoords)-1; $i++) { $opoint = ms_newPointObj(); $opoint->setXY($arXCoords[$i],$arYCoords[$i]); $oline->add($opoint); } $oshape->add($oline); $oshape->set('classindex',1); $oshape->set('text','99'); $olayer = $_SESSION['oMap']->getlayerbyname("awp"); $brc = $olayer->querybyshape($oshape); The shape object extent are set to -1, but the attribute numline is set to 1. Strange. Any solution? Thanks for your help. From mhbasa at YAHOO.COM Fri Mar 18 07:02:55 2005 From: mhbasa at YAHOO.COM (Mario H. Basa) Date: Fri, 18 Mar 2005 07:02:55 -0800 Subject: About mapserver 4.4.1 and Chinese problem In-Reply-To: 6667 Message-ID: Hello, I agree with Linagxu, it seems that you have forgotten to create a fontset file. Here is what you should do: 1. create a file called fontset.lst in the same directory as your map file. 2. add this to the fontset.lst (for fedora, check to make sure that the path is correct) bkai00mp /usr/share/fonts/zh_TW/TrueType/bkai00mp.ttf 3. add this to your map file: FONTSET fontset.lst Hope this works for you. mario yokohama, japan --- "Tinmean K. H. Liu" wrote: > Hi, > Thanks for your response. > > The question is no solved. > I post the question on your discussion board. > > About my question is about the "Label", I make > a simple example > here: http://140.113.223.74/hc_river/test.php > > Comparing the different mapfiles, the first one > with labelitem > cannot be showed out. > > Thank you, anyway. > > --Tinmean K. H. Liu > > > Hi, > > Have you set the fontset variable and copy > the font to the right place > >if you are sured your code right? > > And if you can read chinese,welcome to > >http://www.cngis.org/bbs/forumdisplay.php?f=83 > discuss the related topic. > > > > Liangxu Wang > > > > > > > >>Hi, > >> > >> I installed mapserver 4.4.1 by using apt under > Fedora Core 2. > >> From the "what's new" and mapfile reference, I > use > >>"encoding" in my mapfile. > >> It looks like: > >> > >>LAYER > >> NAME Hchc_river > >> TYPE LINE > >> STATUS ON > >> DATA Hchc_river > >> LabelItem "NAME" > >> #CLASSITEM "NO" > >> CLASS > >> NAME "Hchc_river" > >> COLOR 0 0 255 > >> LABEL > >> COLOR 0 0 0 > >> TYPE TRUETYPE > >> FONT moe_kai > >> SIZE 8 > >> POSITION AUTO > >> PARTIALS FALSE > >> OUTLINECOLOR 255 255 255 > >> ENCODING BIG5 > >> END > >> END > >> TOLERANCE 5 > >>END > >> > >> And I have an example in my site: > >>http://140.113.223.74/hc_river/hello.phtml > >> > >> The right code(BIG5), the right font, but > failed. > >> Thanks for any response. > >> > >>Tinmean K. H. Liu > >> > >> > >> > >> > > > > > > > > > > > > > __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ From stephane.riff at CERENE.FR Fri Mar 18 07:16:56 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Fri, 18 Mar 2005 16:16:56 +0100 Subject: Is it possible : Change color on database field In-Reply-To: <423AD99C.4030509@swoodbridge.com> Message-ID: Thanks for answer, That's not exactly what i want. I want to change the color after each stop : > > > > || > > > > > > || > > > > > one path stop another path stop another path Is that possible with a field in db that specify that a stop has hapenned ??? Thanks Stephen Woodbridge wrote: > Use a and EXPRESSION ([SPEED] < 0.5) or whatever you want to consider > as stopped in your CLASS and color it stopped, Follow this with a > CLASS with no EXPRESSION to be the default case and color it moving. > > -Steve > > St?phane RIFF wrote: > >> What i want to do is : >> I represent gps track on a map, this work fine with one class and one >> color. >> I want mapserver to change the symbol color each time ths vehicles stop >> and start again >> in the database it's a field that match speed. So each time the speed >> field is equal to zero >> i want to change the color. >> I don't know how to do that , is it possible ??? How ??? >> >> Hope i'm understandable >> Thanks >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsozzi at INTERCAD.CH Fri Mar 18 07:28:41 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Fri, 18 Mar 2005 16:28:41 +0100 Subject: crash on QueryByRect/QueryByAttr on Oracle Layer (mapserver compiled by me) Message-ID: Hi all, If I use precompiled binaries for Win32/Oracle I have no problem. If I try to compile myself everything still works properly (I can render, zoom, pan, querying, ecc...), but if I query (es. QueryByRect) Oracle Spatial layer, mapserver crashes. Another sympton: I have no problem if on DATA attribute I list only key and geometry fields. If I list some other fields, mapserver (compiled by me) crashes. There is something on how I compiled my binaries. Anybody has already experimented the same problem?... Bets regards Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Fri Mar 18 07:40:39 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 18 Mar 2005 10:40:39 -0500 Subject: tileindexed layer crashing... Message-ID: This morning I tried to add a tileindexed layer to my mapfile. After adding it and trying to view my mapfile, apache ran away with all the systems memory until it crashed. I have no idea what I did wrong... I downloaded all of the tiger2004 shapefiles and unzipped them into a single directory. In that directory, I did: tile4ms data_dir.in tiger-roads shptree tiger-roads cat data_dir.in | xargs-n 1 shptree I added this layer: LAYER NAME tiger_streets STATUS off TYPE line TILEINDEX tiger-roads PROJECTION "proj=latlong" END CLASSITEM "CFCC" CLASS NAME "Interstate" EXPRESSION ([CFCC]=A15) COLOR 200 0 0 SYMBOL 'interstate' END END When I tried to view the map it blew up. The server I was using happened to also be our mailserver... so causing this machine to go unstable and require a reboot is a very bad thing and thus i'm being forced to move my mapserver work to another server. I've been googling all morning but I can't seem to find the debian package for mapserver 4.4.1 again... anybody know where I can find that? I wish I could remember where I got it last time. Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Fri Mar 18 07:59:56 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 18 Mar 2005 10:59:56 -0500 Subject: tileindexed layer crashing... Message-ID: Jeff - It's certainly a good idea to do early-stage development on a non-production machine; I'm sorry you got there the hard way, but it's good to be there . First, some nit-picking. I presume you did something first to create a "data_dir.in" file, right? And there's a space between xargs and "-n", correct? The latter shouldn't make much difference. Does your tiger-roads shapefile look OK? Do the filesizes look plausible? Can you view it in a GIS application (it's just a regular shapefile)? As a diagnostic step, I'd suggest changing TILEINDEX to DATA in your LAYER definition, and the TYPE to POLYGON. The tile index is a polygon shapefile with a bunch of rectangles, each describing the bounding box of one input file. Use this technique to see if the tile index file itself looks reasonable. If it does, then your problem's likely to be with your TIGER data - otherwise, the TILEINDEX file needs fixing. - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Friday, March 18, 2005 10:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] tileindexed layer crashing... This morning I tried to add a tileindexed layer to my mapfile. After adding it and trying to view my mapfile, apache ran away with all the systems memory until it crashed. I have no idea what I did wrong... I downloaded all of the tiger2004 shapefiles and unzipped them into a single directory. In that directory, I did: tile4ms data_dir.in tiger-roads shptree tiger-roads cat data_dir.in | xargs-n 1 shptree I added this layer: LAYER NAME tiger_streets STATUS off TYPE line TILEINDEX tiger-roads PROJECTION "proj=latlong" END CLASSITEM "CFCC" CLASS NAME "Interstate" EXPRESSION ([CFCC]=A15) COLOR 200 0 0 SYMBOL 'interstate' END END When I tried to view the map it blew up. The server I was using happened to also be our mailserver... so causing this machine to go unstable and require a reboot is a very bad thing and thus i'm being forced to move my mapserver work to another server. I've been googling all morning but I can't seem to find the debian package for mapserver 4.4.1 again... anybody know where I can find that? I wish I could remember where I got it last time. Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Fri Mar 18 08:25:29 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 18 Mar 2005 11:25:29 -0500 Subject: tileindexed layer crashing... Message-ID: First, some nit-picking. I presume you did something first to create a "data_dir.in" file, right? And there's a space between xargs and "-n", correct? The latter shouldn't make much difference. Yea, there is a space between xargs and -n, i mistyped in the email. The data_dir.in file was just a listing of all the tiger data files, created with "find /homedir/tiger -name "*.shp" > data_dir.in". Does your tiger-roads shapefile look OK? Do the filesizes look plausible? Can you view it in a GIS application (it's just a regular shapefile)? The file sizes looked reasonable to me... but I don't really know how big they should be. I don't have any other GIS applications atm, but I could try to download something to try to view the shapefile. As a diagnostic step, I'd suggest changing TILEINDEX to DATA in your LAYER definition, and the TYPE to POLYGON. The tile index is a polygon shapefile with a bunch of rectangles, each describing the bounding box of one input file. Use this technique to see if the tile index file itself looks reasonable. If it does, then your problem's likely to be with your TIGER data - otherwise, the TILEINDEX file needs fixing. I am not entirely sure what you mean here ... how to diagnose the tile index. I actually thought I had to use TILEINDEX to view a shapefile created with this method. If I can just use it like any other shapefile I probably don't even need to tile it... i'm not trying to do roads for the entire country or anything, though in theory the tiling is probably better. When I first added the layer, my map was in a zoomed in state and it seemed ok... it was when I hit the "recenter" button and it tried to go back to view the entire area that it blew up. Perhaps tiling isn't so good for that situation since i'm looking at the whole area anyway... -Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Fri Mar 18 08:36:38 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 18 Mar 2005 09:36:38 -0700 Subject: tileindexed layer crashing... Message-ID: Jeff, I don't see a MAX/MIN scale statment. You sure your machine just couldn't handle it? Reading and displaying everything in the tiger shapefiles might be too much for your machine, but I'm just speculating. It would be helpful to know if you can draw individual layers from the shapefiles without the tile index. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Friday, March 18, 2005 8:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] tileindexed layer crashing... This morning I tried to add a tileindexed layer to my mapfile. After adding it and trying to view my mapfile, apache ran away with all the systems memory until it crashed. I have no idea what I did wrong... I downloaded all of the tiger2004 shapefiles and unzipped them into a single directory. In that directory, I did: tile4ms data_dir.in tiger-roads shptree tiger-roads cat data_dir.in | xargs-n 1 shptree I added this layer: LAYER NAME tiger_streets STATUS off TYPE line TILEINDEX tiger-roads PROJECTION "proj=latlong" END CLASSITEM "CFCC" CLASS NAME "Interstate" EXPRESSION ([CFCC]=A15) COLOR 200 0 0 SYMBOL 'interstate' END END When I tried to view the map it blew up. The server I was using happened to also be our mailserver... so causing this machine to go unstable and require a reboot is a very bad thing and thus i'm being forced to move my mapserver work to another server. I've been googling all morning but I can't seem to find the debian package for mapserver 4.4.1 again... anybody know where I can find that? I wish I could remember where I got it last time. Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Fri Mar 18 08:38:03 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 18 Mar 2005 11:38:03 -0500 Subject: tileindexed layer crashing... Message-ID: Jeff - Thanks for the confirmation. And thank you for adding that very valuable information you didn't mention the first time . If your map worked fine the first time, ignore my entire previous email - your index and shapefiles seem to be working fine. If you have no MINSCALE or MAXSCALE settings on your layers, is your attempt to view "the entire area" really a map request to draw every single road in the United States? You should not be surprised if that effort is a little overwhelming for your server. If you can scroll around at your original zoom level and see streets correctly, then your setup should be fine and you need to move on to wisely classifying and selecting your data so each map draw uses a reasonable and appropriate subset of your data. You're misunderstanding my comments about your TILEINDEX. Each of your individual TIGER files is a shapefile. A TILEINDEX file is ANOTHER shapefile made up of rectangular polygons, each describing the extent of one of your TIGER files. The index is used to quickly determine which source TIGER files overlap the requested output map area at all - those are the only ones that need to be opened to try to draw the final map. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Friday, March 18, 2005 11:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tileindexed layer crashing... First, some nit-picking. I presume you did something first to create a "data_dir.in" file, right? And there's a space between xargs and "-n", correct? The latter shouldn't make much difference. Yea, there is a space between xargs and -n, i mistyped in the email. The data_dir.in file was just a listing of all the tiger data files, created with "find /homedir/tiger -name "*.shp" > data_dir.in". Does your tiger-roads shapefile look OK? Do the filesizes look plausible? Can you view it in a GIS application (it's just a regular shapefile)? The file sizes looked reasonable to me... but I don't really know how big they should be. I don't have any other GIS applications atm, but I could try to download something to try to view the shapefile. As a diagnostic step, I'd suggest changing TILEINDEX to DATA in your LAYER definition, and the TYPE to POLYGON. The tile index is a polygon shapefile with a bunch of rectangles, each describing the bounding box of one input file. Use this technique to see if the tile index file itself looks reasonable. If it does, then your problem's likely to be with your TIGER data - otherwise, the TILEINDEX file needs fixing. I am not entirely sure what you mean here ... how to diagnose the tile index. I actually thought I had to use TILEINDEX to view a shapefile created with this method. If I can just use it like any other shapefile I probably don't even need to tile it... i'm not trying to do roads for the entire country or anything, though in theory the tiling is probably better. When I first added the layer, my map was in a zoomed in state and it seemed ok... it was when I hit the "recenter" button and it tried to go back to view the entire area that it blew up. Perhaps tiling isn't so good for that situation since i'm looking at the whole area anyway... -Jeff From fsimon at UNIVALI.BR Fri Mar 18 08:42:59 2005 From: fsimon at UNIVALI.BR (Fernando S.) Date: Fri, 18 Mar 2005 16:42:59 +0000 Subject: crash on QueryByRect/QueryByAttr on Oracle Layer (mapserver compiled by me) In-Reply-To: <012901c52bcf$2a7766e0$2d01a8c0@newsviluppo> Message-ID: Hi Francesco, If you used in your binaries the cvs version of maporaclespatial.c or mapserver can be instable. The problems about the three fields in data paramater I will check the code to find the problem, I believe that can be a problem in the core of the maporaclespatial.c. Can you send your data definition that generate the error? Thanks for your replay. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Francesco Sozzi wrote: > Hi all, > > If I use precompiled binaries for Win32/Oracle I have no problem. > If I try to compile myself everything still works properly (I can > render, zoom, pan, querying, ecc...), but if I query (es. > QueryByRect) Oracle Spatial layer, mapserver crashes. > > Another sympton: I have no problem if on DATA attribute I list only > key and geometry fields. If I list some other fields, mapserver > (compiled by me) crashes. > > There is something on how I compiled my binaries. > Anybody has already experimented the same problem?... > > Bets regards > > Francesco From bartvde at XS4ALL.NL Fri Mar 18 08:55:38 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 18 Mar 2005 17:55:38 +0100 Subject: crash on QueryByRect/QueryByAttr on Oracle Layer (mapserver compiled by me) In-Reply-To: <012901c52bcf$2a7766e0$2d01a8c0@newsviluppo> Message-ID: Hi Francesco, > Another sympton: I have no problem if on DATA attribute I list only key > and geometry fields. If I list some other fields, mapserver (compiled by > me) crashes. I had the same problem. When I recompiled with VC7.1 instead of VC6 everything worked fine. Which MSVC version are you using? Best regards, Bart On Fri, 18 Mar 2005 16:28:41 +0100, Francesco Sozzi wrote: > Hi all, > > If I use precompiled binaries for Win32/Oracle I have no problem. > If I try to compile myself everything still works properly (I can > render, zoom, pan, querying, ecc...), but if I query (es. QueryByRect) > Oracle Spatial layer, mapserver crashes. > > Another sympton: I have no problem if on DATA attribute I list only key > and geometry fields. If I list some other fields, mapserver (compiled by > me) crashes. > > There is something on how I compiled my binaries. > Anybody has already experimented the same problem?... > > Bets regards > > Francesco -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From jdport at VERITIME.COM Fri Mar 18 09:30:06 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 18 Mar 2005 12:30:06 -0500 Subject: tileindexed layer crashing... Message-ID: Sorry for not mentioning that it didn't have a problem when I first reloaded the map. There were no roads visible in that view, and so I thought that was probably why it was ok until I zoomed out again. I did forget to put in a min/max scale line in there... but I wouldn't have thought that would matter as I was only showing roads that matched the expression [CFCC] = A15... and it is only for a selected area of the US, not the whole country. My map is of the NE part of the US basically from Pennsylvania to Maine. As I said when I originally added the layer, my map was in a zoomed in state and there were no roads visible (i'm not sure whether there should have been or not).. I then zoomed to the full extent of the area so that I could see if any roads were being drawn at all. I never tried panning or scrolling around to see if they were drawing because at that point I had the crash and I won't really be able to experiment any more until i'm able to get mapserver installed someplace where I can't cause any problems if things go badly. -Jeff ----- Original Message ----- From: "Ed McNierney" To: "Jeff Portwine" ; Sent: Friday, March 18, 2005 11:38 AM Subject: RE: [UMN_MAPSERVER-USERS] tileindexed layer crashing... Jeff - Thanks for the confirmation. And thank you for adding that very valuable information you didn't mention the first time . If your map worked fine the first time, ignore my entire previous email - your index and shapefiles seem to be working fine. If you have no MINSCALE or MAXSCALE settings on your layers, is your attempt to view "the entire area" really a map request to draw every single road in the United States? You should not be surprised if that effort is a little overwhelming for your server. If you can scroll around at your original zoom level and see streets correctly, then your setup should be fine and you need to move on to wisely classifying and selecting your data so each map draw uses a reasonable and appropriate subset of your data. You're misunderstanding my comments about your TILEINDEX. Each of your individual TIGER files is a shapefile. A TILEINDEX file is ANOTHER shapefile made up of rectangular polygons, each describing the extent of one of your TIGER files. The index is used to quickly determine which source TIGER files overlap the requested output map area at all - those are the only ones that need to be opened to try to draw the final map. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Friday, March 18, 2005 11:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tileindexed layer crashing... First, some nit-picking. I presume you did something first to create a "data_dir.in" file, right? And there's a space between xargs and "-n", correct? The latter shouldn't make much difference. Yea, there is a space between xargs and -n, i mistyped in the email. The data_dir.in file was just a listing of all the tiger data files, created with "find /homedir/tiger -name "*.shp" > data_dir.in". Does your tiger-roads shapefile look OK? Do the filesizes look plausible? Can you view it in a GIS application (it's just a regular shapefile)? The file sizes looked reasonable to me... but I don't really know how big they should be. I don't have any other GIS applications atm, but I could try to download something to try to view the shapefile. As a diagnostic step, I'd suggest changing TILEINDEX to DATA in your LAYER definition, and the TYPE to POLYGON. The tile index is a polygon shapefile with a bunch of rectangles, each describing the bounding box of one input file. Use this technique to see if the tile index file itself looks reasonable. If it does, then your problem's likely to be with your TIGER data - otherwise, the TILEINDEX file needs fixing. I am not entirely sure what you mean here ... how to diagnose the tile index. I actually thought I had to use TILEINDEX to view a shapefile created with this method. If I can just use it like any other shapefile I probably don't even need to tile it... i'm not trying to do roads for the entire country or anything, though in theory the tiling is probably better. When I first added the layer, my map was in a zoomed in state and it seemed ok... it was when I hit the "recenter" button and it tried to go back to view the entire area that it blew up. Perhaps tiling isn't so good for that situation since i'm looking at the whole area anyway... -Jeff From ed at TOPOZONE.COM Fri Mar 18 09:46:37 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 18 Mar 2005 12:46:37 -0500 Subject: tileindexed layer crashing... Message-ID: Jeff - I would get rid of the expression classification for now. Try to get one thing working at a time - if you do three things and once and it breaks, it's hard to tell where the problem is. However, even if there were no roads visible in your first map, MapServer didn't know that unless it processed your layer. It's reasonable to think that MapServer worked correctly. Your TILEINDEX helped MapServer select only the TIGER file(s) it needed to read, and ignore the rest. Please realize that if you use an EXPRESSION to select features, MapServer still has to read *every single feature* in the input files and test them against your expression. If you try to do that for the whole Northeast, MapServer is still being asked to read *every* road in those states even if it ends up selecting and drawing only two of them. Once you get things working, you should look at what you're asking MapServer to do. If you are going to be only looking at a small subset of roads that match certain attributes, don't do that on every map request - preprocess your data into separate files, selecting out the parts you want. It doesn't make sense to compel MapServer to repeatedly parse input data you don't want to see! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: Jeff Portwine [mailto:jdport at veritime.com] Sent: Friday, March 18, 2005 12:30 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tileindexed layer crashing... Sorry for not mentioning that it didn't have a problem when I first reloaded the map. There were no roads visible in that view, and so I thought that was probably why it was ok until I zoomed out again. I did forget to put in a min/max scale line in there... but I wouldn't have thought that would matter as I was only showing roads that matched the expression [CFCC] = A15... and it is only for a selected area of the US, not the whole country. My map is of the NE part of the US basically from Pennsylvania to Maine. As I said when I originally added the layer, my map was in a zoomed in state and there were no roads visible (i'm not sure whether there should have been or not).. I then zoomed to the full extent of the area so that I could see if any roads were being drawn at all. I never tried panning or scrolling around to see if they were drawing because at that point I had the crash and I won't really be able to experiment any more until i'm able to get mapserver installed someplace where I can't cause any problems if things go badly. -Jeff ----- Original Message ----- From: "Ed McNierney" To: "Jeff Portwine" ; Sent: Friday, March 18, 2005 11:38 AM Subject: RE: [UMN_MAPSERVER-USERS] tileindexed layer crashing... Jeff - Thanks for the confirmation. And thank you for adding that very valuable information you didn't mention the first time . If your map worked fine the first time, ignore my entire previous email - your index and shapefiles seem to be working fine. If you have no MINSCALE or MAXSCALE settings on your layers, is your attempt to view "the entire area" really a map request to draw every single road in the United States? You should not be surprised if that effort is a little overwhelming for your server. If you can scroll around at your original zoom level and see streets correctly, then your setup should be fine and you need to move on to wisely classifying and selecting your data so each map draw uses a reasonable and appropriate subset of your data. You're misunderstanding my comments about your TILEINDEX. Each of your individual TIGER files is a shapefile. A TILEINDEX file is ANOTHER shapefile made up of rectangular polygons, each describing the extent of one of your TIGER files. The index is used to quickly determine which source TIGER files overlap the requested output map area at all - those are the only ones that need to be opened to try to draw the final map. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Friday, March 18, 2005 11:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tileindexed layer crashing... First, some nit-picking. I presume you did something first to create a "data_dir.in" file, right? And there's a space between xargs and "-n", correct? The latter shouldn't make much difference. Yea, there is a space between xargs and -n, i mistyped in the email. The data_dir.in file was just a listing of all the tiger data files, created with "find /homedir/tiger -name "*.shp" > data_dir.in". Does your tiger-roads shapefile look OK? Do the filesizes look plausible? Can you view it in a GIS application (it's just a regular shapefile)? The file sizes looked reasonable to me... but I don't really know how big they should be. I don't have any other GIS applications atm, but I could try to download something to try to view the shapefile. As a diagnostic step, I'd suggest changing TILEINDEX to DATA in your LAYER definition, and the TYPE to POLYGON. The tile index is a polygon shapefile with a bunch of rectangles, each describing the bounding box of one input file. Use this technique to see if the tile index file itself looks reasonable. If it does, then your problem's likely to be with your TIGER data - otherwise, the TILEINDEX file needs fixing. I am not entirely sure what you mean here ... how to diagnose the tile index. I actually thought I had to use TILEINDEX to view a shapefile created with this method. If I can just use it like any other shapefile I probably don't even need to tile it... i'm not trying to do roads for the entire country or anything, though in theory the tiling is probably better. When I first added the layer, my map was in a zoomed in state and it seemed ok... it was when I hit the "recenter" button and it tried to go back to view the entire area that it blew up. Perhaps tiling isn't so good for that situation since i'm looking at the whole area anyway... -Jeff From jdport at VERITIME.COM Fri Mar 18 09:58:31 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 18 Mar 2005 12:58:31 -0500 Subject: tileindexed layer crashing... Message-ID: Please realize that if you use an EXPRESSION to select features, MapServer still has to read *every single feature* in the input files and test them against your expression. If you try to do that for the whole Northeast, MapServer is still being asked to read *every* road in those states even if it ends up selecting and drawing only two of them. Yes this makes sense now that you say this... I could preprocess out a lot of the minor roads, trails, etc but really I do want the majority of the roads to be present... Just I wanted to be able to show only the major highways while zoomed out and then start showing lesser roads as I zoomed in closer. I'm not entirely sure how to do the preprocessing (I had no GIS knowledge or experience at all before getting involved with mapserver... I've learned a lot but have a long ways to go). I'll worry about that later though.. now it's on to prepping another server for mapserver so I can get back to work on this. Thanks for all the comments and advice. -Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From tinmean at YAHOO.COM.TW Fri Mar 18 10:02:49 2005 From: tinmean at YAHOO.COM.TW (Tinmean K. H. Liu) Date: Sat, 19 Mar 2005 02:02:49 +0800 Subject: About mapserver 4.4.1 and Chinese problem In-Reply-To: <20050318150255.89588.qmail@web30508.mail.mud.yahoo.com> Message-ID: Basa and Wang, Thank you very much. I solve the problem (I am sorry for the silly mistake). And I will apply it to my php-mapscript. It should be modified . I hope it also works. Thanks again. --Tinmean K. H. Liu >Hello, > >I agree with Linagxu, it seems that you have forgotten >to create a fontset file. Here is what you should do: > >1. create a file called fontset.lst in the same >directory as your map file. > >2. add this to the fontset.lst (for fedora, check to >make sure that the path is correct) > >bkai00mp /usr/share/fonts/zh_TW/TrueType/bkai00mp.ttf > >3. add this to your map file: > >FONTSET fontset.lst > > > >Hope this works for you. > >mario >yokohama, japan > > >--- "Tinmean K. H. Liu" wrote: > > >>Hi, >> Thanks for your response. >> >> The question is no solved. >> I post the question on your discussion board. >> >> About my question is about the "Label", I make >>a simple example >>here: http://140.113.223.74/hc_river/test.php >> >> Comparing the different mapfiles, the first one >>with labelitem >>cannot be showed out. >> >> Thank you, anyway. >> >>--Tinmean K. H. Liu >> >> >> >>>Hi, >>> Have you set the fontset variable and copy >>> >>> >>the font to the right place >> >> >>>if you are sured your code right? >>> And if you can read chinese,welcome to >>>http://www.cngis.org/bbs/forumdisplay.php?f=83 >>> >>> >>discuss the related topic. >> >> >>>Liangxu Wang >>> >>> >>> >>> >>> >>>>Hi, >>>> >>>> I installed mapserver 4.4.1 by using apt under >>>> >>>> >>Fedora Core 2. >> >> >>>> From the "what's new" and mapfile reference, I >>>> >>>> >>use >> >> >>>>"encoding" in my mapfile. >>>> It looks like: >>>> >>>>LAYER >>>> NAME Hchc_river >>>> TYPE LINE >>>> STATUS ON >>>> DATA Hchc_river >>>> LabelItem "NAME" >>>> #CLASSITEM "NO" >>>> CLASS >>>> NAME "Hchc_river" >>>> COLOR 0 0 255 >>>> LABEL >>>> COLOR 0 0 0 >>>> TYPE TRUETYPE >>>> FONT moe_kai >>>> SIZE 8 >>>> POSITION AUTO >>>> PARTIALS FALSE >>>> OUTLINECOLOR 255 255 255 >>>> ENCODING BIG5 >>>> END >>>> END >>>> TOLERANCE 5 >>>>END >>>> >>>> And I have an example in my site: >>>>http://140.113.223.74/hc_river/hello.phtml >>>> >>>> The right code(BIG5), the right font, but >>>> >>>> >>failed. >> >> >>>> Thanks for any response. >>>> >>>>Tinmean K. H. Liu >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> > > > >__________________________________ >Do you Yahoo!? >Yahoo! Small Business - Try our new resources site! >http://smallbusiness.yahoo.com/resources/ > > > From ealpert at DIGITALGLOBE.COM Fri Mar 18 10:08:40 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 18 Mar 2005 11:08:40 -0700 Subject: tileindexed layer crashing... Message-ID: Yep it's very important if you're using shapefiles to have one class of feature per shapefile. However if you're putting these in a DB it makes sense to combine them, provide appropriate indexes and leverage the spatial indexing. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Friday, March 18, 2005 10:47 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tileindexed layer crashing... Jeff - I would get rid of the expression classification for now. Try to get one thing working at a time - if you do three things and once and it breaks, it's hard to tell where the problem is. However, even if there were no roads visible in your first map, MapServer didn't know that unless it processed your layer. It's reasonable to think that MapServer worked correctly. Your TILEINDEX helped MapServer select only the TIGER file(s) it needed to read, and ignore the rest. Please realize that if you use an EXPRESSION to select features, MapServer still has to read *every single feature* in the input files and test them against your expression. If you try to do that for the whole Northeast, MapServer is still being asked to read *every* road in those states even if it ends up selecting and drawing only two of them. Once you get things working, you should look at what you're asking MapServer to do. If you are going to be only looking at a small subset of roads that match certain attributes, don't do that on every map request - preprocess your data into separate files, selecting out the parts you want. It doesn't make sense to compel MapServer to repeatedly parse input data you don't want to see! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: Jeff Portwine [mailto:jdport at veritime.com] Sent: Friday, March 18, 2005 12:30 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tileindexed layer crashing... Sorry for not mentioning that it didn't have a problem when I first reloaded the map. There were no roads visible in that view, and so I thought that was probably why it was ok until I zoomed out again. I did forget to put in a min/max scale line in there... but I wouldn't have thought that would matter as I was only showing roads that matched the expression [CFCC] = A15... and it is only for a selected area of the US, not the whole country. My map is of the NE part of the US basically from Pennsylvania to Maine. As I said when I originally added the layer, my map was in a zoomed in state and there were no roads visible (i'm not sure whether there should have been or not).. I then zoomed to the full extent of the area so that I could see if any roads were being drawn at all. I never tried panning or scrolling around to see if they were drawing because at that point I had the crash and I won't really be able to experiment any more until i'm able to get mapserver installed someplace where I can't cause any problems if things go badly. -Jeff ----- Original Message ----- From: "Ed McNierney" To: "Jeff Portwine" ; Sent: Friday, March 18, 2005 11:38 AM Subject: RE: [UMN_MAPSERVER-USERS] tileindexed layer crashing... Jeff - Thanks for the confirmation. And thank you for adding that very valuable information you didn't mention the first time . If your map worked fine the first time, ignore my entire previous email - your index and shapefiles seem to be working fine. If you have no MINSCALE or MAXSCALE settings on your layers, is your attempt to view "the entire area" really a map request to draw every single road in the United States? You should not be surprised if that effort is a little overwhelming for your server. If you can scroll around at your original zoom level and see streets correctly, then your setup should be fine and you need to move on to wisely classifying and selecting your data so each map draw uses a reasonable and appropriate subset of your data. You're misunderstanding my comments about your TILEINDEX. Each of your individual TIGER files is a shapefile. A TILEINDEX file is ANOTHER shapefile made up of rectangular polygons, each describing the extent of one of your TIGER files. The index is used to quickly determine which source TIGER files overlap the requested output map area at all - those are the only ones that need to be opened to try to draw the final map. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Friday, March 18, 2005 11:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tileindexed layer crashing... First, some nit-picking. I presume you did something first to create a "data_dir.in" file, right? And there's a space between xargs and "-n", correct? The latter shouldn't make much difference. Yea, there is a space between xargs and -n, i mistyped in the email. The data_dir.in file was just a listing of all the tiger data files, created with "find /homedir/tiger -name "*.shp" > data_dir.in". Does your tiger-roads shapefile look OK? Do the filesizes look plausible? Can you view it in a GIS application (it's just a regular shapefile)? The file sizes looked reasonable to me... but I don't really know how big they should be. I don't have any other GIS applications atm, but I could try to download something to try to view the shapefile. As a diagnostic step, I'd suggest changing TILEINDEX to DATA in your LAYER definition, and the TYPE to POLYGON. The tile index is a polygon shapefile with a bunch of rectangles, each describing the bounding box of one input file. Use this technique to see if the tile index file itself looks reasonable. If it does, then your problem's likely to be with your TIGER data - otherwise, the TILEINDEX file needs fixing. I am not entirely sure what you mean here ... how to diagnose the tile index. I actually thought I had to use TILEINDEX to view a shapefile created with this method. If I can just use it like any other shapefile I probably don't even need to tile it... i'm not trying to do roads for the entire country or anything, though in theory the tiling is probably better. When I first added the layer, my map was in a zoomed in state and it seemed ok... it was when I hit the "recenter" button and it tried to go back to view the entire area that it blew up. Perhaps tiling isn't so good for that situation since i'm looking at the whole area anyway... -Jeff From jdport at VERITIME.COM Fri Mar 18 10:47:38 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 18 Mar 2005 13:47:38 -0500 Subject: tileindexed layer crashing... Message-ID: So far I have not used any spatial database like postgis or anything like that... and in fact I was trying to avoid that because it's another level of complexity adding to my learning curve here. I've just been using whatever shapefiles I could find on the internet that would suit my neads and displaying them and up until now that has worked just fine... Then I plot points on the map (representing customers) by doing a query on our customer tables and getting the latitudes and longitudes of the results of hte query and projecting those points onto the map... I'm not sure that I'd benefit from the complexity of something like postGIS even though i'm sure it would technically be "better". I'll never be getting a ton of hits on my mapserver app though so I don't think it's too important. ----- Original Message ----- From: "Ethan Alpert" To: Sent: Friday, March 18, 2005 1:08 PM Subject: Re: [UMN_MAPSERVER-USERS] tileindexed layer crashing... Yep it's very important if you're using shapefiles to have one class of feature per shapefile. However if you're putting these in a DB it makes sense to combine them, provide appropriate indexes and leverage the spatial indexing. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Friday, March 18, 2005 10:47 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tileindexed layer crashing... Jeff - I would get rid of the expression classification for now. Try to get one thing working at a time - if you do three things and once and it breaks, it's hard to tell where the problem is. However, even if there were no roads visible in your first map, MapServer didn't know that unless it processed your layer. It's reasonable to think that MapServer worked correctly. Your TILEINDEX helped MapServer select only the TIGER file(s) it needed to read, and ignore the rest. Please realize that if you use an EXPRESSION to select features, MapServer still has to read *every single feature* in the input files and test them against your expression. If you try to do that for the whole Northeast, MapServer is still being asked to read *every* road in those states even if it ends up selecting and drawing only two of them. Once you get things working, you should look at what you're asking MapServer to do. If you are going to be only looking at a small subset of roads that match certain attributes, don't do that on every map request - preprocess your data into separate files, selecting out the parts you want. It doesn't make sense to compel MapServer to repeatedly parse input data you don't want to see! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: Jeff Portwine [mailto:jdport at veritime.com] Sent: Friday, March 18, 2005 12:30 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tileindexed layer crashing... Sorry for not mentioning that it didn't have a problem when I first reloaded the map. There were no roads visible in that view, and so I thought that was probably why it was ok until I zoomed out again. I did forget to put in a min/max scale line in there... but I wouldn't have thought that would matter as I was only showing roads that matched the expression [CFCC] = A15... and it is only for a selected area of the US, not the whole country. My map is of the NE part of the US basically from Pennsylvania to Maine. As I said when I originally added the layer, my map was in a zoomed in state and there were no roads visible (i'm not sure whether there should have been or not).. I then zoomed to the full extent of the area so that I could see if any roads were being drawn at all. I never tried panning or scrolling around to see if they were drawing because at that point I had the crash and I won't really be able to experiment any more until i'm able to get mapserver installed someplace where I can't cause any problems if things go badly. -Jeff ----- Original Message ----- From: "Ed McNierney" To: "Jeff Portwine" ; Sent: Friday, March 18, 2005 11:38 AM Subject: RE: [UMN_MAPSERVER-USERS] tileindexed layer crashing... Jeff - Thanks for the confirmation. And thank you for adding that very valuable information you didn't mention the first time . If your map worked fine the first time, ignore my entire previous email - your index and shapefiles seem to be working fine. If you have no MINSCALE or MAXSCALE settings on your layers, is your attempt to view "the entire area" really a map request to draw every single road in the United States? You should not be surprised if that effort is a little overwhelming for your server. If you can scroll around at your original zoom level and see streets correctly, then your setup should be fine and you need to move on to wisely classifying and selecting your data so each map draw uses a reasonable and appropriate subset of your data. You're misunderstanding my comments about your TILEINDEX. Each of your individual TIGER files is a shapefile. A TILEINDEX file is ANOTHER shapefile made up of rectangular polygons, each describing the extent of one of your TIGER files. The index is used to quickly determine which source TIGER files overlap the requested output map area at all - those are the only ones that need to be opened to try to draw the final map. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Friday, March 18, 2005 11:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tileindexed layer crashing... First, some nit-picking. I presume you did something first to create a "data_dir.in" file, right? And there's a space between xargs and "-n", correct? The latter shouldn't make much difference. Yea, there is a space between xargs and -n, i mistyped in the email. The data_dir.in file was just a listing of all the tiger data files, created with "find /homedir/tiger -name "*.shp" > data_dir.in". Does your tiger-roads shapefile look OK? Do the filesizes look plausible? Can you view it in a GIS application (it's just a regular shapefile)? The file sizes looked reasonable to me... but I don't really know how big they should be. I don't have any other GIS applications atm, but I could try to download something to try to view the shapefile. As a diagnostic step, I'd suggest changing TILEINDEX to DATA in your LAYER definition, and the TYPE to POLYGON. The tile index is a polygon shapefile with a bunch of rectangles, each describing the bounding box of one input file. Use this technique to see if the tile index file itself looks reasonable. If it does, then your problem's likely to be with your TIGER data - otherwise, the TILEINDEX file needs fixing. I am not entirely sure what you mean here ... how to diagnose the tile index. I actually thought I had to use TILEINDEX to view a shapefile created with this method. If I can just use it like any other shapefile I probably don't even need to tile it... i'm not trying to do roads for the entire country or anything, though in theory the tiling is probably better. When I first added the layer, my map was in a zoomed in state and it seemed ok... it was when I hit the "recenter" button and it tried to go back to view the entire area that it blew up. Perhaps tiling isn't so good for that situation since i'm looking at the whole area anyway... -Jeff From saintsjd at YAHOO.COM Fri Mar 18 12:34:38 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Fri, 18 Mar 2005 12:34:38 -0800 Subject: mapserver gdaltileindex: Unable to access file Message-ID: I have created a tile index of a set of rasters. When trying to display the layer as a tileindex in mapserver I get the error: msDrawRaster(): Unable to access file. My tileindex file is one directory above my directory full of rasters. The location attribute of my tileindex is a relative path to the folder that contains my rasters: OGRFeature(dcorthoindex):153 location (String) = ./outjpg/315000_430628.jpg Directory permissions are all ok. Should I change the "location" to a full path? Is it best to place the tile index in the same folder as the rasters? Thanks Jon From fwarmerdam at GMAIL.COM Fri Mar 18 12:41:42 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 18 Mar 2005 15:41:42 -0500 Subject: mapserver gdaltileindex: Unable to access file In-Reply-To: <20050318203438.39709.qmail@web53908.mail.yahoo.com> Message-ID: On Fri, 18 Mar 2005 12:34:38 -0800, Jon Saints wrote: > I have created a tile index of a set of rasters. When > trying to display the layer as a tileindex in > mapserver I get the error: > > msDrawRaster(): Unable to access file. > > My tileindex file is one directory above my directory > full of rasters. The location attribute of my > tileindex is a relative path to the folder that > contains my rasters: > OGRFeature(dcorthoindex):153 > location (String) = ./outjpg/315000_430628.jpg > > Directory permissions are all ok. Should I change the > "location" to a full path? Is it best to place the > tile index in the same folder as the rasters? Jon, I would suggest using absolute paths, though I thought this approach was supposed to work (having paths relative to the tileindex file). If you find it is a path issue, and can prepare a complete test case demonstrating the problem, then feel free to file a bug report about it. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From gsw at GLOBEXPLORER.COM Fri Mar 18 14:10:42 2005 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Fri, 18 Mar 2005 14:10:42 -0800 Subject: [postgis-users] Commercial/Large datasets MapServer/PostGIS samplesites Message-ID: Eduardo, A belated response ... Our company uses postGIS for storing data about our imagery (about 18 terabytes of image data in some 879000 separate files, growing at a rate of almost 2 terabytes a week currently), and for a fairly substantive database of vector data (detailed US streets, detailed parcels for various counties in the US, watersheds and stream and lake data for the country, flood data, etc.). Both image and vector will grow substantially as we add more data outside of the US. Currently the Mapserver implementations are limited to a few of our customers, but in the next few months we'll be using Mapserver to serve up imagery with vector data to the general public (currently the equivalent service is running over 250k hits a day). The new service probably won't be quite that heavy at first. We are currently doing load testing and related work. All of this used to be Informix based; cost was the main reason for migrating to Open Source. Not sure if this is heavy enough use to reassure your customer or not. Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: Eduardo Patto Kanegae [mailto:lists at webmapit.com.br] Sent: Thu 3/17/2005 7:24 AM To: MAPSERVER-USERS at LISTS.UMN.EDU; PostGIS Users Discussion Cc: Subject: [postgis-users] Commercial/Large datasets MapServer/PostGIS samplesites Hi folks, Here I am again trying to convince a traditional "$pay software" consumer to accept free software... :-) I'm looking for commercial websites or larget data set website to use as example for the power, and trust of MapServer and PostGIS features. Can anybody suggest one? Best. -- Eduardo Patto Kanegae Treinamento & Consultoria em UMN MapServer, PostGIS e FreeGIS Software http://www.webmapit.com.br Skype: eduardopattokanegae ICQ: 303747254 MSN: eduardo_patto~at~hotmail.com Phone: +55(16)9994-2928 ***Fim da Mensagem / End of Message *** _______________________________________________ postgis-users mailing list postgis-users at postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users !DSPAM:42399eb2117721770243958! From gmanepal at GMAIL.COM Fri Mar 18 14:22:31 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Fri, 18 Mar 2005 17:22:31 -0500 Subject: Application Data In-Reply-To: <423AB576.7030700@ccgis.de> Message-ID: Thanks a lot all of you for your help. I will work on it and soon let you know, what I experienced. On Fri, 18 Mar 2005 12:03:18 +0100, Arnulf Christl wrote: > Giridhar Manepalli wrote: > > Hello All, > > I would like to appreciate Bart who is on the list for helping me get > > in touch with some of the concepts of GIS and Mapserver. > > Bart should be awarded something on the OpenGeoSpatial. Its a pity he is > not coming! > > [...] > > Imagine that the above data is huge (as large as 100GB), so I need to > > dump this information to a database. > > The sheer size of the data is not a problem for either PostgreSQL or > PostGIS. But as Stephen and Brent suggest it *is* a problem to try start > optimizing and tuning the database with the full load. Start as > suggested with smaller sections. > > Be aware that when requesting such a large dataset it is important that > you know what functionality you want to use. We have learned a few weeks > ago that a feature request (WFS) can be a performance killer although > map requests (WMS) on the same MapServer and the database are perfectly > fast. > > > I would like to know, how to use this data from a table to Map it onto > > a MAPServer. > > One of many ways to do it: > - Upload CSV text file into the database > - Create new geometry column with AddGeometryColumn > - Write an SQL which combines and copies the x and y columns with > AddGeometryFromText into the new geometry column. > The SQL can be qute ugly depengding on how many intermediate steps you > need to put together the WKS string. > > if the the col 'objgeom' (TEXT) contains values like: "(7.15 55.8)" > update test set the_geom = GeometryFromText('POINT '|| objgeom || '"', 4326) > > if the the col 'objgeom' (TEXT) contains values like: "7.15 55.8" > without the brackets: > update test set the_geom = GeometryFromText('POINT ('|| objgeom || ')"', > 4326) > > Another way to do it: > Create a shape file from the data with somme other tool and load it into > PG/PostGIS using shp2pgsql. > > *** > > I just saw that Jim already pointed you to all the docs. One more thing: > Never forget to create a GIST index on the geometry column and vacuum > analyze the database to make it take effect. > > Best, Arnulf. > > -- > ------------------------ > Arnulf B. Christl > ------------------------ > http://www.ccgis.org > http://www.mapbender.org > ------------------------ > From gerry.creager at TAMU.EDU Fri Mar 18 17:17:54 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Fri, 18 Mar 2005 19:17:54 -0600 Subject: Rather off-topic data request Message-ID: A friend is looking for digitized data for some war-gaming. Specifically, he's looking for (WWII-era) 1:50,000 maps of Tunisia, El Alamein, Stalingrad. If I can get the maps, I can rescale as needed. Sorry for the cross-post, but these 2 groups represent the most likely folks I could think of to ask this! Regards, gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From mdieterich at GMAIL.COM Fri Mar 18 18:25:18 2005 From: mdieterich at GMAIL.COM (Mark Dieterich) Date: Fri, 18 Mar 2005 21:25:18 -0500 Subject: tileindexed layer crashing... In-Reply-To: <007001c52bd0$e8433e00$1bf2fbd0@solo> Message-ID: Jeff/Ed, I wonder if I could leverage some of your knowledge on a problem I'm having. I'm trying to accomplish something similar to what Jeff is doing, but have't made it quite as far. I downloaded a bunch of tiger files, and ran: * find . -name "*.lka" > roads.txt * tile4ms roads.txt roads which generated the roads.qix, roads.shp, roads.shx. Looking at the roads.shp with ogrinfo produces what I think are reasonable results. I can load the individual shapfiles which were included in the index just fine with mapserver. However, when I go to load the tileindex into mapserver, it returns: msDrawMap(): Image handling error. Failed to draw layer named 'roads'. msTiledSHPOpenFile(): SDE error. Tileindex layer must be a shapefile. I'm certain there is something wrong with my mapfile, but I just can't put my finger on it. At the moment I have: MAP IMAGETYPE PNG EXTENT -71.352597 41.638137 -71.226191 41.774801 SIZE 1024 768 SHAPEPATH /var/www/data/maps/ IMAGECOLOR 255 255 255 LAYER NAME roads TILEINDEX roads STATUS DEFAULT TYPE LINE CLASS COLOR 150 150 150 END END END Any help debugging this would be greatly appreciated. Thanks! Mark From mdieterich at GMAIL.COM Fri Mar 18 18:29:16 2005 From: mdieterich at GMAIL.COM (Mark Dieterich) Date: Fri, 18 Mar 2005 21:29:16 -0500 Subject: tileindexed layer crashing... In-Reply-To: <423B8D8E.6070709@gmail.com> Message-ID: So two seconds after I finished typing up this message, I wondered whether having the the NAME field and the TILEINDEX field within a LAYER have the same value was causing problems. It appears to be the problem. Once I renamed the NAME field, I got a map. Did I just miss this in the doc? Thanks, Mark From john.hagstrand at INTERAGERESEARCH.COM Fri Mar 18 22:10:08 2005 From: john.hagstrand at INTERAGERESEARCH.COM (John Hagstrand) Date: Sat, 19 Mar 2005 00:10:08 -0600 Subject: upside down labels Message-ID: Hi Andy, To answer your question, this is the label statement. LABEL PARTIALS FALSE TYPE TRUETYPE FONT ARIAL COLOR 0 0 0 SIZE 7 ANGLE AUTO POSITION AUTO MINDISTANCE 300 END And here is the URL again. http://www.westportnow.com/realestate/map.php?irn=41.134325436851&irs=41.119548563149&ire=-73.309842191861&irw=-73.324483808139&iract=zoomout&irsacct=10283 For this URL, with these explicit boundaries, the same 5 out of 48 labels are always upside down. But, if you pan to the left a quarter-inch, then some of these 5 might be right-side up and a different set of labels will be upside down. John From lucamarle at GMAIL.COM Fri Mar 18 23:23:10 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Sat, 19 Mar 2005 07:23:10 +0000 Subject: Problem fetching wms.jpl.nasa.gov/wms images Message-ID: Hi list, I'd like to use aerial images. But I met the error below fetching the image, even on terrasip tutorial http://terrasip.gis.umn.edu/projects/tutorial/example1-6.html it happens the same. It seems a server problem but I guess, just a server configuration change. Does anybody have idea about fixing it? error: msDrawMap(): Image handling error. Failed to draw layer named 'LandSat'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. /data/tmp/1111215368157930.img.tmp is not an EPPL file. thanks a lot -- luca marletta icq: 70590647 From bpicinbono at WORLDONLINE.FR Sat Mar 19 02:29:03 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Sat, 19 Mar 2005 11:29:03 +0100 Subject: upside down labels In-Reply-To: Message-ID: Le samedi 19 Mars 2005 07:10, John Hagstrand a ?crit?: > Hi Andy, > > To answer your question, this is the label statement. > > LABEL > PARTIALS FALSE > TYPE TRUETYPE > FONT ARIAL > COLOR 0 0 0 > SIZE 7 > ANGLE AUTO > POSITION AUTO > MINDISTANCE 300 > END > > And here is the URL again. > > http://www.westportnow.com/realestate/map.php?irn=41.134325436851&irs=41.11 >9548563149&ire=-73.309842191861&irw=-73.324483808139&iract=zoomout&irsacct=1 >0283 > > For this URL, with these explicit boundaries, the same 5 out of 48 labels > are always upside down. > > But, if you pan to the left a quarter-inch, then some of these 5 might be > right-side up and a different set of labels will be upside down. > > John hi It seems that the labels that are upside down are this way to avoid collision with other ? I understand you don't want to force all labels to draw... but can you try to see if forced labels are upside down as well ? blaise From fwarmerdam at GMAIL.COM Sat Mar 19 06:42:14 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Sat, 19 Mar 2005 09:42:14 -0500 Subject: tileindexed layer crashing... In-Reply-To: <423B8E7C.9090509@gmail.com> Message-ID: On Fri, 18 Mar 2005 21:29:16 -0500, Mark Dieterich wrote: > So two seconds after I finished typing up this message, I wondered > whether having the the NAME field and the TILEINDEX field within a LAYER > have the same value was causing problems. It appears to be the problem. > Once I renamed the NAME field, I got a map. Did I just miss this in > the doc? Mark, For MapServer 4.4 I believe Steve added the ability for a layer to use another specialized "tileindex" layer as it's tileindex instead of just referring to an external file. I suspect he decides which case applies by searching for a layer with the same name as the "tileindex" argument which in your case recurses back to the same layer. This would explain your problems. I would suggest you file a bug report on this for Steve, with perhaps the suggestion that: o We not use SDE error for this particular error message. o that the search for a tileindex layer should exclude the current layer. o Perhaps something can be done to improve the error message to make it clear a tileindex layer is being used. I could be all wrong about what is going on of course. 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 woodbri at SWOODBRIDGE.COM Sat Mar 19 08:38:24 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 19 Mar 2005 11:38:24 -0500 Subject: upside down labels In-Reply-To: <200503191129.03499.bpicinbono@worldonline.fr> Message-ID: Regardless of the reason (forced or not) the math that computed the angle and tries to keep the label right side up is flawed and needs to be fixed. For any of the upside down labels you could flip them 180 degrees and they would fit in the same space. On 4.01, I was the only person that reported and complained about it, but it now seems to be a much more common problem. Maps with upside down labels do not show mapserver off in its best light. Also the code should be pretty localized so knowing where to look should not be a problem. As for localizing a trivial example, that is harder. I'm not sure how to identify just the objects required to render a map with the problem and to extract them into a small set of data files. -Steve blaise wrote: > Le samedi 19 Mars 2005 07:10, John Hagstrand a ?crit : > >>Hi Andy, >> >>To answer your question, this is the label statement. >> >> LABEL >> PARTIALS FALSE >> TYPE TRUETYPE >> FONT ARIAL >> COLOR 0 0 0 >> SIZE 7 >> ANGLE AUTO >> POSITION AUTO >> MINDISTANCE 300 >> END >> >>And here is the URL again. >> >>http://www.westportnow.com/realestate/map.php?irn=41.134325436851&irs=41.11 >>9548563149&ire=-73.309842191861&irw=-73.324483808139&iract=zoomout&irsacct=1 >>0283 >> >>For this URL, with these explicit boundaries, the same 5 out of 48 labels >>are always upside down. >> >>But, if you pan to the left a quarter-inch, then some of these 5 might be >>right-side up and a different set of labels will be upside down. >> >>John > > > hi > It seems that the labels that are upside down are this way to avoid collision > with other ? I understand you don't want to force all labels to draw... but > can you try to see if forced labels are upside down as well ? > blaise > From saintsjd at YAHOO.COM Sat Mar 19 10:01:18 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Sat, 19 Mar 2005 10:01:18 -0800 Subject: Fwd: Re: [UMN_MAPSERVER-USERS] mapserver gdaltileindex: Unable to access file Message-ID: Note: forwarded message attached. -------------- next part -------------- An embedded message was scrubbed... From: Jon Saints Subject: Re: [UMN_MAPSERVER-USERS] mapserver gdaltileindex: Unable to access file Date: Sat, 19 Mar 2005 10:00:58 -0800 (PST) Size: 1990 URL: From saintsjd at YAHOO.COM Sat Mar 19 10:05:19 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Sat, 19 Mar 2005 10:05:19 -0800 Subject: Low quality Jpg output Message-ID: I have a large number of high color aerial photos in jpg format. The images display correctly in using a tile index, but are of very low number of colors when rendered through mapserver. mapserv -v gives: MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=FASTCGI INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Is there anything I can do to display jpgs at a higher color count? Thanks From fwarmerdam at GMAIL.COM Sat Mar 19 10:24:52 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Sat, 19 Mar 2005 13:24:52 -0500 Subject: Low quality Jpg output In-Reply-To: <20050319180519.72988.qmail@web53906.mail.yahoo.com> Message-ID: On Sat, 19 Mar 2005 10:05:19 -0800, Jon Saints wrote: > I have a large number of high color aerial photos in > jpg format. The images display correctly in using a > tile index, but are of very low number of colors when > rendered through mapserver. > > mapserv -v gives: > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=FASTCGI > INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Jon, Likely what you want to do is select JPEG as the output format instead of 8bit png or gif. Likely you can just add the IMAGETYPE JPEG declaration in your map section. 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 gmanepal at GMAIL.COM Sat Mar 19 11:30:37 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Sat, 19 Mar 2005 14:30:37 -0500 Subject: Spatial Extent and Projection Message-ID: Hello All, Can anyone tell me the EXTENT(Spatial Extent for Mapfile) of Hampton Roads, Virginia, USA. I will be really helpful for my project. Also, if you can tell me where can I get such information. The PROJ.4 is quite useful for Mapserver. Although there is documentation about it, from its website, I would be glad to get some pointers about it, specifically how to use that in Mapserver etc. I really appreciate, if anyone can help me in both these issues. Although, its been few days since I started using Mapserver, I am really infatuated by its sheer capability :-) Thanks and Regards, Giridhar From bartvde at XS4ALL.NL Sat Mar 19 11:37:36 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 19 Mar 2005 20:37:36 +0100 Subject: Spatial Extent and Projection In-Reply-To: <6d675eda05031911302611cb75@mail.gmail.com> Message-ID: Hi, 1) I am assuming you have a dataset for Hampton Roads, Virginia, USA, or not? If so, you can use gdalinfo (for raster data) or ogrinfo (for vector data) to get an extent. E.g. ogrinfo -summary myshape.shp For more info see: ogrinfo: http://www.gdal.org/ogr/ogr_utilities.html gdalinfo: http://www.gdal.org/gdal_utilities.html#gdalinfo 2) The easiest way to use PROJ.4 within Mapserver is using EPSG codes for projections. You can also define projections through parameters such as ellipsoid etc. http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#projection There is a file which contains epsg codes, for instance for Netherlands we use EPSG:28992, the entry in the epsg file of proj is (this format is called WKT): # Amersfoort / RD New <28992> +proj=stere +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs no_defs <> If I want to use this in Mapserver I use: PROJECTION "init=epsg:28992" END You can define projection objects for every LAYER (defining the source projection of your data), and at the MAP level (defining which projection you want to use for your output map). Hope this helps. Best regards, Bart On Sat, 19 Mar 2005 14:30:37 -0500, Giridhar Manepalli wrote: > Hello All, > Can anyone tell me the EXTENT(Spatial Extent for Mapfile) of Hampton > Roads, Virginia, USA. I will be really helpful for my project. > > Also, if you can tell me where can I get such information. > > The PROJ.4 is quite useful for Mapserver. Although there is > documentation about it, from its website, I would be glad to get some > pointers about it, specifically how to use that in Mapserver etc. > > I really appreciate, if anyone can help me in both these issues. > > Although, its been few days since I started using Mapserver, I am > really infatuated by its sheer > capability :-) > > Thanks and Regards, > Giridhar > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From hayk_yer at LYCOS.COM Sat Mar 19 12:12:02 2005 From: hayk_yer at LYCOS.COM (Hayk Yeritsian) Date: Sat, 19 Mar 2005 23:12:02 +0300 Subject: precompiled binaries for UNIX Message-ID: Hello everyone, I have successfully compiled an internet allication using Maplab on Windows with Apache support. Now I would like to put that applcation on the internet. My ISP is running UNIX and FreeBSD and won't allow me to compile the needed libraries on the server. I am wondering if it is possible to get precompiled mapserver file for UNIX like the one for Windows. Thanks in advance, Hayk ******************************************************* Your third Chamber of Life shall be a lucky and gentle one - stored with the wine of love - and the Bread of Friendship. - John Keats -- _______________________________________________ NEW! Lycos Dating Search. The only place to search multiple dating sites at once. http://datingsearch.lycos.com From rob at DATAFLOWDESIGN.COM Sat Mar 19 13:42:09 2005 From: rob at DATAFLOWDESIGN.COM (Rob P.) Date: Sat, 19 Mar 2005 15:42:09 -0600 Subject: precompiled binaries for UNIX In-Reply-To: <20050319201202.BC6ABC610F@ws7-5.us4.outblaze.com> Message-ID: >>>>> "Hayk" == Hayk Yeritsian writes: Hayk> Hello everyone, I have successfully compiled an internet Hayk> allication using Maplab on Windows with Apache support. Now Hayk> I would like to put that applcation on the internet. My ISP Hayk> is running UNIX and FreeBSD and won't allow me to compile Hayk> the needed libraries on the server. I am wondering if it is Hayk> possible to get precompiled mapserver file for UNIX like the Hayk> one for Windows. Thanks in advance, Hayk To do so, you would need binaries that were built with the same libraries and maybe compiler that are installed on your ISP's box. I could give you the mapserv executable that I have built but it's unlikely that it will run on your ISP's box even if they use the same version of FreeBSD as I use. For instance, to run a mapserv binary built on my machine, your ISP would need these libraries or executables: gd, freetype, ogr, gdal, postgis curl, php, etc. You may also require shell access to your ISP's box. A similar question was asked about a month ago. Go to the archives and put this into the search string [with the parentheses]: (hosting facility) Rob From bpicinbono at WORLDONLINE.FR Sat Mar 19 14:38:55 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Sat, 19 Mar 2005 23:38:55 +0100 Subject: Low quality Jpg output In-Reply-To: <931f8ea905031910245296c8f0@mail.gmail.com> Message-ID: Le samedi 19 Mars 2005 19:24, Frank Warmerdam a ?crit?: > On Sat, 19 Mar 2005 10:05:19 -0800, Jon Saints wrote: > > I have a large number of high color aerial photos in > > jpg format. The images display correctly in using a > > tile index, but are of very low number of colors when > > rendered through mapserver. > > > > mapserv -v gives: > > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG > > OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=FASTCGI > > INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Jon, > > Likely what you want to do is select JPEG as the output format > instead of 8bit png or gif. Likely you can just add the > IMAGETYPE JPEG declaration in your map section. It's maybe no fully related to your color problem, but it might be usefull to you : in your mapfile, with : IMAGETYPE jpeg you can play with the FORMATOPTION [option] parameter. Have a look in the mapfile doc : "Provides a driver or format specific option. Zero or more FORMATOPTION statement may be present within a OUTPUTFORMAT declaration. (optional) GD/JPEG: The "QUALITY=n" option may be used to set the quality of jpeg produced (value from 0-100). " If you want best quality, choose 100, but if you have some low speed connection clients, you can allow them to switch to a mapfile with quality=50, or even 1. (What is default value, btw ?) Of course, less quality, but with a basic 56K modem, it changes dramaticaly the images download time, especially if you serve large images. Blaise From ttsai at POBOX.COM Sun Mar 20 02:55:43 2005 From: ttsai at POBOX.COM (Tim Tsai) Date: Sun, 20 Mar 2005 04:55:43 -0600 Subject: problem drawing shapefile (polygon/line) Message-ID: Hello. I am stumped on this particular issue running mapserver 4.4.1. I have a shapefile of polygons representing some water features. For some reason, I can get the map to draw if I use "TYPE LINE" but not if I use "TYPE POLYGON" (no objects visible and no error messages). A quick gdb session shows that the layer and shape drawing routines are both reached. shape->num_lines seems to be always 1 though everytime I see it. I am going to spend more time with gdb but am wondering if anybody has any idea on what this is doing. Thanks! Tim -- from ogrinfo -- % ogrinfo _water.shp INFO: Open of `_water.shp' using driver `ESRI Shapefile' successful. 1: _water (Polygon) -- from my mapfile -- LAYER DEBUG on NAME "water" STATUS default DATA "_water" # TYPE POLYGON # doesn't work TYPE LINE # works CLASS DEBUG on STYLE COLOR 102 204 255 OUTLINECOLOR 0 0 128 SYMBOL 1 SIZE 3 END END END From ttsai at POBOX.COM Sun Mar 20 03:12:36 2005 From: ttsai at POBOX.COM (Tim) Date: Sun, 20 Mar 2005 05:12:36 -0600 Subject: problem drawing shapefile (polygon/line) In-Reply-To: <20050320105543.GA11659@sleepy.wojomedia.com> Message-ID: Ooops. I shouldn't specify SYMBOL 1 if using POLYGON. That was easy enough. :-p Tim On Sun, Mar 20, 2005 at 04:55:43AM -0600, Tim Tsai wrote: > Hello. I am stumped on this particular issue running mapserver 4.4.1. > I have a shapefile of polygons representing some water features. > For some reason, I can get the map to draw if I use "TYPE LINE" but > not if I use "TYPE POLYGON" (no objects visible and no error messages). > > A quick gdb session shows that the layer and shape drawing routines are > both reached. shape->num_lines seems to be always 1 though everytime > I see it. I am going to spend more time with gdb but am wondering > if anybody has any idea on what this is doing. > > Thanks! > > Tim > > -- from ogrinfo -- > % ogrinfo _water.shp > INFO: Open of `_water.shp' > using driver `ESRI Shapefile' successful. > 1: _water (Polygon) > > -- from my mapfile -- > LAYER > DEBUG on > NAME "water" > STATUS default > > DATA "_water" > # TYPE POLYGON # doesn't work > TYPE LINE # works > > CLASS > DEBUG on > STYLE > COLOR 102 204 255 > OUTLINECOLOR 0 0 128 > SYMBOL 1 > SIZE 3 > END > END > END From andy.canfield at GMAIL.COM Sun Mar 20 07:31:09 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Sun, 20 Mar 2005 07:31:09 -0800 Subject: upside down labels In-Reply-To: <423C5580.9020003@swoodbridge.com> Message-ID: Until the fix is done I would try two things first go get the true type font that is in DM solutions gMap demo and try using that. It's very legible in lables. See if the Font switch makes it work for you. That is the font I am using in my maps and I haven't run into this problem. If that doesn't work try setting PARTIALS to true and see if allowing it to run out of the map keeps it from flipping. As a last resort if that doesn't work try forcing the labels. I hate forcing labels on streets because it can get really ugly so try the others first. On Sat, 19 Mar 2005 11:38:24 -0500, Stephen Woodbridge wrote: > Regardless of the reason (forced or not) the math that computed the > angle and tries to keep the label right side up is flawed and needs to > be fixed. For any of the upside down labels you could flip them 180 > degrees and they would fit in the same space. > > On 4.01, I was the only person that reported and complained about it, > but it now seems to be a much more common problem. Maps with upside down > labels do not show mapserver off in its best light. Also the code should > be pretty localized so knowing where to look should not be a problem. > > As for localizing a trivial example, that is harder. I'm not sure how to > identify just the objects required to render a map with the problem > and to extract them into a small set of data files. > > -Steve > > blaise wrote: > > Le samedi 19 Mars 2005 07:10, John Hagstrand a ?crit : > > > >>Hi Andy, > >> > >>To answer your question, this is the label statement. > >> > >> LABEL > >> PARTIALS FALSE > >> TYPE TRUETYPE > >> FONT ARIAL > >> COLOR 0 0 0 > >> SIZE 7 > >> ANGLE AUTO > >> POSITION AUTO > >> MINDISTANCE 300 > >> END > >> > >>And here is the URL again. > >> > >>http://www.westportnow.com/realestate/map.php?irn=41.134325436851&irs=41.11 > >>9548563149&ire=-73.309842191861&irw=-73.324483808139&iract=zoomout&irsacct=1 > >>0283 > >> > >>For this URL, with these explicit boundaries, the same 5 out of 48 labels > >>are always upside down. > >> > >>But, if you pan to the left a quarter-inch, then some of these 5 might be > >>right-side up and a different set of labels will be upside down. > >> > >>John > > > > > > hi > > It seems that the labels that are upside down are this way to avoid collision > > with other ? I understand you don't want to force all labels to draw... but > > can you try to see if forced labels are upside down as well ? > > blaise > > > From trex0003 at UMN.EDU Sun Mar 20 12:42:05 2005 From: trex0003 at UMN.EDU (Dale Trexel) Date: Sun, 20 Mar 2005 14:42:05 -0600 Subject: Twin Cities MapServer User Group meeting Thursday Message-ID: Hello folks, This month's Twin Cities MapServer User Group meeting topic is CGI MapServer installation on Linux. We will have a live demonstration using Fedora 3, with plenty of opportunities for people to ask questions of local experts. Since compiling MapServer seems to be a common source of frustration for members of this list, I thought I'd advertise our meeting here as well as on the TCMUG mailing list. IF YOU ARE INTERESTED IN COMING AND/OR HAVE QUESTIONS, PLEASE CONTACT ME DIRECTLY AT trex0003 at umn.edu FOR INFORMATION. I have a hard time keeping up with the volume of postings to this mailing list, so contacting me directly is best. DETAILS: When: Thursday, March 24th, from 5:00 PM to approximately 7:00 PM Where: 203 Green Hall, St. Paul campus of the U. of Minnesota Map: http://onestop.umn.edu/Maps/GrnH/index.html (right under the water tower) Parking: The closest lot is pay-per-hour (see map). There is free on-street parking west of Cleveland Ave., but it is posted at one hour max. Stay longer at your own risk. Agenda: This month will be a demonstration of installing CGI MapServer with basic functionality on a server running Fedora 3 Linux. I will provide a basic box, and local experts will walk us through the installation process. We'll have a video projector, so everyone can see what's going on onscreen. Some folks have expressed interest in a Microsoft version of this demonstration. This is a great idea, but too much to add to the current agenda. At this week's meeting we can discuss the option of doing a Microsoft installation some other time. There is a class until 4:55 in 203 Green Hall Thursday night, so don't come too early. We have the room reserved until 8:00 PM, so we can stay later if needed. Many thanks to Perry for making the room reservations! From woodbri at SWOODBRIDGE.COM Sun Mar 20 14:39:00 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 20 Mar 2005 17:39:00 -0500 Subject: scalebar dual english/metric styling Message-ID: Hi all, I would love to have a dual English/metric scalebar. I have opened this bug as an enhancement request. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1289 Feel free to comment, show your interest, or add yourself to the cc list to track the progress of this. -Steve W. From woodbri at SWOODBRIDGE.COM Sun Mar 20 14:48:26 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 20 Mar 2005 17:48:26 -0500 Subject: scalebar minscale/maxscale enhancement Message-ID: Hi all, The other day someone asked about how to dynamically change the UNITs of the scalebar as you zoom in on the map. I think this would be a good problem to solve, so I'm following up with an enhancement request. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1290 Feel free to comment, show your interest, or add yourself to the cc list to track the progress of this. -Steve W. From kenlord at GMAIL.COM Sun Mar 20 15:12:02 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Sun, 20 Mar 2005 15:12:02 -0800 Subject: Problem fetching wms.jpl.nasa.gov/wms images In-Reply-To: <8b502010503182323105f405c@mail.gmail.com> Message-ID: Hi Luca, I use a layer or two from that server and have had problems too lately. The Landsat layer works, but not every time. I get the same error message sometimes when it fails. I'd assume its a problem on nasa's end. I would like to know if there's some way to make mapserver handle these problems more gracefully. Shouldn't it just not display that layer if its not available instead of disrupting the generation of the map entirely and crashing the website? And why is it displaying an EPPL error when we aren't requesting EPPL files? ... The same error appears if you request an image using a projection that is not available from the source server which doesn't make sense to me either. Also, NASA if you are reading this ... The global landsat layer has a datum problem. It appears to be epsg 4269 mis-defined as epsq 4326, it consistantly is offset ~200m north and ~20m west of where it should be. I've had similar problems with an earthquake layer from http://cubeserv.mapwerks.com/cubeserv.cgi? but when that layer fails a error message from cubeserv becomes part of the image ... again disrupting the rest of the map generation, but at least it doesnt crash my webpage. Cheers, Ken Lord Vancouver BC On Sat, 19 Mar 2005 07:23:10 +0000, luca marletta wrote: > Hi list, > I'd like to use aerial images. But I met the error below fetching the > image, even on > terrasip tutorial > http://terrasip.gis.umn.edu/projects/tutorial/example1-6.html it > happens the same. It seems a server problem but I guess, just a server > configuration change. > > Does anybody have idea about fixing it? > > error: > msDrawMap(): Image handling error. Failed to draw layer named 'LandSat'. > msDrawRaster(): Image handling error. Unrecognized or unsupported image format > drawEPP(): Image handling error. /data/tmp/1111215368157930.img.tmp is > not an EPPL file. > > thanks a lot > > -- > luca marletta icq: 70590647 > From albrecht at FIELAX.DE Mon Mar 21 00:19:51 2005 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Mon, 21 Mar 2005 02:19:51 -0600 Subject: Download list archives Message-ID: Hi everybody, I remember last year one could download all the mailing list archives per month in a tar-gz-file. Is there any possibility to get the latest archives as a complete file, too? The problem is I have to develop a mapserver application at a place without internet connection. Best regards, Sebastian From lluisgm at GMAIL.COM Mon Mar 21 02:39:23 2005 From: lluisgm at GMAIL.COM (Lluis G. Mestres) Date: Mon, 21 Mar 2005 04:39:23 -0600 Subject: Query and zoom problem Message-ID: Hi, I'm using Mapserver 4.4.1, Php 4.3.10 and Mandrake 10.1. I've compiled mapserver by myself in order to get the php_mapsrcipt.so file. When I ntry to zoom or query in a layer, always the results comes like if I have pointed with the mouse 2-3 cm upper. I have two vector layers and the projection looks ok. From fsozzi at INTERCAD.CH Mon Mar 21 03:06:44 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Mon, 21 Mar 2005 12:06:44 +0100 Subject: crash on QueryByRect/QueryByAttr on Oracle Layer (mapserver compiled by me) Message-ID: Hi Bart, Wow, compiling with VC7 instead of VC6 it seems working fine! Thanks for suggestion. Now I will do further tests, but I think it's all right now. Best regards Francesco ----- Original Message ----- From: "Bart van den Eijnden" To: "Francesco Sozzi" ; Sent: Friday, March 18, 2005 5:55 PM Subject: Re: [UMN_MAPSERVER-USERS] crash on QueryByRect/QueryByAttr on Oracle Layer (mapserver compiled by me) > Hi Francesco, > >> Another sympton: I have no problem if on DATA attribute I list only key >> and geometry fields. If I list some other fields, mapserver (compiled by >> me) crashes. > > I had the same problem. When I recompiled with VC7.1 instead of VC6 > everything worked fine. Which MSVC version are you using? > > Best regards, > Bart > > On Fri, 18 Mar 2005 16:28:41 +0100, Francesco Sozzi > wrote: > >> Hi all, >> >> If I use precompiled binaries for Win32/Oracle I have no problem. >> If I try to compile myself everything still works properly (I can >> render, zoom, pan, querying, ecc...), but if I query (es. QueryByRect) >> Oracle Spatial layer, mapserver crashes. >> >> Another sympton: I have no problem if on DATA attribute I list only key >> and geometry fields. If I list some other fields, mapserver (compiled by >> me) crashes. >> >> There is something on how I compiled my binaries. >> Anybody has already experimented the same problem?... >> >> Bets regards >> >> Francesco > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > > From mweinelt at PLANIGLOBE.COM Mon Mar 21 03:10:53 2005 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Mon, 21 Mar 2005 12:10:53 +0100 Subject: REsize window question In-Reply-To: <423A92C0.8030607@cerene.fr> Message-ID: On Friday 18 March 2005 09:35, St?phane RIFF wrote: > My mapserver application need to redraw the map when the window is resized. > My problem is that i don't know how to keep the same extent > in two map with different size !!! Using mapserver CGI you just send MAPEXTENT and MAPSIZE to the CGI (together with layers, etc.) and that's it. > in fact i don't want the map > to change its scale when i resize the window. Keeping mapextent at different mapsize yields another scale, no? > How can i calculate the newExtent to do that ??? > Is it possible ??? You do not calculate it, you just reuse the image extent from the previous map (which can be sent by the CGI together with the image). > How do you handle that kind of function ? example ? I do it on the client side with js: function setMapSize() { // mimg is a div in the doc with the map as background image mimg.style.backgroundImage='url(images/waiting.gif)'; // a 'wait indicator' is shown until the new image arrives // w is the browser window var mh = (w.innerHeight) ? w.innerHeight : d.body.clientHeight; var mw = (w.innerWidth) ? w.innerWidth : d.body.clientWidth; mh-=60; mw-=230; // correct for other elements which also need a bit of screen real estate mimg.style.width=mw; mimg.style.height=mh; // set the div to the new size myMap.mode='browse'; // myMap is an object which holds some map parameters myMap.mapsize=[mw,mh]; // ... mapsize for instance myMap.mapext.set(myMap.imgext.get()); // or map extent - here copied from the last image recieved var s=myMap.getReqStr('mapsize','mapext'); // this glues a GET-string for the new map request getMap(s); // invokes the new map } this is just an example, the same purpose can be served in a more traditional way. Cheers, Martin From margottid at COMUNE.LUGO.RA.IT Mon Mar 21 03:23:57 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Mon, 21 Mar 2005 12:23:57 +0100 Subject: Map file in browse mode and Content-type: text/html msReturnPage(): error In-Reply-To: Message-ID: You should put your .map file in the same folder where demo.html stays (instead of /cgi-bin). Let me know if this works. Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Afifa Naz Sent: Saturday, March 05, 2005 12:39 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Map file in browse mode and Content-type: text/html msReturnPage(): error Hi: when I try to display my map in browse mode , I get this error Content-type: text/html msReturnPage(): Unable to access file. demo.html what is the cause of this? My demo.html is in htm l folder, this is the code in .map file WEB TEMPLATE "demo.html" IMAGEPATH "html/tmp/" IMAGEURL "/tmp/" END I tried to define my IMAGEPATH as absolute that is /var/www/html/tmp but no difference. I have also tried IMAGEPATH as tmp, but i still get the same error. This is my map in map mode : http://132.205.108.60/cgi-bin/mapserv?map=montreal.map&mode=map Thanks Afifa From nunoragil at GMAIL.COM Mon Mar 21 03:50:19 2005 From: nunoragil at GMAIL.COM (Nuno GIL) Date: Mon, 21 Mar 2005 11:50:19 +0000 Subject: problems using a cascaded layer - wms_name parameter Message-ID: Dear listers, I am trying to use a cascaded layer. I call it on my map file like this "wms_name" "/landmap/mosaics/landsat/l5mosaic.ecw" The server produces an error saying that it is unnable of displaying that same layer. Does anyone know how to deal with this issue? I do believe that the problem is the slash usage... Regards, Nuno From David.Fawcett at STATE.MN.US Mon Mar 21 06:12:13 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 21 Mar 2005 08:12:13 -0600 Subject: tileindexed layer crashing... Message-ID: I found a similar issue related to this. At least when tested against 4.3, a layer that has identical values for both LAYER NAME and CLASS NAME will not draw. If I remember correctly, it doesn't give an error message either. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Dieterich Sent: Friday, March 18, 2005 8:29 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tileindexed layer crashing... So two seconds after I finished typing up this message, I wondered whether having the the NAME field and the TILEINDEX field within a LAYER have the same value was causing problems. It appears to be the problem. Once I renamed the NAME field, I got a map. Did I just miss this in the doc? Thanks, Mark From lluisgm at GMAIL.COM Mon Mar 21 07:45:43 2005 From: lluisgm at GMAIL.COM (Lluis G. Mestres) Date: Mon, 21 Mar 2005 09:45:43 -0600 Subject: Mapserver rpm mandrake 10.1 Message-ID: With Mandrake 10.1 I have the mapserver-4.2.rpm include, and it works ok. The problem is that I can't get the php_mapscript.so to include Maplab. Should I compile mapserver by myself? It's possible to use then the php rpm? I'm geeting crazy to build mapserver. If anyone has documentation to compile php and mapserver in Mandrake 10.1 will be wonderful. From bartvde at XS4ALL.NL Mon Mar 21 08:06:11 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 21 Mar 2005 17:06:11 +0100 Subject: problems using a cascaded layer - wms_name parameter In-Reply-To: Message-ID: Hi Nuno, if you use a WMS layer in Mapserver WMS client, you just use the name (as present in the WMS capabilities between ...), not the nesting, in your case probably: "wms_name" "l5mosaic.ecw" Or are you sayig the actual name of the layer on the remote WMS is "/landmap/mosaics/landsat/l5mosaic.ecw"? The / syntax is for Mapserver as a WMS server (wms_layer_group), indicating how it should build up its WMS capabilities with nesting. See: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=776 Hope this helps. Best regards, Bart > Dear listers, > I am trying to use a cascaded layer. > I call it on my map file like this > "wms_name" "/landmap/mosaics/landsat/l5mosaic.ecw" > The server produces an error saying that it is unnable of displaying > that same layer. > Does anyone know how to deal with this issue? I do believe that the > problem is the slash usage... > Regards, > Nuno > From bpicinbono at WORLDONLINE.FR Mon Mar 21 08:16:24 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Mon, 21 Mar 2005 17:16:24 +0100 Subject: Mapserver rpm mandrake 10.1 In-Reply-To: Message-ID: Le lundi 21 Mars 2005 16:45, Lluis G. Mestres a ?crit?: > With Mandrake 10.1 I have the mapserver-4.2.rpm include, and it works ok. > The problem is that I can't get the php_mapscript.so to include Maplab. > Should I compile mapserver by myself? It's possible to use then the php > rpm? I'm geeting crazy to build mapserver. If anyone has documentation to > compile php and mapserver in Mandrake 10.1 will be wonderful. Hi Lluis, cool down, nothing is easy ! I don't think you can use the php.rpm. The rpm should install php as an apache module, but php_mapscript still seems to fit better with php as a cgi. To build php_mapscript, you will need to compile some libraries, or install their -devel rpm. Then you have to compile php, and then mapserver. Libraries compilation are quite straight forward, but for php and mapserver, you will have to try different ./configure options. There are some good docs in the documentation and the wiki pages and plenty. Search the list as well. Try the wiki page describing phpmapscript installation on RedHat9; RedHat filesystem is quite similar to Mandrake one. Actually, it's not that much difficult, you'll find out. Blaise From ltiu at ALUMNI.SFU.CA Mon Mar 21 08:17:35 2005 From: ltiu at ALUMNI.SFU.CA (Lyndon Tiu) Date: Mon, 21 Mar 2005 08:17:35 -0800 Subject: Mapserver rpm mandrake 10.1 In-Reply-To: Message-ID: Lluis G. Mestres wrote: >With Mandrake 10.1 I have the mapserver-4.2.rpm include, and it works ok. >The problem is that I can't get the php_mapscript.so to include Maplab. >Should I compile mapserver by myself? It's possible to use then the php >rpm? I'm geeting crazy to build mapserver. > What error messages are you getting? >If anyone has documentation to >compile php and mapserver in Mandrake 10.1 will be wonderful. > > ./configure --help should tell you what to do. You will see something like this: --with-php=DIR You need to have php devel packaged installed. -- Lyndon Tiu From lists at WEBMAPIT.COM.BR Mon Mar 21 09:29:06 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Mon, 21 Mar 2005 14:29:06 -0300 Subject: How to test Java MapScript? Message-ID: Hi, I've just downloaded the newest MapServer from UMN, but how could I do a simple test just to check if Java MapScript was correctly installed. On PHP I always do a : .. dl("php_mapscript.so"); phpinfo(); ... and then load and draw a simple MapFile. best regards, -- Eduardo Patto Kanegae Treinamento & Consultoria em UMN MapServer, PostGIS e FreeGIS Software http://www.webmapit.com.br Skype: eduardopattokanegae ICQ: 303747254 MSN: eduardo_patto~at~hotmail.com Phone: +55(16)9994-2928 ***Fim da Mensagem / End of Message *** From Troy.Johnson at SDL.USU.EDU Mon Mar 21 11:02:49 2005 From: Troy.Johnson at SDL.USU.EDU (Troy R. Johnson) Date: Mon, 21 Mar 2005 12:02:49 -0700 Subject: Mapscript PHP Error - failed to map segment from shared object Message-ID: Hi folks, hopefully someone can help me here. I'm trying to get the php_mapscript.so working under Fedora core 3. So far I've downloaded PHP version 4.3.9 and compiled it. I did a make install for php. This installed php to /usr/local/bin/ Then I compiled Mapserver 4.4.1 From bpicinbono at WORLDONLINE.FR Mon Mar 21 11:46:22 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Mon, 21 Mar 2005 20:46:22 +0100 Subject: Mapscript PHP Error - failed to map segment from shared object In-Reply-To: Message-ID: Le lundi 21 Mars 2005 20:02, Troy R. Johnson a ?crit?: > I'm trying to get the php_mapscript.so working under Fedora core 3. > ....... > Any ideas? it must be close to this wiki one (end of page) : http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat9AndMapserver40 blaise From dbkeon.ml at GMAIL.COM Mon Mar 21 11:46:38 2005 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Mon, 21 Mar 2005 11:46:38 -0800 Subject: Mapscript PHP Error - failed to map segment from shared object In-Reply-To: Message-ID: On 03/21/2005 11:02 AM, Troy R. Johnson wrote: > Hi folks, hopefully someone can help me here. > > I'm trying to get the php_mapscript.so working under Fedora core 3. > > So far I've downloaded PHP version 4.3.9 and compiled it. > I did a make install for php. This installed php to /usr/local/bin/ > > Then I compiled Mapserver 4.4.1 > >>From the command line things seem to work just fine. I can do the following: > > /usr/local/bin/php phpinfo_mapscript.phtml > test.html > > and test.html shows that the MapScript is loaded. Other test also seem to work from the command line. > > However when I try to run this file through a browser I get the following error: > > [Mon Mar 21 11:42:14 2005] [error] [client 172.31.18.130] PHP Warning: dl(): Unable to load dynamic library '/usr/lib/php4/php_mapscript.so' - /usr/lib/php4/php_mapscript.so: failed to map segment from shared object: Permission denied in /var/www/html/phpinfo_mapscript.phtml on line 21 > > To set the web server up for php I did the following: > > created a new php.conf file with only these two lines: > > AddHandler phtml-script .phtml > Action phtml-script /cgi-bin/php.sh > > in my cgi-bin directory, php.sh contains the following: > > #!/bin/bash > export SCRIPT_FILENAME=$PATH_TRANSLATED > /usr/bin/php Tony, Did you edit the extension_dir setting in php.ini? You need to set it to the directory where you store your PHP extensions, then either copy or link php_mapscript.so to that directory. It looks like you currently have extension_dir set to /usr/lib/php4. --Dylan From aaronr at ECOTRUST.ORG Mon Mar 21 11:48:05 2005 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Mon, 21 Mar 2005 11:48:05 -0800 Subject: Mapscript PHP Error - failed to map segment from shared object Message-ID: I am no expert at the shared library stuff, but my guess is that you did not tell the web server where to locate PHP includes. Below is what I did to set up PHP on my Fedora Core 3 box, maybe it will help. I think you might need to focus on the "extension_dir" variable in the php.ini file. It looks like your web server is looking in /usr/lib/php4/ Here is a snip of my installation history: +++++++++++++++++++++++++++++++++++ First get the new version: mkdir php cd php wget http://us2.php.net/get/php-4.3.10.tar.gz/from/this/mirror tar -xzvf php-4.3.10.tar.gz cd php-4.3.10 ./configure --enable-force-cgi-redirect --with-config-file-path=/etc/httpd/ --with-gd=/usr/local --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --wit h-tiff-dir=/usr/lib --with-zlib-dir=/usr/lib --with-freetype-dir --without-ttf --with-mysql --with-regex=system --enable-dbase --enable-dbx --enable-ve rsioning --with-pgsql=/usr/local/pgsql make make install strip sapi/cgi/php cp sapi/cgi/php /var/www/cgi-bin/ cp php.ini-dist /etc/httpd/php.ini Made the following mod to /etc/httpd/php.ini: ; Directory in which the loadable extensions (modules) reside. ;extension_dir = "./" extension_dir = "/etc/httpd/php_mods" mkdir /etc/httpd/php_mods ------>>>>>>>>> This is where the Mapscript .so will go... Added the following to /etc/httpd/conf/httpd.conf # # For PHP scripts as CGI-BIN # AddType application/x-httpd-php-cgi .php .php4 .php3 .phtml Action application/x-httpd-php-cgi /cgi-bin/php Now re-start the server: /etc/rc.d/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] +++++++++++++++++++++++++++++++++++ +----------------------------------------+ | Aaron Racicot | aaronr at ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Troy R. Johnson Sent: Monday, March 21, 2005 11:03 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapscript PHP Error - failed to map segment from shared object Hi folks, hopefully someone can help me here. I'm trying to get the php_mapscript.so working under Fedora core 3. So far I've downloaded PHP version 4.3.9 and compiled it. I did a make install for php. This installed php to /usr/local/bin/ Then I compiled Mapserver 4.4.1 From dbkeon.ml at GMAIL.COM Mon Mar 21 12:05:29 2005 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Mon, 21 Mar 2005 12:05:29 -0800 Subject: Mapscript PHP Error - failed to map segment from shared object In-Reply-To: Message-ID: On 03/21/2005 11:49 AM, Troy R. Johnson wrote: >From the command line things seem to work just fine. I can do the following: > > /usr/local/bin/php phpinfo_mapscript.phtml > test.html > > and test.html shows that the MapScript is loaded. Other test also seem to work from the command line. >> Yes, my PHP extensions is set to /usr/lib/php4 >> >> which is where my php_mapscript.so has been copied to. >> >> I know it is trying to load the file and having problems, because >> if I remove the file php_mapscript.so I get a different error, >> it complains that the file doesn't exist. >> >> Any other ideas? Doh! I should have noticed you wrote that it works at the command line. You said you're using FC3. Do you have SELinux enabled? Make sure that isn't causing any weirdness... --Dylan From dbkeon.ml at GMAIL.COM Mon Mar 21 12:27:02 2005 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Mon, 21 Mar 2005 12:27:02 -0800 Subject: Mapscript PHP Error - failed to map segment from shared object In-Reply-To: Message-ID: > On 03/21/2005 11:49 AM, Troy R. Johnson wrote: >>From the command line things seem to work just fine. I can do the following: > >>/usr/local/bin/php phpinfo_mapscript.phtml > test.html >> >>and test.html shows that the MapScript is loaded. Other test also seem to work from the command line. > > >>>Yes, my PHP extensions is set to /usr/lib/php4 >>> >>>which is where my php_mapscript.so has been copied to. >>> >>>I know it is trying to load the file and having problems, because >>>if I remove the file php_mapscript.so I get a different error, >>>it complains that the file doesn't exist. >>> >>>Any other ideas? > > > Doh! I should have noticed you wrote that it works at the command line. > > You said you're using FC3. Do you have SELinux enabled? Make sure that > isn't causing any weirdness... > > --Dylan > > > On 03/21/2005 12:16 PM, Troy R. Johnson wrote: > Thanks a bunch. It was a SELinux problem... I hadn't even thought about that. > I'd forgotten that I even had it running, but that solved the problem. > > Thanks > > Troy Tony, Great, glad that worked. Please cc replies to the list too! Have fun... --Dylan From codonoghue at EIRCOM.NET Mon Mar 21 13:29:55 2005 From: codonoghue at EIRCOM.NET (Eircom - Carroll) Date: Mon, 21 Mar 2005 21:29:55 +0000 Subject: Using Mapinfo for non_GIS applications (or dGPS possibly) In-Reply-To: <423F2E16.5050509@gmail.com> Message-ID: Hi all, I am not familiar enough with MapServer. Could you suggest if it would be useful for presenting information for server cabinets, based on a Floor Tile (Row,Column) rather than Lat/Long co-ordinates. I'm looking for potential solutions to link a cabinet (or possibly a group of cabinets in the case of mainframes) to Floor Tiles in a Server Farm. The Floor Tile is then used as a key to access rack hardware info. Any ideas would be gratefully received. Carroll From David.Fawcett at STATE.MN.US Mon Mar 21 13:40:52 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 21 Mar 2005 15:40:52 -0600 Subject: Using Mapinfo for non_GIS applications (or dGPS possibly) Message-ID: Carroll, This can definitely be done. You can draw and display maps based on any coordinate system. I am currently doing this for a large expo type event. You can take a look at a draft page at: http://www.livinggreen.org/exhibit.cfm?id=68AE49A8-0E3A-9F0F-032BCB477855E4D2 My coordinate system is essentially a grid of the convention center floor in feet. On this, I just output my query page and then build a map request URL and pull it in as an image. You could also build an interactive (query-able) map based on the same map file. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Eircom - Carroll Sent: Monday, March 21, 2005 3:30 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Using Mapinfo for non_GIS applications (or dGPS possibly) Hi all, I am not familiar enough with MapServer. Could you suggest if it would be useful for presenting information for server cabinets, based on a Floor Tile (Row,Column) rather than Lat/Long co-ordinates. I'm looking for potential solutions to link a cabinet (or possibly a group of cabinets in the case of mainframes) to Floor Tiles in a Server Farm. The Floor Tile is then used as a key to access rack hardware info. Any ideas would be gratefully received. Carroll From kenichi.ueda at GMAIL.COM Mon Mar 21 19:16:28 2005 From: kenichi.ueda at GMAIL.COM (Ken-ichi) Date: Mon, 21 Mar 2005 19:16:28 -0800 Subject: PostGIS 1.0.0-rc2 points not rendering Message-ID: Hi all. Forgive me if this has been dealt with before but I wasn't able to find anything. I'm having trouble rendering a point layer from PostGIS in MapServer. The points in the table were entered via SQL using the GeometryFromText() function, using a custom projection that I entered into the spatial_ref_sys table. Adding the points does not generate any errors, and when I select the rows in psql using the AsText() function, they look fine. However, they do not render in MapServer (nor do they render in QGIS, for that matter). There are no errors, just no points. I can dump the points out into a shapefile using pgsql2shp and they show up fine. I'm fairly sure this setup worked in PostgreSQL 7.x and PostGIS < 1.0. Here are the details of my setup: Mac OS X MapServer 4.4.1 Postgresql 8.0.1 PostGIS 1.0.0-rc2 CUSTOM PROJECTION srid: 1000 auth_name: CA_Albers srtext: PROJCS["CA_Albers",GEOGCS["GCS_North_American_1927",DATUM["D_North_Ameri can_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwi ch",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMET ER["False_Easting",0.0],PARAMETER["False_Northing", -4000000.0],PARAMETER["Central_Meridian", -120.0],PARAMETER["Standard_Parallel_1",34.0],PARAMETER["Standard_Parall el_2",40.5],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]] proj4text: +proj=aea +ellps=clrk66 +datum=NAD27 +lon_0=-120 +lat_1=34 +lat_2=40.5 +x_0=0 +y_0=-4000000 +units=m SQL insert into test_points (name, comment, the_geom, error) values ('name', 'comment', GeometryFromText('POINT(-211189.484375 -23160.20625)', 1000), 30); MAPFILE MAP NAME "blah" EXTENT -293050 -120300 -103350 71250 SIZE 500 500 SHAPEPATH "data" SYMBOLSET "../../tutorial/etc/symbols.sym" FONTSET "../../tutorial/etc/fonts.txt" IMAGETYPE PNG UNITS METERS WEB IMAGEPATH "/web/tmp/" IMAGEURL "/tmp/" END LAYER NAME "Counties" STATUS DEFAULT TYPE POLYGON DATA "counties" CLASS NAME "Counties" STYLE COLOR 255 255 153 OUTLINECOLOR 204 153 51 END END END LAYER NAME "Test Points" STATUS DEFAULT TYPE POINT CONNECTIONTYPE POSTGIS CONNECTION "user=username dbname=nat_db host=localhost password=password" DATA "the_geom from test_points" CLASS NAME "Points" STYLE SYMBOL 7 COLOR 255 0 0 SIZE 5 END END END END Any help / suggestions appreciated. -Ken-ichi From pramsey at REFRACTIONS.NET Mon Mar 21 20:24:19 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Mon, 21 Mar 2005 20:24:19 -0800 Subject: PostGIS 1.0.0-rc2 points not rendering In-Reply-To: <033f3bfb46c473489f2d0a67eaf4e3ae@gmail.com> Message-ID: Ken, You'll want to move to RC4, there was a problem w/ mapserver in early releases of postgis 1.0. Paul On 21-Mar-05, at 7:16 PM, Ken-ichi wrote: > Hi all. Forgive me if this has been dealt with before but I wasn't able > to find anything. I'm having trouble rendering a point layer from > PostGIS in MapServer. The points in the table were entered via SQL > using the GeometryFromText() function, using a custom projection that I > entered into the spatial_ref_sys table. Adding the points does not > generate any errors, and when I select the rows in psql using the > AsText() function, they look fine. However, they do not render in > MapServer (nor do they render in QGIS, for that matter). There are no > errors, just no points. I can dump the points out into a shapefile > using pgsql2shp and they show up fine. I'm fairly sure this setup > worked in PostgreSQL 7.x and PostGIS < 1.0. Here are the details of my > setup: > > Mac OS X > MapServer 4.4.1 > Postgresql 8.0.1 > PostGIS 1.0.0-rc2 > > CUSTOM PROJECTION > srid: 1000 > auth_name: CA_Albers > srtext: > PROJCS["CA_Albers",GEOGCS["GCS_North_American_1927",DATUM["D_North_Amer > i > can_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenw > i > ch",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAME > T > ER["False_Easting",0.0],PARAMETER["False_Northing", > -4000000.0],PARAMETER["Central_Meridian", > -120.0],PARAMETER["Standard_Parallel_1",34.0],PARAMETER["Standard_Paral > l > el_2",40.5],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]] > proj4text: +proj=aea +ellps=clrk66 +datum=NAD27 +lon_0=-120 +lat_1=34 > +lat_2=40.5 +x_0=0 +y_0=-4000000 +units=m > > SQL > > insert into test_points (name, comment, the_geom, error) values > ('name', 'comment', GeometryFromText('POINT(-211189.484375 > -23160.20625)', 1000), 30); > > MAPFILE > > MAP > NAME "blah" > EXTENT -293050 -120300 -103350 71250 > SIZE 500 500 > SHAPEPATH "data" > SYMBOLSET "../../tutorial/etc/symbols.sym" > FONTSET "../../tutorial/etc/fonts.txt" > IMAGETYPE PNG > UNITS METERS > WEB > IMAGEPATH "/web/tmp/" > IMAGEURL "/tmp/" > END > LAYER > NAME "Counties" > STATUS DEFAULT > TYPE POLYGON > DATA "counties" > CLASS > NAME "Counties" > STYLE > COLOR 255 255 153 > OUTLINECOLOR 204 153 51 > END > END > END > LAYER > NAME "Test Points" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE POSTGIS > CONNECTION "user=username dbname=nat_db host=localhost > password=password" > DATA "the_geom from test_points" > CLASS > NAME "Points" > STYLE > SYMBOL 7 > COLOR 255 0 0 > SIZE 5 > END > END > END > END > > Any help / suggestions appreciated. > > -Ken-ichi From Dejan.Gambin at PULA.HR Mon Mar 21 23:30:11 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Tue, 22 Mar 2005 08:30:11 +0100 Subject: Showing Arc/Info annotations Message-ID: Hello, Can somebody explain to me how to show Arc/Info annotations on the map. I have set of files (.txx, .txt, .tbx, .tbn, .tat) that hold street names. How can I define the map file to show them? I saw there were some problems with this in earlier versions of MapServer. Is it solved now (I am using MapServer 4.4)? Thanks very much Dejan Gambin From unicoletti at PROMETEO.IT Mon Mar 21 23:57:08 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Tue, 22 Mar 2005 08:57:08 +0100 Subject: How to test Java MapScript? In-Reply-To: <423F0462.8030602@webmapit.com.br> Message-ID: simply run make test in mapscript/java. This will check that java mapscript has been corrrectly compiled; the installation must be carried out manually. Regards, Umberto On Mon, 2005-03-21 at 14:29 -0300, Eduardo Patto Kanegae wrote: > Hi, > > I've just downloaded the newest MapServer from UMN, but how could I do a > simple test just to check if Java MapScript was correctly installed. > > On PHP I always do a : > .. > dl("php_mapscript.so"); > phpinfo(); > ... > > and then load and draw a simple MapFile. > > best regards, > > -- > Eduardo Patto Kanegae > Treinamento & Consultoria em UMN MapServer, PostGIS e FreeGIS Software > http://www.webmapit.com.br > Skype: eduardopattokanegae > ICQ: 303747254 > MSN: eduardo_patto~at~hotmail.com > Phone: +55(16)9994-2928 > > ***Fim da Mensagem / End of Message *** -- Umberto Nicoletti | We are Pentium of Borg. +390415701366 unicoletti at prometeo.it | Division is futile. Prometeo S.R.L. The Software Experience | You will be approximated. From lluisgm at GMAIL.COM Tue Mar 22 00:39:21 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Tue, 22 Mar 2005 09:39:21 +0100 Subject: Mapserver rpm mandrake 10.1 In-Reply-To: <423EF39F.8000805@alumni.sfu.ca> Message-ID: Hi, I've achieved to compile php and mapserver by myself but I get two erros: - I add the following lines to httpd.conf but apache doesn't reconize php. AddType application/x-httpd-php-cgi .php .php4 .php3 .phtml Action application/x-httpd-php-cgi /cgi-bin/php - On the other hand, I builded a map, just with mapserver, with different layers and the position looks ok. But when I click on the map using query or zoom function, it seems like mapserver send a point 2-3 cm upper from where i have clicked. Thanks a lot, I have spend to much time so I hope figure out soon. Llu?s On Mon, 21 Mar 2005 08:17:35 -0800, Lyndon Tiu wrote: > Lluis G. Mestres wrote: > > >With Mandrake 10.1 I have the mapserver-4.2.rpm include, and it works ok. > >The problem is that I can't get the php_mapscript.so to include Maplab. > >Should I compile mapserver by myself? It's possible to use then the php > >rpm? I'm geeting crazy to build mapserver. > > > > What error messages are you getting? > > >If anyone has documentation to > >compile php and mapserver in Mandrake 10.1 will be wonderful. > > > > > ./configure --help > > should tell you what to do. > > You will see something like this: > > --with-php=DIR > > You need to have php devel packaged installed. > > -- > Lyndon Tiu > > From Dejan.Gambin at PULA.HR Tue Mar 22 01:58:30 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Tue, 22 Mar 2005 10:58:30 +0100 Subject: Showing Arc/Info annotations details Message-ID: I would like to give some details of what have I tried without a success: I have TX6/TX7 annotation files (streets.txt, streets.tat, streets.txx) located in "C:/Projekti/GIS/Pula/Streets" folder. Using ogrinfo streets I get: Had to open data source read-only. INFO: Open of `streets' using driver `AVCBin' successful. 1: streets (Point) ogrinfo -summary streets streets gives me: Had to open data source read-only. INFO: Open of `streets' using driver `AVCBin' successful. Layer name: streets Geometry: Point Feature Count: 508 Extent: (5406638.018711, 4966241.156020) - (5411552.448154, 4973139.175613) Layer SRS WKT: (unknown) UserId: Integer (0.0) Text: String (0.0) Height: Real (0.0) Level: Integer (0.0) My mapfile loooks like: LAYER NAME "streets" STATUS ON CONNECTIONTYPE OGR CONNECTION "C:/Projekti/GIS/Pula/Streets,streets" TYPE POINT LABELITEM "Text" CLASS NAME "all" LABEL FONT "arial" TYPE truetype POSITION AUTO SIZE 8 COLOR 255 0 0 OUTLINECOLOR 55 55 55 PARTIALS FALSE END END END Trying to show the layer I get "Fatal error: Call to a member function on a non-object in ... on line ..." // the line calls $mapImg->saveWebImage(); and the $mapImg is evaluated before using map->draw PHP/Mapscript method. What could be wrong? Thanks very much Dejan Gambin From bartvde at XS4ALL.NL Tue Mar 22 02:09:45 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 22 Mar 2005 11:09:45 +0100 Subject: Showing Arc/Info annotations details In-Reply-To: Message-ID: Hi, can you try: CONNECTION "C:/Projekti/GIS/Pula/Streets,0" Also, try testing your MAP file with shp2img before you start using it in PHP/Mapscript. Best regards, Bart On Tue, 22 Mar 2005 10:58:30 +0100, Gambin Dejan wrote: > I would like to give some details of what have I tried without a > success: > > I have TX6/TX7 annotation files (streets.txt, streets.tat, streets.txx) > located in "C:/Projekti/GIS/Pula/Streets" folder. Using ogrinfo streets > I get: > > Had to open data source read-only. > INFO: Open of `streets' > using driver `AVCBin' successful. > 1: streets (Point) > > ogrinfo -summary streets streets gives me: > > Had to open data source read-only. > INFO: Open of `streets' > using driver `AVCBin' successful. > > Layer name: streets > Geometry: Point > Feature Count: 508 > Extent: (5406638.018711, 4966241.156020) - (5411552.448154, > 4973139.175613) > Layer SRS WKT: > (unknown) > UserId: Integer (0.0) > Text: String (0.0) > Height: Real (0.0) > Level: Integer (0.0) > > My mapfile loooks like: > > LAYER > NAME "streets" > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "C:/Projekti/GIS/Pula/Streets,streets" > TYPE POINT > LABELITEM "Text" > > CLASS > NAME "all" > LABEL > FONT "arial" > TYPE truetype > POSITION AUTO > SIZE 8 > COLOR 255 0 0 > OUTLINECOLOR 55 55 55 > PARTIALS FALSE > END > END > END > > Trying to show the layer I get "Fatal error: Call to a member function > on a non-object in ... on line ..." > // the line calls $mapImg->saveWebImage(); and the $mapImg is evaluated > before using map->draw PHP/Mapscript method. > > What could be wrong? > > Thanks very much > > Dejan Gambin > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From bartvde at XS4ALL.NL Tue Mar 22 02:13:50 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 22 Mar 2005 11:13:50 +0100 Subject: Showing Arc/Info annotations details [2] In-Reply-To: Message-ID: Hi, btw, I am not sure if you are gonna be able to show more than the geometries, something seems wrong with the attribute definitions read by OGR (all attributes have length 0). So, first get your geometry to show, i.e. remove your LABELITEM and LABEL definition from the MAP file. If you have your geometries working, try to move on to labeling. Best regards, Bart On Tue, 22 Mar 2005 11:09:45 +0100, Bart van den Eijnden wrote: > UserId: Integer (0.0) > Text: String (0.0) > Height: Real (0.0) > Level: Integer (0.0) -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From lucamarle at GMAIL.COM Tue Mar 22 02:24:44 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Tue, 22 Mar 2005 10:24:44 +0000 Subject: background with multiple composed images Message-ID: Hi list, I'm wondering if there is a easy way to manage several images that I use as optional background in my site as one, in html template. I mean, I have a background done composing several maps, each is a separate image. Which way can I select all them in html template just in one select managing them as one big images? Maybe is a easy question but I'm new in mapserver. thanks a lot luca -- luca marletta icq: 70590647 From nunoragil at GMAIL.COM Tue Mar 22 04:29:52 2005 From: nunoragil at GMAIL.COM (Nuno GIL) Date: Tue, 22 Mar 2005 12:29:52 +0000 Subject: problems using a cascaded layer - wms_name parameter In-Reply-To: <6961.212.238.227.182.1111421171.squirrel@212.238.227.182> Message-ID: Thank you once more Bart! Well, the actual name of the layer on the remote WMS is "/landmap/mosaics/landsat/l5mosaic.ecw". After reading the bug report, I have the impression that this nesting capability is only valid and accessed inside the "wms_layer_group" keyword. Am I wrong? Regards, Nuno On Mon, 21 Mar 2005 17:06:11 +0100 (CET), bartvde at xs4all.nl wrote: > Hi Nuno, > > if you use a WMS layer in Mapserver WMS client, you just use the name (as > present in the WMS capabilities between ...), not the > nesting, in your case probably: > > "wms_name" "l5mosaic.ecw" > > Or are you sayig the actual name of the layer on the remote WMS is > "/landmap/mosaics/landsat/l5mosaic.ecw"? > > The / syntax is for Mapserver as a WMS server (wms_layer_group), > indicating how it should build up its WMS capabilities with nesting. > > See: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=776 > > Hope this helps. > > Best regards, > Bart > > > Dear listers, > > I am trying to use a cascaded layer. > > I call it on my map file like this > > "wms_name" "/landmap/mosaics/landsat/l5mosaic.ecw" > > The server produces an error saying that it is unnable of displaying > > that same layer. > > Does anyone know how to deal with this issue? I do believe that the > > problem is the slash usage... > > Regards, > > Nuno > > > > From bartvde at XS4ALL.NL Tue Mar 22 04:30:00 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 22 Mar 2005 13:30:00 +0100 Subject: problems using a cascaded layer - wms_name parameter In-Reply-To: Message-ID: Hi Nuno, is the remote WMS a Mapserver, or not? Could you post a link to the GetCapabilities or attach the file if it is not too big? The / should be used in wms_layer_group if Mapserver acts as a WMS server, that's right. I would never advise anybody to use tokens or spaces etc. in wms layer names. This seems like a WMS server which uses the filepath as the default WMS layer name? Best regards, Bart On Tue, 22 Mar 2005 12:29:52 +0000, Nuno GIL wrote: > Thank you once more Bart! > > Well, the actual name of the layer on the remote WMS is > "/landmap/mosaics/landsat/l5mosaic.ecw". > After reading the bug report, I have the impression that this nesting > capability is only valid and accessed inside the "wms_layer_group" > keyword. Am I wrong? > > Regards, > Nuno > > > On Mon, 21 Mar 2005 17:06:11 +0100 (CET), bartvde at xs4all.nl > wrote: >> Hi Nuno, >> >> if you use a WMS layer in Mapserver WMS client, you just use the name >> (as >> present in the WMS capabilities between ...), not the >> nesting, in your case probably: >> >> "wms_name" "l5mosaic.ecw" >> >> Or are you sayig the actual name of the layer on the remote WMS is >> "/landmap/mosaics/landsat/l5mosaic.ecw"? >> >> The / syntax is for Mapserver as a WMS server (wms_layer_group), >> indicating how it should build up its WMS capabilities with nesting. >> >> See: >> >> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=776 >> >> Hope this helps. >> >> Best regards, >> Bart >> >> > Dear listers, >> > I am trying to use a cascaded layer. >> > I call it on my map file like this >> > "wms_name" "/landmap/mosaics/landsat/l5mosaic.ecw" >> > The server produces an error saying that it is unnable of displaying >> > that same layer. >> > Does anyone know how to deal with this issue? I do believe that the >> > problem is the slash usage... >> > Regards, >> > Nuno >> > >> >> > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From Dejan.Gambin at PULA.HR Tue Mar 22 04:51:09 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Tue, 22 Mar 2005 13:51:09 +0100 Subject: Showing Arc/Info annotations details Message-ID: I have successfully shown the Arc/Info annotations and now I have the following problem - how can I make my annotations (street names) to "follow the street direction". The annotations are shown as point layer with labeling so they are all placed horizontally. Where is the "angle" stored in Arc/Info annotation coverage? Or the text just has starting and ending points and nothing else? Is there any way to solve this problem? I have been reading about the labelangleitem parameter (thanks to Bart) but it is the item in attribute table that holds the angle and this is not my case Any help? Thanks Dejan Gambin -----Original Message----- From: Gambin Dejan Sent: Tuesday, March 22, 2005 10:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Showing Arc/Info annotations details I would like to give some details of what have I tried without a success: I have TX6/TX7 annotation files (streets.txt, streets.tat, streets.txx) located in "C:/Projekti/GIS/Pula/Streets" folder. Using ogrinfo streets I get: Had to open data source read-only. INFO: Open of `streets' using driver `AVCBin' successful. 1: streets (Point) ogrinfo -summary streets streets gives me: Had to open data source read-only. INFO: Open of `streets' using driver `AVCBin' successful. Layer name: streets Geometry: Point Feature Count: 508 Extent: (5406638.018711, 4966241.156020) - (5411552.448154, 4973139.175613) Layer SRS WKT: (unknown) UserId: Integer (0.0) Text: String (0.0) Height: Real (0.0) Level: Integer (0.0) My mapfile loooks like: LAYER NAME "streets" STATUS ON CONNECTIONTYPE OGR CONNECTION "C:/Projekti/GIS/Pula/Streets,streets" TYPE POINT LABELITEM "Text" CLASS NAME "all" LABEL FONT "arial" TYPE truetype POSITION AUTO SIZE 8 COLOR 255 0 0 OUTLINECOLOR 55 55 55 PARTIALS FALSE END END END Trying to show the layer I get "Fatal error: Call to a member function on a non-object in ... on line ..." // the line calls $mapImg->saveWebImage(); and the $mapImg is evaluated before using map->draw PHP/Mapscript method. What could be wrong? Thanks very much Dejan Gambin From lfilak at MEDINACO.ORG Tue Mar 22 05:24:08 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 22 Mar 2005 08:24:08 -0500 Subject: Showing Arc/Info annotations details Message-ID: The following message was sent by Gambin Dejan on Tue, 22 Mar 2005 13:51:09 +0100. > I have successfully shown the Arc/Info annotations and now I have the > following problem - how can I make my annotations (street names) to > "follow the street direction". The annotations are shown as point layer > with labeling so they are all placed horizontally. Where is the "angle" > stored in Arc/Info annotation coverage? Or the text just has starting > and ending points and nothing else? Is there any way to solve this > problem? I have been reading about the labelangleitem parameter (thanks > to Bart) but it is the item in attribute table that holds the angle and > this is not my case Dejan, The annotation angle in Arc coverages is kept in a psuedo item named $ANGLE. If you have access to Arcedit you can add an attribute to the annotation subclass and 'sel all; calc angle = $angle'. However I don't have any experience with using that attribute in MS for rotation purposes. We have a sizeable annotation layer that we convert to a line shapefile, to maintain at least a two-point angle, and then label the line features without drawing the line work. A sample of the conversion routine is in the wiki: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex10 Lowell From webloper at INFOGEO.CH Tue Mar 22 05:21:38 2005 From: webloper at INFOGEO.CH (Webloper Dedouze) Date: Tue, 22 Mar 2005 07:21:38 -0600 Subject: pdf output on mapserver 4.4 (raster rendering color) Message-ID: Hi, I'm outputting a map with this outputformat: OUTPUTFORMAT NAME pdf1 MIMETYPE "application/x-pdf" DRIVER pdf IMAGEMODE RGB END All vectors are very good outputted, but it seems that raster (orthophoto) are only outputted with 8 bits colors. It's rather bad.. Isn't it possible to output raster images at 32 or 24 bits with the IMAGEMODE RGB or IMAGEMODE RGBA mode?? Does pdf output support that? Thanks in advance! R?my From woodbri at SWOODBRIDGE.COM Tue Mar 22 06:11:20 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 22 Mar 2005 09:11:20 -0500 Subject: background with multiple composed images In-Reply-To: <8b5020105032202245a100a15@mail.gmail.com> Message-ID: Instead of thinking about them as a background, make them into a layer with a tileindex. You can use gdaltindex to make the tileindex. then just make this layer the first layer in your mapfile. -Steve W. luca marletta wrote: > Hi list, > I'm wondering if there is a easy way to manage several images that I > use as optional background in my site as one, in html template. > I mean, I have a background done composing several maps, each is a > separate image. Which way can I select all them in html template just > in one select managing them as one big images? > > Maybe is a easy question but I'm new in mapserver. > > thanks a lot > > luca > -- > luca marletta icq: 70590647 > From fwarmerdam at GMAIL.COM Tue Mar 22 06:18:54 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 22 Mar 2005 09:18:54 -0500 Subject: Showing Arc/Info annotations details [2] In-Reply-To: Message-ID: On Tue, 22 Mar 2005 11:13:50 +0100, Bart van den Eijnden wrote: > Hi, > > btw, I am not sure if you are gonna be able to show more than the > geometries, something seems wrong with the attribute definitions read by > OGR (all attributes have length 0). > > So, first get your geometry to show, i.e. remove your LABELITEM and LABEL > definition from the MAP file. If you have your geometries working, try to > move on to labeling. > > Best regards, > Bart > > On Tue, 22 Mar 2005 11:09:45 +0100, Bart van den Eijnden > wrote: > > > UserId: Integer (0.0) > > Text: String (0.0) > > Height: Real (0.0) > > Level: Integer (0.0) Bart, Zero length attributes really means "length unknown" to OGR. For floats and integers it carries things around as a double or int. Strings are carried around with arbitrary length. Floats will be formatted (by OGRFeature::GetAsString()) with "%.16g". So, I don't think this means there is a problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jdport at VERITIME.COM Tue Mar 22 07:06:55 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Tue, 22 Mar 2005 10:06:55 -0500 Subject: making efficient map layers Message-ID: Last week I ran into a problem where I created a tiled layer of tiger line roads, and when I tried to view the whole area of my map (which is basically the NE portion of the US from pennsylvania up to Maine) it caused the server to use up all of its memory and start shutting down processes. It was pointed out to me, that even though I was only displaying one particular road type which by itself wouldn't be a lot of data, mapserver still had to inspect every road in the shapefile to match it to my expression and therefore was very inefficient. So, if I'm understanding correctly, a better way to do it would be to break the shapefiles down into individual road types and have a separate layer for each type... for example I could have an interstate shapefile, a state highway shapefile, a major roads shapefile, and a minor roads shapefile and make a separate layer for each of them. How can I pre-process those shapefiles to separate them into their components? I don't necessarily have to tile them, I was only doing that so that I could combine all of the shapefiles into one (the tiger shapefiles are per-county so there are a ton of them). If there is another way to combine those into one I could do that as well. I just don't know how to break the tiger road shapefiles into individual road types. Thanks for any suggestions and info, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Tue Mar 22 07:12:12 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Tue, 22 Mar 2005 16:12:12 +0100 Subject: Mapserver rpm mandrake 10.1 In-Reply-To: <425ec3b6050322003911951af9@mail.gmail.com> Message-ID: Hi Lluis, have you found out ? Le mardi 22 Mars 2005 09:39, Llu?s Garcia i Mestres a ?crit?: > Hi, I've achieved to compile php and mapserver by myself but I get two > erros: > - I add the following lines to httpd.conf but apache doesn't reconize php. > AddType application/x-httpd-php-cgi .php .php4 .php3 .phtml > Action application/x-httpd-php-cgi /cgi-bin/php You have to restart apache for any httpd.conf change to be considered. On mandrake, it should be either the command: #service httpd restart or #/etc/rc.d/init.d/httpd restart According to your apache conf file, the php filename must be "php" and be in the /cgi-bin directory of your web server (should be /var/www/cgi-bin/ on mandrake). What are the execution rights for this file ? Put a simple phpinfo.php page on your server and open it in your brower. At the begining, you should find this line : Server API : CGI > - On the other hand, I builded a map, just with mapserver, with > different layers and the position looks ok. But when I click on the > map using query or zoom function, it seems like mapserver send a point > 2-3 cm upper from where i have clicked. This is strange, there was a similar post a few days ago. Try to find it back on see if / how it has been solved. I would say troubles in your map EXTENT or SIZE ? Blaise From fwarmerdam at GMAIL.COM Tue Mar 22 07:17:34 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 22 Mar 2005 10:17:34 -0500 Subject: making efficient map layers In-Reply-To: <001601c52ef0$dbaa7fa0$1bf2fbd0@solo> Message-ID: On Tue, 22 Mar 2005 10:06:55 -0500, Jeff Portwine wrote: > So, if I'm understanding correctly, a better way to do it would be to break > the shapefiles down into individual road types and have a separate layer for > each type... for example I could have an interstate shapefile, a state > highway shapefile, a major roads shapefile, and a minor roads shapefile and > make a separate layer for each of them. Jeff, Yes, I believe that would be an appropriate approach. There are lots of tools that could be used to accomplish this. If I were doing it, I would use ogr2ogr and it's -where argument to apply an attribute based filter. eg. ogr2ogr out.shp in.shp -where CFCC=A13 You will presumably need to wrap this in appropriate scripts to invoke it on each of your files in sequence. You could also: o Write a python script using OGR to do something similar. o Use MapScript and use it's built in shapefile support, possibly o Use ArcGIS or ArcView (with appropriate scripts) o Use FME and do it with the visual modelling environment. o Load the data into PostGIS and use SQL to break things up. ... well, you get my point. There are plenty of ways. If you aren't handy with scripting this might be an onerous task. I would suggest you *get handy* with scripting, or look into hiring someone to help out on the data processing task. 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 jdport at VERITIME.COM Tue Mar 22 07:52:32 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Tue, 22 Mar 2005 10:52:32 -0500 Subject: making efficient map layers Message-ID: Thanks for the information... I can write a script I'm sure, but I have never used the ogr2ogr utility and I'm not sure how it works... is there documentation for that? Or if Mapscript could be used that might be even better, though I really don't know how I could create new shapefiles from old ones but I'll look into it. Is it possible using ogr2ogr to output (as in your example) CFCC=A13 from every county shapefile into a single shapefile, or would I have to create separate output shapefiles for every county and then tile them? -Jeff > ogr2ogr out.shp in.shp -where CFCC=A13 > > You will presumably need to wrap this in appropriate scripts to > invoke it on each of your files in sequence. You could also: > o Write a python script using OGR to do something similar. > o Use MapScript and use it's built in shapefile support, possibly > o Use ArcGIS or ArcView (with appropriate scripts) > o Use FME and do it with the visual modelling environment. > o Load the data into PostGIS and use SQL to break things up. > > ... well, you get my point. There are plenty of ways. > > If you aren't handy with scripting this might be an onerous task. > I would suggest you *get handy* with scripting, or look into hiring > someone to help out on the data processing task. > > 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 charu24 at GMAIL.COM Tue Mar 22 07:48:49 2005 From: charu24 at GMAIL.COM (Charu Verma) Date: Tue, 22 Mar 2005 10:48:49 -0500 Subject: Data Retrieval Message-ID: Hi All, I have my interface ready but want to make it interactive i.eI want the user to bable to click on a point and the interface could actually display the data for that point.I have a dbffile with me including shpand shx through which I designed the map interface. Do I need to install soem othe rapplictions coz I have ms4w with php/mapscript installed successfully. Please help me go ahead with this. charu From woodbri at SWOODBRIDGE.COM Tue Mar 22 08:13:06 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 22 Mar 2005 11:13:06 -0500 Subject: making efficient map layers In-Reply-To: <002101c52ef7$3b2816d0$1bf2fbd0@solo> Message-ID: Jeff, Putting all the data into huge single shapefiles is a BAD idea. The whole idea behind tileindexs is to make things faster when you do not need all the data, ie zoomed in. I have all the tiger data for the whole US 3300+ counties and about 10 layers per county and it is very fast. For an example, browse around: http://imaptools.com/tiger/ So my data is in roughly 33,000 shapfiles. Have lots of shape files is good. In fact, for some commercial data sets where the data is delivered in a huge single shapefile, I actually break it into a lots of smaller shapefiles and tile the data. There is an OpenSource utility for download at http://imaptools.com/?tab=4 (ie: shp2tile) There are a lot of details about making everything fast, but I think the are two big keys related to street data are: One, separate out the CFCC = /^A[456]/ into a separate file/layer that only gets displayed when you are zoomed in. Two, for when you are zoomed out you need a generalized road network and it might be better to use something from the National Map of other non-tiger source. The problem with tiger is that it is a millions of little tiny segments most of which are less than a pixel when you are zoomed out. A generalized layer is an approximation of that with a whole lot less points. -Steve W. http://imaptools.com/ Jeff Portwine wrote: > Thanks for the information... > I can write a script I'm sure, but I have never used the ogr2ogr utility > and > I'm not sure how it works... is there documentation for that? Or if > Mapscript could be used that might be even > better, though I really don't know how I could create new shapefiles from > old ones but I'll look into it. > > Is it possible using ogr2ogr to output (as in your example) CFCC=A13 from > every county shapefile into a single shapefile, or would I have to create > separate output shapefiles for every county and then tile them? > > -Jeff > > >> ogr2ogr out.shp in.shp -where CFCC=A13 >> >> You will presumably need to wrap this in appropriate scripts to >> invoke it on each of your files in sequence. You could also: >> o Write a python script using OGR to do something similar. >> o Use MapScript and use it's built in shapefile support, possibly >> o Use ArcGIS or ArcView (with appropriate scripts) >> o Use FME and do it with the visual modelling environment. >> o Load the data into PostGIS and use SQL to break things up. >> >> ... well, you get my point. There are plenty of ways. >> >> If you aren't handy with scripting this might be an onerous task. >> I would suggest you *get handy* with scripting, or look into hiring >> someone to help out on the data processing task. >> >> 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 ray at SUSTAINABLE.IE Tue Mar 22 08:03:40 2005 From: ray at SUSTAINABLE.IE (Ray) Date: Tue, 22 Mar 2005 10:03:40 -0600 Subject: Problems reading a TIF file (newbie question) Message-ID: I am having problems displaying a TIF file using PHP mapscript, I suspect that the problem lies in the map file. gdalinfo PAGE48.TIF (name of the file) gives: Driver: GTiff/GeoTIFF Size is 4724, 6300 Coordinate System is `' Metadata: TIFFTAG_DOCUMENTNAME=JOB_NAME TIFFTAG_IMAGEDESCRIPTION=DKB200:[OS50000.DUBGUIDE_4TH_MAPS]PAGE_CLIP_48.TIF; TIFFTAG_SOFTWARE=Barco Graphics - V9.2 TIFFTAG_XRESOLUTION=600 TIFFTAG_YRESOLUTION=600 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 6300.0) Upper Right ( 4724.0, 0.0) Lower Right ( 4724.0, 6300.0) Center ( 2362.0, 3150.0) Band 1 Block=4724x8 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 255,255,255,255 1: 59,43,47,255 2: 0,137,159,255 <...cut...> 254: 255,255,255,255 255: 255,255,255,255 I used the TAB file to get the map EXTENT and projection: $ cat Page48.TAB !table !version 300 !charset WindowsLatin1 Definition Table File "./PAGE48.TIF" Type "RASTER" (318000,232000) (1,0) Label "Pt 1", (321000,232000) (4723,0) Label "Pt 2", (321000,228000) (4723,6296) Label "Pt 3", (318000,228000) (1,6295) Label "Pt 4" CoordSys Earth Projection 8, 42, "m", -8, 53.5, 1.000035, 200000, 250000 Units "m" I also have a TFW file: $ cat Page48.TFW 0.635324015247776 0 0 -0.635324015247776 317999.682337992 231999.682337992 My MAP file looks like this: MAP NAME PAGE48 STATUS ON SIZE 472 630 IMAGETYPE PNG EXTENT 318000 228000 321000 232000 UNITS METERS FONTSET "./fonts/fonts.list" SHAPEPATH "./data/" IMAGECOLOR 15 158 120 PROJECTION "proj=utm" "ellps=mod_airy" "lon_0=-8" "lat_0=53.5" END WEB IMAGEPATH "/var/www/html/mapscript/gmap-ms40/greenmap/test/" IMAGEURL "/mapscript/gmap-ms40/greenmap/test/" END LAYER DATA "./data/PAGE48.TIF" TYPE RASTER END LAYER NAME "test text" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 60 10 END TEXT "This text should appear at the top of the image." END CLASS LABEL TYPE truetype FONT arial SIZE 12 POSITION CR COLOR 0 0 0 END END END END And my code looks like this: draw(); $image_url = $image->saveWebImage(MS_PNG, 0, 0, -1); $error = ms_GetErrorObj (); print ("$error->code"); while ($error && $error->code != MS_NOERR) { printf ("Error in %s: %s
\n", $error->routine, $error->message); $error = $error->next(); } echo "width height=$map->height>"; ?> I get a nice green background with the text as I expected, but I'd really like to see the map too... Any ideas about what I'm doing wrong gratefully received. Thanks, Ray From fwarmerdam at GMAIL.COM Tue Mar 22 08:25:18 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 22 Mar 2005 11:25:18 -0500 Subject: Problems reading a TIF file (newbie question) In-Reply-To: Message-ID: On Tue, 22 Mar 2005 10:03:40 -0600, Ray wrote: > I am having problems displaying a TIF file using PHP mapscript, I suspect > that the problem lies in the map file. > > gdalinfo PAGE48.TIF (name of the file) gives: > $ cat Page48.TFW > 0.635324015247776 > 0 > 0 > -0.635324015247776 > 317999.682337992 > 231999.682337992 Ray, I am guessing you are on Unix or Linux based on your use of the cat command. Unix and Linux are generally case sensitive with regard to filenames, so you will need to rename your file PAGE48.TFW if you want it to be found and associated with PAGE48.TIF. In fact, I would suggest you rename them both page48.tif and page48.wld for simplicity and clarity. 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 fwarmerdam at GMAIL.COM Tue Mar 22 08:29:47 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 22 Mar 2005 11:29:47 -0500 Subject: making efficient map layers In-Reply-To: <002101c52ef7$3b2816d0$1bf2fbd0@solo> Message-ID: On Tue, 22 Mar 2005 10:52:32 -0500, Jeff Portwine wrote: > > Thanks for the information... > I can write a script I'm sure, but I have never used the ogr2ogr utility and > I'm not sure how it works... is there documentation for that? Jeff, OGR utility documentation is available off the OGR web page at: http://www.gdal.org/ogr > Or if Mapscript could be used that might be even > better, though I really don't know how I could create new shapefiles from > old ones but I'll look into it. I don't know how to do that off hand in mapscript, but I think it has the ability to create shapefiles. You might have to create all the fields manually. > Is it possible using ogr2ogr to output (as in your example) CFCC=A13 from > every county shapefile into a single shapefile, or would I have to create > separate output shapefiles for every county and then tile them? As Stephen Woodbridge mentions, having lots of little shapefiles with a tileindex isn't a bad thing. However, you can use the ogr2ogr -append and -update to open an existing shapefile in update mode, and append to the end of it if you really want to merge things. 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 schuyler at NOCAT.NET Tue Mar 22 09:00:43 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Tue, 22 Mar 2005 09:00:43 -0800 Subject: making efficient map layers In-Reply-To: <42404412.9010902@swoodbridge.com> Message-ID: * On 22-Mar-2005 at 8:11AM PST, Stephen Woodbridge said: > Two, for when you are zoomed out you need a generalized road network > and it might be better to use something from the National Map of > other non-tiger source. The problem with tiger is that it is a > millions of little tiny segments most of which are less than a pixel > when you are zoomed out. A generalized layer is an approximation of > that with a whole lot less points. I have some Python code that implements Douglad-Peucker simplification for polylines in OGR. If anyone wants to remind me to do so, I'll polish it off and I'll offer it up as an example Python script for the GDAL distro. SDE From lucssouza at YAHOO.COM.BR Tue Mar 22 09:49:16 2005 From: lucssouza at YAHOO.COM.BR (Luciano Souza) Date: Tue, 22 Mar 2005 14:49:16 -0300 Subject: unsuscribe In-Reply-To: 6667 Message-ID: --------------------------------- Yahoo! Mail - Com 250MB de espa?o. Abra sua conta! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Tue Mar 22 10:20:16 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 22 Mar 2005 11:20:16 -0700 Subject: Problems reading a TIF file (newbie question) Message-ID: Ray, Try removing the PROJECTION definition from your map file. Since you are not moving data from one world coordinate system to another, the PROJECTION definition is not needed. But if you want to do coordinate system stuff, likely the correct PROJECTION definition (for the tiff file) would look like: PROJECTION "proj=tmerc" "ellps=mod_airy" "lon_0=-8" "lat_0=53.5" "k=1.000035" "x_0=200000" "y_0=250000" END Brent Fraser ----- Original Message ----- From: "Ray" To: Sent: Tuesday, March 22, 2005 9:03 AM Subject: [UMN_MAPSERVER-USERS] Problems reading a TIF file (newbie question) > I am having problems displaying a TIF file using PHP mapscript, I suspect > that the problem lies in the map file. > > gdalinfo PAGE48.TIF (name of the file) gives: > > Driver: GTiff/GeoTIFF > Size is 4724, 6300 > Coordinate System is `' > Metadata: > TIFFTAG_DOCUMENTNAME=JOB_NAME > TIFFTAG_IMAGEDESCRIPTION=DKB200:[OS50000.DUBGUIDE_4TH_MAPS]PAGE_CLIP_48.TIF; > TIFFTAG_SOFTWARE=Barco Graphics - V9.2 > TIFFTAG_XRESOLUTION=600 > TIFFTAG_YRESOLUTION=600 > TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) > Corner Coordinates: > Upper Left ( 0.0, 0.0) > Lower Left ( 0.0, 6300.0) > Upper Right ( 4724.0, 0.0) > Lower Right ( 4724.0, 6300.0) > Center ( 2362.0, 3150.0) > Band 1 Block=4724x8 Type=Byte, ColorInterp=Palette > Color Table (RGB with 256 entries) > 0: 255,255,255,255 > 1: 59,43,47,255 > 2: 0,137,159,255 > > <...cut...> > > 254: 255,255,255,255 > 255: 255,255,255,255 > > I used the TAB file to get the map EXTENT and projection: > > $ cat Page48.TAB > !table > !version 300 > !charset WindowsLatin1 > > Definition Table > File "./PAGE48.TIF" > Type "RASTER" > (318000,232000) (1,0) Label "Pt 1", > (321000,232000) (4723,0) Label "Pt 2", > (321000,228000) (4723,6296) Label "Pt 3", > (318000,228000) (1,6295) Label "Pt 4" > CoordSys Earth Projection 8, 42, "m", -8, 53.5, 1.000035, 200000, 250000 > Units "m" > > I also have a TFW file: > > $ cat Page48.TFW > 0.635324015247776 > 0 > 0 > -0.635324015247776 > 317999.682337992 > 231999.682337992 > > My MAP file looks like this: > > MAP > NAME PAGE48 > STATUS ON > SIZE 472 630 > IMAGETYPE PNG > EXTENT 318000 228000 321000 232000 > UNITS METERS > FONTSET "./fonts/fonts.list" > SHAPEPATH "./data/" > IMAGECOLOR 15 158 120 > > PROJECTION > "proj=utm" > "ellps=mod_airy" > "lon_0=-8" > "lat_0=53.5" > END > > WEB > IMAGEPATH "/var/www/html/mapscript/gmap-ms40/greenmap/test/" > IMAGEURL "/mapscript/gmap-ms40/greenmap/test/" > END > > LAYER > DATA "./data/PAGE48.TIF" > TYPE RASTER > END > > LAYER > NAME "test text" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 60 10 > END > TEXT "This text should appear at the top of the image." > END > CLASS > LABEL > TYPE truetype > FONT arial > SIZE 12 > POSITION CR > COLOR 0 0 0 > END > END > END > END > > And my code looks like this: > > > dl ("php_mapscript.so"); > > ms_ResetErrorList(); > > $map = ms_newMapObj ("greenmap.map"); > > $image = $map->draw(); > > $image_url = $image->saveWebImage(MS_PNG, 0, 0, -1); > > $error = ms_GetErrorObj (); > > print ("$error->code"); > > while ($error && $error->code != MS_NOERR) > { > printf ("Error in %s: %s
\n", $error->routine, $error->message); > $error = $error->next(); > } > > echo "width height=$map->height>"; > > ?> > > I get a nice green background with the text as I expected, but I'd really > like to see the map too... > > Any ideas about what I'm doing wrong gratefully received. > > Thanks, > > Ray From lluisgm at GMAIL.COM Tue Mar 22 10:33:03 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Tue, 22 Mar 2005 19:33:03 +0100 Subject: Mapserver rpm mandrake 10.1 In-Reply-To: <200503221612.12945.bpicinbono@worldonline.fr> Message-ID: Llu?s Garcia i Mestres to blaise More options 7:32pm (0 minutes ago) Hi Blaise, Finally I found it. I was following the compilation example of Red Hat. http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat9AndMapserver40 In this example you see: ------------------------------------------------------------------ cd php-4.3.3 make clean ./configure --enable-shared --with-regex=system --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib --with-gd=/usr/local --with-freetype-dir=/usr --enable-force-cgi-redirect --enable-dbase --with-pdflib --with-mysql --with-config-file-path=/usr/local/php433/ --prefix=/usr/local/php433 make sudo cp sapi/cgi/php /var/www/cgi-bin/php433 sudo make install sudo cp php.ini-dist /usr/local/php433/php.ini ------------------------------------------------------------------- The error was to make "cp sapi/cgi/php /var/www/cgi-bin/php433" before make install. Someone should change it. The orders in httpd2.conf > > AddType application/x-httpd-php-cgi .php .php4 .php3 .phtml > > Action application/x-httpd-php-cgi /cgi-bin/php were ok. About the query and zoom problem, do you remember when it was posted this trouble before? I've looking this last month and I couldn't find it. Llu?s On Tue, 22 Mar 2005 16:12:12 +0100, blaise wrote: > Hi Lluis, have you found out ? > > Le mardi 22 Mars 2005 09:39, Llu?s Garcia i Mestres a ?crit : > > Hi, I've achieved to compile php and mapserver by myself but I get two > > erros: > > - I add the following lines to httpd.conf but apache doesn't reconize php. > > AddType application/x-httpd-php-cgi .php .php4 .php3 .phtml > > Action application/x-httpd-php-cgi /cgi-bin/php > You have to restart apache for any httpd.conf change to be considered. On > mandrake, it should be either the command: > #service httpd restart > or > #/etc/rc.d/init.d/httpd restart > According to your apache conf file, the php filename must be "php" and be in > the /cgi-bin directory of your web server (should be /var/www/cgi-bin/ on > mandrake). What are the execution rights for this file ? > Put a simple phpinfo.php page on your server and open it in your brower. At > the begining, you should find this line : > Server API : CGI > > > - On the other hand, I builded a map, just with mapserver, with > > different layers and the position looks ok. But when I click on the > > map using query or zoom function, it seems like mapserver send a point > > 2-3 cm upper from where i have clicked. > This is strange, there was a similar post a few days ago. Try to find it back > on see if / how it has been solved. I would say troubles in your map EXTENT > or SIZE ? > Blaise > From ray at SUSTAINABLE.IE Tue Mar 22 10:42:27 2005 From: ray at SUSTAINABLE.IE (Ray Edge) Date: Tue, 22 Mar 2005 12:42:27 -0600 Subject: Problems reading a TIF file (newbie question) Message-ID: Brent, Thanks for your suggestion, no luck I'm afraid. The original tiff file is quite large (4724 x 6300 pixels), and I'm trying to display it in a much smaller window - what effect does this have? Ray On Tue, 22 Mar 2005 11:20:16 -0700, Brent Fraser wrote: >Ray, > > Try removing the PROJECTION definition from your map file. Since you are >not moving data from one world coordinate system to another, the PROJECTION >definition is not needed. > > But if you want to do coordinate system stuff, likely the correct >PROJECTION definition (for the tiff file) would look like: > > PROJECTION > "proj=tmerc" > "ellps=mod_airy" > "lon_0=-8" > "lat_0=53.5" > "k=1.000035" > "x_0=200000" > "y_0=250000" > END > >Brent Fraser > > > >----- Original Message ----- >From: "Ray" >To: >Sent: Tuesday, March 22, 2005 9:03 AM >Subject: [UMN_MAPSERVER-USERS] Problems reading a TIF file (newbie question) > > From bpicinbono at WORLDONLINE.FR Tue Mar 22 10:48:26 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Tue, 22 Mar 2005 19:48:26 +0100 Subject: Mapserver rpm mandrake 10.1 In-Reply-To: <425ec3b6050322103352e57d5f@mail.gmail.com> Message-ID: Le mardi 22 Mars 2005 19:33, Llu?s Garcia i Mestres a ?crit?: > Llu?s Garcia i Mestres to blaise > About the query and zoom problem, do you remember when it was posted > this trouble before? I've looking this last month and I couldn't find > it. Nope, can't find it back. It was a few days ago, I think, but maybe it was yours ! ? > - On the other hand, I builded a map, just with mapserver, with > different layers and the position looks ok. But when I click on the > map using query or zoom function, it seems like mapserver send a point > 2-3 cm upper from where i have clicked. Check your image size and map extent. This thread deals with a similar trouble : "PHPMapScript : pixels to geo problem using dynamic symbols" (7 march) As Eric Bridger said : Pick a width or a height such that: width / height = (maxx - minxx) / (maxy - minx) Is it the case with your settings ? blaise From ray at SUSTAINABLE.IE Tue Mar 22 10:48:13 2005 From: ray at SUSTAINABLE.IE (Ray) Date: Tue, 22 Mar 2005 12:48:13 -0600 Subject: Problems reading a TIF file (newbie question) Message-ID: Frank, I am using Linux Fedora Core2, should have said so. I tried renaming to lowercase, changed the name of the .tfw file to .wld (why should I do that?) and changed all references to PAGE48/Page48 to page48. Still didn't work, but thanks for the input. Ray On Tue, 22 Mar 2005 11:25:18 -0500, Frank Warmerdam wrote: >On Tue, 22 Mar 2005 10:03:40 -0600, Ray wrote: >> I am having problems displaying a TIF file using PHP mapscript, I suspect >> that the problem lies in the map file. >> >> gdalinfo PAGE48.TIF (name of the file) gives: > >> $ cat Page48.TFW >> 0.635324015247776 >> 0 >> 0 >> -0.635324015247776 >> 317999.682337992 >> 231999.682337992 > >Ray, > >I am guessing you are on Unix or Linux based on your use of the >cat command. Unix and Linux are generally case sensitive with >regard to filenames, so you will need to rename your file PAGE48.TFW >if you want it to be found and associated with PAGE48.TIF. > >In fact, I would suggest you rename them both page48.tif and page48.wld >for simplicity and clarity. > >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 jdport at VERITIME.COM Tue Mar 22 10:53:04 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Tue, 22 Mar 2005 13:53:04 -0500 Subject: shapefile class declaration Message-ID: Can anybody tell me what the different "types" of shapefiles would represent? The documentation lists them but doesn't describe them. I'd guess that the MS_SHP_POLYGON would be a set of points that defines a closed shape while the MS_SHP_MULTIPOINT would be points defining lines (such as roads or rivers or whatever).... Would MS_SHP_ARC then be an ESRI type shapefile? And what would MS_SHP_POINT be? That sounds like a single point but why would you create a shapefile for a single point? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Tue Mar 22 11:02:25 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Tue, 22 Mar 2005 20:02:25 +0100 Subject: Problems reading a TIF file (newbie question) In-Reply-To: Message-ID: Le mardi 22 Mars 2005 19:48, Ray a ?crit?: > I am using Linux Fedora Core2, should have said so. I tried renaming to > lowercase, changed the name of the .tfw file to .wld (why should I do > that?) and changed all references to PAGE48/Page48 to page48. Still didn't > work, but thanks for the input. Still having the raster not showing ? Shouldn't you have a STATUS ON line in the raster section of your mapfile ? And a NAME line as well ? Raster doc tells : How are rasters added to a Map file? A simple raster layer declaration looks like this. The DATA file is interpreted relative to the SHAPEPATH, much like shapefiles. LAYER NAME "JacksonvilleNC_CIB" DATA "Jacksonville.tif" TYPE RASTER STATUS ON END Souldn't you have an OUTPUTFORMATOBJECT section as wel in your mapfile ? blaise From fwarmerdam at GMAIL.COM Tue Mar 22 11:01:58 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 22 Mar 2005 14:01:58 -0500 Subject: shapefile class declaration In-Reply-To: <004f01c52f10$72fb9640$1bf2fbd0@solo> Message-ID: On Tue, 22 Mar 2005 13:53:04 -0500, Jeff Portwine wrote: > > > Can anybody tell me what the different "types" of shapefiles would > represent? The documentation lists them but doesn't describe them. > > I'd guess that the MS_SHP_POLYGON would be a set of points that defines a > closed shape while the MS_SHP_MULTIPOINT would be points defining lines > (such as roads or rivers or whatever).... > Would MS_SHP_ARC then be an ESRI type shapefile? And what would > MS_SHP_POINT be? That sounds like a single point but why would you create a > shapefile for a single point? Jeff, MS_SHP_POINT means each feature has a single associated point, not that there is only a single point in the whole file. MS_SHP_MULTIPOINT is when you have a set of points associated with a feature, but not generally any lines drawn between them. This is rarely used. MS_SHP_ARC is a normal polyline file for roads and such. 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 woodbri at SWOODBRIDGE.COM Tue Mar 22 11:02:57 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 22 Mar 2005 14:02:57 -0500 Subject: shapefile class declaration In-Reply-To: <004f01c52f10$72fb9640$1bf2fbd0@solo> Message-ID: http://shapelib.maptools.org/ Scrool down to "Other Resources" and get a copy of the shapefile specification. -Steve Jeff Portwine wrote: > > Can anybody tell me what the different "types" of shapefiles would > represent? The documentation lists them but doesn't describe them. > > I'd guess that the MS_SHP_POLYGON would be a set of points that defines > a closed shape while the MS_SHP_MULTIPOINT would be points defining > lines (such as roads or rivers or whatever).... > Would MS_SHP_ARC then be an ESRI type shapefile? And what would > MS_SHP_POINT be? That sounds like a single point but why would you > create a shapefile for a single point? > > Thanks! From bfraser at GEOANALYTIC.COM Tue Mar 22 11:06:27 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 22 Mar 2005 12:06:27 -0700 Subject: Problems reading a TIF file (newbie question) Message-ID: Ray, The size of the tiff file is ok, and it's mapserver job to resample it to your smaller window. I notice that your LAYER definition is a little terse. You may need to include a NAME and STATUS: LAYER NAME "MyLayer" STATUS DEFAULT DATA "./data/PAGE48.TIF" TYPE RASTER END You may want to test out the map file using MapServer's shp2img command line program (http://mapserver.gis.umn.edu/utils.html) Brent ----- Original Message ----- From: "Ray Edge" To: Sent: Tuesday, March 22, 2005 11:42 AM Subject: Re: [UMN_MAPSERVER-USERS] Problems reading a TIF file (newbie question) > Brent, > > Thanks for your suggestion, no luck I'm afraid. > > The original tiff file is quite large (4724 x 6300 pixels), and I'm trying > to display it in a much smaller window - what effect does this have? > > Ray > > > On Tue, 22 Mar 2005 11:20:16 -0700, Brent Fraser > wrote: > > >Ray, > > > > Try removing the PROJECTION definition from your map file. Since you are > >not moving data from one world coordinate system to another, the PROJECTION > >definition is not needed. > > > > But if you want to do coordinate system stuff, likely the correct > >PROJECTION definition (for the tiff file) would look like: > > > > PROJECTION > > "proj=tmerc" > > "ellps=mod_airy" > > "lon_0=-8" > > "lat_0=53.5" > > "k=1.000035" > > "x_0=200000" > > "y_0=250000" > > END > > > >Brent Fraser > > > > > > > >----- Original Message ----- > >From: "Ray" > >To: > >Sent: Tuesday, March 22, 2005 9:03 AM > >Subject: [UMN_MAPSERVER-USERS] Problems reading a TIF file (newbie question) > > > > From bfraser at GEOANALYTIC.COM Tue Mar 22 11:15:34 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 22 Mar 2005 12:15:34 -0700 Subject: Problems reading a TIF file (newbie question) Message-ID: Ray, I see that Frank and blaise have already commented on the pathing and file naming. The LAYER's DATA value is relative to the SHAPEPATH, so if you have SHAPEPATH "./data/" your DATA statement should look like: DATA "PAGE48.TIF" (or DATA "page48.tif" if you've followed Frank's suggestion) I'm not a Linux guy but you may want to try SHAPEPATH "data/" as I'm not sure Mapserver recognizes "./" as a relative path... Brent ----- Original Message ----- From: "Ray Edge" To: Sent: Tuesday, March 22, 2005 11:42 AM Subject: Re: [UMN_MAPSERVER-USERS] Problems reading a TIF file (newbie question) > Brent, > > Thanks for your suggestion, no luck I'm afraid. > > The original tiff file is quite large (4724 x 6300 pixels), and I'm trying > to display it in a much smaller window - what effect does this have? > > Ray > > > On Tue, 22 Mar 2005 11:20:16 -0700, Brent Fraser > wrote: > > >Ray, > > > > Try removing the PROJECTION definition from your map file. Since you are > >not moving data from one world coordinate system to another, the PROJECTION > >definition is not needed. > > > > But if you want to do coordinate system stuff, likely the correct > >PROJECTION definition (for the tiff file) would look like: > > > > PROJECTION > > "proj=tmerc" > > "ellps=mod_airy" > > "lon_0=-8" > > "lat_0=53.5" > > "k=1.000035" > > "x_0=200000" > > "y_0=250000" > > END > > > >Brent Fraser > > > > > > > >----- Original Message ----- > >From: "Ray" > >To: > >Sent: Tuesday, March 22, 2005 9:03 AM > >Subject: [UMN_MAPSERVER-USERS] Problems reading a TIF file (newbie question) > > > > From lists at WEBMAPIT.COM.BR Tue Mar 22 11:19:59 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Tue, 22 Mar 2005 16:19:59 -0300 Subject: [postgis-users] Commercial/Large datasets - MapServer/PostGISsamplesites In-Reply-To: Message-ID: Hi folks, Thanks a lot for all the replies you've done and sorry the late answer! I think now I got enough arguments to mess with their heads, and I'm quite impressioned about the quality of services using MapServer around the world. Thank you again. best regards, Eduardo Patto Kanegae Treinamento & Consultoria em UMN MapServer, PostGIS e FreeGIS Software http://www.webmapit.com.br Skype: eduardopattokanegae ICQ: 303747254 MSN: eduardo_patto~at~hotmail.com Phone: +55(16)9994-2928 ***Fim da Mensagem / End of Message *** Chapman, Martin escreveu: >Eduardo, > >We manage very large datasets (tens of terabytes) of raster and vector >data as well. Our clients are the DOD, USGS, USDA, Army Corp of >Engineers, Navy, etc... . We use open source exclusively for our >subsystems, which includes products like PostgreSQL, PostGIS, OSSIM, >GDAL, Proj4, OpenMap, RedHat Linux, and more. Our solutions are rock >solid and out-perform our "commercial" competitors in both speed and >quality of product. I came from a Microsoft world and was amazed at the >high caliber software the open source community creates. In my mind the >question isn't an example of open source that shows power and trust, but >rather what commercial products out there can show the power and trust >that open source has demonstrated to our company. > >Martin Chapman >Cell 303-885-1936 >Office 303-495-6300 x326 >mchapman at sanz.com >http://www.sanz.com > > >-----Original Message----- >From: postgis-users-bounces at postgis.refractions.net >[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of >Gregory S. Williamson >Sent: Friday, March 18, 2005 3:11 PM >To: PostGIS Users Discussion; MAPSERVER-USERS at LISTS.UMN.EDU; PostGIS >Users Discussion >Subject: RE: [postgis-users] Commercial/Large datasets >MapServer/PostGISsamplesites > > >Eduardo, > >A belated response ... > >Our company uses postGIS for storing data about our imagery (about 18 >terabytes of image data in some 879000 separate files, growing at a rate >of almost 2 terabytes a week currently), and for a fairly substantive >database of vector data (detailed US streets, detailed parcels for >various counties in the US, watersheds and stream and lake data for the >country, flood data, etc.). Both image and vector will grow >substantially as we add more data outside of the US. > >Currently the Mapserver implementations are limited to a few of our >customers, but in the next few months we'll be using Mapserver to serve >up imagery with vector data to the general public (currently the >equivalent service is running over 250k hits a day). The new service >probably won't be quite that heavy at first. We are currently doing load >testing and related work. > >All of this used to be Informix based; cost was the main reason for >migrating to Open Source. > >Not sure if this is heavy enough use to reassure your customer or not. > >Greg Williamson >DBA >GlobeXplorer LLC >-----Original Message----- >From: Eduardo Patto Kanegae [mailto:lists at webmapit.com.br] >Sent: Thu 3/17/2005 7:24 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU; PostGIS Users Discussion >Cc: >Subject: [postgis-users] Commercial/Large datasets >MapServer/PostGIS samplesites >Hi folks, > >Here I am again trying to convince a traditional "$pay software" >consumer to accept free software... :-) > >I'm looking for commercial websites or larget data set website to use as > >example for the power, and trust of MapServer and PostGIS features. > >Can anybody suggest one? > >Best. > > > From Saul.Farber at STATE.MA.US Tue Mar 22 13:38:40 2005 From: Saul.Farber at STATE.MA.US (Farber, Saul (ENV)) Date: Tue, 22 Mar 2005 16:38:40 -0500 Subject: SDE Rasters Message-ID: Hello all, So I'm working my way through using SDE as a datasource, and so far have had much luck. Vector features are drawing just fine, but I can't seem to get Rasters to produce anything meaningful. First off, I'm not totally sure how these rasters were loaded, but I seem to have two types of SDE raster layers. Type "A" layers have the following column structure: Column Type NAME SE_STRING IMAGE SE_RASTER I can't find anything spatial about these layers (no FOOTPRINT, no SHAPE, no nothing) so I'm laying them aside for now... Type "B" layers, however, look more promising. They have the following structure: Column Type OID SE_INT32 FOOTPRINT SE_SHAPE RASTER SE_RASTER Aha! These look great. So I setup my mapfile as so: LAYER TYPE RASTER NAME rastertest CONNECTIONTYPE SDE CONNECTION "localhost,port:5151,xxxx,xxxx,xxxx" DATA "IMG_ELEV5K_I,FOOTPRINT,SDE.DEFAULT" STATUS ON DEBUG ON PROCESSING "BANDS=4,5,6,7" #PROCESSING "BANDS=1,2,3,4" PROCESSING "RASTERCOLUMN=RASTER" END But I'm disheartened to see a blank image drawn. I've tried with both BANDS= instructions. Debugging is on, and compiled-in, but the debug log is pretty empty. It contains: [Tue Mar 22 16:24:19 2005].768734 msDrawMap(): Drawing Label Cache, 0.000s [Tue Mar 22 16:24:19 2005].769215 msDrawMap() total time: 0.007s Tue Mar 22 16:24:19 2005,25129,146.243.227.89,test,3,33861.260000 757273.583750 330835.130000 980003.986250,-1.000000 -1.000000,rastertest ,normal execution And that's it. I know this is not much to go on, but while I'm not anything remotely close to an expert in C. However, I can make changes and recompile the code just fine. Any suggestions on where to look? Where to put more debugging in? It would appear that the code isn't even getting far enough along to reach the SDE layer draws, due to the lack of debug output from those sections. Thanks much. --saul GIS Web Services MassGIS - Executive Office of Environmental Affairs 251 Causeway Street 5th Floor Boston, MA 02114 617-626-1145 From charu24 at GMAIL.COM Tue Mar 22 18:07:57 2005 From: charu24 at GMAIL.COM (Charu Verma) Date: Tue, 22 Mar 2005 20:07:57 -0600 Subject: Parsing Error in Zooming Message-ID: hi all, My mapfile is noname.map I tried running the following script but it always gives me this parsing error on line 9.I have checked everything but am still not able to figure out where the problem lies.Please help me. Here's my code for zooming and panning: setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $my_point = ms_newpointObj(); $my_point->setXY($HTTP_POST_VARS["noname_x"],$HTTP_POST_VARS["noname_y"]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0],$extent_to_set [1], $extent_to_set[2],$extent_to_set[3]); $zoom_factor = $HTTP_POST_VARS["zoom"]*$HTTP_POST_VARS["zsize"]; if ($zoom_factor == 0) { $zoom_factor = 1; $check_pan = "CHECKED"; $check_zout = ""; $check_zin = ""; } else if ($zoom_factor < 0) { $check_pan = ""; $check_zout = "CHECKED"; $check_zin = ""; } else { $check_pan = ""; $check_zout = ""; $check_zin = "CHECKED"; } $val_zsize = abs($zoom_factor); $map->zoompoint($zoom_factor,$my_point,$map->width,$map->height, $my_extent); } $image=$map->draw(); $image_url=$image->saveWebImage(); $extent_to_html = $map->extent->minx." ".$map->extent- >miny." " .$map->extent->maxx." ".$map->extent->maxy; ?> Map 2
L-Soft LISTSERV(R) 1.8e
>
Pan >
Zoom In >
Zoom Out >
Zoom Size
Full Extent
Here's the map file: MAP NAME "NONAME" SIZE 600 400 IMAGETYPE PNG IMAGECOLOR 200 200 200 STATUS ON EXTENT -79.762299 40.477100 -71.777000 45.015751 UNITS METERS SHAPEPATH "C:/ms4w/apache/htdocs/" WEB IMAGEPATH "C:/ms4w/apache/htdocs/" IMAGEURL"file:///C:/ms4w/apache/htdocs/" END LAYER NAME "NONAME" TYPE POLYGON STATUS ON DATA "NONAME" CLASS STYLE OUTLINECOLOR 255 255 0 COLOR 0 0 128 SYMBOL 0 END END END END Please help me out From charu24 at GMAIL.COM Tue Mar 22 18:10:48 2005 From: charu24 at GMAIL.COM (Charu Verma) Date: Tue, 22 Mar 2005 20:10:48 -0600 Subject: Data Retrieval from a DBF File Format Message-ID: Hi All, I have my interface ready but want to make it interactive i.e I want the user to b able to click on a point and the interface could actually display the data for that point.I have a dbf file with me including shp and shx through which I designed the map interface. Do I need to install some other applictions besides ms4w so as to establish a connectivity with the interface?Can anyone give me ideas of the way a script would look like? Please help me go ahead with this. charu From lehrs at ERAU.EDU Tue Mar 22 19:46:31 2005 From: lehrs at ERAU.EDU (Steve Lehr) Date: Tue, 22 Mar 2005 21:46:31 -0600 Subject: PHP Select List of Polygons Message-ID: I'm working on a script to map results from a database query to a map. My database query returns me a list of parcel id's. My shape file has those parcel Id's. I had the queryByAttributes working nicely till I tried to pass in 50 parcel id's then the getexpression, setexpression blows out I guess the string of parcel id's is to long. Now back to the board. I pass in the extents and list of parcels comes from a database, I was hoping to query the shape file by a rectangle, grab each shape object see if the parcel id associated with the shape object exists in the list, and if so do something like an addFeature(). But that does not seem to make sense since my query by rectangle is already associated with that layer. Can I query one layer by rectangle, then store those shapeids and then add the shape ids to another layer? If so, how do I turn on the individual shape ids? Do I need a classitem? expression? or can I just turn on the layer and loop over the list of shape_ids then turn on those shapes for that layer? LAYER NAME "showme" DATA parcels STATUS OFF CLASS COLOR 0 0 255 END END Thanks for your help! Steve Lehr From webloper at INFOGEO.CH Tue Mar 22 23:10:05 2005 From: webloper at INFOGEO.CH (R Baud) Date: Wed, 23 Mar 2005 08:10:05 +0100 Subject: Pdf output and fonts Message-ID: Hi all, when I output maps with "Outputformat = PDF", all is nice but when I have annotations or labels (bitmap or truetype), the map become quite big (depends, max 10mb!) is there a way to avoid this?? Thanks in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrzej.swiader at PROGEA.PL Wed Mar 23 00:57:38 2005 From: andrzej.swiader at PROGEA.PL (Andrew Swiader) Date: Wed, 23 Mar 2005 02:57:38 -0600 Subject: Red Hat & PHP/MapScripts Message-ID: Hello list, I have a problem with PHP/MapScripts compilation on Red Hat 9. When I configure MapScripts from the source file, an error message appears (see below). The error message tells me that the DG and freetype, libpng, libjpeg or libiconv are not added, but I have done this. If I am trying on the newer GD libraries (2.0.21), there is same error. Thanks for help in advance. Andrew ... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... no XPM (libXpm) library cannot be found, possibly needed for GD configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.12 or higher... checking for gdImageSetAntiAliased in -lgd... no configure: checking whether GD needs libiconv... checking for gdImageSetAntiAliased in -lgd... no checking for gdImageSetAntiAliased in -lgd... (cached) no configure: checking whether GD needs libiconv... checking for gdImageSetAntiAliased in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.12 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). From bpicinbono at WORLDONLINE.FR Wed Mar 23 05:04:55 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Wed, 23 Mar 2005 14:04:55 +0100 Subject: Data Retrieval from a DBF File Format In-Reply-To: Message-ID: Le mercredi 23 Mars 2005 03:10, Charu Verma a ?crit?: > Hi All, > I have my interface ready but want to make it interactive i.e I want > the user to b able to click on a point and the interface could actually > display the data for that point.I have a dbf file with me including > shp and shx through which I designed the map interface. > Do I need to install some other applictions besides ms4w so as to > establish a connectivity with the interface?Can anyone give me ideas of > the way a script would look like? > Please help me go ahead with this. > charu Hi, No, I don't think you have to install other applications. Have you looked at the "workshop/itasca" demo and the "gmap" demo ? They both have a query tool working pretty well. Blaise From bpicinbono at WORLDONLINE.FR Wed Mar 23 05:13:41 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Wed, 23 Mar 2005 14:13:41 +0100 Subject: Parsing Error in Zooming In-Reply-To: Message-ID: Le mercredi 23 Mars 2005 03:07, Charu Verma a ?crit?: > hi all, > My mapfile is noname.map > I tried running the following script but it always gives me this > parsing error on line 9.I have checked everything but am still not > able to figure out where the problem lies.Please help me. > Here's my code for zooming and panning: > > dl('php_mapscript_42.dll'); > > $val_zsize=3; > $check_pan="CHECKED"; > $map_path="C:\ms4w\Apache\htdocs\" ; > $map_file="NONAME.map"; > > $map=ms_newMapObj($map_path.$map_file) ; >...... >..... > Please help me out Hi I don't know if that can help but you have : > My mapfile is noname.map and > $map_file="NONAME.map"; Try to have both either in lower or upper case characters, according to your mapfile name. Blaise From bpicinbono at WORLDONLINE.FR Wed Mar 23 05:23:15 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Wed, 23 Mar 2005 14:23:15 +0100 Subject: Red Hat & PHP/MapScripts In-Reply-To: Message-ID: Le mercredi 23 Mars 2005 09:57, Andrew Swiader a ?crit?: > Hello list, > > I have a problem with PHP/MapScripts compilation on Red Hat 9. When I > configure MapScripts from the source file, an error message appears (see > below). The error message tells me that the DG and freetype, libpng, > libjpeg or libiconv are not added, but I have done this. If I am trying on > the newer GD libraries (2.0.21), there is same error. > Thanks for help in advance. > > Andrew Hi Andrew. How did you install GD, freetype, etc... rpm ? If yes, then I think you need the -devel rpm of each one. Have you read this wiki doc about MapScript install on redhat 9 : http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat9AndMapserver40 It should work nicely. Hope it'll help. Blaise From ray at SUSTAINABLE.IE Wed Mar 23 05:20:36 2005 From: ray at SUSTAINABLE.IE (Ray Edge) Date: Wed, 23 Mar 2005 07:20:36 -0600 Subject: Problems reading a TIF file (newbie question) Message-ID: Brent, Frank, Blaise, It was the paths, specifically the DATA field in the LAYER for the raster image. The SHAPEPATH was providing the correct path, I didn't need the "./data" directory in the DATA field. Many thanks to all of you for your help, Ray From Juraj.Lehuta at SVP.SK Wed Mar 23 05:56:48 2005 From: Juraj.Lehuta at SVP.SK (Lehuta Juraj - OZ) Date: Wed, 23 Mar 2005 14:56:48 +0100 Subject: mapscript installation on debian Message-ID: Hello, I've got debian and I have tried to install mapscript from debian packages. When I test mapscript with: I obtain this: Warning: dl(): MapScript: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20020429, debug=0, thread-safety=1 These options need to match in /var/www/test.php on line 2 What does it mean, pease? thanx WochteR From jcradock at ME3.COM Wed Mar 23 06:49:03 2005 From: jcradock at ME3.COM (James Cradock) Date: Wed, 23 Mar 2005 09:49:03 -0500 Subject: mapscript installation on debian In-Reply-To: Message-ID: Comment the dl() line and reload test.php in your browser. In the PHP Core block, where does PHP think it's "extension_dir" is located? Is php_mapscript.so installed in this directory? Also, what version of Debian have you installed? "Stable" (Woody) or "Testing" (Sarge)? Jim On Mar 23, 2005, at 8:56 AM, Lehuta Juraj - OZ wrote: > Hello, > I've got debian and I have tried to install mapscript from debian > packages. > > When I test mapscript with: > dl("php_mapscript.so"); > phpinfo(); > ?> > > I obtain this: > Warning: dl(): MapScript: Unable to initialize module Module compiled > with > module API=20020429, debug=0, thread-safety=0 PHP compiled with module > API=20020429, debug=0, thread-safety=1 These options need to match in > /var/www/test.php on line 2 > > What does it mean, pease? > > thanx > > WochteR > > ----- James Cradock, jcradock at me3.com me3 Technology Consultants, LLC 24 Preble Street, 2nd Floor Portland, ME 04101 207-772-3217 (office) 207-838-8678 (mobile) www.me3.com From jdport at VERITIME.COM Wed Mar 23 06:55:24 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 23 Mar 2005 09:55:24 -0500 Subject: mapscript installation on debian Message-ID: I had the same problem for a bit.... trying to install mapserver, php4, and apache all from debian packages turned out to simply not work for me. The only way to get php to run nicely with apache was to run in CGI mode instead of DSO.. but the version of mapscript that I was able to get with apt-get won't allow you to run in CGI mode. In the end, I downloaded, compiled, and installed php and apache myself and then afterwords I did the apt-get install php4-mapscript and that works perfectly. I'm using apache-1.3.33 and php-4.3.10, this is basically what I did: cd apache-1.3.33 ./configure --enable-module=so make make install cd php-4.3.10 ./configure --with-pgsql --with-apxs=/usr/local/apache/bin/apxs (I needed postgres support in php, you may not need that) make make install apt-get install php4-mapscript apt-get install gdal-bin (for gd utilities such as ogr2ogr) Hope that helps, Jeff ----- Original Message ----- From: "Lehuta Juraj - OZ" To: Sent: Wednesday, March 23, 2005 8:56 AM Subject: [UMN_MAPSERVER-USERS] mapscript installation on debian > Hello, > I've got debian and I have tried to install mapscript from debian > packages. > > When I test mapscript with: > dl("php_mapscript.so"); > phpinfo(); > ?> > > I obtain this: > Warning: dl(): MapScript: Unable to initialize module Module compiled with > module API=20020429, debug=0, thread-safety=0 PHP compiled with module > API=20020429, debug=0, thread-safety=1 These options need to match in > /var/www/test.php on line 2 > > What does it mean, pease? > > thanx > > WochteR > From wlx at MYGIS.ORG Wed Mar 23 07:07:25 2005 From: wlx at MYGIS.ORG (wlx) Date: Wed, 23 Mar 2005 23:07:25 +0800 Subject: mapscript installation on debian Message-ID: sorry, I forget to cc this to the mail list. > Hi, > Debian's default apache2 package was compiled with thread > safety,but php mapscript is not thread safety now(I am not > sure of this), so you must compile the php as cgi mode. > I do it in my Debian Sarge system. > May it help you to solve the problem. > > Best regards, > > Yours sincerely, > > Liangxu Wang > > > Hello, > > I've got debian and I have tried to install mapscript from debian > > packages. > > > > When I test mapscript with: > > > dl("php_mapscript.so"); > > phpinfo(); > > ?> > > > > I obtain this: > > Warning: dl(): MapScript: Unable to initialize module > Module compiled > > with module API=20020429, debug=0, thread-safety=0 PHP > compiled with > > module API=20020429, debug=0, > > thread-safety=1 These options need to match in /var/www/test.php on > > line 2 > > > > What does it mean, pease? > > > > thanx > > > > WochteR > > > > From jvanulde at NRCAN.GC.CA Wed Mar 23 09:03:12 2005 From: jvanulde at NRCAN.GC.CA (Joost van Ulden) Date: Wed, 23 Mar 2005 11:03:12 -0600 Subject: Query Template Message-ID: Hi all, I am trying to get the name of the current layer written into the query template of a getFeature request. I can't use [cl] for obvious reasons so I need to access the wms_title metadata for the layer. I have tried [metadata_wms_title] and that does not work. Any ideas would be helpful. Here is my layer snippet: LAYER NAME "CNTRY92_SHP" PROJECTION "init=EPSG:4326" END TYPE polygon STATUS ON DATA "CNTRY92.SHP" TEMPLATE "CNTRY92.xml" TOLERANCE 10 DUMP TRUE CLASS NAME 'Feature' COLOR 204 204 204 END METADATA "wms_title" "Countries" "wms_abstract" "Countries" "wms_srs" "EPSG:4326" END END From ed at TOPOZONE.COM Wed Mar 23 10:11:31 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 23 Mar 2005 13:11:31 -0500 Subject: making efficient map layers Message-ID: Jeff et al. - I'd generally agree here, with the caveat that having lots of little shapefiles with a tileindex isn't *necessarily* a bad thing. I don't know how many roads fit your filter criteria, but if you end up with 30,000 shapefiles each with one feature each, you didn't win . The main goal of an index is to discard all the features that can't possibly be needed for the requested map. Creating a tileindex for a group of shapefiles and/or a quadtree index for a single shapefile will do you no good if your requested map requires you to draw all the features anyway. So there's a balance between the data organization and the nature of your display. Here's a good paradigm: 1. Any map request should open as few shapefiles as possible. 2. Any map request should use as many features as possible from each shapefile. Part 2 doesn't mean you should modify your map design to draw unnecessary features. It just means that you should organize your data so all your eggs are in the same basket for rendering a given map, and that you should be able to quickly ignore all the data you don't need. There's overhead in opening a shapefile, so there's a benefit in batching things into a few shapefiles, but only if you don't then have to ignore most of the stuff in any given shapefile. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Tuesday, March 22, 2005 11:30 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] making efficient map layers On Tue, 22 Mar 2005 10:52:32 -0500, Jeff Portwine wrote: > > Thanks for the information... > I can write a script I'm sure, but I have never used the ogr2ogr > utility and I'm not sure how it works... is there documentation for that? Jeff, OGR utility documentation is available off the OGR web page at: http://www.gdal.org/ogr > Or if Mapscript could be used that might be even better, though I > really don't know how I could create new shapefiles from old ones but > I'll look into it. I don't know how to do that off hand in mapscript, but I think it has the ability to create shapefiles. You might have to create all the fields manually. > Is it possible using ogr2ogr to output (as in your example) CFCC=A13 > from every county shapefile into a single shapefile, or would I have > to create separate output shapefiles for every county and then tile them? As Stephen Woodbridge mentions, having lots of little shapefiles with a tileindex isn't a bad thing. However, you can use the ogr2ogr -append and -update to open an existing shapefile in update mode, and append to the end of it if you really want to merge things. 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 craig.miller at SPATIALMINDS.COM Wed Mar 23 10:23:11 2005 From: craig.miller at SPATIALMINDS.COM (Craig Miller) Date: Wed, 23 Mar 2005 10:23:11 -0800 Subject: libmap.dll documentation In-Reply-To: <4BF377919225F449BB097CB76FFE9BC81881EB@ptolemy.topozone.com> Message-ID: I'm having a bit of trouble locating documentation on using the libmap.dll from C++. Is there something available that I am missing in my search attempts? Thanks, Craig -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Wednesday, March 23, 2005 10:12 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] making efficient map layers Jeff et al. - I'd generally agree here, with the caveat that having lots of little shapefiles with a tileindex isn't *necessarily* a bad thing. I don't know how many roads fit your filter criteria, but if you end up with 30,000 shapefiles each with one feature each, you didn't win . The main goal of an index is to discard all the features that can't possibly be needed for the requested map. Creating a tileindex for a group of shapefiles and/or a quadtree index for a single shapefile will do you no good if your requested map requires you to draw all the features anyway. So there's a balance between the data organization and the nature of your display. Here's a good paradigm: 1. Any map request should open as few shapefiles as possible. 2. Any map request should use as many features as possible from each shapefile. Part 2 doesn't mean you should modify your map design to draw unnecessary features. It just means that you should organize your data so all your eggs are in the same basket for rendering a given map, and that you should be able to quickly ignore all the data you don't need. There's overhead in opening a shapefile, so there's a benefit in batching things into a few shapefiles, but only if you don't then have to ignore most of the stuff in any given shapefile. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Tuesday, March 22, 2005 11:30 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] making efficient map layers On Tue, 22 Mar 2005 10:52:32 -0500, Jeff Portwine wrote: > > Thanks for the information... > I can write a script I'm sure, but I have never used the ogr2ogr > utility and I'm not sure how it works... is there documentation for that? Jeff, OGR utility documentation is available off the OGR web page at: http://www.gdal.org/ogr > Or if Mapscript could be used that might be even better, though I > really don't know how I could create new shapefiles from old ones but > I'll look into it. I don't know how to do that off hand in mapscript, but I think it has the ability to create shapefiles. You might have to create all the fields manually. > Is it possible using ogr2ogr to output (as in your example) CFCC=A13 > from every county shapefile into a single shapefile, or would I have > to create separate output shapefiles for every county and then tile them? As Stephen Woodbridge mentions, having lots of little shapefiles with a tileindex isn't a bad thing. However, you can use the ogr2ogr -append and -update to open an existing shapefile in update mode, and append to the end of it if you really want to merge things. 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 fwarmerdam at GMAIL.COM Wed Mar 23 10:26:07 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 23 Mar 2005 13:26:07 -0500 Subject: libmap.dll documentation In-Reply-To: Message-ID: On Wed, 23 Mar 2005 10:23:11 -0800, Craig Miller wrote: > I'm having a bit of trouble locating documentation on using the libmap.dll > from C++. Is there something available that I am missing in my search > attempts? Craig, This question would likely be better posed on the mapserver-dev list. What you are missing is that MapServer has no published C API for you to use. It isn't really intended to be used this way. If you want to, you are pretty much stuck digging through the code, and include files to figure out what to do. Also, you will find you aren't very well protected from the internals of structures and so forth. 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 craig.miller at SPATIALMINDS.COM Wed Mar 23 10:34:08 2005 From: craig.miller at SPATIALMINDS.COM (Craig Miller) Date: Wed, 23 Mar 2005 10:34:08 -0800 Subject: libmap.dll documentation In-Reply-To: <931f8ea905032310264281fa46@mail.gmail.com> Message-ID: Thanks for the reply Frank. That's the response I thought I might get. --Craig -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Wednesday, March 23, 2005 10:26 AM To: Craig Miller Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] libmap.dll documentation On Wed, 23 Mar 2005 10:23:11 -0800, Craig Miller wrote: > I'm having a bit of trouble locating documentation on using the libmap.dll > from C++. Is there something available that I am missing in my search > attempts? Craig, This question would likely be better posed on the mapserver-dev list. What you are missing is that MapServer has no published C API for you to use. It isn't really intended to be used this way. If you want to, you are pretty much stuck digging through the code, and include files to figure out what to do. Also, you will find you aren't very well protected from the internals of structures and so forth. 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 ace at SUARES.NL Wed Mar 23 10:08:57 2005 From: ace at SUARES.NL (Ace Suares) Date: Wed, 23 Mar 2005 14:08:57 -0400 Subject: mapscript installation on debian In-Reply-To: Message-ID: See also http://www.suares.com and follow the link to mapscript. Ace On Wednesday 23 March 2005 10:49, James Cradock wrote: > Comment the dl() line and reload test.php in your browser. In the PHP > Core block, where does PHP think it's "extension_dir" is located? Is > php_mapscript.so installed in this directory? > > Also, what version of Debian have you installed? "Stable" (Woody) or > "Testing" (Sarge)? > > Jim > > On Mar 23, 2005, at 8:56 AM, Lehuta Juraj - OZ wrote: > > Hello, > > I've got debian and I have tried to install mapscript from debian > > packages. > > > > When I test mapscript with: > > > dl("php_mapscript.so"); > > phpinfo(); > > ?> > > > > I obtain this: > > Warning: dl(): MapScript: Unable to initialize module Module compiled > > with > > module API=20020429, debug=0, thread-safety=0 PHP compiled with > > module API=20020429, debug=0, thread-safety=1 These options need to > > match in /var/www/test.php on line 2 > > > > What does it mean, pease? > > > > thanx > > > > WochteR > > ----- > James Cradock, jcradock at me3.com > > me3 Technology Consultants, LLC > 24 Preble Street, 2nd Floor > Portland, ME 04101 > > 207-772-3217 (office) > 207-838-8678 (mobile) > > www.me3.com -- Ace Suares' Internet Consultancy mail: PObox 2599, 4800 CN Breda, The Netherlands phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) emergency: +599 786 23 73 voicemail & fax: +31 848 707 705 web: http://www.suares.nl email: support at suares.nl -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From covariance at SHAW.CA Wed Mar 23 11:12:57 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Wed, 23 Mar 2005 13:12:57 -0600 Subject: PHP Select List of Polygons Message-ID: Steve: coincidently I encountered the same kind of problem not too long ago. My problem was that I had not identified a CLASSITEM for my class so when I queried a layer by rectangle I was unable to obtain the IDs for my selected shapes. When I added this to my layer definition I was able to access the IDs through the numvalues and values members of the shapeObj class. I recently responded to a request about how to do this in the following listserv entry: http://lists.umn.edu/cgi-bin/wa?A2=ind0503&L=MAPSERVER- USERS&T=0&F=&S=&X=6F78C127C2E12F8CA9&Y=covariance at shaw.ca&P=26839 on Tuesday, 8 March 2005. The only thing that I forgot in reviewing that response later was that I forgot to mention that I had to set up a template for the layer between steps 2 and 3. You may have to make a real template file up to do a reliable query, since I found that MapScript kept producing errors on my own WIN2K system when I was using a dummy template name. hopefully this helps you, Bob Bruce, Winnipeg, Manitoba On Tue, 22 Mar 2005 21:46:31 -0600, Steve Lehr wrote: - - - - >Can I query one layer by rectangle, then store those shapeids and then add >the shape ids to another layer? If so, how do I turn on the individual >shape ids? Do I need a classitem? expression? or can I just turn on the >layer and loop over the list of shape_ids then turn on those shapes for >that layer? > >LAYER > NAME "showme" > DATA parcels > STATUS OFF > CLASS > COLOR 0 0 255 > END >END > >Thanks for your help! > >Steve Lehr From hunt at ZEDXINC.COM Wed Mar 23 11:53:00 2005 From: hunt at ZEDXINC.COM (Aaron D. Hunt) Date: Wed, 23 Mar 2005 14:53:00 -0500 Subject: gdal on 64bit Message-ID: When I try to compile gdal on a new opteron-64bit. I get the following error. Does any one have any idea. /bin/sh ../libtool --mode=compile g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../alg -I../ogr -I../ogr/ogrsf_frmts -DHAVE_GEOS=1 -I-O2 -g -pipe -march=i386 -mcpu=i686 -I/usr/include -I../port -I/home/mapserver/include -c -o ogrpoint.o ogrpoint.cpp g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../alg -I../ogr -I../ogr/ogrsf_frmts -DHAVE_GEOS=1 -I-O2 -g -pipe -march=i386 -mcpu=i686 -I/usr/include -I../port -I/home/mapserver/include -c ogrgeometryfactory.cpp -fPIC -DPIC -o .libs/ogrgeometryfactory.o ogrgeometryfactory.cpp:1: error: CPU you selected does not support x86-64 instruction set ogrgeometryfactory.cpp:1: error: CPU you selected does not support x86-64 instruction set make[1]: *** [ogrgeometryfactory.o] Error 1 make[1]: *** Waiting for unfinished jobs.... g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../alg -I../ogr -I../ogr/ogrsf_frmts -DHAVE_GEOS=1 -I-O2 -g -pipe -march=i386 -mcpu=i686 -I/usr/include -I../port -I/home/mapserver/include -c ogrpoint.cpp -fPIC -DPIC -o .libs/ogrpoint.o ogrpoint.cpp:1: error: CPU you selected does not support x86-64 instruction set ogrpoint.cpp:1: error: CPU you selected does not support x86-64 instruction set make[1]: *** [ogrpoint.o] Error 1 make[1]: Leaving directory `/home/mapserver/gdal-cvs-20050323/ogr' make: *** [ogr-target] Error 2 -- Aaron D. Hunt ZedX Inc. 369 Rolling Ridge Drive Bellefonte, PA 16823 Phone: 814-357-8490 Cell: 814-441-1865 Fax: 814-357-8499 "The information in this email, and in any attachments, may contain confidential information and is intended solely for the attention and use of the named addressee(s). It must not be disclosed to any person without authorization. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are not authorized to, and must not, disclose, copy, distribute, or retain this message or any part of it." From fwarmerdam at GMAIL.COM Wed Mar 23 11:59:35 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 23 Mar 2005 14:59:35 -0500 Subject: gdal on 64bit In-Reply-To: <4241C91C.2050201@zedxinc.com> Message-ID: On Wed, 23 Mar 2005 14:53:00 -0500, Aaron D. Hunt wrote: > When I try to compile gdal on a new opteron-64bit. I get the following > error. > Does any one have any idea. > > /bin/sh ../libtool --mode=compile g++ -Wall -O2 -Iogrsf_frmts -I. > -I../port -I../gcore -I../alg -I../ogr -I../ogr/ogrsf_frmts > -DHAVE_GEOS=1 -I-O2 -g -pipe -march=i386 -mcpu=i686 -I/usr/include Aaron, Does this -march=i386 and -mcpu=i686 stuff appear in the GDALmake.opt file? If so, remove it and build again. If it does not then perhaps it is being inserted by libtool. In that case try reconfiguring "--without-libtool". 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 charu24 at GMAIL.COM Wed Mar 23 13:41:48 2005 From: charu24 at GMAIL.COM (Charu Verma) Date: Wed, 23 Mar 2005 16:41:48 -0500 Subject: Data Retrieval from a DBF File Format In-Reply-To: <200503231404.55764.bpicinbono@worldonline.fr> Message-ID: Hi yes I have php/mapscript and php.. Please help On Wed, 23 Mar 2005 14:04:55 +0100, blaise wrote: > Le mercredi 23 Mars 2005 03:10, Charu Verma a ?crit : > > Hi All, > > I have my interface ready but want to make it interactive i.e I want > > the user to b able to click on a point and the interface could actually > > display the data for that point.I have a dbf file with me including > > shp and shx through which I designed the map interface. > > Do I need to install some other applictions besides ms4w so as to > > establish a connectivity with the interface?Can anyone give me ideas of > > the way a script would look like? > > Please help me go ahead with this. > > charu > Hi, > No, I don't think you have to install other applications. > Have you looked at the "workshop/itasca" demo and the "gmap" demo ? > They both have a query tool working pretty well. > Blaise > From charu24 at GMAIL.COM Wed Mar 23 13:42:57 2005 From: charu24 at GMAIL.COM (Charu Verma) Date: Wed, 23 Mar 2005 16:42:57 -0500 Subject: Data Retrieval from a DBF File Format In-Reply-To: Message-ID: I am not aware of the link for the demos.Please provide me with those. charu On Wed, 23 Mar 2005 16:41:48 -0500, Charu Verma wrote: > Hi yes I have php/mapscript and php.. > Please help > > On Wed, 23 Mar 2005 14:04:55 +0100, blaise wrote: > > Le mercredi 23 Mars 2005 03:10, Charu Verma a ?crit : > > > Hi All, > > > I have my interface ready but want to make it interactive i.e I want > > > the user to b able to click on a point and the interface could actually > > > display the data for that point.I have a dbf file with me including > > > shp and shx through which I designed the map interface. > > > Do I need to install some other applictions besides ms4w so as to > > > establish a connectivity with the interface?Can anyone give me ideas of > > > the way a script would look like? > > > Please help me go ahead with this. > > > charu > > Hi, > > No, I don't think you have to install other applications. > > Have you looked at the "workshop/itasca" demo and the "gmap" demo ? > > They both have a query tool working pretty well. > > Blaise > > > From wouter.schaubroeck at GMAIL.COM Wed Mar 23 13:47:33 2005 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Wed, 23 Mar 2005 22:47:33 +0100 Subject: GetCapabilities result: mapserv.exe? Message-ID: Hi all, I'm experimenting with WMS on the MS4W application, and I'm having some troubles. When i request a GetCapabilities, i receive mapserv.exe in stead of the usual XML file? What's the cause of this problem, how can i solve it? I've tried everything that came in my mind, and even read the OGC paper concerning wms, and still i receive the mapserv.exe file. I'm working with Apache on win xp pro. This is my link to get the GetCapabilities: http://192.168.2.2/cgi-bin/mapserv.exe?map=c:/ms4w/apache/htdocs/mapservertutorial/example1-7.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities And in my map file: METADATA "wms_title" "WMS Test" "wms_onlineresource" "http://192.168.2.2/cgi-bin/mapserv.exe?map=c:\ms4w\apache\htdocs\mapservertutorial\example1-7.map&" "wms_srs" "EPSG:2136" END All my other layer have the right metadata tags. Many thanks Wouter Schaubroeck From bpicinbono at WORLDONLINE.FR Wed Mar 23 14:18:35 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Wed, 23 Mar 2005 23:18:35 +0100 Subject: Data Retrieval from a DBF File Format In-Reply-To: Message-ID: Le mercredi 23 Mars 2005 22:41, Charu Verma a ?crit?: > Hi yes I have php/mapscript and php.. > Please help > > On Wed, 23 Mar 2005 14:04:55 +0100, blaise wrote: > > Le mercredi 23 Mars 2005 03:10, Charu Verma a ?crit : > > > Hi All, > > > I have my interface ready but want to make it interactive i.e I want > > > the user to b able to click on a point and the interface could actually > > > display the data for that point.I have a dbf file with me including > > > shp and shx through which I designed the map interface. > > > Do I need to install some other applictions besides ms4w so as to > > > establish a connectivity with the interface?Can anyone give me ideas of > > > the way a script would look like? > > > Please help me go ahead with this. > > > charu > > > > Hi, > > No, I don't think you have to install other applications. > > Have you looked at the "workshop/itasca" demo and the "gmap" demo ? > > They both have a query tool working pretty well. > > Blaise Charu, this is very well done either by MapServer or by Php_MapScript. Just download the demos and look into the code. MapServer (html, demo Itasca) : http://mapserver.gis.umn.edu/dload.html link (top of the page): "demo" Php_MapScript (html-php, demo gmap): http://dl.maptools.org/dl/ download gmap-msXX.zip (or .tar.gz for linux) (XX being your mapserver version number) This gmap demo is online here : http://www2.dmsolutions.ca/gmap/gmap75.phtml see the "I" (information) tool ? Note that for a layer to be queryable, you'll need a "TEMPLATE" statement in the layer section of the mapfile. Blaise From mdieterich at GMAIL.COM Wed Mar 23 17:53:46 2005 From: mdieterich at GMAIL.COM (Mark Dieterich) Date: Wed, 23 Mar 2005 20:53:46 -0500 Subject: making efficient map layers In-Reply-To: <42404412.9010902@swoodbridge.com> Message-ID: Steve, I'm really impressed with the maps on the imaptools site, hope you don't mind a few prodding questions from a mapserver newbie... - Does your site actually use some form of generalized layer when zoomed out? If so, can you tell me at what point you switch from generalized maps to shapefiles, it seems really seemless. - How do you go about changing the width of the different types of roads? I assume each class of road is in a different layer and you somehow manipulate the line width? - Is there any speed reason to split types of roads, based on the CFCC type, into different shapefiles or is it just as good to use shp2tile and then a tileindex? On a side not, is it possible to throw a wildcard at ogr2ogr, where by you can specify something likek ogr2ogr dst.shp src.shp -where CFCC=A1*? I couldn't figure out if it could take wildcards or not. I suppose you could go through and run it for each A1* type and append it to the shapefile, but this could be a long process. I'm working on familiarizing myself with the National Map offerings and will probably have some more questions for you. Thanks! Mark From fwarmerdam at GMAIL.COM Wed Mar 23 18:12:23 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 23 Mar 2005 21:12:23 -0500 Subject: making efficient map layers In-Reply-To: <42421DAA.1090001@gmail.com> Message-ID: On Wed, 23 Mar 2005 20:53:46 -0500, Mark Dieterich wrote: > - Is there any speed reason to split types of roads, based on the CFCC > type, into different shapefiles or is it just as good to use shp2tile > and then a tileindex? Mark, I should let Steve answer this, but since I am answer the later ogr2ogr question, I will dip my oar in and say that given how MapServer works with shapefiles, you are generally better to pre-segregate the data into files based on what features you want to process in a given layer. Depending on FILTER or null styles to discard features you don't want to render is alot more expensive than ensuring they aren't in the data stream to start with. > On a side not, is it possible to throw a wildcard > at ogr2ogr, where by you can specify something likek ogr2ogr dst.shp > src.shp -where CFCC=A1*? I couldn't figure out if it could take > wildcards or not. I suppose you could go through and run it for each > A1* type and append it to the shapefile, but this could be a long process. The -where clause supports a subset of SQL WHERE clause syntax, which includes the LIKE operator. I seemed to get all A1* features when I used the command: ogrinfo -ro . CompleteChain -where 'CFCC LIKE "A1%"' The OGR SQL document talks about what is legal in a WHERE clause. http://www.gdal.org/ogr/ogr_sql.html 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 woodbri at SWOODBRIDGE.COM Wed Mar 23 18:26:57 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 23 Mar 2005 21:26:57 -0500 Subject: making efficient map layers In-Reply-To: <42421DAA.1090001@gmail.com> Message-ID: Mark Dieterich wrote: > Steve, > > I'm really impressed with the maps on the imaptools site, hope you don't > mind a few prodding questions from a mapserver newbie... Thank you, it is an ongoing project. The mapfile has 45 layers and about 1900 lines in it. I recommend that you keep it simple, get the basic logic of the mapfile working with the zoom levels you need. Some of the mapfiles I have built have had over 150 layers in them and it gets very hard to keep it all straight. > - Does your site actually use some form of generalized layer when zoomed > out? If so, can you tell me at what point you switch from generalized > maps to shapefiles, it seems really seemless. I switch at 150000 scale so below that it is Tiger and it is my own generalized Tiger layer above that. > - How do you go about changing the width of the different types of > roads? I assume each class of road is in a different layer and you > somehow manipulate the line width? In your class for the roads do something like this: CLASS EXPRESSION ... STYLE # first draw a 5 pixel wide green line SYMBOL 0 # built in circle symbol SIZE 5 COLOR 0 255 0 # green END STYLE # then draw a 3 pixel wide white line on top of the green SYMBOL 0 # that leaves a 1 pixel border on each side of the white SIZE 3 COLOR 255 255 255 # white END STYLE # then draw a 1 pixel wide black line down the center SYMBOL 0 SIZE 1 COLOR 0 0 0 # black END ... END You can create your own symbols to do dashed lines, put arrows on lines, create railroad dual tracks with cross ties, etc. > - Is there any speed reason to split types of roads, based on the CFCC > type, into different shapefiles or is it just as good to use shp2tile I split them because there are a lot of A4* streets and I can avoid using a CLASS EXPRESSION if they are all in their own shapefile which is marginally faster. > and then a tileindex? On a side not, is it possible to throw a wildcard > at ogr2ogr, where by you can specify something likek ogr2ogr dst.shp > src.shp -where CFCC=A1*? I couldn't figure out if it could take > wildcards or not. I suppose you could go through and run it for each > A1* type and append it to the shapefile, but this could be a long process. Great question, I will leave this for the ogr experts to answer because I haven't a clue. > I'm working on familiarizing myself with the National Map offerings and > will probably have some more questions for you. > > Thanks! > > Mark > -Steve http://imaptools.com/ From ed at TOPOZONE.COM Wed Mar 23 18:43:23 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 23 Mar 2005 21:43:23 -0500 Subject: making efficient map layers Message-ID: Mark - I'll elbow my way in here between Frank and Steve to comment on feature selection in shapefiles. Shapefiles do not support attribute indexes, so class selection with EXPRESSION statements produces simple brute-force scans through all records in the file. You can think of shapefiles quite literally as database tables without indexes (for attributes, not spatially). If you have a shapefile with 1,000 objects, and your expression selects 20 of them, you will read, scan, and discard 9,980 objects from that file. If you extract those 20 into a separate file, you will read, scan, and use 20 objects. This is somewhere around 50 times less work . The second "rule" I suggested earlier is important to keep in mind - if you're going to open a shapefile, use all (or most) of the objects in it. There are two reasons you would not want to use an object: (a) it's out of the spatial extent of the requested map, and (b) it's not something you're choosing to render on this map. (a) is addressed by spatial organization and TILEINDEX creation, and (b) is addressed by attribute selection and the division of data into separate shapefiles. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mark Dieterich Sent: Wednesday, March 23, 2005 8:54 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] making efficient map layers Steve, I'm really impressed with the maps on the imaptools site, hope you don't mind a few prodding questions from a mapserver newbie... - Does your site actually use some form of generalized layer when zoomed out? If so, can you tell me at what point you switch from generalized maps to shapefiles, it seems really seemless. - How do you go about changing the width of the different types of roads? I assume each class of road is in a different layer and you somehow manipulate the line width? - Is there any speed reason to split types of roads, based on the CFCC type, into different shapefiles or is it just as good to use shp2tile and then a tileindex? On a side not, is it possible to throw a wildcard at ogr2ogr, where by you can specify something likek ogr2ogr dst.shp src.shp -where CFCC=A1*? I couldn't figure out if it could take wildcards or not. I suppose you could go through and run it for each A1* type and append it to the shapefile, but this could be a long process. I'm working on familiarizing myself with the National Map offerings and will probably have some more questions for you. Thanks! Mark From valik.solorzano.barboza at GEODAN.NL Thu Mar 24 01:23:14 2005 From: valik.solorzano.barboza at GEODAN.NL (=?iso-8859-1?Q?Valik_Sol=F3rzano_Barboza?=) Date: Thu, 24 Mar 2005 10:23:14 +0100 Subject: Labels that follow streets - like Google maps In-Reply-To: <00a301c5298b$61e52f90$1100a8c0@mt17> Message-ID: Hi Rishi, We at Geodan (a company in The Netherlands) are really interested in this extension to the MapServer. Do you know the timeplan and the costs? Will this extension we provided as a separate dll/shared library so it also can be used in a different web mapping server or mapping software? Regards, Valik > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Rishi Mehra > Sent: 15 March 2005 19:18 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Labels that follow streets - like Google maps > > Hi Steve / All: > > The MapText project is not dead atleast on the part of MapText, however we > never were able to gauge the interest level of the MapServer community to > be > able to make a product. We do have a concept ready that we did demonstrate > to some of the developers of MapServer in the past. If there is genuine > interest for an add-on (for a cost) package that would yield high quality > labeling for MapServer, we can hit the market with something in a short > span > of time. Let us know of the same. > > Regards, > Rishi Mehra > MapText, Inc. > Tel: 609-716-7552 > Fax: 609-716-7553 > www.maptext.com > > ----- Original Message ----- > From: "Erv McNally" > To: > Sent: Tuesday, March 15, 2005 12:49 PM > Subject: Re: [UMN_MAPSERVER-USERS] Labels that follow streets - like > Google > maps > > > > Hi Steve, > > > > I think this would be fantastic. I've been struggling with naming > > streams and railroads and getting them to look decent. I've been > > leaning towards using a point file and angling and labeling streams at > > set locations so I can control where and how the labeling occurs so it > > looks decent... which most of the time, would leave me with no names > > when zoomed in. > > > > At least if street naming were done, it would be a step in a positive > > direction. > > > > Thanks for your efforts, > > Erv > > > > > > > -----Original Message----- > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > > > Behalf Of Stephen Woodbridge > > > Sent: Tuesday, March 15, 2005 10:23 AM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] Labels that follow streets - like > Google > > > maps > > > > > > Hi all, > > > > > > I love the way Google maps label their streets. The labels bend to > > > follow the streets. What kind of interest is there from the community > > > for this type of enhancement? > > > > > > I suppose that ideally the developers would like the GD folks or the > > > Freetype folks to implement this, but it seems like about 2 years > since > > > I originally brought it up. There is at least one bug that covers > this: > > > > > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=206 > > > (this bug should probably be split into two separate items) > > > > > > I think that "label follows" should be raised in priority because the > > > MapText project has gone away, and this would be a very good feature > to > > > have in mapserver. I'm not sure I would "spline" the label, as that is > > > NOT what other implementations are doing and spline math is Way more > > > complicated than plunking down characters that are aligned with the > > > various street segments. > > > > > > So, in an effort to gage the community interest in this and hopefully > > > get a developer to champion this cause, make yourself heard. > > > > > > -Steve W. > > > > > From aborruso at TIN.IT Thu Mar 24 01:47:11 2005 From: aborruso at TIN.IT (andy) Date: Thu, 24 Mar 2005 10:47:11 +0100 Subject: Labels that follow streets - like Google maps In-Reply-To: <42370BD8.9040301@swoodbridge.com> Message-ID: Dear all, I'm very interested in this feature, and I would partecipate in the costs. Have a nice day Stephen Woodbridge wrote: > Hi all, > > I love the way Google maps label their streets. The labels bend to > follow the streets. What kind of interest is there from the community > for this type of enhancement? > > I suppose that ideally the developers would like the GD folks or the > Freetype folks to implement this, but it seems like about 2 years since > I originally brought it up. There is at least one bug that covers this: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=206 > (this bug should probably be split into two separate items) > > I think that "label follows" should be raised in priority because the > MapText project has gone away, and this would be a very good feature to > have in mapserver. I'm not sure I would "spline" the label, as that is > NOT what other implementations are doing and spline math is Way more > complicated than plunking down characters that are aligned with the > various street segments. > > So, in an effort to gage the community interest in this and hopefully > get a developer to champion this cause, make yourself heard. > > -Steve W. > From joseluismapserver at YAHOO.ES Thu Mar 24 02:17:23 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Thu, 24 Mar 2005 11:17:23 +0100 Subject: tileindex tiif tfw files Message-ID: Hello I am beggining working with tileindexing and I don't know how it works very well. I don't have geotiff files, what I have are tiff files and .tfw files with the same name associated with them. So my question is, when I construct the .shp file using the gdaltindex utility do I have to include the .tfw files? Or later in the map file do I have to refer them in some way? In general, how do I have to manage myself with these type of files when managing tileindexing. Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsozzi at INTERCAD.CH Thu Mar 24 02:37:34 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Thu, 24 Mar 2005 11:37:34 +0100 Subject: ogr2ogr and Oracle Spatial Message-ID: Hi all, I'm trying to export oracle spatial data to shp files. For points it works, but for lines and polygons it exports data but not geometries. I use Oracle 9i. All my tables have FID as key name and GEOM as SDO_GEOMETRY field. Anybody has any suggestions? Regards Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsozzi at INTERCAD.CH Thu Mar 24 02:40:31 2005 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Thu, 24 Mar 2005 11:40:31 +0100 Subject: dynamic symbol rotation Message-ID: Hi all, I would like to rotate point symbols reading rotation angle from a field. I think that at this version it is not possible. Anybody knows if this possibility will be provided in any future release? Regards Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Thu Mar 24 05:20:08 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 24 Mar 2005 08:20:08 -0500 Subject: making efficient map layers Message-ID: > - Is there any speed reason to split types of roads, based on the CFCC > type, into different shapefiles or is it just as good to use shp2tile > and then a tileindex? If you're showing roads for a large area, you should split them up... I've had a thread going called "making efficient layers" because I had an issue just recently where I was killing my web server and some other random processes because I tried to show a tiger road tile of a large area and it sucked up all the available RAM in trying to process it... a few people gave some good advice on splitting things up to improve the speed and performance. >On a side not, is it possible to throw a wildcard > at ogr2ogr, where by you can specify something likek ogr2ogr dst.shp > src.shp -where CFCC=A1*? I couldn't figure out if it could take > wildcards or not. I suppose you could go through and run it for each > A1* type and append it to the shapefile, but this could be a long process. That is a great question... I tried everything I could think of to make the ogr2ogr command accept a range of options... I tried using regular expressions like CFCC=A1[0-8] (and variations of this), I tried CFCC=A*, I tried CFCC=A%... and I tried a few other things and in the end I ended up doing CFCC=10, then appending CFCC=11, CFCC=12, etc. Like you said it was slow but it did work. -Jeff > > I'm working on familiarizing myself with the National Map offerings and > will probably have some more questions for you. > > Thanks! > > Mark > From jdport at VERITIME.COM Thu Mar 24 05:24:07 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 24 Mar 2005 08:24:07 -0500 Subject: making efficient map layers Message-ID: God it's too early in the morning.. i read this message and replied to it directing him to this thread and afterwords realized he was already replying to this thread.. sorry about that., I thought i had read a different subject line. ----- Original Message ----- From: "Jeff Portwine" To: Sent: Thursday, March 24, 2005 8:20 AM Subject: Re: [UMN_MAPSERVER-USERS] making efficient map layers >> - Is there any speed reason to split types of roads, based on the CFCC >> type, into different shapefiles or is it just as good to use shp2tile >> and then a tileindex? > > If you're showing roads for a large area, you should split them up... I've > had a thread going called "making efficient layers" because I had an issue > just recently where I was killing my web server and some other random > processes because I tried to show a tiger road tile of a large area and it > sucked up all the available RAM in trying to process it... a few people > gave > some good advice on splitting things up to improve the speed and > performance. > >>On a side not, is it possible to throw a wildcard >> at ogr2ogr, where by you can specify something likek ogr2ogr dst.shp >> src.shp -where CFCC=A1*? I couldn't figure out if it could take >> wildcards or not. I suppose you could go through and run it for each >> A1* type and append it to the shapefile, but this could be a long >> process. > > That is a great question... I tried everything I could think of to make > the > ogr2ogr command accept a range of options... I tried using regular > expressions like CFCC=A1[0-8] (and variations of this), I tried CFCC=A*, I > tried CFCC=A%... and I tried a few other things and in the end I ended up > doing CFCC=10, then appending CFCC=11, CFCC=12, etc. Like you said it > was slow but it did work. > > -Jeff > > >> >> I'm working on familiarizing myself with the National Map offerings and >> will probably have some more questions for you. >> >> Thanks! >> >> Mark >> > From jcradock at ME3.COM Thu Mar 24 05:43:32 2005 From: jcradock at ME3.COM (James Cradock) Date: Thu, 24 Mar 2005 08:43:32 -0500 Subject: mapscript installation on debian In-Reply-To: Message-ID: This all assumes that Apache2 and PostgreSQL with PostgreSQL's libraries are installed. Also assumed: That you're running Debian Sarge ("testing"). (Watch the line breaks!) Change to user root and bring APT up-to-date: apt-get update 1. Supporting libraries: Install libraries to make MapServer useful -- many of these are documented on the UNIX installation page on MapServer's online documentation: apt-get install libgd2 libgd2-dev proj libcurl3 libcurl3-dev libtiff4 libtiff4-dev libjpeg62 libjpeg62-dev freetype2 libgdal1 libgdal1-dev 2. PHP: PHP must be run as a CGI and it must be configured and built with system regular expressions. This install of PHP will give you PHP as a CGI with system regex wihout clobbering mod_php (if it's installed) with its built-in regex -- note that I'm installing the PHP I want to use with MapServer in /usr/local/php_for_mapserver-4.3.10 and that I'm symlinking it to make upgrading PHP easier: cd /usr/local/src apt-get source php4-cgi cd php4-4.3.10 ./configure --prefix=/usr/local/php_for_mapserver-4.3.10 --enable-dbase --with-jpeg=/usr --with-tiff=/usr --with-gd=/usr --with-png=/usr --with-freetype --with-zlib --with-regex=system make make install cp php.ini-dist /usr/local/php_for_mapserver-4.3.10/lib/php.ini cd /usr/local ln -s php_for_mapserver-4.3.10 php_for_mapserver Setup Apache to execute all *.phtml as PHP CGI. First edit /etc/apache2/sites-enabled/default (or whatever your default configuration is): AddType application/x-httpd-php-cgi .phtml Action application/x-httpd-php-cgi /cgi-bin/php Then add this shell script, called "php", to the /usr/lib/cgi-bin directory: #!/bin/sh export SCRIPT_FILENAME=$PATH_TRANSLATED /usr/local/php_for_mapserver/bin/php -c /usr/local/php_for_mapserver/etc/php.ini Make it executable: chmod 755 /usr/lib/cgi-bin/php Make the "mapserver" directory: mkdir /var/www/mapserver And make a phpinfo.phtml file: echo "" > /var/www/mapserver/phpinfo.phtml If you restart Apache ("apache2ctl restart") and navigate to "http://127.0.0.1/mapserver/phpinfo.phtml" you'll see the output you'd otherwise see loading a page with phpinfo() with the *.php extension. 3. MapServer: cd /usr/local/src wget http://cvs.gis.umn.edu/dist/mapserver-4.4.1.tar.gz tar -zxvf mapserver-4.4.1.tar.gz cd mapserver-4.4.1 ./configure --prefix=/usr/local/mapserver-4.4.1 --with-jpeg --with-freetype=/usr/local --with-zlib --with-png --with-tiff --with-gd=/usr --with-proj=/usr --with-gdal=/usr/bin/gdal-config --with-wmsclient --with-php=/usr/local/php_for_mapserver --with-postgis=/usr/bin/pg_config --with-mygis=/usr/bin/mysql_config make make install "make install" will print this message to your terminal window: ***** MapServer Installation ***** To install MapServer, copy the 'mapserv' file to your web server's cgi-bin directory. If you use MapScript then see the documentation for your specific MapScript version for installation instructions. Copy "mapserv" to the CGI-BIB directory: cp mapserv /usr/lib/cgi-bin/mapserv Enable PHP/MapScript: cd mapscript/php3 mkdir /usr/local/php_for_mapserver/lib/php/20020429 cp php_mapscript.so /usr/local/php_for_mapserver/lib/php/20020429/ In /usr/local/php_for_mapserver/lib/php.ini set the extension_dir to /usr/local/php_for_mapserver/lib/php/20020429/, enable the PHP/MapScript module: extension=php_mapscript.so And copy php_mapscript.so to the extensions directory: cp php_mapscript.so /usr/local/php_for_mapserver/lib/php/20020429/ Now you don't need to load the module in your PHP script. Restart Apache and go again to "http://127.0.0.1/mapserver/phpinfo.phtml". You'll see a block for MapScript. 4. Gotchas: * I've enabled MapServer and PHP/MapScript with support for MyGIS. You may need to install MySQL 4.1's client libraries: apt-get install libmysqlclient14 libmysqlclient14-dev * mod_action may need to be enabled in Apache. It's disabled in Debian by default: cd /etc/apache2/mods-enabled ln -s /etc/apache2/mods-available/actions.load . * Again, this all assumes that Apache2 and PostgreSQL with PostgreSQL's libraries are installed. I hope this helps. Let me know if I should make changes to these instructions. Thanks. Jim On Mar 23, 2005, at 10:23 AM, Lehuta Juraj - OZ wrote: > Yes, it will be fayn, > thank you very much > > WochteR > > > -----Original Message----- > From: James Cradock [mailto:jcradock at me3.com] > Sent: Wednesday, March 23, 2005 4:15 PM > To: Lehuta Juraj - OZ > Subject: Re: [UMN_MAPSERVER-USERS] mapscript installation on debian > > I would install all the supporting software (apache2, proj, gdal, gd, > etc -- > look at the MapServer UNIX installation docs) from APT and build PHP > (to run > as a CGI alongside mod_php) and MapServer from source. I've got an > utterly > straightforward installation recipe, including input for a gotcha or > two > I've gotten help with from this list, for Sarge, and I can send it to > you > later today and amend it to the Debian topic on the MapServer Wiki. > > Jim > > On Mar 23, 2005, at 10:04 AM, Lehuta Juraj - OZ wrote: > >> yes, >> extension_dir /usr/lib/php4/20020429-zts /usr/lib/php4/20020429-zts >> >> and mapscript.so is realy in this directory >> >> my Debian is: >> sarge >> Linux mapserver 2.6.8-1-686 #1 Thu Nov 25 04:34:30 UTC 2004 i686 >> GNU/Linux >> >> I installed mapserver and mapscript packages from deb >> http://agrogeomatic.educagri.fr/debian woody main >> >> by: >> apt-get install php-mapscript cgi-mapserver php4 >> >> When I remove the mapscript.so from /usr/lib/php4/20020429-zts I >> obtain this: >> Warning: dl(): Unable to load dynamic library >> '/usr/lib/php4/20020429-zts/php_mapscript.so' - >> /usr/lib/php4/20020429-zts/php_mapscript.so: cannot open shared object >> file: >> No such file or directory in /var/www/test.php on line 2 >> >> ** cannot open shared object file*** >> > ----- > James Cradock, jcradock at me3.com > > me3 Technology Consultants, LLC > 24 Preble Street, 2nd Floor > Portland, ME 04101 > > 207-772-3217 (office) > 207-838-8678 (mobile) > > www.me3.com > > ----- James Cradock, jcradock at me3.com me3 Technology Consultants, LLC 24 Preble Street, 2nd Floor Portland, ME 04101 207-772-3217 (office) 207-838-8678 (mobile) www.me3.com From jcradock at ME3.COM Thu Mar 24 05:49:00 2005 From: jcradock at ME3.COM (James Cradock) Date: Thu, 24 Mar 2005 08:49:00 -0500 Subject: mapscript installation on debian In-Reply-To: Message-ID: Oops. Ed McNierney pointed out for me on 3/15 that I want MapServer configured without tiff support -- GDAL will provide that -- and my instructions here don't reflect this change: "--with-tiff" should be changed to "--without-tiff" Thanks, Ed. On Mar 24, 2005, at 8:43 AM, James Cradock wrote: > This all assumes that Apache2 and PostgreSQL with PostgreSQL's > libraries are installed. Also assumed: That you're running Debian Sarge > ("testing"). (Watch the line breaks!) > > Change to user root and bring APT up-to-date: > > apt-get update > > 1. Supporting libraries: > > Install libraries to make MapServer useful -- many of these are > documented on the UNIX installation page on MapServer's online > documentation: > > apt-get install libgd2 libgd2-dev proj libcurl3 libcurl3-dev libtiff4 > libtiff4-dev libjpeg62 libjpeg62-dev freetype2 libgdal1 libgdal1-dev > > 2. PHP: > > PHP must be run as a CGI and it must be configured and built with > system regular expressions. This install of PHP will give you PHP as a > CGI with system regex wihout clobbering mod_php (if it's installed) > with its built-in regex -- note that I'm installing the PHP I want to > use with MapServer in /usr/local/php_for_mapserver-4.3.10 and that I'm > symlinking it to make upgrading PHP easier: > > cd /usr/local/src > apt-get source php4-cgi > cd php4-4.3.10 > ./configure --prefix=/usr/local/php_for_mapserver-4.3.10 --enable-dbase > --with-jpeg=/usr --with-tiff=/usr --with-gd=/usr --with-png=/usr > --with-freetype --with-zlib --with-regex=system > make > make install > cp php.ini-dist /usr/local/php_for_mapserver-4.3.10/lib/php.ini > cd /usr/local > ln -s php_for_mapserver-4.3.10 php_for_mapserver > > Setup Apache to execute all *.phtml as PHP CGI. First edit > /etc/apache2/sites-enabled/default (or whatever your default > configuration is): > > > AddType application/x-httpd-php-cgi .phtml > Action application/x-httpd-php-cgi /cgi-bin/php > > > Then add this shell script, called "php", to the /usr/lib/cgi-bin > directory: > > #!/bin/sh > > export SCRIPT_FILENAME=$PATH_TRANSLATED > /usr/local/php_for_mapserver/bin/php -c > /usr/local/php_for_mapserver/etc/php.ini > > Make it executable: > > chmod 755 /usr/lib/cgi-bin/php > > Make the "mapserver" directory: > > mkdir /var/www/mapserver > > And make a phpinfo.phtml file: > > echo "" > /var/www/mapserver/phpinfo.phtml > > If you restart Apache ("apache2ctl restart") and navigate to > "http://127.0.0.1/mapserver/phpinfo.phtml" you'll see the output you'd > otherwise see loading a page with phpinfo() with the *.php extension. > > 3. MapServer: > > cd /usr/local/src > wget http://cvs.gis.umn.edu/dist/mapserver-4.4.1.tar.gz > tar -zxvf mapserver-4.4.1.tar.gz > cd mapserver-4.4.1 > ./configure --prefix=/usr/local/mapserver-4.4.1 --with-jpeg > --with-freetype=/usr/local --with-zlib --with-png --with-tiff > --with-gd=/usr --with-proj=/usr --with-gdal=/usr/bin/gdal-config > --with-wmsclient --with-php=/usr/local/php_for_mapserver > --with-postgis=/usr/bin/pg_config --with-mygis=/usr/bin/mysql_config > make > make install > > "make install" will print this message to your terminal window: > > ***** MapServer Installation ***** > To install MapServer, copy the 'mapserv' file to your web server's > cgi-bin > directory. > If you use MapScript then see the documentation for your specific > MapScript > version for installation instructions. > > Copy "mapserv" to the CGI-BIB directory: > > cp mapserv /usr/lib/cgi-bin/mapserv > > Enable PHP/MapScript: > > cd mapscript/php3 > mkdir /usr/local/php_for_mapserver/lib/php/20020429 > cp php_mapscript.so /usr/local/php_for_mapserver/lib/php/20020429/ > > In /usr/local/php_for_mapserver/lib/php.ini set the extension_dir to > /usr/local/php_for_mapserver/lib/php/20020429/, enable the > PHP/MapScript module: > > extension=php_mapscript.so > > And copy php_mapscript.so to the extensions directory: > > cp php_mapscript.so /usr/local/php_for_mapserver/lib/php/20020429/ > > Now you don't need to load the module in your PHP script. > > Restart Apache and go again to > "http://127.0.0.1/mapserver/phpinfo.phtml". You'll see a block for > MapScript. > > 4. Gotchas: > > * I've enabled MapServer and PHP/MapScript with support for MyGIS. You > may need to install MySQL 4.1's client libraries: > > apt-get install libmysqlclient14 libmysqlclient14-dev > > * mod_action may need to be enabled in Apache. It's disabled in Debian > by default: > > cd /etc/apache2/mods-enabled > ln -s /etc/apache2/mods-available/actions.load . > > * Again, this all assumes that Apache2 and PostgreSQL with PostgreSQL's > libraries are installed. > > I hope this helps. Let me know if I should make changes to these > instructions. > > Thanks. > > Jim > > On Mar 23, 2005, at 10:23 AM, Lehuta Juraj - OZ wrote: > >> Yes, it will be fayn, >> thank you very much >> >> WochteR >> >> >> -----Original Message----- >> From: James Cradock [mailto:jcradock at me3.com] >> Sent: Wednesday, March 23, 2005 4:15 PM >> To: Lehuta Juraj - OZ >> Subject: Re: [UMN_MAPSERVER-USERS] mapscript installation on debian >> >> I would install all the supporting software (apache2, proj, gdal, gd, >> etc -- >> look at the MapServer UNIX installation docs) from APT and build PHP >> (to run >> as a CGI alongside mod_php) and MapServer from source. I've got an >> utterly >> straightforward installation recipe, including input for a gotcha or >> two >> I've gotten help with from this list, for Sarge, and I can send it to >> you >> later today and amend it to the Debian topic on the MapServer Wiki. >> >> Jim >> >> On Mar 23, 2005, at 10:04 AM, Lehuta Juraj - OZ wrote: >> >>> yes, >>> extension_dir /usr/lib/php4/20020429-zts /usr/lib/php4/20020429-zts >>> >>> and mapscript.so is realy in this directory >>> >>> my Debian is: >>> sarge >>> Linux mapserver 2.6.8-1-686 #1 Thu Nov 25 04:34:30 UTC 2004 i686 >>> GNU/Linux >>> >>> I installed mapserver and mapscript packages from deb >>> http://agrogeomatic.educagri.fr/debian woody main >>> >>> by: >>> apt-get install php-mapscript cgi-mapserver php4 >>> >>> When I remove the mapscript.so from /usr/lib/php4/20020429-zts I >>> obtain this: >>> Warning: dl(): Unable to load dynamic library >>> '/usr/lib/php4/20020429-zts/php_mapscript.so' - >>> /usr/lib/php4/20020429-zts/php_mapscript.so: cannot open shared >>> object >>> file: >>> No such file or directory in /var/www/test.php on line 2 >>> >>> ** cannot open shared object file*** >>> >> ----- >> James Cradock, jcradock at me3.com >> >> me3 Technology Consultants, LLC >> 24 Preble Street, 2nd Floor >> Portland, ME 04101 >> >> 207-772-3217 (office) >> 207-838-8678 (mobile) >> >> www.me3.com >> >> > ----- > James Cradock, jcradock at me3.com > > me3 Technology Consultants, LLC > 24 Preble Street, 2nd Floor > Portland, ME 04101 > > 207-772-3217 (office) > 207-838-8678 (mobile) > > www.me3.com > > ----- James Cradock, jcradock at me3.com me3 Technology Consultants, LLC 24 Preble Street, 2nd Floor Portland, ME 04101 207-772-3217 (office) 207-838-8678 (mobile) www.me3.com From Juraj.Lehuta at SVP.SK Thu Mar 24 05:52:40 2005 From: Juraj.Lehuta at SVP.SK (Lehuta Juraj - OZ) Date: Thu, 24 Mar 2005 14:52:40 +0100 Subject: mapscript installation on debian Message-ID: Hi, I have changed my debian system, (installed php-cgi) and now I obtain this: Warning: dl(): Unable to load dynamic library '/usr/lib/php4/20020429-zts/php_mapscript.so' - /usr/lib/php4/20020429-zts/php_mapscript.so: undefined symbol: getExteriorRing__10OGRPolygon in /var/www/test.php on line 2 It seams, that mapscript is working, but not very good... :o( WochteR -----Original Message----- From: wlx [mailto:wlx at mygis.org] Sent: Wednesday, March 23, 2005 4:07 PM To: 'Lehuta Juraj - OZ' Subject: Re: [UMN_MAPSERVER-USERS] mapscript installation on debian Hi, Debian's default apache2 package was compiled with thread safety,but php mapscript is not thread safety now(I am not sure of this), so you must compile the php as cgi mode. I do it in my Debian Sarge system. May it help you to solve the problem. Best regards, Yours sincerely, Liangxu Wang > Hello, > I've got debian and I have tried to install mapscript from debian > packages. > > When I test mapscript with: > dl("php_mapscript.so"); > phpinfo(); > ?> > > I obtain this: > Warning: dl(): MapScript: Unable to initialize module Module compiled > with module API=20020429, debug=0, thread-safety=0 PHP compiled with > module API=20020429, debug=0, > thread-safety=1 These options need to match in /var/www/test.php on > line 2 > > What does it mean, pease? > > thanx > > WochteR > > From Juraj.Lehuta at SVP.SK Thu Mar 24 05:56:35 2005 From: Juraj.Lehuta at SVP.SK (Lehuta Juraj - OZ) Date: Thu, 24 Mar 2005 14:56:35 +0100 Subject: mapscript installation on debian Message-ID: Thank you. wochter -----Original Message----- From: James Cradock [mailto:jcradock at me3.com] Sent: Thursday, March 24, 2005 2:44 PM To: Lehuta Juraj - OZ Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] mapscript installation on debian This all assumes that Apache2 and PostgreSQL with PostgreSQL's libraries are installed. Also assumed: That you're running Debian Sarge ("testing"). (Watch the line breaks!) Change to user root and bring APT up-to-date: apt-get update 1. Supporting libraries: Install libraries to make MapServer useful -- many of these are documented on the UNIX installation page on MapServer's online documentation: apt-get install libgd2 libgd2-dev proj libcurl3 libcurl3-dev libtiff4 libtiff4-dev libjpeg62 libjpeg62-dev freetype2 libgdal1 libgdal1-dev 2. PHP: PHP must be run as a CGI and it must be configured and built with system regular expressions. This install of PHP will give you PHP as a CGI with system regex wihout clobbering mod_php (if it's installed) with its built-in regex -- note that I'm installing the PHP I want to use with MapServer in /usr/local/php_for_mapserver-4.3.10 and that I'm symlinking it to make upgrading PHP easier: cd /usr/local/src apt-get source php4-cgi cd php4-4.3.10 ./configure --prefix=/usr/local/php_for_mapserver-4.3.10 --enable-dbase --with-jpeg=/usr --with-tiff=/usr --with-gd=/usr --with-png=/usr --with-freetype --with-zlib --with-regex=system make make install cp php.ini-dist /usr/local/php_for_mapserver-4.3.10/lib/php.ini cd /usr/local ln -s php_for_mapserver-4.3.10 php_for_mapserver Setup Apache to execute all *.phtml as PHP CGI. First edit /etc/apache2/sites-enabled/default (or whatever your default configuration is): AddType application/x-httpd-php-cgi .phtml Action application/x-httpd-php-cgi /cgi-bin/php Then add this shell script, called "php", to the /usr/lib/cgi-bin directory: #!/bin/sh export SCRIPT_FILENAME=$PATH_TRANSLATED /usr/local/php_for_mapserver/bin/php -c /usr/local/php_for_mapserver/etc/php.ini Make it executable: chmod 755 /usr/lib/cgi-bin/php Make the "mapserver" directory: mkdir /var/www/mapserver And make a phpinfo.phtml file: echo "" > /var/www/mapserver/phpinfo.phtml If you restart Apache ("apache2ctl restart") and navigate to "http://127.0.0.1/mapserver/phpinfo.phtml" you'll see the output you'd otherwise see loading a page with phpinfo() with the *.php extension. 3. MapServer: cd /usr/local/src wget http://cvs.gis.umn.edu/dist/mapserver-4.4.1.tar.gz tar -zxvf mapserver-4.4.1.tar.gz cd mapserver-4.4.1 ./configure --prefix=/usr/local/mapserver-4.4.1 --with-jpeg --with-freetype=/usr/local --with-zlib --with-png --with-tiff --with-gd=/usr --with-proj=/usr --with-gdal=/usr/bin/gdal-config --with-wmsclient --with-php=/usr/local/php_for_mapserver --with-postgis=/usr/bin/pg_config --with-mygis=/usr/bin/mysql_config make make install "make install" will print this message to your terminal window: ***** MapServer Installation ***** To install MapServer, copy the 'mapserv' file to your web server's cgi-bin directory. If you use MapScript then see the documentation for your specific MapScript version for installation instructions. Copy "mapserv" to the CGI-BIB directory: cp mapserv /usr/lib/cgi-bin/mapserv Enable PHP/MapScript: cd mapscript/php3 mkdir /usr/local/php_for_mapserver/lib/php/20020429 cp php_mapscript.so /usr/local/php_for_mapserver/lib/php/20020429/ In /usr/local/php_for_mapserver/lib/php.ini set the extension_dir to /usr/local/php_for_mapserver/lib/php/20020429/, enable the PHP/MapScript module: extension=php_mapscript.so And copy php_mapscript.so to the extensions directory: cp php_mapscript.so /usr/local/php_for_mapserver/lib/php/20020429/ Now you don't need to load the module in your PHP script. Restart Apache and go again to "http://127.0.0.1/mapserver/phpinfo.phtml". You'll see a block for MapScript. 4. Gotchas: * I've enabled MapServer and PHP/MapScript with support for MyGIS. You may need to install MySQL 4.1's client libraries: apt-get install libmysqlclient14 libmysqlclient14-dev * mod_action may need to be enabled in Apache. It's disabled in Debian by default: cd /etc/apache2/mods-enabled ln -s /etc/apache2/mods-available/actions.load . * Again, this all assumes that Apache2 and PostgreSQL with PostgreSQL's libraries are installed. I hope this helps. Let me know if I should make changes to these instructions. Thanks. Jim On Mar 23, 2005, at 10:23 AM, Lehuta Juraj - OZ wrote: > Yes, it will be fayn, > thank you very much > > WochteR > > > -----Original Message----- > From: James Cradock [mailto:jcradock at me3.com] > Sent: Wednesday, March 23, 2005 4:15 PM > To: Lehuta Juraj - OZ > Subject: Re: [UMN_MAPSERVER-USERS] mapscript installation on debian > > I would install all the supporting software (apache2, proj, gdal, gd, > etc -- look at the MapServer UNIX installation docs) from APT and > build PHP (to run as a CGI alongside mod_php) and MapServer from > source. I've got an utterly straightforward installation recipe, > including input for a gotcha or two I've gotten help with from this > list, for Sarge, and I can send it to you later today and amend it to > the Debian topic on the MapServer Wiki. > > Jim > > On Mar 23, 2005, at 10:04 AM, Lehuta Juraj - OZ wrote: > >> yes, >> extension_dir /usr/lib/php4/20020429-zts /usr/lib/php4/20020429-zts >> >> and mapscript.so is realy in this directory >> >> my Debian is: >> sarge >> Linux mapserver 2.6.8-1-686 #1 Thu Nov 25 04:34:30 UTC 2004 i686 >> GNU/Linux >> >> I installed mapserver and mapscript packages from deb >> http://agrogeomatic.educagri.fr/debian woody main >> >> by: >> apt-get install php-mapscript cgi-mapserver php4 >> >> When I remove the mapscript.so from /usr/lib/php4/20020429-zts I >> obtain this: >> Warning: dl(): Unable to load dynamic library >> '/usr/lib/php4/20020429-zts/php_mapscript.so' - >> /usr/lib/php4/20020429-zts/php_mapscript.so: cannot open shared >> object >> file: >> No such file or directory in /var/www/test.php on line 2 >> >> ** cannot open shared object file*** >> > ----- > James Cradock, jcradock at me3.com > > me3 Technology Consultants, LLC > 24 Preble Street, 2nd Floor > Portland, ME 04101 > > 207-772-3217 (office) > 207-838-8678 (mobile) > > www.me3.com > > ----- James Cradock, jcradock at me3.com me3 Technology Consultants, LLC 24 Preble Street, 2nd Floor Portland, ME 04101 207-772-3217 (office) 207-838-8678 (mobile) www.me3.com From fwarmerdam at GMAIL.COM Thu Mar 24 06:36:27 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 24 Mar 2005 09:36:27 -0500 Subject: tileindex tiif tfw files In-Reply-To: <20050324101723.50463.qmail@web26403.mail.ukl.yahoo.com> Message-ID: On Thu, 24 Mar 2005 11:17:23 +0100, Jose Luis Gonzalez wrote: > Hello > I am beggining working with tileindexing and I don't know how it works very > well. I don't have geotiff files, what I have are tiff files and .tfw files > with the same name associated with them. > So my question is, when I construct the .shp file using the gdaltindex > utility do I have to include the .tfw files? Or later in the map file do I > have to refer them in some way? > In general, how do I have to manage myself with these type of files when > managing tileindexing. Jose, If you TIFF files do not contain geotiff info then gdaltindex will look for the corresponding .tfw (or .wld) file and use it instead. Likewise MapServer will utilize the world file. You should refer to the .tif files when invoking gdaltindex or directly using tiff files with world files in MapServer. But you *do* need to keep the .tfw files with the .tif files. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jdport at VERITIME.COM Thu Mar 24 07:06:47 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 24 Mar 2005 10:06:47 -0500 Subject: making efficient map layers Message-ID: When I use a class definition like this, I only get the 1 pixel line, I don't see it overlayed on the wider line. CLASS maxscale 99000 STYLE SYMBOL 0 SIZE 3 COLOR 0 255 0 END STYLE SYMBOL 0 SIZE 1 COLOR 255 255 255 END END This class only draws the white line and ignores the green style... I'm not sure why. -Jeff >> - How do you go about changing the width of the different types of >> roads? I assume each class of road is in a different layer and you >> somehow manipulate the line width? > > In your class for the roads do something like this: > > CLASS > EXPRESSION ... > STYLE # first draw a 5 pixel wide green line > SYMBOL 0 # built in circle symbol > SIZE 5 > COLOR 0 255 0 # green > END > STYLE # then draw a 3 pixel wide white line on top of the green > SYMBOL 0 # that leaves a 1 pixel border on each side of the white > SIZE 3 > COLOR 255 255 255 # white > END > STYLE # then draw a 1 pixel wide black line down the center > SYMBOL 0 > SIZE 1 > COLOR 0 0 0 # black > END > ... > END > From sgillies at FRII.COM Thu Mar 24 07:23:48 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 24 Mar 2005 08:23:48 -0700 Subject: making efficient map layers In-Reply-To: Message-ID: Symbol 0 is a single pixel symbol. You cannot size it. You'll need to use a different symbol for that first style. cheers, Sean On Mar 24, 2005, at 8:06 AM, Jeff Portwine wrote: > When I use a class definition like this, I only get the 1 pixel line, I > don't see it overlayed on the wider line. > > CLASS > maxscale 99000 > STYLE > SYMBOL 0 > SIZE 3 > COLOR 0 255 0 > END > STYLE > SYMBOL 0 > SIZE 1 > COLOR 255 255 255 > END > END > > This class only draws the white line and ignores the green style... > I'm not > sure why. > > -Jeff > >>> - How do you go about changing the width of the different types of >>> roads? I assume each class of road is in a different layer and you >>> somehow manipulate the line width? >> >> In your class for the roads do something like this: >> >> CLASS >> EXPRESSION ... >> STYLE # first draw a 5 pixel wide green line >> SYMBOL 0 # built in circle symbol >> SIZE 5 >> COLOR 0 255 0 # green >> END >> STYLE # then draw a 3 pixel wide white line on top of the green >> SYMBOL 0 # that leaves a 1 pixel border on each side of the >> white >> SIZE 3 >> COLOR 255 255 255 # white >> END >> STYLE # then draw a 1 pixel wide black line down the center >> SYMBOL 0 >> SIZE 1 >> COLOR 0 0 0 # black >> END >> ... >> END >> > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From woodbri at SWOODBRIDGE.COM Thu Mar 24 08:02:22 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 24 Mar 2005 11:02:22 -0500 Subject: making efficient map layers In-Reply-To: <1a2cd1a7c54a2314ae9ea319ee1549ea@frii.com> Message-ID: Ha! Even I can learn something new! Ok you will bee to create a circle symbol and use that instead of SYMBOL 0 -Steve Sean Gillies wrote: > Symbol 0 is a single pixel symbol. You cannot size it. You'll need to > use a different symbol for that first style. > > cheers, > Sean > > On Mar 24, 2005, at 8:06 AM, Jeff Portwine wrote: > >> When I use a class definition like this, I only get the 1 pixel line, I >> don't see it overlayed on the wider line. >> >> CLASS >> maxscale 99000 >> STYLE >> SYMBOL 0 >> SIZE 3 >> COLOR 0 255 0 >> END >> STYLE >> SYMBOL 0 >> SIZE 1 >> COLOR 255 255 255 >> END >> END >> >> This class only draws the white line and ignores the green style... >> I'm not >> sure why. >> >> -Jeff >> >>>> - How do you go about changing the width of the different types of >>>> roads? I assume each class of road is in a different layer and you >>>> somehow manipulate the line width? >>> >>> >>> In your class for the roads do something like this: >>> >>> CLASS >>> EXPRESSION ... >>> STYLE # first draw a 5 pixel wide green line >>> SYMBOL 0 # built in circle symbol >>> SIZE 5 >>> COLOR 0 255 0 # green >>> END >>> STYLE # then draw a 3 pixel wide white line on top of the green >>> SYMBOL 0 # that leaves a 1 pixel border on each side of the >>> white >>> SIZE 3 >>> COLOR 255 255 255 # white >>> END >>> STYLE # then draw a 1 pixel wide black line down the center >>> SYMBOL 0 >>> SIZE 1 >>> COLOR 0 0 0 # black >>> END >>> ... >>> END >>> >> >> > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From bfraser at GEOANALYTIC.COM Thu Mar 24 08:32:45 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 24 Mar 2005 09:32:45 -0700 Subject: dynamic symbol rotation Message-ID: Franceso, I ran into this a couple of years ago, and I don't think the situation has changed. The short answer is no, there is no map file keyword to indicate the field to use as the rotation value. The long answer is there are a couple of work-arounds that might work for you: 1. Use LABEL with POSITION CC and LABELANGLEITEM to indicate the field with the rotation - if you want to have a text label along with the "symbol" then you'll to define another LAYER just for that - this will only work for using TrueType fonts for symbols (it won't work for Bitmap or Vector symbols) OR 2. Create different symbols for the different directions, and then use CLASS and EXPRESSION to assign the appropriate symbol for the different values in the field. - We used this method to show ship symbols based on a "heading" attribute: CLASS EXPRESSION ([HEADING]<23 or [HEADING]>337) SYMBOL 'arrowup' SIZE 10 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS CLASS EXPRESSION ([HEADING]>=23 and [HEADING]<67) SYMBOL 'arrowuprt' : In this case we generalized the heading values to eight different symbols representing eight points on a compasss. I don't think there is any work planned to allow rotation of symbols. Brent Fraser ----- Original Message ----- From: Francesco Sozzi To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, March 24, 2005 3:40 AM Subject: [UMN_MAPSERVER-USERS] dynamic symbol rotation Hi all, I would like to rotate point symbols reading rotation angle from a field. I think that at this version it is not possible. Anybody knows if this possibility will be provided in any future release? Regards Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From el at VINKO.CL Thu Mar 24 09:03:06 2005 From: el at VINKO.CL (Vinko Vrsalovic) Date: Thu, 24 Mar 2005 13:03:06 -0400 Subject: Debian and mapserver, another take Message-ID: Hi, I've been trying for two days to install mapscript on a debian box (yes, I have read the recent thread about the issue, but it doesn't apply to my case, it appears) and haven't been successful. I have php CGI compiled from source, apache is from the debian package. Mapserver 4.4.1 compiled against the source tree of php, both php-cgi and php_mapscript.so are compiled against the same libraries (where pertinent) The problem is, when I run from the commandline: #php-cgi draw.php it works fine, generating the image without a single problem. When I run it through apache, the same script hangs... (I have the Action and AddHandler directives in order to execute as a CGI, tested with phpinfo()) gdb'ing the php instance i see it hangs after calling _phpms_report_mapserver_error. It hangs with 99% CPU usage and stays there until the interpreter kills it for running longer than 30 seconds, instead of throwing the relevant error to the screen and finishing, is this maybe a threading issue? Where is my mistake? PHP configure: './configure' '--with-gd=/usr/local' '--with-pgsql' '--with-freetype-dir=/usr/local' '--with-regex=system' MapScript configure: ./configure --with-php=/usr/local --with-gdal=/usr/local/bin/gdal-config --without-tiff --without-jpeg --without-png --with-freetype=/usr/local --with-gd --with-postgis=/usr/local/pgsql/bin/pg_config --with-proj=/usr/local --with-threads --with-php-regex-dir=../php-4.3.10/regex --enable-debug Backtrace: #0 0x40232623 in mallopt () from /lib/tls/libc.so.6 #1 0x402318c3 in malloc () from /lib/tls/libc.so.6 #2 0x0813197e in _emalloc (size=1076827752) at /home/admin/mupworks-deps-srcs/php-4.3.10/Zend/zend_alloc.c:164 #3 0x08119165 in xbuf_resize (xbuf=0xbfffd290, add=128) at /home/admin/mupworks-deps-srcs/php-4.3.10/main/spprintf.c:143 #4 0x081191cd in xbuf_init (xbuf=0xbfffd290, max_len=8192) at /home/admin/mupworks-deps-srcs/php-4.3.10/main/spprintf.c:160 #5 0x08119bc1 in vspprintf (pbuf=0xbfffd2f8, max_len=8192, format=0x2000
, ap=0x2000
) at /home/admin/mupworks-deps-srcs/php-4.3.10/main/spprintf.c:630 #6 0x081157f1 in php_error_cb (type=2, error_filename=0x81d29a4 "/var/www/sinresiduos/draw.php", error_lineno=2, format=0x2000
, args=0x2000
) at /home/admin/mupworks-deps-srcs/php-4.3.10/main/main.c:599 #7 0x0813f3e6 in zend_error (type=2, format=0x404ed540 "[MapServer Error]: %s: %s\n") at /home/admin/mupworks-deps-srcs/php-4.3.10/Zend/zend.c:763 #8 0x4043c8f7 in _phpms_report_mapserver_error (php_err_type=2) at php_mapscript_util.c:129 #9 0x40440413 in php3_ms_map_new (ht=1, return_value=0x81e2efc, this_ptr=0x0, return_value_used=1) at php_mapscript.c:1730 #10 0x0814dad7 in execute (op_array=0x81d2aac) at /home/admin/mupworks-deps-srcs/php-4.3.10/Zend/zend_execute.c:1642 #11 0x0813f549 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/admin/mupworks-deps-srcs/php-4.3.10/Zend/zend.c:900 #12 0x0811798d in php_execute_script (primary_file=0xbffff990) at /home/admin/mupworks-deps-srcs/php-4.3.10/main/main.c:1736 #13 0x0815276f in main (argc=1, argv=0xbffffa54) at /home/admin/mupworks-deps-srcs/php-4.3.10/sapi/cgi/cgi_main.c:1592 -- Vinko Vrsalovic From mleon at SCIENTIFICINFORMATICS.COM Thu Mar 24 15:29:15 2005 From: mleon at SCIENTIFICINFORMATICS.COM (Mauricio Leon) Date: Thu, 24 Mar 2005 17:29:15 -0600 Subject: coordinate systems transformations Message-ID: I need to zoom to a given map location, where the location position is given in actual latitude and longitude coordinates. I want to use the zoompoint method, but it uses pixel coordinates as input Does map server provides methods for transformation among the various coordinate systems that are used in the application (i.e. degrees, georeference extents, pixels, etc)? Any and all assistance is greatly appreciated. Mauricio From charu24 at GMAIL.COM Thu Mar 24 15:43:27 2005 From: charu24 at GMAIL.COM (Charu Verma) Date: Thu, 24 Mar 2005 18:43:27 -0500 Subject: Parsing Error in Zooming In-Reply-To: <200503231413.41573.bpicinbono@worldonline.fr> Message-ID: I replaced my map file name in the right case character but that doesnt seem to work.I would like to know how to determine the variable datatype i.e how do I know whether to classify it as an integer or a string or float. thanx On Wed, 23 Mar 2005 14:13:41 +0100, blaise wrote: > Le mercredi 23 Mars 2005 03:07, Charu Verma a ?crit : > > hi all, > > My mapfile is noname.map > > I tried running the following script but it always gives me this > > parsing error on line 9.I have checked everything but am still not > > able to figure out where the problem lies.Please help me. > > Here's my code for zooming and panning: > > > > > dl('php_mapscript_42.dll'); > > > > $val_zsize=3; > > $check_pan="CHECKED"; > > $map_path="C:\ms4w\Apache\htdocs\" ; > > $map_file="NONAME.map"; > > > > $map=ms_newMapObj($map_path.$map_file) ; > >...... > >..... > > Please help me out > > Hi > I don't know if that can help but you have : > > My mapfile is noname.map > and > > $map_file="NONAME.map"; > Try to have both either in lower or upper case characters, according to your > mapfile name. > Blaise > From stigmata_blackangel at YAHOO.COM Thu Mar 24 16:39:31 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Thu, 24 Mar 2005 16:39:31 -0800 Subject: coordinate systems transformations In-Reply-To: 6667 Message-ID: > Does map server provides methods for transformation > among the various coordinate systems that are used > in the application (i.e. degrees, > georeference extents, pixels, etc)? MapServer itself does not. But there are ways to do it that aren't terribly complicated. The following recipe is how I made a map image clickable, while keeping track of the projected coords. // handle_map_click() figures out the map coords of where you clicked // and sets the variables coord_x and coord_y // the [minx], et al are MapServer template markups and will be replaced with // the correct numbers automagicallly // the image size is hardcoded, but there is probably a MapServer markup // that would have filled those in, too // The variable 'image' is the HTML/DOM image object, so be sure to name your image function handle_map_click(image) { // some things are hardcoded image_width = 200; image_height = 200; // the current display map's boundaries var display_lower_x = [minx]; var display_lower_y = [miny]; var display_upper_x = [maxx]; var display_upper_y = [maxy]; // convert the mouse click into pixelcoords clickcoords = GetClickCoordinates(); imagecoords = GetObjectCoordinates(image); click_x = clickcoords.x - imagecoords.x; click_y = clickcoords.y - imagecoords.y; click_y = image_height - click_y; // for GIS, the origin is lower-left, not upper-left // figure out how many meters are represented by 1 pixel var x_perpixel = (display_upper_x - display_lower_x) / image_width ; var y_perpixel = (display_upper_y - display_lower_y) / image_height; // now convert pixels into meters coord_x = display_lower_x + (click_x * x_perpixel) coord_y = display_lower_y + (click_y * y_perpixel) // we don't want to actually return anything, cuz we're probably being called // by a click on an image, and returning false keeps the form from being submitted return false; } These other two functions I got from the 'net someplace. Sadly, I don't recall where so I am unable to give credit. They figure out mouse clicks and image positions. // a function to fetch the location of the mouse-click relative to the document's origin function GetClickCoordinates() { if (window.Event) { mouseX = e.pageX; mouseY = e.pageY; } else { mouseX = window.event.clientX + document.body.scrollLeft; mouseY = window.event.clientY + document.body.scrollTop; } return {x:mouseX, y:mouseY} } // a function to return the location of an object relative to the document's origin function GetObjectCoordinates(obj) { return { x:GetObjectX(obj) - 2, y:GetObjectY(obj) - 2 }; } function GetObjectX(obj) { var curleft = 0; if (obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft obj = obj.offsetParent; } } else if (obj.x) { curleft += obj.x; } return curleft-2; } function GetObjectY(obj) { var curtop = 0; if (obj.offsetParent) { while (obj.offsetParent) { curtop += obj.offsetTop obj = obj.offsetParent; } } else if (obj.y) { curtop += obj.y; } return curtop-2; } To make the image active and clickable, I use a form whose input "button" is the image:
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From charu24 at GMAIL.COM Thu Mar 24 17:15:28 2005 From: charu24 at GMAIL.COM (Charu Verma) Date: Fri, 25 Mar 2005 06:45:28 +0530 Subject: Data Retrieval from a DBF File Format In-Reply-To: <200503232318.35629.bpicinbono@worldonline.fr> Message-ID: I have a question here.When I see those scripts they have many image files included in them.Since I only have a single map file which is composed of just one layer how do I get those images such as road,rail park.Are these images prebuilt? charu On Wed, 23 Mar 2005 23:18:35 +0100, blaise wrote: > Le mercredi 23 Mars 2005 22:41, Charu Verma a ?crit : > > Hi yes I have php/mapscript and php.. > > Please help > > > > On Wed, 23 Mar 2005 14:04:55 +0100, blaise > wrote: > > > Le mercredi 23 Mars 2005 03:10, Charu Verma a ?crit : > > > > Hi All, > > > > I have my interface ready but want to make it interactive i.e I want > > > > the user to b able to click on a point and the interface could actually > > > > display the data for that point.I have a dbf file with me including > > > > shp and shx through which I designed the map interface. > > > > Do I need to install some other applictions besides ms4w so as to > > > > establish a connectivity with the interface?Can anyone give me ideas of > > > > the way a script would look like? > > > > Please help me go ahead with this. > > > > charu > > > > > > Hi, > > > No, I don't think you have to install other applications. > > > Have you looked at the "workshop/itasca" demo and the "gmap" demo ? > > > They both have a query tool working pretty well. > > > Blaise > > Charu, this is very well done either by MapServer or by Php_MapScript. Just > download the demos and look into the code. > > MapServer (html, demo Itasca) : > http://mapserver.gis.umn.edu/dload.html link (top of the page): "demo" > > Php_MapScript (html-php, demo gmap): > http://dl.maptools.org/dl/ > download gmap-msXX.zip (or .tar.gz for linux) > (XX being your mapserver version number) > > This gmap demo is online here : > http://www2.dmsolutions.ca/gmap/gmap75.phtml > see the "I" (information) tool ? > > Note that for a layer to be queryable, you'll need a "TEMPLATE" statement in > the layer section of the mapfile. > Blaise > From gmanepal at GMAIL.COM Thu Mar 24 18:22:03 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Thu, 24 Mar 2005 21:22:03 -0500 Subject: Projection Help Message-ID: Hello All, I really appreciate the support that I have been getting in this list, without which it is impossible for me to go ahead in my project. Although, I have bulleted the questions that I have in my mind, any help in the discipline is invaluable to me. These are my questions:- Can anyone tell me how to set the EPSG or other information in the map file? Can I know the Projection coordinates from the shapefile? Is there a specific EPSG Code for each country or is it for each state in each country? How do I find the EPSG Code for Virginia or a city in Virginia? I appreciate if someone can throw some light onto this. Regards, Giridhar From ed at TOPOZONE.COM Thu Mar 24 19:30:45 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 24 Mar 2005 22:30:45 -0500 Subject: Projection Help Message-ID: Giridhar - I think you are slightly misunderstanding the meaning of the EPSG codes. The term "map projection" is commonly used informally to describe a type or class of map projections. For example, the Transverse Mercator projection is a method for projecting points on to a plane (a map), but there are many specific implementations of this class of projections. For example, a Transverse Mercator projection has a central meridian - you may select any line of longitude for that value. Each choice will give you a different output image. In MapServer (and most other GIS usage) a "projection" refers to a specific implementation of a type of projection. This basically describes the combination of a projection type (like Transverse Mercator) and a specific set of parameters (like the choice of central meridian) that go with it. This meaning of "projection" refers to the set of ALL parameters required to completely, unambigiously describe the actual mathematical transformations used to create a map. These parameters can get wordy and easy to mistype or miscode. It is also sometimes hard to recognize a familiar projection if it's only described parametrically. The EPSG coding system addresses these problems. Commonly-used projections are tabulated and each given an unique index number, the "EPSG code". For example the following definition: PROJECTION +proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs END defines, in a MapServer map file, the UTM Zone 15N NAD83 projection. This is a common projection and has been assigned the EPSG code 26915. As a result, you could use this equivalent definition: PROJECTION +init=epsg:26915 END The benefits are that the description is much shorter, it's easier to type correctly, and it's easy to see if two projections are really the same. The disadvantages are that it's cryptic (and meaningless without an EPSG table) and it's impossible to use for "non-standard" projections that don't have a code assigned. So - now to get to your questions : Q: Can anyone tell me how to set the EPSG or other information in the map file? A: By using a PROJECTION block as I have just shown above. A PROJECTION block at the top level (not inside a LAYER) of the map file describes the projection of the output map image. A PROJECTION block inside a LAYER block describes the projection of the source input data set. If they are different, MapServer will do the reprojection for you (assuming it's properly configured, which is the normal case). Q: Can I know the Projection coordinates from the shapefile? A: The shapefile is really just a lot of coordinates. I suspect you want to know if you can know the PROJECTION from the shapefile. Often the answer is "No". The shapefile format does not include projection information in any way. Relatively recently, ESRI has started using an auxiliary file with the extension .PRJ (with the same base name as the shapefile) to describe the projection of the shapefile. You will sometimes find these files with shapefiles - often you will not. Q: Is there a specific EPSG Code for each country or is it for each state in each country? A: There is a specific EPSG code for each projection. You may be getting slightly confused by the adoption of standardized local projection systems. Since you talk about Virginia, I'll give the United States example. Each state in the US has adopted one or more State Plane Coordinate Systems (SPCS). These are map projections that are used for surveying and legal coordinate documentation in each state. Each SPCS is designed to cover an entire small state or a portion of a larger state. Map projections suitable for high-precision work are only suitable over a limited area - as you move farther from the natural origin of the projection, your errors increase. In order to support highly accurate survey work, large states provide several "zones", usually all of which use the same class of projection with slightly different parameters. Q: How do I find the EPSG Code for Virginia or a city in Virginia? A: Therefore, you should know by now that Virginia does not have an EPSG code. The State of Virginia has a State Plane Coordinate system divided into two zones - North and South. To find out the boundaries of these zones, you can refer to an ESRI shapefile available at http://www.geographynetwork.com/data/download/esri/stateplane.zip showing the extent of all SPCS zones. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Giridhar Manepalli Sent: Thursday, March 24, 2005 9:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Projection Help Hello All, I really appreciate the support that I have been getting in this list, without which it is impossible for me to go ahead in my project. Although, I have bulleted the questions that I have in my mind, any help in the discipline is invaluable to me. These are my questions:- Can anyone tell me how to set the EPSG or other information in the map file? Can I know the Projection coordinates from the shapefile? Is there a specific EPSG Code for each country or is it for each state in each country? How do I find the EPSG Code for Virginia or a city in Virginia? I appreciate if someone can throw some light onto this. Regards, Giridhar From bpicinbono at WORLDONLINE.FR Thu Mar 24 20:32:15 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Fri, 25 Mar 2005 05:32:15 +0100 Subject: MapServer going mobile on Zaurus In-Reply-To: <20050325003931.33337.qmail@web53805.mail.yahoo.com> Message-ID: Hi, I would have like to post this on the devel list but I can't. (I'm often lost with sucribtion proccess...sorry) Well, I hope I'm close to it. I got a Zaurus sl-5500 recently to try to put MapServer inside. Very nooB with mobile devices, it has been difficult to start. Installing and compiling on these little machines is not set up out of the box. I've heard about cross-compilation, that I'll use when I'll be sure MapServer runs fine, but I focussed on native compilation. There are various distros, various compilation tools and various gcc versions; I don't get it all yet. I am using the OpenZaurus-3.5.2 distro , with OPIE-1.2 flavour. I had difficulties to get a compiler compiles, finally, I did it with the zgcc compilation tool that runs with gcc-2.95.2. I think I've been able to (quite easy, with ipk (kind of rpm)) install some required graphic libs and their devel (libfreetype, zlib, libpng, libjpeg). With links and nice ./configure flags : ./configure --without-tiff --with-freetype=/usr/lib --with-zlib=/usr/lib --with-png=/usr/lib --with-jpeg=/usr/lib --with-gd=/usr MapServer finds the libs at configure and build time. I am still missing the libtiff devel package, but I should get it or I will try to build it. The configure pass seems to go smoothly, I can join the output if needed; but I get a strange kind of errors at build : ./libmap.a(mapstring.o): In function 'trimLeft': mapstring.o(.text+0x258): undefined reference to '__ctype_b' ./libmap.a(mapstring.o): In function 'MSEncodeUrl': mapstring.o(.text+0x98c): undefined reference to '__ctype_b' ./libmap.a(mapstring.o): In function 'hash': maphash.o(.text+0x98): undefined reference to '__ctype_tolower' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 I am not compiling often, except MapServer and graphic libs, and I don't think I have seen this kind of error before with MapServer. What about you ? I wonder if it could be related to the gcc-2.95.2 that runs on the Zaurus. What gcc version is MapServer code compatible ? I am investigating, maybe also a missing package (c++ ? libstdc++ ? else ?), or missing links, bad pathes (as Zaurus as a specific file tree, plenty of links) ? Or missing flags to the ./configure ? The files concerned seems to be mapstring.c and maphash.c. I started to cut in the functions implicated (knowing I was a bit destroying MapServer) to see if it could build up to the end, but as I suppressed some errors, new ones of the same kind appeared elsewhere.... So I am looking into MapServer code and googling, but as I haven't C coded for a long time, I am a bit lost with the syntax. Following are the three functions that rise the build errors. If a skilled C anthropologist can see a reason why gcc-2.95.2 can't cope with them. ( I am testing with MapServer-4.4.1. As the Zaurus systems seem to be one step before (kernel 2.4...) , would it be worth to try with a 3.6.x MapServer version (about the C code) ? ) Of course, when I'll have it work, I will be glad to share the process and add a stone to the supported processors list. MapServer on mobile can be for fun, but also much more, I think, with gps and wifi... So here are the three functions that I suspect to kill the build : --------------------------------------------------------------------------------------------------- File : "mapstring.c", lines 207-242, function (?) trimLeft : --------------------------------------------------------------------------------------------------- /** * remove leading white spaces and shif evey thing to the left */ char *trimLeft(char *string) { char *read, *write; int i, length; if (string && strlen(string) > 0) { length = strlen(string); read = string; write = string; for (i=0; i write) { while (*read) { *write = *read; read++; write++; } *write = '\0'; } } return string; } ------------------------------------------------------------------------------------------------------------- File : "mapstring.c", lines 569-602, function (?) msEncodeUrl : ------------------------------------------------------------------------------------------------------------- char *msEncodeUrl(const char *data) { char *hex = "0123456789ABCDEF"; const char *i; char *j, *code; int inc; unsigned char ch; for (inc=0, i=data; *i!='\0'; i++) if (!isalnum(*i)) inc += 2; if (!(code = (char*)malloc(strlen(data)+inc+1))) return NULL; for (j=code, i=data; *i!='\0'; i++, j++) { if (*i == ' ') *j = '+'; else if (!isalnum(*i)) { ch = *i; *j++ = '%'; *j++ = hex[ch/16]; *j = hex[ch%16]; } else *j = *i; } *j = '\0'; return code; } ---------------------------------------------------------------------------------------- File : "maphash.c", lines 45-53, function (?) hash : ---------------------------------------------------------------------------------------- static unsigned hash(const char *key) { unsigned hashval; for(hashval=0; *key!='\0'; key++) hashval = tolower(*key) + 31 * hashval; return(hashval % MS_HASHSIZE); } Thks Blaise From bpicinbono at WORLDONLINE.FR Thu Mar 24 22:22:53 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Fri, 25 Mar 2005 07:22:53 +0100 Subject: MapServer going mobile on Zaurus In-Reply-To: <200503250532.15760.bpicinbono@worldonline.fr> Message-ID: Le vendredi 25 Mars 2005 05:32, blaise a ?crit?: > Hi, > I would have like to post this on the devel list but I can't. (I'm often > lost with sucribtion proccess...sorry) > > Well, I hope I'm close to it. I got a Zaurus sl-5500 recently to try to put > MapServer inside. >......... >......... > MapServer finds the libs at configure and build time. I am still missing > the libtiff devel package, but I should get it or I will try to build it. > The configure pass seems to go smoothly, I can join the output if needed; > but I get a strange kind of errors at build : > > ./libmap.a(mapstring.o): In function 'trimLeft': > mapstring.o(.text+0x258): undefined reference to '__ctype_b' > ./libmap.a(mapstring.o): In function 'MSEncodeUrl': > mapstring.o(.text+0x98c): undefined reference to '__ctype_b' > ./libmap.a(mapstring.o): In function 'hash': > maphash.o(.text+0x98): undefined reference to '__ctype_tolower' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > Now it build fine ! I found a trick in a kind of RedHat bugzilla. But fully applied, it gave other errors, so I just kept what was needed... I'ld like to know it what I did could corrupt MapServer : In both files mapstrinc.c and maphash.c, I added a line at the very begining, just after this one : #include For mapstring.c, I added this line : __const unsigned short int *__ctype_b; and for maphash.c, this one : __const __int32_t *__ctype_tolower; Can this mess up MapServer ? This is the trick (and warnings) from RedHat (not at all related to MapServer) : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Customer Fix ------------- We used a brute force approach. Make the following code into a .c file, and include it in your program. At the start of main(), call ctSetup(). Make sure you compile statically or else the dynamic loader will cause problems. I've seen others use macros, but this worked good enough for us... #include __const unsigned short int *__ctype_b; __const __int32_t *__ctype_tolower; __const __int32_t *__ctype_toupper; void ctSetup() { __ctype_b = *(__ctype_b_loc()); __ctype_toupper = *(__ctype_toupper_loc()); __ctype_tolower = *(__ctype_tolower_loc()); } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A / Will the dynamic loader (?) cause problem ? B / They are talking about puting that in a start script. If MapServer don't run into troubles with this fix, would it be better to put it in a start script ? and then, where ? Now I can't wait, I'm going to install Apache, a browser and custom the Itasca demo :p Blaise From Dejan.Gambin at PULA.HR Thu Mar 24 23:30:47 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 25 Mar 2005 08:30:47 +0100 Subject: Joining an external dbf table Message-ID: Hello, I have a question regarding joining an external table. I have an external dbf table that I want to query (and used as class expression) instead of item in source dbf table (the dbf table from shp). The source dbf table has an numeric field called ID1 that has to be joined to second table ID2 field and I want query to return me the NAME field from the second table. Can someone show me an example of map file with class expressions (I would like the items with different names be in different class so the number of classes is equal to number of different names)? What else has to be done? How to refer to it in template file? Thanks very much From stephane.riff at CERENE.FR Fri Mar 25 00:04:38 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Fri, 25 Mar 2005 09:04:38 +0100 Subject: dynamic symbol rotation In-Reply-To: <003101c5305d$e7082690$2d01a8c0@newsviluppo> Message-ID: You can do it with LABELITEMANGLE attribute of the layer Object. Francesco Sozzi wrote: > Hi all, > > I would like to rotate point symbols reading rotation angle from a field. > I think that at this version it is not possible. > Anybody knows if this possibility will be provided in any future release? > > Regards > > Francesco > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.0.308 / Virus Database: 266.8.1 - Release Date: 23/03/2005 > > From lsnagu at YAHOO.COM Fri Mar 25 04:42:01 2005 From: lsnagu at YAHOO.COM (vdharan) Date: Fri, 25 Mar 2005 06:42:01 -0600 Subject: How to make Moving Symbols using MapScript Message-ID: Hello, Iam working on a vehicle tracking system. I want to show symbols representing vehicles to move in the map as and when the co-ordinate of the vehicle changes. I continuously get the co-ordinate of the vehicles at regular intervals. I want this to happen without refreshing the page. Can any one suggest me a way to do this. Iam using Redhat9 and PHP Mapscript. Best Regards, vdharan From woodbri at SWOODBRIDGE.COM Fri Mar 25 05:34:55 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 25 Mar 2005 08:34:55 -0500 Subject: How to make Moving Symbols using MapScript In-Reply-To: Message-ID: You should be able to do this is with a Java applet or a Flash application. And you might be able to do it with xhtml and javascript. The problem is you need to decide whether the application is going to get its new data by push from the server or by polling the server for updates. Since the map is not changing except when you pan or zoom it I would separate the map image from the vehicles being tracked so your client side application can request map changes based on the user input and that you get a list of vehicles and their locations as a separate stream of data from the server, then you Java, Flash, whatever to draw the vehicles on top of the map. make the vehicle update a separate thread and your all done. -Steve W. http://imaptools.com vdharan wrote: > Hello, > Iam working on a vehicle tracking system. I want to show symbols > representing vehicles to move in the map as and when the co-ordinate of the > vehicle changes. I continuously get the co-ordinate of the vehicles at > regular intervals. I want this to happen without refreshing the page. > > Can any one suggest me a way to do this. > Iam using Redhat9 and PHP Mapscript. > > Best Regards, > vdharan > From woodbri at SWOODBRIDGE.COM Fri Mar 25 05:38:27 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 25 Mar 2005 08:38:27 -0500 Subject: Joining an external dbf table In-Reply-To: Message-ID: Will you would use a JOIN if it were possible, but it is not for CLASSITEM except is your are using ogr or postGIS. You can use JOIN on queries with shapfiles but not for class selection. -Steve W. http://imaptools.com Gambin Dejan wrote: > Hello, > > I have a question regarding joining an external table. I have an > external dbf table that I want to query (and used as class expression) > instead of item in source dbf table (the dbf table from shp). The source > dbf table has an numeric field called ID1 that has to be joined to > second table ID2 field and I want query to return me the NAME field from > the second table. > > Can someone show me an example of map file with class expressions (I > would like the items with different names be in different class so the > number of classes is equal to number of different names)? > > What else has to be done? How to refer to it in template file? > > Thanks very much > From xkarel at MAIL.RU Fri Mar 25 07:03:48 2005 From: xkarel at MAIL.RU (=?koi8-r?Q?=F3=FB=E1?=) Date: Fri, 25 Mar 2005 18:03:48 +0300 Subject: No subject Message-ID: How I can with MapServer view MULTIPOLYGON,GOMETRYCOLLECTION data source from PostGIS From gmanepal at GMAIL.COM Fri Mar 25 08:35:59 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Fri, 25 Mar 2005 11:35:59 -0500 Subject: Projection Help In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8188201@ptolemy.topozone.com> Message-ID: Thanks Ed! That was one of the excellent articles I read anything about GIS. Now, that I have known so much about Projection, I would like to explore more on the same topic to learn more. If you have any pointers in mind, kindly forward that to me. In the interim, I will try to grab few online. Once again, Thanks a lot. Regards, Giridhar On Thu, 24 Mar 2005 22:30:45 -0500, Ed McNierney wrote: > Giridhar - > > I think you are slightly misunderstanding the meaning of the EPSG codes. > > The term "map projection" is commonly used informally to describe a type > or class of map projections. For example, the Transverse Mercator > projection is a method for projecting points on to a plane (a map), but > there are many specific implementations of this class of projections. > For example, a Transverse Mercator projection has a central meridian - > you may select any line of longitude for that value. Each choice will > give you a different output image. > > In MapServer (and most other GIS usage) a "projection" refers to a > specific implementation of a type of projection. This basically > describes the combination of a projection type (like Transverse > Mercator) and a specific set of parameters (like the choice of central > meridian) that go with it. This meaning of "projection" refers to the > set of ALL parameters required to completely, unambigiously describe the > actual mathematical transformations used to create a map. > > These parameters can get wordy and easy to mistype or miscode. It is > also sometimes hard to recognize a familiar projection if it's only > described parametrically. The EPSG coding system addresses these > problems. Commonly-used projections are tabulated and each given an > unique index number, the "EPSG code". > > For example the following definition: > > PROJECTION > +proj=utm > +zone=15 > +ellps=GRS80 > +datum=NAD83 > +units=m > +no_defs > END > > defines, in a MapServer map file, the UTM Zone 15N NAD83 projection. > This is a common projection and has been assigned the EPSG code 26915. > As a result, you could use this equivalent definition: > > PROJECTION > +init=epsg:26915 > END > > The benefits are that the description is much shorter, it's easier to > type correctly, and it's easy to see if two projections are really the > same. The disadvantages are that it's cryptic (and meaningless without > an EPSG table) and it's impossible to use for "non-standard" projections > that don't have a code assigned. > > So - now to get to your questions : > > Q: Can anyone tell me how to set the EPSG or other information in the > map file? > > A: By using a PROJECTION block as I have just shown above. A PROJECTION > block at the top level (not inside a LAYER) of the map file describes > the projection of the output map image. A PROJECTION block inside a > LAYER block describes the projection of the source input data set. If > they are different, MapServer will do the reprojection for you (assuming > it's properly configured, which is the normal case). > > Q: Can I know the Projection coordinates from the shapefile? > > A: The shapefile is really just a lot of coordinates. I suspect you > want to know if you can know the PROJECTION from the shapefile. Often > the answer is "No". The shapefile format does not include projection > information in any way. Relatively recently, ESRI has started using an > auxiliary file with the extension .PRJ (with the same base name as the > shapefile) to describe the projection of the shapefile. You will > sometimes find these files with shapefiles - often you will not. > > Q: Is there a specific EPSG Code for each country or is it for each > state in each country? > > A: There is a specific EPSG code for each projection. You may be > getting slightly confused by the adoption of standardized local > projection systems. Since you talk about Virginia, I'll give the United > States example. Each state in the US has adopted one or more State > Plane Coordinate Systems (SPCS). These are map projections that are > used for surveying and legal coordinate documentation in each state. > Each SPCS is designed to cover an entire small state or a portion of a > larger state. Map projections suitable for high-precision work are only > suitable over a limited area - as you move farther from the natural > origin of the projection, your errors increase. In order to support > highly accurate survey work, large states provide several "zones", > usually all of which use the same class of projection with slightly > different parameters. > > Q: How do I find the EPSG Code for Virginia or a city in Virginia? > > A: Therefore, you should know by now that Virginia does not have an EPSG > code. The State of Virginia has a State Plane Coordinate system divided > into two zones - North and South. To find out the boundaries of these > zones, you can refer to an ESRI shapefile available at > http://www.geographynetwork.com/data/download/esri/stateplane.zip > showing the extent of all SPCS zones. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > ed at topozone.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Giridhar Manepalli > Sent: Thursday, March 24, 2005 9:22 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Projection Help > > Hello All, > > I really appreciate the support that I have been getting in this list, > without which it is impossible for me to go ahead in my project. > Although, I have bulleted the questions that I have in my mind, any help > in the discipline is invaluable to me. > > These are my questions:- > > Can anyone tell me how to set the EPSG or other information in the map > file? > > Can I know the Projection coordinates from the shapefile? > > Is there a specific EPSG Code for each country or is it for each state > in each country? > > How do I find the EPSG Code for Virginia or a city in Virginia? > > I appreciate if someone can throw some light onto this. > > Regards, > Giridhar > From richard at BARAHONA.CH Fri Mar 25 09:40:39 2005 From: richard at BARAHONA.CH (Richard Barahona) Date: Fri, 25 Mar 2005 18:40:39 +0100 Subject: Internal Server Error by queryByShape() In-Reply-To: Message-ID: Hi list, I don't if the function queryByShape has a problem or i am doing something wrong, but the result is an Internal Server Error (php crashes). He is the piece of my code (php-mapscript): $oshape = ms_newShapeObj(MS_SHAPE_POLYGON); $oline = ms_newLineObj(); for($i=0; $i < sizeof($arXCoords)-1; $i++) { $opoint = ms_newPointObj(); $opoint->setXY($arXCoords[$i],$arYCoords[$i]); $oline->add($opoint); } $oshape->add($oline); $oshape->set('classindex',1); $oshape->set('text','99'); $olayer = $_SESSION['oMap']->getlayerbyname("awp"); $brc = $olayer->querybyshape($oshape); The shape object extent are set to -1, but the attribute numline is set to 1. Strange. Any solution? Thanks for your help. From cdaily at GMAIL.COM Fri Mar 25 10:09:51 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Fri, 25 Mar 2005 12:09:51 -0600 Subject: Internal Server Error by queryByShape() In-Reply-To: <1746532411.20050325184039@barahona.ch> Message-ID: Have you tried simply drawing your shape on the map to make sure it's what you think it should be? Your 'for' loop looks like it may have an 'off by 1' error, as you start at 0, and then check for less than your array size -1. With that loop, you'll never hit the very last element in the arXCoords array. Since I believe a polygon shape should have the first and last points being the same (to close it up), your shape may not be getting properly closed. Just a thought. -Camden On Fri, 25 Mar 2005 18:40:39 +0100, Richard Barahona wrote: > Hi list, > I don't if the function queryByShape has a problem or i am doing something > wrong, but the result is an Internal Server Error (php crashes). He is the > piece of my code (php-mapscript): > > $oshape = ms_newShapeObj(MS_SHAPE_POLYGON); > $oline = ms_newLineObj(); > > for($i=0; $i < sizeof($arXCoords)-1; $i++) > { > $opoint = ms_newPointObj(); > $opoint->setXY($arXCoords[$i],$arYCoords[$i]); > $oline->add($opoint); > } > > $oshape->add($oline); > $oshape->set('classindex',1); > $oshape->set('text','99'); > > $olayer = $_SESSION['oMap']->getlayerbyname("awp"); > > $brc = $olayer->querybyshape($oshape); > > The shape object extent are set to -1, but the attribute numline is set to > 1. Strange. > > Any solution? Thanks for your help. > From bamarob55 at YAHOO.COM Fri Mar 25 11:51:36 2005 From: bamarob55 at YAHOO.COM (Robert Aldridge) Date: Fri, 25 Mar 2005 11:51:36 -0800 Subject: Terraservice.Net DOQ data Message-ID: Greetings list... I can never get anything but a blank image when trying to incorporate terraservice.net DOQ imagery via WMS. Could some kind soul look at my map file and give me some hints? Or, better yet, could someone provide an example of a working map file? Thanks, Robert http://xxxxxxxx/cgi-bin/mapserv?map=/var/www/mapping/wms.map&mode=map where wms.map is: MAP NAME "wms_test" SIZE 800 500 STATUS ON EXTENT -87.808037 33.865687 -87.673215 33.934717 UNITS METERS IMAGETYPE PNG WEB IMAGEPATH /var/www/tmp END LAYER NAME ortho METADATA "wms_title" "USGS Digital Ortho-Quadrangles" "wms_srs" "EPSG:4326" END GROUP "BASE DATA" STATUS DEFAULT TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FORMAT=jpeg" PROJECTION "init=epsg:4326" END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bfischer at HOUSTONENGINEERINGINC.COM Fri Mar 25 12:08:29 2005 From: bfischer at HOUSTONENGINEERINGINC.COM (Brian Fischer) Date: Fri, 25 Mar 2005 14:08:29 -0600 Subject: Terraservice.Net DOQ data Message-ID: Robert, I use the TerrServer imagery quite a bit and here is what my layer file looks like. I will mention I had problems with using it with MapServer 4.4.1, so I ended up going back to 4.2.1 and it works fine. I never figured out why it wouldn't work in the 4.4.1, but someone did post that there is a bug with WMS client in that version. Also make sure you are using a 24bit output image type, otherwise the images will not look that great. LAYER NAME aerialphoto METADATA "wms_title" "USGS Digital Ortho-Quadrangles" "wms_srs" "EPSG:26914" #NAD83 UTM zone 14N LYRNAME "DOQs (orthophotos)" LINK "http://terraserver.microsoft.com/about.aspx?n=AboutTerraServiceOverview " END STATUS OFF TYPE RASTER MINSCALE 1500 MAXSCALE 80000 CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DO Q&FORMAT=png&styles=" END Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Robert Aldridge Sent: Friday, March 25, 2005 1:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Terraservice.Net DOQ data Greetings list... I can never get anything but a blank image when trying to incorporate terraservice.net DOQ imagery via WMS. Could some kind soul look at my map file and give me some hints? Or, better yet, could someone provide an example of a working map file? Thanks, Robert http://xxxxxxxx/cgi-bin/mapserv?map=/var/www/mapping/wms.map&mode=map where wms.map is: MAP NAME "wms_test" SIZE 800 500 STATUS ON EXTENT -87.808037 33.865687 -87.673215 33.934717 UNITS METERS IMAGETYPE PNG WEB IMAGEPATH /var/www/tmp END LAYER NAME ortho METADATA "wms_title" "USGS Digital Ortho-Quadrangles" "wms_srs" "EPSG:4326" END GROUP "BASE DATA" STATUS DEFAULT TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DO Q&FORMAT=jpeg" PROJECTION "init=epsg:4326" END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From stigmata_blackangel at YAHOO.COM Fri Mar 25 12:10:07 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Fri, 25 Mar 2005 12:10:07 -0800 Subject: Terraservice.Net DOQ data In-Reply-To: 6667 Message-ID: --- Robert Aldridge wrote: > I can never get anything but a blank image when > trying to incorporate terraservice.net DOQ imagery Here is the paragraph we use for TerraService DOQ. Works for us: LAYER NAME "photo" STATUS DEFAULT TYPE RASTER MINSCALE 10000 CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/OgcMap.ashx?" METADATA "wms_srs" "EPSG:26910" "wms_title" "Orthophoto" "wms_name" "DOQ" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_layers" "doq" "wms_group_title" "background" END PROJECTION "init=epsg:26910" END END I do notice that at a scale of <10000, TerraService won't hand out an image, which breaks the map. So be careful with zooming in that close - use minscale. As to the projections, you can check their capabilities document and I believe 4326 and 4269 are supported now. We used 26910 because it matches our other layers and saves us a reprojection. __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ From andy.canfield at GMAIL.COM Fri Mar 25 12:13:54 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Fri, 25 Mar 2005 12:13:54 -0800 Subject: terraserver data Message-ID: Is it possible to have the imagery from Terraserver come from it's projection and have it overlay properly on data from another projection? Can Mapserver do this on the fly? The reason I ask is all my data comes in UTM but with feet as the units is this type of dynamic reprojection possible for the terraserver data? From stigmata_blackangel at YAHOO.COM Fri Mar 25 12:14:04 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Fri, 25 Mar 2005 12:14:04 -0800 Subject: Terraservice.Net DOQ data In-Reply-To: 6667 Message-ID: > I will mention I had problems with using it with > MapServer 4.4.1, so I ended up going back to 4.2.1 > and it works fine. I never figured out why it > wouldn't work in the 4.4.1, but someone did post that > there is a bug with WMS client in that version. Interesting. I use 4.4.1 and the layer I posted a moment ago works A-OK for us. Can you describe what sorts of problems you had so I can watch out? I did mention the 10000 minscale - Using 4.2.1, are you able to get TerraService imagery closer than 1:10000 scale? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bfischer at HOUSTONENGINEERINGINC.COM Fri Mar 25 12:20:48 2005 From: bfischer at HOUSTONENGINEERINGINC.COM (Brian Fischer) Date: Fri, 25 Mar 2005 14:20:48 -0600 Subject: Terraservice.Net DOQ data Message-ID: I was using Windows binaries from Howard Bulter's kitchen sink distribution. My map would draw fine, but the images would never show up. It gave me no errors and the temporary images were never being retrieved. I did not know about the minimum scale requirement that could have been it. To be honest I did not spend much time troubleshooting the problem, because 4.2.1 worked just fine for what I was doing. Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregor Mosheh Sent: Friday, March 25, 2005 2:14 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Terraservice.Net DOQ data > I will mention I had problems with using it with > MapServer 4.4.1, so I ended up going back to 4.2.1 > and it works fine. I never figured out why it > wouldn't work in the 4.4.1, but someone did post that > there is a bug with WMS client in that version. Interesting. I use 4.4.1 and the layer I posted a moment ago works A-OK for us. Can you describe what sorts of problems you had so I can watch out? I did mention the 10000 minscale - Using 4.2.1, are you able to get TerraService imagery closer than 1:10000 scale? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From cryptic_acrophobiac at YAHOO.COM Fri Mar 25 13:27:24 2005 From: cryptic_acrophobiac at YAHOO.COM (K.J. L) Date: Fri, 25 Mar 2005 15:27:24 -0600 Subject: "msProcessProjection(): Projection library error. No such file or directory "..error Message-ID: After struggling to see the blank output message now I am haveing this new kind of error "msProcessProjection(): Projection library error. No such file or directory" when I try to run a MAP file of the very basic tutorial of mapserver. typing the following URL i got above error. **http://localhost/scripts/mapserv.exe?map=C:/data/projects/tutorial/example1-1.map&mode=map** I think this is a very naive problem but well this is just my second day in mapserver. Any help would be appriciated. J From steve.lime at DNR.STATE.MN.US Fri Mar 25 14:27:53 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 25 Mar 2005 16:27:53 -0600 Subject: dynamic symbol rotation Message-ID: Actually there has been some work done on this, although it is not generally applicable. A custom hatching symbol was added to allow for artibtrary rotation and to support that SIZEITEM and ANGLEITEM parameters have been added to class style objects. Only the hatch symbols take advantage of them though. I've no immediate plans to add general rotation to all symbols but it's not nearly as hard as it might have been. Adding for TrueType symbols should be trivial. I may have already done that but I'm not sure (will check the source). Vector and bitmap symbols will take some work. At one point I had heard of a hacked version of MapServer that supported rotated symbols but I never heard back from the hackers... So, short answer is no. Steve >>> Brent Fraser 03/24/05 10:32 AM >>> Franceso, I ran into this a couple of years ago, and I don't think the situation has changed. The short answer is no, there is no map file keyword to indicate the field to use as the rotation value. The long answer is there are a couple of work-arounds that might work for you: 1. Use LABEL with POSITION CC and LABELANGLEITEM to indicate the field with the rotation - if you want to have a text label along with the "symbol" then you'll to define another LAYER just for that - this will only work for using TrueType fonts for symbols (it won't work for Bitmap or Vector symbols) OR 2. Create different symbols for the different directions, and then use CLASS and EXPRESSION to assign the appropriate symbol for the different values in the field. - We used this method to show ship symbols based on a "heading" attribute: CLASS EXPRESSION ([HEADING]<23 or [HEADING]>337) SYMBOL 'arrowup' SIZE 10 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS CLASS EXPRESSION ([HEADING]>=23 and [HEADING]<67) SYMBOL 'arrowuprt' : In this case we generalized the heading values to eight different symbols representing eight points on a compasss. I don't think there is any work planned to allow rotation of symbols. Brent Fraser ----- Original Message ----- From: Francesco Sozzi To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, March 24, 2005 3:40 AM Subject: [UMN_MAPSERVER-USERS] dynamic symbol rotation Hi all, I would like to rotate point symbols reading rotation angle from a field. I think that at this version it is not possible. Anybody knows if this possibility will be provided in any future release? Regards Francesco From dondrake at GMAIL.COM Fri Mar 25 15:42:54 2005 From: dondrake at GMAIL.COM (Don Drake) Date: Fri, 25 Mar 2005 17:42:54 -0600 Subject: PHP/Mapscript Crash... In-Reply-To: Message-ID: I'm having the exact same problem on Solaris. We're porting our app (PHP & PostGIS) to Solaris for a trial and have run into this problem. Everything else is working just fine. If I change the maps LABEL to BITMAP, then I see the text, otherwise, when it draws() it gives doesn't give an error, just dies. I've trussed the httpd process and don't see anything that's failing. I have gd 2.33 and freetype 2.1.9. MapServer Version MapServer version 4.2.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.194.2.6 $ $Date: 2004/08/25 16:27:43 $) Thanks. -Don On Fri, 25 Feb 2005 09:38:55 -0700, Corey Puffalt wrote: > I'm using the stock Fedora Core 2 php rpms (upgraded to the latest > updates). According to phpinfo it was compiled with --with-gd ... the > php.ini is located in /etc/php.ini it also references any files in > /etc/php.d. Neither php.ini nor the php.d refers to gd.so or libgd.so > anywhere as far as I can see... > > Corey > > On Fri, 25 Feb 2005 17:24:28 +0100, Beno?t Toutain wrote: > > No I use a debian. > > > > Did you compile you PHP with GD library ( option --with-gd when you > > execute ./configure) (see it in the first array of phpinfo() ) ? > > Do you edit the right php.ini file (the right file is given in the first > > array when you display php information) > > > > If you really don't find the gd shared object (gd.so or libgd.so or .... > > ) in your php.ini file and on you FC2, you must recompile PHP without > > the GD library > > > > Corey Puffalt a ?crit : > > > > >Yes there's a GD section when viewing phpinfo(); Are you running FC2? > > > > > >Thanks, > > >Corey > > > > > > > > >On Fri, 25 Feb 2005 16:57:41 +0100, Beno?t Toutain wrote: > > > > > > > > >>Hi Corey, > > >> > > >>perhaps the name of your library file is libgd.so or something like > > >>that.... or your problem does not come from conflicts between two GD > > >>libraries. Have you got a GD section when you make a ? > > >> > > >>Beno?t > > >> > > >>Corey Puffalt a ?crit : > > >> > > >> > > >> > > >>>My php.ini doesn't appear to have an extension=gd.so line... nor do > > >>>any of the files in php.d/* do anyone know how to disable the gd > > >>>extension with the stock FC2 rpms? > > >>> > > >>>Thanks, > > >>>Corey > > >>> > > >>> > > >>>On Fri, 25 Feb 2005 09:22:59 +0100, Beno?t Toutain wrote: > > >>> > > >>> > > >>> > > >>> > > >>>>I commented the extension=gd.so line in my php.ini and restarted apache > > >>>>and now it works. > > >>>>No more crash for me too :-) > > >>>> > > >>>>Thanks a lot > > >>>> > > >>>>Best regards > > >>>> > > >>>>Beno?t > > >>>> > > >>>>Constantin Cristian a ?crit : > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>>>I got the same problem, I googled for some answers: > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>>>Use phpinfo() to see if PHP has GD enabled, if it does then either > > >>>>>>disable the PHP GD extension or make sure that both PHP and MapScript > > >>>>>>use the same GD version. Also make sure that there is only one copy > > >>>>>>of libgd.so and of the GD headers on your system. > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>So I rebuilt my php installation and this time I used the gd that used to > > >>>>>build mapscript rather then the bundled php gd > > >>>>>and surprise... it doesn't crash anymore. > > >>>>> > > >>>>> > > >>>>> > > >>>>>----- Original Message ----- > > >>>>>From: "c p" > > >>>>>To: > > >>>>>Sent: Thursday, February 24, 2005 7:47 PM > > >>>>>Subject: Re: [UMN_MAPSERVER-USERS] PHP/Mapscript Crash... > > >>>>> > > >>>>> > > >>>>>Benoit, > > >>>>> > > >>>>>Well at least there's someone else to share my pain. :P After doing > > >>>>>some more reading today I realized I wasn't running php as a cgi but > > >>>>>as an apache DSO so I thought that must be my problem. Is it still > > >>>>>true that PHP/Mapscript v4.4.1 still must be run as a cgi? Anyway, I > > >>>>>reconfigured Apache to call php as a cgi but that did not resolve the > > >>>>>crash. :( > > >>>>> > > >>>>>Regards, > > >>>>>Corey > > >>>>> > > >>>>>On Thu, 24 Feb 2005 13:54:54 +0100, Beno?t Toutain > > >>>>>wrote: > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>>>Hi Corey, > > >>>>>> > > >>>>>>I have the same pb as you. > > >>>>>>Here is my configuration obtained with > >>>>>>dl('php_mapscript.so');phpinfo(); ?> > > >>>>>> > > >>>>>>MapServer version 4.2.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF > > >>>>>>SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > > >>>>>>SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS > > >>>>>>INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > >>>>>>($Revision: 1.194.2.6 $ $Date: 2004/08/25 16:27:43 $) > > >>>>>> > > >>>>>>Is not there compatibity problems with freetype libraray and another > > >>>>>>one ? > > >>>>>> > > >>>>>>Hope everybody can show us the right way ;-) > > >>>>>> > > >>>>>>Best regards, > > >>>>>> > > >>>>>>Beno?t > > >>>>>> > > >>>>>>c p a ?crit : > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>All, > > >>>>>>> > > >>>>>>>I'm hoping someone here can help or can point me to a more appropriate > > >>>>>>>forum. I've been having problems getting the samples that ship with > > >>>>>>>Chameleon v2.0 fully functional. When I attempt to view one of the > > >>>>>>>sample maps I'm getting a segmentation fault: > > >>>>>>> > > >>>>>>>==> error_log <== > > >>>>>>>[Wed Feb 23 15:59:59 2005] [notice] child pid 18222 exit signal > > >>>>>>>Segmentation fault (11) > > >>>>>>> > > >>>>>>>By enabling/disabling different layers I was able to narrow the > > >>>>>>>problem down to the popplace layer and specifically the FONT, TYPE & > > >>>>>>>SIZE tags (which specify a truetype font) inside the LABEL definition. > > >>>>>>>Commenting out these three tags result in the layer displaying > > >>>>>>>(albeit with the default bitmap font). Although I've narrowed what > > >>>>>>>triggers the crash I still have no idea how to rectify the problem. > > >>>>>>>I'm further puzzled by the fact that when I use shp2img to render the > > >>>>>>>map it works fine which seems to suggest the problem is specific to > > >>>>>>>the php/mapscript module? > > >>>>>>> > > >>>>>>>I'm running Fedora Core 2 & Mapserver v4.4.1 using the RPMs hosted at > > >>>>>>>the Mapping Hacks website (http://mappinghacks.com/rpm/). I've > > >>>>>>>attached the chameleon.map file in case that helps. > > >>>>>>> > > >>>>>>>Any help would be appreciated. > > >>>>>>> > > >>>>>>>Thanks, > > >>>>>>>Corey > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>> > > >>>>>> > > >>>>> > > >>>>> > > >>> > > >>> > > >>> > > >>> > > >> > > >> > > > > > > > > > > > > > > > > > -- Donald Drake President Drake Consulting http://www.drakeconsult.com/ http://www.MailLaunder.com/ http://www.mobilemeridian.com/ 312-560-1574 From bill at BINKO.NET Fri Mar 25 16:09:09 2005 From: bill at BINKO.NET (bill at BINKO.NET) Date: Fri, 25 Mar 2005 19:09:09 -0500 Subject: Projection Issues Message-ID: Hello everyone, I am using Mapserver 4.4.1 to display data from shapefiles and postGIS. I have been thrilled with how fast I have gotten everything going, and I actually think I understand projections better thanks to recent posts on this list -- thanks! However, I am failing to get projections to work (at all). This is very frustrating, since I actually thought I knew what I was doing :) I have Proj4 compiled in: MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE I have two data sources: the county, and the state. The county uses this projection (from their shapefiles): PROJCS["NAD27 Florida State Planes, Western Zone, US Foot", GEOGCS["North_American_Datum_1927",DATUM["D_North_American_1927", SPHEROID["Clarke - 1866",6378206.4,294.9786982139006]], PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",24.3333333333333], PARAMETER["central_meridian",-82], PARAMETER["scale_factor",0.9999411765], PARAMETER["false_easting",500000], PARAMETER["false_northing",0],UNIT["Foot_US",0.30480 I looked in the postGIS spatial_ref_system table, and found that the SRID for that is 26759. The Proj4 parameters in that table are: +proj=tmerc +lat_0=24.33333333333333 +lon_0=-82 +k=0.999941 +x_0=152400.3048006096 +y_0=0 +ellps=clrk66 +datum=NAD27 +to_meter=0.3048006096012192 +no_defs I want that to be my output projection (if that's foolish, please let me know, but since all of my maps are at the county level, it seemed to make sense). So, I put that as the PROJECTION block in the MAP section: PROJECTION "proj=tmerc" "lat_0=24.33333333333333" "lon_0=-82" "k=0.999941" "x_0=152400.3048006096" "y_0=0" "ellps=clrk66" "datum=NAD27" "to_meter=0.3048006096012192" "no_defs" END The other data I want to show (right now) is from the state, which uses this projection (from its shape file) PROJCS["NAD_1983_UTM_Zone_17N",GEOGCS["GCS_North_American_1983",DATUM["D_North_A merican_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0 .0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMET ER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_ Meridian",-81.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin" ,0.0],UNIT["Meter",1.0]] Lookint in the PostGIS table again, I find an SRID of 26917 with proj4 codes of: +proj=utm +zone=17 +ellps=GRS80 +datum=NAD83 +units=m +no_defs So I put that in the PROJECTION block of the state's LAYER section: PROJECTION "proj=utm" "zone=17" "ellps=GRS80" "datum=NAD83" "units=m" "no_defs" END The problem is that it simply doesn't show that layer! If I make a new mapfile with just that layer, and no projections, it draws it (it's a set of roads), so I know the data is valid. However, I can't seem to get the two projections on one map. Any help would be appreciated! Thanks Bill bill at binko.net From ed at TOPOZONE.COM Fri Mar 25 16:39:55 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 25 Mar 2005 19:39:55 -0500 Subject: Projection Issues Message-ID: Bill - Those all look reasonable - good job! Those SRID codes are EPSG projection codes, and you can use them directly as: PROJECTION "init=epsg:26759" END which will save you a lot of typing and some typos! It also makes it obvious to the reader what projection it is (or at least easy for the reader to look up). Could you post your entire MAP file? Since your output is in the state plane projection, your EXTENT needs to be specified in that projection and units. I would recommend that you start with a map file with the county PROJECTION block at the MAP level and one layer with the county data, also with the same PROJECTION block. Get that working correctly, the add the second layer with the UTM PROJECTION block. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of bill at BINKO.NET Sent: Friday, March 25, 2005 7:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Projection Issues Hello everyone, I am using Mapserver 4.4.1 to display data from shapefiles and postGIS. I have been thrilled with how fast I have gotten everything going, and I actually think I understand projections better thanks to recent posts on this list -- thanks! However, I am failing to get projections to work (at all). This is very frustrating, since I actually thought I knew what I was doing :) I have Proj4 compiled in: MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE I have two data sources: the county, and the state. The county uses this projection (from their shapefiles): PROJCS["NAD27 Florida State Planes, Western Zone, US Foot", GEOGCS["North_American_Datum_1927",DATUM["D_North_American_1927", SPHEROID["Clarke - 1866",6378206.4,294.9786982139006]], PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",24.3333333333333], PARAMETER["central_meridian",-82], PARAMETER["scale_factor",0.9999411765], PARAMETER["false_easting",500000], PARAMETER["false_northing",0],UNIT["Foot_US",0.30480 I looked in the postGIS spatial_ref_system table, and found that the SRID for that is 26759. The Proj4 parameters in that table are: +proj=tmerc +lat_0=24.33333333333333 +lon_0=-82 +k=0.999941 +x_0=152400.3048006096 +y_0=0 +ellps=clrk66 +datum=NAD27 +to_meter=0.3048006096012192 +no_defs I want that to be my output projection (if that's foolish, please let me know, but since all of my maps are at the county level, it seemed to make sense). So, I put that as the PROJECTION block in the MAP section: PROJECTION "proj=tmerc" "lat_0=24.33333333333333" "lon_0=-82" "k=0.999941" "x_0=152400.3048006096" "y_0=0" "ellps=clrk66" "datum=NAD27" "to_meter=0.3048006096012192" "no_defs" END The other data I want to show (right now) is from the state, which uses this projection (from its shape file) PROJCS["NAD_1983_UTM_Zone_17N",GEOGCS["GCS_North_American_1983",DATUM["D _North_A merican_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Gree nwich",0 .0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"] ,PARAMET ER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER[" Central_ Meridian",-81.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of _Origin" ,0.0],UNIT["Meter",1.0]] Lookint in the PostGIS table again, I find an SRID of 26917 with proj4 codes of: +proj=utm +zone=17 +ellps=GRS80 +datum=NAD83 +units=m +no_defs So I put that in the PROJECTION block of the state's LAYER section: PROJECTION "proj=utm" "zone=17" "ellps=GRS80" "datum=NAD83" "units=m" "no_defs" END The problem is that it simply doesn't show that layer! If I make a new mapfile with just that layer, and no projections, it draws it (it's a set of roads), so I know the data is valid. However, I can't seem to get the two projections on one map. Any help would be appreciated! Thanks Bill bill at binko.net From woklist at CHARTER.NET Fri Mar 25 17:25:03 2005 From: woklist at CHARTER.NET (William K) Date: Fri, 25 Mar 2005 19:25:03 -0600 Subject: Mac OS X binaries available! Message-ID: Well, I finally gone and done it. MapServer binaries for Mac OS X. Until I get the build instructions updated for the way I set up the binaries, you have to look on the MapServer main page to find them. Eventually I'll make it more prominent, when I update all the build instructions. Here's an overview of what's included. I've set things up as multiple packages, since I want everything to be reusable for other projects. They are installed in isolated folders for easy uninstalling if desired. + Graphics Libs: libz, giflib, libjpeg, libpng, libtiff, jasper, freetype2, GD and PDFlib Lite. + GIS Libs: Stuff used by both MapServer and GRASS, and other GIS software - PROJ, GeoTIFF, GEOS, OGDI and GDAL/OGR. For now, GDAL is not built with GRASS libs support as I describe in my build instructions. + PostgreSQL 8.0.1 + PostGIS 1.0.0rc4. Sets up postgres user and includes a startup item. + PHP 4.1.10. Built as an Apache module. Includes all the features mentioned in my build instructions. It's not installed in the Apache modules folder, so Apple updates won't overwrite it. Configures Apache for you. MySQL requires the official MySQL binaries. + MapServer 4.4.1. Includes both CGI and PHP-MapScript, built for PHP as an Apache module. All WMS, ... features included (something I don't do in my build instructions). Feedback is very welcome. I've tested installation and basic operation on Mac OS 10.3.8. There are a couple of system libraries - ssl and iodbc - that require specific versions in PHP (because of the way Apple built them). I've checked back to 10.3.6 that they are present, but I'm not sure about before that. This should work for Mac OS X Server as well - all the necessary parts are the same as in Mac OS X Client. One thing I haven't tested is PostGIS - I don't use it. Postgres runs, that's all I can say. Feedback on PostGIS would be extra welcome. I'll try to work on other features as well - there are still a few GDAL/OGR formats I need to look into. As well as uninstallers, for both the binaries and the old build instructions stuff. I don't have the personal webspace. For now, I have these on my employer's server (which I administer). I hope that I can keep them there (I'll talk to them next week), but hosting would be welcome if not. When I have more feedback and work out any problems, I'll see about getting them listed in the MapServer downloads. ----- William Kyngesburye http://webpages.charter.net/kyngchaos/ Earth: "Mostly harmless" - revised entry in the HitchHiker's Guide to the Galaxy -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2627 bytes Desc: not available URL: From woklist at CHARTER.NET Fri Mar 25 19:03:48 2005 From: woklist at CHARTER.NET (William K) Date: Fri, 25 Mar 2005 21:03:48 -0600 Subject: Mac OS X binaries available! In-Reply-To: Message-ID: php download link fixed. ----- William Kyngesburye http://webpages.charter.net/kyngchaos/ "Those people who most want to rule people are, ipso-facto, those least suited to do it." - A rule of the universe, from the HitchHiker's Guide to the Galaxy -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 301 bytes Desc: not available URL: From gmanepal at GMAIL.COM Sat Mar 26 00:13:02 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Sat, 26 Mar 2005 03:13:02 -0500 Subject: Query Mode Message-ID: Hello All, When I set the mapserver(CGI) in query mode(based on query templates) and click on a layer, I am ABLE to get the information from the dbf file. Now, 1.) How can I send the lat/long of the click that I make to a PostGIS table and retrieve information based on the lat/long? 2.) Also, is it possible to get the information from the dbf and query the PostGIS table based on information from the dbf. For example, .dbf file has ID=1 for a feature. Now, when I click on a feature, can I get the ID value and subsequently query the PostGIS table for UUID based on ID before I display both the UUID and ID? click -> get ID from dbf -> get UUID from PostGIS table using ID -> Display UUID and ID I appreciate if someone can suggest me a way to tackle these two issues. Thanks, Giridhar From lsnagu at YAHOO.COM Sat Mar 26 09:35:17 2005 From: lsnagu at YAHOO.COM (Vdharan) Date: Sat, 26 Mar 2005 11:35:17 -0600 Subject: How to make Moving Symbols using MapScript Message-ID: Thankyou Stephen Is there any way to use the ROSA applet to implement moving of vehicles.? Is there any readymade functions to show a dynamic point?. Regards vdharan On Fri, 25 Mar 2005 08:34:55 -0500, Stephen Woodbridge wrote: >You should be able to do this is with a Java applet or a Flash >application. And you might be able to do it with xhtml and javascript. > >The problem is you need to decide whether the application is going to >get its new data by push from the server or by polling the server for >updates. Since the map is not changing except when you pan or zoom it I >would separate the map image from the vehicles being tracked so your >client side application can request map changes based on the user input >and that you get a list of vehicles and their locations as a separate >stream of data from the server, then you Java, Flash, whatever to draw >the vehicles on top of the map. make the vehicle update a separate >thread and your all done. > >-Steve W. > http://imaptools.com > >vdharan wrote: >> Hello, >> Iam working on a vehicle tracking system. I want to show symbols >> representing vehicles to move in the map as and when the co-ordinate of the >> vehicle changes. I continuously get the co-ordinate of the vehicles at >> regular intervals. I want this to happen without refreshing the page. >> >> Can any one suggest me a way to do this. >> Iam using Redhat9 and PHP Mapscript. >> >> Best Regards, >> vdharan >> From mleon at SCIENTIFICINFORMATICS.COM Sat Mar 26 10:54:13 2005 From: mleon at SCIENTIFICINFORMATICS.COM (Mauricio Leon) Date: Sat, 26 Mar 2005 12:54:13 -0600 Subject: coordinate systems transformations Message-ID: Gregor, Many thanks for the help. I implemented the code, and it worked well. I still have the problem of transforming coordinates in degrees into map extents. Specifically, I need to create maps around points given in latitude-longitude coordinates (i.e create map of 1000x1000 meters centered on lon -87.1, lat 25.8) any ideas? From stigmata_blackangel at YAHOO.COM Sat Mar 26 11:40:43 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Sat, 26 Mar 2005 11:40:43 -0800 Subject: coordinate systems transformations In-Reply-To: 6667 Message-ID: --- Mauricio Leon > I still have the problem of transforming coordinates > in degrees into map extents. Specifically, I need > to create maps around points given in > latitude-longitude coordinates Ah, I see. All the maps we deal with use UTM as the output projection - we found that doing any kind of math on degrees is a real pain, since the linear size of a degree is not constant. My advice would be to project the data out of DD into a planar coordinate system, by setting a different output projection in your mapfile. If you're talking about a search program you wrote that looks up a point whose coords are latlong, and you want to convert those points into a planar system, it depends on the language you're using to fetch the points. If you're using PHP/MapScript, it goes something like this: - the SQL query to fetch the data included "AsText(the_geom) AS the_geom" so that the geometry info would be in an easy-to-parse format. // fetch the projection string $projection = 'init=epsg:26710'; // the_geom is in that fetched record, and // fetching it depends on your DB code, // e.g. ADOdb $the_geom = $records->fields['the_geom']; // figure out $x and $y, the coords of the point $coords = array(); preg_match('/POINT\((\-?\d+\.?\d*) (\-?\d+\.?\d*)\)/',$the_geom,$coords); $x = $coords[1]; $y = $coords[2]; // reproject the point into the map's target projection $projInObj = ms_newprojectionobj("proj=latlong"); $projOutObj = ms_newprojectionobj(preg_replace('/\s+/',',',$projection)); $poPoint = ms_newpointobj(); $poPoint->setXY($x, $y); $poPoint->project($projInObj, $projOutObj); $x = $poPoint->x; $y = $poPoint->y; // the extent to zoom to: that point // with a very tiny buffer $extent = sprintf("%s+%s+%s+%s",$x-0.1,$y-0.1,$x+0.1,$y+0.1); This method, as you can see on that last line, makes for a 0.1-meter buffer around the point. Realistically, your map's minscale will keep the zoom from being that extreme. Or you can specify a larger padding distance. __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From info2005 at RAJSINGH.ORG Sat Mar 26 22:18:01 2005 From: info2005 at RAJSINGH.ORG (Raj) Date: Sun, 27 Mar 2005 01:18:01 -0500 Subject: Mac OS X binaries available! Message-ID: William, I can host this off a speedy MIT connection if you'd like. --Raj From indictrans at FASTMAIL.FM Sat Mar 26 22:49:44 2005 From: indictrans at FASTMAIL.FM (Indictrans Team) Date: Sun, 27 Mar 2005 10:49:44 +0400 Subject: Postgis connection with Mapserver Message-ID: hello everyone.. Is there any demo that shows the connection of postgis with Mapserver? What is the exact procedure to connect PostGIS to Mapserver.. Indictrans Team From bpicinbono at WORLDONLINE.FR Sun Mar 27 01:15:19 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Sun, 27 Mar 2005 11:15:19 +0200 Subject: MapServer going mobile on Zaurus In-Reply-To: <200503250722.53613.bpicinbono@worldonline.fr> Message-ID: Le vendredi 25 Mars 2005 07:22, blaise a ?crit?: > Le vendredi 25 Mars 2005 05:32, blaise a ?crit?: > > Hi, > > I would have like to post this on the devel list but I can't. (I'm often > > lost with sucribtion proccess...sorry) > > > > Well, I hope I'm close to it. I got a Zaurus sl-5500 recently to try to > > put MapServer inside. > >......... > >......... > > MapServer finds the libs at configure and build time. I am still missing > > the libtiff devel package, but I should get it or I will try to build it. > > The configure pass seems to go smoothly, I can join the output if needed; > > but I get a strange kind of errors at build : > > > > ./libmap.a(mapstring.o): In function 'trimLeft': > > mapstring.o(.text+0x258): undefined reference to '__ctype_b' > > ./libmap.a(mapstring.o): In function 'MSEncodeUrl': > > mapstring.o(.text+0x98c): undefined reference to '__ctype_b' > > ./libmap.a(mapstring.o): In function 'hash': > > maphash.o(.text+0x98): undefined reference to '__ctype_tolower' > > collect2: ld returned 1 exit status > > make: *** [shp2img] Error 1 > > Now it build fine ! > I found a trick in a kind of RedHat bugzilla. But fully applied, it gave > other errors, so I just kept what was needed... I'ld like to know it what I > did could corrupt MapServer : > In both files mapstrinc.c and maphash.c, I added a line at the very > begining, just after this one : > #include > > For mapstring.c, I added this line : > __const unsigned short int *__ctype_b; > and for maphash.c, this one : > __const __int32_t *__ctype_tolower; > > Can this mess up MapServer ? > Not yet working :-( and quiet fastidious to setup the whole thing... Puting Mapserver cgis in the apache cgi-bin directory and pointing at : http://localhost/cgi-bin/mapserv? gives : "No query information to decode. QUERY_STRING is set, but empty." MapServer infos gives : #mapserv -v MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=FREETYPE INPUT=EEPL7 INPUT=JPEG INPUT=SHAPEFILE But initializing Itasca demo gives : "loadMapInternal(): General error message. Given map extent is invalid." Quite uncommon mapserver error, isn't it ? Apache error log file tells : [Desktop Entry] [...Date and time...] [warn] pid file /var/run/apache.pid overwritten -- Unclean shutdown of previous Apache run?] [...Date and time...] [notice] Accept mutex: sysvsem (Default: sysvsem)] [...Date and time...05:23] [notice] Apache/1.3.29 (Debian GNU/Linux) configured -- resuming normal operation] I divided by ten the main and reference images size in demo.html and demo.map. Also removed the decimal of the main and reference images EXTENT. Does the reference image have to be of one of MapServer image INPUT types ? How can I debug ? I have never used MapServer log files, could it be of any use ? Do you think the RedHat trick I used to allow MapServer to build (previous post) is responsible for that error ? Or is it really some differences between gcc-2.95.2 and gcc-3.xx ? This error is hard coded in mapfile.c and mapobject.c files. I am going to check these files, see also if I find a better trick that could allow a nice MapServer building, and try to slim Itasca demo step by step to see what is working and what is not. One last thing : are bison and flex needed to compile nicely the basic MapServer cgi ? I have bison but it is not clear if flex is well installed or not. Any ideas for debuging welcomed. Thks. Blaise From bpicinbono at WORLDONLINE.FR Sun Mar 27 02:50:54 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Sun, 27 Mar 2005 12:50:54 +0200 Subject: MapServer going mobile on Zaurus In-Reply-To: <200503271115.19535.bpicinbono@worldonline.fr> Message-ID: Le dimanche 27 Mars 2005 11:15, blaise a ?crit?: > Le vendredi 25 Mars 2005 07:22, blaise a ?crit?: > > Le vendredi 25 Mars 2005 05:32, blaise a ?crit?: > > > Hi, > > > I would have like to post this on the devel list but I can't. (I'm > > > often lost with sucribtion proccess...sorry) > > > > > > Well, I hope I'm close to it. I got a Zaurus sl-5500 recently to try to > > > put MapServer inside. > > >......... > > >......... > > > MapServer finds the libs at configure and build time. I am still > > > missing the libtiff devel package, but I should get it or I will try to > > > build it. The configure pass seems to go smoothly, I can join the > > > output if needed; but I get a strange kind of errors at build : > > > > > > ./libmap.a(mapstring.o): In function 'trimLeft': > > > mapstring.o(.text+0x258): undefined reference to '__ctype_b' > > > ./libmap.a(mapstring.o): In function 'MSEncodeUrl': > > > mapstring.o(.text+0x98c): undefined reference to '__ctype_b' > > > ./libmap.a(mapstring.o): In function 'hash': > > > maphash.o(.text+0x98): undefined reference to '__ctype_tolower' > > > collect2: ld returned 1 exit status > > > make: *** [shp2img] Error 1 > > > > Now it build fine ! > > I found a trick in a kind of RedHat bugzilla. But fully applied, it gave > > other errors, so I just kept what was needed... I'ld like to know it what > > I did could corrupt MapServer : > > In both files mapstrinc.c and maphash.c, I added a line at the very > > begining, just after this one : > > #include > > > > For mapstring.c, I added this line : > > __const unsigned short int *__ctype_b; > > and for maphash.c, this one : > > __const __int32_t *__ctype_tolower; > > > > Can this mess up MapServer ? > > Not yet working :-( and quiet fastidious to setup the whole thing... > Puting Mapserver cgis in the apache cgi-bin directory and pointing at : > http://localhost/cgi-bin/mapserv? > gives : > "No query information to decode. QUERY_STRING is set, but empty." > > MapServer infos gives : > #mapserv -v > MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=FREETYPE INPUT=EEPL7 INPUT=JPEG INPUT=SHAPEFILE > > But initializing Itasca demo gives : > "loadMapInternal(): General error message. Given map extent is invalid." > Quite uncommon mapserver error, isn't it ? > > Apache error log file tells : > [Desktop Entry] > [...Date and time...] [warn] pid file /var/run/apache.pid overwritten -- > Unclean shutdown of previous Apache run?] > [...Date and time...] [notice] Accept mutex: sysvsem (Default: sysvsem)] > [...Date and time...05:23] [notice] Apache/1.3.29 (Debian GNU/Linux) > configured -- resuming normal operation] > > I divided by ten the main and reference images size in demo.html and > demo.map. Also removed the decimal of the main and reference images EXTENT. > Does the reference image have to be of one of MapServer image INPUT types ? > > How can I debug ? I have never used MapServer log files, could it be of any > use ? > Do you think the RedHat trick I used to allow MapServer to build (previous > post) is responsible for that error ? Or is it really some differences > between gcc-2.95.2 and gcc-3.xx ? > This error is hard coded in mapfile.c and mapobject.c files. I am going to > check these files, see also if I find a better trick that could allow a > nice MapServer building, and try to slim Itasca demo step by step to see > what is working and what is not. > One last thing : are bison and flex needed to compile nicely the basic > MapServer cgi ? I have bison but it is not clear if flex is well installed > or not. > Any ideas for debuging welcomed. Thks. > Blaise I tested with MapServer-3.6.0 and itasca-3.5 demo. Same error on build, fixed with the (bad?) RedHat trick, then build fine. http://localhost/cgi-bin/mapserv? and #mapserv -v are ok, but Initializing the demo gives : "Internal Server Error" Apache error log file doesn't tell anything. Where could I found an older MapServer version ? Anyway, I don't think the problem lives here, it must be this c-code RedHat tricks, or a misconfig of apache. . . ? From bartvde at XS4ALL.NL Sun Mar 27 02:54:42 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 27 Mar 2005 12:54:42 +0200 Subject: Postgis connection with Mapserver In-Reply-To: <1111906184.14665.230471271@webmail.messagingengine.com> Message-ID: Hi, take a look at: http://www.omsug.ca/osgis2004/proceedings.html and then specifically: Building MapServer Applications with PostGIS Best regards, Bart On Sun, 27 Mar 2005 10:49:44 +0400, Indictrans Team wrote: > hello everyone.. > Is there any demo that shows the connection of > postgis with Mapserver? What is the exact > procedure to connect PostGIS to Mapserver.. > > > Indictrans Team > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From woodbri at SWOODBRIDGE.COM Sun Mar 27 04:55:31 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 27 Mar 2005 07:55:31 -0500 Subject: How to make Moving Symbols using MapScript In-Reply-To: Message-ID: Vdharan, Not that I know of. I would be a great extension to Rosa or to Mapplet. You might want to check on the Rosa list and see if anyone has done this. If you get something like this working post a note back here because I would be interested and I'm sure some others would be also. -Steve Vdharan wrote: > Thankyou Stephen > > Is there any way to use the ROSA applet to implement moving of vehicles.? > Is there any readymade functions to show a dynamic point?. > > Regards > vdharan > > On Fri, 25 Mar 2005 08:34:55 -0500, Stephen Woodbridge > wrote: > > >>You should be able to do this is with a Java applet or a Flash >>application. And you might be able to do it with xhtml and javascript. >> >>The problem is you need to decide whether the application is going to >>get its new data by push from the server or by polling the server for >>updates. Since the map is not changing except when you pan or zoom it I >>would separate the map image from the vehicles being tracked so your >>client side application can request map changes based on the user input >>and that you get a list of vehicles and their locations as a separate >>stream of data from the server, then you Java, Flash, whatever to draw >>the vehicles on top of the map. make the vehicle update a separate >>thread and your all done. >> >>-Steve W. >> http://imaptools.com >> >>vdharan wrote: >> >>>Hello, >>>Iam working on a vehicle tracking system. I want to show symbols >>>representing vehicles to move in the map as and when the co-ordinate of > > the > >>>vehicle changes. I continuously get the co-ordinate of the vehicles at >>>regular intervals. I want this to happen without refreshing the page. >>> >>>Can any one suggest me a way to do this. >>>Iam using Redhat9 and PHP Mapscript. >>> >>>Best Regards, >>>vdharan >>> > > From mleon at SCIENTIFICINFORMATICS.COM Sun Mar 27 11:39:59 2005 From: mleon at SCIENTIFICINFORMATICS.COM (Mauricio Leon) Date: Sun, 27 Mar 2005 13:39:59 -0600 Subject: coordinate systems transformations Message-ID: Thanks again Gregor, I am trying to run your example code in php but I have the follwing error: "Fatal error: [MapServer Error]: msProcessProjection(): major axis or radius = 0 or not given in C:\ms4w\apps\et_map\htdocs\map_main.php on line 106" where 106 is this: $projInObj = ms_newprojectionobj("proj=latlong"); the error creating the projection object does not occur when the projection info is give as an epsg code: $projInObj = ms_newprojectionobj("init=epsg:26759"); does not yield error. Any ideas? From Bernhard.Klingseisen at ALUMNI.FH-KAERNTEN.AT Mon Mar 28 00:00:18 2005 From: Bernhard.Klingseisen at ALUMNI.FH-KAERNTEN.AT (Klingseisen Bernhard) Date: Mon, 28 Mar 2005 10:00:18 +0200 Subject: AW: [UMN_MAPSERVER-USERS] How to make Moving Symbols using MapScript Message-ID: Hi, You should also consider SVG as an alternative. I've once done some testing for a taxi tracking system (unfortunately not available at the moment). Examples e.g for a moving vehicle on a bus rout can be found at: www.carto.net. Regards Bernhard -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List im Auftrag von Stephen Woodbridge Gesendet: So 27.03.2005 14:55 An: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Betreff: Re: [UMN_MAPSERVER-USERS] How to make Moving Symbols using MapScript Vdharan, Not that I know of. I would be a great extension to Rosa or to Mapplet. You might want to check on the Rosa list and see if anyone has done this. If you get something like this working post a note back here because I would be interested and I'm sure some others would be also. -Steve Vdharan wrote: > Thankyou Stephen > > Is there any way to use the ROSA applet to implement moving of vehicles.? > Is there any readymade functions to show a dynamic point?. > > Regards > vdharan > > On Fri, 25 Mar 2005 08:34:55 -0500, Stephen Woodbridge > wrote: > > >>You should be able to do this is with a Java applet or a Flash >>application. And you might be able to do it with xhtml and javascript. >> >>The problem is you need to decide whether the application is going to >>get its new data by push from the server or by polling the server for >>updates. Since the map is not changing except when you pan or zoom it I >>would separate the map image from the vehicles being tracked so your >>client side application can request map changes based on the user input >>and that you get a list of vehicles and their locations as a separate >>stream of data from the server, then you Java, Flash, whatever to draw >>the vehicles on top of the map. make the vehicle update a separate >>thread and your all done. >> >>-Steve W. >> http://imaptools.com >> >>vdharan wrote: >> >>>Hello, >>>Iam working on a vehicle tracking system. I want to show symbols >>>representing vehicles to move in the map as and when the co-ordinate of > > the > >>>vehicle changes. I continuously get the co-ordinate of the vehicles at >>>regular intervals. I want this to happen without refreshing the page. >>> >>>Can any one suggest me a way to do this. >>>Iam using Redhat9 and PHP Mapscript. >>> >>>Best Regards, >>>vdharan >>> > > From kristjan at TARKVARASTUUDIO.EE Mon Mar 28 00:25:00 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Mon, 28 Mar 2005 11:25:00 +0300 Subject: How to make Moving Symbols using MapScript In-Reply-To: <4246AD43.4020409@swoodbridge.com> Message-ID: Hi, I have seen it done with Flash. Application is for police forces patrol controlling system. The map data is from Mapserver, and the vehicle location data is in the database and they are loaded separately. But there is no public link available for this system. Kristjan > Vdharan, > > Not that I know of. I would be a great extension to Rosa or to Mapplet. > You might want to check on the Rosa list and see if anyone has done > this. If you get something like this working post a note back here > because I would be interested and I'm sure some others would be also. > > -Steve > > Vdharan wrote: > >> Thankyou Stephen >> >> Is there any way to use the ROSA applet to implement moving of >> vehicles.? >> Is there any readymade functions to show a dynamic point?. >> >> Regards >> vdharan >> >> On Fri, 25 Mar 2005 08:34:55 -0500, Stephen Woodbridge >> wrote: >> >> >>> You should be able to do this is with a Java applet or a Flash >>> application. And you might be able to do it with xhtml and javascript. >>> >>> The problem is you need to decide whether the application is going to >>> get its new data by push from the server or by polling the server for >>> updates. Since the map is not changing except when you pan or zoom it I >>> would separate the map image from the vehicles being tracked so your >>> client side application can request map changes based on the user input >>> and that you get a list of vehicles and their locations as a separate >>> stream of data from the server, then you Java, Flash, whatever to draw >>> the vehicles on top of the map. make the vehicle update a separate >>> thread and your all done. >>> >>> -Steve W. >>> http://imaptools.com >>> >>> vdharan wrote: >>> >>>> Hello, >>>> Iam working on a vehicle tracking system. I want to show symbols >>>> representing vehicles to move in the map as and when the >>>> co-ordinate of >>> >> >> the >> >>>> vehicle changes. I continuously get the co-ordinate of the vehicles at >>>> regular intervals. I want this to happen without refreshing the page. >>>> >>>> Can any one suggest me a way to do this. >>>> Iam using Redhat9 and PHP Mapscript. >>>> >>>> Best Regards, >>>> vdharan >>>> >> >> From jdport at VERITIME.COM Mon Mar 28 11:22:09 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 28 Mar 2005 14:22:09 -0500 Subject: class expressions in PHP/Mapscript Message-ID: I am trying to add a more "general" version of a "roads" layer to my maps that I could use instead of the Tiger line data while the maps being generated are not zoomed in. When the maps are zoomed in closer I want to switch to the Tiger data and go from there. I've downloaded a major roads layer from the national map website called "roadtrl20". The problem is that it doesn't use fields like "CFCC" like tiger does, it simply has a "NAME" field and a "Feature" field. The Feature field has strings like "Limited Access Highway Alternate Route", "Other Through HIghway", "Principle Highway", etc.... descriptions that are vague at best as they don't tell me if it is an interstate or what.... and there are several descriptions that could be the same thing. In the "Name" field, it has things like "Interstate Route 1", "State Route", "US Route", etc... which is a little more useful except again there are several versions of things like "Interstate" (Alternate Interstate, Business Interstate, etc) and to make it more complicated many of them show several names separated by comma's. So, it's difficult to come up with a good expression to separate the different types of roads... I thought I could do it in mapscript just reading the different "Names" into a variable and manipulating that variable to give me one word like "Interstate", "State", "US" that I could then use in my "expression" clause. I thought I could do something similar to get the route number alone to use for labeling purposes (I'd like to superimpose the route # on a graphic of an interstate sign, etc). I can't see any methods though that allow me to access the information from the shapefile to do this.. Is this possible, or am I just making this a lot more complicated that I need to? Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Mon Mar 28 12:26:17 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 28 Mar 2005 15:26:17 -0500 Subject: class expressions in PHP/Mapscript In-Reply-To: <00b001c533cb$6fb09bb0$1bf2fbd0@solo> Message-ID: Jeff, Since I suggested looking at this I take a stab at a response. I think you have done about the best you can given the data in its current state. If I were trying to work with that data, and I haven't looked at it yet, but based on your description, I would be inclined to re-write the dbf file as something that would be more useful along the lines of New DBF fields: NAME - suitable for labeling RTE_NUM - number of route extract from the name RTE_TYPE - I -interstate, S - state, U - US Highway, C - county highway RTE_CLASS - maybe for classification of the road for style, but I think I would just use RTE_TYPE for that. Then I can use CLASSITEM "RTE_TYPE", LABELITEM "NAME", and RTE_* for highway shields. You would have to write a script to do this using Perl or PHP and regular expressions, you would want to split multiple names on the "," and then based on some higharchy populate the new fields. Or looks for some other data, like NHPN from the BTS.gov or whatever. I also find it useful to dump the various fields of a dbf and get a unique list of the options I am dealing with to better figure out how to deal with it. Some days nothing is simple, -Steve Jeff Portwine wrote: > I am trying to add a more "general" version of a "roads" layer to my > maps that I could use instead of the Tiger line data while the maps > being generated are not zoomed in. When the maps are zoomed in closer > I want to switch to the Tiger data and go from there. I've downloaded > a major roads layer from the national map website called "roadtrl20". > The problem is that it doesn't use fields like "CFCC" like tiger does, > it simply has a "NAME" field and a "Feature" field. The Feature field > has strings like "Limited Access Highway Alternate Route", "Other > Through HIghway", "Principle Highway", etc.... descriptions that are > vague at best as they don't tell me if it is an interstate or what.... > and there are several descriptions that could be the same thing. > > In the "Name" field, it has things like "Interstate Route 1", "State > Route", "US Route", etc... which is a little more useful except again > there are several versions of things like "Interstate" (Alternate > Interstate, Business Interstate, etc) and to make it more complicated > many of them show several names separated by comma's. > > So, it's difficult to come up with a good expression to separate the > different types of roads... I thought I could do it in mapscript just > reading the different "Names" into a variable and manipulating that > variable to give me one word like "Interstate", "State", "US" that I > could then use in my "expression" clause. > > I thought I could do something similar to get the route number alone to > use for labeling purposes (I'd like to superimpose the route # on a > graphic of an interstate sign, etc). I can't see any methods though > that allow me to access the information from the shapefile to do > this.. Is this possible, or am I just making this a lot more > complicated that I need to? > > Thanks, > Jeff > From jdport at VERITIME.COM Mon Mar 28 12:58:12 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 28 Mar 2005 15:58:12 -0500 Subject: class expressions in PHP/Mapscript Message-ID: Part of what I was asking , I really was making things too difficult... for my most zoomed out views I just took the national map file and used "expression /Interstate/" and "expression /US/" from the "NAME" field and this looks alright... the hard part though is labeling them. I thought like you said about re-writing the dbf file to add a field with route number, and I thought maybe I could have fields like "name", "alternate name 1", alternate name 2" for roads that have multiple names and separate them on the comma to fill in those fields. The only problem is I really don't know how to re-write a dbf file... I don't have a problem writing a perl script or something like that but I just don't know much about how dbf files work, or how exactly they interact with the other parts of the shapefile and I wasn't sure if adding fields would throw off other parts of the shape file. I'll look into that more... I was hoping there was a way I couild just use PHP to grab the number part of the "NAME" and use that as my label text somehow. Thanks, Jeff ----- Original Message ----- From: "Stephen Woodbridge" To: "Jeff Portwine" Cc: Sent: Monday, March 28, 2005 3:26 PM Subject: Re: [UMN_MAPSERVER-USERS] class expressions in PHP/Mapscript > Jeff, > > Since I suggested looking at this I take a stab at a response. I think you > have done about the best you can given the data in its current state. If I > were trying to work with that data, and I haven't looked at it yet, but > based on your description, I would be inclined to re-write the dbf file as > something that would be more useful along the lines of > > New DBF fields: > NAME - suitable for labeling > RTE_NUM - number of route extract from the name > RTE_TYPE - I -interstate, S - state, U - US Highway, C - county highway > RTE_CLASS - maybe for classification of the road for style, but I think I > would just use RTE_TYPE for that. > > Then I can use CLASSITEM "RTE_TYPE", LABELITEM "NAME", and RTE_* for > highway shields. > > You would have to write a script to do this using Perl or PHP and regular > expressions, you would want to split multiple names on the "," and then > based on some higharchy populate the new fields. > > Or looks for some other data, like NHPN from the BTS.gov or whatever. > > I also find it useful to dump the various fields of a dbf and get a unique > list of the options I am dealing with to better figure out how to deal > with it. > > Some days nothing is simple, > -Steve > > Jeff Portwine wrote: >> I am trying to add a more "general" version of a "roads" layer to my maps >> that I could use instead of the Tiger line data while the maps being >> generated are not zoomed in. When the maps are zoomed in closer I want >> to switch to the Tiger data and go from there. I've downloaded a major >> roads layer from the national map website called "roadtrl20". The >> problem is that it doesn't use fields like "CFCC" like tiger does, it >> simply has a "NAME" field and a "Feature" field. The Feature field has >> strings like "Limited Access Highway Alternate Route", "Other Through >> HIghway", "Principle Highway", etc.... descriptions that are vague at >> best as they don't tell me if it is an interstate or what.... and there >> are several descriptions that could be the same thing. >> In the "Name" field, it has things like "Interstate Route 1", "State >> Route", "US Route", etc... which is a little more useful except again >> there are several versions of things like "Interstate" (Alternate >> Interstate, Business Interstate, etc) and to make it more complicated >> many of them show several names separated by comma's. So, it's >> difficult to come up with a good expression to separate the different >> types of roads... I thought I could do it in mapscript just reading the >> different "Names" into a variable and manipulating that variable to give >> me one word like "Interstate", "State", "US" that I could then use in my >> "expression" clause. I thought I could do something similar to get the >> route number alone to use for labeling purposes (I'd like to superimpose >> the route # on a graphic of an interstate sign, etc). I can't see any >> methods though that allow me to access the information from the shapefile >> to do this.. Is this possible, or am I just making this a lot more >> complicated that I need to? >> Thanks, >> Jeff >> > > From woodbri at SWOODBRIDGE.COM Mon Mar 28 13:56:45 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 28 Mar 2005 16:56:45 -0500 Subject: class expressions in PHP/Mapscript In-Reply-To: <00bf01c533d8$dab71030$1bf2fbd0@solo> Message-ID: There are lots of tools for working with shapefiles including PHP/Mapscript. Check the maptools.org site and follow the link to shapelib, there is a link to the ERSI spec on shapefiles and some other links that might be of interest. The short story is you can do most anything you like the the DBF except change the order of the records, implicitly or explicitly. The DBF records are associated to the shape records based on a one-to-one correspondence of record numbers. ie: shape record 1 is related to dbf record 1, etc. So you can create a new dbf file and populate it with you values rename the shapefile.dbf to shapfile.dbf-old and rename my-new.dbf to shapefile.dbf and you already to try it out. -Steve Jeff Portwine wrote: > Part of what I was asking , I really was making things too difficult... for > my most zoomed out views I just took the national map file and used > "expression /Interstate/" and "expression /US/" from the "NAME" field and > this looks alright... the hard part though is labeling them. I thought > like you said about re-writing the dbf file to add a field with route > number, and I thought maybe I could have fields like "name", "alternate > name > 1", alternate name 2" for roads that have multiple names and separate them > on the comma to fill in those fields. The only problem is I really don't > know how to re-write a dbf file... I don't have a problem writing a perl > script or something like that but I just don't know much about how dbf > files > work, or how exactly they interact with the other parts of the shapefile > and > I wasn't sure if adding fields would throw off other parts of the shape > file. > > I'll look into that more... I was hoping there was a way I couild just > use > PHP to grab the number part of the "NAME" and use that as my label text > somehow. > > Thanks, > Jeff > > ----- Original Message ----- > From: "Stephen Woodbridge" > To: "Jeff Portwine" > Cc: > Sent: Monday, March 28, 2005 3:26 PM > Subject: Re: [UMN_MAPSERVER-USERS] class expressions in PHP/Mapscript > > >> Jeff, >> >> Since I suggested looking at this I take a stab at a response. I think >> you >> have done about the best you can given the data in its current state. >> If I >> were trying to work with that data, and I haven't looked at it yet, but >> based on your description, I would be inclined to re-write the dbf >> file as >> something that would be more useful along the lines of >> >> New DBF fields: >> NAME - suitable for labeling >> RTE_NUM - number of route extract from the name >> RTE_TYPE - I -interstate, S - state, U - US Highway, C - county highway >> RTE_CLASS - maybe for classification of the road for style, but I think I >> would just use RTE_TYPE for that. >> >> Then I can use CLASSITEM "RTE_TYPE", LABELITEM "NAME", and RTE_* for >> highway shields. >> >> You would have to write a script to do this using Perl or PHP and regular >> expressions, you would want to split multiple names on the "," and then >> based on some higharchy populate the new fields. >> >> Or looks for some other data, like NHPN from the BTS.gov or whatever. >> >> I also find it useful to dump the various fields of a dbf and get a >> unique >> list of the options I am dealing with to better figure out how to deal >> with it. >> >> Some days nothing is simple, >> -Steve >> >> Jeff Portwine wrote: >> >>> I am trying to add a more "general" version of a "roads" layer to my >>> maps >>> that I could use instead of the Tiger line data while the maps being >>> generated are not zoomed in. When the maps are zoomed in closer I >>> want >>> to switch to the Tiger data and go from there. I've downloaded a >>> major >>> roads layer from the national map website called "roadtrl20". The >>> problem is that it doesn't use fields like "CFCC" like tiger does, it >>> simply has a "NAME" field and a "Feature" field. The Feature field has >>> strings like "Limited Access Highway Alternate Route", "Other Through >>> HIghway", "Principle Highway", etc.... descriptions that are vague at >>> best as they don't tell me if it is an interstate or what.... and there >>> are several descriptions that could be the same thing. >>> In the "Name" field, it has things like "Interstate Route 1", "State >>> Route", "US Route", etc... which is a little more useful except again >>> there are several versions of things like "Interstate" (Alternate >>> Interstate, Business Interstate, etc) and to make it more complicated >>> many of them show several names separated by comma's. So, it's >>> difficult to come up with a good expression to separate the different >>> types of roads... I thought I could do it in mapscript just reading the >>> different "Names" into a variable and manipulating that variable to give >>> me one word like "Interstate", "State", "US" that I could then use in my >>> "expression" clause. I thought I could do something similar to get >>> the >>> route number alone to use for labeling purposes (I'd like to superimpose >>> the route # on a graphic of an interstate sign, etc). I can't see >>> any >>> methods though that allow me to access the information from the >>> shapefile >>> to do this.. Is this possible, or am I just making this a lot more >>> complicated that I need to? >>> Thanks, >>> Jeff >>> >> >> > From gmanepal at GMAIL.COM Mon Mar 28 20:14:16 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Mon, 28 Mar 2005 23:14:16 -0500 Subject: Fwd: Query Mode In-Reply-To: <6d675eda050326001362cef369@mail.gmail.com> Message-ID: Can someone help me on this? Regards, ---------- Forwarded message ---------- From: Giridhar Manepalli Date: Sat, 26 Mar 2005 03:13:02 -0500 Subject: Query Mode To: MAPSERVER-USERS at lists.umn.edu Hello All, When I set the mapserver(CGI) in query mode(based on query templates) and click on a layer, I am ABLE to get the information from the dbf file. Now, 1.) How can I send the lat/long of the click that I make to a PostGIS table and retrieve information based on the lat/long? 2.) Also, is it possible to get the information from the dbf and query the PostGIS table based on information from the dbf. For example, .dbf file has ID=1 for a feature. Now, when I click on a feature, can I get the ID value and subsequently query the PostGIS table for UUID based on ID before I display both the UUID and ID? click -> get ID from dbf -> get UUID from PostGIS table using ID -> Display UUID and ID I appreciate if someone can suggest me a way to tackle these two issues. Thanks, Giridhar From mercutio at POBOX.COM Tue Mar 29 01:43:36 2005 From: mercutio at POBOX.COM (Aaron Craig) Date: Tue, 29 Mar 2005 11:43:36 +0200 Subject: Tooltips on icons Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is it possible to get a tooltip to pop up with some text taken from a field in my Postgis database when the user puts her mouse over an icon in a layer? I'm imagining you probably need to do something with JavaScript or similar, but I wondered if there's already some sort of functionality that helps, as it seems a fairly common functionality. Thanks for any help that comes my way. - -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCSSMzoyEQRcU83p4RApEDAJ4lIlcWvkd9DLGsTWhyTyI4nB7r8QCZAfKI GWUCPW5kHCl1wcRNRh8q7lw= =5fG6 -----END PGP SIGNATURE----- From stephane.riff at CERENE.FR Tue Mar 29 04:48:16 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Tue, 29 Mar 2005 14:48:16 +0200 Subject: REsize window question In-Reply-To: <200503211210.53393.mweinelt@planiglobe.com> Message-ID: Thanks for answered.... I realize that my question was not really clear :) In fact, i want to keep the scale not the extent because when the map is resized and (if i keep the extent) of course scale change, then the active layer may change regards to scale and it's not very intuitive for the user to understand why. So how can i calculate the new extent to keep same scale with different map size ? I use phpmapscript 4.2.5. Voila, thanks all Martin Weinelt wrote: >On Friday 18 March 2005 09:35, St?phane RIFF wrote: > > >>My mapserver application need to redraw the map when the window is resized. >>My problem is that i don't know how to keep the same extent >>in two map with different size !!! >> >> > >Using mapserver CGI you just send MAPEXTENT and MAPSIZE >to the CGI (together with layers, etc.) and that's it. > > > >>in fact i don't want the map >>to change its scale when i resize the window. >> >> > >Keeping mapextent at different mapsize yields another scale, no? > > > >>How can i calculate the newExtent to do that ??? >>Is it possible ??? >> >> > >You do not calculate it, you just reuse the image extent from the previous >map (which can be sent by the CGI together with the image). > > > >>How do you handle that kind of function ? example ? >> >> > >I do it on the client side with js: > > function setMapSize() { > // mimg is a div in the doc with the map as background image > mimg.style.backgroundImage='url(images/waiting.gif)'; > // a 'wait indicator' is shown until the new image arrives > // w is the browser window > var mh = (w.innerHeight) ? w.innerHeight : d.body.clientHeight; > var mw = (w.innerWidth) ? w.innerWidth : d.body.clientWidth; > mh-=60; mw-=230; // correct for other elements which also need a bit of screen real estate > mimg.style.width=mw; mimg.style.height=mh; // set the div to the new size > myMap.mode='browse'; // myMap is an object which holds some map parameters > myMap.mapsize=[mw,mh]; // ... mapsize for instance > myMap.mapext.set(myMap.imgext.get()); // or map extent - here copied from the last image recieved > var s=myMap.getReqStr('mapsize','mapext'); // this glues a GET-string for the new map request > getMap(s); // invokes the new map >} > >this is just an example, the same purpose can be served in a more traditional way. > >Cheers, Martin > > > > > From trondmm-mapserver at CRUSADERS.NO Tue Mar 29 05:35:33 2005 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Tue, 29 Mar 2005 15:35:33 +0200 Subject: creating queryable shapefiles Message-ID: Hi. I'm using mapserver, and I need to create a shapefile from a list of coordinates that I have, and I need to display this layer as points, which can be clicked on for further information about that point. Anyway - I have made this small perl-program that generates the shapefile, and it the layers loads fine in mapserver. Except that I can't click on it. --8<-- #!/usr/bin/perl use strict; use warnings; use Geo::Shapelib ':constants'; my $shape = Geo::Shapelib->new(); $shape->{Shapetype} = MULTIPOINT; $shape->{FieldNames} = ['testpoints']; $shape->{FieldTypes} = ['String:60']; while (<>) { chomp; my ($name,$x,$y) = split; push @{$shape->{Shapes}}, { SHPType => MULTIPOINT, Vertices => [[$x,$y]] }; push @{$shape->{ShapeRecords}}, [$name]; } $shape->save('mylayer'); --8<-- names and coordinates are piped through STDIN In the mapfile, the web- and layer-objects look like this: WEB TEMPLATE "printable.html" EMPTY "/empty.html" imagepath "/var/www/html/tmp/" imageurl "/tmp/" END LAYER name "mylayer" data mylayer status default type point CLASS name "testpoints" color 0 255 0 outlinecolor 0 0 0 template test.html STYLE color 123 123 0 # dummy color symbol 'circle' size 6 END END END Whenever I make a query, I always get redirected to empty.html Here's an example of the query request, as taken from the log: GET /cgi-bin/mapserv ?mode=query &map=/var/www/test.map &qlayer=mylayer &layers= &imgext=-386503.564521+-3634774.809739+684073.545134+-2971595.143072 &imgsize=1109+687 &imgxy=628+118 (and I'm pretty sure the pointer was above the point when I clicked ;) Any suggestions of what I'm missing to make my shapefile clickable/queryable? -- Trond Michelsen From schuyler at NOCAT.NET Tue Mar 29 07:26:34 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Tue, 29 Mar 2005 07:26:34 -0800 Subject: Tooltips on icons In-Reply-To: <42492348.5080004@pobox.com> Message-ID: * On 29-Mar-2005 at 2:09AM PST, Aaron Craig said: > > Is it possible to get a tooltip to pop up with some text taken from a > field in my Postgis database when the user puts her mouse over an icon > in a layer? There's nothing built in to MapServer that I know of. I'm working on a solution that uses Python MapScript and Cheetah templates to output an image map that could be used to add JS mouseover hooks. The heart of the code looks something like this: def points_to_pixels (self, pts): """The points_to_pixels() method takes a list of (point, link) tuples, and returns a list of dicts. Each entry in the returned dict has an 'x' and 'y' key representing the point's location in pixel space, and 'url' key containing the link.""" map = self.map result = [] width = map.extent.maxx - map.extent.minx height = map.extent.maxy - map.extent.miny x_res = map.width / width y_res = map.height / height """Each point is converted to pixel space by subtracting the coordinate from the spatial map edge, multiplying by the pixel resolution (in pixels/spatial unit), and rounding to the nearest integer. If the point would wind up off the map, it is omitted from the returned list. Also, points without matching links (e.g. the link evaluates to false) are discarded.""" for pt, url in pts: if not url: continue x = int((pt.x - map.extent.minx) * x_res + .5) y = int((map.extent.maxy - pt.y) * y_res + .5) if x >= 0 and x <= map.width and \ y >= 0 and y <= map.height: result.append({ 'x': x, 'y': y, 'url': url }) return result The result list gets passed to a Cheetah template to generate the actual image map. I hope the code is reasonably self-explanatory. The project I'm working on is something of a port of the subset of mapserv's functionality to Python MapScript in order to make things like this possible. I'll post to the list when the (GPL'ed) code is available. SDE From andy.canfield at GMAIL.COM Tue Mar 29 07:39:32 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Tue, 29 Mar 2005 07:39:32 -0800 Subject: Reprojecting to UTM Message-ID: I am looking through the epsg file from proj4 and all I see for units for UTM is meters. We map in UTM feet is there any way to get mapserver to reproject data coming in from UTM with units of meters to UTM with units of feet? I know all the ellipsoid parameters ect for UTM with feet as units. If their is no built in way can I define my own code and have it be properly reprojected based on the parameters I list in my custom code? If it is possible what do I need to put in the epsg file and does anybody have an example of doing this? Thank You, Andy From fwarmerdam at GMAIL.COM Tue Mar 29 08:07:11 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 29 Mar 2005 11:07:11 -0500 Subject: Reprojecting to UTM In-Reply-To: <7425d08705032907397a2abd23@mail.gmail.com> Message-ID: On Tue, 29 Mar 2005 07:39:32 -0800, Andy Canfield wrote: > I am looking through the epsg file from proj4 and all I see for units > for UTM is meters. We map in UTM feet is there any way to get > mapserver to reproject data coming in from UTM with units of meters to > UTM with units of feet? I know all the ellipsoid parameters ect for > UTM with feet as units. If their is no built in way can I define my > own code and have it be properly reprojected based on the parameters I > list in my custom code? If it is possible what do I need to put in the > epsg file and does anybody have an example of doing this? Andy, You can describe a foot based coordinate system to PROJ.4 or from MapServer like this: PROJECTION "+proj=utm +zone=11 +datum=NAD83 +units=us-ft" END However, if you want to serve using WMS, you will need an EPSG code. You *could* just dummy up a fake EPSG code for your coordinate system, by adding to the /usr/local/share/epsg file, but ultimately this defeats interoperability as no other system is going to know what your faked up code is. 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 trondmm-mapserver at CRUSADERS.NO Tue Mar 29 09:36:51 2005 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Tue, 29 Mar 2005 19:36:51 +0200 Subject: creating queryable shapefiles In-Reply-To: <20050329133533.GB16902@crusaders.no> Message-ID: On Tue, Mar 29, 2005 at 03:35:33PM +0200, Trond Michelsen wrote: > I'm using mapserver, and I need to create a shapefile from a list of > coordinates that I have, and I need to display this layer as points, > which can be clicked on for further information about that point. > > Anyway - I have made this small perl-program that generates the > shapefile, and it the layers loads fine in mapserver. Except that I > can't click on it. Just one thing... It's not important to me that I use Geo::Shapelib, or even perl to create the shapefile. Any suggestion of how to create the shapefile correctly will be greatly appreciated. -- Trond Michelsen From sweykam at TELELINE.ES Tue Mar 29 09:49:11 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Tue, 29 Mar 2005 19:49:11 +0200 Subject: WMS and WFS connections Message-ID: I am preparing my application for WMS (or WFS), but the more I read the more I get confused... I am actually trying things by using the same application from home (as client) to office (the server), retrieving some layers from the remote server. I thought I better start with something simple - the WMS connection. Results: GetCapabilities - OK DescribeLayer - OK (very little information though, just the layer name) GetMap - OK The WMS layer displays on my map.....but ....how do I get the layer (class) name and symbol into my legend? What's the syntax for the GetLegendGraphic request? So far I only get the following Exception back: Mandatory LAYER parameter missing in GetLegendGraphic request I would also like to be able to do very simple queries: at least to find the features (points) of my WMS layer by point queries on the map. The map query works fine with my local layers, but not with the WMS layer. I tried sending the request GetFeatureInfo and Query_layers This requires map coordinates - but how do I specify these parameters? ..by adding "&X=197&Y=144" for example?? The ServiceException code says that the layer given in the LAYERS parameter is invalid... (yes, the layer IS queryable) Shouldn't the click on the map just do the job anyway? Well, since WFS seems to be more adequate I tried the WFS connection. GetCapabilities - OK DescribeFeature - OK GetFeature - OK And the WFS layer is displayed on my map, appears in the legend and is queryable, BUT I have to specify the class expression and name and colors... How would a potential client application know? I guess, by studying the XML document on each feature? Or do I have to make up a GML document? Where would I deposit such a document? More questions: Can I set up just one map file which suits both WMS and WFS connections? I am actually using two map files, one having "wms_ ... and the other one "wfs_.... parameters. Well, actually three map files, the third is the one my application is based on but it contains additional data layers which are not (yet) mend to be shared. Its quite enoying to maintain three files. Thanks for your comments, Stefanie From cdaily at GMAIL.COM Tue Mar 29 10:00:02 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Tue, 29 Mar 2005 12:00:02 -0600 Subject: creating queryable shapefiles In-Reply-To: <20050329133533.GB16902@crusaders.no> Message-ID: I don't really know anything about perl, and I don't know much about using mapserver to make things clickable (I use php/mapscript for all my pages), but here's a few ideas. Can you make other point layers clickable? Would be useful to know whether the issue is with how you're creating the shapefile, or with how you're defining the layer in the .map file. Have you tried playing with the 'tolerance' and 'toleranceunits' settings for your layer? Just some ideas. -Camden From mike.and.kerry at GMAIL.COM Tue Mar 29 11:35:41 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Tue, 29 Mar 2005 10:35:41 -0900 Subject: Query Mode In-Reply-To: <6d675eda050326001362cef369@mail.gmail.com> Message-ID: You might try a simple redirect to send the information to a database query page. For example, one of my applications links to a project status database. When a user uses the identify tool my template contains a some javascript like this: window.location="http://link/to/database/page.php?project_id=[ID_FIELD]"; In this case the [ID_FIELD] is replaced with the value from the .dbf table and the page is redirected. Hope this helps. -Mike On Sat, 26 Mar 2005 03:13:02 -0500, Giridhar Manepalli wrote: > Hello All, > When I set the mapserver(CGI) in query mode(based on query templates) > and click on a layer, I am ABLE to get the information from the dbf > file. > > Now, > > 1.) How can I send the lat/long of the click that I make to a PostGIS > table and retrieve information based on the lat/long? > > 2.) Also, is it possible to get the information from the dbf and query > the PostGIS table based on information from the dbf. For example, > .dbf file has ID=1 for a feature. Now, when I click on a feature, can > I get the ID value and subsequently query the PostGIS table for UUID > based on ID before I display both the UUID and ID? > > click -> get ID from dbf > -> get UUID from PostGIS table using ID > -> Display UUID and ID > > I appreciate if someone can suggest me a way to tackle these two issues. > > Thanks, > Giridhar > From bill at BINKO.NET Tue Mar 29 11:48:40 2005 From: bill at BINKO.NET (Bill Binko) Date: Tue, 29 Mar 2005 14:48:40 -0500 Subject: Projection Issues In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8188213@ptolemy.topozone.com> Message-ID: On Fri, 25 Mar 2005, Ed McNierney wrote: > Bill - > > Those all look reasonable - good job! Those SRID codes are EPSG > projection codes, and you can use them directly as: > > PROJECTION > "init=epsg:26759" > END > > which will save you a lot of typing and some typos! It also makes it > obvious to the reader what projection it is (or at least easy for the > reader to look up). > > Could you post your entire MAP file? Since your output is in the state > plane projection, your EXTENT needs to be specified in that projection > and units. I would recommend that you start with a map file with the > county PROJECTION block at the MAP level and one layer with the county > data, also with the same PROJECTION block. Get that working correctly, > the add the second layer with the UTM PROJECTION block. > Ed, I took your advice and and replaced the projections with the espg codes. I also simplified the map file to just have two layers: both shapefile, not PostGIS. However, I am still having the same problem: I only see the county data when I put both in the file. I've included the reduced map file below, and I've sent a copy of the data to Paul to see if he can help. Is there a standard way to distribute layer files for review on this board? Or should I post a URL or the like? Thanks for your time, Bill MAP NAME SINKHOLE STATUS ON SIZE 800 500 IMAGETYPE PNG IMAGECOLOR 240 240 255 SHAPEPATH "/var/www/binko.net/maps/data/" UNITS METERS EXTENT 57968.750000 1189453.125000 464218.750000 1443359.375000 PROJECTION "init=epsg:26759" END WEB TEMPLATE "/var/www/binko.net/maps/template1.html" IMAGEPATH "/var/www/binko.net/maps/tmp/" IMAGEURL "/maps/tmp/" LOG "/var/www/binko.net/maps/error.log" END SCALEBAR STATUS ON STYLE 1 INTERVALS 4 SIZE 200 2 COLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS miles LABEL COLOR 0 0 0 SIZE small END END LAYER NAME "Pinellas County Outline" PROJECTION "init=epsg:26759" END TYPE LINE STATUS DEFAULT DATA "co_outline0000100104_line" CLASS NAME "Pinellas County" OUTLINECOLOR 60 60 60 COLOR 200 200 200 SYMBOL 0 END END LAYER NAME "Pinellas Roads" TYPE LINE STATUS DEFAULT PROJECTION "init=epsg:26917" END DATA "localnam" DEBUG ON END END From lfilak at MEDINACO.ORG Tue Mar 29 12:06:11 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 29 Mar 2005 15:06:11 -0500 Subject: creating queryable shapefiles Message-ID: The following message was sent by Trond Michelsen on Tue, 29 Mar 2005 15:35:33 +0200. > Hi. > > I'm using mapserver, and I need to create a shapefile from a list of > coordinates that I have, and I need to display this layer as points, > which can be clicked on for further information about that point. > > Anyway - I have made this small perl-program that generates the > shapefile, and it the layers loads fine in mapserver. Except that I > can't click on it. > > (and I'm pretty sure the pointer was above the point when I clicked ;) > > Any suggestions of what I'm missing to make my shapefile > clickable/queryable? Trond, Your problem may have nothing to do with your shapefile and you should be able to verify that by running shpinfo or shpinfo.pl on it. Lowell From Godwinl at AGR.GC.CA Tue Mar 29 12:24:25 2005 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Tue, 29 Mar 2005 15:24:25 -0500 Subject: WFS bug? - multiple layers from same service Message-ID: I'm experiencing a wierd phenomenon with a mapfile i am working with. It's a bit of a unique case in that the map is composed of 3 layers, all WFS layers coming from the same service. The odd thing is...when I do this... only the FIRST layer in the map is drawn, but using the class info from the LAST layer of this service. If I draw the middle layer from a different service...the same is true, except that middle layer draws normal. So FIRST is drawing with THIRD styling, on top of SECOND that has it's own styling. In this case, it's polygons, lines and points, so the polygons are drawing with point symbology on top of lines. Or if all are coming from the same service, all that is drawn is polygins with point symbology. The last two layers are not drawn. I'm working with a cvs version from a month ago or so, but I also tested against 4.4.0 Shall I post a bug? I'm asking first in case I've overlooked something silly. Liz Godwin -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Tue Mar 29 12:28:49 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 29 Mar 2005 14:28:49 -0600 Subject: Tooltips on icons Message-ID: On Tue, 29 Mar 2005 11:43:36 +0200, Aaron Craig wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Is it possible to get a tooltip to pop up with some text taken from a >field in my Postgis database when the user puts her mouse over an icon >in a layer? > >I'm imagining you probably need to do something with JavaScript or >similar, but I wondered if there's already some sort of functionality >that helps, as it seems a fairly common functionality. > >Thanks for any help that comes my way. Aaron, If I understand correctly what you would like to see from the postgis db is the tabular data in a mouseover.? We currently have a perl routine you can incorporate in a 'use' statement in a perlmapscript app. It is fed arrays for the min/max x & y's for each point that is to become a mouseover point and queries a db using the perl dbi to extract the tabular data and create the imagemap area's and the div's for the show/hide javascript. If it would help, I can send it to you off-list (just to keep the attachment from going to everybody). A sample of the results are here: http://www.highwayengineer.co.medina.oh.us/cgi-bin/plt_tcounts.cgi?ppn=02501B07023&minx=2157252.6&miny=580951.199388203&maxx=2169515.10254601&maxy=586628.795466776 http://www.highwayengineer.co.medina.oh.us/cgi-bin/plt_sewer.cgi?ppn=02501B07023&minx=2157252.6&miny=580951.199388203&maxx=2169515.10254601&maxy=586628.795466776 http://www.highwayengineer.co.medina.oh.us/cgi-bin/plt_popup.cgi?ppn=02501B07023&imapeminx=2161891.59975661&imapeminy=583691.971766328&imapemaxx=2163542.79938918&imapemaxy=586126.116615321 Lowell From ealpert at DIGITALGLOBE.COM Tue Mar 29 12:29:17 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 29 Mar 2005 13:29:17 -0700 Subject: WFS bug? - multiple layers from same service Message-ID: What's the mapfile look like? Is there a chance that there are name colisions between the layers? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Godwin, Elizabeth Sent: Tuesday, March 29, 2005 1:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WFS bug? - multiple layers from same service I'm experiencing a wierd phenomenon with a mapfile i am working with. It's a bit of a unique case in that the map is composed of 3 layers, all WFS layers coming from the same service. The odd thing is...when I do this... only the FIRST layer in the map is drawn, but using the class info from the LAST layer of this service. If I draw the middle layer from a different service...the same is true, except that middle layer draws normal. So FIRST is drawing with THIRD styling, on top of SECOND that has it's own styling. In this case, it's polygons, lines and points, so the polygons are drawing with point symbology on top of lines. Or if all are coming from the same service, all that is drawn is polygins with point symbology. The last two layers are not drawn. I'm working with a cvs version from a month ago or so, but I also tested against 4.4.0 Shall I post a bug? I'm asking first in case I've overlooked something silly. Liz Godwin -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at GODDARD.BZ Tue Mar 29 12:20:06 2005 From: james at GODDARD.BZ (James Goddard) Date: Tue, 29 Mar 2005 14:20:06 -0600 Subject: Projection Help GPS vs National Atlas Message-ID: I'm a little confused by all of the projection stuff. Any help would be appreciated. I'm using the National Atlas maps from http://www.nationalatlas.gov/atlasftp.html. I am able to get the layers I want displayed great. Now what I want to do is add a layer of GPS points. I am creating a shapefile for these points with shapetools entering decimal lat/lon positions. When I display this layer it the points display but are way off of the US map. I've been playing around with the projections and have yet to figure out what I need to get this to display correctly. Here is what I have: #main mapfile projection "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=- 100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" #National Atlas layer projection "proj=latlong" "ellps=GRS80" "datum=NAD83" What projection should I use for the GPS coordinates so that they display correctly? James From jdport at VERITIME.COM Tue Mar 29 12:36:48 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Tue, 29 Mar 2005 15:36:48 -0500 Subject: Projection Help GPS vs National Atlas Message-ID: I don't know very much about this stuff myself, but wouldn't GPS just use "proj=latlong" ? So far as I know your GPS would only be delivering raw unprojected data, so I'd think "proj=latlong" would be all you'd need for your GPS layer.... then mapserver will automatically project that into LCC along with your other layers. -Jeff ----- Original Message ----- From: "James Goddard" To: Sent: Tuesday, March 29, 2005 3:20 PM Subject: [UMN_MAPSERVER-USERS] Projection Help GPS vs National Atlas > I'm a little confused by all of the projection stuff. Any help would be > appreciated. > > I'm using the National Atlas maps from > http://www.nationalatlas.gov/atlasftp.html. > > I am able to get the layers I want displayed great. Now what I want to do > is add a layer of GPS points. I am creating a shapefile for these points > with shapetools entering decimal lat/lon positions. > > When I display this layer it the points display but are way off of the US > map. > > I've been playing around with the projections and have yet to figure out > what I need to get this to display correctly. Here is what I have: > > #main mapfile projection > "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=- > 100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" > > #National Atlas layer projection > "proj=latlong" "ellps=GRS80" "datum=NAD83" > > What projection should I use for the GPS coordinates so that they display > correctly? > > James > From andy.canfield at GMAIL.COM Tue Mar 29 12:58:05 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Tue, 29 Mar 2005 12:58:05 -0800 Subject: Users of the Rosa applet Message-ID: For anyone using Rosa or other applets with Mapserver. I recently upgraded my JRE to 1.5.0_02 when the update from Sun came out. I will spare you the pain of repeating my headache. If you install this update and then use an applet from within Firefox it will crash your firefox randomly for users who are running on Windows 2K and possibly other Windows OS's(I don't know if the same is occuring on *nix boxes or not). If you leave it at 1.4.2_06 or roll it back to 1.4.2_06 the problem will go away. It doesn't seem to affect IE6. Other users are reporting the same things when using sites such as miniclip-tournaments.com that use applets as well. I submitted this to the Firefox people and they are trying to figure out if it's them or Sun that needs to do the fixing. Until it gets sorted out remind your Windows users not to upgrade their JRE if they use Firefox or switch to IE6(Yuck I know). I have no idea what in the applets is causing it but it causes pretty spectacular crashes in some cases. Thanks, Andy From ed at TOPOZONE.COM Tue Mar 29 13:11:22 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 29 Mar 2005 16:11:22 -0500 Subject: Projection Issues Message-ID: Bill - You have no CLASS definition to describe the rendering style to be used for your "Pinellas Roads" layer. Add one, similar to the way you did for the county outline layer - obviously, there's no OUTLINECOLOR needed, and make sure you choose a color that's different than the county polygon fill color! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Bill Binko [mailto:bill at binko.net] Sent: Tuesday, March 29, 2005 2:49 PM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Projection Issues On Fri, 25 Mar 2005, Ed McNierney wrote: > Bill - > > Those all look reasonable - good job! Those SRID codes are EPSG > projection codes, and you can use them directly as: > > PROJECTION > "init=epsg:26759" > END > > which will save you a lot of typing and some typos! It also makes it > obvious to the reader what projection it is (or at least easy for the > reader to look up). > > Could you post your entire MAP file? Since your output is in the > state plane projection, your EXTENT needs to be specified in that > projection and units. I would recommend that you start with a map > file with the county PROJECTION block at the MAP level and one layer > with the county data, also with the same PROJECTION block. Get that > working correctly, the add the second layer with the UTM PROJECTION block. > Ed, I took your advice and and replaced the projections with the espg codes. I also simplified the map file to just have two layers: both shapefile, not PostGIS. However, I am still having the same problem: I only see the county data when I put both in the file. I've included the reduced map file below, and I've sent a copy of the data to Paul to see if he can help. Is there a standard way to distribute layer files for review on this board? Or should I post a URL or the like? Thanks for your time, Bill MAP NAME SINKHOLE STATUS ON SIZE 800 500 IMAGETYPE PNG IMAGECOLOR 240 240 255 SHAPEPATH "/var/www/binko.net/maps/data/" UNITS METERS EXTENT 57968.750000 1189453.125000 464218.750000 1443359.375000 PROJECTION "init=epsg:26759" END WEB TEMPLATE "/var/www/binko.net/maps/template1.html" IMAGEPATH "/var/www/binko.net/maps/tmp/" IMAGEURL "/maps/tmp/" LOG "/var/www/binko.net/maps/error.log" END SCALEBAR STATUS ON STYLE 1 INTERVALS 4 SIZE 200 2 COLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS miles LABEL COLOR 0 0 0 SIZE small END END LAYER NAME "Pinellas County Outline" PROJECTION "init=epsg:26759" END TYPE LINE STATUS DEFAULT DATA "co_outline0000100104_line" CLASS NAME "Pinellas County" OUTLINECOLOR 60 60 60 COLOR 200 200 200 SYMBOL 0 END END LAYER NAME "Pinellas Roads" TYPE LINE STATUS DEFAULT PROJECTION "init=epsg:26917" END DATA "localnam" DEBUG ON END END From Godwinl at AGR.GC.CA Tue Mar 29 13:00:21 2005 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Tue, 29 Mar 2005 16:00:21 -0500 Subject: WFS bug? - multiple layers from same service Message-ID: Attached is the map file. The services are all internal, so don't bother trying to connect to them. The data being served via WFS is based on shapfiles, the map file is almost identical to this one, minus the connection string, metadata info is different. Liz -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ethan Alpert Sent: March 29, 2005 3:29 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WFS bug? - multiple layers from same service What's the mapfile look like? Is there a chance that there are name colisions between the layers? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Godwin, Elizabeth Sent: Tuesday, March 29, 2005 1:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WFS bug? - multiple layers from same service I'm experiencing a wierd phenomenon with a mapfile i am working with. It's a bit of a unique case in that the map is composed of 3 layers, all WFS layers coming from the same service. The odd thing is...when I do this... only the FIRST layer in the map is drawn, but using the class info from the LAST layer of this service. If I draw the middle layer from a different service...the same is true, except that middle layer draws normal. So FIRST is drawing with THIRD styling, on top of SECOND that has it's own styling. In this case, it's polygons, lines and points, so the polygons are drawing with point symbology on top of lines. Or if all are coming from the same service, all that is drawn is polygins with point symbology. The last two layers are not drawn. I'm working with a cvs version from a month ago or so, but I also tested against 4.4.0 Shall I post a bug? I'm asking first in case I've overlooked something silly. Liz Godwin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: shapewfs.map Type: application/octet-stream Size: 2549 bytes Desc: shapewfs.map URL: From kenlord at GMAIL.COM Tue Mar 29 13:17:33 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 29 Mar 2005 13:17:33 -0800 Subject: Users of the Rosa applet In-Reply-To: <7425d08705032912585bbc6c2e@mail.gmail.com> Message-ID: Hi Andy, I use Rosa, and JRE 1.5.. and have seen a few bugs in both IE6 and Firefox from a few different computers. Occasionaly a 'stack' error pops up when you move the mouse over the map, or when the new map image loads the image is there but you cant see it until you take another action on the map, even just querying it. This bug I've noticed happening with nearly every map viewed with a new Athlon64 windows XP IE6 JRE 1.5 computer I had access to recently. In the past there's been a random problem of some of the Rosa map tools dissappearing from the map. This still seems to happen with the new JRE but perhaps not quite as often, hard to say. For me its to the point that i may just strip Rosa out of my maps once and for all. I'd love to see a simple, clean, portable Flash applet to replace it with. The company I'm with has made a flash interface for mapserver, but its not simple in appearance, not universal in function, and not portable at all. The one or two open source flash interfaces I've found either are not really working yet or are just too glitzy looking. Cheers, Ken Lord Vancouver BC On Tue, 29 Mar 2005 12:58:05 -0800, Andy Canfield wrote: > For anyone using Rosa or other applets with Mapserver. > > I recently upgraded my JRE to 1.5.0_02 when the update from Sun came out. > > I will spare you the pain of repeating my headache. If you install > this update and then use an applet from within Firefox it will crash > your firefox randomly for users who are running on Windows 2K and > possibly other Windows OS's(I don't know if the same is occuring on > *nix boxes or not). > > If you leave it at 1.4.2_06 or roll it back to 1.4.2_06 the problem > will go away. It doesn't seem to affect IE6. > > Other users are reporting the same things when using sites such as > miniclip-tournaments.com that use applets as well. > > I submitted this to the Firefox people and they are trying to figure > out if it's them or Sun that needs to do the fixing. > > Until it gets sorted out remind your Windows users not to upgrade > their JRE if they use Firefox or switch to IE6(Yuck I know). I have no > idea what in the applets is causing it but it causes pretty > spectacular crashes in some cases. > Thanks, > Andy > From David.Fawcett at STATE.MN.US Tue Mar 29 13:22:40 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 29 Mar 2005 15:22:40 -0600 Subject: WFS bug? - multiple layers from same service Message-ID: Elizabeth, I ran into a similar glitch, except that all three layers were polys and they were added dependent on REQUIRES. They all took on the style of the first layer. I believe that I was using 4.2.3 I will try to dig up the Map File. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Godwin, Elizabeth Sent: Tuesday, March 29, 2005 3:00 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WFS bug? - multiple layers from same service Attached is the map file. The services are all internal, so don't bother trying to connect to them. The data being served via WFS is based on shapfiles, the map file is almost identical to this one, minus the connection string, metadata info is different. Liz -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ethan Alpert Sent: March 29, 2005 3:29 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WFS bug? - multiple layers from same service What's the mapfile look like? Is there a chance that there are name colisions between the layers? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Godwin, Elizabeth Sent: Tuesday, March 29, 2005 1:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WFS bug? - multiple layers from same service I'm experiencing a wierd phenomenon with a mapfile i am working with. It's a bit of a unique case in that the map is composed of 3 layers, all WFS layers coming from the same service. The odd thing is...when I do this... only the FIRST layer in the map is drawn, but using the class info from the LAST layer of this service. If I draw the middle layer from a different service...the same is true, except that middle layer draws normal. So FIRST is drawing with THIRD styling, on top of SECOND that has it's own styling. In this case, it's polygons, lines and points, so the polygons are drawing with point symbology on top of lines. Or if all are coming from the same service, all that is drawn is polygins with point symbology. The last two layers are not drawn. I'm working with a cvs version from a month ago or so, but I also tested against 4.4.0 Shall I post a bug? I'm asking first in case I've overlooked something silly. Liz Godwin -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.canfield at GMAIL.COM Tue Mar 29 13:29:01 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Tue, 29 Mar 2005 13:29:01 -0800 Subject: Users of the Rosa applet In-Reply-To: <55dd01fa05032913173571be18@mail.gmail.com> Message-ID: Ken, I had this same painting issue especially with IE6 and what I did was write a little button in Javascript that forces a repaint of the applet. This seamed to clear up the painting issue where tools or the image dissapears. I call it three times right after the page is fully loaded and I gave the users a button to call the same function. Like I said this seems to take care of it 99.999% of the time. I am thinking about seeing if I can invalidate the entire applet canvas and then repaint it from Javascript and see if that makes it work 100% of the time. I have to have client side screen drawing ability that's why I use Rosa but applets have always had painting issues in IE not just Rosa. The Javascript thing is how I usually work around it in any applet. Andy On Tue, 29 Mar 2005 13:17:33 -0800, Ken Lord wrote: > Hi Andy, > > I use Rosa, and JRE 1.5.. and have seen a few bugs in both IE6 and > Firefox from a few different computers. Occasionaly a 'stack' error > pops up when you move the mouse over the map, or when the new map > image loads the image is there but you cant see it until you take > another action on the map, even just querying it. This bug I've > noticed happening with nearly every map viewed with a new Athlon64 > windows XP IE6 JRE 1.5 computer I had access to recently. > > In the past there's been a random problem of some of the Rosa map > tools dissappearing from the map. This still seems to happen with the > new JRE but perhaps not quite as often, hard to say. > > For me its to the point that i may just strip Rosa out of my maps once > and for all. I'd love to see a simple, clean, portable Flash applet > to replace it with. The company I'm with has made a flash interface > for mapserver, but its not simple in appearance, not universal in > function, and not portable at all. The one or two open source flash > interfaces I've found either are not really working yet or are just > too glitzy looking. > > Cheers, > Ken Lord > Vancouver BC > > On Tue, 29 Mar 2005 12:58:05 -0800, Andy Canfield > wrote: > > For anyone using Rosa or other applets with Mapserver. > > > > I recently upgraded my JRE to 1.5.0_02 when the update from Sun came out. > > > > I will spare you the pain of repeating my headache. If you install > > this update and then use an applet from within Firefox it will crash > > your firefox randomly for users who are running on Windows 2K and > > possibly other Windows OS's(I don't know if the same is occuring on > > *nix boxes or not). > > > > If you leave it at 1.4.2_06 or roll it back to 1.4.2_06 the problem > > will go away. It doesn't seem to affect IE6. > > > > Other users are reporting the same things when using sites such as > > miniclip-tournaments.com that use applets as well. > > > > I submitted this to the Firefox people and they are trying to figure > > out if it's them or Sun that needs to do the fixing. > > > > Until it gets sorted out remind your Windows users not to upgrade > > their JRE if they use Firefox or switch to IE6(Yuck I know). I have no > > idea what in the applets is causing it but it causes pretty > > spectacular crashes in some cases. > > Thanks, > > Andy > > > From ltiu at ALUMNI.SFU.CA Tue Mar 29 13:34:01 2005 From: ltiu at ALUMNI.SFU.CA (Lyndon Tiu) Date: Tue, 29 Mar 2005 13:34:01 -0800 Subject: No Legend Message-ID: Hello, I have the legend object in my map file: LEGEND IMAGECOLOR 200 200 200#IMAGECOLOR [r][g][b] #INTERLACE [on|off] #OUTLINECOLOR [r][g][b] #POSITION [ul|uc|ur|ll|lc|lr] KEYSIZE 20 10 #KEYSIZE [x][y] #KEYSPACING [x][y] #POSTLABELCACHE [true|false] STATUS ON #STATUS [on|off|embed] TEMPLATE "templates/legend.html" #TEMPLATE [filename] #TRANSPARENT [on|off] LABEL #ANGLE [double] #ANTIALIAS [true|false] #BACKGROUNDCOLOR [r][g][b] #BACKGROUNDSHADOWCOLOR [r][g][b] #BACKGROUNDSHADOWSIZE [x][y] #BUFFER [integer] COLOR 0 0 155 #COLOR [r][g][b] #FONT [name] #FORCE [true|false] #MAXSIZE [integer] #MINDISTANCE [integer] #MINFEATURESIZE [integer|auto] #MINSIZE [integer] #OFFSET [x][y] #OUTLINECOLOR [r][g][b] #PARTIALS [true|false] #POSITION [ul|uc|ur|cl|cc|cr|ll|lc|lr|auto] #SHADOWCOLOR [r][g][b] #SHADOWSIZE [x][y] SIZE MEDIUM #SIZE [integer]|[tiny|small|medium|large|giant] TYPE BITMAP #TYPE [bitmap|truetype] #WRAP [character] END # LABEL END # LEGEND But my GetCapabilities XML does not have a tag. What else do I need to do to make the GetCapabilities output a tag? Thank you very much for any help. -- Lyndon Tiu From bill at BINKO.NET Tue Mar 29 13:46:27 2005 From: bill at BINKO.NET (Bill Binko) Date: Tue, 29 Mar 2005 16:46:27 -0500 Subject: Projection Issues In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8188238@ptolemy.topozone.com> Message-ID: ACK! Ok, I don't know whether to kiss or kick you. It fixed the problem of course. Ugh Well, when I'm finished being mortified, I have some other questions :) Thanks Ed (and Paul)! Bill <..slinks back under his rock> On Tue, 29 Mar 2005, Ed McNierney wrote: > Bill - > > You have no CLASS definition to describe the rendering style to be used > for your "Pinellas Roads" layer. Add one, similar to the way you did > for the county outline layer - obviously, there's no OUTLINECOLOR > needed, and make sure you choose a color that's different than the > county polygon fill color! > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Bill Binko [mailto:bill at binko.net] > Sent: Tuesday, March 29, 2005 2:49 PM > To: Ed McNierney > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Projection Issues > > On Fri, 25 Mar 2005, Ed McNierney wrote: > > > Bill - > > > > Those all look reasonable - good job! Those SRID codes are EPSG > > projection codes, and you can use them directly as: > > > > PROJECTION > > "init=epsg:26759" > > END > > > > which will save you a lot of typing and some typos! It also makes it > > obvious to the reader what projection it is (or at least easy for the > > reader to look up). > > > > Could you post your entire MAP file? Since your output is in the > > state plane projection, your EXTENT needs to be specified in that > > projection and units. I would recommend that you start with a map > > file with the county PROJECTION block at the MAP level and one layer > > with the county data, also with the same PROJECTION block. Get that > > working correctly, the add the second layer with the UTM PROJECTION > block. > > > > Ed, > I took your advice and and replaced the projections with the espg codes. > > I also simplified the map file to just have two layers: both shapefile, > not PostGIS. However, I am still having the same problem: I only see > the county data when I put both in the file. > > I've included the reduced map file below, and I've sent a copy of the > data to Paul to see if he can help. Is there a standard way to > distribute layer files for review on this board? Or should I post a URL > or the like? > > Thanks for your time, > Bill > > MAP > NAME SINKHOLE > STATUS ON > SIZE 800 500 > IMAGETYPE PNG > IMAGECOLOR 240 240 255 > SHAPEPATH "/var/www/binko.net/maps/data/" > UNITS METERS > EXTENT 57968.750000 1189453.125000 464218.750000 1443359.375000 > PROJECTION > "init=epsg:26759" > END > WEB > TEMPLATE "/var/www/binko.net/maps/template1.html" > IMAGEPATH "/var/www/binko.net/maps/tmp/" > IMAGEURL "/maps/tmp/" > LOG "/var/www/binko.net/maps/error.log" > END > SCALEBAR > STATUS ON > STYLE 1 > INTERVALS 4 > SIZE 200 2 > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS miles > LABEL > COLOR 0 0 0 > SIZE small > END > END > LAYER > NAME "Pinellas County Outline" > PROJECTION > "init=epsg:26759" > END > TYPE LINE > STATUS DEFAULT > DATA "co_outline0000100104_line" > CLASS > NAME "Pinellas County" > OUTLINECOLOR 60 60 60 > COLOR 200 200 200 > SYMBOL 0 > END > END > LAYER > NAME "Pinellas Roads" > TYPE LINE > STATUS DEFAULT > PROJECTION > "init=epsg:26917" > END > DATA "localnam" > DEBUG ON > END > > END > > From andy.canfield at GMAIL.COM Tue Mar 29 13:52:07 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Tue, 29 Mar 2005 13:52:07 -0800 Subject: Users of the Rosa applet In-Reply-To: <55dd01fa05032913173571be18@mail.gmail.com> Message-ID: Ken, Here is the Javascript function that solves the re-paint issues for me: function forceInvP(){ var app = document.RosaApplet; var graph = app.getGraphics(); app.paintAll(graph); app.repaint(); } Andy On Tue, 29 Mar 2005 13:17:33 -0800, Ken Lord wrote: > Hi Andy, > > I use Rosa, and JRE 1.5.. and have seen a few bugs in both IE6 and > Firefox from a few different computers. Occasionaly a 'stack' error > pops up when you move the mouse over the map, or when the new map > image loads the image is there but you cant see it until you take > another action on the map, even just querying it. This bug I've > noticed happening with nearly every map viewed with a new Athlon64 > windows XP IE6 JRE 1.5 computer I had access to recently. > > In the past there's been a random problem of some of the Rosa map > tools dissappearing from the map. This still seems to happen with the > new JRE but perhaps not quite as often, hard to say. > > For me its to the point that i may just strip Rosa out of my maps once > and for all. I'd love to see a simple, clean, portable Flash applet > to replace it with. The company I'm with has made a flash interface > for mapserver, but its not simple in appearance, not universal in > function, and not portable at all. The one or two open source flash > interfaces I've found either are not really working yet or are just > too glitzy looking. > > Cheers, > Ken Lord > Vancouver BC > > On Tue, 29 Mar 2005 12:58:05 -0800, Andy Canfield > wrote: > > For anyone using Rosa or other applets with Mapserver. > > > > I recently upgraded my JRE to 1.5.0_02 when the update from Sun came out. > > > > I will spare you the pain of repeating my headache. If you install > > this update and then use an applet from within Firefox it will crash > > your firefox randomly for users who are running on Windows 2K and > > possibly other Windows OS's(I don't know if the same is occuring on > > *nix boxes or not). > > > > If you leave it at 1.4.2_06 or roll it back to 1.4.2_06 the problem > > will go away. It doesn't seem to affect IE6. > > > > Other users are reporting the same things when using sites such as > > miniclip-tournaments.com that use applets as well. > > > > I submitted this to the Firefox people and they are trying to figure > > out if it's them or Sun that needs to do the fixing. > > > > Until it gets sorted out remind your Windows users not to upgrade > > their JRE if they use Firefox or switch to IE6(Yuck I know). I have no > > idea what in the applets is causing it but it causes pretty > > spectacular crashes in some cases. > > Thanks, > > Andy > > > From kenlord at GMAIL.COM Tue Mar 29 13:59:04 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 29 Mar 2005 13:59:04 -0800 Subject: Users of the Rosa applet In-Reply-To: <7425d0870503291352490080a8@mail.gmail.com> Message-ID: Andy, That is awesome, thanks very much. I use many simple javascript functions in my maps but I wasn't familiar with the methods available to repaint the graphics of the applet so I wasn't sure which way to go with it. I'll be trying out your function right after dinner tonight! Cheers, Ken Lord Vancouver BC On Tue, 29 Mar 2005 13:52:07 -0800, Andy Canfield wrote: > Ken, > Here is the Javascript function that solves the re-paint issues for me: > function forceInvP(){ > var app = document.RosaApplet; > var graph = app.getGraphics(); > app.paintAll(graph); > app.repaint(); > } > Andy > > > On Tue, 29 Mar 2005 13:17:33 -0800, Ken Lord wrote: > > Hi Andy, > > > > I use Rosa, and JRE 1.5.. and have seen a few bugs in both IE6 and > > Firefox from a few different computers. Occasionaly a 'stack' error > > pops up when you move the mouse over the map, or when the new map > > image loads the image is there but you cant see it until you take > > another action on the map, even just querying it. This bug I've > > noticed happening with nearly every map viewed with a new Athlon64 > > windows XP IE6 JRE 1.5 computer I had access to recently. > > > > In the past there's been a random problem of some of the Rosa map > > tools dissappearing from the map. This still seems to happen with the > > new JRE but perhaps not quite as often, hard to say. > > > > For me its to the point that i may just strip Rosa out of my maps once > > and for all. I'd love to see a simple, clean, portable Flash applet > > to replace it with. The company I'm with has made a flash interface > > for mapserver, but its not simple in appearance, not universal in > > function, and not portable at all. The one or two open source flash > > interfaces I've found either are not really working yet or are just > > too glitzy looking. > > > > Cheers, > > Ken Lord > > Vancouver BC > > > > On Tue, 29 Mar 2005 12:58:05 -0800, Andy Canfield > > wrote: > > > For anyone using Rosa or other applets with Mapserver. > > > > > > I recently upgraded my JRE to 1.5.0_02 when the update from Sun came out. > > > > > > I will spare you the pain of repeating my headache. If you install > > > this update and then use an applet from within Firefox it will crash > > > your firefox randomly for users who are running on Windows 2K and > > > possibly other Windows OS's(I don't know if the same is occuring on > > > *nix boxes or not). > > > > > > If you leave it at 1.4.2_06 or roll it back to 1.4.2_06 the problem > > > will go away. It doesn't seem to affect IE6. > > > > > > Other users are reporting the same things when using sites such as > > > miniclip-tournaments.com that use applets as well. > > > > > > I submitted this to the Firefox people and they are trying to figure > > > out if it's them or Sun that needs to do the fixing. > > > > > > Until it gets sorted out remind your Windows users not to upgrade > > > their JRE if they use Firefox or switch to IE6(Yuck I know). I have no > > > idea what in the applets is causing it but it causes pretty > > > spectacular crashes in some cases. > > > Thanks, > > > Andy > > > > > > From dondrake at GMAIL.COM Tue Mar 29 15:00:41 2005 From: dondrake at GMAIL.COM (Don Drake) Date: Tue, 29 Mar 2005 17:00:41 -0600 Subject: TRUETYPE Labels on Solaris Message-ID: Does anyone have TrueType labels working on Solaris? I am struggling to get these to work. Our application is being ported to Solaris and I've noticed that this simple layer will crash the PHP/Mapscript when I choose the TrueType Type in the map file. I also get no debugging output. The same layer works just fine on my Linux servers. Here's the layer: LAYER DEBUG ON NAME "credits" STATUS ON TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 440 END TEXT 'Copyright 2005' END CLASSPSERVER-USERS at lists.umn.edu LABEL POSITION CR COLOR 255 255 255 PARTIALS FALSE FONT "arial" #TYPE BITMAP #SIZE small TYPE TRUETYPE SIZE 8 BUFFER 4 MINDISTANCE 300 MINFEATURESIZE 10 OUTLINECOLOR 37 62 130 ANTIALIAS TRUE FORCE on END END END Any suggestions? I'm on Solaris 9, Mapserver 4.4.1, gd 2.0.33, freetype 2.1.9. If I change the type to bitmap, nothing crashes and I see maps. Thanks. -Don -- Donald Drake President Drake Consulting http://www.drakeconsult.com/ http://www.MailLaunder.com/ http://www.mobilemeridian.com/ 312-560-1574 From aryan at CO.LINN.OR.US Tue Mar 29 14:58:18 2005 From: aryan at CO.LINN.OR.US (Adam Ryan) Date: Tue, 29 Mar 2005 16:58:18 -0600 Subject: PIL PNG IOError Message-ID: Hello to all, I'm using Python Mapscript, ReportLab and PIL to generate PDF files on Windows XP. I generate an image using mapscript, save it, and then insert it into my pdf 'canvas': Canvas.drawInlineImage(myfile,x,y,w,h) If my mapfile outputformat is gif, no problem - I get a nice pdf file. But if my outputformat is png, I get an IOError: File "C:\python23\lib\site-packages\PIL\ImageFile.py", line 192, in load IOError: unknown error when reading image file Your thinking I'm posting to the wrong listserv right? Well, if I take that png file and open it up in Micro$oft Paint and then save it, my routine then works without a problem. So I compared the two png files (before and after saving with Paint) with gdalinfo but got identical results. I did notice that there was a file size decrease after saving. But I don't know what else could be different about the files. Any ideas? Here are two examples of file size reduction with output format: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END Reduction: 146kb to 137kb outputformat name "png" driver "GD/PNG" imagemode "RGB" mimetype "image/png" extension "png" End Reduction: 272kb to 205kb Any sugestions would be grand. Cheers to all, Adam From woodbri at SWOODBRIDGE.COM Tue Mar 29 16:24:25 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 29 Mar 2005 19:24:25 -0500 Subject: TRUETYPE Labels on Solaris In-Reply-To: <6c21003b0503291500826de76@mail.gmail.com> Message-ID: Don, You might check and make sure that you are using the same version of freetype in BOTH PHP and mapserver otherwise there may be issues. You might need to build both PHP and mapserver from source if you haven't. Also make use that the version of freetype that you compiled against is the version that you are actually loading at runtime. You might have a different system version that is getting loaded. -Steve W. Don Drake wrote: > Does anyone have TrueType labels working on Solaris? I am struggling > to get these to work. Our application is being ported to Solaris and > I've noticed that this simple layer will crash the PHP/Mapscript when > I choose the TrueType Type in the map file. > > I also get no debugging output. > > The same layer works just fine on my Linux servers. > > Here's the layer: > > LAYER > DEBUG ON > NAME "credits" > STATUS ON > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 10 440 > END > TEXT 'Copyright 2005' > END > CLASSPSERVER-USERS at lists.umn.edu > LABEL > POSITION CR > COLOR 255 255 255 > PARTIALS FALSE > FONT "arial" > #TYPE BITMAP > #SIZE small > TYPE TRUETYPE > SIZE 8 > BUFFER 4 > MINDISTANCE 300 > MINFEATURESIZE 10 > OUTLINECOLOR 37 62 130 > ANTIALIAS TRUE > FORCE on > END > END > END > > Any suggestions? I'm on Solaris 9, Mapserver 4.4.1, gd 2.0.33, freetype 2.1.9. > > If I change the type to bitmap, nothing crashes and I see maps. > > Thanks. > > -Don > > -- > Donald Drake > President > Drake Consulting > http://www.drakeconsult.com/ > http://www.MailLaunder.com/ > http://www.mobilemeridian.com/ > 312-560-1574 > From ram at RAMPAGE.NET Tue Mar 29 18:12:39 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Tue, 29 Mar 2005 20:12:39 -0600 Subject: IR Satellite Pix Source? Message-ID: Can anyone recommend a source for large-area infrared satellite images for use with MapServer? I'm currently using the images at http://aviationweather.gov/obs/sat/intl/, but I would prefer larger images (higher pixel counts) and if possible images without the political boundry overlays since I can plot those better with MapServer. I'm mostly interested in replacements for the ICAO area A, C, F, i, and M maps. Thanks! -- Richard From dondrake at GMAIL.COM Tue Mar 29 21:03:36 2005 From: dondrake at GMAIL.COM (Don Drake) Date: Tue, 29 Mar 2005 23:03:36 -0600 Subject: TRUETYPE Labels on Solaris In-Reply-To: <4249F1B9.7040904@swoodbridge.com> Message-ID: I've built everything from source. Just curious why you say PHP and mapserver need the same version of freetype when I run mapserver as a CGI? They're independent processes at that point. Thanks. -Don On Tue, 29 Mar 2005 19:24:25 -0500, Stephen Woodbridge wrote: > Don, > > You might check and make sure that you are using the same version of > freetype in BOTH PHP and mapserver otherwise there may be issues. You > might need to build both PHP and mapserver from source if you haven't. > Also make use that the version of freetype that you compiled against is > the version that you are actually loading at runtime. You might have a > different system version that is getting loaded. > > -Steve W. > > Don Drake wrote: > > Does anyone have TrueType labels working on Solaris? I am struggling > > to get these to work. Our application is being ported to Solaris and > > I've noticed that this simple layer will crash the PHP/Mapscript when > > I choose the TrueType Type in the map file. > > > > I also get no debugging output. > > > > The same layer works just fine on my Linux servers. > > > > Here's the layer: > > > > LAYER > > DEBUG ON > > NAME "credits" > > STATUS ON > > TRANSFORM FALSE > > TYPE ANNOTATION > > FEATURE > > POINTS > > 10 440 > > END > > TEXT 'Copyright 2005' > > END > > CLASSPSERVER-USERS at lists.umn.edu > > LABEL > > POSITION CR > > COLOR 255 255 255 > > PARTIALS FALSE > > FONT "arial" > > #TYPE BITMAP > > #SIZE small > > TYPE TRUETYPE > > SIZE 8 > > BUFFER 4 > > MINDISTANCE 300 > > MINFEATURESIZE 10 > > OUTLINECOLOR 37 62 130 > > ANTIALIAS TRUE > > FORCE on > > END > > END > > END > > > > Any suggestions? I'm on Solaris 9, Mapserver 4.4.1, gd 2.0.33, freetype 2.1.9. > > > > If I change the type to bitmap, nothing crashes and I see maps. > > > > Thanks. > > > > -Don > > > > -- > > Donald Drake > > President > > Drake Consulting > > http://www.drakeconsult.com/ > > http://www.MailLaunder.com/ > > http://www.mobilemeridian.com/ > > 312-560-1574 > > > > -- Donald Drake President Drake Consulting http://www.drakeconsult.com/ http://www.MailLaunder.com/ http://www.mobilemeridian.com/ 312-560-1574 From platzen at GMX.NET Tue Mar 29 23:52:15 2005 From: platzen at GMX.NET (Bjoern Platzen) Date: Wed, 30 Mar 2005 09:52:15 +0200 Subject: WMS GetFeatureInfo-Request doesn't work with INFO_FORMAT=application/vnd.ogc.gml Message-ID: Hello List, There is something, I don't understand. I set up a WMS with Mapserver 4.4.1 and all my maps display just fine. Only the GetFeatureInfo request does not really work: The following request does not work: http://update.parkinfo-neuss.de/mapserv.cgi?map=/home/www/update/html/gevisW MS.map&VERSION=1.1.0&REQUEST=GetFeatureInfo&LAYERS=BGMap,plugin_Parkinfo_qua rtiere,plugin_Parkinfo_parkhaeuser&STYLES=&SRS=EPSG:31466&FORMAT=image/png&B GCOLOR=0xFFFFFF&TRANSPARENT=FALSE&WIDTH=1002&HEIGHT=637&BBOX=2546755.4252855 ,5673106.039447,2549626.0705665,5674930.9905887&QUERY_LAYERS=plugin_Parkinfo _quartiere,plugin_Parkinfo_parkhaeuser&INFO_FORMAT=application/vnd.ogc.gml&X =421&Y=251&FEATURE_COUNT=10&EXCEPTIONS=application/vnd.ogc.se_xml& All I get back is: But this one does work: http://update.parkinfo-neuss.de/mapserv.cgi?map=/home/www/update/html/gevisW MS.map&VERSION=1.1.0&REQUEST=GetFeatureInfo&LAYERS=BGMap,plugin_Parkinfo_qua rtiere,plugin_Parkinfo_parkhaeuser&STYLES=&SRS=EPSG:31466&FORMAT=image/png&B GCOLOR=0xFFFFFF&TRANSPARENT=FALSE&WIDTH=1002&HEIGHT=637&BBOX=2546755.4252855 ,5673106.039447,2549626.0705665,5674930.9905887&QUERY_LAYERS=plugin_Parkinfo _quartiere,plugin_Parkinfo_parkhaeuser&INFO_FORMAT=text/plain&X=421&Y=251&FE ATURE_COUNT=10&EXCEPTIONS=application/vnd.ogc.se_xml& Here I get back: GetFeatureInfo results: Layer 'plugin_Parkinfo_quartiere' Feature 0: ID = '1' NAME = 'Neuss Zentrum' Layer 'plugin_Parkinfo_parkhaeuser' Feature 0: ID = '7' NAME = 'Niedertor' PHKAT = '1' As you see, the requests are totally equal except the INFO_FORMAT. Has anybody an idea what that could be? Thanks in advance, Bjoern. From bartvde at XS4ALL.NL Wed Mar 30 00:38:27 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 30 Mar 2005 10:38:27 +0200 Subject: WMS GetFeatureInfo-Request doesn't work with INFO_FORMAT=application/vnd.ogc.gml In-Reply-To: Message-ID: Hi, did you set DUMP TRUE on your LAYER? Best regards, Bart > Hello List, > > There is something, I don't understand. I set up a WMS with Mapserver > 4.4.1 > and all my maps display just fine. Only the GetFeatureInfo request does > not > really work: > > The following request does not work: > http://update.parkinfo-neuss.de/mapserv.cgi?map=/home/www/update/html/gevisW > MS.map&VERSION=1.1.0&REQUEST=GetFeatureInfo&LAYERS=BGMap,plugin_Parkinfo_qua > rtiere,plugin_Parkinfo_parkhaeuser&STYLES=&SRS=EPSG:31466&FORMAT=image/png&B > GCOLOR=0xFFFFFF&TRANSPARENT=FALSE&WIDTH=1002&HEIGHT=637&BBOX=2546755.4252855 > ,5673106.039447,2549626.0705665,5674930.9905887&QUERY_LAYERS=plugin_Parkinfo > _quartiere,plugin_Parkinfo_parkhaeuser&INFO_FORMAT=application/vnd.ogc.gml&X > =421&Y=251&FEATURE_COUNT=10&EXCEPTIONS=application/vnd.ogc.se_xml& > > All I get back is: > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > But this one does work: > http://update.parkinfo-neuss.de/mapserv.cgi?map=/home/www/update/html/gevisW > MS.map&VERSION=1.1.0&REQUEST=GetFeatureInfo&LAYERS=BGMap,plugin_Parkinfo_qua > rtiere,plugin_Parkinfo_parkhaeuser&STYLES=&SRS=EPSG:31466&FORMAT=image/png&B > GCOLOR=0xFFFFFF&TRANSPARENT=FALSE&WIDTH=1002&HEIGHT=637&BBOX=2546755.4252855 > ,5673106.039447,2549626.0705665,5674930.9905887&QUERY_LAYERS=plugin_Parkinfo > _quartiere,plugin_Parkinfo_parkhaeuser&INFO_FORMAT=text/plain&X=421&Y=251&FE > ATURE_COUNT=10&EXCEPTIONS=application/vnd.ogc.se_xml& > > > Here I get back: > > GetFeatureInfo results: > > Layer 'plugin_Parkinfo_quartiere' > Feature 0: > ID = '1' > NAME = 'Neuss Zentrum' > > Layer 'plugin_Parkinfo_parkhaeuser' > Feature 0: > ID = '7' > NAME = 'Niedertor' > PHKAT = '1' > > As you see, the requests are totally equal except the INFO_FORMAT. Has > anybody an idea what that could be? > > Thanks in advance, > > Bjoern. > From platzen at GMX.NET Wed Mar 30 00:52:30 2005 From: platzen at GMX.NET (Bjoern Platzen) Date: Wed, 30 Mar 2005 10:52:30 +0200 Subject: WMS GetFeatureInfo-Request doesn't work with INFO_FORMAT=application/vnd.ogc.gml In-Reply-To: <7609.212.238.227.182.1112171907.squirrel@212.238.227.182> Message-ID: > did you set DUMP TRUE on your LAYER? > Hummmm, well, ... Errr, ... Nope... 8~| I just defined a "dummy template". Thanks a million, now it works (and I'll give myself again some hours RTFM as homework...) Bye, Bjoern. From daniel.faivre at CAMPTOCAMP.COM Wed Mar 30 01:11:13 2005 From: daniel.faivre at CAMPTOCAMP.COM (Daniel) Date: Wed, 30 Mar 2005 11:11:13 +0200 Subject: Tooltips on icons In-Reply-To: <20050329152634.GJ11873@vishnu.tridity.org> Message-ID: Hello, I realized a sample of active areas onmouseover, for tooltips AND highlighting of features. It use the mapserver feature imagemap output. A very simple demo is visible at http://dev.camptocamp.com/df/im/ Please consider this source code as GPL, and thus include the author (Daniel FAIVRE) and company name (Camptocamp) as mandatory informations for reusing this code. This feature will be soon included in Cartoweb 3: see www.cartoweb.org for more informations. I hope this could help. Daniel FAIVRE Schuyler Erle wrote: >* On 29-Mar-2005 at 2:09AM PST, Aaron Craig said: > > >>Is it possible to get a tooltip to pop up with some text taken from a >>field in my Postgis database when the user puts her mouse over an icon >>in a layer? >> >> > >There's nothing built in to MapServer that I know of. I'm working on a >solution that uses Python MapScript and Cheetah templates to output an >image map that could be used to add JS mouseover hooks. The heart of >the code looks something like this: > > def points_to_pixels (self, pts): > """The points_to_pixels() method takes a list of (point, link) > tuples, and returns a list of dicts. Each entry in the returned dict > has an 'x' and 'y' key representing the point's location in pixel > space, and 'url' key containing the link.""" > > map = self.map > result = [] > width = map.extent.maxx - map.extent.minx > height = map.extent.maxy - map.extent.miny > x_res = map.width / width > y_res = map.height / height > > """Each point is converted to pixel space by subtracting the > coordinate from the spatial map edge, multiplying by the pixel > resolution (in pixels/spatial unit), and rounding to the nearest > integer. If the point would wind up off the map, it is omitted from > the returned list. Also, points without matching links (e.g. the link > evaluates to false) are discarded.""" > > for pt, url in pts: > if not url: > continue > x = int((pt.x - map.extent.minx) * x_res + .5) > y = int((map.extent.maxy - pt.y) * y_res + .5) > if x >= 0 and x <= map.width and \ > y >= 0 and y <= map.height: > result.append({ 'x': x, 'y': y, 'url': url }) > > return result > >The result list gets passed to a Cheetah template to generate the >actual image map. I hope the code is reasonably self-explanatory. The >project I'm working on is something of a port of the subset of >mapserv's functionality to Python MapScript in order to make things >like this possible. I'll post to the list when the (GPL'ed) code is >available. > >SDE > > From ragnvald at MINDLAND.COM Wed Mar 30 02:00:36 2005 From: ragnvald at MINDLAND.COM (Ragnvald) Date: Wed, 30 Mar 2005 13:00:36 +0300 Subject: Problems with Dynamic Layer and Transparency Message-ID: Hello Ian, I saw your request on the MAPSERVER-USERS regarding php Mapscript and transparency. I do not have the answers for you, and truly hope you have got some good answers from the community. That is why I am sending this mail. I am working on a project where I need to set the transparency on a layer. The layer is defined in the .map-file and is further manipulated through php mapscript. It seems like it is not possible to set the transparency for the layer. Could I instead do this on a object-level by changing this code? if ($instances>0) { $classObj = $oCurrLayer->getClass(0); $styleobj = $classObj->getstyle(0); //for less than 6 instances add brighter color if ($instances<6) { $styleobj->color->setRGB( 200,150,150); } //more instances add darker color else if ($instances>=6) { $styleobj->color->setRGB( 150,100,100); } // then draw the shape: $shapeObj->draw( $map, $oCurrLayer, $image); } I already tried this: $oCurrLayer->set("transparency", 10); But it seems like it won't affect the transparency for this layer in general, or for the objects subsequently drawn on the layer. Did you get any further on this matter? Regards, Ragnvald Larsen TAWIRI From schuyler at NOCAT.NET Wed Mar 30 02:22:05 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Wed, 30 Mar 2005 02:22:05 -0800 Subject: IR Satellite Pix Source? In-Reply-To: Message-ID: * On 29-Mar-2005 at 6:16PM PST, Richard A. Milewski said: > Can anyone recommend a source for large-area infrared satellite images for > use with MapServer? How about Landsat ETM+ bands 4, 5, 7, and 8 from landcover.org? They've got UTM tiles covering most of the world. Alternately you can get true- and false-color composites from onearth.jpl.nasa.gov. SDE From uli.rothstein at CCGIS.DE Wed Mar 30 04:12:02 2005 From: uli.rothstein at CCGIS.DE (Uli Rothstein (CCGIS)) Date: Wed, 30 Mar 2005 14:12:02 +0200 Subject: WFS GetFeature MultiLineString Message-ID: Hi list, in the response to a GetFeature request I'm missing the whitespaces between the coordinates in MultiLineStrings (Mapserver 4.5 dev). For example: 4504090.125771,6002562.002115 4504198.958542,6002695.300602 4504090.125771,6002677.6068204504191.237214,6002669.2150274504195.708325,6002669.7851494504197.985127,6002672.6257564504198.958542,6002683.8381524504198.636820,6002685.8685864504196.401265,6002686.4587124504091.668386,6002695.300602 4504139.563715,6002564.4526394504129.400600,6002564.042550 319 Does someone know something about this problem? Thanks and best regards Uli Rothstein From Wolfgang.Qual at MUENCHEN.DE Wed Mar 30 04:18:01 2005 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Wed, 30 Mar 2005 14:18:01 +0200 Subject: Display GeoTIFF-data (>8bit) with the Mapserver Message-ID: We purchased IKONOS-Satellite images (data format GeoTIFF, 16bit) and would like to get it into a mapserver map. However, this data is not supported by the mapserver. We got the error message: "drawTIFF(): Image handling error. Only 1, 4, and 8-bit images are supported." Tried to make a 8bit GeoTIFF of it using the gdal-utility rgb2pct.py, but it just produced strange results (strange colors). Anybody there, who managed it to put such data into a mapserver map? How can I produce a nice 8-bit image of the data without losing the information of the satellite image? Thanks. Wolfgang Qual From woodbri at SWOODBRIDGE.COM Wed Mar 30 04:48:40 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 30 Mar 2005 07:48:40 -0500 Subject: TRUETYPE Labels on Solaris In-Reply-To: <6c21003b0503292103545d8e05@mail.gmail.com> Message-ID: Don Drake wrote: > I've built everything from source. > > Just curious why you say PHP and mapserver need the same version of > freetype when I run mapserver as a CGI? They're independent processes > at that point. Correct. I was thinking of PHP/mapscript in which case you are loading both PHP and Mapserver into the same executable and they both have to use the same shared libs. -Steve > Thanks. > > -Don > > > On Tue, 29 Mar 2005 19:24:25 -0500, Stephen Woodbridge > wrote: > >>Don, >> >>You might check and make sure that you are using the same version of >>freetype in BOTH PHP and mapserver otherwise there may be issues. You >>might need to build both PHP and mapserver from source if you haven't. >>Also make use that the version of freetype that you compiled against is >>the version that you are actually loading at runtime. You might have a >>different system version that is getting loaded. >> >>-Steve W. >> >>Don Drake wrote: >> >>>Does anyone have TrueType labels working on Solaris? I am struggling >>>to get these to work. Our application is being ported to Solaris and >>>I've noticed that this simple layer will crash the PHP/Mapscript when >>>I choose the TrueType Type in the map file. >>> >>>I also get no debugging output. >>> >>>The same layer works just fine on my Linux servers. >>> >>>Here's the layer: >>> >>> LAYER >>> DEBUG ON >>> NAME "credits" >>> STATUS ON >>> TRANSFORM FALSE >>> TYPE ANNOTATION >>> FEATURE >>> POINTS >>> 10 440 >>> END >>> TEXT 'Copyright 2005' >>> END >>> CLASSPSERVER-USERS at lists.umn.edu >>> LABEL >>> POSITION CR >>> COLOR 255 255 255 >>> PARTIALS FALSE >>> FONT "arial" >>> #TYPE BITMAP >>> #SIZE small >>> TYPE TRUETYPE >>> SIZE 8 >>> BUFFER 4 >>> MINDISTANCE 300 >>> MINFEATURESIZE 10 >>> OUTLINECOLOR 37 62 130 >>> ANTIALIAS TRUE >>> FORCE on >>> END >>> END >>> END >>> >>>Any suggestions? I'm on Solaris 9, Mapserver 4.4.1, gd 2.0.33, freetype 2.1.9. >>> >>>If I change the type to bitmap, nothing crashes and I see maps. >>> >>>Thanks. >>> >>>-Don >>> >>>-- >>>Donald Drake >>>President >>>Drake Consulting >>>http://www.drakeconsult.com/ >>>http://www.MailLaunder.com/ >>>http://www.mobilemeridian.com/ >>>312-560-1574 >>> >> >> > > From adams at TERRESTRIS.DE Wed Mar 30 04:46:59 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 30 Mar 2005 14:46:59 +0200 Subject: Display GeoTIFF-data (>8bit) with the Mapserver In-Reply-To: <424A98F9.6010709@muenchen.de> Message-ID: Wolfgang Qual wrote: > We purchased IKONOS-Satellite images (data format GeoTIFF, 16bit) and > would like to get it into a mapserver map. However, this data is not > supported by the mapserver. We got the error message: > "drawTIFF(): Image handling error. Only 1, 4, and 8-bit images are > supported." > Tried to make a 8bit GeoTIFF of it using the gdal-utility rgb2pct.py, > but it just produced strange results (strange colors). > > Anybody there, who managed it to put such data into a mapserver map? How > can I produce a nice 8-bit image of the data without losing the > information of the satellite image? > > Thanks. > > > Wolfgang Qual > Dear Mr. Qual, we put an ikonos image of southern cologne into umn (v4.0/4.25/4.4) and had no problems - we converted it with IrfanView (running per wine under my mandrake ;-)) and still can see the waterbubbles behind the ships on the Rhine. Greetings from Bonn, Till Adams -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * AmeiN! ArcGIS Map-Export-2-UMN * * AmeiN! Workshop 11. Mai 2005 * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * www.terrestris.de From schuyler at NOCAT.NET Wed Mar 30 05:06:53 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Wed, 30 Mar 2005 05:06:53 -0800 Subject: Projection Help GPS vs National Atlas In-Reply-To: Message-ID: * On 29-Mar-2005 at 12:32PM PST, James Goddard said: > > #National Atlas layer projection > "proj=latlong" "ellps=GRS80" "datum=NAD83" > > What projection should I use for the GPS coordinates so that they display > correctly? "proj=latlong" "ellps=WGS84" "datum=WGS84" should work just fine for GPS. This is essentially equivalent (to eight decimal places) to GRS80. Be aware, however, that the nationalatlas.gov shapefiles have been generalized (i.e. simplified), and are unlikely to match up exactly with your GPS traces in any case. SDE From uli.rothstein at CCGIS.DE Wed Mar 30 05:10:05 2005 From: uli.rothstein at CCGIS.DE (Uli Rothstein (CCGIS)) Date: Wed, 30 Mar 2005 15:10:05 +0200 Subject: WFS GetFeature MultiLineString In-Reply-To: <424A9792.3000900@ccgis.de> Message-ID: --- C O R R E C T I O N --- Hi list, sorry, the version is Mapserver 4.2.5. The response from Mapserver 4.4.1 and 4.5 (dev) with multilinestring-geometry is: - - missing best regards Uli Rothstein Uli Rothstein (CCGIS) wrote: > Hi list, > > in the response to a GetFeature request I'm missing the whitespaces > between the coordinates in MultiLineStrings (Mapserver 4.5 dev). > For example: > > > > > > 4504090.125771,6002562.002115 4504198.958542,6002695.300602 > > > > > > > 4504090.125771,6002677.6068204504191.237214,6002669.2150274504195.708325,6002669.7851494504197.985127,6002672.6257564504198.958542,6002683.8381524504198.636820,6002685.8685864504196.401265,6002686.4587124504091.668386,6002695.300602 > > > > 4504139.563715,6002564.4526394504129.400600,6002564.042550 > > > > > 319 > > > > Does someone know something about this problem? > Thanks and best regards > Uli Rothstein > From gis at SCHNEGG.NET Wed Mar 30 05:25:02 2005 From: gis at SCHNEGG.NET (Frank Rittinger) Date: Wed, 30 Mar 2005 15:25:02 +0200 Subject: problems with mapserv in command line Message-ID: Hello list, I'm calling mapserver in the command line with the QUERY_STRING paramter. Doing an itemnquery with Umlaut in the qstring in a regular shell doesn't find anything, although the same command in Emacs finds results. System: SuSE 9.2, locale=de_DE at euro and encoding ISO-8859-15. QUERY_STRING="map=dev.map&mode=itemnquery&qlayer=Orte&qitem=ortsname&qstring='K?ckhoven'" I guess there is some configuration issue of my environment. Any hints? - Frank From james at GODDARD.BZ Wed Mar 30 05:19:24 2005 From: james at GODDARD.BZ (James Goddard) Date: Wed, 30 Mar 2005 07:19:24 -0600 Subject: Projection Help GPS vs National Atlas In-Reply-To: Message-ID: James Goddard wrote: >I'm a little confused by all of the projection stuff. Any help would be >appreciated. > > > Ok, I figured this one out. It wasn't a projection problem, it turns out that even though the projection is latlong the long needs to be stored first in the shapefile. Go figure. Thanks for the help. James From ed at TOPOZONE.COM Wed Mar 30 05:58:50 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 30 Mar 2005 08:58:50 -0500 Subject: Projection Help GPS vs National Atlas Message-ID: James - Could you explain what you mean by "stored first in the shapefile"? Shapefile coordinates are unitless X and Y numbers - longitude is an X coordinate, and latitude is a Y coordinate (at least if you pretend the Earth is flat). You're free to use "proj=longlat" if you find that easier. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of James Goddard Sent: Wednesday, March 30, 2005 8:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Projection Help GPS vs National Atlas James Goddard wrote: >I'm a little confused by all of the projection stuff. Any help would >be appreciated. > > > Ok, I figured this one out. It wasn't a projection problem, it turns out that even though the projection is latlong the long needs to be stored first in the shapefile. Go figure. Thanks for the help. James From Wolfgang.Qual at MUENCHEN.DE Wed Mar 30 06:32:24 2005 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Wed, 30 Mar 2005 16:32:24 +0200 Subject: Display GeoTIFF-data (>8bit) with the Mapserver In-Reply-To: <424A9FC3.1090103@terrestris.de> Message-ID: Dear Mr. Adams, I have two questions about the conversion of the GeoTIFF: - how big were your ikonos-pictures? Ours are about 500 MB! I tried to open the file with GIMP, but it did not work - what about the header-information in the GeoTIFF (projection, ...) ? Thanks, Wolfgang --- Till Adams schrieb: > Wolfgang Qual wrote: > >> We purchased IKONOS-Satellite images (data format GeoTIFF, 16bit) and >> would like to get it into a mapserver map. However, this data is not >> supported by the mapserver. We got the error message: >> "drawTIFF(): Image handling error. Only 1, 4, and 8-bit images are >> supported." >> Tried to make a 8bit GeoTIFF of it using the gdal-utility rgb2pct.py, >> but it just produced strange results (strange colors). >> >> Anybody there, who managed it to put such data into a mapserver map? How >> can I produce a nice 8-bit image of the data without losing the >> information of the satellite image? >> >> Thanks. >> >> >> Wolfgang Qual >> > Dear Mr. Qual, > > we put an ikonos image of southern cologne into umn (v4.0/4.25/4.4) and > had no problems - we > converted it with IrfanView (running per wine under my mandrake ;-)) and > still > can see the waterbubbles behind the ships on the Rhine. > > Greetings from Bonn, > > Till Adams > From trondmm-mapserver at CRUSADERS.NO Wed Mar 30 06:22:36 2005 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Wed, 30 Mar 2005 16:22:36 +0200 Subject: creating queryable shapefiles In-Reply-To: <16264e0705032910006c410659@mail.gmail.com> Message-ID: [resent to mailing list] On Tue, Mar 29, 2005 at 12:00:02PM -0600, Camden Daily wrote: > I don't really know anything about perl, and I don't know much about > using mapserver to make things clickable (I use php/mapscript for all > my pages), but here's a few ideas. > > Can you make other point layers clickable? Would be useful to know > whether the issue is with how you're creating the shapefile, or with > how you're defining the layer in the .map file. > > Have you tried playing with the 'tolerance' and 'toleranceunits' > settings for your layer? Hey. That did it. Thanks! I confused tolerance with minscale/maxscale. I thought it had something to do with when to display a layer. But I see now that the documentation is very clear on the subject. Must. Read. Documentation. Properly. Anyway - thanks a lot. -- Trond Michelsen From fwarmerdam at GMAIL.COM Wed Mar 30 06:33:12 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 30 Mar 2005 09:33:12 -0500 Subject: Display GeoTIFF-data (>8bit) with the Mapserver In-Reply-To: <424A98F9.6010709@muenchen.de> Message-ID: On Wed, 30 Mar 2005 14:18:01 +0200, Wolfgang Qual wrote: > We purchased IKONOS-Satellite images (data format GeoTIFF, 16bit) and > would like to get it into a mapserver map. However, this data is not > supported by the mapserver. We got the error message: > "drawTIFF(): Image handling error. Only 1, 4, and 8-bit images are > supported." > Tried to make a 8bit GeoTIFF of it using the gdal-utility rgb2pct.py, > but it just produced strange results (strange colors). Wolfgang, I would suggest you first use gdal_translate to convert the data to 8bit with scaling. Something like this should do the trick: gdal_translate -scale -ot Byte ikonos_in.tif ikonos_out.tif Depending on the form you got your dataset, you may also find you want to reorder the bands for more normal viewing. I believe some datasets are distributed in BGRN format (blue, green, red, near-ir). If you have that the colors will be pretty odd, but organizing it as RGB may help: eg. gdal_translate -scale -ot Byte -b 3 -b 2 -b 1 bgrn.tif rgb.tif You may need to review your metadata to see what bands you have. Once you have scaled to 3 8bit bands and are happy with the result you can convert to pseudocolored format with rgb2pct.py if you wish. > Anybody there, who managed it to put such data into a mapserver map? How > can I produce a nice 8-bit image of the data without losing the > information of the satellite image? I would add that it seems your MapServer was built without GDAL support. If you build in GDAL support, you can directly render from the IKONOS files. You will need to scale your data still but MapServer can do this for you. You can also reorder the data. Something like: LAYER NAME IKONOS DATA mydatafile.tif PROCESSING "SCALE=AUTO" PROCESSING "BANDS=3,2,1" END You may find you want an RGB output format like PNG24 or JPEG to get decent color results. 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 Richard_D_Levine at RAYTHEON.COM Wed Mar 30 07:21:53 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Wed, 30 Mar 2005 10:21:53 -0500 Subject: Projection Help GPS vs National Atlas In-Reply-To: <424AA75C.1000300@goddard.bz> Message-ID: I've been bitten by that so many times. Everyone says "lat/long", but OpenGIS defined all of the interfaces as long/lat. Go figure. Rick UMN MapServer Users List wrote on 03/30/2005 08:19:24 AM: > James Goddard wrote: > > >I'm a little confused by all of the projection stuff. Any help would be > >appreciated. > > > > > > > Ok, I figured this one out. It wasn't a projection problem, it turns > out that even though the projection is latlong the long needs to be > stored first in the shapefile. Go figure. > > Thanks for the help. > > James From Wolfgang.Qual at MUENCHEN.DE Wed Mar 30 07:40:34 2005 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Wed, 30 Mar 2005 17:40:34 +0200 Subject: Display GeoTIFF-data (>8bit) with the Mapserver In-Reply-To: <931f8ea905033006334f8fc487@mail.gmail.com> Message-ID: Hello Frank, thanks very much for your idea: works fine! I did not have to reorder the colors, just typed in gdal_translate -scale -ot Byte [input_file] [output_file] Before, I did the same, but just without the "-scale" option, and the result were these strange colors.. Wolfgang -- Frank Warmerdam schrieb: > On Wed, 30 Mar 2005 14:18:01 +0200, Wolfgang Qual > wrote: > >>We purchased IKONOS-Satellite images (data format GeoTIFF, 16bit) and >>would like to get it into a mapserver map. However, this data is not >>supported by the mapserver. We got the error message: >>"drawTIFF(): Image handling error. Only 1, 4, and 8-bit images are >>supported." >>Tried to make a 8bit GeoTIFF of it using the gdal-utility rgb2pct.py, >>but it just produced strange results (strange colors). > > > Wolfgang, > > I would suggest you first use gdal_translate to convert the data > to 8bit with scaling. Something like this should do the trick: > > gdal_translate -scale -ot Byte ikonos_in.tif ikonos_out.tif > > Depending on the form you got your dataset, you may also find > you want to reorder the bands for more normal viewing. I believe > some datasets are distributed in BGRN format (blue, green, red, near-ir). > If you have that the colors will be pretty odd, but organizing it as > RGB may help: > > eg. > > gdal_translate -scale -ot Byte -b 3 -b 2 -b 1 bgrn.tif rgb.tif > > You may need to review your metadata to see what bands you have. > > Once you have scaled to 3 8bit bands and are happy with the result you can > convert to pseudocolored format with rgb2pct.py if you wish. > > >>Anybody there, who managed it to put such data into a mapserver map? How >>can I produce a nice 8-bit image of the data without losing the >>information of the satellite image? > > > I would add that it seems your MapServer was built without GDAL support. > If you build in GDAL support, you can directly render from the IKONOS > files. You will need to scale your data still but MapServer can do this > for you. You can also reorder the data. Something like: > > LAYER > NAME IKONOS > DATA mydatafile.tif > PROCESSING "SCALE=AUTO" > PROCESSING "BANDS=3,2,1" > END > > You may find you want an RGB output format like PNG24 or JPEG > to get decent color results. > > 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 > -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From alex at ELW.RU Wed Mar 30 07:27:21 2005 From: alex at ELW.RU (Alexander Rodionov) Date: Wed, 30 Mar 2005 09:27:21 -0600 Subject: queryByAttribute search problem Message-ID: Hi All! I'am trying to make a search an object on polygon layer. The layer type is OGR, with mapinfo data format; The search returned "No matching record(s) found." The code: $queryExp="('[Iiii]'='26')"; $current_layer->queryByAttributes("Iiii",$queryExp,MS_MULTIPLE); I've tried different types of the Iiii column of MapInfo layer. But no success. The same search using ArcView layer got result, but not all records which were in the table have been found. From sgillies at FRII.COM Wed Mar 30 07:41:26 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 30 Mar 2005 08:41:26 -0700 Subject: PIL PNG IOError In-Reply-To: Message-ID: On Mar 29, 2005, at 3:58 PM, Adam Ryan wrote: > Hello to all, > > I'm using Python Mapscript, ReportLab and PIL to generate PDF files on > Windows XP. I generate an image using mapscript, save it, and then > insert > it into my pdf 'canvas': > > Canvas.drawInlineImage(myfile,x,y,w,h) > > If my mapfile outputformat is gif, no problem - I get a nice pdf file. > But > if my outputformat is png, I get an IOError: > > File "C:\python23\lib\site-packages\PIL\ImageFile.py", line 192, in > load > IOError: unknown error when reading image file > > Your thinking I'm posting to the wrong listserv right? Well, if I take > that png file and open it up in Micro$oft Paint and then save it, my > routine then works without a problem. So I compared the two png files > (before and after saving with Paint) with gdalinfo but got identical > results. I did notice that there was a file size decrease after > saving. > But I don't know what else could be different about the files. Any > ideas? > > Here are two examples of file size reduction with output format: > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > > Reduction: 146kb to 137kb > > outputformat > name "png" > driver "GD/PNG" > imagemode "RGB" > mimetype "image/png" > extension "png" > End > > Reduction: 272kb to 205kb > > Any sugestions would be grand. Cheers to all, > > Adam > > Adam, Sorry, but I cannot reproduce this problem on Linux or on windows (Python 2.3.3 and PIL 1.1.5). PIL opens my mapscript PNG output just fine. Can you remind me of the source of your MapServer/mapscript software? Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From hobu at IASTATE.EDU Wed Mar 30 07:43:10 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 30 Mar 2005 09:43:10 -0600 Subject: PIL PNG IOError In-Reply-To: Message-ID: Adam, Try turning off interlacing in your OUTPUTFORMAT. I've had PIL choke on interlaced PNGs before (depending on the PIL version). Howard At 09:41 AM 3/30/2005, Sean Gillies wrote: >On Mar 29, 2005, at 3:58 PM, Adam Ryan wrote: > > > Hello to all, > > > > I'm using Python Mapscript, ReportLab and PIL to generate PDF files on > > Windows XP. I generate an image using mapscript, save it, and then > > insert > > it into my pdf 'canvas': > > > > Canvas.drawInlineImage(myfile,x,y,w,h) > > > > If my mapfile outputformat is gif, no problem - I get a nice pdf file. > > But > > if my outputformat is png, I get an IOError: > > > > File "C:\python23\lib\site-packages\PIL\ImageFile.py", line 192, in > > load > > IOError: unknown error when reading image file > > > > Your thinking I'm posting to the wrong listserv right? Well, if I take > > that png file and open it up in Micro$oft Paint and then save it, my > > routine then works without a problem. So I compared the two png files > > (before and after saving with Paint) with gdalinfo but got identical > > results. I did notice that there was a file size decrease after > > saving. > > But I don't know what else could be different about the files. Any > > ideas? > > > > Here are two examples of file size reduction with output format: > > > > OUTPUTFORMAT > > NAME png > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > IMAGEMODE PC256 > > EXTENSION "png" > > END > > > > Reduction: 146kb to 137kb > > > > outputformat > > name "png" > > driver "GD/PNG" > > imagemode "RGB" > > mimetype "image/png" > > extension "png" > > End > > > > Reduction: 272kb to 205kb > > > > Any sugestions would be grand. Cheers to all, > > > > Adam > > > > > >Adam, > >Sorry, but I cannot reproduce this problem on Linux or on windows >(Python 2.3.3 and PIL 1.1.5). PIL opens my mapscript PNG output just >fine. > >Can you remind me of the source of your MapServer/mapscript software? > >Sean > > >-- >Sean Gillies >sgillies at frii dot com >http://users.frii.com/sgillies From ram at RAMPAGE.NET Wed Mar 30 07:46:38 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Wed, 30 Mar 2005 09:46:38 -0600 Subject: IR Satellite Pix Source? Message-ID: Schuyler, Thank you for the leads. I should have been more specific. I'm looking for current cloud cover information. I'm hoping to find the images used by NOAA to assemble the images at http://aviationweather.gov. It comes from the GOES and METEOSAT birds (and the European data seems to have more usage restrictions on it than the GOES images). Digging through the NOAA web sites hasn't turned-up anything yet, but I'll post a link to this list if I find anything. -- Richard From mdieterich at GMAIL.COM Wed Mar 30 08:18:36 2005 From: mdieterich at GMAIL.COM (Mark Dieterich) Date: Wed, 30 Mar 2005 11:18:36 -0500 Subject: variable layer... Message-ID: Hi all, I'm hoping that some of you more experienced mapserver users can point me in the right direction. I'm working on an app where the underlying map structure will be the same for all users, however, each user will end up with a different overlay(s), a shapefile(s) with individual information on it. I have no problem generating the mapfile for the underlying maps, but what do I do about the variable layer? At present, I've been just working with the mapserver cgi, but I forsee using php/mapscript before too long. Any pointers about how to deal with this variable layer would be appreciated. Thanks, Mark From jdport at VERITIME.COM Wed Mar 30 08:38:47 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 30 Mar 2005 11:38:47 -0500 Subject: variable layer... Message-ID: I can't actually claim to be one of those experienced users you talked about =) But if I were attempting to do what you described, I would probably use php/mapscript. First load in the base map file, and then use php/mapscript to create the user specific layer based on who is accessing the map... I assume you are using some kind of web login/authentication so that you will know who is accessing the page. PHP should be able to access that information to determine who they are drawing the "variable" layer for. -Jeff ----- Original Message ----- From: "Mark Dieterich" To: Sent: Wednesday, March 30, 2005 11:18 AM Subject: [UMN_MAPSERVER-USERS] variable layer... > Hi all, > > I'm hoping that some of you more experienced mapserver users can point > me in the right direction. I'm working on an app where the underlying > map structure will be the same for all users, however, each user will > end up with a different overlay(s), a shapefile(s) with individual > information > on it. I have no problem generating the mapfile for the underlying > maps, but what do I do about the variable layer? At present, I've been > just working with the mapserver cgi, but I forsee using php/mapscript > before too long. Any pointers about how to deal with this variable > layer would be appreciated. > > Thanks, > > Mark > From bpicinbono at WORLDONLINE.FR Wed Mar 30 08:41:16 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Wed, 30 Mar 2005 18:41:16 +0200 Subject: variable layer... In-Reply-To: <20050330161836.GA30138@cs.brown.edu> Message-ID: Le mercredi 30 Mars 2005 18:18, Mark Dieterich a ?crit?: > Hi all, > > I'm hoping that some of you more experienced mapserver users can point > me in the right direction. I'm working on an app where the underlying > map structure will be the same for all users, however, each user will > end up with a different overlay(s), a shapefile(s) with individual > information on it. I have no problem generating the mapfile for the > underlying maps, but what do I do about the variable layer? At present, > I've been just working with the mapserver cgi, but I forsee using > php/mapscript before too long. Any pointers about how to deal with this > variable layer would be appreciated. > > Thanks, > > Mark I did that once, a common app with a common raster and several user specific shape files. This way : - one directory per user, with mapfile and shape files. Depending of the user authentification, the application read the related mapfile, and shapes files. I don't remember exactly how I made the raster common to all users. I think used the "DATA ../to/common/raster.tif" statement in the raster layer section of the mapfile; or maybe a symlink from each user directory to a common file. Blaise From bartvde at XS4ALL.NL Wed Mar 30 08:53:34 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 30 Mar 2005 18:53:34 +0200 Subject: WMS and WFS connections In-Reply-To: Message-ID: Hi Stefanie, answers inline. Best regards, Bart On Tue, 29 Mar 2005 19:49:11 +0200, Stefanie Weykam wrote: > I am preparing my application for WMS (or WFS), but the more I read the > more > I get confused... > > I am actually trying things by using the same application from home (as > client) to office (the server), retrieving some layers from the remote > server. I thought I better start with something simple - the WMS > connection. > Results: > GetCapabilities - OK > DescribeLayer - OK (very little information though, just the layer name) > GetMap - OK > The WMS layer displays on my map.....but > ....how do I get the layer (class) name and symbol into my legend? > What's the syntax for the GetLegendGraphic request? So far I only get the > following Exception back: Mandatory LAYER parameter missing in > GetLegendGraphic request Example of GetLegendGraphic request: http://myserver/cgi-bin/mapserv.exe?map=/ms4w/OGC_UMN_services/gemeentes.map&request=GetLegendGraphic&layer=Gemeentes&version=1.1.1&format=image/png Note that it is LAYER and not LAYERS! It can only take 1 layer at a time. Make sure all your CLASS elements in the LAYER have a NAME though, otherwise they don't display in the legend. > > I would also like to be able to do very simple queries: at least to find > the > features (points) of my WMS layer by point queries on the map. The map > query > works fine with my local layers, but not with the WMS layer. I tried > sending > the request GetFeatureInfo and Query_layers This requires map > coordinates - > but how do I specify these parameters? ..by adding "&X=197&Y=144" for > example?? The ServiceException code says that the layer given in the > LAYERS > parameter is invalid... (yes, the layer IS queryable) > Shouldn't the click on the map just do the job anyway? Point queries on the map you could do with WMS GetFeatureInfo. x and y are in pixel coordinates starting at the upper-left corner of the image. Example is: http://myserver/cgi-bin/mapserv.exe?map=/ms4w/OGC_UMN_services/gemeentes.map&request=GetFeatureInfo&layers=Gemeentes&version=1.1.1&bbox=100000,400000,300000,600000&width=500&height=500&query_layers=Gemeentes&info_format=application/vnd.ogc.gml&srs=EPSG:28992&x=300&y=400 > > Well, since WFS seems to be more adequate I tried the WFS connection. > GetCapabilities - OK > DescribeFeature - OK > GetFeature - OK > And the WFS layer is displayed on my map, appears in the legend and is > queryable, BUT I have to specify the class expression and name and > colors... > How would a potential client application know? I guess, by studying the > XML > document on each feature? > Or do I have to make up a GML document? Where would I deposit such a > document? WFS clients usually style layers with a default style, eg the Cadcorp SIS Mapbrowser. They determine the type of layer (polygon, point, line etc) by studying the DescribeFeatureType response or the GML retrieved. If you use a WFS client layer in Mapserver you have to style it in the MAP file for it to show up. GML is just like a shapefile dataset once it gets downloaded. > > More questions: > Can I set up just one map file which suits both WMS and WFS connections? No problem. > I > am actually using two map files, one having "wms_ ... and the other one > "wfs_.... parameters. Well, actually three map files, the third is the > one > my application is based on but it contains additional data layers which > are > not (yet) mend to be shared. Its quite enoying to maintain three files. > > Thanks for your comments, > Stefanie > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From nunoragil at GMAIL.COM Wed Mar 30 09:07:09 2005 From: nunoragil at GMAIL.COM (Nuno Gil) Date: Wed, 30 Mar 2005 18:07:09 +0100 Subject: exception in WMS GetMap Message-ID: Hi listers, I am trying to cascade a layer through Mapserver. When sending a GetMap request: http://iceds.ge.ucl.ac.uk/cgi-bin/wms?map=wmsjisc.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:27700&BBOX=427445.7381027595,262172.15873517306,436304.2618972405,268077.84126482694&WIDTH=600&HEIGHT=400&LAYERS=Raster50K&STYLES=&FORMAT=image/gif&BGCOLOR=0xffffff&TRANSPARENT=FALSE&EXCEPTIONS=application/vnd.ogc.se_xml& I get this exception error: msDrawMap(): WMS connection error. Failed to draw WMS layer named 'Raster50K'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. 1112197850196690.img.tmp is not an EPPL file. Can somebody help me understanding it? Is there anyway of checking the request that Mapserver is sending to the cascaded server? Regards, Nuno From David.Fawcett at STATE.MN.US Wed Mar 30 09:22:07 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 30 Mar 2005 11:22:07 -0600 Subject: Vector Data Access Reference Message-ID: Wow, I just found the MapServer Vector Data Access Reference Guide put together by Jeff McKenna and Tyler Mitchell. http://dl.maptools.org/dl/docs/mapserv/MsVectorDataGuide.pdf Great work guys. Very concise, clear instructions and examples on how to use virtually any type of vector data source with MapServer (and OGR). David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.and.kerry at GMAIL.COM Wed Mar 30 09:25:07 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Wed, 30 Mar 2005 08:25:07 -0900 Subject: IR Satellite Pix Source? In-Reply-To: Message-ID: Check out this site: http://www.web-maps.com/weatherSat/ I'm not quite sure how they are getting the data but they have the platforms you are interested in. -Mike On Wed, 30 Mar 2005 09:46:38 -0600, Richard A. Milewski wrote: > Schuyler, > > Thank you for the leads. I should have been more specific. I'm looking > for current cloud cover information. I'm hoping to find the images used by > NOAA to assemble the images at http://aviationweather.gov. It comes from > the GOES and METEOSAT birds (and the European data seems to have more usage > restrictions on it than the GOES images). Digging through the NOAA web > sites hasn't turned-up anything yet, but I'll post a link to this list if I > find anything. > > -- Richard > From bartvde at XS4ALL.NL Wed Mar 30 09:20:26 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 30 Mar 2005 19:20:26 +0200 Subject: exception in WMS GetMap In-Reply-To: Message-ID: Hi Nuno, to get the request you need a Mapserver compiled with DEBUG info (MSDEBUG when you do mapserv -v), and DEBUG ON on your LAYER definition. You can also perform the following trick on Windows: put the remote server in your Windows hosts file: \WINNT\system32\drivers\etc\hosts with a reference to localhost, eg: localhost iceds.ge.ucl.ac.uk That way you can check the Apache access log on your server to see what the Mapserver WMS request looked like. Hope this helps. Best regards, Bart On Wed, 30 Mar 2005 18:07:09 +0100, Nuno Gil wrote: > Hi listers, > I am trying to cascade a layer through Mapserver. When sending a GetMap > request: > http://iceds.ge.ucl.ac.uk/cgi-bin/wms?map=wmsjisc.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:27700&BBOX=427445.7381027595,262172.15873517306,436304.2618972405,268077.84126482694&WIDTH=600&HEIGHT=400&LAYERS=Raster50K&STYLES=&FORMAT=image/gif&BGCOLOR=0xffffff&TRANSPARENT=FALSE&EXCEPTIONS=application/vnd.ogc.se_xml& > I get this exception error: > > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msDrawMap(): WMS connection error. Failed to draw WMS layer named > 'Raster50K'. This most likely happened because the remote > WMS server returned an invalid image, and XML exception or another > unexpected result in response to the GetMap request. Also check and > make sure that the layer's connection URL is valid. > msDrawRaster(): Image handling error. Unrecognized or unsupported image > format > drawEPP(): Image handling error. 1112197850196690.img.tmp is not an EPPL > file. > > > > Can somebody help me understanding it? Is there anyway of checking the > request that Mapserver is sending to the cascaded server? > > Regards, > Nuno > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From bartvde at XS4ALL.NL Wed Mar 30 09:30:01 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 30 Mar 2005 19:30:01 +0200 Subject: exception in WMS GetMap [2] In-Reply-To: Message-ID: Forget, the hosts file stuff Nuno. Just use localhost in your CONNECTION instead of the remote server, and then check the Apache access log for the WMS GetMap request created by Mapserver WMS client. Should be much easier :) Best regards, Bart On Wed, 30 Mar 2005 19:20:26 +0200, Bart van den Eijnden wrote: > Hi Nuno, > > to get the request you need a Mapserver compiled with DEBUG info > (MSDEBUG when you do mapserv -v), and DEBUG ON on your LAYER definition. > > You can also perform the following trick on Windows: put the remote > server in your Windows hosts file: > > \WINNT\system32\drivers\etc\hosts > > with a reference to localhost, eg: > > localhost iceds.ge.ucl.ac.uk > > That way you can check the Apache access log on your server to see what > the Mapserver WMS request looked like. > > Hope this helps. > > Best regards, > Bart > > On Wed, 30 Mar 2005 18:07:09 +0100, Nuno Gil wrote: > >> Hi listers, >> I am trying to cascade a layer through Mapserver. When sending a GetMap >> request: >> http://iceds.ge.ucl.ac.uk/cgi-bin/wms?map=wmsjisc.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:27700&BBOX=427445.7381027595,262172.15873517306,436304.2618972405,268077.84126482694&WIDTH=600&HEIGHT=400&LAYERS=Raster50K&STYLES=&FORMAT=image/gif&BGCOLOR=0xffffff&TRANSPARENT=FALSE&EXCEPTIONS=application/vnd.ogc.se_xml& >> I get this exception error: >> >> >> > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> >> >> >> msDrawMap(): WMS connection error. Failed to draw WMS layer named >> 'Raster50K'. This most likely happened because the remote >> WMS server returned an invalid image, and XML exception or another >> unexpected result in response to the GetMap request. Also check and >> make sure that the layer's connection URL is valid. >> msDrawRaster(): Image handling error. Unrecognized or unsupported image >> format >> drawEPP(): Image handling error. 1112197850196690.img.tmp is not an >> EPPL file. >> >> >> >> Can somebody help me understanding it? Is there anyway of checking the >> request that Mapserver is sending to the cascaded server? >> >> Regards, >> Nuno >> > > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From bartvde at XS4ALL.NL Wed Mar 30 09:44:44 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 30 Mar 2005 19:44:44 +0200 Subject: WFS bug? - multiple layers from same service In-Reply-To: <482A7044F4DB2740884BAF6AFD7416091E3B9E@onncrxms2.agr.gc.ca> Message-ID: Hi Liz, could this have something to do with the WFS client caching mechanism? But if I look at your MAP file you don't specify the wfs_request_method GET metadata so if your Mapserver is new enough it should default to POST, and POST uses no cache at the moment. How many GML files do you see coming into your IMAGEPATH directory in the first case you describe where all layers come from the same WFS service? Best regards, Bart On Tue, 29 Mar 2005 15:24:25 -0500, Godwin, Elizabeth wrote: > I'm experiencing a wierd phenomenon with a mapfile i am working with. > It's a bit of a unique case in that the map is composed of 3 layers, all > WFS layers coming from the same service. > The odd thing is...when I do this... only the FIRST layer in the map is > drawn, but using the class info from the LAST layer of this service. If > I draw the middle layer from a different service...the same is true, > except that middle layer draws normal. So FIRST is drawing with THIRD > styling, on top of SECOND that has it's own styling. > In this case, it's polygons, lines and points, so the polygons are > drawing with point symbology on top of lines. Or if all are coming from > the same service, all that is drawn is polygins with point symbology. > The last two layers are not drawn. > I'm working with a cvs version from a month ago or so, but I also tested > against 4.4.0 > Shall I post a bug? I'm asking first in case I've overlooked something > silly. > Liz Godwin > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From Godwinl at AGR.GC.CA Wed Mar 30 10:03:55 2005 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Wed, 30 Mar 2005 13:03:55 -0500 Subject: WFS bug? - multiple layers from same service Message-ID: Hi Bart, There was only 1 gml file when I call the map with all three layers coming from the same source. Inside the gml, there is only gml for the one layer. When I do it again with the middle layer coming from a different source, there are two gml. I didn't look, but I suspect one for the first layer, one for the second. Cheers, Liz > -----Original Message----- > From: Bart van den Eijnden [mailto:bartvde at xs4all.nl] > Sent: March 30, 2005 12:45 PM > To: Godwin, Elizabeth; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] WFS bug? - multiple layers > from same service > > > Hi Liz, > > could this have something to do with the WFS client caching > mechanism? But > if I look at your MAP file you don't specify the > wfs_request_method GET > metadata so if your Mapserver is new enough it should default > to POST, and > POST uses no cache at the moment. > > How many GML files do you see coming into your IMAGEPATH > directory in the > first case you describe where all layers come from the same > WFS service? > > Best regards, > Bart > > On Tue, 29 Mar 2005 15:24:25 -0500, Godwin, Elizabeth > > wrote: > > > I'm experiencing a wierd phenomenon with a mapfile i am > working with. > > It's a bit of a unique case in that the map is composed of > 3 layers, > > all WFS layers coming from the same service. The odd thing > is...when I > > do this... only the FIRST layer in the map is drawn, but using the > > class info from the LAST layer of this service. If I draw > the middle > > layer from a different service...the same is true, except > that middle > > layer draws normal. So FIRST is drawing with THIRD > styling, on top of > > SECOND that has it's own styling. In this case, it's > polygons, lines > > and points, so the polygons are drawing with point > symbology on top of > > lines. Or if all are coming from the same service, all > that is drawn > > is polygins with point symbology. The last two layers are not drawn. > > I'm working with a cvs version from a month ago or so, but > I also tested > > against 4.4.0 > > Shall I post a bug? I'm asking first in case I've > overlooked something > > silly. > > Liz Godwin > > > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > From aryan at CO.LINN.OR.US Wed Mar 30 10:05:10 2005 From: aryan at CO.LINN.OR.US (Adam Ryan) Date: Wed, 30 Mar 2005 12:05:10 -0600 Subject: scalebar snafu? Message-ID: Help me see the scale from the bars. The mapfile-reference documentation for the SIZE parameter of the SCALEBAR object reads: SIZE [x][y] Size in pixels of the scalebar. Labeling is not taken into account. The part about labeling does not seem to be consistent. If I make a map and measure the pixels of the scalebar I find that the [y] value represents the thickness (height) of the actual bar itself, while the [x] value represents the width of the entire scalebar graphic (the width of the bar plus 40 to 50 pixels of white padding on the edges). The later makes it difficult (if not impossible) to tweak the size in order to achieve a specific interval length (like 1 inch) for printed maps. Any ideas. Cheers to all, Adam From bartvde at XS4ALL.NL Wed Mar 30 10:05:05 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 30 Mar 2005 20:05:05 +0200 Subject: WFS bug? - multiple layers from same service In-Reply-To: <482A7044F4DB2740884BAF6AFD741609ADE543@onncrxms2.agr.gc.ca> Message-ID: Hi Liz, Just thinking out loud, that does sound like cache to me :) Do you have DEBUG ON on your layer and MS_ERRORFILE set? That could provide more info for this issue, there is a statement in there when something is read from cache if I remember correctly. Can you specify explicitly wfs_request_method "POST" on all the layers to test? Best regards, Bart On Wed, 30 Mar 2005 13:03:55 -0500, Godwin, Elizabeth wrote: > Hi Bart, > > There was only 1 gml file when I call the map with all three layers > coming from the same source. Inside the gml, there is only gml for the > one layer. > > When I do it again with the middle layer coming from a different source, > there are two gml. I didn't look, but I suspect one for the first > layer, one for the second. > > Cheers, > > Liz > > >> -----Original Message----- >> From: Bart van den Eijnden [mailto:bartvde at xs4all.nl] >> Sent: March 30, 2005 12:45 PM >> To: Godwin, Elizabeth; MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] WFS bug? - multiple layers >> from same service >> >> >> Hi Liz, >> >> could this have something to do with the WFS client caching >> mechanism? But >> if I look at your MAP file you don't specify the >> wfs_request_method GET >> metadata so if your Mapserver is new enough it should default >> to POST, and >> POST uses no cache at the moment. >> >> How many GML files do you see coming into your IMAGEPATH >> directory in the >> first case you describe where all layers come from the same >> WFS service? >> >> Best regards, >> Bart >> >> On Tue, 29 Mar 2005 15:24:25 -0500, Godwin, Elizabeth >> >> wrote: >> >> > I'm experiencing a wierd phenomenon with a mapfile i am >> working with. >> > It's a bit of a unique case in that the map is composed of >> 3 layers, >> > all WFS layers coming from the same service. The odd thing >> is...when I >> > do this... only the FIRST layer in the map is drawn, but using the >> > class info from the LAST layer of this service. If I draw >> the middle >> > layer from a different service...the same is true, except >> that middle >> > layer draws normal. So FIRST is drawing with THIRD >> styling, on top of >> > SECOND that has it's own styling. In this case, it's >> polygons, lines >> > and points, so the polygons are drawing with point >> symbology on top of >> > lines. Or if all are coming from the same service, all >> that is drawn >> > is polygins with point symbology. The last two layers are not drawn. >> > I'm working with a cvs version from a month ago or so, but >> I also tested >> > against 4.4.0 >> > Shall I post a bug? I'm asking first in case I've >> overlooked something >> > silly. >> > Liz Godwin >> > >> >> >> >> -- >> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ >> > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From ed at TOPOZONE.COM Wed Mar 30 10:39:36 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 30 Mar 2005 13:39:36 -0500 Subject: variable layer... Message-ID: Mark - Take a look at the MapServer CGI documentation on variable substitution. You can have a standard mapfile and easily override the file specified in the DATA statement for any layer by passing a querystring variable that's specific to the user. See http://mapserver.gis.umn.edu/doc44/cgi-reference.html#mapfileURL And the DATAPATTERN statement at http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#map - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mark Dieterich Sent: Wednesday, March 30, 2005 11:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] variable layer... Hi all, I'm hoping that some of you more experienced mapserver users can point me in the right direction. I'm working on an app where the underlying map structure will be the same for all users, however, each user will end up with a different overlay(s), a shapefile(s) with individual information on it. I have no problem generating the mapfile for the underlying maps, but what do I do about the variable layer? At present, I've been just working with the mapserver cgi, but I forsee using php/mapscript before too long. Any pointers about how to deal with this variable layer would be appreciated. Thanks, Mark From bill at BINKO.NET Wed Mar 30 12:49:16 2005 From: bill at BINKO.NET (Bill Binko) Date: Wed, 30 Mar 2005 15:49:16 -0500 Subject: Multiple bounding boxes in PostGIS data source Message-ID: Hello everyone, After my mortifying mistake(s) yesterday, I hope this is a less dumb question :) I am using PostGIS as a data source for some of my maps and I wanted to be able to use the current bounding box as a parameter within my queries. For example, I would like to be able to calculate an average over the visible area, and color items on the map based on their variation from that average. So, I went looking and found no way to get at that bounding box in the documentation (that I found). However, I went into the code, and found that, in fact, you can use the string "!BOX!" within your query to insert the bounding box! However, there was a limitation that you could only use the box once (as well a comment saying that was intentional). Does anyone know why this was? Here is an example of where I would like to use the !BOX! more than once in a query. Please keep in mind that it is a proof of concept and I'm sure there are far more efficient ways of doing the SQL, but it seems that given the availability of GIST indexes and the need to be explicit in using them, that this would be a fairly common need. DATA "parcel_shape from (select parcel_shape, parcels.oid, total_acreage/ave_acreage as pct, total_acreage, ave_acreage from parcels join parcel_info on sdf_id = feat_num, (select avg(total_acreage) as ave_acreage from parcels join parcel_info on sdf_id = feat_num where parcel_shape && setSRID(!BOX!, 26759) and Within(parcel_shape, setSRID(!BOX!, 26759))) as bar) as foo using unique oid using SRID=26759" That query finds the average acreage for the current view, and returns all visible parcels colored by the 'pct' field which is their deviation from that average. When I replaced the line if (strstr(geom_table,"!BOX!")) with while (strstr(geom_table,"!BOX!")) in mappostgis.c, it allowed me to run the above query, and it performed as expected: slowly, but accurately. :-) I realized later that I had introduced a small memory leak, so I have included a real solution below as a patch. My question is, was there any reason for the limitation? Or did it solve the problem it was meant to, and just not need more tinkering? Thanks, and feel free to redirect me if this isn't the right forum. Bill PATCH TO mappostgis.c FOLLOWS 460,462c460 < // substitute token '!BOX!' in geom_table with the box3d - do at most 1 substitution < < if (strstr(geom_table,"!BOX!")) --- > // substitute token '!BOX!' in geom_table with the box3d - do an unlimited # of subs 464,478c462,480 < // need to do a substition < char *start, *end; < char *result; < < result = malloc(7000); < < start = strstr(geom_table,"!BOX!"); < end = start+5; < < start[0] =0; < result[0]=0; < strcat(result,geom_table); < strcat(result,box3d); < strcat(result,end); < geom_table= result; --- > char* result = NULL; > while (strstr(geom_table,"!BOX!")) > { > // need to do a substition > char *start, *end; > char *oldresult = result; > result = malloc(7000); > start = strstr(geom_table,"!BOX!"); > end = start+5; > > start[0] =0; > result[0]=0; > strcat(result,geom_table); > strcat(result,box3d); > strcat(result,end); > geom_table= result; > if (oldresult != NULL) > free(oldresult); > } 481d482 < From ARyan at CO.LINN.OR.US Wed Mar 30 08:56:04 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 30 Mar 2005 08:56:04 -0800 Subject: PIL PNG IOError Message-ID: Howard & Sean, Thanks for the input. I'm using Howard's mapscript build and indeed turning interlace off did solve the problem. So, for PIL and PNG, I have added this to my pdf output script: ofO = mapO.outputformat ofO.setOption("INTERLACE","OFF") Thanks for your continued help with my python endeavors. Cheers, Adam > -----Original Message----- > From: Howard Butler [mailto:hobu at IASTATE.EDU] > Sent: Wednesday, March 30, 2005 7:43 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] PIL PNG IOError > > > Adam, > > Try turning off interlacing in your OUTPUTFORMAT. I've had > PIL choke on interlaced PNGs before (depending on the PIL version). > > Howard > > At 09:41 AM 3/30/2005, Sean Gillies wrote: > >On Mar 29, 2005, at 3:58 PM, Adam Ryan wrote: > > > > > Hello to all, > > > > > > I'm using Python Mapscript, ReportLab and PIL to generate > PDF files > > > on Windows XP. I generate an image using mapscript, save it, and > > > then insert it into my pdf 'canvas': > > > > > > Canvas.drawInlineImage(myfile,x,y,w,h) > > > > > > If my mapfile outputformat is gif, no problem - I get a nice pdf > > > file. But if my outputformat is png, I get an IOError: > > > > > > File "C:\python23\lib\site-packages\PIL\ImageFile.py", > line 192, in > > > load > > > IOError: unknown error when reading image file > > > > > > Your thinking I'm posting to the wrong listserv right? > Well, if I > > > take that png file and open it up in Micro$oft Paint and > then save > > > it, my routine then works without a problem. So I > compared the two > > > png files (before and after saving with Paint) with > gdalinfo but got > > > identical results. I did notice that there was a file > size decrease > > > after saving. But I don't know what else could be different about > > > the files. Any ideas? > > > > > > Here are two examples of file size reduction with output format: > > > > > > OUTPUTFORMAT > > > NAME png > > > DRIVER "GD/PNG" > > > MIMETYPE "image/png" > > > IMAGEMODE PC256 > > > EXTENSION "png" > > > END > > > > > > Reduction: 146kb to 137kb > > > > > > outputformat > > > name "png" > > > driver "GD/PNG" > > > imagemode "RGB" > > > mimetype "image/png" > > > extension "png" > > > End > > > > > > Reduction: 272kb to 205kb > > > > > > Any sugestions would be grand. Cheers to all, > > > > > > Adam > > > > > > > > > >Adam, > > > >Sorry, but I cannot reproduce this problem on Linux or on windows > >(Python 2.3.3 and PIL 1.1.5). PIL opens my mapscript PNG > output just > >fine. > > > >Can you remind me of the source of your MapServer/mapscript software? > > > >Sean > > > > > >-- > >Sean Gillies > >sgillies at frii dot com > >http://users.frii.com/sgillies > From ARyan at CO.LINN.OR.US Wed Mar 30 09:29:06 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 30 Mar 2005 09:29:06 -0800 Subject: PIL PNG IOError Message-ID: Howard & Sean, Thanks for the input. I'm using Howard's mapscript build and indeed turning interlace off did solve the problem. So, for PIL and PNG, I have added this to my pdf output script: ofO = mapO.outputformat ofO.setOption("INTERLACE","OFF") Thanks for your continued help with my python endeavors. Cheers, Adam > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Wednesday, March 30, 2005 7:41 AM > To: Adam Ryan > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: PIL PNG IOError > > > On Mar 29, 2005, at 3:58 PM, Adam Ryan wrote: > > > Hello to all, > > > > I'm using Python Mapscript, ReportLab and PIL to generate > PDF files on > > Windows XP. I generate an image using mapscript, save it, and then > > insert it into my pdf 'canvas': > > > > Canvas.drawInlineImage(myfile,x,y,w,h) > > > > If my mapfile outputformat is gif, no problem - I get a > nice pdf file. > > But > > if my outputformat is png, I get an IOError: > > > > File "C:\python23\lib\site-packages\PIL\ImageFile.py", line 192, in > > load > > IOError: unknown error when reading image file > > > > Your thinking I'm posting to the wrong listserv right? Well, if I > > take that png file and open it up in Micro$oft Paint and > then save it, > > my routine then works without a problem. So I compared the two png > > files (before and after saving with Paint) with gdalinfo but got > > identical results. I did notice that there was a file size > decrease > > after saving. But I don't know what else could be different > about the > > files. Any ideas? > > > > Here are two examples of file size reduction with output format: > > > > OUTPUTFORMAT > > NAME png > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > IMAGEMODE PC256 > > EXTENSION "png" > > END > > > > Reduction: 146kb to 137kb > > > > outputformat > > name "png" > > driver "GD/PNG" > > imagemode "RGB" > > mimetype "image/png" > > extension "png" > > End > > > > Reduction: 272kb to 205kb > > > > Any sugestions would be grand. Cheers to all, > > > > Adam > > > > > > Adam, > > Sorry, but I cannot reproduce this problem on Linux or on windows > (Python 2.3.3 and PIL 1.1.5). PIL opens my mapscript PNG output just > fine. > > Can you remind me of the source of your MapServer/mapscript software? > > Sean > > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From ram at RAMPAGE.NET Thu Mar 31 00:04:33 2005 From: ram at RAMPAGE.NET (Richard A. Milewski) Date: Thu, 31 Mar 2005 02:04:33 -0600 Subject: Georeferenced JPEG Message-ID: How do I tell MapServer to use the georeferencing information in a JPEG? I can see the data with gdalinfo, and if I copy the Origin and Pixel Size parameters into a .wld file everything works fine. mapserv -v says INPUT=GDAL I've found the OUTPUTFORMAT object, but there doesn't seem to be an INPUTFORMAT object. ...I get the feeling I'm missing something obvious. -- Richard From Dejan.Gambin at PULA.HR Thu Mar 31 02:58:59 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Thu, 31 Mar 2005 12:58:59 +0200 Subject: Drawing the point on the map and adding it to shapefile Message-ID: Hi, Can someone show me an example of how to draw the point on the map and add it to the point shapefile (.shp) including the attribute data in associated .dbf file? I am using PHP/Mapscript I am also interested in possibility of moving the point to other location on the map and saving the changes in shapefile. Thanks very much Dejan Gambin From mikesaunt at GMAIL.COM Thu Mar 31 04:34:55 2005 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Thu, 31 Mar 2005 13:34:55 +0100 Subject: MapScript binaries for c# / .NET Message-ID: Hi All This is my first message to the list - although I've been reading some of the questions of late! I'm in the process of building a set of c# .NET wrappers to talk to MapServer and MapScript. I've already built a small class that can talk to the CGI Exceutable which seenms to work quite nicely. Now the fun has begun - MapScript through .NET! (codenamed dotNetMapScript by Morten Neilsen) With the Help of Morten Nielsen (mn at iter.dk) I have now got the SWIG C# code interface for MapScript. I have one little problem - I don't seem to have the MapScript.dll that is required. I've downloaded a lot of different binaries (MS4W, PHP/MapScript, Python/MapScript Tcl/MapScript etc) and can't seem to find the elusive MapScript.dll So I guess in summary can anyone help with the configuration issues associated with building a SWIG interface to MapScript or simply be able to point me to some compiled MapScript binaries for the Windows platform?? Your help would be much appreciated. Also I am planning on releasing all c# code and some examples that I generate for the common good of all. Many thanks Mike From adams at TERRESTRIS.DE Thu Mar 31 04:56:21 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Thu, 31 Mar 2005 14:56:21 +0200 Subject: Drawing the point on the map and adding it to shapefile In-Reply-To: Message-ID: Gambin Dejan wrote: >Hi, > >Can someone show me an example of how to draw the point on the map and >add it to the point shapefile (.shp) including the attribute data in >associated .dbf file? I am using PHP/Mapscript > >I am also interested in possibility of moving the point to other >location on the map and saving the changes in shapefile. > >Thanks very much > >Dejan Gambin > > > Dear Gambin, we do this by using UMN as WMS and write the click-coordinate from a featureinfo request back to a PostGIS database. You are able to edit the attributes and upload images, etc. If this helps, I can send you the code and a link to an example, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * AmeiN! ArcGIS Map-Export-2-UMN * * AmeiN! Workshop 11. Mai 2005 * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * www.terrestris.de From lucamarle at GMAIL.COM Thu Mar 31 05:40:51 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Thu, 31 Mar 2005 15:40:51 +0200 Subject: Thickness of a line or polyline object Message-ID: Sorry for this newbie question but I need to have a line object more thick and visible. Which way I can obtain it? Thanks a lot for all your help here luca -- luca marletta icq: 70590647 From bartvde at XS4ALL.NL Thu Mar 31 05:48:41 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 31 Mar 2005 15:48:41 +0200 Subject: Thickness of a line or polyline object In-Reply-To: <8b5020105033105402de391cc@mail.gmail.com> Message-ID: Hi, use a circle symbol in your CLASS and then specify SIZE for the thickness. See: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SymbolExamples Best regards, Bart > Sorry for this newbie question but I need to have a line object more > thick and visible. Which way I can obtain it? > > Thanks a lot for all your help here > > luca > > -- > luca marletta icq: 70590647 > From woodbri at SWOODBRIDGE.COM Thu Mar 31 05:49:11 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 31 Mar 2005 08:49:11 -0500 Subject: Thickness of a line or polyline object In-Reply-To: <8b5020105033105402de391cc@mail.gmail.com> Message-ID: Add the following to your CLASS ... END block and it should draw a 3 pixel wide Red line. STYLE SYMBOL "circle" # you will need to add this to your symbols file COLOR 255 0 0 SIZE 3 END -Steve W. luca marletta wrote: > Sorry for this newbie question but I need to have a line object more > thick and visible. Which way I can obtain it? > > Thanks a lot for all your help here > > luca > > -- > luca marletta icq: 70590647 > From cdaily at GMAIL.COM Thu Mar 31 07:29:19 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 31 Mar 2005 09:29:19 -0600 Subject: Drawing the point on the map and adding it to shapefile In-Reply-To: <424BF375.1040605@terrestris.de> Message-ID: Here's some example code of how I create a shapefile from my database information. It's probably not exactly what you need, but it'll give you a good start. Note that if you want to interact with .dbf files in PHP, you'll need to compile PHP with the --enable-dbase option. In this snippet, I create a new shapefile and dbf file, but you could probably just as easily open existing ones. $shapefile = ms_newShapefileObj("fire_station", MS_SHP_POINT); $dbffile = dbase_create("fire_station.dbf", array(array("NAME", "C", 50), array("ADDRESS", "C", 50))); $sql = "SELECT DISTINCT fire_station.name, address.street_1, address.longitude, address.latitude FROM fire_station JOIN address ON address_id=address.id"; $rs = $db->execute($sql); foreach($rs as $result) { $point = ms_newPointObj(); $point->setXY($result[2], $result[3]); $shapefile->addPoint($point); dbase_add_record($dbffile, array($result[0], $result[1])); } $shapefile->free(); From margottid at COMUNE.LUGO.RA.IT Thu Mar 31 07:54:52 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 31 Mar 2005 17:54:52 +0200 Subject: Moving TILEINDEX in a subfolder Message-ID: Hi list, I have some Georeferenced TIFFs and I made a single shapefile with "gdaltindex" utility. My mapfile is: MAP SHAPEPATH "./data" ... LAYER NAME "my_rasterlayer" TYPE RASTER TILEINDEX "Raster_shapefile" TILEITEM "location" ... Raster_shapefile.dbf is: LOCATION Raster1.tif Raster2.tif ... All works. Now I want to move ONLY my raster files (and obviously the index shapefile!) in a subfolder (./data/subfolder), leaving other shapefiles in ./data . I modify my mapfile in this manner: MAP SHAPEPATH "./data" ... LAYER NAME "my_rasterlayer" TYPE RASTER TILEINDEX "./subfolder/Raster_shapefile" TILEITEM "location" ... Mapserver now DON'T SHOW the raster layer! I have to manually modify values in "Raster_shapefile.dbf": LOCATION subfolder/Raster1.tif subfolder/Raster2.tif ... Only with this change all works as before. Is it normal? Why raster are searched in the SHAPEPATH directory instead of the shapefile directory? Should I file a bug? I'm using: MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE on a Linux Red Hat 9.0. Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Thu Mar 31 08:01:30 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 31 Mar 2005 09:01:30 -0700 Subject: MapScript binaries for c# / .NET In-Reply-To: Message-ID: On Mar 31, 2005, at 5:34 AM, Mike Saunt wrote: > Hi All > > This is my first message to the list - although I've been reading some > of the questions of late! > > I'm in the process of building a set of c# .NET wrappers to talk to > MapServer and MapScript. I've already built a small class that can > talk to the CGI Exceutable which seenms to work quite nicely. > > Now the fun has begun - MapScript through .NET! (codenamed > dotNetMapScript by Morten Neilsen) > > With the Help of Morten Nielsen (mn at iter.dk) I have now got the SWIG > C# code interface for MapScript. I have one little problem - I don't > seem to have the MapScript.dll that is required. I've downloaded a > lot of different binaries (MS4W, PHP/MapScript, Python/MapScript > Tcl/MapScript etc) and can't seem to find the elusive MapScript.dll > > So I guess in summary can anyone help with the configuration issues > associated with building a SWIG interface to MapScript or simply be > able to point me to some compiled MapScript binaries for the Windows > platform?? > > Your help would be much appreciated. > > Also I am planning on releasing all c# code and some examples that I > generate for the common good of all. > > Many thanks > Mike Mike, There is a SWIG interface file for C# committed to the MapServer CVS under mapserver/mapscript/csharp. I've built the module using Mono on Linux and it seems to build just fine. Have not tried the windows Makefile.vc, but it is reported to work. In my experience, you will end up with a pile of .cs files and a mapscript_csharp.dll. There is no MapScript.dll anywhere in MapServer. I really don't know anything about Morten Neilsen's dotNetMapScript, or why this person would want to stay apart from the mainstream of the MapServer project and try to re-brand one part of the MapServer software. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From jdport at VERITIME.COM Thu Mar 31 11:04:04 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 31 Mar 2005 14:04:04 -0500 Subject: php/mapscript label question Message-ID: Is there any way to set the "labelitem" to look at a PHP variable rather than an actual attribute in the shapefile for the purpose of labeling? In my case, I want to overlay route numbers on "sign" symbols. The Tiger line data has street names shown like "State Highway 10" or whatever and I would like to read that in PHP and change it to just "10". I couldn't find any way to do what I want in the documentation so I may be stuck writing a script to go through every county's tiger data adding a column to the .dbf file... but I was hoping to avoid that extra scripting work if I could possibly do so. Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Thu Mar 31 13:17:41 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 31 Mar 2005 16:17:41 -0500 Subject: and one more labeling question... Message-ID: I have seen mapserver maps with street names angled to follow the streets... how do you set the angle of the text? I've tried adding "ANGLE AUTO" to the label section of my mapfile, but I don't know what to use for "ANGLELABELITEM"... i've never seen a shapefile of any kind that had an attribute showing its angle... is there some way to calculate this from the shapefile data? Thanks again, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From morten at DOTNETGIS.NET Thu Mar 31 11:23:11 2005 From: morten at DOTNETGIS.NET (Morten Nielsen) Date: Thu, 31 Mar 2005 21:23:11 +0200 Subject: MapScript binaries for c# / .NET In-Reply-To: A<7e310000e9ef899ae17f8c9e8cc0681f@frii.com> Message-ID: >I really don't know anything about Morten Neilsen's dotNetMapScript, or >why this person would want to stay apart from the mainstream of the >MapServer project and try to re-brand one part of the MapServer >software. There seems to be a misconception of what we are trying to do. All we want to do is work with the SWIG/C# dll that Sean has been working on, and create ASP.NET usercontrols that interface MapServer, and hopefully later increase the performance by using a .NET service approach. We are NOT working on any new mapscript DLL's (yet anyway :-). I am impressed with MapServer, but "unfortunately" I'm also a very happy ASP.NET developer. I think that MapServer lacks better documentation and support for us ASP.NET developers. Sean who made a great job on the C# module hasn't even tried it on a Windows platform, so I guess that proves my point :-) This is where we want to make all things better! ;-) We are still at an early stage. Right now we are only at a point where we play around with different compilation settings and trying to create a few apps that uses Mapserver to generate maps. We have an open forum on our website devoted to any OpenSource/.NET based GIS project. MapServer is our main focus at this point, but more will hopefully come. Regards Morten Nielsen www.dotnetgis.net From sgillies at FRII.COM Thu Mar 31 11:49:12 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 31 Mar 2005 12:49:12 -0700 Subject: MapScript binaries for c# / .NET In-Reply-To: Message-ID: On Mar 31, 2005, at 12:23 PM, Morten Nielsen wrote: >> I really don't know anything about Morten Neilsen's dotNetMapScript, >> or >> why this person would want to stay apart from the mainstream of the >> MapServer project and try to re-brand one part of the MapServer >> software. > > There seems to be a misconception of what we are trying to do. All we > want > to do is work with the SWIG/C# dll that Sean has been working on, and > create > ASP.NET usercontrols that interface MapServer, and hopefully later > increase > the performance by using a .NET service approach. > > We are NOT working on any new mapscript DLL's (yet anyway :-). > > I am impressed with MapServer, but "unfortunately" I'm also a very > happy > ASP.NET developer. I think that MapServer lacks better documentation > and > support for us ASP.NET developers. Sean who made a great job on the C# > module hasn't even tried it on a Windows platform, so I guess that > proves my > point :-) This is where we want to make all things better! ;-) > > We are still at an early stage. Right now we are only at a point where > we > play around with different compilation settings and trying to create a > few > apps that uses Mapserver to generate maps. We have an open forum on our > website devoted to any OpenSource/.NET based GIS project. MapServer is > our > main focus at this point, but more will hopefully come. > > Regards > Morten Nielsen > www.dotnetgis.net > Hi Morten, I can't take any credit for the C# mapscript module. It was contributed by Y.K. Choo and all I did was make a couple suggestions, review it, and commit it. I am glad for all that it is only my misconception, and apologize to you. I was concerned that there might be yet another mapscript out there that would further confuse an already confusing situation. But if that is not the case, I am relieved. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From ealpert at DIGITALGLOBE.COM Thu Mar 31 09:52:58 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 31 Mar 2005 10:52:58 -0700 Subject: Georeferenced JPEG Message-ID: If the file is a JPEG2000 you'll need to build GDAL with JPEG2000 support and things should work. If it's just a plane JPG with no georeferencing I'm not sure how to go about it. I'd probably convert to tif and use gdal_translate/gdal_warp to create a proper GeoTiff. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard A. Milewski Sent: Thursday, March 31, 2005 1:05 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Georeferenced JPEG How do I tell MapServer to use the georeferencing information in a JPEG? I can see the data with gdalinfo, and if I copy the Origin and Pixel Size parameters into a .wld file everything works fine. mapserv -v says INPUT=GDAL I've found the OUTPUTFORMAT object, but there doesn't seem to be an INPUTFORMAT object. ...I get the feeling I'm missing something obvious. -- Richard From jdport at VERITIME.COM Thu Mar 31 13:58:56 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 31 Mar 2005 16:58:56 -0500 Subject: and one more labeling question... Message-ID: Ignore this one, i figured it out... I just wasn't using truetype fonts. REalized it moments after asking the question... Sorry about that! -Jeff ----- Original Message ----- From: Jeff Portwine To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, March 31, 2005 4:17 PM Subject: [UMN_MAPSERVER-USERS] and one more labeling question... I have seen mapserver maps with street names angled to follow the streets... how do you set the angle of the text? I've tried adding "ANGLE AUTO" to the label section of my mapfile, but I don't know what to use for "ANGLELABELITEM"... i've never seen a shapefile of any kind that had an attribute showing its angle... is there some way to calculate this from the shapefile data? Thanks again, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Thu Mar 31 15:01:48 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 31 Mar 2005 18:01:48 -0500 Subject: php/mapscript label question In-Reply-To: <019c01c53624$683cba20$1bf2fbd0@solo> Message-ID: Yes, set the CLASS -> TEXT -> value to the string you want output. so something like: $oClass->set("text", $mytext); should do it. -Steve W. Jeff Portwine wrote: > Is there any way to set the "labelitem" to look at a PHP variable rather > than an actual attribute in the shapefile for the purpose of labeling? > In my case, I want to overlay route numbers on "sign" symbols. The > Tiger line data has street names shown like "State Highway 10" or > whatever and I would like to read that in PHP and change it to just > "10". > > I couldn't find any way to do what I want in the documentation so I may > be stuck writing a script to go through every county's tiger data adding > a column to the .dbf file... but I was hoping to avoid that extra > scripting work if I could possibly do so. > > Thanks, > Jeff > From woodbri at SWOODBRIDGE.COM Thu Mar 31 14:55:50 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 31 Mar 2005 17:55:50 -0500 Subject: and one more labeling question... In-Reply-To: <01af01c53637$1292f810$1bf2fbd0@solo> Message-ID: This only works with truetype fonts. You can use ANGLE AUTO of ANGLELABELITEM. -Steve W. Jeff Portwine wrote: > I have seen mapserver maps with street names angled to follow the > streets... how do you set the angle of the text? I've tried adding > "ANGLE AUTO" to the label section of my mapfile, but I don't know what > to use for "ANGLELABELITEM"... i've never seen a shapefile of any kind > that had an attribute showing its angle... is there some way to > calculate this from the shapefile data? > > Thanks again, > Jeff > From Godwinl at AGR.GC.CA Thu Mar 31 09:37:28 2005 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Thu, 31 Mar 2005 12:37:28 -0500 Subject: WFS bug? - multiple layers from same service Message-ID: POST is definitely working, as two separate requests on the server, one for each service (looked into access log for apache). Line from debug is: Thu Mar 31 11:32:12 2005,24623,10.117.202.73,ShapeIndexWFS,3,-142.621725 41.189137 -47.378275 88.810863,-95.000000 65.000000,one two three ,normal execution > -----Original Message----- > From: Bart van den Eijnden [mailto:bartvde at xs4all.nl] > Sent: March 30, 2005 1:05 PM > To: Godwin, Elizabeth; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] WFS bug? - multiple layers > from same service > > > Hi Liz, > > Just thinking out loud, that does sound like cache to me :) > > Do you have DEBUG ON on your layer and MS_ERRORFILE set? That could > provide more info for this issue, there is a statement in there when > something is read from cache if I remember correctly. > > Can you specify explicitly wfs_request_method "POST" on all > the layers to > test? > > Best regards, > Bart > > On Wed, 30 Mar 2005 13:03:55 -0500, Godwin, Elizabeth > > wrote: > > > Hi Bart, > > > > There was only 1 gml file when I call the map with all three layers > > coming from the same source. Inside the gml, there is only gml for > > the one layer. > > > > When I do it again with the middle layer coming from a different > > source, there are two gml. I didn't look, but I suspect > one for the > > first layer, one for the second. > > > > Cheers, > > > > Liz > > > > > >> -----Original Message----- > >> From: Bart van den Eijnden [mailto:bartvde at xs4all.nl] > >> Sent: March 30, 2005 12:45 PM > >> To: Godwin, Elizabeth; MAPSERVER-USERS at lists.umn.edu > >> Subject: Re: [UMN_MAPSERVER-USERS] WFS bug? - multiple layers from > >> same service > >> > >> > >> Hi Liz, > >> > >> could this have something to do with the WFS client caching > >> mechanism? But if I look at your MAP file you don't specify the > >> wfs_request_method GET > >> metadata so if your Mapserver is new enough it should default > >> to POST, and > >> POST uses no cache at the moment. > >> > >> How many GML files do you see coming into your IMAGEPATH > directory in > >> the first case you describe where all layers come from the same > >> WFS service? > >> > >> Best regards, > >> Bart > >> > >> On Tue, 29 Mar 2005 15:24:25 -0500, Godwin, Elizabeth > >> > >> wrote: > >> > >> > I'm experiencing a wierd phenomenon with a mapfile i am > >> working with. > >> > It's a bit of a unique case in that the map is composed of > >> 3 layers, > >> > all WFS layers coming from the same service. The odd thing > >> is...when I > >> > do this... only the FIRST layer in the map is drawn, > but using the > >> > class info from the LAST layer of this service. If I draw > >> the middle > >> > layer from a different service...the same is true, except > >> that middle > >> > layer draws normal. So FIRST is drawing with THIRD > >> styling, on top of > >> > SECOND that has it's own styling. In this case, it's > >> polygons, lines > >> > and points, so the polygons are drawing with point > >> symbology on top of > >> > lines. Or if all are coming from the same service, all > >> that is drawn > >> > is polygins with point symbology. The last two layers are not > >> > drawn. I'm working with a cvs version from a month ago or so, but > >> I also tested > >> > against 4.4.0 > >> > Shall I post a bug? I'm asking first in case I've > >> overlooked something > >> > silly. > >> > Liz Godwin > >> > > >> > >> > >> > >> -- > >> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > >> > > > > > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > From mbp at GEOMTECH.COM Thu Mar 31 20:17:45 2005 From: mbp at GEOMTECH.COM (Mark Phillips) Date: Thu, 31 Mar 2005 22:17:45 -0600 Subject: MapServer & friends on 64-bit system? Message-ID: Hi List, I'm about to develop a custom MapServer application for a client, and the client is considering buying a Dell system with an Intel EM64T-enabled P4 processor, running Red Hat Enterprise Linux WS for EM64T. The software that we will be using includes MapServer, mapscript (perl and/or python), GDAL, OGR, Postgres, and Postgis. Does anyone know if there might be any issues with running any of this software on such a system? In particular, is this a 64-bit system? If so, I'm wondering if there could be some issues with getting the software configured and compiled and working in a 64-bit environment. I don't think we care about actually running any of this software in 64-bit mode, although doing so would be fine if it's trivial. I'd just like to know whether we might run into any snags, or have to do anything out of the ordinary, because of the system itself being a 64-bit system, if that is the case. (Not being a hardware guy, I'm actually not completely sure what the "EM64T" business is about, and what its ramifications might be.) I have configured, compiled, and used all of this software on several systems in the past, but never a 64-bit one. Would it be safer to get a 32bit system, since we don't anticipate actually using 64-bit applications? Or does it really not matter one way or the other? The client is leaning towards the 64-bit system so as to have the capability of running 64-bit applications in the future, if and when the need arises. I'd appreciate hearing any insights or stories of peoples' experiences. Thanks in advance, --Mark Mark Phillips @ Geometry Technologies LLC 77 Owenby Cove Road Fairview, NC 28730 Phone: 828-628-0489 mbp at geomtech.com http://www.geomtech.com From pscott at UWC.AC.ZA Thu Mar 31 22:18:33 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Fri, 1 Apr 2005 07:18:33 +0100 Subject: MapServer & friends on 64-bit system? In-Reply-To: <1112329065.20988.TMDA@intuition.geomtech.com> Message-ID: > The software that we will be using includes MapServer, mapscript (perl > and/or python), GDAL, OGR, Postgres, and Postgis. > > Does anyone know if there might be any issues with running any of this > software on such a system? In particular, is this a 64-bit system? I do know that there have been some issues with postgis 1.0 RC4 and 5 on 64bit systems (AMD), but I think that they have been resolved in RC6. --Paul From fwarmerdam at GMAIL.COM Thu Mar 31 22:22:06 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 1 Apr 2005 01:22:06 -0500 Subject: MapServer & friends on 64-bit system? In-Reply-To: <1112329065.20988.TMDA@intuition.geomtech.com> Message-ID: On Mar 31, 2005 11:17 PM, Mark Phillips wrote: > Would it be safer to get a 32bit system, since we don't anticipate > actually using 64-bit applications? Or does it really not matter one > way or the other? The client is leaning towards the 64-bit system so > as to have the capability of running 64-bit applications in the > future, if and when the need arises. > > I'd appreciate hearing any insights or stories of peoples' > experiences. Mark, I have heard reports of folks running into a few quirks buildings GDAL and other libraries on AMD 64bit systems; however, as far as I know they were nothing insurmountable. However, I have no direct experience. If it were me, I would stick with a 32bit system to avoid any quirks, but that is just me. 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 fly2moon2 at GMAIL.COM Thu Mar 31 23:14:59 2005 From: fly2moon2 at GMAIL.COM (Jack Ling) Date: Fri, 1 Apr 2005 15:14:59 +0800 Subject: "msLoadMap(): Unable to access file. " Error Loading Map File Message-ID: Hi, I'm a newbie to MapServer, struggling to setup and try. I managed to setup the MapServer w/ the expected return from initial install: "No query information to decode. QUERY_STRING is set, but empty." I' ve downloaded the demos and put in under Apache's htdocs -> i.e. htdocs/mapserver_demos folder. When I run the demo i.e. the index page of /workshop folder, it has the following message: - msLoadMap(): Unable to access file. (http://localhost/mapserver_demos/workshop/itasca.map) All the files are there but I don't know why I can't access? OS: Windows XP Webserver: Apache2 From jacob.delfos at MAUNSELL.COM Thu Mar 31 23:23:16 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 1 Apr 2005 15:23:16 +0800 Subject: "msLoadMap(): Unable to access file. " Error Loading Map File Message-ID: Hi Jack, Did you set up your permissions for Apache correctly? What statements did you add to your httpd.conf file? You should check whether the file is accessable. Have you tried to load the url directly (http://localhost/mapserver_demos/workshop/itasca.map)? Alternatively, change the path of your mapfile to a filepath (e.g. c:\\web\\mapfile.map). Best to use double-backslash with windows. Regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, WA 6007 PO Box 81, WA 6902 Leederville Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jack Ling Sent: 1 April 2005 15:15 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] "msLoadMap(): Unable to access file. " Error Loading Map File Hi, I'm a newbie to MapServer, struggling to setup and try. I managed to setup the MapServer w/ the expected return from initial install: "No query information to decode. QUERY_STRING is set, but empty." I' ve downloaded the demos and put in under Apache's htdocs -> i.e. htdocs/mapserver_demos folder. When I run the demo i.e. the index page of /workshop folder, it has the following message: - msLoadMap(): Unable to access file. (http://localhost/mapserver_demos/workshop/itasca.map) All the files are there but I don't know why I can't access? OS: Windows XP Webserver: Apache2 -------------- next part -------------- An HTML attachment was scrubbed... URL: