From ravikapoor101 at GMAIL.COM Sun Oct 1 19:39:49 2006 From: ravikapoor101 at GMAIL.COM (Ravi) Date: Sun, 1 Oct 2006 19:39:49 -0700 Subject: newbie needs help in mapping counties in color Message-ID: Hi Guys, I am a newbie and need a very simple application. I am sure mapserver (and kamap) support it out of the box. I just need to be pointed in right direction. I have been working on this for 10 days, so I have some idea of mapserver now. I need to show a map of US streets with each county colored differently based on the cars/household density. If you zoom in to a state level, then map should color each "block group" rather than each county. That is all I need. Here are my problems with this: 1. How can I convert TIGER street maps to shape files? I was able to find commercial version of these files but without geocoding data. Since I need geocoding data (to provide ability to zoom to an address), should I encode the data myself to shape files? If so, how can I do it, just some pointers would be very helpful. 2. Also, I put each county file on a separate layer and that works fine but I do not think that is the right way to do it. Can I put all counties in one layer? If so, how do I do it given that there is a separate shape file for each county? If I join the shape files, how can I color them differently? This is all I need. Any pointers, help, prebuilt "map files" etc. would be very helpful. Thanks a lot for your help Ravi From percyd at PDX.EDU Sun Oct 1 22:31:07 2006 From: percyd at PDX.EDU (percy) Date: Sun, 1 Oct 2006 22:31:07 -0700 Subject: MAPSERVER-USERS Digest - 30 Sep 2006 to 1 Oct 2006 (#2006-273) In-Reply-To: Message-ID: Yahoo has a geocoder that is very nice and allows up to 5000 hits per day: http://developer.yahoo.com/maps/rest/V1/geocode.html this will return a lat/long point for any address in the US that you can use to zoom to in your map. you might want to look at openlayers.org, as well... percy psu geology MAPSERVER-USERS automatic digest system wrote: > There is 1 message totalling 39 lines in this issue. > > Topics of the day: > > 1. newbie needs help in mapping counties in color > > ---------------------------------------------------------------------- > > Date: Sun, 1 Oct 2006 19:39:49 -0700 > From: Ravi > Subject: newbie needs help in mapping counties in color > > Hi Guys, > > I am a newbie and need a very simple application. I am sure mapserver > (and kamap) support it out of the box. I just need to be pointed in > right direction. I have been working on this for 10 days, so I have some > idea of mapserver now. > > I need to show a map of US streets with each county colored differently > based on the cars/household density. If you zoom in to a state level, > then map should color each "block group" rather than each county. That > is all I need. Here are my problems with this: > > 1. How can I convert TIGER street maps to shape files? I was able to > find commercial version of these files but without geocoding data. Since > I need geocoding data (to provide ability to zoom to an address), should > I encode the data myself to shape files? If so, how can I do it, just > some pointers would be very helpful. > > 2. Also, I put each county file on a separate layer and that works fine > but I do not think that is the right way to do it. Can I put all > counties in one layer? If so, how do I do it given that there is a > separate shape file for each county? If I join the shape files, how can > I color them differently? > > This is all I need. Any pointers, help, prebuilt "map files" etc. would > be very helpful. > > Thanks a lot for your help > Ravi > > ------------------------------ > > End of MAPSERVER-USERS Digest - 30 Sep 2006 to 1 Oct 2006 (#2006-273) > ********************************************************************* > > From szajbel at WIDEMANN.DE Mon Oct 2 03:11:49 2006 From: szajbel at WIDEMANN.DE (Rafael Szajbel) Date: Mon, 2 Oct 2006 12:11:49 +0200 Subject: wrong coords attribute using processquerytemplate Message-ID: Hi all, the php mapscript(4.8.1) function processquerytemplate generates double coordinates. The type of shapefile is multipoint. Warning from Firefox JavaScript Console says: The "coords" attribute of the tag is not in the "center-x,center-y,radius" format. Example: 2 Eichen (ND Nr. 6/92) I think there should be two area definitions with the same title but with different coordinates like: 2 Eichen (ND Nr. 6/92) 2 Eichen (ND Nr. 6/92) Here is my Template Defintion: [ND_TEXT_2] ([ND_TEXT_1]) Layer Defintion: LAYER NAME "Naturdenkmaeler" TYPE POINT STATUS OFF DATA "../shapes/Naturdenkmaeler" TEMPLATE "ndenkm_template.html" CLASS SYMBOL "denkmal" COLOR 255 123 72 OUTLINECOLOR 0 0 0 NAME "Naturdenkmaeler" END END Any suggestions? Greetings Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From szajbel at WIDEMANN.DE Mon Oct 2 03:52:07 2006 From: szajbel at WIDEMANN.DE (Rafael Szajbel) Date: Mon, 2 Oct 2006 12:52:07 +0200 Subject: wrong coords attribute using processquerytemplate Message-ID: Hi all, the php mapscript(4.8.4) function processquerytemplate generates double coordinates. The type of shapefile is multipoint. Warning from Firefox JavaScript Console says: The "coords" attribute of the tag is not in the "center-x,center-y,radius" format. Example: 2 Eichen (ND Nr. 6/92) I think there should be two area definitions with the same title but with different coordinates like: 2 Eichen (ND Nr. 6/92) 2 Eichen (ND Nr. 6/92) Here is my Template Defintion: [ND_TEXT_2] ([ND_TEXT_1]) Layer Defintion: LAYER NAME "Naturdenkmaeler" TYPE POINT STATUS OFF DATA "../shapes/Naturdenkmaeler" TEMPLATE "ndenkm_template.html" CLASS SYMBOL "denkmal" COLOR 255 123 72 OUTLINECOLOR 0 0 0 NAME "Naturdenkmaeler" END END Any suggestions? Greetings Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From giuseppe.derossi at EMAIL.IT Mon Oct 2 04:54:18 2006 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Mon, 2 Oct 2006 13:54:18 +0200 Subject: Zpolygon trouble Message-ID: Hi All, I've imported in my project some shp files which contain Zpolygon primitive. The server has returned an error, is there a way in order to translate/manage this kind of primitive ? thanks in advance Giuseppe -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Refill srl il paradiso della tua stampante - cartucce e toner compatibili, inchiostri e accessori per la ricarica, carta speciale. Tutto a prezzi scontatissimi! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5187&d=20061002 From Karin_Kampitsch at GMX.AT Mon Oct 2 06:02:18 2006 From: Karin_Kampitsch at GMX.AT (Karin Kampitsch) Date: Mon, 2 Oct 2006 15:02:18 +0200 Subject: GetFeatureInfo-Request Message-ID: Dear List, I have problems with implementing the GetFeatureInfo Request. I would like to have information of a castle (=Schloss) The Request is: http://localhost/cgi-bin/mapserv.exe?map=maps/wk_wms.map&&VERSION=1.3.0&REQUEST=GetFeatureInfo&SERVICE=WMS&QUERY_LAYERS=Schloss&LAYERS=Schloss&x=485756.84&y=330575.04 In the Mapfile the layer "schloss" looks like this: LAYER NAME "Schloss" GROUP "Sehenswuerdigkeiten" STATUS ON DATA "schlk" TYPE POINT TEMPLATE "template_schloss.html" FOOTER "footer_schloss.html" HEADER "header_schloss.html" PROJECTION "init=epsg:23033" END CLASS SYMBOL "bild_schloss" END END The content of the template TEMPLATE is: [namedb] [namegraphik] [beschreibung] [adresse] [telefon] [url] The content of the template HEADER is:

The content of the template FOOTER is:
Name in der Datenbank Name in der Graphikk Beschreibung Adresse Telefon Url

So I do not know, if the contents of the templates are correct, or maybe there is something wrong in the request. So,please could you help me? Yours, karin -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From adams at TERRESTRIS.DE Mon Oct 2 06:03:50 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Mon, 2 Oct 2006 15:03:50 +0200 Subject: GetFeatureInfo-Request In-Reply-To: <20061002130218.15210@gmx.net> Message-ID: Dear Karin, so what is the error ? Till ;-) Karin Kampitsch schrieb: >Dear List, > >I have problems with implementing the GetFeatureInfo Request. >I would like to have information of a castle (=Schloss) > >The Request is: > >http://localhost/cgi-bin/mapserv.exe?map=maps/wk_wms.map&&VERSION=1.3.0&REQUEST=GetFeatureInfo&SERVICE=WMS&QUERY_LAYERS=Schloss&LAYERS=Schloss&x=485756.84&y=330575.04 > > >In the Mapfile the layer "schloss" looks like this: > >LAYER > NAME "Schloss" > GROUP "Sehenswuerdigkeiten" > STATUS ON > DATA "schlk" > TYPE POINT > TEMPLATE "template_schloss.html" > FOOTER "footer_schloss.html" > HEADER "header_schloss.html" > > > PROJECTION > "init=epsg:23033" > END > > CLASS > SYMBOL "bild_schloss" > END > >END > >The content of the template TEMPLATE is: > > >[namedb] >[namegraphik] >[beschreibung] >[adresse] >[telefon] >[url] > > > >The content of the template HEADER is: > > > > >

> > > > > > > > > > >The content of the template FOOTER is: > >
Name in der DatenbankName in der GraphikkBeschreibungAdresseTelefonUrl

> > >So I do not know, if the contents of the templates are correct, or maybe there is something wrong in the request. > >So,please could you help me? > >Yours, > >karin > > > > > -- ***************************************** * www.webmapcenter.de - Hosting * * GDIdevL 'Start GDI from CD' * * http://www.terrestris.de * ***************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Oct 2 06:04:33 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Mon, 2 Oct 2006 15:04:33 +0200 Subject: GetFeatureInfo-Request Message-ID: Karin, your request is wrong. X and Y are in pixels, and you need to specify WIDTH, HEIGHT and BBOX. Basically a good practice is to copy your GetMap URL, change GetMap into GetFeatureInfo, add QUERY_LAYERS, add INFO_FORMAT and add X and Y. Also, version should be 1.1.1 since Mapserver does not support WMS 1.3.0. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Karin Kampitsch Verzonden: maandag 2 oktober 2006 15:02 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] GetFeatureInfo-Request Dear List, I have problems with implementing the GetFeatureInfo Request. I would like to have information of a castle (=Schloss) The Request is: http://localhost/cgi-bin/mapserv.exe?map=maps/wk_wms.map&&VERSION=1.3.0&REQUEST=GetFeatureInfo&SERVICE=WMS&QUERY_LAYERS=Schloss&LAYERS=Schloss&x=485756.84&y=330575.04 In the Mapfile the layer "schloss" looks like this: LAYER NAME "Schloss" GROUP "Sehenswuerdigkeiten" STATUS ON DATA "schlk" TYPE POINT TEMPLATE "template_schloss.html" FOOTER "footer_schloss.html" HEADER "header_schloss.html" PROJECTION "init=epsg:23033" END CLASS SYMBOL "bild_schloss" END END The content of the template TEMPLATE is: [namedb] [namegraphik] [beschreibung] [adresse] [telefon] [url] The content of the template HEADER is:

The content of the template FOOTER is:
Name in der Datenbank Name in der Graphikk Beschreibung Adresse Telefon Url

So I do not know, if the contents of the templates are correct, or maybe there is something wrong in the request. So,please could you help me? Yours, karin -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From stuarteve at LPARCHAEOLOGY.COM Mon Oct 2 07:42:33 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Mon, 2 Oct 2006 15:42:33 +0100 Subject: WMS loadparams() Message-ID: I posted this a couple of weeks ago but no replies so thought I would try again. I am still having this problem - and am now using 4.10.0-rc1 Any thoughts anyone? Dear all I am having a bit of trouble using the WxS phpMapscript wrapper. I am trying this code as from the example page: dl('php_mapscript.so'); $request = ms_newOwsRequestObj(); $request->loadparams(); ms_ioinstallstdouttobuffer(); $oMap = ms_newMapobj("mapserver/military.map"); $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); $buffer = ms_iogetstdoutbufferstring(); header('Content-type: application/xml'); echo $buffer; ms_ioresethandlers(); However, all I get is the message (in Firefox) that the connection has been reset to the server. After a bit of debug I found it was to do with the $request->loadparams() call - by commenting that out and manually setting the variables... $request->setParameter("VeRsIoN","1.1.0"); $request->setParameter("SERVICE","WMS"); $request->setParameter("REQUEST","getcapabilities"); ...I get a perfect getcapabilities response. I could I guess manually request the variables from the querystring using php and set them, but that seems a lot of work! My URL looks like this http://blah.blah.com/wms.php?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities I am using MapServer version 4.10.0-beta3 Anyone got any ideas or have experienced this? Thanks Stuart Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From tim.bowden at WESTNET.COM.AU Mon Oct 2 08:54:12 2006 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Mon, 2 Oct 2006 23:54:12 +0800 Subject: Web site- Documentation Message-ID: Hi all, The documentation on the web site seems to be faulty- The content is there if you access it directly by its url, but no content shows up at http://mapserver.gis.umn.edu/docs Probably worth fixing by whoever has the keys to the site in case some think there is no documentation... Regards, Tim Bowden From hobu at IASTATE.EDU Mon Oct 2 09:23:14 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Mon, 2 Oct 2006 11:23:14 -0500 Subject: Web site- Documentation In-Reply-To: Message-ID: On it. Howard At 10:54 AM 10/2/2006, Tim Bowden wrote: >Hi all, > >The documentation on the web site seems to be faulty- The content is >there if you access it directly by its url, but no content shows up at >http://mapserver.gis.umn.edu/docs > >Probably worth fixing by whoever has the keys to the site in case some >think there is no documentation... > >Regards, >Tim Bowden From assefa at DMSOLUTIONS.CA Mon Oct 2 11:14:35 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 2 Oct 2006 14:14:35 -0400 Subject: WMS loadparams() In-Reply-To: <45212559.6070305@lparchaeology.com> Message-ID: Stuart, I have run this example on windows without a problem. Is there anything set in the request object after the loadparams call (is $request->numparams == 0 ?) Normally the underlying code should get use the REQUEST_METHOD and the QUERY_STRING variables to parse the query string. I think phpinfo() should tell you the values of these parameters. Later, Stuart Eve wrote: > I posted this a couple of weeks ago but no replies so thought I would > try again. I am still having this problem - and am now using 4.10.0-rc1 > > Any thoughts anyone? > > > Dear all > > I am having a bit of trouble using the WxS phpMapscript wrapper. I am > trying this code as from the example page: > > dl('php_mapscript.so'); > $request = ms_newOwsRequestObj(); > $request->loadparams(); > ms_ioinstallstdouttobuffer(); > $oMap = ms_newMapobj("mapserver/military.map"); > $oMap->owsdispatch($request); > $contenttype = ms_iostripstdoutbuffercontenttype(); > $buffer = ms_iogetstdoutbufferstring(); > header('Content-type: application/xml'); > echo $buffer; > ms_ioresethandlers(); > > However, all I get is the message (in Firefox) that the connection has > been reset to the server. After a bit of debug I found it was to do with > the $request->loadparams() call - by commenting that out and manually > setting the variables... > > $request->setParameter("VeRsIoN","1.1.0"); > $request->setParameter("SERVICE","WMS"); > $request->setParameter("REQUEST","getcapabilities"); > > ...I get a perfect getcapabilities response. I could I guess manually > request the variables from the querystring using php and set them, but > that seems a lot of work! > > My URL looks like this > http://blah.blah.com/wms.php?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities > > > > I am using MapServer version 4.10.0-beta3 > > Anyone got any ideas or have experienced this? > > Thanks > > Stuart > > Stuart Eve > L - P : Archaeology > stuarteve at lparchaeology.com > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From vilson.farias at DIGITRO.COM.BR Mon Oct 2 13:20:25 2006 From: vilson.farias at DIGITRO.COM.BR (=?ISO-8859-1?Q?Jos=E9_Vilson_de_Mello_de_Farias?=) Date: Mon, 2 Oct 2006 17:20:25 -0300 Subject: Minimal Swig version Message-ID: Greetings, on last Friday I got the new Mapserver code from CVS, which required a new Swig version (1.3.28 or later) in order to execute a java mapscript "make test". Therefore, I removed my original Swig 1.3.21 RPM and installed a new 1.3.29 from source. The make test was sucessfull, but it seemed the whole java mapscript was messed. Per example, if I tried to execute a mapObj.setMappath, Java would tell me there was a "java.lang.UnsatisfiedLinkError: set_mapObj_mappath". I thought the problem could be related to newest Mapserver code from CVS, so I made the same test against a previous Mapserver version I had in a backup. Despite the version, the same java.lang.UnsatisfiedLinkError error ocurred again. At this time I figured out the problem couldn't be related to Mapserver code since I was sure this version had worked perfectly and had been used a lot here. The next suspect was Swig. I installed 1.3.28 from source (problems ocurred on 1.3.29) but I had no luck again. The same situation happened with both backup and CVS Mapserver code. Nevertheless I still had a last try. I downloaded a Swig 1.3.24 RPM, wich was a little newer than my original 1.3.21 adn at this time both Mapserver from CVS and my old backup were working again. Now my questions : What is the minimal Swig version to be used with Mapserver? Could my Java Mapscript have some unexpected behavior if I keep using a Swig older than 1.3.28? Does anyone else had problems with Swig 1.3.28/29 compiled from source and Java Mapscript? Do you have any suggestion to help me to solve this problem with Swig? Best regards, *Jos? Vilson de Mello de Farias* /Analista de Sistemas //SSE - Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* vilson.farias at digitro.com.br *Messenger: *vilsonfarias at hotmail.com *Fone:* (0xx48) 3281-7314 *Fax:* (0xx48) 3281-7000 *Site:* www.digitro.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Tue Oct 3 00:01:05 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 3 Oct 2006 09:01:05 +0200 Subject: Java Mapscript vs. Swig In-Reply-To: <451D8D42.30407@digitro.com.br> Message-ID: Jose', I have compiled latest mapserver from CVS and built java mapscript with swig 1.3.29. I changed one of the examples as follows: Index: examples/DrawMap.java =================================================================== RCS file: /data2/cvsroot/mapserver/mapscript/java/examples/DrawMap.java,v retrieving revision 1.5 diff -U3 -r1.5 DrawMap.java --- examples/DrawMap.java 24 May 2006 08:26:49 -0000 1.5 +++ examples/DrawMap.java 3 Oct 2006 06:45:40 -0000 @@ -27,6 +27,9 @@ } mapObj map = new mapObj(args[0]); + String path=map.getMappath(); + map.setMappath(path); + System.out.println("MAPPATH IS="+path); //map.getImagecolor().setRGB(153, 153, 204); //styleObj st = map.getLayer(1).getClass(0).getStyle(0); //st.getColor().setHex("#000000"); and then ran 'make test', which gave no problems. I suspect you might have an older version of mapscript (either the .so or the .jar) file lying around. In particular check common/lib of your tomcat install. Best regards, Umberto On 9/29/06, Jos? Vilson de Mello de Farias wrote: > > Greetings, > > I've compiled a Mapserver from the latest CVS code (Sept 29) and I'm > having some problems with Java Mapscript. > > My system had been running fine until this afternoon, when I compiled a > new Mapserver from CVS code. I had to compile a new Swig version before I > could start. > > The Mapserver compilation was fine, and I didn't get any erros. My goal > was the Java Mapscript, wich was sucessfully compiled and tested with "make > test". After I had deployed and restarted the Tomcat it figured out that one > of my example codes wasn't working anymore. The code is very simple, please > take a look : > > > protected void doPost(HttpServletRequest req, HttpServletResponse resp) > throws ServletException, IOException { > log.trace("doGet - request:" + req); > try { > PrintWriter p = resp.getWriter(); > > mapObj mapa = new > mapObj("/home2/java/tomcat/webapps/mapserver_wms/mapas/rio_grande_do_sul.map"); > > mapa.setMappath("/home2/java/tomcat/webapps/mapserver_wms/mapas/shapes_rio_grande_do_sul"); > > imageObj image = mapa.draw(); > > File arqMapa = File.createTempFile("mapa", ".png", new > File("/home2/java/tomcat/webapps/mapserver_wms/image")); > log.debug("createTempFile " + arqMapa.getAbsolutePath()); > > arqMapa.deleteOnExit(); > image.save(arqMapa.getAbsolutePath(), mapa); > > resp.setContentType("text/html"); > resp.getWriter().println(" ">"); > } > catch (Exception e) { > log.error(e.getLocalizedMessage(), e); > } > } > > After I executed the code above on Firefox, the following error was showed > : > > javax.servlet.ServletException: set_mapObj_mappath > > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293) > > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) > > root cause > > java.lang.UnsatisfiedLinkError: set_mapObj_mappath > > edu.umn.gis.mapscript.mapscriptJNI.set_mapObj_mappath(Native > Method) > > edu.umn.gis.mapscript.mapObj.setMappath(mapObj.java:195) > After some tests I found that the problem had been caused by > mapa.setMappath code. It seems Swig wasn't able to create a proper > mapscript.jar/libmapscript.so. I checked the mapscript_wrap.c and the > corresponding method to mapa.setMappath was called > Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1mappath_1set. > Although I have definitely no experience with Swig, those numbers "1" in > method name doesn't look ok. Is it ok? Could be the Swig the responsible for > this error? > > If I remove the mapa.setMappath, everything works fine and my map is shown > in the browser. > > I included some info about my Mapserver and system. By the way, I've > compiled every component of Mapserver instead of using Linux defaults. > > > compiled packages (we haven't used any RPMs, all packages were manually > compiled/installed) > libpng-1.2.12 > freetype-2.2.1 > zlib-1.2.3 > gd-2.0.33 > jpegsrc.v6b > tiff-3.8.2 > libgeotiff-1.2.1 > PDFlib-Lite-6.0.3 > proj-4.4.9 > curl-7.15.4 > geos-2.2.3 > gdal-1.3.2 > swig-1.3.29 > > Mapserver's configure > ./configure --prefix=/home2/mapserver --without-pdf --with-threads > --with-zlib=/home2/mapserver/zlib > --with-png=/home2/mapserver/libpng > --with-tiff=/home2/mapserver/libtiff > --with-jpeg=/home2/mapserver/libjpeg > --with-freetype=/home2/mapserver/freetype > --with-proj=/home2/mapserver/proj4 > --with-geos=/home2/mapserver/geos/bin/geos-config > --with-gd=/home2/mapserver/gd > --with-ogr=/home2/mapserver/gdal/bin/gdal-config > --with-gdal=/home2/mapserver/gdal/bin/gdal-config > --with-curl-config=/home2/mapserver/libcurl/bin/curl-config > --with-wfs --with-wcs --with-wmsclient --with-wfsclient > --with-php=/usr/include/php > > Linux > Linux dgtad 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686 athlon i386 > GNU/Linux > > MAPSERVER_HOME=/home2/mapserver > PROJ_LIB=$MAPSERVER_HOME/proj4/share/proj > LD_LIBRARY_PATH=$LD_LIBRARY_PATH::/home2/mapserver/proj4/lib:/home2/mapserver/gdal/lib:/home2/mapserver/geos/lib:/home2/mapserver/libcurl/lib:/home2/mapserver/libpng/lib:/home2/mapserver/libjpeg/lib:/home2/mapserver/libtiff/lib:/home2/mapserver/libgeotiff/lib:/home2/mapserver/ogdi/lib:/home2/mapserver/freetype/lib:/home2/mapserver/gd/lib:/home2/mapserver/zlib/lib:/home2/mapserver/proj4/share/proj:$MAPSCRIPT_HOME > MAPSCRIPT_HOME=$MAPSERVER_HOME/mapscript > PATH=/usr/java/jre/bin:/usr/java/jdk/bin:$MAPSCRIPT_HOME > > Java > JRE_HOME=/usr/java/jre > JAVA_HOME=/usr/java/jdk > JDBC_HOME=/usr/java/jdbc > CATALINA_HOME=/usr/java/tomcat > > java version "1.5.0_07" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) > Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing) > > Tomcat > Using CATALINA_BASE: /usr/java/tomcat > Using CATALINA_HOME: /usr/java/tomcat > Using CATALINA_TMPDIR: /usr/java/tomcat/temp > Using JRE_HOME: /usr/java/jre > Server version: Apache Tomcat/5.5.17 > Server built: Apr 14 2006 02:08:29 > Server number: 5.5.17.0 > OS Name: Linux > OS Version: 2.6.9-22.EL > Architecture: i386 > JVM Version: 1.5.0_07-b03 > JVM Vendor: Sun Microsystems Inc. > > gcc > gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2) > Copyright (C) 2004 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > Swig > SWIG Version 1.3.29 > Compiled with g++ [i686-pc-linux-gnu] > Please see http://www.swig.org for reporting bugs and further information > > > I'd appreciate any help and thanks in advance. > > Best regards, > > > -- > Jos? Vilson de Mello de Farias > Analista de Sistemas > SSE - Seguran?a P?blica > > D?GITRO TECNOLOGIA > E-mail: vilson.farias at digitro.com.br > Messenger: vilsonfarias at hotmail.com > Fone: (0xx48) 3281-7314 > Fax: (0xx48) 3281-7000 > Site: www.digitro.com.br From karpi.lists at EMAIL.CZ Tue Oct 3 02:12:51 2006 From: karpi.lists at EMAIL.CZ (karpi) Date: Tue, 3 Oct 2006 11:12:51 +0200 Subject: html legend classes; data encoding; (noted python mapsript + Message-ID: django templating) Reply-To: hello, Im spent some time with my first mapserver cgi web application. here is its early version: http://gismaster.liberix.cz/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Flocalhost%2Fhtdocs%2Fnewmap%2Fczrep.map&imgext=330491.333543+5529453.205715+456794.204419+5632791.918249&zoomsize=2&layer=vodn%C3%AD_plochy&layer=vodn%C3%AD_toky&layer=m%C4%9Bsta_plochy&layer=obce_class&cellsize=229.641583&vyhledat=&mode=browse&mapsize=550+450&img.x=80&img.y=362 My biggist question at this point are: 1) can i hide legend items, of that classes, which are not rendered (maxscale of class) as is done in common bitmap legend ?? my legend template is short: [leg_layer_html order_metadata=legend_order opt_flag=15] [leg_layer_name]
[/leg_layer_html] [leg_class_html opt_flag=0]       [leg_class_name]
[/leg_class_html] 2) my data are saved in different encoding (iso-8859-2) then mapfile, templates and all web is (utf8) This discrepancy caues errors as this: http://localhost/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Flocalhost%2Fhtdocs%2Fnewmap%2Fczrep.map&imgext=441771.353638+5581229.641642+457559.212498+5594146.980709&zoomsize=2&layer=vodn%C3%AD_plochy&layer=vodn%C3%AD_toky&layer=m%C4%9Bsta_plochy&layer=obce_class&cellsize=28.705198&vyhledat=&mode=query&mapsize=550+450&img.x=282&img.y=231 (Jm?no obce: Dob???) Can i force mapserver to respect different encoding in the data files? Thanks for any kind of your replys ( Ive also try python mapscript + django templating solution, but when i approached creating legends through layer.getClass(j).drawLegendIcon rendering and serving of maps begun extremly cpu consuming and slow :( -- karpi from http://gismaster.liberix.cz From stuarteve at LPARCHAEOLOGY.COM Tue Oct 3 05:57:06 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Tue, 3 Oct 2006 13:57:06 +0100 Subject: WMS loadparams() In-Reply-To: <4521570B.9090403@dmsolutions.ca> Message-ID: Hi, I can't see if the request object has numparams > 0 as it seems to crash the page as soon as I run the $request->loadparams(); I have checked out my apache logs and can;t see anything wrong in there - so I'm not sure whats causing this. When I insert a phpinfo(), I can definitely see the right parameters in the QUERY_STRING, I can therefore just request the parameters manually from the querystring and then build the request object using: $request->setParameter($grabbed_param,$grabbed_value); But this seems like it defeats the purpose a bit and it would be much more efficient if we cna figure out how to get loadparams() working. What else do you need to know about my setup? Thanks in advance Stuart Yewondwossen Assefa wrote: > Stuart, > > I have run this example on windows without a problem. Is there > anything set in the request object after the loadparams call (is > $request->numparams == 0 ?) Normally the underlying code should get > use the REQUEST_METHOD and the QUERY_STRING variables to parse the > query string. I think phpinfo() should tell you the values of these > parameters. > > Later, > > > Stuart Eve wrote: >> I posted this a couple of weeks ago but no replies so thought I would >> try again. I am still having this problem - and am now using 4.10.0-rc1 >> >> Any thoughts anyone? >> >> >> Dear all >> >> I am having a bit of trouble using the WxS phpMapscript wrapper. I am >> trying this code as from the example page: >> >> dl('php_mapscript.so'); >> $request = ms_newOwsRequestObj(); >> $request->loadparams(); >> ms_ioinstallstdouttobuffer(); >> $oMap = ms_newMapobj("mapserver/military.map"); >> $oMap->owsdispatch($request); >> $contenttype = ms_iostripstdoutbuffercontenttype(); >> $buffer = ms_iogetstdoutbufferstring(); >> header('Content-type: application/xml'); >> echo $buffer; >> ms_ioresethandlers(); >> >> However, all I get is the message (in Firefox) that the connection has >> been reset to the server. After a bit of debug I found it was to do with >> the $request->loadparams() call - by commenting that out and manually >> setting the variables... >> >> $request->setParameter("VeRsIoN","1.1.0"); >> $request->setParameter("SERVICE","WMS"); >> $request->setParameter("REQUEST","getcapabilities"); >> >> ...I get a perfect getcapabilities response. I could I guess manually >> request the variables from the querystring using php and set them, but >> that seems a lot of work! >> >> My URL looks like this >> http://blah.blah.com/wms.php?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities >> >> >> >> I am using MapServer version 4.10.0-beta3 >> >> Anyone got any ideas or have experienced this? >> >> Thanks >> >> Stuart >> >> Stuart Eve >> L - P : Archaeology >> stuarteve at lparchaeology.com >> > > From vilson.farias at DIGITRO.COM.BR Tue Oct 3 06:31:10 2006 From: vilson.farias at DIGITRO.COM.BR (=?ISO-8859-1?Q?Jos=E9_Vilson_de_Mello_de_Farias?=) Date: Tue, 3 Oct 2006 10:31:10 -0300 Subject: Java Mapscript vs. Swig In-Reply-To: <75b4b93e0610030001s6b37fab4ja74e2b4020f32f0e@mail.gmail.com> Message-ID: Umberto, Indeed, there was an extra mapscript.jar in the Tomcat share/lib directory. I've changed it's content and now everything is working perfectly. I really appreciated your help, thanks a lot. You should keep the mapObj.setMappath test for the next source release. It may help people who have the same problem. Best regards, Vilson Umberto Nicoletti wrote: > Jose', > I have compiled latest mapserver from CVS and built java mapscript > with swig 1.3.29. > I changed one of the examples as follows: > > Index: examples/DrawMap.java > =================================================================== > RCS file: /data2/cvsroot/mapserver/mapscript/java/examples/DrawMap.java,v > retrieving revision 1.5 > diff -U3 -r1.5 DrawMap.java > --- examples/DrawMap.java 24 May 2006 08:26:49 -0000 1.5 > +++ examples/DrawMap.java 3 Oct 2006 06:45:40 -0000 > @@ -27,6 +27,9 @@ > } > > mapObj map = new mapObj(args[0]); > + String path=map.getMappath(); > + map.setMappath(path); > + System.out.println("MAPPATH IS="+path); > //map.getImagecolor().setRGB(153, 153, 204); > //styleObj st = map.getLayer(1).getClass(0).getStyle(0); > //st.getColor().setHex("#000000"); > > and then ran 'make test', which gave no problems. > I suspect you might have an older version of mapscript (either the .so > or the .jar) file lying around. In particular check common/lib of your > tomcat install. > > Best regards, > Umberto > > On 9/29/06, Jos? Vilson de Mello de Farias > wrote: >> >> Greetings, >> >> I've compiled a Mapserver from the latest CVS code (Sept 29) and I'm >> having some problems with Java Mapscript. >> >> My system had been running fine until this afternoon, when I >> compiled a >> new Mapserver from CVS code. I had to compile a new Swig version >> before I >> could start. >> >> The Mapserver compilation was fine, and I didn't get any erros. My >> goal >> was the Java Mapscript, wich was sucessfully compiled and tested with >> "make >> test". After I had deployed and restarted the Tomcat it figured out >> that one >> of my example codes wasn't working anymore. The code is very simple, >> please >> take a look : >> >> >> protected void doPost(HttpServletRequest req, HttpServletResponse >> resp) >> throws ServletException, IOException { >> log.trace("doGet - request:" + req); >> try { >> PrintWriter p = resp.getWriter(); >> >> mapObj mapa = new >> mapObj("/home2/java/tomcat/webapps/mapserver_wms/mapas/rio_grande_do_sul.map"); >> >> >> mapa.setMappath("/home2/java/tomcat/webapps/mapserver_wms/mapas/shapes_rio_grande_do_sul"); >> >> >> imageObj image = mapa.draw(); >> >> File arqMapa = File.createTempFile("mapa", ".png", new >> File("/home2/java/tomcat/webapps/mapserver_wms/image")); >> log.debug("createTempFile " + arqMapa.getAbsolutePath()); >> >> arqMapa.deleteOnExit(); >> image.save(arqMapa.getAbsolutePath(), mapa); >> >> resp.setContentType("text/html"); >> resp.getWriter().println("> ">"); >> } >> catch (Exception e) { >> log.error(e.getLocalizedMessage(), e); >> } >> } >> >> After I executed the code above on Firefox, the following error was >> showed >> : >> >> javax.servlet.ServletException: set_mapObj_mappath >> >> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293) >> >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) >> >> >> root cause >> >> java.lang.UnsatisfiedLinkError: set_mapObj_mappath >> >> edu.umn.gis.mapscript.mapscriptJNI.set_mapObj_mappath(Native >> Method) >> >> edu.umn.gis.mapscript.mapObj.setMappath(mapObj.java:195) >> After some tests I found that the problem had been caused by >> mapa.setMappath code. It seems Swig wasn't able to create a proper >> mapscript.jar/libmapscript.so. I checked the mapscript_wrap.c and the >> corresponding method to mapa.setMappath was called >> Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1mappath_1set. >> Although I have definitely no experience with Swig, those numbers "1" in >> method name doesn't look ok. Is it ok? Could be the Swig the >> responsible for >> this error? >> >> If I remove the mapa.setMappath, everything works fine and my map is >> shown >> in the browser. >> >> I included some info about my Mapserver and system. By the way, I've >> compiled every component of Mapserver instead of using Linux defaults. >> >> >> compiled packages (we haven't used any RPMs, all packages were manually >> compiled/installed) >> libpng-1.2.12 >> freetype-2.2.1 >> zlib-1.2.3 >> gd-2.0.33 >> jpegsrc.v6b >> tiff-3.8.2 >> libgeotiff-1.2.1 >> PDFlib-Lite-6.0.3 >> proj-4.4.9 >> curl-7.15.4 >> geos-2.2.3 >> gdal-1.3.2 >> swig-1.3.29 >> >> Mapserver's configure >> ./configure --prefix=/home2/mapserver --without-pdf --with-threads >> --with-zlib=/home2/mapserver/zlib >> --with-png=/home2/mapserver/libpng >> --with-tiff=/home2/mapserver/libtiff >> --with-jpeg=/home2/mapserver/libjpeg >> --with-freetype=/home2/mapserver/freetype >> --with-proj=/home2/mapserver/proj4 >> --with-geos=/home2/mapserver/geos/bin/geos-config >> --with-gd=/home2/mapserver/gd >> --with-ogr=/home2/mapserver/gdal/bin/gdal-config >> --with-gdal=/home2/mapserver/gdal/bin/gdal-config >> --with-curl-config=/home2/mapserver/libcurl/bin/curl-config >> --with-wfs --with-wcs --with-wmsclient --with-wfsclient >> --with-php=/usr/include/php >> >> Linux >> Linux dgtad 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686 athlon >> i386 >> GNU/Linux >> >> MAPSERVER_HOME=/home2/mapserver >> PROJ_LIB=$MAPSERVER_HOME/proj4/share/proj >> LD_LIBRARY_PATH=$LD_LIBRARY_PATH::/home2/mapserver/proj4/lib:/home2/mapserver/gdal/lib:/home2/mapserver/geos/lib:/home2/mapserver/libcurl/lib:/home2/mapserver/libpng/lib:/home2/mapserver/libjpeg/lib:/home2/mapserver/libtiff/lib:/home2/mapserver/libgeotiff/lib:/home2/mapserver/ogdi/lib:/home2/mapserver/freetype/lib:/home2/mapserver/gd/lib:/home2/mapserver/zlib/lib:/home2/mapserver/proj4/share/proj:$MAPSCRIPT_HOME >> >> MAPSCRIPT_HOME=$MAPSERVER_HOME/mapscript >> PATH=/usr/java/jre/bin:/usr/java/jdk/bin:$MAPSCRIPT_HOME >> >> Java >> JRE_HOME=/usr/java/jre >> JAVA_HOME=/usr/java/jdk >> JDBC_HOME=/usr/java/jdbc >> CATALINA_HOME=/usr/java/tomcat >> >> java version "1.5.0_07" >> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) >> Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing) >> >> Tomcat >> Using CATALINA_BASE: /usr/java/tomcat >> Using CATALINA_HOME: /usr/java/tomcat >> Using CATALINA_TMPDIR: /usr/java/tomcat/temp >> Using JRE_HOME: /usr/java/jre >> Server version: Apache Tomcat/5.5.17 >> Server built: Apr 14 2006 02:08:29 >> Server number: 5.5.17.0 >> OS Name: Linux >> OS Version: 2.6.9-22.EL >> Architecture: i386 >> JVM Version: 1.5.0_07-b03 >> JVM Vendor: Sun Microsystems Inc. >> >> gcc >> gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2) >> Copyright (C) 2004 Free Software Foundation, Inc. >> This is free software; see the source for copying conditions. There >> is NO >> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR >> PURPOSE. >> >> Swig >> SWIG Version 1.3.29 >> Compiled with g++ [i686-pc-linux-gnu] >> Please see http://www.swig.org for reporting bugs and further >> information >> >> >> I'd appreciate any help and thanks in advance. >> >> Best regards, >> >> >> -- >> Jos? Vilson de Mello de Farias >> Analista de Sistemas >> SSE - Seguran?a P?blica >> >> D?GITRO TECNOLOGIA >> E-mail: vilson.farias at digitro.com.br >> Messenger: vilsonfarias at hotmail.com >> Fone: (0xx48) 3281-7314 >> Fax: (0xx48) 3281-7000 >> Site: www.digitro.com.br > > -- *Jos? Vilson de Mello de Farias* /Analista de Sistemas //SSE - Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* vilson.farias at digitro.com.br *Messenger: *vilsonfarias at hotmail.com *Fone:* (0xx48) 3281-7314 *Fax:* (0xx48) 3281-7000 *Site:* www.digitro.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From gur.hanan at PGL.CO.IL Tue Oct 3 07:59:19 2006 From: gur.hanan at PGL.CO.IL (Gur Hanan) Date: Tue, 3 Oct 2006 16:59:19 +0200 Subject: size limitation Message-ID: Hi all, Is there any limitation for the layers (raster or vector) size? Could I add a layer of any size to a map? Gur -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.cole at UAI.COM Tue Oct 3 08:05:35 2006 From: john.cole at UAI.COM (John Cole) Date: Tue, 3 Oct 2006 10:05:35 -0500 Subject: Variable substitution and WMS Message-ID: Is it possible to use variable substitution with a WMS request to mapserver? It would be nice to be able to set username/passwords or other information for layer queries to the mapfile. Thanks, John This email 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 email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From Tom.Kralidis at EC.GC.CA Tue Oct 3 08:09:44 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 3 Oct 2006 11:09:44 -0400 Subject: Variable substitution and WMS Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Cole > Sent: 03 October, 2006 11:06 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Variable substitution and WMS > > Is it possible to use variable substitution with a WMS > request to mapserver? > It would be nice to be able to set username/passwords or > other information for layer queries to the mapfile. > > Thanks, > > John You should be able to use it with OGC:WMS, however a client would require more intelligence to pass along those variables. i.e. a vanille OGC:WMS client would need to be enhanced for this. Additionally, you can take a look at the Mapscript WxS services capability through you favourite scripting language, which can now expose as OGC Web Services (see the MapServer OGC Web Services Workshop [http://ms-ogc-workshop.maptools.org/] for more info and examples). ..Tom From john.cole at UAI.COM Tue Oct 3 08:17:05 2006 From: john.cole at UAI.COM (John Cole) Date: Tue, 3 Oct 2006 10:17:05 -0500 Subject: Variable substitution and WMS Message-ID: Tom, We have an asp.net/atlas wrapper that calls out to mapserver via CGI. I would like to change that to use WMS. If I understand correctly, I should be able to simply add a few more parameters to the WMS request string and mapserver will use those the same way as a mode=map request and substitute them into %var% tags? Thanks, John -----Original Message----- From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Tuesday, October 03, 2006 10:10 AM To: John Cole; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Variable substitution and WMS > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Cole > Sent: 03 October, 2006 11:06 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Variable substitution and WMS > > Is it possible to use variable substitution with a WMS > request to mapserver? > It would be nice to be able to set username/passwords or > other information for layer queries to the mapfile. > > Thanks, > > John You should be able to use it with OGC:WMS, however a client would require more intelligence to pass along those variables. i.e. a vanille OGC:WMS client would need to be enhanced for this. Additionally, you can take a look at the Mapscript WxS services capability through you favourite scripting language, which can now expose as OGC Web Services (see the MapServer OGC Web Services Workshop [http://ms-ogc-workshop.maptools.org/] for more info and examples). ..Tom This email 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 email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From Tom.Kralidis at EC.GC.CA Tue Oct 3 08:19:48 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 3 Oct 2006 11:19:48 -0400 Subject: Variable substitution and WMS Message-ID: You should be able to do so, yes. The only point to be aware is if a generic client (say I have an application, for example), who wishes to connect to your OGC:WMS, but is unaware of the username/password mechanism, will run into problems. If your OGC:WMS is serving a controlled set of applications exclusively, then this may not be that big of an issue. ..Tom > -----Original Message----- > From: John Cole [mailto:john.cole at uai.com] > Sent: 03 October, 2006 11:17 AM > To: Kralidis,Tom [Burlington]; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Variable substitution and WMS > > Tom, > We have an asp.net/atlas wrapper that calls out to > mapserver via CGI. I would like to change that to use WMS. > If I understand correctly, I should be able to simply add a > few more parameters to the WMS request string and mapserver > will use those the same way as a mode=map request and > substitute them into %var% tags? > > Thanks, > > John > > -----Original Message----- > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > Sent: Tuesday, October 03, 2006 10:10 AM > To: John Cole; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Variable substitution and WMS > > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Cole > > Sent: 03 October, 2006 11:06 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Variable substitution and WMS > > > > Is it possible to use variable substitution with a WMS request to > > mapserver? > > It would be nice to be able to set username/passwords or other > > information for layer queries to the mapfile. > > > > Thanks, > > > > John > > You should be able to use it with OGC:WMS, however a client > would require more intelligence to pass along those > variables. i.e. a vanille OGC:WMS client would need to be > enhanced for this. > > Additionally, you can take a look at the Mapscript WxS > services capability through you favourite scripting language, > which can now expose as OGC Web Services (see the MapServer > OGC Web Services Workshop > [http://ms-ogc-workshop.maptools.org/] for more info and examples). > > ..Tom > This email 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 email > in error please notify the sender. This message contains > confidential information and is intended only for the > individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. > From john.cole at UAI.COM Tue Oct 3 08:49:23 2006 From: john.cole at UAI.COM (John Cole) Date: Tue, 3 Oct 2006 10:49:23 -0500 Subject: wms groups... Message-ID: Reading the WMS howto, I saw groups mentioned in the reference section, but I'm a little confused. How can I get WMS layers to act like the mapserver layers GROUP tag? Thanks, John This email 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 email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From bartvde at OSGIS.NL Tue Oct 3 10:36:49 2006 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 3 Oct 2006 19:36:49 +0200 Subject: wms groups... In-Reply-To: <76758090F8686C47A44B6FF52514A1D307909907@hermes.uai.int> Message-ID: You can just use GROUP, and then use wms_group_title IIRC. There is also a tag called wms_layer_group (METADATA), which can create a more than 1 level deep structure. Best regards, Bart John Cole schreef: > Reading the WMS howto, I saw groups mentioned in the reference section, but > I'm a little confused. How can I get WMS layers to act like the mapserver > layers GROUP tag? > > Thanks, > > John > This email 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 email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From peteris.bruns at GMAIL.COM Tue Oct 3 12:06:07 2006 From: peteris.bruns at GMAIL.COM (=?UTF-8?B?UMSTdGVyaXMgQnLFq25z?=) Date: Tue, 3 Oct 2006 22:06:07 +0300 Subject: ShapefileObject, ShapObject and atributes Message-ID: Hi! I try to create new shapefile with ms_newShapefileObj() and adding shapes with addShape(). All is great, my shapefile is with shape objects but i have not shape attributes, shapefile is working and is without dbf file. If i try to create ms_newShapefileObject('file', -2) with "-2" that add new shapes to already existig file but again without attributes. How is possible to add in the new shapefile shape with attributes in dbf file?! TNX, Peteris. From dylan.beaudette at GMAIL.COM Tue Oct 3 13:06:33 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Tue, 3 Oct 2006 13:06:33 -0700 Subject: queryable layers in ka-map 1.0b Message-ID: Greetings, I am a little confused about some of the wording in the requirements for making a layer 'queryable' in ka-map 1.0b: from kaMap.js : queryable - boolean, is the layer queryable? This is different from the layer being included in queries. bQueryable marks a layer as being capable of being queried. The layer also has to have it's query state turned on using setQueryable scales - array to containing the layer visibility for each scale I have included the METADATA section into my layer definition: METADATA #this must be enabled to use ka-Map! query - map_query.php "queryable" "true" END and each queryable layer has a template defined. Note that I am able to query these layers from an alternate DHTML interface to this same mapfile. When attempting to query one of these layers in ka-map, i get the message : "no queryable layers at this scale or extent" any thoughts on how to enable queries? So far I have followed the instructions on the wiki here: http://ka-map.ominiverdi.org/wiki/index.php/Query cheers, Dylan -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From mijnlief at XS4ALL.NL Tue Oct 3 12:35:33 2006 From: mijnlief at XS4ALL.NL (Arie Mijnlieff) Date: Tue, 3 Oct 2006 21:35:33 +0200 Subject: Mapscript adding class with PHP Message-ID: Hi, I want to show countries in my world map based on a form with checkboxes. If I check Argentina and Australia i would like to show both countries in red, whereas the other are in another color. If i change the selection in Australia and India i would like Australia and India to be red. I have a .map file with a layer called countries. In that layer i have a class: CLASS # Start of CLASS object NAME 'Argentina' EXPRESSION 'Argentina' OUTLINECOLOR 100 100 100 COLOR 255 255 150 LABEL SIZE LARGE OUTLINECOLOR 255 255 255 MINFEATURESIZE 40 END END # End of CLASS object So i thought if Australia is checked, i add a class object to my layer using php with the same colors: $new_class = ms_newClassObj($this_layer); $new_class->setExpression('Australia'); $new_class->set('name','Australia'); $new_class->label->outlinecolor->setRGB(255,255,255); $new_class->label->set(minfeaturesize,40); Australia will not be red however. I do not understand how i can change the color of my new class. I succeeded only to change the color of the label.. What do i do wrong ? If i change the color of an existing class i can see that change however.. $my_class = $this_layer->getClass(0); $my_class->setExpression('Australia'); $my_class->set('name','Australia'); Any help will be appreciated !! Arie From dmcilhagga at DMSOLUTIONS.CA Tue Oct 3 12:48:42 2006 From: dmcilhagga at DMSOLUTIONS.CA (Dave McIlhagga) Date: Tue, 3 Oct 2006 15:48:42 -0400 Subject: DMSG Premiere and Ongoing investment in Open Source Message-ID: Hi everyone, (apologies for cross-posting) As many of you may have already heard, we at DM Solutions recently launched DMSG Premiere - our commercial support service for MapServer, MapGuide and other open source web mapping technologies. http://www.dmsolutions.ca/premiere/ This announcement has been very well received, however there has been some concern and confusion expressed over the implications for our continuing support of the community. Addressing this issue is the purpose of this email. DMSG Premiere is an important step in terms of offering broader support for open source technologies for organizations that require the insurance that a company will back-up the technology for them. It provides an effective means for us to provide corporate support for the technology in a similar way that Red Hat and other companies successfully do for their respective technologies. Our belief is that by broadening access to open source web mapping to communities less familiar with open source technologies, our ability to re-invest in these technologies will in fact increase, not shrink. Our on-going interaction with the open source community has been instrumental to developing high quality technology and an active user base. Neglecting to continue our work with the community would not only hurt the technology, it would also hurt our business. Ultimately of course - this can only be judged by our actions, and not words. I wanted to take this opportunity to re-assure the community that we believe this is an important step forward for all open source web mapping stakeholders, and that we will continue to invest in open source technologies and the community, just as we have for the past seven years. Thanks for your time. Dave -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca/premiere/ EMail : dmcilhagga at dmsolutions.ca Phone : 613-565-5056 x15 Fax : 613-565-0925 From dylan.beaudette at GMAIL.COM Tue Oct 3 13:27:09 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Tue, 3 Oct 2006 13:27:09 -0700 Subject: queryable layers in ka-map 1.0b [update] In-Reply-To: <200610031306.33206.dylan.beaudette@gmail.com> Message-ID: please note that i am querying data stored in a PostGIS DB. On Tuesday 03 October 2006 13:06, Dylan Beaudette wrote: > Greetings, > > I am a little confused about some of the wording in the requirements for > making a layer 'queryable' in ka-map 1.0b: > > from kaMap.js : > > queryable - boolean, is the layer queryable? > This is different from the layer being included in queries. bQueryable > marks a layer as being capable of being queried. The layer also has to have > it's query state turned on using setQueryable scales - array to containing > the layer visibility for each scale > > I have included the METADATA section into my layer definition: > > METADATA > #this must be enabled to use ka-Map! query - map_query.php > "queryable" "true" > END > > > and each queryable layer has a template defined. Note that I am able to > query these layers from an alternate DHTML interface to this same mapfile. > > When attempting to query one of these layers in ka-map, i get the message : > > "no queryable layers at this scale or extent" > > any thoughts on how to enable queries? So far I have followed the > instructions on the wiki here: > > http://ka-map.ominiverdi.org/wiki/index.php/Query > > cheers, > > Dylan -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From noreply at GEOCARTIC.COM Tue Oct 3 14:44:17 2006 From: noreply at GEOCARTIC.COM (Tim Schaub) Date: Tue, 3 Oct 2006 15:44:17 -0600 Subject: ShapefileObject, ShapObject and atributes In-Reply-To: <4522B49F.5050801@gmail.com> Message-ID: > How is possible to add in the new shapefile shape with > attributes in dbf file?! I've always assumed that mapscript only created the shp part of a shapefile, and that it was up to you to add attributes to the dbf as you were adding shapes. It would be good to get confirmation that mapscript indeed does not handle dbf creation. In Python, you can use something like the dbfwriter recipe on ASPN (http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/362715). In PHP, use the the dbase functions (http://us2.php.net/dbase). Maris Nartiss just left a comment on the ShapefileObj Class docs to the effect that mapscript doesn't deal in dbf writing. If this is indeed true, I could contribute some examples of the above methods to the docs. Tim (Peteris, if I'm right about this, you need to create a new dbf file when you create your new shapefile. For each shape that you add, add a record to the dbf with the shape's attribute values. As long as the number of shapes equals the number of records in the dbf, a shape will be associated with the attributes added in the same order.) > > TNX, > Peteris. > > From ollerery at ENGR.ORST.EDU Tue Oct 3 15:46:06 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 3 Oct 2006 15:46:06 -0700 Subject: Proj 4 error: no system list, errno: 2 In-Reply-To: <200610031327.09189.dylan.beaudette@gmail.com> Message-ID: *I just installed MapServer on a new machine and i an not sure why i am getting the following error: Warning*: [MapServer Error]: msProcessProjection(): no system list, errno: 2 in */var/www/html/mapserver/display.phtml* on line *13 I know that the epsg file is present because i can locate it with: $ locate epsg .... /usr/local/share/proj/epsg .... Also the following works: $ proj -v +init=epsg:4326 Rel. 4.4.9, 29 Oct 2004 : +proj=latlong unsuitable for use with proj program. program abnormally terminated * From ollerery at ENGR.ORST.EDU Tue Oct 3 17:22:42 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 3 Oct 2006 17:22:42 -0700 Subject: Proj 4 error: no system list, errno: 2 In-Reply-To: <4522F4CF.8060805@pobox.com> Message-ID: > Ryan Ollerenshaw wrote: >> *I just installed MapServer on a new machine and i an not sure why i >> am getting the following error: >> >> Warning*: [MapServer Error]: msProcessProjection(): no system list, >> errno: 2 in */var/www/html/mapserver/display.phtml* on line *13 >> >> I know that the epsg file is present because i can locate it with: > > Perhaps it is looking for a file other than the epsg init file? > > I'd encourage you to set the PROJ_DEBUG environment variable so you > can see (in stderr/error_log) what files proj is trying to open. > Thank you for your help, but setting the PROJ_DEBUG variable doesn't seem to make a difference on the web server. I still get the same error: *Warning*: [MapServer Error]: msProcessProjection(): no system list, errno: 2 in */var/www/html/mapserver/display.phtml* on line *13 But i do get some debugging information from the command line. # proj -v +init=epsg:4269 pj_open_lib(epsg): call fopen(/usr/local/share/proj/epsg) - succeeded Rel. 4.4.9, 29 Oct 2004 : +proj=latlong unsuitable for use with proj program. program abnormally terminated does anyone know why the proj commands would work from the command line but not on the web server? * From ollerery at ENGR.ORST.EDU Tue Oct 3 17:43:04 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 3 Oct 2006 17:43:04 -0700 Subject: Proj 4 error: no system list, errno: 2 In-Reply-To: <4522FED2.2080306@engr.orst.edu> Message-ID: Ryan Ollerenshaw wrote: >> Ryan Ollerenshaw wrote: >>> *I just installed MapServer on a new machine and i an not sure why i >>> am getting the following error: >>> >>> Warning*: [MapServer Error]: msProcessProjection(): no system list, >>> errno: 2 in */var/www/html/mapserver/display.phtml* on line *13 >>> >>> I know that the epsg file is present because i can locate it with: >> >> Perhaps it is looking for a file other than the epsg init file? >> >> I'd encourage you to set the PROJ_DEBUG environment variable so you >> can see (in stderr/error_log) what files proj is trying to open. >> > > Thank you for your help, but setting the PROJ_DEBUG variable doesn't > seem to make a difference on the web server. I still get the same error: > > *Warning*: [MapServer Error]: msProcessProjection(): no system list, > errno: 2 in */var/www/html/mapserver/display.phtml* on line *13 > > But i do get some debugging information from the command line. > # proj -v +init=epsg:4269 > pj_open_lib(epsg): call fopen(/usr/local/share/proj/epsg) - succeeded > Rel. 4.4.9, 29 Oct 2004 > : > +proj=latlong unsuitable for use with proj program. > program abnormally terminated > > does anyone know why the proj commands would work from the command > line but not on the web server? > Look like i was missing the proj-nad rpm. From adam at JAMRADAR.COM Tue Oct 3 20:20:08 2006 From: adam at JAMRADAR.COM (Adam) Date: Tue, 3 Oct 2006 22:20:08 -0500 Subject: unsubscribe Message-ID: ----- Original Message ----- From: "Ryan Ollerenshaw" To: Sent: Tuesday, October 03, 2006 5:46 PM Subject: [UMN_MAPSERVER-USERS] Proj 4 error: no system list, errno: 2 > *I just installed MapServer on a new machine and i an not sure why i am > getting the following error: > > Warning*: [MapServer Error]: msProcessProjection(): no system list, > errno: 2 in */var/www/html/mapserver/display.phtml* on line *13 > > I know that the epsg file is present because i can locate it with: > > $ locate epsg > .... > /usr/local/share/proj/epsg > .... > > Also the following works: > > $ proj -v +init=epsg:4326 > Rel. 4.4.9, 29 Oct 2004 > : > +proj=latlong unsuitable for use with proj program. > program abnormally terminated > > * > > From jayzee.smith at GMAIL.COM Tue Oct 3 21:01:37 2006 From: jayzee.smith at GMAIL.COM (John Smith) Date: Wed, 4 Oct 2006 00:01:37 -0400 Subject: convert img.x to minx or maxx or mapext or imgext? Message-ID: hi guys! the subject says it all jzs -------------- next part -------------- An HTML attachment was scrubbed... URL: From beyhan at DEPREM.GOV.TR Tue Oct 3 23:38:25 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Wed, 4 Oct 2006 09:38:25 +0300 Subject: Mapscript adding class with PHP In-Reply-To: <2AA1D0F2-7CCF-4187-B598-79CD230DE280@xs4all.nl> Message-ID: Hi Arie, please try the following in yor php script, I'm new on PhpMapscript so. I hope this solve your problem > $new_class = ms_newClassObj($this_layer); > $new_class->setExpression('Australia'); > $new_class->set('name','Australia'); $new_class->color->setRGB(255,0,0);////////////////here you should add > $new_class->label->outlinecolor->setRGB(255,255,255); > $new_class->label->set(minfeaturesize,40); regards Murat On Tue, 3 Oct 2006 21:35:33 +0200, Arie Mijnlieff wrote > Hi, > > I want to show countries in my world map based on a form with > checkboxes. > > If I check Argentina and Australia i would like to show both > countries in red, whereas the other are in another color. If i > change the selection in Australia and India i would like Australia > and India to be red. > > I have a .map file with a layer called countries. In that layer i > have a class: > > CLASS # Start of CLASS object > NAME 'Argentina' > EXPRESSION 'Argentina' > OUTLINECOLOR 100 100 100 > COLOR 255 255 150 > LABEL > SIZE LARGE > OUTLINECOLOR 255 255 255 > MINFEATURESIZE 40 > END > END # End of CLASS object > > So i thought if Australia is checked, i add a class object to my > layer using php with the same colors: > > $new_class = ms_newClassObj($this_layer); > $new_class->setExpression('Australia'); > $new_class->set('name','Australia'); > $new_class->label->outlinecolor->setRGB(255,255,255); > $new_class->label->set(minfeaturesize,40); > > Australia will not be red however. I do not understand how i can > change the color of my new class. I succeeded only to change the > color of the label.. What do i do wrong ? > > If i change the color of an existing class i can see that change > however.. > > $my_class = $this_layer->getClass(0); > $my_class->setExpression('Australia'); > $my_class->set('name','Australia'); > > Any help will be appreciated !! > > Arie > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From higon_jos at GVA.ES Wed Oct 4 00:24:17 2006 From: higon_jos at GVA.ES (=?ISO-8859-1?Q?Jos=E9_Vicente_Higon?=) Date: Wed, 4 Oct 2006 09:24:17 +0200 Subject: Compilation problem with 4.10.rc1 Message-ID: Hi, My goal is to run mapserver without the bug 1916 wich has been fixed in the last release (4.10.rc1). I'm trying to compile it on linux with this configuration: ./configure --with-wms --with-wmsclient --with-wfs --with-wfsclient --with-wcs --with-gd --with-proj --with-freetype --with-curl --with-postgis --with-threads --with-gd --with-gdal --with-ogr --with-geos but an error occurs: [...] "mapgeos.c:34:20: geos_c.h: File not found." [...] Can someone help me? I'm using the 2.1.4 version of geos and the file geos_c.h doesn't exist. Thanks in advance. -- Jos? Vicente Hig?n Grupo de desarrollo de gvSIG Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain http://www.gvsig.gva.es From mijnlief at XS4ALL.NL Wed Oct 4 01:06:28 2006 From: mijnlief at XS4ALL.NL (Arie Mijnlieff) Date: Wed, 4 Oct 2006 10:06:28 +0200 Subject: Mapscript adding class with PHP In-Reply-To: <20061004063426.M4943@deprem.gov.tr> Message-ID: Hi Murat ! No this doesnt solve the problem: PHP Fatal error: Call to a member function on a non-object in /var/ www/html/mapdemo/bulgaria/test.php on line 13 color is not an attribute of the class object.. Maybe i should try to define a new layer with php for each country that i would like to paint.. Thanks for your suggestion ! Arie On 4-okt-2006, at 8:38, Murat BEYHAN wrote: > Hi Arie, > > please try the following in yor php script, > I'm new on PhpMapscript so. I hope this solve your problem > > > > > >> $new_class = ms_newClassObj($this_layer); >> $new_class->setExpression('Australia'); >> $new_class->set('name','Australia'); > $new_class->color->setRGB(255,0,0);////////////////here you > should add >> $new_class->label->outlinecolor->setRGB(255,255,255); >> $new_class->label->set(minfeaturesize,40); > > regards > > Murat > > On Tue, 3 Oct 2006 21:35:33 +0200, Arie Mijnlieff wrote >> Hi, >> >> I want to show countries in my world map based on a form with >> checkboxes. >> >> If I check Argentina and Australia i would like to show both >> countries in red, whereas the other are in another color. If i >> change the selection in Australia and India i would like Australia >> and India to be red. >> >> I have a .map file with a layer called countries. In that layer i >> have a class: >> >> CLASS # Start of CLASS object >> NAME 'Argentina' >> EXPRESSION 'Argentina' >> OUTLINECOLOR 100 100 100 >> COLOR 255 255 150 >> LABEL >> SIZE LARGE >> OUTLINECOLOR 255 255 255 >> MINFEATURESIZE 40 >> END >> END # End of CLASS object >> >> So i thought if Australia is checked, i add a class object to my >> layer using php with the same colors: >> >> $new_class = ms_newClassObj($this_layer); >> $new_class->setExpression('Australia'); >> $new_class->set('name','Australia'); >> $new_class->label->outlinecolor->setRGB(255,255,255); >> $new_class->label->set(minfeaturesize,40); >> >> Australia will not be red however. I do not understand how i can >> change the color of my new class. I succeeded only to change the >> color of the label.. What do i do wrong ? >> >> If i change the color of an existing class i can see that change >> however.. >> >> $my_class = $this_layer->getClass(0); >> $my_class->setExpression('Australia'); >> $my_class->set('name','Australia'); >> >> Any help will be appreciated !! >> >> Arie >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. > > > -- > Open WebMail Project (http://openwebmail.org) > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Oct 4 01:06:32 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 4 Oct 2006 10:06:32 +0200 Subject: Mapscript adding class with PHP Message-ID: Arie, you can best use a style object. Example: $oClass = ms_newClassObj($oLayer); $oStyle = ms_newStyleObj($oClass); $aColor[0] = 0; $aColor[1] = 0; $aColor[2] = 0; if ($HTTP_FORM_VARS["COLOR"]!= "") $aColor = explode(",", $HTTP_FORM_VARS["COLOR"]); $oStyle->color->setRGB($aColor[0], $aColor[1], $aColor[2]); Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Arie Mijnlieff Verzonden: woensdag 4 oktober 2006 10:06 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Mapscript adding class with PHP Hi Murat ! No this doesnt solve the problem: PHP Fatal error: Call to a member function on a non-object in /var/ www/html/mapdemo/bulgaria/test.php on line 13 color is not an attribute of the class object.. Maybe i should try to define a new layer with php for each country that i would like to paint.. Thanks for your suggestion ! Arie On 4-okt-2006, at 8:38, Murat BEYHAN wrote: > Hi Arie, > > please try the following in yor php script, > I'm new on PhpMapscript so. I hope this solve your problem > > > > > >> $new_class = ms_newClassObj($this_layer); >> $new_class->setExpression('Australia'); >> $new_class->set('name','Australia'); > $new_class->color->setRGB(255,0,0);////////////////here you > should add >> $new_class->label->outlinecolor->setRGB(255,255,255); >> $new_class->label->set(minfeaturesize,40); > > regards > > Murat > > On Tue, 3 Oct 2006 21:35:33 +0200, Arie Mijnlieff wrote >> Hi, >> >> I want to show countries in my world map based on a form with >> checkboxes. >> >> If I check Argentina and Australia i would like to show both >> countries in red, whereas the other are in another color. If i >> change the selection in Australia and India i would like Australia >> and India to be red. >> >> I have a .map file with a layer called countries. In that layer i >> have a class: >> >> CLASS # Start of CLASS object >> NAME 'Argentina' >> EXPRESSION 'Argentina' >> OUTLINECOLOR 100 100 100 >> COLOR 255 255 150 >> LABEL >> SIZE LARGE >> OUTLINECOLOR 255 255 255 >> MINFEATURESIZE 40 >> END >> END # End of CLASS object >> >> So i thought if Australia is checked, i add a class object to my >> layer using php with the same colors: >> >> $new_class = ms_newClassObj($this_layer); >> $new_class->setExpression('Australia'); >> $new_class->set('name','Australia'); >> $new_class->label->outlinecolor->setRGB(255,255,255); >> $new_class->label->set(minfeaturesize,40); >> >> Australia will not be red however. I do not understand how i can >> change the color of my new class. I succeeded only to change the >> color of the label.. What do i do wrong ? >> >> If i change the color of an existing class i can see that change >> however.. >> >> $my_class = $this_layer->getClass(0); >> $my_class->setExpression('Australia'); >> $my_class->set('name','Australia'); >> >> Any help will be appreciated !! >> >> Arie >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. > > > -- > Open WebMail Project (http://openwebmail.org) > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From benjaminsims at YAHOO.COM Wed Oct 4 01:48:48 2006 From: benjaminsims at YAHOO.COM (Ben Sims) Date: Wed, 4 Oct 2006 01:48:48 -0700 Subject: malloc() problem using PHP/MapScript Message-ID: Hello to all, I have an application which uses PHP/MapScript to draw basic maps. It works fine on my development machine (Mac OSX using precompiled libraries and a recently compiled version of the latest PHP source). I recently tried to transfer it to a production server: Scientific Linux (basically Red Hat) Apache 2.0.52 PHP compiled from most recent source Most graphic libraries installed using yum Geographic specific libraries (GEO, GDAL, PROJ4, taken from FWTools) - note that I had to move libproj.so.0 into the /usr/lib directory, and also libstdc++.5, since this system had libstdc++.6 Running the page which is supposed to draw maps, instead of displaying the page I am asked if I want to download it. So, I at first thought it was merely something to do with Apache configuration. However, I note that although shape files have been generated, the image files for the map have not. Looking in the Apache error log, there is the following: *** glibc detected *** malloc(): memory corruption: 0x094501c8 *** [Wed Oct 04 10:37:57 2006] [notice] child pid 7507 exit signal Aborted (6) There are also various PHP Notice errors, although these are the sort of thing I would usually ignore and am not sure they are related. Could anyone advise me as to how to deal with this problem, or get more information? Thanks, Benjamin ___________________________________________________________ Try the all-new Yahoo! Mail. "The New Version is radically easier to use" ? The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html From mijnlief at XS4ALL.NL Wed Oct 4 02:02:49 2006 From: mijnlief at XS4ALL.NL (Arie Mijnlieff) Date: Wed, 4 Oct 2006 11:02:49 +0200 Subject: Mapscript adding class with PHP In-Reply-To: <5958F6B0C15AFE449245A966FB967B58074FE9@rws-s001000.ad.rws.nl> Message-ID: Bart ! My code is now: $this_layer = $map->getLayerByName('countries'); $new_class = ms_newClassObj($this_layer); $new_class->setExpression('Russia'); $new_class->set('name','Russia'); $new_class->label->outlinecolor->setRGB(255,255,255); $new_class->label->set(minfeaturesize,40); $new_style = ms_newStyleObj($new_class); $new_style->color->setRGB(100,100,100); $new_style->outlinecolor->setRGB(255,255,255); $img=$map->draw(); $img->saveImage("/var/www/html/mapdemo/images/test.jpg"); Doesnt work however.. I really appreciate your help ! Arie On 4-okt-2006, at 10:06, Eijnden, Bart van den (AGI) wrote: > Arie, > > you can best use a style object. Example: > > $oClass = ms_newClassObj($oLayer); > $oStyle = ms_newStyleObj($oClass); > > $aColor[0] = 0; > $aColor[1] = 0; > $aColor[2] = 0; > if ($HTTP_FORM_VARS["COLOR"]!= "") > $aColor = explode(",", $HTTP_FORM_VARS["COLOR"]); > > $oStyle->color->setRGB($aColor[0], $aColor[1], $aColor[2]); > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Arie Mijnlieff > Verzonden: woensdag 4 oktober 2006 10:06 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] Mapscript adding class with PHP > > > Hi Murat ! > > No this doesnt solve the problem: > > PHP Fatal error: Call to a member function on a non-object in /var/ > www/html/mapdemo/bulgaria/test.php on line 13 > > color is not an attribute of the class object.. Maybe i should try to > define a new layer with php for each country that i would like to > paint.. > > Thanks for your suggestion ! > > Arie > > On 4-okt-2006, at 8:38, Murat BEYHAN wrote: > >> Hi Arie, >> >> please try the following in yor php script, >> I'm new on PhpMapscript so. I hope this solve your problem >> >> >> >> >> >>> $new_class = ms_newClassObj($this_layer); >>> $new_class->setExpression('Australia'); >>> $new_class->set('name','Australia'); >> $new_class->color->setRGB(255,0,0);////////////////here you >> should add >>> $new_class->label->outlinecolor->setRGB(255,255,255); >>> $new_class->label->set(minfeaturesize,40); >> >> regards >> >> Murat >> >> On Tue, 3 Oct 2006 21:35:33 +0200, Arie Mijnlieff wrote >>> Hi, >>> >>> I want to show countries in my world map based on a form with >>> checkboxes. >>> >>> If I check Argentina and Australia i would like to show both >>> countries in red, whereas the other are in another color. If i >>> change the selection in Australia and India i would like Australia >>> and India to be red. >>> >>> I have a .map file with a layer called countries. In that layer i >>> have a class: >>> >>> CLASS # Start of CLASS object >>> NAME 'Argentina' >>> EXPRESSION 'Argentina' >>> OUTLINECOLOR 100 100 100 >>> COLOR 255 255 150 >>> LABEL >>> SIZE LARGE >>> OUTLINECOLOR 255 255 255 >>> MINFEATURESIZE 40 >>> END >>> END # End of CLASS object >>> >>> So i thought if Australia is checked, i add a class object to my >>> layer using php with the same colors: >>> >>> $new_class = ms_newClassObj($this_layer); >>> $new_class->setExpression('Australia'); >>> $new_class->set('name','Australia'); >>> $new_class->label->outlinecolor->setRGB(255,255,255); >>> $new_class->label->set(minfeaturesize,40); >>> >>> Australia will not be red however. I do not understand how i can >>> change the color of my new class. I succeeded only to change the >>> color of the label.. What do i do wrong ? >>> >>> If i change the color of an existing class i can see that change >>> however.. >>> >>> $my_class = $this_layer->getClass(0); >>> $my_class->setExpression('Australia'); >>> $my_class->set('name','Australia'); >>> >>> Any help will be appreciated !! >>> >>> Arie >>> >>> -- >>> This message has been scanned for viruses and >>> dangerous content by MailScanner, and is >>> believed to be clean. >> >> >> -- >> Open WebMail Project (http://openwebmail.org) >> >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. >> > > > Disclaimer > ********************************************************************** > ** > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ********************************************************************** > ** > > From listario at GMAIL.COM Wed Oct 4 02:17:01 2006 From: listario at GMAIL.COM (J. Parapar) Date: Wed, 4 Oct 2006 11:17:01 +0200 Subject: html legend classes; data encoding; (noted python mapsript + In-Reply-To: <20061003091251.GA10272@alnagon.karneval.cz> Message-ID: Hello Karpi Quoting the documentation about HTML Legends ( http://mapserver.gis.umn.edu/docs/howto/html_legend/#class-block): "opt_flag=14 means do not show classes in the legend that are out of scale." Hope this helps Best regards, Jorge 2006/10/3, karpi : > django templating) > Reply-To: > > hello, Im spent some time with my first mapserver cgi web application. > > here is its early version: > http://gismaster.liberix.cz/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Flocalhost%2Fhtdocs%2Fnewmap%2Fczrep.map&imgext=330491.333543+5529453.205715+456794.204419+5632791.918249&zoomsize=2&layer=vodn%C3%AD_plochy&layer=vodn%C3%AD_toky&layer=m%C4%9Bsta_plochy&layer=obce_class&cellsize=229.641583&vyhledat=&mode=browse&mapsize=550+450&img.x=80&img.y=362 > > My biggist question at this point are: > 1) can i hide legend items, of that classes, which are not rendered > (maxscale of class) as is done in common bitmap legend ?? > > my legend template is short: > [leg_layer_html order_metadata=legend_order opt_flag=15] > [leg_layer_name]
> [/leg_layer_html] > > [leg_class_html opt_flag=0] >       [leg_class_name]
> [/leg_class_html] > > > 2) my data are saved in different encoding (iso-8859-2) then mapfile, > templates and all web is (utf8) This discrepancy caues errors as this: > http://localhost/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Flocalhost%2Fhtdocs%2Fnewmap%2Fczrep.map&imgext=441771.353638+5581229.641642+457559.212498+5594146.980709&zoomsize=2&layer=vodn%C3%AD_plochy&layer=vodn%C3%AD_toky&layer=m%C4%9Bsta_plochy&layer=obce_class&cellsize=28.705198&vyhledat=&mode=query&mapsize=550+450&img.x=282&img.y=231 > (Jm?no obce: Dob???) > > Can i force mapserver to respect different encoding in the data files? > > Thanks for any kind of your replys > > > > > ( Ive also try python mapscript + django templating solution, but when > i approached creating legends through layer.getClass(j).drawLegendIcon > rendering and serving of maps begun extremly cpu consuming and slow :( > > > -- > karpi from > http://gismaster.liberix.cz > From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Oct 4 02:25:23 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 4 Oct 2006 11:25:23 +0200 Subject: Mapscript adding class with PHP Message-ID: Arie, can you save your MAP using $map->save(''); ? And post the output LAYER definition? Also, have you set CLASSITEM on your LAYER? Best regards, Bart -----Oorspronkelijk bericht----- Van: Arie Mijnlieff [mailto:mijnlief at xs4all.nl] Verzonden: woensdag 4 oktober 2006 11:03 Aan: Eijnden, Bart van den (AGI) CC: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Mapscript adding class with PHP Bart ! My code is now: $this_layer = $map->getLayerByName('countries'); $new_class = ms_newClassObj($this_layer); $new_class->setExpression('Russia'); $new_class->set('name','Russia'); $new_class->label->outlinecolor->setRGB(255,255,255); $new_class->label->set(minfeaturesize,40); $new_style = ms_newStyleObj($new_class); $new_style->color->setRGB(100,100,100); $new_style->outlinecolor->setRGB(255,255,255); $img=$map->draw(); $img->saveImage("/var/www/html/mapdemo/images/test.jpg"); Doesnt work however.. I really appreciate your help ! Arie On 4-okt-2006, at 10:06, Eijnden, Bart van den (AGI) wrote: > Arie, > > you can best use a style object. Example: > > $oClass = ms_newClassObj($oLayer); > $oStyle = ms_newStyleObj($oClass); > > $aColor[0] = 0; > $aColor[1] = 0; > $aColor[2] = 0; > if ($HTTP_FORM_VARS["COLOR"]!= "") > $aColor = explode(",", $HTTP_FORM_VARS["COLOR"]); > > $oStyle->color->setRGB($aColor[0], $aColor[1], $aColor[2]); > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Arie Mijnlieff > Verzonden: woensdag 4 oktober 2006 10:06 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] Mapscript adding class with PHP > > > Hi Murat ! > > No this doesnt solve the problem: > > PHP Fatal error: Call to a member function on a non-object in /var/ > www/html/mapdemo/bulgaria/test.php on line 13 > > color is not an attribute of the class object.. Maybe i should try to > define a new layer with php for each country that i would like to > paint.. > > Thanks for your suggestion ! > > Arie > > On 4-okt-2006, at 8:38, Murat BEYHAN wrote: > >> Hi Arie, >> >> please try the following in yor php script, >> I'm new on PhpMapscript so. I hope this solve your problem >> >> >> >> >> >>> $new_class = ms_newClassObj($this_layer); >>> $new_class->setExpression('Australia'); >>> $new_class->set('name','Australia'); >> $new_class->color->setRGB(255,0,0);////////////////here you >> should add >>> $new_class->label->outlinecolor->setRGB(255,255,255); >>> $new_class->label->set(minfeaturesize,40); >> >> regards >> >> Murat >> >> On Tue, 3 Oct 2006 21:35:33 +0200, Arie Mijnlieff wrote >>> Hi, >>> >>> I want to show countries in my world map based on a form with >>> checkboxes. >>> >>> If I check Argentina and Australia i would like to show both >>> countries in red, whereas the other are in another color. If i >>> change the selection in Australia and India i would like Australia >>> and India to be red. >>> >>> I have a .map file with a layer called countries. In that layer i >>> have a class: >>> >>> CLASS # Start of CLASS object >>> NAME 'Argentina' >>> EXPRESSION 'Argentina' >>> OUTLINECOLOR 100 100 100 >>> COLOR 255 255 150 >>> LABEL >>> SIZE LARGE >>> OUTLINECOLOR 255 255 255 >>> MINFEATURESIZE 40 >>> END >>> END # End of CLASS object >>> >>> So i thought if Australia is checked, i add a class object to my >>> layer using php with the same colors: >>> >>> $new_class = ms_newClassObj($this_layer); >>> $new_class->setExpression('Australia'); >>> $new_class->set('name','Australia'); >>> $new_class->label->outlinecolor->setRGB(255,255,255); >>> $new_class->label->set(minfeaturesize,40); >>> >>> Australia will not be red however. I do not understand how i can >>> change the color of my new class. I succeeded only to change the >>> color of the label.. What do i do wrong ? >>> >>> If i change the color of an existing class i can see that change >>> however.. >>> >>> $my_class = $this_layer->getClass(0); >>> $my_class->setExpression('Australia'); >>> $my_class->set('name','Australia'); >>> >>> Any help will be appreciated !! >>> >>> Arie >>> >>> -- >>> This message has been scanned for viruses and >>> dangerous content by MailScanner, and is >>> believed to be clean. >> >> >> -- >> Open WebMail Project (http://openwebmail.org) >> >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. >> > > > Disclaimer > ********************************************************************** > ** > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ********************************************************************** > ** > > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From walter at FAUNALIA.COM Wed Oct 4 03:47:43 2006 From: walter at FAUNALIA.COM (Walter Lorenzetti) Date: Wed, 4 Oct 2006 12:47:43 +0200 Subject: logo company on mp... Message-ID: Hi all, can someone help me? I want to put my logo company on the map for example on right bottom corner I read the mapserver map file specifications but i don't find anything on this argument How can I do it? If it's possible... Bye and thanks Walter -- Walter Lorenzetti email+jabber: walter at faunalia.it(com) www.faunalia.it(com) Piazza Garibaldi 5 56025 Pontedera (PI) Italy Tel: (+39)347-6597931 From higon_jos at GVA.ES Wed Oct 4 03:53:14 2006 From: higon_jos at GVA.ES (=?ISO-8859-1?Q?Jos=E9_Vicente_Higon?=) Date: Wed, 4 Oct 2006 12:53:14 +0200 Subject: Problems running version 4.10.0 rc1 Message-ID: Hello, I've compiled mapserver 4.10.0 rc1 with gdal 1.3.2 on linux and I've realized two problems: 1. If compile with geos I get an error like this: mapgeos.c:34:20: geos_c.h: File not found 2. I can't get get an image with output format trought GDAL like "tiff 32 bit float". Mapserver returns a 500 html code (mapserver crashes). The outputformat definition is like this : OUTPUTFORMAT NAME GTiffFloat DRIVER "GDAL/GTiff" MIMETYPE "image/tiff; mode=float32" IMAGEMODE FLOAT32 EXTENSION "tif" END Someone can help me? Thanks in advance -- Jos? Vicente Hig?n Grupo de desarrollo de gvSIG Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain http://www.gvsig.gva.es From beyhan at DEPREM.GOV.TR Wed Oct 4 04:21:38 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Wed, 4 Oct 2006 14:21:38 +0300 Subject: MySql Spatial Database In-Reply-To: <200610041247.44062.walter@faunalia.com> Message-ID: Dear Friends; Is it possible to connect mysql spatial database by using Mapserver 4.8.4 if it is? I would like to make a spatial database on MySql and add my data into database. I have polygon, line and pointdata. So I have found the followings in MySQL database to create spatial database table but I dont have any idea how can I insert polygon or line or point data into the table. If any idea to do this Please help. mysql> CREATE TABLE spat (p POINT, g POLYGON, l LINESTRING, geo GEOMETRY ); mysql> INSERT INTO spat (p) VALUES (GeomFromText('POINT(1 2)')); mysql> select X(p),Y(p) from spat; regards Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Oct 4 04:26:03 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 4 Oct 2006 13:26:03 +0200 Subject: MySql Spatial Database Message-ID: You can only access them using OGR in Mapserver. See also: http://www.gdal.org/ogr/drv_mysql.html A better option would be PostGIS ofcourse. If you have the choice, go for that one. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Murat BEYHAN Verzonden: woensdag 4 oktober 2006 13:22 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] MySql Spatial Database Dear Friends; Is it possible to connect mysql spatial database by using Mapserver 4.8.4 if it is? I would like to make a spatial database on MySql and add my data into database. I have polygon, line and pointdata. So I have found the followings in MySQL database to create spatial database table but I dont have any idea how can I insert polygon or line or point data into the table. If any idea to do this Please help. mysql> CREATE TABLE spat (p POINT, g POLYGON, l LINESTRING, geo GEOMETRY ); mysql> INSERT INTO spat (p) VALUES (GeomFromText('POINT(1 2)')); mysql> select X(p),Y(p) from spat; regards Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From beyhan at DEPREM.GOV.TR Wed Oct 4 07:03:17 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Wed, 4 Oct 2006 17:03:17 +0300 Subject: MySql Spatial Database In-Reply-To: <5958F6B0C15AFE449245A966FB967B58074FEF@rws-s001000.ad.rws.nl> Message-ID: Dear Bart, thank you for your advice. I have tried the followings ogr2ogr -f MySQL MySQL:testogr,user=root,password=passmysql cities.shb -nln iller -update -overwrite -lco GEOMETRY_NAME=SHAPE2 This is creates 3 tables in mysql tables in testogr database. the names of the tables are geometry_columns, cities, spatial_ref_sys then I have doubt I have cities shape files the tail of the files are shp shx sbn sbx these are esri files. I don't know Which one should be use for this? And How can I connect and read data by using ogr connection from map file. I have an experiment if the data stored regularly as lat and lon in the table I can read those for draw point. But My problem if I have polygone or line data in mySql How can I read those data to create a layer on my map file by using OGR. So I'm trying to use spatial database. This is I think possible to do with Mapserver but There is not enough application to do this on the internet. Thank you for your help I appreciated any comment form all... Regards Murat On Wed, 4 Oct 2006 13:26:03 +0200, Eijnden, Bart van den (AGI) wrote > You can only access them using OGR in Mapserver. > > See also: > > http://www.gdal.org/ogr/drv_mysql.html > > A better option would be PostGIS ofcourse. If you have the choice, > go for that one. > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU]Namens Murat BEYHAN Verzonden: woensdag 4 > oktober 2006 13:22 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: > [UMN_MAPSERVER-USERS] MySql Spatial Database > > Dear Friends; > Is it possible to connect mysql spatial database by using Mapserver 4.8.4 > if it is? > > I would like to make a spatial database on MySql and add my data > into database. I have polygon, line and pointdata. So I have found > the followings in MySQL database to create spatial database table > but I dont have any idea how can I insert polygon or line or point data > into the table. > If any idea to do this Please help. > > mysql> CREATE TABLE spat (p POINT, g POLYGON, l LINESTRING, geo > GEOMETRY ); mysql> INSERT INTO spat (p) VALUES > (GeomFromText('POINT(1 2)')); mysql> select X(p),Y(p) from spat; regards > Murat > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per > abuis hebt ontvangen, wordt u verzocht het te vernietigen en de > afzender te informeren. Wij adviseren u om bij twijfel over de > juistheid of de volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From beyhan at DEPREM.GOV.TR Wed Oct 4 07:13:02 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Wed, 4 Oct 2006 17:13:02 +0300 Subject: MySql Spatial Database In-Reply-To: <20061004135418.M95910@deprem.gov.tr> Message-ID: I was made a mistake at the previous e mail,sorry. the command like this ogr2ogr -f MySQL MySQL:testogr,user=root,password=passmysql cities.shb -nln cities -update -overwrite -lco GEOMETRY_NAME=SHAPE2 On Wed, 4 Oct 2006 17:03:17 +0300, Murat BEYHAN wrote > Dear Bart, > thank you for your advice. > I have tried the followings > > ogr2ogr -f MySQL MySQL:testogr,user=root,password=passmysql > cities.shb -nln iller -update -overwrite -lco GEOMETRY_NAME=SHAPE2 > > This is creates 3 tables in mysql tables in testogr database. > the names of the tables are > geometry_columns, > cities, > spatial_ref_sys > > then I have doubt I have cities shape files the tail of the files are > shp shx sbn sbx these are esri files. I don't know Which one should > be use for this? And How can I connect and read data by using ogr > connection from map file. I have an experiment if the data stored > regularly as lat and lon in the table I can read those for draw > point. But My problem if I have polygone or line data in mySql How > can I read those data to create a layer on my map file by using OGR. > So I'm trying to use spatial database. > > This is I think possible to do with Mapserver but There is not enough > application to do this on the internet. > Thank you for your help > I appreciated any comment form all... > Regards > Murat > > On Wed, 4 Oct 2006 13:26:03 +0200, Eijnden, Bart van den (AGI) wrote > > You can only access them using OGR in Mapserver. > > > > See also: > > > > http://www.gdal.org/ogr/drv_mysql.html > > > > A better option would be PostGIS ofcourse. If you have the choice, > > go for that one. > > > > Best regards, > > Bart > > > > -----Oorspronkelijk bericht----- > > Van: UMN MapServer Users List [mailto:MAPSERVER- > > USERS at LISTS.UMN.EDU]Namens Murat BEYHAN Verzonden: woensdag 4 > > oktober 2006 13:22 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: > > [UMN_MAPSERVER-USERS] MySql Spatial Database > > > > Dear Friends; > > Is it possible to connect mysql spatial database by using Mapserver 4.8.4 > > if it is? > > > > I would like to make a spatial database on MySql and add my data > > into database. I have polygon, line and pointdata. So I have found > > the followings in MySQL database to create spatial database table > > but I dont have any idea how can I insert polygon or line or point data > > into the table. > > If any idea to do this Please help. > > > > mysql> CREATE TABLE spat (p POINT, g POLYGON, l LINESTRING, geo > > GEOMETRY ); mysql> INSERT INTO spat (p) VALUES > > (GeomFromText('POINT(1 2)')); mysql> select X(p),Y(p) from spat; regards > > Murat > > > > -- > > This message has been scanned for viruses and > > dangerous content by MailScanner, and is > > believed to be clean. > > > > Disclaimer > > ************************************************************************ > > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per > > abuis hebt ontvangen, wordt u verzocht het te vernietigen en de > > afzender te informeren. Wij adviseren u om bij twijfel over de > > juistheid of de volledigheid van de mail contact met afzender op te nemen. > > > > This message shall not constitute any rights or obligations. > > This message is intended solely for the addressee. > > If you have received this message in error, please delete it and > > notify the sender immediately. When in doubt whether this message > > is correct or complete, please contact the sender. > > ************************************************************************ > > > > -- > > This message has been scanned for viruses and > > dangerous content by MailScanner, and is > > believed to be clean. > > -- > Open WebMail Project (http://openwebmail.org) > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From adams at TERRESTRIS.DE Wed Oct 4 07:18:40 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 4 Oct 2006 16:18:40 +0200 Subject: INCLUDE Message-ID: Dear list, I'm playing around with that new mapserver INCLUDE parameter and UMN v4.10 beta3 Requesting for a map via the WMS getmap all I get is an "internal server error" My Mapfile starts "normal" and ends like that: MAP [............] #------------------------------------------------------------------------------ # Start of Legend #------------------------------------------------------------------------------ LEGEND STATUS ON KEYSIZE 20 10 LABEL COLOR 0 0 0 TYPE TRUETYPE FONT arial SIZE 9 END # ENDE LABEL END #LEGEND #------------------------------------------------------------------------------- # Start of layer definitions # #------------------------------------------------------------------------------- INCLUDE "riv.map" #------------------------------------------------------------------------------- END #End of Mapfile #------------------------------------------------------------------------------- In the nclude I have the complete layer definition. As one file the mapfile with that request works. Is the syntax correct or is it not possible to include files wherever I want to?? Till -- ***************************************** * www.webmapcenter.de - Hosting * * GDIdevL 'Start GDI from CD' * * http://www.terrestris.de * ***************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From john.cole at UAI.COM Wed Oct 4 07:27:00 2006 From: john.cole at UAI.COM (John Cole) Date: Wed, 4 Oct 2006 09:27:00 -0500 Subject: wms groups... Message-ID: Bart, I've done just that, and I can't see the groups in uDig 1.1rc4. Should they show up? Thanks, John -----Original Message----- From: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] Sent: Tuesday, October 03, 2006 12:37 PM To: John Cole Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] wms groups... You can just use GROUP, and then use wms_group_title IIRC. There is also a tag called wms_layer_group (METADATA), which can create a more than 1 level deep structure. Best regards, Bart John Cole schreef: > Reading the WMS howto, I saw groups mentioned in the reference section, but > I'm a little confused. How can I get WMS layers to act like the mapserver > layers GROUP tag? > > Thanks, > > John > This email 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 email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl This email 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 email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From aaronr at Z-PULLEY.COM Wed Oct 4 07:36:15 2006 From: aaronr at Z-PULLEY.COM (Aaron Racicot) Date: Wed, 4 Oct 2006 07:36:15 -0700 Subject: logo company on mp... In-Reply-To: <200610041247.44062.walter@faunalia.com> Message-ID: Hi there Walter, You can create a symbol in your symbol file that will point to your logo image as a pixmap and reference it in a layer. You can also specify location in pixel coordinates via a FEATURE. Here is an example in the upper left corner with a transparent image: LAYER NAME "Logo" STATUS DEFAULT TYPE POINT TRANSFORM OFF METADATA "DESCRIPTION" "Logo" "GROUP" "Point" "LAYER" "Logo" "LAYER_VIS" "-1" END FEATURE POINTS 50 30 END END TRANSPARENCY ALPHA CLASS STYLE SYMBOL "logo" END END END Then from the symbol file: Symbol Name 'logo' Type PIXMAP Image 'logo.png' END Hope that helps! Aaron +----------------------------------------+ | 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 Walter Lorenzetti Sent: Wednesday, October 04, 2006 3:48 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] logo company on mp... Hi all, can someone help me? I want to put my logo company on the map for example on right bottom corner I read the mapserver map file specifications but i don't find anything on this argument How can I do it? If it's possible... Bye and thanks Walter -- Walter Lorenzetti email+jabber: walter at faunalia.it(com) www.faunalia.it(com) Piazza Garibaldi 5 56025 Pontedera (PI) Italy Tel: (+39)347-6597931 From warmerdam at POBOX.COM Wed Oct 4 07:49:10 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 4 Oct 2006 10:49:10 -0400 Subject: MySql Spatial Database In-Reply-To: <20061004135418.M95910@deprem.gov.tr> Message-ID: Murat BEYHAN wrote: > Dear Bart, > thank you for your advice. > I have tried the followings > > ogr2ogr -f MySQL MySQL:testogr,user=root,password=passmysql cities.shb -nln > iller -update -overwrite -lco GEOMETRY_NAME=SHAPE2 > > > This is creates 3 tables in mysql tables in testogr database. > the names of the tables are > geometry_columns, > cities, > spatial_ref_sys > > then I have doubt I have cities shape files the tail of the files are > shp shx sbn sbx these are esri files. I don't know Which one should be use > for this? Murat, In the above commandline you show cities.shb as the input. This should be cities.shp, perhaps this was just a typo if things worked? Generally speaking OGR depends on the .shp, .shx and .dbf file. The .sbn and .sbx spatial indexes are ignored. > And How can I connect and read data by using ogr connection from map file. You would use: CONNECTIONTYPE OGR CONNECTION "MySQL:testogr,user=root,password=passmysql" DATA "cities" for your layer. > I have an experiment if the data stored regularly as lat and lon in the table > I can read those for draw point. But My problem if I have polygone or line > data in mySql How can I read those data to create a layer on my map file by > using OGR. So I'm trying to use spatial database. Note that a true spatial table in MySQL is handled very differently from a table with lat and lon columns which is usually handled via ODBC and OVF. 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 | President OSGeo, http://osgeo.org From bartvde at OSGIS.NL Wed Oct 4 07:53:25 2006 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 4 Oct 2006 16:53:25 +0200 Subject: wms groups... Message-ID: John, this is not implemented in uDIG as far as I know. Check Gaia (http://www.thecarbonportal.net/), it should work there. Also check your WMS GetCapabilities response. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: John Cole Naar: 'Bart van den Eijnden OSGIS' Cc: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: RE: [UMN_MAPSERVER-USERS] wms groups... Datum: 04/10/06 12:27 > Bart, > I've done just that, and I can't see the groups in uDig 1.1rc4. Should > they show up? > > Thanks, > > John > > -----Original Message----- > From: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] > Sent: Tuesday, October 03, 2006 12:37 PM > To: John Cole > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] wms groups... > > You can just use GROUP, and then use wms_group_title IIRC. > > There is also a tag called wms_layer_group (METADATA), which can create > a more than 1 level deep structure. > > Best regards, > Bart > > John Cole schreef: > > Reading the WMS howto, I saw groups mentioned in the reference section, > but > > I'm a little confused. How can I get WMS layers to act like the mapserver > > layers GROUP tag? > > > > Thanks, > > > > John > > This email 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 email in error please notify the sender. This > message contains confidential information and is intended only for the > individual named. If you are not the named addressee you should not > disseminate, distribute or copy this e-mail. > > > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > This email 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 email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. > > From sschmitz at KARTAGO.DE Wed Oct 4 08:11:14 2006 From: sschmitz at KARTAGO.DE (Sebastian Schmitz) Date: Wed, 4 Oct 2006 17:11:14 +0200 Subject: Your mapfile configuration tool: MapStorer Message-ID: Hi, for your information: at FOSS4G in Lausanne we presented the Open Source project MapStorer and got very positive feedback. MapStorer is a database supported system for managing MapServer projects based on either MySQL or PostgreSQL. It is implemented in PHP 5 and JavaScript and allows users to create, configure and manage mapfiles on the fly using an intuitive frontend. It comes with a plug-in architecture that makes it easy to extend its functionality by writing new plug-ins. Alongside positive feedback, we also got a lot of surprised faces as many people did not know of the project beforehand, even though MapStorer adresses a common need - a mapfile configuration and management tool. Thus, I would hereby like to beat the drum for MapStorer on this mailing list and invite everyone to - get more information at http://www.mapstorer.org, - experience MapStorer at http://212.79.172.185/mapstorer/login.php (user: demo / password: demo), - download your copy from sourceforge and use it (release 0.7) (http://sourceforge.net/projects/mapstorer), - get the sources from Subversion and contribute code (Repository location: http://svn.sourceforge.net/svnroot/mapstorer), - get on the user list and ask questions (https://lists.sourceforge.net/lists/listinfo/mapstorer-users), - get on the developer list and discuss the evolution of MapStorer (https://lists.sourceforge.net/lists/listinfo/mapstorer-devel). Cheers Sebastian (for the MapStorer team) -- KARTA.GO Gesellschaft f?r raumbezogenes Informationsmanagement mbH Siemensstra?e 8 53121 Bonn Sebastian Schmitz Projektleiter fon: +49 (0) 228 / 9 45 99 91 fax: +49 (0) 228 / 9 45 99 93 sschmitz at kartago.de http://www.kartago.de ________________________________________________________ From dmorissette at MAPGEARS.COM Wed Oct 4 08:29:46 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 4 Oct 2006 11:29:46 -0400 Subject: INCLUDE In-Reply-To: <4523C2C0.5060109@terrestris.de> Message-ID: Windows or Linux server? Do you also get an internal server error if you do a GetCapabilities? Daniel Till Adams wrote: > Dear list, > > I'm playing around with that new mapserver INCLUDE parameter and UMN > v4.10 beta3 > > Requesting for a map via the WMS getmap all I get is an "internal server > error" > > My Mapfile starts "normal" and ends like that: > > MAP > > [............] > > > #------------------------------------------------------------------------------ > > # Start of Legend > #------------------------------------------------------------------------------ > > > LEGEND > STATUS ON > KEYSIZE 20 10 > LABEL > COLOR 0 0 0 > TYPE TRUETYPE > FONT arial > SIZE 9 > END # ENDE LABEL > END #LEGEND > > #------------------------------------------------------------------------------- > > # Start of layer definitions # > #------------------------------------------------------------------------------- > > > > INCLUDE "riv.map" > > #------------------------------------------------------------------------------- > > END #End of Mapfile > #------------------------------------------------------------------------------- > > > In the nclude I have the complete layer definition. As one file the > mapfile with that request works. > Is the syntax correct or is it not possible to include files wherever I > want to?? > > Till > -- Daniel Morissette http://www.mapgears.com/ From jayzee.smith at GMAIL.COM Wed Oct 4 08:37:45 2006 From: jayzee.smith at GMAIL.COM (John Smith) Date: Wed, 4 Oct 2006 11:37:45 -0400 Subject: convert img.x to minx or maxx or mapext or imgext? In-Reply-To: Message-ID: guys, i tried plotting sample coordinates to get some relationship factor. no luck. you'd think imgext to be a subset of mapext, but it's not. anyway, why am i sweating you ask? i want to make my own rubber band and there is no plug-and-play script out there unless i am missing something. so what is the relationship between imgext and mapext? jzs On 10/4/06, John Smith wrote: > > hi guys! > the subject says it all > jzs -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidvaz at NCC.UP.PT Wed Oct 4 08:56:16 2006 From: davidvaz at NCC.UP.PT (davidvaz) Date: Wed, 4 Oct 2006 16:56:16 +0100 Subject: mapserver-4.10.0-rc1 Message-ID: Hi, I have compiled this version to try the new "ANGLE FOLLOW" feature in LABEL. Using shp2img it works and it is a very nice feature. The problem is that when I tried to use it with php-mapscript I received the following error: *Warning*: [MapServer Error]: getSymbol(): Parsing error near (FOLLOW) I believe that it might have been something forgotten. regards, David Vaz ** -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: OpenPGP digital signature URL: From sandeepkumar.jakkaraju at GMAIL.COM Wed Oct 4 09:23:43 2006 From: sandeepkumar.jakkaraju at GMAIL.COM (Sandeep Kumar Jakkaraju) Date: Wed, 4 Oct 2006 21:53:43 +0530 Subject: How to get screen co-ordinates (pixels) from geographic co-ordinates Message-ID: My problem is I have a shp file in which is unprojected .. in lon,lat co-ordinates I create an image from that shapefile ..using php mapscript... I have a gps coordinates of a point in (lon,lat) ... i want its corresponding pixels in that image ... like (500,500) Thanx -- Sandeep Kumar Jakkaraju WeBlog: http://jakkarajus.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From punkish at EIDESIS.ORG Wed Oct 4 09:48:29 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Wed, 4 Oct 2006 11:48:29 -0500 Subject: convert img.x to minx or maxx or mapext or imgext? In-Reply-To: Message-ID: John, There are tons of rubber band implementations out there... grab one, pore through the code, ask the author for help, etc. In the meantime, a little primer here -- img.x|y are the coordinates generated by the browser based on your mouseclick on an image that is inside a form element. They really have no direct connection to the imgext (pixelspace) or mapext (realworldspace) other than they happen to be within those bounds. Since you know the extent of the real world that your map is showing, and the size of the image that makes up that map, provided your coordinate system is cartesian, you can map one to the other and calculate back and forth. You can do so on the server-side, or you can do so on the client side (within Javascript), thereby showing "live coords" below the map image as the user moves the mouse around over the image of the map. On 10/4/06, John Smith wrote: > guys, > i tried plotting sample coordinates to get some relationship factor. no > luck. you'd think imgext to be a subset of mapext, but it's not. > > anyway, why am i sweating you ask? i want to make my own rubber band and > there is no plug-and-play script out there unless i am missing something. > > so what is the relationship between imgext and mapext? > jzs > > > On 10/4/06, John Smith wrote: > > hi guys! > > the subject says it all > > jzs > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From dmorissette at MAPGEARS.COM Wed Oct 4 09:53:38 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 4 Oct 2006 12:53:38 -0400 Subject: mapserver-4.10.0-rc1 In-Reply-To: <4523D9A0.1020703@ncc.up.pt> Message-ID: davidvaz wrote: > > I have compiled this version to try the new "ANGLE FOLLOW" feature in > LABEL. Using shp2img it works and it is a very nice feature. The problem > is that when I tried to use it with php-mapscript I received the > following error: > > *Warning*: [MapServer Error]: getSymbol(): Parsing error near (FOLLOW) > > I believe that it might have been something forgotten. > What does your script do? Does it just load the map and then call $map->draw()? The code to parse a mapfile is the same whether it's called from the mapserv CGI or from PHP MapScript, so in theory if it works for one it should work for the other. Perhaps make sure your php_mapscript.so (or .dll) is up to date, you can call ms_getVersion() after loading php_mapscript to check that. Also if your build uses dynamic linking then make sure you do not have two copies of libmapserver.so (or .dll) lying around. Daniel -- Daniel Morissette http://www.mapgears.com/ From woodbri at SWOODBRIDGE.COM Wed Oct 4 09:55:33 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 4 Oct 2006 12:55:33 -0400 Subject: mapserver-4.10.0-rc1 In-Reply-To: <4523D9A0.1020703@ncc.up.pt> Message-ID: davidvaz wrote: > Hi, > > I have compiled this version to try the new "ANGLE FOLLOW" feature in > LABEL. Using shp2img it works and it is a very nice feature. The problem > is that when I tried to use it with php-mapscript I received the > following error: > > *Warning*: [MapServer Error]: getSymbol(): Parsing error near (FOLLOW) > > I believe that it might have been something forgotten. Yup, you need to make sure to build php/mapscript AND copy the php_mapscript.so to the appropriate extensions directory. If you are not sure where that is, create an info.php file that has in it and put it in your web tree and run it via your browser. -Steve From davidvaz at NCC.UP.PT Wed Oct 4 10:24:54 2006 From: davidvaz at NCC.UP.PT (davidvaz) Date: Wed, 4 Oct 2006 18:24:54 +0100 Subject: mapserver-4.10.0-rc1 In-Reply-To: <4523E712.9020202@mapgears.com> Message-ID: Daniel Morissette wrote: > davidvaz wrote: >> >> I have compiled this version to try the new "ANGLE FOLLOW" feature in >> LABEL. Using shp2img it works and it is a very nice feature. The problem >> is that when I tried to use it with php-mapscript I received the >> following error: >> >> *Warning*: [MapServer Error]: getSymbol(): Parsing error near (FOLLOW) >> >> I believe that it might have been something forgotten. >> > > What does your script do? Does it just load the map and then call > $map->draw()? > > The code to parse a mapfile is the same whether it's called from the > mapserv CGI or from PHP MapScript, so in theory if it works for one it > should work for the other. Perhaps make sure your php_mapscript.so (or > .dll) is up to date, you can call ms_getVersion() after loading > php_mapscript to check that. Also if your build uses dynamic linking > then make sure you do not have two copies of libmapserver.so (or .dll) > lying around. > > Daniel I might have explained myself in a wrong way. All the code worked before, using mapserver-3.8.3, and if I comment out the "ANGLE FOLLOW" it works in this version. I am using ka-map (http://ka-map.maptools.org/) as a front-end of mapserver. So I believe it is not a problem of installation or php code. David -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: OpenPGP digital signature URL: From jmckenna at DMSOLUTIONS.CA Wed Oct 4 11:37:35 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 4 Oct 2006 14:37:35 -0400 Subject: INCLUDE In-Reply-To: <4523D36A.2000204@mapgears.com> Message-ID: Hello Till! Note that when I was testing beta2 on Windows I had to use a full path to the included file (or I would get that internal server error. jeff > > Till Adams wrote: >> Dear list, >> >> I'm playing around with that new mapserver INCLUDE parameter and UMN >> v4.10 beta3 >> >> Requesting for a map via the WMS getmap all I get is an "internal >> server error" >> >> My Mapfile starts "normal" and ends like that: >> >> MAP >> >> [............] >> >> >> #------------------------------------------------------------------------------ >> >> # Start of Legend >> #------------------------------------------------------------------------------ >> >> >> LEGEND >> STATUS ON >> KEYSIZE 20 10 >> LABEL >> COLOR 0 0 0 >> TYPE TRUETYPE >> FONT arial >> SIZE 9 >> END # ENDE LABEL >> END #LEGEND >> >> #------------------------------------------------------------------------------- >> >> # Start of layer definitions # >> #------------------------------------------------------------------------------- >> >> >> >> INCLUDE "riv.map" >> >> #------------------------------------------------------------------------------- >> >> END #End of Mapfile >> #------------------------------------------------------------------------------- >> >> >> In the nclude I have the complete layer definition. As one file the >> mapfile with that request works. >> Is the syntax correct or is it not possible to include files wherever >> I want to?? >> >> Till >> > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From kobben at ITC.NL Wed Oct 4 11:52:01 2006 From: kobben at ITC.NL (Barend K=?ISO-8859-1?B?9g==?=bben) Date: Wed, 4 Oct 2006 20:52:01 +0200 Subject: MySql Spatial Database In-Reply-To: <4523C9E6.9010409@pobox.com> Message-ID: Hi Murat and others, For use with MySQL in our "RIMapper" project, I have made a quick and dirty mysql version of "shp2pgsql.exe", not surprisingly called "shp2mysql.exe" I didn't test it much in other data and schemas then our own, but it should work in most cases. You can find it on http://kartoweb.itc.nl/RIMapper/ __ Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 From dmorissette at MAPGEARS.COM Wed Oct 4 12:10:29 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 4 Oct 2006 15:10:29 -0400 Subject: mapserver-4.10.0-rc1 In-Reply-To: <4523EE66.9060300@ncc.up.pt> Message-ID: davidvaz wrote: > Daniel Morissette wrote: >> >> The code to parse a mapfile is the same whether it's called from the >> mapserv CGI or from PHP MapScript, so in theory if it works for one it >> should work for the other. Perhaps make sure your php_mapscript.so (or >> .dll) is up to date, you can call ms_getVersion() after loading >> php_mapscript to check that. Also if your build uses dynamic linking >> then make sure you do not have two copies of libmapserver.so (or .dll) >> lying around. >> >> Daniel > > I might have explained myself in a wrong way. All the code worked > before, using mapserver-3.8.3, and if I comment out the "ANGLE FOLLOW" > it works in this version. I am using ka-map > (http://ka-map.maptools.org/) as a front-end of mapserver. > So I believe it is not a problem of installation or php code. > If it used to work before and if it works without the "ANGLE FOLLOW" in the mapfile then you're right that it's probably not a problem in the PHP code. Given the information we have, the most likely cause would still be an installation problem. I'd suggest that you try calling ms_GetVersion() after the call that loads php_mapscript.so to make sure that you are really using the version of php_mapscript.so that you think you are using. Daniel -- Daniel Morissette http://www.mapgears.com/ From davidvaz at NCC.UP.PT Wed Oct 4 12:15:47 2006 From: davidvaz at NCC.UP.PT (davidvaz) Date: Wed, 4 Oct 2006 20:15:47 +0100 Subject: mapserver-4.10.0-rc1 In-Reply-To: <45240725.2050003@mapgears.com> Message-ID: Daniel was right, in fact the hole problem was apache, after a reload it worked. Even though I had the right version installed, apache was still using the old one. Sorry :-[ Thanks for the help David -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: OpenPGP digital signature URL: From mijnlief at XS4ALL.NL Wed Oct 4 12:49:34 2006 From: mijnlief at XS4ALL.NL (Arie Mijnlieff) Date: Wed, 4 Oct 2006 21:49:34 +0200 Subject: Mapscript adding class with PHP In-Reply-To: <5958F6B0C15AFE449245A966FB967B58074FEC@rws-s001000.ad.rws.nl> Message-ID: Bart ! That clearifies a lot. I didn't know i could save the mapfile. The problem was that my new class was the last one in the layer. It was after: CLASS NAME "Other Countries" EXPRESSION ('[NAME]' ne 'Canada') METADATA END STYLE ANGLE 360 COLOR 200 200 200 OUTLINECOLOR 100 100 100 SYMBOL 0 END STYLE ANGLE 360 COLOR 100 100 100 OUTLINECOLOR 255 255 255 SYMBOL 0 END END So i added in php: $this_layer->moveclassup(2); Then i changed the expression of the Other Countries Class $myclass = $this_layer->getClass(2); $myclass->setExpression("(('[NAME]' ne 'Canada') AND ('[NAME]' ne 'Chad'))"); That was it. Thanks a lot ! Arie On 4-okt-2006, at 11:25, Eijnden, Bart van den (AGI) wrote: > Arie, > > can you save your MAP using > > $map->save(''); > > ? > > And post the output LAYER definition? > > Also, have you set CLASSITEM on your LAYER? > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: Arie Mijnlieff [mailto:mijnlief at xs4all.nl] > Verzonden: woensdag 4 oktober 2006 11:03 > Aan: Eijnden, Bart van den (AGI) > CC: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] Mapscript adding class with PHP > > > Bart ! > > My code is now: > > $this_layer = $map->getLayerByName('countries'); > > $new_class = ms_newClassObj($this_layer); > > $new_class->setExpression('Russia'); > $new_class->set('name','Russia'); > $new_class->label->outlinecolor->setRGB(255,255,255); > $new_class->label->set(minfeaturesize,40); > $new_style = ms_newStyleObj($new_class); > $new_style->color->setRGB(100,100,100); > $new_style->outlinecolor->setRGB(255,255,255); > > $img=$map->draw(); > > $img->saveImage("/var/www/html/mapdemo/images/test.jpg"); > > Doesnt work however.. > > I really appreciate your help ! > > Arie > > On 4-okt-2006, at 10:06, Eijnden, Bart van den (AGI) wrote: > >> Arie, >> >> you can best use a style object. Example: >> >> $oClass = ms_newClassObj($oLayer); >> $oStyle = ms_newStyleObj($oClass); >> >> $aColor[0] = 0; >> $aColor[1] = 0; >> $aColor[2] = 0; >> if ($HTTP_FORM_VARS["COLOR"]!= "") >> $aColor = explode(",", $HTTP_FORM_VARS["COLOR"]); >> >> $oStyle->color->setRGB($aColor[0], $aColor[1], $aColor[2]); >> >> Best regards, >> Bart >> >> -----Oorspronkelijk bericht----- >> Van: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Arie Mijnlieff >> Verzonden: woensdag 4 oktober 2006 10:06 >> Aan: MAPSERVER-USERS at LISTS.UMN.EDU >> Onderwerp: Re: [UMN_MAPSERVER-USERS] Mapscript adding class with PHP >> >> >> Hi Murat ! >> >> No this doesnt solve the problem: >> >> PHP Fatal error: Call to a member function on a non-object in /var/ >> www/html/mapdemo/bulgaria/test.php on line 13 >> >> color is not an attribute of the class object.. Maybe i should try to >> define a new layer with php for each country that i would like to >> paint.. >> >> Thanks for your suggestion ! >> >> Arie >> >> On 4-okt-2006, at 8:38, Murat BEYHAN wrote: >> >>> Hi Arie, >>> >>> please try the following in yor php script, >>> I'm new on PhpMapscript so. I hope this solve your problem >>> >>> >>> >>> >>> >>>> $new_class = ms_newClassObj($this_layer); >>>> $new_class->setExpression('Australia'); >>>> $new_class->set('name','Australia'); >>> $new_class->color->setRGB(255,0,0);////////////////here you >>> should add >>>> $new_class->label->outlinecolor->setRGB(255,255,255); >>>> $new_class->label->set(minfeaturesize,40); >>> >>> regards >>> >>> Murat >>> >>> On Tue, 3 Oct 2006 21:35:33 +0200, Arie Mijnlieff wrote >>>> Hi, >>>> >>>> I want to show countries in my world map based on a form with >>>> checkboxes. >>>> >>>> If I check Argentina and Australia i would like to show both >>>> countries in red, whereas the other are in another color. If i >>>> change the selection in Australia and India i would like Australia >>>> and India to be red. >>>> >>>> I have a .map file with a layer called countries. In that layer i >>>> have a class: >>>> >>>> CLASS # Start of CLASS object >>>> NAME 'Argentina' >>>> EXPRESSION 'Argentina' >>>> OUTLINECOLOR 100 100 100 >>>> COLOR 255 255 150 >>>> LABEL >>>> SIZE LARGE >>>> OUTLINECOLOR 255 255 255 >>>> MINFEATURESIZE 40 >>>> END >>>> END # End of CLASS object >>>> >>>> So i thought if Australia is checked, i add a class object to my >>>> layer using php with the same colors: >>>> >>>> $new_class = ms_newClassObj($this_layer); >>>> $new_class->setExpression('Australia'); >>>> $new_class->set('name','Australia'); >>>> $new_class->label->outlinecolor->setRGB(255,255,255); >>>> $new_class->label->set(minfeaturesize,40); >>>> >>>> Australia will not be red however. I do not understand how i can >>>> change the color of my new class. I succeeded only to change the >>>> color of the label.. What do i do wrong ? >>>> >>>> If i change the color of an existing class i can see that change >>>> however.. >>>> >>>> $my_class = $this_layer->getClass(0); >>>> $my_class->setExpression('Australia'); >>>> $my_class->set('name','Australia'); >>>> >>>> Any help will be appreciated !! >>>> >>>> Arie >>>> >>>> -- >>>> This message has been scanned for viruses and >>>> dangerous content by MailScanner, and is >>>> believed to be clean. >>> >>> >>> -- >>> Open WebMail Project (http://openwebmail.org) >>> >>> >>> -- >>> This message has been scanned for viruses and >>> dangerous content by MailScanner, and is >>> believed to be clean. >>> >> >> >> Disclaimer >> ********************************************************************* >> * >> ** >> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per >> abuis >> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >> informeren. Wij adviseren u om bij twijfel over de juistheid of de >> volledigheid van de mail contact met afzender op te nemen. >> >> This message shall not constitute any rights or obligations. >> This message is intended solely for the addressee. >> If you have received this message in error, please delete it and >> notify the sender immediately. When in doubt whether this message >> is correct or complete, please contact the sender. >> ********************************************************************* >> * >> ** >> >> > > > > Disclaimer > ********************************************************************** > ** > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ********************************************************************** > ** > > > From funkbucket at GMAIL.COM Wed Oct 4 14:49:04 2006 From: funkbucket at GMAIL.COM (B Tuttle) Date: Wed, 4 Oct 2006 15:49:04 -0600 Subject: Question about wms and mapfile location/restriction Message-ID: Hi all- Part1- So far to use wms I have to have the mapfile in the same direcotry as mapserv. Any thoughts on how to set it up so I can have my mapfile in a differnet location? Part 2- I need to set up my server so some mapfiles are available to anyone and some are password restricted. Is there a way to use a config file or multiple instances of mapserv to suggest what mapfile (or direcotry hieracrhies) it can access? Any help would be greatly appreciated. From Tom.Kralidis at EC.GC.CA Wed Oct 4 14:59:08 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 4 Oct 2006 17:59:08 -0400 Subject: Question about wms and mapfile location/restriction Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of B Tuttle > Sent: 04 October, 2006 5:49 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Question about wms and mapfile > location/restriction > > Hi all- > > Part1- > So far to use wms I have to have the mapfile in the same > direcotry as mapserv. Any thoughts on how to set it up so I > can have my mapfile in a differnet location? > You can have the mapfile anywhere on the filesystem, and refer to it in your WMS server URL as: http://host/cgi-bin/mapserv?map=/path/to/mapfile.map This is a legal OGC WMS server URL, which would be visible in your Capabilities XML. Note you can also hide the mapfile location if you wish (see: http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-onlin e-resource-url for more info). > Part 2- > I need to set up my server so some mapfiles are available > to anyone and some are password restricted. Is there a way to > use a config file or multiple instances of mapserv to suggest > what mapfile (or direcotry hieracrhies) it can access? > You can use multiple instances of mapserv and apply authentication rules to them via your web server configuration. Or, you can use the new Mapscript WxS API, which allows for the OGC specs API to be exposed through scripting languages like python, perl, php, and java. The API will allow you to work in between the request / response chain. Here you can develop an authentication layer of sorts. See http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript for more info. This is relatively new functionality in MapServer/mapscript and not extensively tested. > Any help would be greatly appreciated. > From ruckc at YAHOO.COM Wed Oct 4 15:48:41 2006 From: ruckc at YAHOO.COM (Curtis W. Ruck) Date: Wed, 4 Oct 2006 15:48:41 -0700 Subject: MapServer Website - Documentation issue Message-ID: When I try to view the Documentation on the mapserver.gis.umn.edu/docs website i get the following error message: Documentation Document Actions Documentation for the MapServer project There are contained help center object types, but none are viewable because of their permission settings. Powered by Plone Help Center I am logged in as a user, and i get this. Also without being logged in I get it. Curtis -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminsims at YAHOO.COM Wed Oct 4 17:15:00 2006 From: benjaminsims at YAHOO.COM (Ben Sims) Date: Wed, 4 Oct 2006 17:15:00 -0700 Subject: malloc() problem using PHP/MapScript Message-ID: Update: The error has changed slightly after some minor application changes. I have also experimented with running a test script using the same code through the gdb debugger. If it might give anybody any clues, here is the backtrace: *** glibc detected *** free(): invalid next size (fast): 0x08e825c0 *** Program received signal SIGABRT, Aborted. [Switching to Thread -1208609088 (LWP 5405)] 0x008527a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 (gdb) backtrace #0 0x008527a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00892905 in raise () from /lib/tls/libc.so.6 #2 0x008942b9 in abort () from /lib/tls/libc.so.6 #3 0x008c61ca in __libc_message () from /lib/tls/libc.so.6 #4 0x008cc6a8 in _int_free () from /lib/tls/libc.so.6 #5 0x008ccc7a in free () from /lib/tls/libc.so.6 #6 0x0076fe99 in shapeObj_destroy () from /usr/lib/php4/php_mapscript.so #7 0x0075b8bb in php3_ms_free_shape () from /usr/lib/php4/php_mapscript.so #8 0x081324d5 in list_entry_destructor (ptr=0x8e82494) at /tmp/php-4.4.4/Zend/zend_list.c:177 #9 0x08131196 in zend_hash_del_key_or_index (ht=0x8188440, arKey=0x0, nKeyLength=0, h=79, flag=1) at /tmp/php-4.4.4/Zend/zend_hash.c:529 #10 0x081322e4 in _zend_list_delete (id=79) at /tmp/php-4.4.4/Zend/zend_list.c:56 #11 0x08124f45 in _zval_ptr_dtor (zval_ptr=0x8e75cc8) at /tmp/php-4.4.4/Zend/zend_execute_API.c:289 #12 0x0813128c in zend_hash_destroy (ht=0x8e7588c) at /tmp/php-4.4.4/Zend/zend_hash.c:558 #13 0x0812c642 in _zval_dtor (zvalue=0xbfead600) at /tmp/php-4.4.4/Zend/zend_variables.c:60 #14 0x08137a23 in zend_assign_to_variable (result=0x8da2508, op1=0x8da2518, op2=0x8da2528, value=0x8e824b4, type=4, Ts=0xbfead640) at /tmp/php-4.4.4/Zend/zend_execute.c:462 ---Type to continue, or q to quit--- #15 0x0813c05b in execute (op_array=0x8da103c) at /tmp/php-4.4.4/Zend/zend_execute.c:1393 #16 0x0813c9c1 in execute (op_array=0x8d4b894) at /tmp/php-4.4.4/Zend/zend_execute.c:1719 #17 0x0813c9c1 in execute (op_array=0x8c84144) at /tmp/php-4.4.4/Zend/zend_execute.c:1719 #18 0x0812d903 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /tmp/php-4.4.4/Zend/zend.c:934 #19 0x08105e18 in php_execute_script (primary_file=0xbfeb2d00) at /tmp/php-4.4.4/main/main.c:1752 #20 0x08145dbf in main (argc=2, argv=0xbfeb2dc4) at /tmp/php-4.4.4/sapi/cli/php_cli.c:832 Help! ----- Original Message ---- From: Ben Sims To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, 4 October, 2006 10:48:48 AM Subject: [UMN_MAPSERVER-USERS] malloc() problem using PHP/MapScript Hello to all, I have an application which uses PHP/MapScript to draw basic maps. It works fine on my development machine (Mac OSX using precompiled libraries and a recently compiled version of the latest PHP source). I recently tried to transfer it to a production server: Scientific Linux (basically Red Hat) Apache 2.0.52 PHP compiled from most recent source Most graphic libraries installed using yum Geographic specific libraries (GEO, GDAL, PROJ4, taken from FWTools) - note that I had to move libproj.so.0 into the /usr/lib directory, and also libstdc++.5, since this system had libstdc++.6 Running the page which is supposed to draw maps, instead of displaying the page I am asked if I want to download it. So, I at first thought it was merely something to do with Apache configuration. However, I note that although shape files have been generated, the image files for the map have not. Looking in the Apache error log, there is the following: *** glibc detected *** malloc(): memory corruption: 0x094501c8 *** [Wed Oct 04 10:37:57 2006] [notice] child pid 7507 exit signal Aborted (6) There are also various PHP Notice errors, although these are the sort of thing I would usually ignore and am not sure they are related. Could anyone advise me as to how to deal with this problem, or get more information? Thanks, Benjamin ___________________________________________________________ Try the all-new Yahoo! Mail. "The New Version is radically easier to use" ? The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html ___________________________________________________________ Try the all-new Yahoo! Mail. "The New Version is radically easier to use" ? The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html From warmerdam at POBOX.COM Wed Oct 4 18:34:24 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 4 Oct 2006 21:34:24 -0400 Subject: malloc() problem using PHP/MapScript In-Reply-To: <20061005001501.54817.qmail@web35613.mail.mud.yahoo.com> Message-ID: Ben Sims wrote: > Update: > > The error has changed slightly after some minor application changes. I have also experimented with running a test script using the same code through the gdb debugger. If it might give anybody any clues, here is the backtrace: > > *** glibc detected *** free(): invalid next size (fast): 0x08e825c0 *** Ben, My understanding is that PHP MapScript is prone to conflicting versions of some libraries between PHP and MapScript (such as GD, etc) which might be responsible. I see you are building against FWTools. That works most smoothly when you can depend quite entirely on the FWTools libraries which includes stuff like libz, libpng, etc that may conflict in version with stuff already on your system (and linked into PHP). I would encourage you to try FGS (http://www.maptools.org) as a way of getting prebuilt binaries with PHP MapScript support. If that fixes your problem but is inadequate for your needs for some other reason, I think you would be best off building all the FWTools components you need yourself. Sorry... 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 | President OSGeo, http://osgeo.org From mario.basa at GMAIL.COM Wed Oct 4 22:17:26 2006 From: mario.basa at GMAIL.COM (Mario Basa) Date: Thu, 5 Oct 2006 14:17:26 +0900 Subject: mapserver-4.10.0-rc1 and Java Mapscript Message-ID: I have been getting errors like these: java.lang.NoSuchFieldError: field edu.umn.gis.mapscript.mapscriptConstants.MS_SHAPE_POLYGON was not found. java.lang.NoSuchFieldError: field edu.umn.gis.mapscript.mapscriptConstants.MS_SHAPE_POINT was not found. when using Java Mapscript from rc1. This never happened with beta3 nor with mapserver-4.8.4. Are these constants been deprecated? Thanks. mario. From beyhan at DEPREM.GOV.TR Wed Oct 4 23:23:31 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Thu, 5 Oct 2006 09:23:31 +0300 Subject: MySql Spatial Database In-Reply-To: <4523C9E6.9010409@pobox.com> Message-ID: Dear Frank, Thank you very much for your advice. Now I store various kind of data in mysql database than I connect to database and read data and draw layers on the map. It's really fantastic. Thank you to mapserver,too. Regards... Murat On Wed, 4 Oct 2006 10:49:10 -0400, Frank Warmerdam wrote > Murat BEYHAN wrote: > > Dear Bart, > > thank you for your advice. > > I have tried the followings > > > > ogr2ogr -f MySQL MySQL:testogr,user=root,password=passmysql cities.shb -nln > > iller -update -overwrite -lco GEOMETRY_NAME=SHAPE2 > > > > > > This is creates 3 tables in mysql tables in testogr database. > > the names of the tables are > > geometry_columns, > > cities, > > spatial_ref_sys > > > > then I have doubt I have cities shape files the tail of the files are > > shp shx sbn sbx these are esri files. I don't know Which one should be use > > for this? > > Murat, > > In the above commandline you show cities.shb as the input. This should > be cities.shp, perhaps this was just a typo if things worked? Generally > speaking OGR depends on the .shp, .shx and .dbf file. The .sbn and .sbx > spatial indexes are ignored. > > > And How can I connect and read data by using ogr connection from map file. > > You would use: > > CONNECTIONTYPE OGR > CONNECTION "MySQL:testogr,user=root,password=passmysql" > DATA "cities" > > for your layer. > > > I have an experiment if the data stored regularly as lat and lon in the table > > I can read those for draw point. But My problem if I have polygone or line > > data in mySql How can I read those data to create a layer on my map file by > > using OGR. So I'm trying to use spatial database. > > Note that a true spatial table in MySQL is handled very differently from > a table with lat and lon columns which is usually handled via ODBC > and OVF. > > 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 | President OSGeo, http://osgeo.org > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From laura.diaz at IVER.ES Wed Oct 4 23:24:59 2006 From: laura.diaz at IVER.ES (=?ISO-8859-1?Q?Laura_D=EDaz_S=E1nchez?=) Date: Thu, 5 Oct 2006 08:24:59 +0200 Subject: wms groups... In-Reply-To: <4523D5FB.9070601@sg.uji.es> Message-ID: Hi John, you can try gvSIG application as well: http://www.gvsig.gva.es/index.php?id=gvsig&L=2 as a thick GIS client it lets you connect to WMS, supporting the layer grouping, you can try it with mapserver and other WMS implementations. best regards, Laura. Bart van den Eijnden (OSGIS) wrote: >> John, >> >> this is not implemented in uDIG as far as I know. >> >> Check Gaia (http://www.thecarbonportal.net/), it should work there. >> >> Also check your WMS GetCapabilities response. >> >> Best regards, >> Bart >> >> -- >> Bart van den Eijnden >> OSGIS, Open Source GIS >> http://www.osgis.nl >> >> >> --------- Oorspronkelijk bericht -------- >> Van: John Cole >> Naar: 'Bart van den Eijnden OSGIS' >> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> Onderwerp: RE: [UMN_MAPSERVER-USERS] wms groups... >> Datum: 04/10/06 12:27 >> >> >>> Bart, >>> I've done just that, and I can't see the groups in uDig 1.1rc4. >>> Should >>> they show up? >>> >>> Thanks, >>> >>> John >>> >>> -----Original Message----- >>> From: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] Sent: >>> Tuesday, October 03, 2006 12:37 PM >>> To: John Cole >>> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] wms groups... >>> >>> You can just use GROUP, and then use wms_group_title IIRC. >>> >>> There is also a tag called wms_layer_group (METADATA), which can >>> create a more than 1 level deep structure. >>> >>> Best regards, >>> Bart >>> >>> John Cole schreef: >>> > Reading the WMS howto, I saw groups mentioned in the reference >>> >> section, >> >>> but >>> > I'm a little confused. How can I get WMS layers to act like the >>> >> mapserver >> >>> > layers GROUP tag? >>> > >>> > Thanks, >>> > >>> > John >>> > This email 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 email in error please notify the sender. This >>> message contains confidential information and is intended only for the >>> individual named. If you are not the named addressee you should not >>> disseminate, distribute or copy this e-mail. >>> > >>> > >>> > >>> >>> -- >>> Bart van den Eijnden >>> OSGIS, Open Source GIS >>> http://www.osgis.nl >>> This email 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 email in error please notify the sender. This >> message contains confidential information and is intended only for the >> individual named. If you are not the named addressee you should not >> disseminate, distribute or copy this e-mail. >> >>> >> >> >> > > From umberto.nicoletti at GMAIL.COM Thu Oct 5 02:31:50 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 5 Oct 2006 11:31:50 +0200 Subject: mapserver-4.10.0-rc1 and Java Mapscript In-Reply-To: <8efeb4a80610042217s3b93959ct34763a439e21a8b0@mail.gmail.com> Message-ID: Sorry for the breakage... This was changed between rc1 and rc2 and is a side-effect of swig requirements upgrade to at least 1.3.28 (recent swigs attempt to introduce proper enum simulation in Java wrappers). Constants are now in separate classes, one for each named enum (for example MS_LAYER_TYPE and MS_SHAPE_TYPE). Anonymous enums are still in mapscriptConstants. There is a note about this in mapscript/java/README and in MIGRATION_GUIDE.TXT. You can revert to ol'good interface by uncommenting line 6 in javamodule.i. HTH, Umberto On 10/5/06, Mario Basa wrote: > I have been getting errors like these: > > > java.lang.NoSuchFieldError: field > edu.umn.gis.mapscript.mapscriptConstants.MS_SHAPE_POLYGON was not > found. > > java.lang.NoSuchFieldError: field > edu.umn.gis.mapscript.mapscriptConstants.MS_SHAPE_POINT was not found. > > > when using Java Mapscript from rc1. This never happened with beta3 nor > with mapserver-4.8.4. Are these constants been deprecated? > > Thanks. > > mario. > From beyhan at DEPREM.GOV.TR Thu Oct 5 06:28:26 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Thu, 5 Oct 2006 16:28:26 +0300 Subject: Create a polygon layer using PHPMAPSCRIPT In-Reply-To: <75b4b93e0610050231m22f3bf9y54b965c7c2d85def@mail.gmail.com> Message-ID: Dear Friends; I would like to make a polygon layer by using phpmapscript. By the following php code code its not create any error. But the layer could not be vieved on the map. Actually I would like to make an expression that only one border of the district will be drawn on the map since you selected the name of the district from the database and there are two way to draw layer of the polygon, one is to send the name of the district to the map and onether is create the layer for that district on php. Am I rigth? I really don't have any idea which way is acceptable for that. On the map file the layer for the whole districts already drawn by the following LAYER # ilceler NAME district DATA tr_ilce_siniri_dd STATUS on TYPE LINE CLASSITEM "ILCE_AD" CLASS NAME "ILCE SINIRLARI" ### expression ('[il_adi]' eq '$iladi) COLOR 211 211 211 OUTLINECOLOR 230 230 250 END # end of States class object END # end of layer object But I would like to draw a district highlighted on the map in order to see easily than other district. By using expression it is easy but The name of the district will be a variable on php. Users on the net for accessing to draw their district. The name of the district comes to php code as $iladi by querying mysql select expression.then the name of the district will be hihglighted on the map. I have tried the following but I couldn't construct how I will create polygone layer on the php mapscript any idea will be appreciated... Thankyou Murat $layer = ms_newLayerObj($map); $layer->set("name", "polygon"); $layer->set("data", "tr_ilce_siniri_dd"); $layer->set("type", MS_LAYER_POLYGON); $layer->set("status", MS_ON); $class = ms_newClassObj($layer); $class->set("status", MS_ON); $class->setExpression("'[ilce_ad]' EQ $ilceadi"); $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( 'cline')); $style->set("size", 8); $style->color->setRGB( 200,200,200); $style->outlinecolor->setRGB(255, 255, 255); -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From beyhan at DEPREM.GOV.TR Thu Oct 5 06:53:54 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Thu, 5 Oct 2006 16:53:54 +0300 Subject: MySql Spatial Database In-Reply-To: <4523C9E6.9010409@pobox.com> Message-ID: Frank, I'm really getting love mapserver. Its easy to learn and to do any kind of powerful map. But There is another problem.I store the data in the mysql and draw it but How can I query data stored in mysql by using ogr. I mean how can I send variable from php to OGR I would like to make select statement for the ogr. But How? By following expression I can draw point layer. But the data are not in spatial database. They are Just table and I read the column from table for lat lon and by using connectiontype ogr connection I can draw point. My second issiu to draw polygone layer stored in Mysql spatial database. OK O have succeeded to do, too. And third issiu to draw only one district which data stored in Mysql spatial databese. So I think I have to construct one select statement as follows but How can I construct select statement for the mysql spatial database. I dont have any experiences. Could you give me some point about that. If I could this I can finalize my study then will be ready to publish it on the net. Regards Murat MYSQL:bina,user=root,password=mysql_123,host=localhost,port=3306,tables=zoneson SELECT lat,lon,koyadi from zoneson wkbPoint ~ On Thu, 05 Oct 2006 09:41:41 -0400, Frank Warmerdam wrote > Murat BEYHAN wrote: > > Dear Frank, > > Thank you very much for your advice. > > Now I store various kind of data in mysql database than I connect to database > > and read data and draw layers on the map. It's really fantastic. Thank you to > > mapserver,too. > > Murat, > > It is great to hear you have been successful. > > 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 | President OSGeo, http://osgeo.org > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From Tom.Kralidis at EC.GC.CA Thu Oct 5 06:54:53 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 5 Oct 2006 09:54:53 -0400 Subject: anyone know what happened to the documentation? Message-ID: When I click the docs tab off the main site: http://mapserver.gis.umn.edu/docs I get an empty-ish page with: "There are contained help center object types, but none are viewable because of their permission settings." Any idea what happened? Thanks ..Tom From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Oct 5 06:58:21 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Thu, 5 Oct 2006 15:58:21 +0200 Subject: anyone know what happened to the documentation? Message-ID: Hi Tom, on my side it works fine. When I am logged in, or even when I log off. Both work. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Kralidis,Tom [Burlington] Verzonden: donderdag 5 oktober 2006 15:55 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] anyone know what happened to the documentation? When I click the docs tab off the main site: http://mapserver.gis.umn.edu/docs I get an empty-ish page with: "There are contained help center object types, but none are viewable because of their permission settings." Any idea what happened? Thanks ..Tom Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From ed at TOPOZONE.COM Thu Oct 5 07:04:43 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 5 Oct 2006 10:04:43 -0400 Subject: anyone know what happened to the documentation? Message-ID: Tom - You're not alone! Clicking on the URL in your email below gives me the same "empty-ish" page. - 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 Eijnden, Bart van den (AGI) Sent: Thursday, October 05, 2006 9:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] anyone know what happened to the documentation? Hi Tom, on my side it works fine. When I am logged in, or even when I log off. Both work. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Kralidis,Tom [Burlington] Verzonden: donderdag 5 oktober 2006 15:55 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] anyone know what happened to the documentation? When I click the docs tab off the main site: http://mapserver.gis.umn.edu/docs I get an empty-ish page with: "There are contained help center object types, but none are viewable because of their permission settings." Any idea what happened? Thanks ..Tom Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From beyhan at DEPREM.GOV.TR Thu Oct 5 07:09:22 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Thu, 5 Oct 2006 17:09:22 +0300 Subject: anyone know what happened to the documentation? In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DE28D@ptolemy.topozone.com> Message-ID: Tom, Strange, Similarly there is no item on documentation link ...? On Thu, 5 Oct 2006 10:04:43 -0400, Ed McNierney wrote > Tom - > > You're not alone! Clicking on the URL in your email below gives me the > same "empty-ish" page. > > - 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 Eijnden, Bart van den (AGI) Sent: > Thursday, October 05, 2006 9:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] anyone know what happened to the documentation? > > Hi Tom, > > on my side it works fine. > > When I am logged in, or even when I log off. Both work. > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Kralidis,Tom > [Burlington] Verzonden: donderdag 5 oktober 2006 15:55 Aan: > MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] > anyone know what happened to the documentation? > > When I click the docs tab off the main site: > > http://mapserver.gis.umn.edu/docs > > I get an empty-ish page with: > > "There are contained help center object types, but none are viewable > because of their permission settings." > > Any idea what happened? > > Thanks > > ..Tom > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per > abuis hebt ontvangen, wordt u verzocht het te vernietigen en de > afzender te informeren. Wij adviseren u om bij twijfel over de > juistheid of de volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and notify > the sender immediately. When in doubt whether this message is > correct or complete, please contact the sender. ************************************************************************ > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From jmckenna at DMSOLUTIONS.CA Thu Oct 5 07:11:41 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 5 Oct 2006 10:11:41 -0400 Subject: anyone know what happened to the documentation? In-Reply-To: <20061005140815.M18869@deprem.gov.tr> Message-ID: Howard is aware of this and is working on it (http://www.nabble.com/Web-site--Documentation-tf2370639.html) jeff Murat BEYHAN wrote: > Tom, > Strange, Similarly there is no item on documentation link ...? > > > On Thu, 5 Oct 2006 10:04:43 -0400, Ed McNierney wrote >> Tom - >> >> You're not alone! Clicking on the URL in your email below gives me the >> same "empty-ish" page. >> >> - 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 Eijnden, Bart van den (AGI) Sent: >> Thursday, October 05, 2006 9:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] anyone know what happened to the > documentation? >> Hi Tom, >> >> on my side it works fine. >> >> When I am logged in, or even when I log off. Both work. >> >> Best regards, >> Bart >> >> -----Oorspronkelijk bericht----- >> Van: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Kralidis,Tom >> [Burlington] Verzonden: donderdag 5 oktober 2006 15:55 Aan: >> MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] >> anyone know what happened to the documentation? >> >> When I click the docs tab off the main site: >> >> http://mapserver.gis.umn.edu/docs >> >> I get an empty-ish page with: >> >> "There are contained help center object types, but none are viewable >> because of their permission settings." >> >> Any idea what happened? >> >> Thanks >> >> ..Tom >> >> Disclaimer >> ************************************************************************ >> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per >> abuis hebt ontvangen, wordt u verzocht het te vernietigen en de >> afzender te informeren. Wij adviseren u om bij twijfel over de >> juistheid of de volledigheid van de mail contact met afzender op te nemen. >> >> This message shall not constitute any rights or obligations. >> This message is intended solely for the addressee. >> If you have received this message in error, please delete it and notify >> the sender immediately. When in doubt whether this message is >> correct or complete, please contact the sender. > ************************************************************************ >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. > > > -- > Open WebMail Project (http://openwebmail.org) > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From warmerdam at POBOX.COM Thu Oct 5 07:13:46 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 5 Oct 2006 10:13:46 -0400 Subject: MySql Spatial Database In-Reply-To: <20061005135334.M33853@deprem.gov.tr> Message-ID: Murat BEYHAN wrote: > Frank, > I'm really getting love mapserver. > Its easy to learn and to do any kind of powerful map. > But There is another problem.I store the data in the mysql and draw it but How > can I query data stored in mysql by using ogr. > I mean how can I send variable from php to OGR > > I would like to make select statement for the ogr. But How? > By following expression I can draw point layer. But the data are not in > spatial database. They are Just table and I read the column from table for lat > lon and by using connectiontype ogr connection I can draw point. > My second issiu to draw polygone layer stored in Mysql spatial database. OK O > have succeeded to do, too. And third issiu to draw only one district which > data stored in Mysql spatial databese. > So I think I have to construct one select statement as follows but How can I > construct select statement for the mysql spatial database. I dont have any > experiences. Could you give me some point about that. If I could this I can > finalize my study then will be ready to publish it on the net. > Regards > Murat > > > > > MYSQL:bina,user=root,password=mysql_123,host=localhost,port=3306,tables=zoneson > SELECT lat,lon,koyadi from zoneson > wkbPoint > > > > ~ Murat, There are a few query concepts that come into play. MapServer has a concept of query that should operate against your layers without changing the OVF XML or regular connection info. There should be description of that on the MapServer site ... I've only rarely used it from mapscript. But if you just want to draw a reduced set of features based on a custom query, there are other ways to handle that. For the polygon layer directly accessed from MYSQL without an OVF file, you can just put a SELECT statement in your DATA line instead of simply listing a table. eg. DATA "SELECT * from polytable WHERE " For the above OVF case you can make the SrcSQL statement more complicated as long as the result set still includes the fields you need. 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 | President OSGeo, http://osgeo.org From hobu at IASTATE.EDU Thu Oct 5 07:22:28 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Thu, 5 Oct 2006 09:22:28 -0500 Subject: anyone know what happened to the documentation? In-Reply-To: Message-ID: hmph... Thought I'd fixed this.... Short term, you can always use the search facilities of the site to find something. The documents are there, it is just that the /docs page + the migration + caching is causing havoc. For some folks (like me and Bart), I see the docs listing whether I'm logged in or not. Others, not so much. All I can suggest at this time is to Crtl-R refresh and hope it comes up. I have refreshed the squid cache of the page just now. Maybe that has changed the headers so your browser will reload/request the full page again. Sorry to cause so much frustration, Howard On Oct 5, 2006, at 9:11 AM, Jeff McKenna wrote: > Howard is aware of this and is working on it > (http://www.nabble.com/Web-site--Documentation-tf2370639.html) > > jeff > > > > Murat BEYHAN wrote: >> Tom, >> Strange, Similarly there is no item on documentation link ...? >> >> >> On Thu, 5 Oct 2006 10:04:43 -0400, Ed McNierney wrote >>> Tom - >>> >>> You're not alone! Clicking on the URL in your email below gives >>> me the >>> same "empty-ish" page. >>> >>> - 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 Eijnden, Bart van den (AGI) Sent: >>> Thursday, October 05, 2006 9:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] anyone know what happened to the >> documentation? >>> Hi Tom, >>> >>> on my side it works fine. >>> >>> When I am logged in, or even when I log off. Both work. >>> >>> Best regards, >>> Bart >>> >>> -----Oorspronkelijk bericht----- >>> Van: UMN MapServer Users List >>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Kralidis,Tom >>> [Burlington] Verzonden: donderdag 5 oktober 2006 15:55 Aan: >>> MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] >>> anyone know what happened to the documentation? >>> >>> When I click the docs tab off the main site: >>> >>> http://mapserver.gis.umn.edu/docs >>> >>> I get an empty-ish page with: >>> >>> "There are contained help center object types, but none are viewable >>> because of their permission settings." >>> >>> Any idea what happened? >>> >>> Thanks >>> >>> ..Tom >>> >>> Disclaimer >>> ******************************************************************** >>> **** >>> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >>> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per >>> abuis hebt ontvangen, wordt u verzocht het te vernietigen en de >>> afzender te informeren. Wij adviseren u om bij twijfel over de >>> juistheid of de volledigheid van de mail contact met afzender op >>> te nemen. >>> >>> This message shall not constitute any rights or obligations. >>> This message is intended solely for the addressee. >>> If you have received this message in error, please delete it and >>> notify >>> the sender immediately. When in doubt whether this message is >>> correct or complete, please contact the sender. >> ********************************************************************* >> *** >>> -- >>> This message has been scanned for viruses and >>> dangerous content by MailScanner, and is >>> believed to be clean. >> >> >> -- >> Open WebMail Project (http://openwebmail.org) >> >> > > > -- > Jeff McKenna > DM Solutions Group Inc. > http://www.dmsolutions.ca > From beyhan at DEPREM.GOV.TR Thu Oct 5 07:26:19 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Thu, 5 Oct 2006 17:26:19 +0300 Subject: MySql Spatial Database In-Reply-To: <4525131A.9060901@pobox.com> Message-ID: Dear Frank Thank you this work well. I have tried the select statement it works fine. But my problem How can I send condition term from php to map file I mean by the following statement how can I send the name of districtname which I intend to draw it. On php the name of district for example $testname How can I send this information to the map. > DATA "SELECT * from polytable WHERE " DATA "SELECT * from district WHERE districtname='$testname'" by using %$testname% (%%) this I sent from html but I dont know how can I send by using PHP. Regards Murat On Thu, 5 Oct 2006 10:13:46 -0400, Frank Warmerdam wrote > Murat BEYHAN wrote: > > Frank, > > I'm really getting love mapserver. > > Its easy to learn and to do any kind of powerful map. > > But There is another problem.I store the data in the mysql and draw it but How > > can I query data stored in mysql by using ogr. > > I mean how can I send variable from php to OGR > > > > I would like to make select statement for the ogr. But How? > > By following expression I can draw point layer. But the data are not in > > spatial database. They are Just table and I read the column from table for lat > > lon and by using connectiontype ogr connection I can draw point. > > My second issiu to draw polygone layer stored in Mysql spatial database. OK O > > have succeeded to do, too. And third issiu to draw only one district which > > data stored in Mysql spatial databese. > > So I think I have to construct one select statement as follows but How can I > > construct select statement for the mysql spatial database. I dont have any > > experiences. Could you give me some point about that. If I could this I can > > finalize my study then will be ready to publish it on the net. > > Regards > > Murat > > > > > > > > > > MYSQL:bina,user=root,password=mysql_123,host=localhost,port=3306,tables=zoneson > > SELECT lat,lon,koyadi from zoneson > > wkbPoint > > > > > > > > ~ > > Murat, > > There are a few query concepts that come into play. MapServer has a > concept of query that should operate against your layers without > changing the OVF XML or regular connection info. There should be > description of that on the MapServer site ... I've only rarely used > it from mapscript. > > But if you just want to draw a reduced set of features based on a custom > query, there are other ways to handle that. For the polygon layer directly > accessed from MYSQL without an OVF file, you can just put a SELECT statement > in your DATA line instead of simply listing a table. > > eg. > DATA "SELECT * from polytable WHERE " > > For the above OVF case you can make the SrcSQL statement more > complicated as long as the result set still includes the fields you need. > > 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 | President OSGeo, http://osgeo.org > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From nicolas.fortin at EC.GC.CA Thu Oct 5 07:14:50 2006 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Thu, 5 Oct 2006 10:14:50 -0400 Subject: anyone know what happened to the documentation? Message-ID: I got the same here... -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Kralidis,Tom [Burlington] Envoy? : 5 octobre 2006 09:55 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] anyone know what happened to the documentation? When I click the docs tab off the main site: http://mapserver.gis.umn.edu/docs I get an empty-ish page with: "There are contained help center object types, but none are viewable because of their permission settings." Any idea what happened? Thanks ..Tom From warmerdam at POBOX.COM Thu Oct 5 07:50:41 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 5 Oct 2006 10:50:41 -0400 Subject: MySql Spatial Database In-Reply-To: <20061005142016.M52757@deprem.gov.tr> Message-ID: Murat BEYHAN wrote: > Dear Frank > Thank you this work well. > I have tried the select statement it works fine. > But my problem How can I send condition term from php to map file > I mean by the following statement how can I send the name of districtname > which I intend to draw it. On php the name of district for example $testname > How can I send this information to the map. >> DATA "SELECT * from polytable WHERE " > DATA "SELECT * from district WHERE districtname='$testname'" > by using %$testname% (%%) this I sent from html but I dont know how can I send > by using PHP. Murat, Ah, I see your point. I believe you can directly assign new strings to the DATA field in a layer from PHP MapScript, and there is some way in PHP to get URL variables. So you will need to construct a custom DATA string, and assign it to the layer->data field in your mapscript code. I'm not a PHP guy, so I can't really offer the specifics. 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 | President OSGeo, http://osgeo.org From benjaminsims at YAHOO.COM Thu Oct 5 08:02:00 2006 From: benjaminsims at YAHOO.COM (Ben Sims) Date: Thu, 5 Oct 2006 08:02:00 -0700 Subject: malloc() problem using PHP/MapScript Message-ID: Thanks for the help Frank. Since you mentioned it was most likely a library conflict, I decide to abandon the various configuration options I had been trying, listed from various installation tutorials. I tried ./configure ?--with-php=/php/' and nothing else and it worked first time. I guess the lesson is, dont bother trying to put in options unless you are sure you need them. Thanks again for putting my on the right path, Benjamin ----- Original Message ---- From: Frank Warmerdam To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, 5 October, 2006 3:34:24 AM Subject: Re: [UMN_MAPSERVER-USERS] malloc() problem using PHP/MapScript Ben Sims wrote: > Update: > > The error has changed slightly after some minor application changes. I have also experimented with running a test script using the same code through the gdb debugger. If it might give anybody any clues, here is the backtrace: > > *** glibc detected *** free(): invalid next size (fast): 0x08e825c0 *** Ben, My understanding is that PHP MapScript is prone to conflicting versions of some libraries between PHP and MapScript (such as GD, etc) which might be responsible. I see you are building against FWTools. That works most smoothly when you can depend quite entirely on the FWTools libraries which includes stuff like libz, libpng, etc that may conflict in version with stuff already on your system (and linked into PHP). I would encourage you to try FGS (http://www.maptools.org) as a way of getting prebuilt binaries with PHP MapScript support. If that fixes your problem but is inadequate for your needs for some other reason, I think you would be best off building all the FWTools components you need yourself. Sorry... 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 | President OSGeo, http://osgeo.org ___________________________________________________________ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html From aaronr at Z-PULLEY.COM Thu Oct 5 08:42:35 2006 From: aaronr at Z-PULLEY.COM (Aaron Racicot) Date: Thu, 5 Oct 2006 08:42:35 -0700 Subject: MySql Spatial Database In-Reply-To: <20061005142016.M52757@deprem.gov.tr> Message-ID: Hi there Murat, You need to grab the layer in PHP Mapscript and then you can use the set method to change layer properties: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/mapob j http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/layer obj An example pointing to a raster file on disk: $oLayer_forward = $oMap->getLayerByName("Model Data"); // set the layer data statement for the "Model Data" layer $oLayer_forward->set( "data","./model_images/".$name_tif); Or for a database (PostGIS): $oLayer_data_gen = $oMap->getLayerByName("Fixed Station"); // set the layer data $oLayer_data_gen->set( "data","the_geom from (SELECT data_gen60_".$user_data['uname'].".oid, data_gen60_".$user_data['uname'].".* FROM data_gen60_".$user_data['uname'].") as foo USING UNIQUE oid USING SRID=-1"); These are just some examples, but you should look through the MS documentation to better understand the Mapscript methods that are available to you from PHP: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class A +----------------------------------------+ | 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 Murat BEYHAN Sent: Thursday, October 05, 2006 7:26 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MySql Spatial Database Dear Frank Thank you this work well. I have tried the select statement it works fine. But my problem How can I send condition term from php to map file I mean by the following statement how can I send the name of districtname which I intend to draw it. On php the name of district for example $testname How can I send this information to the map. > DATA "SELECT * from polytable WHERE " DATA "SELECT * from district WHERE districtname='$testname'" by using %$testname% (%%) this I sent from html but I dont know how can I send by using PHP. Regards Murat On Thu, 5 Oct 2006 10:13:46 -0400, Frank Warmerdam wrote > Murat BEYHAN wrote: > > Frank, > > I'm really getting love mapserver. > > Its easy to learn and to do any kind of powerful map. > > But There is another problem.I store the data in the mysql and draw it but How > > can I query data stored in mysql by using ogr. > > I mean how can I send variable from php to OGR > > > > I would like to make select statement for the ogr. But How? > > By following expression I can draw point layer. But the data are not in > > spatial database. They are Just table and I read the column from table for lat > > lon and by using connectiontype ogr connection I can draw point. > > My second issiu to draw polygone layer stored in Mysql spatial database. OK O > > have succeeded to do, too. And third issiu to draw only one district which > > data stored in Mysql spatial databese. > > So I think I have to construct one select statement as follows but How can I > > construct select statement for the mysql spatial database. I dont have any > > experiences. Could you give me some point about that. If I could this I can > > finalize my study then will be ready to publish it on the net. > > Regards > > Murat > > > > > > > > > > MYSQL:bina,user=root,password=mysql_123,host=localhost,port=3 306,tables=zoneson > > SELECT lat,lon,koyadi from zoneson > > wkbPoint > > > > > > > > ~ > > Murat, > > There are a few query concepts that come into play. MapServer has a > concept of query that should operate against your layers without > changing the OVF XML or regular connection info. There should be > description of that on the MapServer site ... I've only rarely used > it from mapscript. > > But if you just want to draw a reduced set of features based on a custom > query, there are other ways to handle that. For the polygon layer directly > accessed from MYSQL without an OVF file, you can just put a SELECT statement > in your DATA line instead of simply listing a table. > > eg. > DATA "SELECT * from polytable WHERE " > > For the above OVF case you can make the SrcSQL statement more > complicated as long as the result set still includes the fields you need. > > 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 | President OSGeo, http://osgeo.org > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From w.blanken at GEON.NL Thu Oct 5 08:38:40 2006 From: w.blanken at GEON.NL (Wim Blanken) Date: Thu, 5 Oct 2006 17:38:40 +0200 Subject: anyone know what happened to the documentation? In-Reply-To: <118A9CF846431048B65C4AFB0E57C0ED52BF16@ECQCSTFMAIL1.quebec.int.ec.gc.ca> Message-ID: Hello list, That's strange, here in the netherlands it is working ok. Regards, Wim Blanken -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fortin,Nicolas [SteFoy] Sent: donderdag 5 oktober 2006 16:15 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] anyone know what happened to the documentation? I got the same here... -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Kralidis,Tom [Burlington] Envoy? : 5 octobre 2006 09:55 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] anyone know what happened to the documentation? When I click the docs tab off the main site: http://mapserver.gis.umn.edu/docs I get an empty-ish page with: "There are contained help center object types, but none are viewable because of their permission settings." Any idea what happened? Thanks ..Tom -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.13/463 - Release Date: 10/4/2006 From yjacolin at FREE.FR Thu Oct 5 09:01:21 2006 From: yjacolin at FREE.FR (Jacolin Yves) Date: Thu, 5 Oct 2006 18:01:21 +0200 Subject: anyone know what happened to the documentation? In-Reply-To: <0J6O00A8X67BH0@psmtp04.wxs.nl> Message-ID: Hello, It depends of your config of your navigator, not from where you live ;-) You can change the langage default setting to "En-US" or "en" of your navigator and you will redirect automaticaly to the right page. Regards, Y. Le Jeudi 5 Octobre 2006 17:38, Wim Blanken a ?crit?: > Hello list, > > That's strange, here in the netherlands it is working ok. > > Regards, > > Wim Blanken > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Fortin,Nicolas [SteFoy] > Sent: donderdag 5 oktober 2006 16:15 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] anyone know what happened to the > documentation? > > I got the same here... > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de Kralidis,Tom [Burlington] > Envoy? : 5 octobre 2006 09:55 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : [UMN_MAPSERVER-USERS] anyone know what happened to the > documentation? > > When I click the docs tab off the main site: > > http://mapserver.gis.umn.edu/docs > > I get an empty-ish page with: > > "There are contained help center object types, but none are viewable > because of their permission settings." > > Any idea what happened? > > Thanks > > ..Tom From umn-ms at HYDROTEC.DE Thu Oct 5 09:08:53 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Thu, 5 Oct 2006 18:08:53 +0200 Subject: anyone know what happened to the documentation? In-Reply-To: <0J6O00A8X67BH0@psmtp04.wxs.nl> Message-ID: With Opera one may easily change language-settings. Set Tools/Preferences/General/Language = "en" and the doc is available again. Benedikt UMN MapServer Users List schrieb am 05.10.2006 17:38:40: > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Fortin,Nicolas [SteFoy] > Sent: donderdag 5 oktober 2006 16:15 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] anyone know what happened to the > documentation? > > I got the same here... > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de Kralidis,Tom [Burlington] > Envoy? : 5 octobre 2006 09:55 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : [UMN_MAPSERVER-USERS] anyone know what happened to the > documentation? > > When I click the docs tab off the main site: > > http://mapserver.gis.umn.edu/docs > > I get an empty-ish page with: > > "There are contained help center object types, but none are viewable because > of their permission settings." > > Any idea what happened? > > Thanks > > ..Tom > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.407 / Virus Database: 268.12.13/463 - Release Date: 10/4/2006 -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at FREE.FR Thu Oct 5 09:27:31 2006 From: yjacolin at FREE.FR (Jacolin Yves) Date: Thu, 5 Oct 2006 18:27:31 +0200 Subject: anyone know what happened to the documentation? In-Reply-To: Message-ID: In Firefox : Edit>Preference>Advanced>Clic on Langage button (close to the bottom)>ADD or Move "En" to top. Y. Le Jeudi 5 Octobre 2006 18:08, Benedikt Rothe a ?crit?: > With Opera one may easily change language-settings. > Set Tools/Preferences/General/Language = "en" > and the doc is available again. > > Benedikt > > UMN MapServer Users List schrieb am > > 05.10.2006 17:38:40: > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Fortin,Nicolas [SteFoy] > > Sent: donderdag 5 oktober 2006 16:15 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] anyone know what happened to the > > documentation? > > > > I got the same here... > > > > -----Message d'origine----- > > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De > > la > > > part de Kralidis,Tom [Burlington] > > Envoy? : 5 octobre 2006 09:55 > > ? : MAPSERVER-USERS at LISTS.UMN.EDU > > Objet : [UMN_MAPSERVER-USERS] anyone know what happened to the > > documentation? > > > > When I click the docs tab off the main site: > > > > http://mapserver.gis.umn.edu/docs > > > > I get an empty-ish page with: > > > > "There are contained help center object types, but none are viewable > > because > > > of their permission settings." > > > > Any idea what happened? > > > > Thanks > > > > ..Tom > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.407 / Virus Database: 268.12.13/463 - Release Date: > > 10/4/2006 From dmorissette at MAPGEARS.COM Thu Oct 5 11:15:41 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 5 Oct 2006 14:15:41 -0400 Subject: MapServer 4.10.0 released Message-ID: The MapServer team is proud to announce the release of MapServer 4.10.0. The MapServer 4.10.0 source package can be downloaded from http://mapserver.gis.umn.edu/download/current and the various binery distributions should start offering this new release soon. MapServer 4.10 introduces the following new features (and much more): - MS RFC 9: Item tag for query templates - MS RFC 11: Support for Curved Labels - MS RFC 13: SOS support - MS RFC 14: Relative Coordinates for INLINE features - MS RFC 16: MapScript WxS Services - MS RFC 18: Encryption of passwords in mapfiles - Web Map Context (WMC) 1.1 support - SLD support in Web Map Context - Mapfile includes - GEOS rewrite to use C API and new methods exposed The complete RFC documents are available at http://mapserver.gis.umn.edu/development/rfc/ Of course, this release also brings a large number of small enhancements and bug fixes that didn't deserve their own RFC and aren't listed above. A more complete list of changes/fixes is included in the file HISTORY.TXT in the source package and can also be viewed online at http://mapserver.gis.umn.edu/download/current/HISTORY.TXT A migration guide for users going from MapServer 4.8 (or older) to 4.10 is included in the source distribution as MIGRATION_GUIDE.TXT and can also be viewed online at http://mapserver.gis.umn.edu/download/current/migration_guide_48_410 It is expected that this will be the last 4.x release and the next release should be version 5.0 likely sometimes in the first months of 2007. The 5.0 roadmap will be discussed on the -dev list in the next few weeks. And finally, big thanks to everyone who helped make this release possible: developers, doc/website maintainers, testers and other contributors. -- The MapServer Team From LESSARDST at DFO-MPO.GC.CA Thu Oct 5 12:03:02 2006 From: LESSARDST at DFO-MPO.GC.CA (Stephane Lessard) Date: Thu, 5 Oct 2006 15:03:02 -0400 Subject: BAG File Format Support Message-ID: Hello List, I'm trying to display the S57 Soundings values on my map. Here's the output of ogrinfo on the SOUNDG layer of my S57 chart (the relevant part, for 1 feature): OGRFeature(SOUNDG):140 RCID (Integer) = 141 ... MULTIPOINT (-72.373733104642483 46.402858362124853 9.5) I can display a SYMBOL at the appropriate coordinate, but what I need is the actual Z value... (9.5) Anyone can help me accomplish this? What should I put as a LABELITEM? Here is my layer definition: LAYER NAME SOUNDG_4 TYPE POINT STATUS ON CONNECTIONTYPE OGR TILEINDEX "SOUNDG_4.shp,0" LABELITEM ??????? CLASS COLOR 0 0 0 SIZE 4 SYMBOL default-circle LABEL COLOR 0 0 0 END END END # Layer Thanks a lot! From LESSARDST at DFO-MPO.GC.CA Thu Oct 5 12:04:59 2006 From: LESSARDST at DFO-MPO.GC.CA (Stephane Lessard) Date: Thu, 5 Oct 2006 15:04:59 -0400 Subject: S57 Soundings Value Message-ID: Sorry about the double-post... I forgot to change the subject... Hello List, I'm trying to display the S57 Soundings values on my map. Here's the output of ogrinfo on the SOUNDG layer of my S57 chart (the relevant part, for 1 feature): OGRFeature(SOUNDG):140 RCID (Integer) = 141 ... MULTIPOINT (-72.373733104642483 46.402858362124853 9.5) I can display a SYMBOL at the appropriate coordinate, but what I need is the actual Z value... (9.5) Anyone can help me accomplish this? What should I put as a LABELITEM? Here is my layer definition: LAYER NAME SOUNDG_4 TYPE POINT STATUS ON CONNECTIONTYPE OGR TILEINDEX "SOUNDG_4.shp,0" LABELITEM ??????? CLASS COLOR 0 0 0 SIZE 4 SYMBOL default-circle LABEL COLOR 0 0 0 END END END # Layer Thanks a lot! From karpi.lists at EMAIL.CZ Thu Oct 5 13:21:26 2006 From: karpi.lists at EMAIL.CZ (karpi) Date: Thu, 5 Oct 2006 22:21:26 +0200 Subject: [leg_class_html opt_flag=14] - example ? In-Reply-To: <4ac992660610040217i7c36e0d3j2108250dfa7d69ad@mail.gmail.com> Message-ID: 04/10/06 11:17, listario at GMAIL.COM napsal(a): Hello Jorge, Verry thanks for your reply; Ive experimented a little with "opt_flag", but obtained no expected results :( That is terrible thing that "opt_flag" Description: Control the layer display process. Add the values below to acquire the desired options (default is 15): 1: If set, show layer even if out of scale (default: hide layers out of scale). 2: If set, show layer even if status is OFF (default: hide layers with STATUS OFF). 4: If set, show layer even if type is QUERY (default: hide layers of TYPE QUERY) 8: If set, show layer even if type is ANNOTATION (default: hide layers of TYPE ANNOTATION) my conclusions: settings: 0 1 2 4 8 14 15 1 outofscale + + + + + + + 2 off - - + - - + + 4 query ? ? ? ? ? ? ? 8 annotation ? ? ? ? ? ? ? Ive found this mail: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0210/msg00037.html here is told (as i understood my english is considerably retarded) that this behavior depends on: group names layer names and scales class names and scales the option code in legend templates... -- which is horrible :( mail is written in 2002. my compilation is: alnagon ~ % /var/www/localhost/cgi-bin/mapserv -v MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Is there some example on the internet where is hiding of invisible classes in html legend sucessfully used ? > Hello Karpi > > Quoting the documentation about HTML Legends ( > http://mapserver.gis.umn.edu/docs/howto/html_legend/#class-block): > > "opt_flag=14 means do not show classes in the legend that are out of > scale." > > Hope this helps > > Best regards, > Jorge > > > 2006/10/3, karpi : > >django templating) > >Reply-To: > > > >hello, Im spent some time with my first mapserver cgi web application. > > > >here is its early version: > >http://gismaster.liberix.cz/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Flocalhost%2Fhtdocs%2Fnewmap%2Fczrep.map&imgext=330491.333543+5529453.205715+456794.204419+5632791.918249&zoomsize=2&layer=vodn%C3%AD_plochy&layer=vodn%C3%AD_toky&layer=m%C4%9Bsta_plochy&layer=obce_class&cellsize=229.641583&vyhledat=&mode=browse&mapsize=550+450&img.x=80&img.y=362 > > > >My biggist question at this point are: > >1) can i hide legend items, of that classes, which are not rendered > >(maxscale of class) as is done in common bitmap legend ?? > > > >my legend template is short: > > [leg_layer_html order_metadata=legend_order opt_flag=15] > > > name=layer_status oper=eq value=1] CHECKED [/if] [if name=layer_status > > oper=eq value=2] CHECKED DISABLED [/if] > [leg_layer_name]
> > [/leg_layer_html] > > > > [leg_class_html opt_flag=0] > >       > width=30 height=20> [leg_class_name]
> > [/leg_class_html] > > > > > >2) my data are saved in different encoding (iso-8859-2) then mapfile, > >templates and all web is (utf8) This discrepancy caues errors as this: > >http://localhost/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Flocalhost%2Fhtdocs%2Fnewmap%2Fczrep.map&imgext=441771.353638+5581229.641642+457559.212498+5594146.980709&zoomsize=2&layer=vodn%C3%AD_plochy&layer=vodn%C3%AD_toky&layer=m%C4%9Bsta_plochy&layer=obce_class&cellsize=28.705198&vyhledat=&mode=query&mapsize=550+450&img.x=282&img.y=231 > >(Jm??no obce: Dob??????) > > > >Can i force mapserver to respect different encoding in the data files? > > > >Thanks for any kind of your replys > > > > > > > > > >( Ive also try python mapscript + django templating solution, but when > >i approached creating legends through layer.getClass(j).drawLegendIcon > >rendering and serving of maps begun extremly cpu consuming and slow :( > > > > > >-- > >karpi from > >http://gismaster.liberix.cz > > -- karpi from http://gismaster.liberix.cz From Jacob.Delfos at MAUNSELL.COM Thu Oct 5 16:33:25 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Fri, 6 Oct 2006 07:33:25 +0800 Subject: Create a polygon layer using PHPMAPSCRIPT Message-ID: Hi Murat, A few potential reasons why it might not work: Your expression does not have quotes around the value: $class->setExpression("'[ilce_ad]' EQ $ilceadi"); Maybe make it: $class->setExpression("'[ilce_ad]' EQ '".$ilceadi."'"); If you only class on one attribute, you could set a class item, and make the expression: $class->setExpression($ilceadi); Another possible reason is that you may not save your mapfile, so your dynamic layer isn't saved in it. You can save it like: $oMap->save("c:/mapfile.map"); If you are using PHP sessions, you may need to save the state of your session instead. Try this, and see what ends up being written to your mapfile by opening it. Hope this helps... Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Murat BEYHAN > Sent: 5 October 2006 21:28 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Create a polygon layer using > PHPMAPSCRIPT > > Dear Friends; > I would like to make a polygon layer by using phpmapscript. > By the following php code code its not create any error. > But the layer could not be vieved on the map. > Actually I would like to make an expression that only one > border of the > district will be drawn on the map since you selected the name > of the district > from the database and there are two way to draw layer of the > polygon, one is > to send the name of the district to the map and onether is > create the layer > for that district on php. Am I rigth? > I really don't have any idea which way is acceptable for > that. On the map file > the layer for the whole districts already drawn by the following > > LAYER # ilceler > NAME district > DATA tr_ilce_siniri_dd > STATUS on > TYPE LINE > CLASSITEM "ILCE_AD" > CLASS > NAME "ILCE SINIRLARI" > ### expression ('[il_adi]' eq '$iladi) > COLOR 211 211 211 > OUTLINECOLOR 230 230 250 > END # end of States class object > END # end of layer object > > But I would like to draw a district highlighted on the map in > order to see > easily than other district. > By using expression it is easy but The name of the district > will be a variable > on php. Users on the net for accessing to draw their > district. The name of the > district comes to php code as $iladi by querying mysql select > expression.then > the name of the district will be hihglighted on the map. > > I have tried the following but I couldn't construct how I > will create polygone > layer on the php mapscript > any idea will be appreciated... > Thankyou > Murat > > $layer = ms_newLayerObj($map); > $layer->set("name", "polygon"); > $layer->set("data", "tr_ilce_siniri_dd"); > > $layer->set("type", MS_LAYER_POLYGON); > $layer->set("status", MS_ON); > > $class = ms_newClassObj($layer); > $class->set("status", MS_ON); > $class->setExpression("'[ilce_ad]' EQ $ilceadi"); > $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( 'cline')); > $style->set("size", 8); > $style->color->setRGB( 200,200,200); > $style->outlinecolor->setRGB(255, 255, 255); > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > From dobes at LNX.CZ Thu Oct 5 16:53:24 2006 From: dobes at LNX.CZ (Pavel Dobe_) Date: Fri, 6 Oct 2006 01:53:24 +0200 Subject: custom poinsts projection on different map scale Message-ID: Hi, I have to project some points from GPS on the map. Some are too close to be on the map separately. So I have to group the overlay points (projected as dots) and try to mark this points to be recognised as grouped points. Is any mechanism to set up for example: - draw only first point in layer and skip other overlaping dots? or - draw some different point (using different class for this point) - only for visual detection overlaping points I know that MapScript is skiping some Labels if it's no space for drawing (not working with FORCE TRUE in Mapfile) so is any chance do the same with points drawing as symbols? Thanks for help PaD PS: I'm using MapServer 4.8.4 with PHP MapScript, but is possible to install last 4.10beta2 if is nesessary. From flavio at TYDAC.CH Thu Oct 5 23:22:29 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri, 6 Oct 2006 08:22:29 +0200 Subject: MapServer WebSite Language Behaviour In-Reply-To: <20061003091251.GA10272@alnagon.karneval.cz> Message-ID: hi all problem with the mapserver pages misbehaviour seems to be, that it chooses autmatically the language settings of the browser. i.e. I have in fireforx german as default. I end up with a complete mess of mixed up languages (half english, half german). It makes absolutely no sense to have that behaviour if not all pages are properly and completely translated. I see quite a fes such sites lately and it is only one thing: irritating at the max. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ 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 ---------------------------------------------------------------- -----Original Message----- From: karpi To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Tue, 3 Oct 2006 11:12:51 +0200 Subject: [UMN_MAPSERVER-USERS] html legend classes; data encoding; (noted python mapsript + > django templating) > Reply-To: > > hello, Im spent some time with my first mapserver cgi web > application. > > here is its early version: > http://gismaster.liberix.cz/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Flocalh > ost%2Fhtdocs%2Fnewmap%2Fczrep.map&imgext=330491.333543+5529453.205715 > +456794.204419+5632791.918249&zoomsize=2&layer=vodn%C3%AD_plochy&laye > r=vodn%C3%AD_toky&layer=m%C4%9Bsta_plochy&layer=obce_class&cellsize=2 > 29.641583&vyhledat=&mode=browse&mapsize=550+450&img.x=80&img.y=362 > > My biggist question at this point are: > 1) can i hide legend items, of that classes, which are not rendered > (maxscale of class) as is done in common bitmap legend ?? > > my legend template is short: > [leg_layer_html order_metadata=legend_order opt_flag=15] > name=layer_status oper=eq value=1] CHECKED [/if] [if > name=layer_status oper=eq value=2] CHECKED DISABLED [/if] > > [leg_layer_name]
> [/leg_layer_html] > > [leg_class_html opt_flag=0] >       [leg_class_name]
> [/leg_class_html] > > > 2) my data are saved in different encoding (iso-8859-2) then mapfile, > templates and all web is (utf8) This discrepancy caues errors as > this: > http://localhost/cgi-bin/mapserv?map=%2Fvar%2Fwww%2Flocalhost%2Fhtdoc > s%2Fnewmap%2Fczrep.map&imgext=441771.353638+5581229.641642+457559.212 > 498+5594146.980709&zoomsize=2&layer=vodn%C3%AD_plochy&layer=vodn%C3%A > D_toky&layer=m%C4%9Bsta_plochy&layer=obce_class&cellsize=28.705198&vy > hledat=&mode=query&mapsize=550+450&img.x=282&img.y=231 > (Jm?no obce: Dob???) > > Can i force mapserver to respect different encoding in the data > files? > > Thanks for any kind of your replys > > > > > ( Ive also try python mapscript + django templating solution, but > when > i approached creating legends through > layer.getClass(j).drawLegendIcon > rendering and serving of maps begun extremly cpu consuming and slow > :( > > > -- > karpi from > http://gismaster.liberix.cz From pf at MAPMEDIA.DE Fri Oct 6 04:49:12 2006 From: pf at MAPMEDIA.DE (Peter Freimuth (MapMedia GmbH)) Date: Fri, 6 Oct 2006 13:49:12 +0200 Subject: undefined symbol: msIO_installStdinFromBuffer with python mapscript 4.10 Message-ID: Dear Mapserver-List; I generated a new python mapscript extension based on the new Release 4.10. When I say import mapscript on my debian sarge with python 2.3.5 I get an ImportError. /usr/lib/python2.3/site-packages/_mapsrcript.so: undefined symbol: msIO_installStdinFromBuffer Any idea where to search? Kind regards, Peter -- Mit freundlichem Gru? Peter Freimuth _________________________________________________ MapMedia GmbH Kartographie und raumbezogene Informationssysteme Heilbronner Stra?e 10 D-10711 Berlin Charlottenburg fon: +49.(0)30.89 06 82 70 fax: +49.(0)30.89 06 82 73 mail: pf at mapmedia.de net: www.mapmedia.de pgp: on demand _________________________________________________ From pgiannini at BYTEWISE.IT Fri Oct 6 05:30:33 2006 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Fri, 6 Oct 2006 14:30:33 +0200 Subject: getting map coordinates from mouse click Message-ID: Hi list, a simple question: in php and mapscript 4.8.3, how can I get the map coordinates of the mouse click? Via the php variables (_POST or _GET), a clik on the map image can only return a couple of PIXEL coordinates (e.g $_GET['img_x'] and $_GET['img_y'], where "img" is the name of image input on the html form). MAPLON and MAPLAT (cgi variables) are the lon and lat coords of the clicked point, but I don't know how to read this variables in the php/mapscript environment. Any help? ___________________________ Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From James.Leveille at MTQ.GOUV.QC.CA Fri Oct 6 05:52:35 2006 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Fri, 6 Oct 2006 08:52:35 -0400 Subject: Limit of 1 label per polygon Message-ID: Hi, I have a layer of polygons. How can I make sure I have only one label per polygon ??? I know there is a MINDISTANCE tag - which probably add overhead for calculation. Is there another tag that might be faster ? Thanks Regards Here is my layer : # ================================================== # Municipalit? XYZ # ================================================== LAYER NAME "municipalite" PROJECTION "init=epsg:42105" END METADATA "wms_title" "Municipalit?" "wms_name" "Municipalit?" END STATUS ON DUMP TRUE EXTENT 30000 75000 1700000 2120000 MAXSCALE 250000 MINSCALE 1 TYPE POLYGON DATA "bgr_v_muncp_genrl_act/bgr_v_muncp_genrl_act" LABELMAXSCALE 250000 LABELMINSCALE 1 CLASS OUTLINECOLOR 137 175 137 TEXT ([NOM_MUNCP]) LABEL TYPE TRUETYPE FONT "arial" SIZE 8 COLOR 137 175 137 OUTLINECOLOR 255 255 255 POSITION CC END END END __________________________________________ James L?veill? Int?lec G?omatique 420, boul. Charest Est Bureau 400 Qu?bec (QC), Canada G1K 8M4 Int?lec G?omatique: 418.687.5000 MTQ: 418.380.2005 (#227) -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Fri Oct 6 06:14:53 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 6 Oct 2006 09:14:53 -0400 Subject: Limit of 1 label per polygon In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E02F92EFA@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: MINDISTANCE is exactly the tag you need for this, that is why it is here. If you have a performance problem than tell us about that. What makes you think MINDISTANCE would be slower than any other tag. -Steve W. L?veill? wrote: > > Hi, > > I have a layer of polygons. How can I make sure I have only one label > per polygon ??? > I know there is a MINDISTANCE tag - which probably add overhead for > calculation. > Is there another tag that might be faster ? > > Thanks > Regards > > > Here is my layer : > > # ================================================== > # Municipalit? XYZ > # ================================================== > > LAYER > > NAME "municipalite" > PROJECTION > "init=epsg:42105" > END > METADATA > "wms_title" "Municipalit?" > "wms_name" "Municipalit?" > END > STATUS ON > DUMP TRUE > > EXTENT 30000 75000 1700000 2120000 > MAXSCALE 250000 > MINSCALE 1 > TYPE POLYGON > > DATA "bgr_v_muncp_genrl_act/bgr_v_muncp_genrl_act" > > LABELMAXSCALE 250000 > LABELMINSCALE 1 > > CLASS > OUTLINECOLOR 137 175 137 > TEXT ([NOM_MUNCP]) > LABEL > TYPE TRUETYPE > FONT "arial" > SIZE 8 > COLOR 137 175 137 > OUTLINECOLOR 255 255 255 > POSITION CC > END > > END > > END > > __________________________________________ > *James L?veill?* > > *Int?lec G?omatique* > 420, boul. Charest Est > Bureau 400 > Qu?bec (QC), Canada > G1K 8M4 > > Int?lec G?omatique: 418.687.5000 > MTQ: 418.380.2005 (#227) > From James.Leveille at MTQ.GOUV.QC.CA Fri Oct 6 06:35:06 2006 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Fri, 6 Oct 2006 09:35:06 -0400 Subject: [UMN_MAPSERVER-USERS] Limit of 1 label per polygon Message-ID: Hi Stephen, I didn't mean I actually had performance issues. I just THOUGHT that the few calculations made by MapServer to check if more than one label had to be placed in each polygon would be slower than systematically placing only one label (less calculation). This is the reason why I was asking. Thanks. __________________________________________ James L?veill? Int?lec G?omatique 420, boul. Charest Est Bureau 400 Qu?bec (QC), Canada G1K 8M4 Int?lec G?omatique: 418.687.5000 MTQ: 418.380.2005 (#227) -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Stephen Woodbridge Envoy? : 6 octobre 2006 09:15 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Limit of 1 label per polygon MINDISTANCE is exactly the tag you need for this, that is why it is here. If you have a performance problem than tell us about that. What makes you think MINDISTANCE would be slower than any other tag. -Steve W. L?veill? wrote: > > Hi, > > I have a layer of polygons. How can I make sure I have only one label > per polygon ??? > I know there is a MINDISTANCE tag - which probably add overhead for > calculation. > Is there another tag that might be faster ? > > Thanks > Regards > > > Here is my layer : > > # ================================================== > # Municipalit? XYZ > # ================================================== > > LAYER > > NAME "municipalite" > PROJECTION > "init=epsg:42105" > END > METADATA > "wms_title" "Municipalit?" > "wms_name" "Municipalit?" > END > STATUS ON > DUMP TRUE > > EXTENT 30000 75000 1700000 2120000 > MAXSCALE 250000 > MINSCALE 1 > TYPE POLYGON > > DATA "bgr_v_muncp_genrl_act/bgr_v_muncp_genrl_act" > > LABELMAXSCALE 250000 > LABELMINSCALE 1 > > CLASS > OUTLINECOLOR 137 175 137 > TEXT ([NOM_MUNCP]) > LABEL > TYPE TRUETYPE > FONT "arial" > SIZE 8 > COLOR 137 175 137 > OUTLINECOLOR 255 255 255 > POSITION CC > END > > END > > END > > __________________________________________ > *James L?veill?* > > *Int?lec G?omatique* > 420, boul. Charest Est > Bureau 400 > Qu?bec (QC), Canada > G1K 8M4 > > Int?lec G?omatique: 418.687.5000 > MTQ: 418.380.2005 (#227) > From dmorissette at MAPGEARS.COM Fri Oct 6 06:59:20 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 6 Oct 2006 09:59:20 -0400 Subject: [UMN_MAPSERVER-USERS] Limit of 1 label per polygon In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E02F92EFD@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: L?veill? wrote: > > I didn't mean I actually had performance issues. > I just THOUGHT that the few calculations made by MapServer to check if more > than one label had to be placed in each polygon would be slower than > systematically placing only one label (less calculation). This is the reason > why I was asking. > Hi James, If I'm not mistaken, the only way you can end up with multiple labels for a given polygon feature would be if your polygon is split in multiple parts (multiple shapes), in which case you may end up with up to one label per shape. If your dataset contains split plygons then one solution to get optimal performance would be to preprocess your data and merge the polygons that are split. The other alternative is using MINDISTANCE, I don't think the overhead would be that bad unless the polygons are split in tons of tiny parts... and in this case anyway, the time for processing/rendering each individual tiny part is probably going to be more significant than the handling of the MINDISTANCE. Daniel -- Daniel Morissette http://www.mapgears.com/ From sandeepkumar.jakkaraju at GMAIL.COM Fri Oct 6 07:04:59 2006 From: sandeepkumar.jakkaraju at GMAIL.COM (Sandeep Kumar Jakkaraju) Date: Fri, 6 Oct 2006 19:34:59 +0530 Subject: getting map coordinates from mouse click In-Reply-To: <44085.62.77.56.15.1160137833.squirrel@62.77.56.15> Message-ID: Hi a similar problem ... I want to know the img_x and img_y for a corresponding MAPLON, MAPLAT.... Thanks sandeep On 10/6/06, Pietro Giannini wrote: > > Hi list, > > a simple question: > in php and mapscript 4.8.3, how can I get the map coordinates of the mouse > click? > > Via the php variables (_POST or _GET), a clik on the map image can only > return a couple of PIXEL coordinates (e.g $_GET['img_x'] and > $_GET['img_y'], where "img" is the name of image input on the html form). > MAPLON and MAPLAT (cgi variables) are the lon and lat coords of the > clicked point, but I don't know how to read this variables in the > php/mapscript environment. > > Any help? > > ___________________________ > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ale.pas at TISCALI.IT Fri Oct 6 07:21:40 2006 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Fri, 6 Oct 2006 16:21:40 +0200 Subject: getting map coordinates from mouse click In-Reply-To: Message-ID: Il 16:04, venerd? 6 ottobre 2006, Sandeep Kumar Jakkaraju ha scritto: > Hi > > a similar problem ... > > I want to know the img_x and img_y for a corresponding MAPLON, MAPLAT.... I believe the only way is to do some math on the server or on the client (with javascript code). You already know the map extent and jpeg size, don't you? You can find a lot of examples on the net, just look at the js code of one of the many webgis clients (p.mapper, openlayers or ka-map to cite a few). Regards. -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From sandeepkumar.jakkaraju at GMAIL.COM Fri Oct 6 22:22:14 2006 From: sandeepkumar.jakkaraju at GMAIL.COM (Sandeep Kumar Jakkaraju) Date: Sat, 7 Oct 2006 10:52:14 +0530 Subject: getting map coordinates from mouse click In-Reply-To: <200610061621.41841.ale.pas@tiscali.it> Message-ID: Hi I am doing this .... I have lat/lon of Top Left Corner of the Map and Bottom Right Corner of The Map iam converting them to projected X,Y using this projection defintion World Mercator <54004> +proj=merc +latts=0 +lon0=0 +k=1.000000 +x0=0 +y0=0 +ellps=WGS84 +datum=WGS84 +units=m no_defs <> For example: tl_lat = 42.8483; tl_lon = -74.2935; br_lat = 42.3813; br_lon = -73.6509; using pj_transform of proj4.. iam converting them to X,Y. top left xy -8270314.5893 , 5259843.0071 btm right xy -8198780.6845 , 5189458.4882 I calculate the Centre cX,cY using the top left X,Y and Btm right X,Y... The Size of the Image I have generated from the Map is (1031,801)... width = absolute value of (btm right X - top left X) height = absolute value of (btm right Y - top left Y) Now I am trying to get the pixel x,y from the projected X,Y using this formula px = 515.5 + (1031/width)*(X-cX); py = 400.5 - (801/height)*(Y-cY); This gives correct pixels if i give top left or bottom right or the centre X,Y... But for some point inside the Image ... the calcualted pixel X is some 2/3 pixels away from actual pixel X the calcualted pixel Y is some 8/10 pixels away from actual pixel Y where am I going wrong ... is the projection iam using correct for such calculations ..??? Thanks in advance. sandeep On 10/6/06, Alessandro Pasotti wrote: > > Il 16:04, venerd? 6 ottobre 2006, Sandeep Kumar Jakkaraju ha scritto: > > Hi > > > > a similar problem ... > > > > I want to know the img_x and img_y for a corresponding MAPLON, > MAPLAT.... > > I believe the only way is to do some math on the server or on the client > (with > javascript code). > > You already know the map extent and jpeg size, don't you? > > You can find a lot of examples on the net, just look at the js code of one > of > the many webgis clients (p.mapper, openlayers or ka-map to cite a few). > > Regards. > -- > Alessandro Pasotti > itOpen - "Open Solutions for the Net Age" > w3: www.itopen.it > Linux User# 167502 > -- Sandeep Kumar Jakkaraju WeBlog: http://jakkarajus.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Oct 6 22:54:13 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 7 Oct 2006 01:54:13 -0400 Subject: S57 Soundings Value In-Reply-To: Message-ID: Stephane Lessard wrote: > Sorry about the double-post... I forgot to change the subject... > > > Hello List, > > I'm trying to display the S57 Soundings values on my map. Here's the output > of ogrinfo on the SOUNDG layer of my S57 chart (the relevant part, for 1 > feature): > > OGRFeature(SOUNDG):140 > RCID (Integer) = 141 > ... > MULTIPOINT (-72.373733104642483 46.402858362124853 9.5) > > > I can display a SYMBOL at the appropriate coordinate, but what I need is the > actual Z value... (9.5) Anyone can help me accomplish this? What should I > put as a LABELITEM? Here is my layer definition: Stephane, Normally this would not be possible. But it happens that others have had a similar wish with the S57 driver before, and so there are some special hacks (aka runtime options) that make this possible. You can set the OGR_S57_OPTIONS variable to include SPLIT_MULTIPOINT=ON,ADD_SOUNDG_DEPTH=ON and then the multipoints will be split up with one feature per sounding, and a new DEPTH attribute with the depth value. eg. ogrinfo --config OGR_S57_OPTIONS SPLIT_MULTIPOINT=ON,ADD_SOUNDG_DEPTH=ON -ro GB4X0000.000 SOUNDG In the mapfile, this can be accomplished with the CONFIG keyword at the map level. eg. CONFIG "OGR_S57_OPTIONS" "SPLIT_MULTIPOINT=ON,ADD_SOUNDG_DEPTH=ON" 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 | President OSGeo, http://osgeo.org From gregor at HOSTGIS.COM Sat Oct 7 09:55:25 2006 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sat, 7 Oct 2006 09:55:25 -0700 Subject: Using expressions Mapscript, attribute not found in shapefile Message-ID: I'm pulling in a mapfile, then dynamically setting the DATA variable for a layer to a shapefile which was generated on the fly. The PHP/Mapscript for the layer is as follows: // grab the points layer and tweak it $points_datasource = $TEMPDIR.'/points_'.$_REQUEST['sessionid'].'.shp'; $layer = $map->getLayerByName('points'); $layer->set('data',$tracks_datasource); $layer->set('status',MS_ON); The layer from the mapfile is as follows: (the other classes omitted, for brevity) LAYER NAME "points" TYPE point STATUS off DATA "" #CLASSITEM "DIRECTION" CLASS STYLE COLOR 0 0 255 SIZE 6 SYMBOL "point_circle" END END END So, the Mapscript populates the DATA part, then sets STATUS ON -- ta da! This all works well and fine... until I uncomment the CLASSITEM declaration. I then find this in the error_log and things stop working: PHP Warning: [MapServer Error]: msDBFGetItemIndex(): Item 'DIRECTION' not found. I've verified that it's setting $points_datasource properly (that's what I ran ogrinfo on) and I'm sure that the shapefile has a DIRECTION attribute: Layer name: points_0353ab4cbed5beae847a7ff6e220b5cf Geometry: Point Feature Count: 11 Extent: (-111.590177, 35.221856) - (-111.586098, 35.223218) Layer SRS WKT: (unknown) POINTID: Real (11.0) DIRECTION: String (80.0) OGRFeature(points_0353ab4cbed5beae847a7ff6e220b5cf):0 POINTID (Real) = 365 DIRECTION (String) = W POINT (-111.586500999999998 35.222957) (more features listed, but omitted for brevity) Hardcoding the path to the shapefile and changing status to on allows me to use shp2img, and that works just fine, classifying the shapes and all. However, PHP/Mapscript still complains that there is no DIRECTION attribute. Any ideas? -- HostGIS Cartographic development and hosting services 707-822-9355 http://www.HostGIS.com/ From richard.greenwood at GMAIL.COM Sun Oct 8 06:16:35 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sun, 8 Oct 2006 07:16:35 -0600 Subject: dLegend initilization and license Message-ID: Two very general questions about dLegend: 1. It uses the 4 Yahoo Javascript files that say "Copyright (c) 2006 Yahoo! Inc. All rights reserved." So is it legal to use those Javascript libraries? 2. dLegend does not put a "check" in the active layers when it is first initialized. I would like to work on that. Has anyone else looked into that? Can anyone offer any suggestions as to where to start? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From perrygeo at GMAIL.COM Sun Oct 8 14:05:54 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Sun, 8 Oct 2006 14:05:54 -0700 Subject: dLegend initilization and license In-Reply-To: Message-ID: Richard, On 10/8/06, Richard Greenwood wrote: > Two very general questions about dLegend: > 1. It uses the 4 Yahoo Javascript files that say "Copyright (c) 2006 > Yahoo! Inc. All rights reserved." So is it legal to use those > Javascript libraries? > I believe those are part of the Yahoo! User Interface Library (http://developer.yahoo.com/yui/) which is released under the BSD license. -- Matthew T. Perry GIS Analyst / Software Engineer National Center for Ecological Analysis and Synthesis (NCEAS) work: perry at nceas.ucsb.edu web: http://www.perrygeo.net From gregor at HOSTGIS.COM Sun Oct 8 16:32:11 2006 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sun, 8 Oct 2006 16:32:11 -0700 Subject: Using expressions Mapscript, attribute not found in shapefile In-Reply-To: <1360.207.224.41.36.1160240126.squirrel@maps.hostgis.com> Message-ID: Oh, geez, is this one embarrassing. > // grab the points layer and tweak it > $points_datasource = $TEMPDIR.'/points_'.$_REQUEST['sessionid'].'.shp'; > $layer = $map->getLayerByName('points'); > $layer->set('data',$tracks_datasource); > $layer->set('status',MS_ON); I was loading $tracks_datasource instead of $points_datasource. Naturally, reading the wrong shapefile was not helping. As the saying goes: "User error. Replace user and reboot." Sorry to both y'all. :) From fsc7mail at GMAIL.COM Mon Oct 9 08:19:26 2006 From: fsc7mail at GMAIL.COM (Felipe Costa) Date: Mon, 9 Oct 2006 11:19:26 -0400 Subject: Mapscript Html Legends Message-ID: Hello, I've seen the tutorial in the site about html legends but there was written that it's necessary cgi. Is there anyway to use html legends using Mapscript? Actually my problem is that I have a layer with a big description, that makes my legend picture appears too big, breaking my layout. I wanted to hav the possibility to break the lines like a
tag in my Legend object. I thought about HTML legends because I could have more control if legends were in text. I don't know if I was able to describe my problem but thanks in advance for any help. Felipe Costa Instituto Nacional de Pesquisas da Amaz?nia - INPA SIGLAB -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Mon Oct 9 10:02:24 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 9 Oct 2006 12:02:24 -0500 Subject: Mapscript Html Legends In-Reply-To: <549eaee90610090819x63e385e6pdecd5f9c6159295@mail.gmail.com> Message-ID: I believe templates, including legend templates can be used using the processTemplate method. A super simple template like [legend] would be enough to get at the HTML legend. You could also use the MapServer CGI as a legend engine. Calls like /cgi-bin/mapserv?map=...&mode=legend will get you the HTML from an HTML legend if it's defined that way (or an image otherwise). Steve >>> Felipe Costa 10/9/2006 10:19 AM >>> Hello, I've seen the tutorial in the site about html legends but there was written that it's necessary cgi. Is there anyway to use html legends using Mapscript? Actually my problem is that I have a layer with a big description, that makes my legend picture appears too big, breaking my layout. I wanted to hav the possibility to break the lines like a
tag in my Legend object. I thought about HTML legends because I could have more control if legends were in text. I don't know if I was able to describe my problem but thanks in advance for any help. Felipe Costa Instituto Nacional de Pesquisas da Amaz?nia - INPA SIGLAB From Steve.Lime at DNR.STATE.MN.US Mon Oct 9 09:44:20 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 9 Oct 2006 11:44:20 -0500 Subject: dLegend initilization and license In-Reply-To: Message-ID: 1) Matthew is correct on the library license - a BSD license. 2) My take on legend intialization with applications like dbox was to initialize the legend at the application level rather than using settings from the mapfile. dLegend has a method for setting layer state (changeNodeStatus) which can be called once a legend is initialized. Typically your application might support passing layers names in from a URL or via cookie and then you'd use those to initialize the legend after it exists (in the body onLoad). This works conceptually like the MapServer CGI were everything is off by default and you explicitly turn things using layer= and so on. The problem with potentially setting state in 2 places (e.g. mapfile and URL) is that they may collide. If you really wanted to support setting layers "on" based on the mapfile state you'd need to muck with the legend XML generator(s) and add a "status" attribute and then tweak the javascript in dlegend.js to recognize that attribute. Let me know if you decide to go there so we can modify the other language XML generators (perl, PHP and python all exist). Steve >>> Richard Greenwood 10/8/2006 8:16 AM >>> Two very general questions about dLegend: 1. It uses the 4 Yahoo Javascript files that say "Copyright (c) 2006 Yahoo! Inc. All rights reserved." So is it legal to use those Javascript libraries? 2. dLegend does not put a "check" in the active layers when it is first initialized. I would like to work on that. Has anyone else looked into that? Can anyone offer any suggestions as to where to start? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From jcleary at EMAIL.UNC.EDU Mon Oct 9 13:12:43 2006 From: jcleary at EMAIL.UNC.EDU (Jesse Cleary) Date: Mon, 9 Oct 2006 16:12:43 -0400 Subject: WMS PNG transparency issue Message-ID: Hi folks I've got a sticky WMS transparency problem I can't resolve. I'm serving a WMS layer to another Mapserver instance for further display and having very odd PNG transparency issues. The issue is that my layer appears in their map with a colored but slightly transparent background (usually green, purple, or red) . The features in my layer are not transparent, just the background. The background color can vary upon map refresh. Has anyone run into this colored pseudo-transparency before? This remains the case when: 1. I serve an RGB PNG and they use an OFFSITE value. 2. I serve an RGB JPEG and they use an OFFSITE value. 3. I serve an RGBA PNG with TRANSPARENT TRUE on the my end and no OFFSITE on the client end. The only way to avoid this behavior is to set the client mapfile to serve PC256 PNGs which causes rendering issue with the existing legends in their application. However when my layer is displayed, the rendering issues are minimized, when my layer is off, legend colors render poorly. I've tried many different permutations of other image formats on both ends, but these are really shots in the dark My version is MS 4.8.1 the client instance is MS 4.0.1 - they are also using PHP/MapScript 4.0.1 to manipulate the mapfile for their UI, but I don't see any image format changes in that code... Thanks for whatever pointers folks might suggest! Jesse My relevant mapfile bits: MAP NAME "" STATUS ON EXTENT -79.069 32.643 -73.341 37.103 SIZE 666 500 SHAPEPATH "../data" SYMBOLSET "../etc/symbols.sym" FONTSET "../etc/fonts.txt" IMAGETYPE PNG DEBUG ON IMAGECOLOR 255 255 255 OUTPUTFORMAT NAME png MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE RGB FORMATOPTION "INTERLACE=OFF" TRANSPARENT OFF END ..... Client mapfile bits: MAP NAME "" STATUS ON EXTENT -91.5 22 -71.5 36.5 SIZE 456 384 SHAPEPATH "../data" SYMBOLSET "../symbols.sym" FONTSET "../fonts.txt" IMAGECOLOR 230 247 254 UNITS DD IMAGETYPE PNG OUTPUTFORMAT NAME PNG DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 # this works, RGB or RGBA do not EXTENSION "png" END .... -- Jesse Cleary Department of Marine Sciences UNC Chapel Hill 17-6 Venable Hall jcleary at email.unc.edu (919) 962-4323 From btrimble at SFWMD.GOV Mon Oct 9 14:23:24 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Mon, 9 Oct 2006 17:23:24 -0400 Subject: image to ascii question Message-ID: Hi People, I have a SDE raster file that I want to get its values in an ascii format. I want to use gadal or python. Does anybody know if there is such a command in either of these libraries? I checked the PIL python but I did not see save to ascii method. It is saving in other image formats. I also could not find any in gadal under Mapserver. Thanks Beheen -------------- next part -------------- An HTML attachment was scrubbed... URL: From btrimble at SFWMD.GOV Mon Oct 9 18:37:42 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Mon, 9 Oct 2006 21:37:42 -0400 Subject: Highlite with mode=query Message-ID: All, Is it possible to use the hilit with mode=query? If the only way is using the QUERYMAP, would you please someone give me a small sample with the webpage and the template, a complete one layer example? Thanks Beheen -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddansereau at HYDROPOINT.COM Mon Oct 9 17:27:11 2006 From: ddansereau at HYDROPOINT.COM (Dan Dansereau) Date: Mon, 9 Oct 2006 17:27:11 -0700 Subject: FW: simple question that the answers eludes my logic Message-ID: Hello ALL I have a need to have a small map file ( at the bottom of this email ) and a CGI driver - based on the Itasca Demo - it works for me, and do to the total amount of other processes and scripts that make use if this technique - a rewrite to another form such as PHP or JAVA is currently out of the question. I would like to have the map file get the raster image name at run time And not fixed with "Jan" like the below map file segment. I'm not sure where or how to put this in the HTML. Currently the HTML gets then names from a pre-defined pull down menu. The new names need to be similar to Jan_01_2006 but can be anything legal date range. ...... LAYER NAME Jan_Earth TYPE RASTER STATUS ON TILEINDEX "Jan_index.shp" TILEITEM "Location" CLASS NAME 'Jan_Earth' keyimage data/JanKey.png END END .... I have tried several different ways as per the documentation to insert this into the html and the map file but with no success. Would anybody have a mapfile and a CGI example that would be somewhat compatible that they would be willing to share - or be able to point me towards some additional documentation... My thanks ahead of time... Dan This is the map file # start of maps file MAP NAME WORLD STATUS ON SIZE 600 600 EXTENT -180.0 -90.0 180.0 90.0 UNITS dd SHAPEPATH "data" IMAGECOLOR 255 255 255 TEMPLATEPATTERN "world" IMAGETYPE PNG SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END ......took a bunch out here due to the 80k email limits # # Start of layer definitions # # raster data 1st # World Images by Month LAYER NAME Jan_Earth TYPE RASTER STATUS ON TILEINDEX "Jan_index.shp" TILEITEM "Location" CLASS NAME 'Jan_Earth' keyimage data/JanKey.png END END LAYER NAME Feb_Earth TYPE RASTER STATUS ON TILEINDEX "Feb_index.shp" TILEITEM "Location" CLASS NAME 'Feb_Earth' keyimage data/FebKey.png END END # # then the rest of the maps # LAYER CONNECTIONTYPE postgis CONNECTION "user=dad dbname=maps host=10.0.0.215" NAME wld_country TYPE POLYGON DATA "the_geom from wld_country" STATUS on TRANSPARENCY 50 CLASS NAME 'wld_country' OUTLINECOLOR 1 1 1 END END .........took a bunch out here due to the 80k email limit END # Map File This is the html file MapServer/Imaps

...took a bunch out here due to the 80k email limits ...this was the pan and map html stuff....
pan northwest
 

 World Base Map
 Choose an Action:
Browse Map
Query Features

Select Map Layers to Display


Zoom Controls - Select & Click on Map
Zoom In Pan Zoom Out
Zoom in by drawing a "rubber band" box (left button on the mouse)
Legend:

Return to Weather Station & Interactive Selection from -------------- next part -------------- An HTML attachment was scrubbed... URL: From xpxiong at PURDUE.EDU Mon Oct 9 20:41:33 2006 From: xpxiong at PURDUE.EDU (Xiaopeng Xiong) Date: Mon, 9 Oct 2006 23:41:33 -0400 Subject: Help: generating a hyperlink in query result Message-ID: I have one index on raster images and it can be displayed and queried through Mapserver. I wonder whether it would be possible to generate a hyperlink in query result. The hyperlink will be generated based on one attribute in the index. For example, if the attribute value is "/home/myDir/1.img", the hyperlink will direct user to http://SomeWebsite/myDir/1.img". I appreciate any suggestions or ideas. Thank you Best regards, Xiaopeng -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jacob.Delfos at MAUNSELL.COM Mon Oct 9 21:11:52 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 10 Oct 2006 12:11:52 +0800 Subject: Help: generating a hyperlink in query result Message-ID: Hi Xiaopeng, If the attribute value is simply passed into the HTML, then it's simply a matter of putting in the right HTML code: Click for 1.img (the target=# makes it open in a new window) I normally generate a directory listing, and paste it into a spreadsheet (e.g. excel / openOffice CALC), and split up the parts of the link, then concatenate them. For example, imagine a row in a spreadsheet: column 1: column 4: click for image column 5: 1 column 6: column 7: =concatenate(column1, column2, column3, column4, column6) Only column 2 and 5 will change (can use autonumber). All other columns will hold the same value, and can be copied across. Hope this makes sense. regards, Jacob ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xiaopeng Xiong Sent: 10 October 2006 11:42 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result I have one index on raster images and it can be displayed and queried through Mapserver. I wonder whether it would be possible to generate a hyperlink in query result. The hyperlink will be generated based on one attribute in the index. For example, if the attribute value is "/home/myDir/1.img", the hyperlink will direct user to http://SomeWebsite/myDir/1.img". I appreciate any suggestions or ideas. Thank you Best regards, Xiaopeng -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruckc at YAHOO.COM Mon Oct 9 21:27:02 2006 From: ruckc at YAHOO.COM (Curtis W. Ruck) Date: Mon, 9 Oct 2006 21:27:02 -0700 Subject: Help: generating a hyperlink in query result Message-ID: I wrote an immutable function hyperlink(path) in pl/pgsql that returns a URL for a record. I then created an index on the function on the table and incorporated it into my default view. ----- Original Message ---- From: Xiaopeng Xiong To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, October 9, 2006 10:41:33 PM Subject: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result I have one index on raster images and it can be displayed and queried through Mapserver. I wonder whether it would be possible to generate a hyperlink in query result. The hyperlink will be generated based on one attribute in the index. For example, if the attribute value is "/home/myDir/1.img", the hyperlink will direct user to http://SomeWebsite/myDir/1.img". I appreciate any suggestions or ideas. Thank you Best regards, Xiaopeng -------------- next part -------------- An HTML attachment was scrubbed... URL: From listuser at HERZSYS.DE Tue Oct 10 01:02:10 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Tue, 10 Oct 2006 10:02:10 +0200 Subject: MS RFC 15: Support for thread neutral operation of mapserver/mapscript - plans? Message-ID: Hi all, the new version has some fine features - thanks to all who have worked for this. One thing I would like to know: The MS RFC 15 is important for using mapscript and I believe many users would like to see this realized in the future. When reading the RFC it gets clear that there is much work to do at many pieces of the code. So my question is: Is there a plan for realizing this? Will it be done already for the version 5.0 or at which time frame would it be possible? Best regards Norbert From szekerest at GMAIL.COM Tue Oct 10 02:49:11 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 10 Oct 2006 11:49:11 +0200 Subject: MS RFC 15: Support for thread neutral operation of mapserver/mapscript - plans? In-Reply-To: <452B5382.1030307@herzsys.de> Message-ID: Norbert, Yes the release plan for 5.0 contains this issue, http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/ It must be noted that the libraries that mapserver uses may also affect the thread safety, so those libraries should also be reviewed and handled. Best Regards, Tamas 2006/10/10, listuser HH : > Hi all, > > the new version has some fine features - thanks to all who have worked > for this. > > One thing I would like to know: The MS RFC 15 is important for using > mapscript and I believe many users would like to see this realized in > the future. When reading the RFC it gets clear that there is much work > to do at many pieces of the code. So my question is: Is there a plan for > realizing this? Will it be done already for the version 5.0 or at which > time frame would it be possible? > > Best regards > Norbert > From mike.talbutt at DOTTEDEYES.COM Tue Oct 10 04:13:41 2006 From: mike.talbutt at DOTTEDEYES.COM (mikiet) Date: Tue, 10 Oct 2006 04:13:41 -0700 Subject: Adding points to a shp file Message-ID: Hi there, I am using java mapscript and have a requirement to add some points to an ESRI shape file (bear with me here, I'm a mapinfo man). I'm using an ESRI shape file that came with the ms101 tutorial WorldCities.shp. Its definitly a point shape file as when I run ogrinfo on it I get Layer name: worldCities Geometry: Point Feature Count: 0 Extent: (0.000000, 0.000000) - (0.000000, 0.000000) Layer SRS WKT: (unknown) ID: Integer (6.0) ATTRIB: Integer (4.0) MGCC: Integer (4.0) ADMIN_CODE: Integer (4.0) UFI: Integer (9.0) POPULATION: Integer (9.0) NAME: String (250.0) I have created a simple class to add a point to this file, see below, the code runs without error however no feature is added to the file, I'm sure its a simple fix but can anyone point me in the right direction please ? public static void test(){ try { System.out.println("starting run...."); shapeObj shape = new shapeObj(mapscript.MS_SHAPEFILE_POINT); lineObj lo = new lineObj(); pointObj po = new pointObj(1d,1d,0d); lo.add(po); shape.add(lo); String shapeFullPath = "C:\\ms4w\\apps\\ms101\\data\\shapefile\\WorldCities.shp"; shapefileObj shapefile = new shapefileObj(shapeFullPath, mapscript.MS_SHAPEFILE_POINT); shapefile.add(shape); System.out.println("Shape added"); } catch (Exception e) { e.printStackTrace(); } } -- View this message in context: http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a6734343 Sent from the Mapserver - User mailing list archive at Nabble.com. From btrimble at SFWMD.GOV Tue Oct 10 04:58:31 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Tue, 10 Oct 2006 07:58:31 -0400 Subject: Adding points to a shp file Message-ID: What is the coordinate of your new points? Are you adding (1,1,0)? Is the unit understood by ogr? The problem usually is among extent, projection and spatial reference! See if mapscript has any of these types of functions. The extent shown, below, by grinfo is not promising. B -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of mikiet Sent: Tuesday, October 10, 2006 7:14 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] Adding points to a shp file Hi there, I am using java mapscript and have a requirement to add some points to an ESRI shape file (bear with me here, I'm a mapinfo man). I'm using an ESRI shape file that came with the ms101 tutorial WorldCities.shp. Its definitly a point shape file as when I run ogrinfo on it I get Layer name: worldCities Geometry: Point Feature Count: 0 Extent: (0.000000, 0.000000) - (0.000000, 0.000000) Layer SRS WKT: (unknown) ID: Integer (6.0) ATTRIB: Integer (4.0) MGCC: Integer (4.0) ADMIN_CODE: Integer (4.0) UFI: Integer (9.0) POPULATION: Integer (9.0) NAME: String (250.0) I have created a simple class to add a point to this file, see below, the code runs without error however no feature is added to the file, I'm sure its a simple fix but can anyone point me in the right direction please ? public static void test(){ try { System.out.println("starting run...."); shapeObj shape = new shapeObj(mapscript.MS_SHAPEFILE_POINT); lineObj lo = new lineObj(); pointObj po = new pointObj(1d,1d,0d); lo.add(po); shape.add(lo); String shapeFullPath = "C:\\ms4w\\apps\\ms101\\data\\shapefile\\WorldCities.shp"; shapefileObj shapefile = new shapefileObj(shapeFullPath, mapscript.MS_SHAPEFILE_POINT); shapefile.add(shape); System.out.println("Shape added"); } catch (Exception e) { e.printStackTrace(); } } -- View this message in context: http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673434 3 Sent from the Mapserver - User mailing list archive at Nabble.com. From mike.talbutt at DOTTEDEYES.COM Tue Oct 10 05:47:51 2006 From: mike.talbutt at DOTTEDEYES.COM (mikiet) Date: Tue, 10 Oct 2006 05:47:51 -0700 Subject: Adding points to a shp file In-Reply-To: Message-ID: I've noticed that the first time I ran my test it emptied the shape file, the original ogrinfo on the file produced was Layer name: worldCities Geometry: Point Feature Count: 12686 Extent: (-178.166667, -54.800000) - (179.383333, 78.933333) Layer SRS WKT: (unknown) ID: Integer (6.0) ATTRIB: Integer (4.0) MGCC: Integer (4.0) ADMIN_CODE: Integer (4.0) UFI: Integer (9.0) POPULATION: Integer (9.0) NAME: String (250.0) after I had run my test the features were 0 and the extents 0. the point coordinate that I am adding (1,1) in the test is well within the extents of the original shape file (-178.166667, -54.800000) - (179.383333, 78.933333) Trimble, Beheen wrote: > > What is the coordinate of your new points? Are you adding (1,1,0)? Is > the unit understood by ogr? The problem usually is among extent, > projection and spatial reference! See if mapscript has any of these > types of functions. The extent shown, below, by grinfo is not promising. > > > B > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On > Behalf Of mikiet > Sent: Tuesday, October 10, 2006 7:14 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] Adding points to a shp file > > Hi there, > > I am using java mapscript and have a requirement to add some points to > an > ESRI shape file (bear with me here, I'm a mapinfo man). I'm using an > ESRI > shape file that came with the ms101 tutorial WorldCities.shp. Its > definitly > a point shape file as when I run ogrinfo on it I get > > Layer name: worldCities > Geometry: Point > Feature Count: 0 > Extent: (0.000000, 0.000000) - (0.000000, 0.000000) > Layer SRS WKT: > (unknown) > ID: Integer (6.0) > ATTRIB: Integer (4.0) > MGCC: Integer (4.0) > ADMIN_CODE: Integer (4.0) > UFI: Integer (9.0) > POPULATION: Integer (9.0) > NAME: String (250.0) > > I have created a simple class to add a point to this file, see below, > the > code runs without error however no feature is added to the file, I'm > sure > its a simple fix but can anyone point me in the right direction please ? > > public static void test(){ > try { > System.out.println("starting run...."); > shapeObj shape = new > shapeObj(mapscript.MS_SHAPEFILE_POINT); > lineObj lo = new lineObj(); > pointObj po = new pointObj(1d,1d,0d); > lo.add(po); > shape.add(lo); > String shapeFullPath = > "C:\\ms4w\\apps\\ms101\\data\\shapefile\\WorldCities.shp"; > shapefileObj shapefile = new shapefileObj(shapeFullPath, > mapscript.MS_SHAPEFILE_POINT); > shapefile.add(shape); > System.out.println("Shape added"); > } catch (Exception e) { > e.printStackTrace(); > } > } > -- > View this message in context: > http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673434 > 3 > Sent from the Mapserver - User mailing list archive at Nabble.com. > > -- View this message in context: http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a6735664 Sent from the Mapserver - User mailing list archive at Nabble.com. From btrimble at SFWMD.GOV Tue Oct 10 05:57:16 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Tue, 10 Oct 2006 08:57:16 -0400 Subject: Adding points to a shp file Message-ID: I don't know mapscript but below does not look right to me: lineObj lo = new lineObj(); pointObj po = new pointObj(1d,1d,0d); lo.add(po); Are you adding a point object to a line object consisting of only one point? If that is how line is created in java mapscript I think it should be 2 points. Try just adding the point to shape object by itself, just create on type shape object such as point shape. B -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of mikiet Sent: Tuesday, October 10, 2006 8:48 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Adding points to a shp file I've noticed that the first time I ran my test it emptied the shape file, the original ogrinfo on the file produced was Layer name: worldCities Geometry: Point Feature Count: 12686 Extent: (-178.166667, -54.800000) - (179.383333, 78.933333) Layer SRS WKT: (unknown) ID: Integer (6.0) ATTRIB: Integer (4.0) MGCC: Integer (4.0) ADMIN_CODE: Integer (4.0) UFI: Integer (9.0) POPULATION: Integer (9.0) NAME: String (250.0) after I had run my test the features were 0 and the extents 0. the point coordinate that I am adding (1,1) in the test is well within the extents of the original shape file (-178.166667, -54.800000) - (179.383333, 78.933333) Trimble, Beheen wrote: > > What is the coordinate of your new points? Are you adding (1,1,0)? Is > the unit understood by ogr? The problem usually is among extent, > projection and spatial reference! See if mapscript has any of these > types of functions. The extent shown, below, by grinfo is not promising. > > > B > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On > Behalf Of mikiet > Sent: Tuesday, October 10, 2006 7:14 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] Adding points to a shp file > > Hi there, > > I am using java mapscript and have a requirement to add some points to > an > ESRI shape file (bear with me here, I'm a mapinfo man). I'm using an > ESRI > shape file that came with the ms101 tutorial WorldCities.shp. Its > definitly > a point shape file as when I run ogrinfo on it I get > > Layer name: worldCities > Geometry: Point > Feature Count: 0 > Extent: (0.000000, 0.000000) - (0.000000, 0.000000) > Layer SRS WKT: > (unknown) > ID: Integer (6.0) > ATTRIB: Integer (4.0) > MGCC: Integer (4.0) > ADMIN_CODE: Integer (4.0) > UFI: Integer (9.0) > POPULATION: Integer (9.0) > NAME: String (250.0) > > I have created a simple class to add a point to this file, see below, > the > code runs without error however no feature is added to the file, I'm > sure > its a simple fix but can anyone point me in the right direction please ? > > public static void test(){ > try { > System.out.println("starting run...."); > shapeObj shape = new > shapeObj(mapscript.MS_SHAPEFILE_POINT); > lineObj lo = new lineObj(); > pointObj po = new pointObj(1d,1d,0d); > lo.add(po); > shape.add(lo); > String shapeFullPath = > "C:\\ms4w\\apps\\ms101\\data\\shapefile\\WorldCities.shp"; > shapefileObj shapefile = new shapefileObj(shapeFullPath, > mapscript.MS_SHAPEFILE_POINT); > shapefile.add(shape); > System.out.println("Shape added"); > } catch (Exception e) { > e.printStackTrace(); > } > } > -- > View this message in context: > http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673434 > 3 > Sent from the Mapserver - User mailing list archive at Nabble.com. > > -- View this message in context: http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673566 4 Sent from the Mapserver - User mailing list archive at Nabble.com. From mike.talbutt at DOTTEDEYES.COM Tue Oct 10 06:02:54 2006 From: mike.talbutt at DOTTEDEYES.COM (Mike Talbutt) Date: Tue, 10 Oct 2006 14:02:54 +0100 Subject: Adding points to a shp file Message-ID: Unfortunately in the java mapscript API the add method on shape only takes a lineObj object, I believe a lineObj with only one point set is a point. -----Original Message----- From: Trimble, Beheen [mailto:btrimble at sfwmd.gov] Sent: 10 October 2006 13:57 To: Mike Talbutt; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Adding points to a shp file I don't know mapscript but below does not look right to me: lineObj lo = new lineObj(); pointObj po = new pointObj(1d,1d,0d); lo.add(po); Are you adding a point object to a line object consisting of only one point? If that is how line is created in java mapscript I think it should be 2 points. Try just adding the point to shape object by itself, just create on type shape object such as point shape. B -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of mikiet Sent: Tuesday, October 10, 2006 8:48 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Adding points to a shp file I've noticed that the first time I ran my test it emptied the shape file, the original ogrinfo on the file produced was Layer name: worldCities Geometry: Point Feature Count: 12686 Extent: (-178.166667, -54.800000) - (179.383333, 78.933333) Layer SRS WKT: (unknown) ID: Integer (6.0) ATTRIB: Integer (4.0) MGCC: Integer (4.0) ADMIN_CODE: Integer (4.0) UFI: Integer (9.0) POPULATION: Integer (9.0) NAME: String (250.0) after I had run my test the features were 0 and the extents 0. the point coordinate that I am adding (1,1) in the test is well within the extents of the original shape file (-178.166667, -54.800000) - (179.383333, 78.933333) Trimble, Beheen wrote: > > What is the coordinate of your new points? Are you adding (1,1,0)? Is > the unit understood by ogr? The problem usually is among extent, > projection and spatial reference! See if mapscript has any of these > types of functions. The extent shown, below, by grinfo is not promising. > > > B > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On > Behalf Of mikiet > Sent: Tuesday, October 10, 2006 7:14 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] Adding points to a shp file > > Hi there, > > I am using java mapscript and have a requirement to add some points to > an ESRI shape file (bear with me here, I'm a mapinfo man). I'm using > an ESRI > shape file that came with the ms101 tutorial WorldCities.shp. Its > definitly > a point shape file as when I run ogrinfo on it I get > > Layer name: worldCities > Geometry: Point > Feature Count: 0 > Extent: (0.000000, 0.000000) - (0.000000, 0.000000) > Layer SRS WKT: > (unknown) > ID: Integer (6.0) > ATTRIB: Integer (4.0) > MGCC: Integer (4.0) > ADMIN_CODE: Integer (4.0) > UFI: Integer (9.0) > POPULATION: Integer (9.0) > NAME: String (250.0) > > I have created a simple class to add a point to this file, see below, > the code runs without error however no feature is added to the file, > I'm sure > its a simple fix but can anyone point me in the right direction please ? > > public static void test(){ > try { > System.out.println("starting run...."); > shapeObj shape = new shapeObj(mapscript.MS_SHAPEFILE_POINT); > lineObj lo = new lineObj(); > pointObj po = new pointObj(1d,1d,0d); > lo.add(po); > shape.add(lo); > String shapeFullPath = > "C:\\ms4w\\apps\\ms101\\data\\shapefile\\WorldCities.shp"; > shapefileObj shapefile = new shapefileObj(shapeFullPath, > mapscript.MS_SHAPEFILE_POINT); > shapefile.add(shape); > System.out.println("Shape added"); > } catch (Exception e) { > e.printStackTrace(); > } > } > -- > View this message in context: > http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673434 > 3 > Sent from the Mapserver - User mailing list archive at Nabble.com. > > -- View this message in context: http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673566 4 Sent from the Mapserver - User mailing list archive at Nabble.com. Email has been scanned for viruses and spam by Altman Technologies' email management service - www.altman.co.uk/emailsystems Email has been scanned for viruses and spam by Altman Technologies' email management service - www.altman.co.uk/emailsystems From btrimble at SFWMD.GOV Tue Oct 10 06:23:27 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Tue, 10 Oct 2006 09:23:27 -0400 Subject: Adding points to a shp file Message-ID: Are you using a mapfile to display the point? Can you look at the new shape in arccatalog? Can you see the attribute of the point in its table? B -----Original Message----- From: Mike Talbutt [mailto:mike.talbutt at dottedeyes.com] Sent: Tuesday, October 10, 2006 9:03 AM To: Trimble, Beheen; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Adding points to a shp file Unfortunately in the java mapscript API the add method on shape only takes a lineObj object, I believe a lineObj with only one point set is a point. -----Original Message----- From: Trimble, Beheen [mailto:btrimble at sfwmd.gov] Sent: 10 October 2006 13:57 To: Mike Talbutt; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Adding points to a shp file I don't know mapscript but below does not look right to me: lineObj lo = new lineObj(); pointObj po = new pointObj(1d,1d,0d); lo.add(po); Are you adding a point object to a line object consisting of only one point? If that is how line is created in java mapscript I think it should be 2 points. Try just adding the point to shape object by itself, just create on type shape object such as point shape. B -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of mikiet Sent: Tuesday, October 10, 2006 8:48 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Adding points to a shp file I've noticed that the first time I ran my test it emptied the shape file, the original ogrinfo on the file produced was Layer name: worldCities Geometry: Point Feature Count: 12686 Extent: (-178.166667, -54.800000) - (179.383333, 78.933333) Layer SRS WKT: (unknown) ID: Integer (6.0) ATTRIB: Integer (4.0) MGCC: Integer (4.0) ADMIN_CODE: Integer (4.0) UFI: Integer (9.0) POPULATION: Integer (9.0) NAME: String (250.0) after I had run my test the features were 0 and the extents 0. the point coordinate that I am adding (1,1) in the test is well within the extents of the original shape file (-178.166667, -54.800000) - (179.383333, 78.933333) Trimble, Beheen wrote: > > What is the coordinate of your new points? Are you adding (1,1,0)? Is > the unit understood by ogr? The problem usually is among extent, > projection and spatial reference! See if mapscript has any of these > types of functions. The extent shown, below, by grinfo is not promising. > > > B > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On > Behalf Of mikiet > Sent: Tuesday, October 10, 2006 7:14 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] Adding points to a shp file > > Hi there, > > I am using java mapscript and have a requirement to add some points to > an ESRI shape file (bear with me here, I'm a mapinfo man). I'm using > an ESRI > shape file that came with the ms101 tutorial WorldCities.shp. Its > definitly > a point shape file as when I run ogrinfo on it I get > > Layer name: worldCities > Geometry: Point > Feature Count: 0 > Extent: (0.000000, 0.000000) - (0.000000, 0.000000) > Layer SRS WKT: > (unknown) > ID: Integer (6.0) > ATTRIB: Integer (4.0) > MGCC: Integer (4.0) > ADMIN_CODE: Integer (4.0) > UFI: Integer (9.0) > POPULATION: Integer (9.0) > NAME: String (250.0) > > I have created a simple class to add a point to this file, see below, > the code runs without error however no feature is added to the file, > I'm sure > its a simple fix but can anyone point me in the right direction please ? > > public static void test(){ > try { > System.out.println("starting run...."); > shapeObj shape = new shapeObj(mapscript.MS_SHAPEFILE_POINT); > lineObj lo = new lineObj(); > pointObj po = new pointObj(1d,1d,0d); > lo.add(po); > shape.add(lo); > String shapeFullPath = > "C:\\ms4w\\apps\\ms101\\data\\shapefile\\WorldCities.shp"; > shapefileObj shapefile = new shapefileObj(shapeFullPath, > mapscript.MS_SHAPEFILE_POINT); > shapefile.add(shape); > System.out.println("Shape added"); > } catch (Exception e) { > e.printStackTrace(); > } > } > -- > View this message in context: > http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673434 > 3 > Sent from the Mapserver - User mailing list archive at Nabble.com. > > -- View this message in context: http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673566 4 Sent from the Mapserver - User mailing list archive at Nabble.com. Email has been scanned for viruses and spam by Altman Technologies' email management service - www.altman.co.uk/emailsystems Email has been scanned for viruses and spam by Altman Technologies' email management service - www.altman.co.uk/emailsystems From richard.greenwood at GMAIL.COM Tue Oct 10 07:26:37 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 10 Oct 2006 08:26:37 -0600 Subject: FW: simple question that the answers eludes my logic In-Reply-To: <9E8869B62C56004781914D8107A36DEFBA39F5@email.corp.hydropoint.com> Message-ID: On 10/9/06, Dan Dansereau wrote: > > > > > Hello ALL > > I have a need to have a small map file ( at the bottom of this email ) > > and a CGI driver ? based on the Itasca Demo ? it works for me, > > and do to the total amount of other processes and scripts that make > > use if this technique ? a rewrite to another form such as PHP or JAVA > > is currently out of the question. > > > > I would like to have the map file get the raster image name at run time > > And not fixed with "Jan" like the below map file segment. I'm not sure where > > or how to put this in the HTML. Currently the HTML gets then names from a > > pre-defined pull down menu. The new names need to be similar to Jan_01_2006 > > but can be anything legal date range. You can set, or override, almost any map file values in the URL. It is described briefly at the bottom of this page and in many emails in the archives. http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages But changing the layer NAME may be difficult. Why do you want to specify the name at run time? I trust that you are trying to more than simply turn the layer on and off? Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Walter.Pleyer at LFRZ.AT Tue Oct 10 07:29:12 2006 From: Walter.Pleyer at LFRZ.AT (Pleyer, Walter) Date: Tue, 10 Oct 2006 16:29:12 +0200 Subject: HTML Legend - Class count Message-ID: Hi Folks! I'm trying to develop a flexible HTML-Template for a legend and I want ti treat layers with only class different from layers with multiple classes. Is there a possibility in the Template to determine if a layer has 1 or more classes and use that for a condition? cheers Walter LFRZ A-1200 Wien, Dresdner Strasse 89 Tel: ++43(1)33 176/421 Fax: ++43(1)33 176/999 Mobil: 0676/5256642 Email: walter.pleyer at lfrz.at WWW: http://www.lfrz.at From btrimble at SFWMD.GOV Tue Oct 10 08:01:01 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Tue, 10 Oct 2006 11:01:01 -0400 Subject: highlite again! Message-ID: Would someone please tell me how to change this page to highlite the selected feature? I have the querymap in my mapfile. If you please make the query string in the nueva function I appreciate. Beheen ================ Performance Measure Graphics Viewer

LECSR North Palm Beach - 2000


scalebar (mi)

Browse map
Query feature
Query multiple features


Select Layers to Display:

Zoom In Pan Zoom Out

Zoom Size

Select a PMSet to Query:

Legend



-------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Tue Oct 10 08:31:01 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 10 Oct 2006 10:31:01 -0500 Subject: HTML Legend - Class count In-Reply-To: Message-ID: I was thinking the same thing last week. I checked the source and this option is not available although it should be. I had to work around it by setting a metadata element like * multiclass 'true'. However, the code should be able to figure that out itself. (Note I may have missed something so if the DMSolutions guys want to chime in...) Probably should file a feature request in bugzilla. Steve >>> "Pleyer, Walter" 10/10/2006 9:29:12 AM >>> Hi Folks! I'm trying to develop a flexible HTML-Template for a legend and I want ti treat layers with only class different from layers with multiple classes. Is there a possibility in the Template to determine if a layer has 1 or more classes and use that for a condition? cheers Walter LFRZ A-1200 Wien, Dresdner Strasse 89 Tel: ++43(1)33 176/421 Fax: ++43(1)33 176/999 Mobil: 0676/5256642 Email: walter.pleyer at lfrz.at WWW: http://www.lfrz.at From mike.talbutt at DOTTEDEYES.COM Tue Oct 10 08:39:54 2006 From: mike.talbutt at DOTTEDEYES.COM (mikiet) Date: Tue, 10 Oct 2006 08:39:54 -0700 Subject: Adding points to a shp file In-Reply-To: Message-ID: I've made some progress the reason my shape file had 0 features after I ran my test was because it was recreating the shape file, I changed the code from shapefileObj shapefile = new shapefileObj(shapeFullPath, mapscript.MS_SHAPEFILE_POINT); to shapefileObj shapefile = new shapefileObj(shapeFullPath, -2); and the shp file is not recreated, looking at the modified date it is actuall modified, however when I run ogrinfo on my layer the feature count has not gone up, also when I view the layer using OpenEV my new point has not been added. Also still not seeing any error messages, can anyone help please ? Trimble, Beheen wrote: > > Are you using a mapfile to display the point? Can you look at the new > shape in arccatalog? Can you see the attribute of the point in its > table? > > > B > > -----Original Message----- > From: Mike Talbutt [mailto:mike.talbutt at dottedeyes.com] > Sent: Tuesday, October 10, 2006 9:03 AM > To: Trimble, Beheen; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Adding points to a shp file > > Unfortunately in the java mapscript API the add method on shape only > takes a lineObj object, I believe a lineObj with only one point set is a > point. > > -----Original Message----- > From: Trimble, Beheen [mailto:btrimble at sfwmd.gov] > Sent: 10 October 2006 13:57 > To: Mike Talbutt; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Adding points to a shp file > > > I don't know mapscript but below does not look right to me: > > lineObj lo = new lineObj(); > pointObj po = new pointObj(1d,1d,0d); > lo.add(po); > > Are you adding a point object to a line object consisting of only one > point? If that is how line is created in java mapscript I think it > should be 2 points. Try just adding the point to shape object by itself, > just create on type shape object such as point shape. > > B > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of mikiet > Sent: Tuesday, October 10, 2006 8:48 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Adding points to a shp file > > I've noticed that the first time I ran my test it emptied the shape > file, the original ogrinfo on the file produced was > > Layer name: worldCities > Geometry: Point > Feature Count: 12686 > Extent: (-178.166667, -54.800000) - (179.383333, 78.933333) Layer SRS > WKT: > (unknown) > ID: Integer (6.0) > ATTRIB: Integer (4.0) > MGCC: Integer (4.0) > ADMIN_CODE: Integer (4.0) > UFI: Integer (9.0) > POPULATION: Integer (9.0) > NAME: String (250.0) > > after I had run my test the features were 0 and the extents 0. > > the point coordinate that I am adding (1,1) in the test is well within > the extents of the original shape file (-178.166667, -54.800000) - > (179.383333, > 78.933333) > > > > > > Trimble, Beheen wrote: >> >> What is the coordinate of your new points? Are you adding (1,1,0)? Is >> the unit understood by ogr? The problem usually is among extent, >> projection and spatial reference! See if mapscript has any of these >> types of functions. The extent shown, below, by grinfo is not > promising. >> >> >> B >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] > On >> Behalf Of mikiet >> Sent: Tuesday, October 10, 2006 7:14 AM >> To: MAPSERVER-USERS at lists.umn.edu >> Subject: [UMN_MAPSERVER-USERS] Adding points to a shp file >> >> Hi there, >> >> I am using java mapscript and have a requirement to add some points to > >> an ESRI shape file (bear with me here, I'm a mapinfo man). I'm using >> an ESRI >> shape file that came with the ms101 tutorial WorldCities.shp. Its >> definitly >> a point shape file as when I run ogrinfo on it I get >> >> Layer name: worldCities >> Geometry: Point >> Feature Count: 0 >> Extent: (0.000000, 0.000000) - (0.000000, 0.000000) >> Layer SRS WKT: >> (unknown) >> ID: Integer (6.0) >> ATTRIB: Integer (4.0) >> MGCC: Integer (4.0) >> ADMIN_CODE: Integer (4.0) >> UFI: Integer (9.0) >> POPULATION: Integer (9.0) >> NAME: String (250.0) >> >> I have created a simple class to add a point to this file, see below, >> the code runs without error however no feature is added to the file, >> I'm sure >> its a simple fix but can anyone point me in the right direction please > ? >> >> public static void test(){ >> try { >> System.out.println("starting run...."); >> shapeObj shape = new > shapeObj(mapscript.MS_SHAPEFILE_POINT); >> lineObj lo = new lineObj(); >> pointObj po = new pointObj(1d,1d,0d); >> lo.add(po); >> shape.add(lo); >> String shapeFullPath = >> "C:\\ms4w\\apps\\ms101\\data\\shapefile\\WorldCities.shp"; >> shapefileObj shapefile = new shapefileObj(shapeFullPath, >> mapscript.MS_SHAPEFILE_POINT); >> shapefile.add(shape); >> System.out.println("Shape added"); >> } catch (Exception e) { >> e.printStackTrace(); >> } >> } >> -- >> View this message in context: >> > http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673434 >> 3 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> > > -- > View this message in context: > http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673566 > 4 > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > Email has been scanned for viruses and spam by Altman Technologies' > email management service - www.altman.co.uk/emailsystems > > Email has been scanned for viruses and spam by Altman Technologies' > email management service - www.altman.co.uk/emailsystems > > -- View this message in context: http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a6739118 Sent from the Mapserver - User mailing list archive at Nabble.com. From btrimble at SFWMD.GOV Tue Oct 10 08:53:23 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Tue, 10 Oct 2006 11:53:23 -0400 Subject: Adding points to a shp file Message-ID: I looking at this constructor: shapefileObj(char *filename, char *shapepath, int type) Perhapse yours is another constructor. See if you can find what are the permissible values for the type. Maybe one is new, one is insert, one is update? I am just gussing! Also see if you can use any of these on your object to get more information of what is going on with the new shapefileObj! B shapefileObj.isopen shapefileObj.lastshape shapefileObj.source shapefileObj.status shapefileObj.statusbounds shapefileObj.addPoint(pointObj) shapefileObj.getExtent(int, rectObj) shapefileObj.getPoint(int, pointObj) -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of mikiet Sent: Tuesday, October 10, 2006 11:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Adding points to a shp file I've made some progress the reason my shape file had 0 features after I ran my test was because it was recreating the shape file, I changed the code from shapefileObj shapefile = new shapefileObj(shapeFullPath, mapscript.MS_SHAPEFILE_POINT); to shapefileObj shapefile = new shapefileObj(shapeFullPath, -2); and the shp file is not recreated, looking at the modified date it is actuall modified, however when I run ogrinfo on my layer the feature count has not gone up, also when I view the layer using OpenEV my new point has not been added. Also still not seeing any error messages, can anyone help please ? Trimble, Beheen wrote: > > Are you using a mapfile to display the point? Can you look at the new > shape in arccatalog? Can you see the attribute of the point in its > table? > > > B > > -----Original Message----- > From: Mike Talbutt [mailto:mike.talbutt at dottedeyes.com] > Sent: Tuesday, October 10, 2006 9:03 AM > To: Trimble, Beheen; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Adding points to a shp file > > Unfortunately in the java mapscript API the add method on shape only > takes a lineObj object, I believe a lineObj with only one point set is a > point. > > -----Original Message----- > From: Trimble, Beheen [mailto:btrimble at sfwmd.gov] > Sent: 10 October 2006 13:57 > To: Mike Talbutt; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Adding points to a shp file > > > I don't know mapscript but below does not look right to me: > > lineObj lo = new lineObj(); > pointObj po = new pointObj(1d,1d,0d); > lo.add(po); > > Are you adding a point object to a line object consisting of only one > point? If that is how line is created in java mapscript I think it > should be 2 points. Try just adding the point to shape object by itself, > just create on type shape object such as point shape. > > B > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of mikiet > Sent: Tuesday, October 10, 2006 8:48 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Adding points to a shp file > > I've noticed that the first time I ran my test it emptied the shape > file, the original ogrinfo on the file produced was > > Layer name: worldCities > Geometry: Point > Feature Count: 12686 > Extent: (-178.166667, -54.800000) - (179.383333, 78.933333) Layer SRS > WKT: > (unknown) > ID: Integer (6.0) > ATTRIB: Integer (4.0) > MGCC: Integer (4.0) > ADMIN_CODE: Integer (4.0) > UFI: Integer (9.0) > POPULATION: Integer (9.0) > NAME: String (250.0) > > after I had run my test the features were 0 and the extents 0. > > the point coordinate that I am adding (1,1) in the test is well within > the extents of the original shape file (-178.166667, -54.800000) - > (179.383333, > 78.933333) > > > > > > Trimble, Beheen wrote: >> >> What is the coordinate of your new points? Are you adding (1,1,0)? Is >> the unit understood by ogr? The problem usually is among extent, >> projection and spatial reference! See if mapscript has any of these >> types of functions. The extent shown, below, by grinfo is not > promising. >> >> >> B >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] > On >> Behalf Of mikiet >> Sent: Tuesday, October 10, 2006 7:14 AM >> To: MAPSERVER-USERS at lists.umn.edu >> Subject: [UMN_MAPSERVER-USERS] Adding points to a shp file >> >> Hi there, >> >> I am using java mapscript and have a requirement to add some points to > >> an ESRI shape file (bear with me here, I'm a mapinfo man). I'm using >> an ESRI >> shape file that came with the ms101 tutorial WorldCities.shp. Its >> definitly >> a point shape file as when I run ogrinfo on it I get >> >> Layer name: worldCities >> Geometry: Point >> Feature Count: 0 >> Extent: (0.000000, 0.000000) - (0.000000, 0.000000) >> Layer SRS WKT: >> (unknown) >> ID: Integer (6.0) >> ATTRIB: Integer (4.0) >> MGCC: Integer (4.0) >> ADMIN_CODE: Integer (4.0) >> UFI: Integer (9.0) >> POPULATION: Integer (9.0) >> NAME: String (250.0) >> >> I have created a simple class to add a point to this file, see below, >> the code runs without error however no feature is added to the file, >> I'm sure >> its a simple fix but can anyone point me in the right direction please > ? >> >> public static void test(){ >> try { >> System.out.println("starting run...."); >> shapeObj shape = new > shapeObj(mapscript.MS_SHAPEFILE_POINT); >> lineObj lo = new lineObj(); >> pointObj po = new pointObj(1d,1d,0d); >> lo.add(po); >> shape.add(lo); >> String shapeFullPath = >> "C:\\ms4w\\apps\\ms101\\data\\shapefile\\WorldCities.shp"; >> shapefileObj shapefile = new shapefileObj(shapeFullPath, >> mapscript.MS_SHAPEFILE_POINT); >> shapefile.add(shape); >> System.out.println("Shape added"); >> } catch (Exception e) { >> e.printStackTrace(); >> } >> } >> -- >> View this message in context: >> > http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673434 >> 3 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> > > -- > View this message in context: > http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673566 > 4 > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > Email has been scanned for viruses and spam by Altman Technologies' > email management service - www.altman.co.uk/emailsystems > > Email has been scanned for viruses and spam by Altman Technologies' > email management service - www.altman.co.uk/emailsystems > > -- View this message in context: http://www.nabble.com/Adding-points-to-a-shp-file-tf2415928.html#a673911 8 Sent from the Mapserver - User mailing list archive at Nabble.com. From work at XWB.COM Tue Oct 10 10:40:55 2006 From: work at XWB.COM (Chip Taylor) Date: Tue, 10 Oct 2006 10:40:55 -0700 Subject: Setting up a WMS server with non-contiguous Raster data In-Reply-To: <452B76650200008F00002D05@co5.dnr.state.mn.us> Message-ID: I have a series of Ortho photos (jpgs) of individual buildings and building campuses in various cities across the state that are in process of being georeferenced. There are presently 113 individual photos but eventually there could be thousands. Since these photos are not contiguous surface and this is the first such server I have set up, I need some suggestion as to how to go about doing this. Any pointers here or links to web sources would be greatly appreciated. Chip Taylor Prepared Response, Inc From funkbucket at GMAIL.COM Tue Oct 10 10:43:38 2006 From: funkbucket at GMAIL.COM (B Tuttle) Date: Tue, 10 Oct 2006 11:43:38 -0600 Subject: Question about wms and mapfile location/restriction In-Reply-To: <2576812186CDD411BF1500508B6DCE950FF39F57@ecnwri1.ontario.int.ec.gc.ca> Message-ID: When using multiple instances of mapserv how do I configure what mapfiles each instance is able to use? On 10/4/06, Kralidis,Tom [Burlington] wrote: > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of B Tuttle > > Sent: 04 October, 2006 5:49 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Question about wms and mapfile > > location/restriction > > > > Hi all- > > > > Part1- > > So far to use wms I have to have the mapfile in the same > > direcotry as mapserv. Any thoughts on how to set it up so I > > can have my mapfile in a differnet location? > > > > You can have the mapfile anywhere on the filesystem, and refer to it in > your WMS server URL as: > > http://host/cgi-bin/mapserv?map=/path/to/mapfile.map > > This is a legal OGC WMS server URL, which would be visible in your > Capabilities XML. > > Note you can also hide the mapfile location if you wish (see: > http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-onlin > e-resource-url for more info). > > > Part 2- > > I need to set up my server so some mapfiles are available > > to anyone and some are password restricted. Is there a way to > > use a config file or multiple instances of mapserv to suggest > > what mapfile (or direcotry hieracrhies) it can access? > > > > You can use multiple instances of mapserv and apply authentication rules > to them via your web server configuration. > > Or, you can use the new Mapscript WxS API, which allows for the OGC > specs API to be exposed through scripting languages like python, perl, > php, and java. The API will allow you to work in between the request / > response chain. Here you can develop an authentication layer of sorts. > See http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript for more info. > This is relatively new functionality in MapServer/mapscript and not > extensively tested. > > > Any help would be greatly appreciated. > > > From ed at TOPOZONE.COM Tue Oct 10 10:55:07 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 10 Oct 2006 13:55:07 -0400 Subject: Setting up a WMS server with non-contiguous Raster data Message-ID: Chip - Assuming that all the orthos are in the same projection, I would simply ignore the fact that they're not contiguous. Just create a TILEINDEX for the whole layer, and they will show up where they're visible and not show up where they're not. You can query that TILEINDEX if you need to know in advance whether there's anything at a particular location or not. - 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 Chip Taylor Sent: Tuesday, October 10, 2006 1:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Setting up a WMS server with non-contiguous Raster data I have a series of Ortho photos (jpgs) of individual buildings and building campuses in various cities across the state that are in process of being georeferenced. There are presently 113 individual photos but eventually there could be thousands. Since these photos are not contiguous surface and this is the first such server I have set up, I need some suggestion as to how to go about doing this. Any pointers here or links to web sources would be greatly appreciated. Chip Taylor Prepared Response, Inc From assefa at DMSOLUTIONS.CA Tue Oct 10 11:04:17 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 10 Oct 2006 14:04:17 -0400 Subject: Virtual layer access OGR ODBC problem Message-ID: Hi There, I am trying to access an ODBC database using the ogr virtual layer access (using shp2img). The layer seems to be defined properly as far as I know. It looks something like : ... CONNECTION " ODBC:@sos_test SELECT * FROM t_ResEau_Station_Data WHERE Site_Number = 'AL05AK0001' wkbPoint wkbPoint WGS84 " The error message is the following : msOGRFileNextShape(): OGR error. Attempt to use STRING field `Longitude' with numeric comparison `>'.
If I just use the SrcLayer instead of the SrcSQL, It seems to work ok : ODBC:@sos_test t_ResEau_Station_Data wkbPoint WGS84 From what I understand this occures when comparing the x,y values to the map bbox to see if the element fits in the map. I am using gdal/ogr from CVS (updated few days ago). Has anyone came accross this problem ? Thanks -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From f.glandorf at GMX.DE Tue Oct 10 09:32:28 2006 From: f.glandorf at GMX.DE (Gloem) Date: Tue, 10 Oct 2006 09:32:28 -0700 Subject: Problem with Layyer from PostgreSQL Message-ID: Hello, I'm new to Mapserver. Maybe somecan here can help me: I tried to set up a UMN Mapserver with some data I found on the net. But when I run the mapserver this message appeares: msDrawMap(): Image handling error. Failed to draw layer named 'PLZ'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from post_code_areas WHERE the_geom && setSRID('BOX3D(5.5 46.15,15.2 55.85)'::BOX3D, find_srid('','post_code_areas','the_geom') )' Postgresql reports the error as 'ERROR: column "oid" does not exist ' More Help: Error with POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' Make sure you put in the 'using unique ' and 'using SRID=#' clauses in. The data I wanted to used have this structure: http://www.nabble.com/file/367/test.sql test.sql And my map file looks like this: http://www.nabble.com/file/368/mapdatei_plz.map mapdatei_plz.map I tried to use the same srid in the map-file as in the database but somehow this seems not to work correct. Please help Frank -- View this message in context: http://www.nabble.com/Problem-with-Layyer-from-PostgreSQL-tf2417891.html#a6740260 Sent from the Mapserver - User mailing list archive at Nabble.com. From xpxiong at PURDUE.EDU Tue Oct 10 11:23:19 2006 From: xpxiong at PURDUE.EDU (Xiaopeng Xiong) Date: Tue, 10 Oct 2006 14:23:19 -0400 Subject: Help: generating a hyperlink in query result Message-ID: Jacob, thank for your reply. I think your method generates hyperlinks after post-processing of query result. But I wonder if it is possible to return hyperlinks to a uer directly when he/she clicks on the map. I wonder it is possible? Thanks, Xiaopeng ----- Original Message ----- From: Delfos, Jacob To: Xiaopeng Xiong ; MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, October 10, 2006 12:11 AM Subject: RE: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result Hi Xiaopeng, If the attribute value is simply passed into the HTML, then it's simply a matter of putting in the right HTML code: Click for 1.img (the target=# makes it open in a new window) I normally generate a directory listing, and paste it into a spreadsheet (e.g. excel / openOffice CALC), and split up the parts of the link, then concatenate them. For example, imagine a row in a spreadsheet: column 1: column 4: click for image column 5: 1 column 6: column 7: =concatenate(column1, column2, column3, column4, column6) Only column 2 and 5 will change (can use autonumber). All other columns will hold the same value, and can be copied across. Hope this makes sense. regards, Jacob ---------------------------------------------------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xiaopeng Xiong Sent: 10 October 2006 11:42 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result I have one index on raster images and it can be displayed and queried through Mapserver. I wonder whether it would be possible to generate a hyperlink in query result. The hyperlink will be generated based on one attribute in the index. For example, if the attribute value is "/home/myDir/1.img", the hyperlink will direct user to http://SomeWebsite/myDir/1.img". I appreciate any suggestions or ideas. Thank you Best regards, Xiaopeng -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Oct 10 11:24:46 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 10 Oct 2006 14:24:46 -0400 Subject: Virtual layer access OGR ODBC problem In-Reply-To: <452BE0A1.209@dmsolutions.ca> Message-ID: Yewondwossen Assefa wrote: > Hi There, > > I am trying to access an ODBC database using the ogr virtual layer > access (using shp2img). The layer seems to be defined properly as far as > I know. It looks something like : > > ... > CONNECTION " > > ODBC:@sos_test > SELECT * FROM t_ResEau_Station_Data WHERE Site_Number = > 'AL05AK0001' > wkbPoint > wkbPoint > WGS84 > > > " > > The error message is the following : > > msOGRFileNextShape(): OGR error. Attempt to use STRING field `Longitude' > with numeric comparison `>'.
> > If I just use the SrcLayer instead of the SrcSQL, It seems to work ok : > > ODBC:@sos_test > t_ResEau_Station_Data > wkbPoint > WGS84 > > > > From what I understand this occures when comparing the x,y values to > the map bbox to see if the element fits in the map. I am using gdal/ogr > from CVS (updated few days ago). Assefa, The problem seems to relate to the VRT (OVF) driver trying to apply spatial constraints to the Latitude and Longitude columns. I am guessing these fields aren't actually numeric? I'm a bit surprised to see that it occurs with SrcSQL, but not with SrcLayer. I believe, as a work around, you can set the useSpatialSubquery='FALSE' attribute on GeometryField. eg. 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 | President OSGeo, http://osgeo.org From David.Fawcett at STATE.MN.US Tue Oct 10 11:40:18 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 10 Oct 2006 13:40:18 -0500 Subject: Help: generating a hyperlink in query result In-Reply-To: A<00bc01c6ec99$3335e7c0$6f090a80@ad.cs.purdue.edu> Message-ID: Are you interested in having the user click on the map and be directed automatically to another Web page? This could be done using a URL as a query template and setting the mode to query. Or, do you want the user to click on the map, presumably as a query and return a page or text on the existing page that includes a list of clickable links? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xiaopeng Xiong Sent: Tuesday, October 10, 2006 1:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result Jacob, thank for your reply. I think your method generates hyperlinks after post-processing of query result. But I wonder if it is possible to return hyperlinks to a uer directly when he/she clicks on the map. I wonder it is possible? Thanks, Xiaopeng ----- Original Message ----- From: Delfos, Jacob To: Xiaopeng Xiong ; MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, October 10, 2006 12:11 AM Subject: RE: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result Hi Xiaopeng, If the attribute value is simply passed into the HTML, then it's simply a matter of putting in the right HTML code: Click for 1.img (the target=# makes it open in a new window) I normally generate a directory listing, and paste it into a spreadsheet (e.g. excel / openOffice CALC), and split up the parts of the link, then concatenate them. For example, imagine a row in a spreadsheet: column 1: column 4: click for image column 5: 1 column 6: column 7: =concatenate(column1, column2, column3, column4, column6) Only column 2 and 5 will change (can use autonumber). All other columns will hold the same value, and can be copied across. Hope this makes sense. regards, Jacob ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xiaopeng Xiong Sent: 10 October 2006 11:42 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result I have one index on raster images and it can be displayed and queried through Mapserver. I wonder whether it would be possible to generate a hyperlink in query result. The hyperlink will be generated based on one attribute in the index. For example, if the attribute value is "/home/myDir/1.img", the hyperlink will direct user to http://SomeWebsite/myDir/1.img". I appreciate any suggestions or ideas. Thank you Best regards, Xiaopeng -------------- next part -------------- An HTML attachment was scrubbed... URL: From xpxiong at PURDUE.EDU Tue Oct 10 11:50:11 2006 From: xpxiong at PURDUE.EDU (Xiaopeng Xiong) Date: Tue, 10 Oct 2006 14:50:11 -0400 Subject: Help: generating a hyperlink in query result Message-ID: MessageI probably want the second way. A difference is that the clickable links are not exactly the same as the attribute values in the index, because I have to change a UNIX file path (e.g., /home/MyDir/1.img) to a Web-accessible path (e.g., http://SomeWeb/MyDir/1.img). Thanks, Xiaopeng ----- Original Message ----- From: Fawcett, David To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, October 10, 2006 2:40 PM Subject: Re: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result Are you interested in having the user click on the map and be directed automatically to another Web page? This could be done using a URL as a query template and setting the mode to query. Or, do you want the user to click on the map, presumably as a query and return a page or text on the existing page that includes a list of clickable links? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xiaopeng Xiong Sent: Tuesday, October 10, 2006 1:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result Jacob, thank for your reply. I think your method generates hyperlinks after post-processing of query result. But I wonder if it is possible to return hyperlinks to a uer directly when he/she clicks on the map. I wonder it is possible? Thanks, Xiaopeng ----- Original Message ----- From: Delfos, Jacob To: Xiaopeng Xiong ; MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, October 10, 2006 12:11 AM Subject: RE: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result Hi Xiaopeng, If the attribute value is simply passed into the HTML, then it's simply a matter of putting in the right HTML code: Click for 1.img (the target=# makes it open in a new window) I normally generate a directory listing, and paste it into a spreadsheet (e.g. excel / openOffice CALC), and split up the parts of the link, then concatenate them. For example, imagine a row in a spreadsheet: column 1: column 4: click for image column 5: 1 column 6: column 7: =concatenate(column1, column2, column3, column4, column6) Only column 2 and 5 will change (can use autonumber). All other columns will hold the same value, and can be copied across. Hope this makes sense. regards, Jacob ------------------------------------------------------------------------ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xiaopeng Xiong Sent: 10 October 2006 11:42 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result I have one index on raster images and it can be displayed and queried through Mapserver. I wonder whether it would be possible to generate a hyperlink in query result. The hyperlink will be generated based on one attribute in the index. For example, if the attribute value is "/home/myDir/1.img", the hyperlink will direct user to http://SomeWebsite/myDir/1.img". I appreciate any suggestions or ideas. Thank you Best regards, Xiaopeng -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Tue Oct 10 11:53:54 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 10 Oct 2006 14:53:54 -0400 Subject: Question about wms and mapfile location/restriction Message-ID: What OS are you using? And what HTTP server are you using? For example, if using UNIX and Apache, what I would do is: - place a mapserv binary in cgi-bin/ - foreach mapfile - create a shell script (see http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-onlin e-resource-url) which points to mapserv after declaring the MS_MAPFILE variable to be used. ..Tom > -----Original Message----- > From: B Tuttle [mailto:funkbucket at gmail.com] > Sent: 10 October, 2006 1:44 PM > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Question about wms and > mapfile location/restriction > > When using multiple instances of mapserv how do I configure > what mapfiles each instance is able to use? > > On 10/4/06, Kralidis,Tom [Burlington] wrote: > > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of B Tuttle > > > Sent: 04 October, 2006 5:49 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] Question about wms and mapfile > > > location/restriction > > > > > > Hi all- > > > > > > Part1- > > > So far to use wms I have to have the mapfile in the same > > > direcotry as mapserv. Any thoughts on how to set it up so > I can have > > > my mapfile in a differnet location? > > > > > > > You can have the mapfile anywhere on the filesystem, and > refer to it > > in your WMS server URL as: > > > > http://host/cgi-bin/mapserv?map=/path/to/mapfile.map > > > > This is a legal OGC WMS server URL, which would be visible in your > > Capabilities XML. > > > > Note you can also hide the mapfile location if you wish (see: > > > http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-onl > > in > > e-resource-url for more info). > > > > > Part 2- > > > I need to set up my server so some mapfiles are available to > > > anyone and some are password restricted. Is there a way to use a > > > config file or multiple instances of mapserv to suggest > what mapfile > > > (or direcotry hieracrhies) it can access? > > > > > > > You can use multiple instances of mapserv and apply authentication > > rules to them via your web server configuration. > > > > Or, you can use the new Mapscript WxS API, which allows for the OGC > > specs API to be exposed through scripting languages like > python, perl, > > php, and java. The API will allow you to work in between > the request > > / response chain. Here you can develop an authentication > layer of sorts. > > See http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript > for more info. > > This is relatively new functionality in MapServer/mapscript and not > > extensively tested. > > > > > Any help would be greatly appreciated. > > > > > > From David.Fawcett at STATE.MN.US Tue Oct 10 12:02:22 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 10 Oct 2006 14:02:22 -0500 Subject: Help: generating a hyperlink in query result In-Reply-To: <010c01c6ec9c$eab3e7f0$6f090a80@ad.cs.purdue.edu> Message-ID: In your query template, you could use the value from one of your shapefile columns or database columns to build a URL. Something like: [IMAGENAME] or [IMAGENUMBER].img If you wanted to use a URL to send the user directly from a map click to the image, you could use: TEMPLATE "http://myserver.com/mydir/[IMAGENUMBER].img" **note, URL templates only work in mode=query, NOT in mode=nquery! David. -----Original Message----- From: Xiaopeng Xiong [mailto:xpxiong at purdue.edu] Sent: Tuesday, October 10, 2006 1:50 PM To: Fawcett, David; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result I probably want the second way. A difference is that the clickable links are not exactly the same as the attribute values in the index, because I have to change a UNIX file path (e.g., /home/MyDir/1.img) to a Web-accessible path (e.g., http://SomeWeb/MyDir/1.img). Thanks, Xiaopeng ----- Original Message ----- From: Fawcett, David To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, October 10, 2006 2:40 PM Subject: Re: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result Are you interested in having the user click on the map and be directed automatically to another Web page? This could be done using a URL as a query template and setting the mode to query. Or, do you want the user to click on the map, presumably as a query and return a page or text on the existing page that includes a list of clickable links? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xiaopeng Xiong Sent: Tuesday, October 10, 2006 1:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result Jacob, thank for your reply. I think your method generates hyperlinks after post-processing of query result. But I wonder if it is possible to return hyperlinks to a uer directly when he/she clicks on the map. I wonder it is possible? Thanks, Xiaopeng ----- Original Message ----- From: Delfos, Jacob To: Xiaopeng Xiong ; MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, October 10, 2006 12:11 AM Subject: RE: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result Hi Xiaopeng, If the attribute value is simply passed into the HTML, then it's simply a matter of putting in the right HTML code: Click for 1.img (the target=# makes it open in a new window) I normally generate a directory listing, and paste it into a spreadsheet (e.g. excel / openOffice CALC), and split up the parts of the link, then concatenate them. For example, imagine a row in a spreadsheet: column 1: column 4: click for image column 5: 1 column 6: column 7: =concatenate(column1, column2, column3, column4, column6) Only column 2 and 5 will change (can use autonumber). All other columns will hold the same value, and can be copied across. Hope this makes sense. regards, Jacob ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xiaopeng Xiong Sent: 10 October 2006 11:42 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result I have one index on raster images and it can be displayed and queried through Mapserver. I wonder whether it would be possible to generate a hyperlink in query result. The hyperlink will be generated based on one attribute in the index. For example, if the attribute value is "/home/myDir/1.img", the hyperlink will direct user to http://SomeWebsite/myDir/1.img". I appreciate any suggestions or ideas. Thank you Best regards, Xiaopeng -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Tue Oct 10 12:08:10 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 10 Oct 2006 15:08:10 -0400 Subject: Virtual layer access OGR ODBC problem In-Reply-To: <452BE56E.5060503@pobox.com> Message-ID: Frank Warmerdam wrote: > Yewondwossen Assefa wrote: > >> Hi There, >> >> I am trying to access an ODBC database using the ogr virtual layer >> access (using shp2img). The layer seems to be defined properly as far >> as I know. It looks something like : >> >> ... >> CONNECTION " >> >> ODBC:@sos_test >> SELECT * FROM t_ResEau_Station_Data WHERE Site_Number = >> 'AL05AK0001' >> wkbPoint >> wkbPoint >> WGS84 >> >> >> " >> >> The error message is the following : >> >> msOGRFileNextShape(): OGR error. Attempt to use STRING field >> `Longitude' with numeric comparison `>'.
>> >> If I just use the SrcLayer instead of the SrcSQL, It seems to work ok : >> >> ODBC:@sos_test >> t_ResEau_Station_Data >> wkbPoint >> WGS84 >> >> >> >> From what I understand this occures when comparing the x,y values to >> the map bbox to see if the element fits in the map. I am using >> gdal/ogr from CVS (updated few days ago). > > > Assefa, > > The problem seems to relate to the VRT (OVF) driver trying to apply > spatial constraints to the Latitude and Longitude columns. I am > guessing these fields aren't actually numeric? I'm a bit surprised > to see that it occurs with SrcSQL, but not with SrcLayer. > > I believe, as a work around, you can set the useSpatialSubquery='FALSE' > attribute on GeometryField. > > eg. > x='Longitude' y='Latitude'/> > > Best regards, The useSpatialSubquery='FALSE' seems to do the trick, although I need to do more tests. Not sure if the fields are numeric: * if I do an ogrinfo the Latitude/Longitude is reported as being String * if I do access the db using php and echo the field types, I get Latitude DECIMAL and Longitude DECIMAL I will report if there are other issues. Thanks. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From mhwang4 at UIUC.EDU Tue Oct 10 12:12:09 2006 From: mhwang4 at UIUC.EDU (myunghwa Hwang) Date: Tue, 10 Oct 2006 14:12:09 -0500 Subject: Easy way to make interactive html interface Message-ID: Hello, list! I'm looking for some easy ways for making interactive html interface. Till now, I've used text editor to make interfaces. But, it's difficult to manage all interactive components, which are usually implemented in Javascript. I heard about MapBuilder, MapBender. But I'm still confusing about the differences between those programs and MapServer or GeoServer. So, If you have some info about that, please let me know. from Myunghwa Hwang From warmerdam at POBOX.COM Tue Oct 10 12:21:36 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 10 Oct 2006 15:21:36 -0400 Subject: Virtual layer access OGR ODBC problem In-Reply-To: <452BEF9A.7090903@dmsolutions.ca> Message-ID: Yewondwossen Assefa wrote: > The useSpatialSubquery='FALSE' seems to do the trick, although I need to > do more tests. > Not sure if the fields are numeric: > > * if I do an ogrinfo the Latitude/Longitude is reported as being String > * if I do access the db using php and echo the field types, I get > Latitude DECIMAL and Longitude DECIMAL Assefa, Ah. I suspect that the ODBC driver is not recognising DECIMAL as a numeric field type, and so it falls back to treating it as a String. And now that I think about it, the extra spatial constraint is being interpreted within the OGR code for SrcSQL while for a conventional table they are passed through to the actual ODBC driver which understands DECIMAL properly. The proper solution likely is fixing the OGR ODBC driver to understand the decimal field type. If you could file a bug against OGR listing the database you are using and the SQL declaration for the field in that database I can try and get this fixed sooner or later. 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 | President OSGeo, http://osgeo.org From xpxiong at PURDUE.EDU Tue Oct 10 12:26:17 2006 From: xpxiong at PURDUE.EDU (Xiaopeng Xiong) Date: Tue, 10 Oct 2006 15:26:17 -0400 Subject: Help: generating a hyperlink in query result Message-ID: MessageThis is Great! I just tried and it worked. Thanks a lot everyone, especially for David, Ruck and Jacob. Xiaopeng ----- Original Message ----- From: Fawcett, David To: Xiaopeng Xiong ; Fawcett, David ; MAPSERVER-USERS at lists.umn.edu Sent: Tuesday, October 10, 2006 3:02 PM Subject: RE: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result In your query template, you could use the value from one of your shapefile columns or database columns to build a URL. Something like: [IMAGENAME] or [IMAGENUMBER].img If you wanted to use a URL to send the user directly from a map click to the image, you could use: TEMPLATE "http://myserver.com/mydir/[IMAGENUMBER].img" **note, URL templates only work in mode=query, NOT in mode=nquery! David. -----Original Message----- From: Xiaopeng Xiong [mailto:xpxiong at purdue.edu] Sent: Tuesday, October 10, 2006 1:50 PM To: Fawcett, David; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result I probably want the second way. A difference is that the clickable links are not exactly the same as the attribute values in the index, because I have to change a UNIX file path (e.g., /home/MyDir/1.img) to a Web-accessible path (e.g., http://SomeWeb/MyDir/1.img). Thanks, Xiaopeng ----- Original Message ----- From: Fawcett, David To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, October 10, 2006 2:40 PM Subject: Re: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result Are you interested in having the user click on the map and be directed automatically to another Web page? This could be done using a URL as a query template and setting the mode to query. Or, do you want the user to click on the map, presumably as a query and return a page or text on the existing page that includes a list of clickable links? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xiaopeng Xiong Sent: Tuesday, October 10, 2006 1:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result Jacob, thank for your reply. I think your method generates hyperlinks after post-processing of query result. But I wonder if it is possible to return hyperlinks to a uer directly when he/she clicks on the map. I wonder it is possible? Thanks, Xiaopeng ----- Original Message ----- From: Delfos, Jacob To: Xiaopeng Xiong ; MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, October 10, 2006 12:11 AM Subject: RE: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result Hi Xiaopeng, If the attribute value is simply passed into the HTML, then it's simply a matter of putting in the right HTML code: Click for 1.img (the target=# makes it open in a new window) I normally generate a directory listing, and paste it into a spreadsheet (e.g. excel / openOffice CALC), and split up the parts of the link, then concatenate them. For example, imagine a row in a spreadsheet: column 1: column 4: click for image column 5: 1 column 6: column 7: =concatenate(column1, column2, column3, column4, column6) Only column 2 and 5 will change (can use autonumber). All other columns will hold the same value, and can be copied across. Hope this makes sense. regards, Jacob -------------------------------------------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Xiaopeng Xiong Sent: 10 October 2006 11:42 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help: generating a hyperlink in query result I have one index on raster images and it can be displayed and queried through Mapserver. I wonder whether it would be possible to generate a hyperlink in query result. The hyperlink will be generated based on one attribute in the index. For example, if the attribute value is "/home/myDir/1.img", the hyperlink will direct user to http://SomeWebsite/myDir/1.img". I appreciate any suggestions or ideas. Thank you Best regards, Xiaopeng -------------- next part -------------- An HTML attachment was scrubbed... URL: From funkbucket at GMAIL.COM Tue Oct 10 13:00:10 2006 From: funkbucket at GMAIL.COM (B Tuttle) Date: Tue, 10 Oct 2006 14:00:10 -0600 Subject: Question about wms and mapfile location/restriction In-Reply-To: <2576812186CDD411BF1500508B6DCE950FF3A1F3@ecnwri1.ontario.int.ec.gc.ca> Message-ID: I'm using Linux and Apache. The sheel script looks like a nice way to go. Does this set up mean one mapserv binary and using apache to restrict acces to the shell script and thus the mapfiles? On 10/10/06, Kralidis,Tom [Burlington] wrote: > > What OS are you using? And what HTTP server are you using? > > For example, if using UNIX and Apache, what I would do is: > > - place a mapserv binary in cgi-bin/ > - foreach mapfile > - create a shell script (see > http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-onlin > e-resource-url) which points to mapserv after declaring the MS_MAPFILE > variable to be used. > > ..Tom > > > > -----Original Message----- > > From: B Tuttle [mailto:funkbucket at gmail.com] > > Sent: 10 October, 2006 1:44 PM > > To: Kralidis,Tom [Burlington] > > Cc: MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] Question about wms and > > mapfile location/restriction > > > > When using multiple instances of mapserv how do I configure > > what mapfiles each instance is able to use? > > > > On 10/4/06, Kralidis,Tom [Burlington] wrote: > > > > > > > > > > -----Original Message----- > > > > From: UMN MapServer Users List > > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of B Tuttle > > > > Sent: 04 October, 2006 5:49 PM > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: [UMN_MAPSERVER-USERS] Question about wms and mapfile > > > > location/restriction > > > > > > > > Hi all- > > > > > > > > Part1- > > > > So far to use wms I have to have the mapfile in the same > > > > direcotry as mapserv. Any thoughts on how to set it up so > > I can have > > > > my mapfile in a differnet location? > > > > > > > > > > You can have the mapfile anywhere on the filesystem, and > > refer to it > > > in your WMS server URL as: > > > > > > http://host/cgi-bin/mapserv?map=/path/to/mapfile.map > > > > > > This is a legal OGC WMS server URL, which would be visible in your > > > Capabilities XML. > > > > > > Note you can also hide the mapfile location if you wish (see: > > > > > http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-onl > > > in > > > e-resource-url for more info). > > > > > > > Part 2- > > > > I need to set up my server so some mapfiles are available to > > > > anyone and some are password restricted. Is there a way to use a > > > > config file or multiple instances of mapserv to suggest > > what mapfile > > > > (or direcotry hieracrhies) it can access? > > > > > > > > > > You can use multiple instances of mapserv and apply authentication > > > rules to them via your web server configuration. > > > > > > Or, you can use the new Mapscript WxS API, which allows for the OGC > > > specs API to be exposed through scripting languages like > > python, perl, > > > php, and java. The API will allow you to work in between > > the request > > > / response chain. Here you can develop an authentication > > layer of sorts. > > > See http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript > > for more info. > > > This is relatively new functionality in MapServer/mapscript and not > > > extensively tested. > > > > > > > Any help would be greatly appreciated. > > > > > > > > > > From Tom.Kralidis at EC.GC.CA Tue Oct 10 13:06:49 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 10 Oct 2006 16:06:49 -0400 Subject: Question about wms and mapfile location/restriction Message-ID: Correct. > -----Original Message----- > From: B Tuttle [mailto:funkbucket at gmail.com] > Sent: 10 October, 2006 4:00 PM > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Question about wms and > mapfile location/restriction > > I'm using Linux and Apache. The sheel script looks like a > nice way to go. Does this set up mean one mapserv binary and > using apache to restrict acces to the shell script and thus > the mapfiles? > > On 10/10/06, Kralidis,Tom [Burlington] wrote: > > > > What OS are you using? And what HTTP server are you using? > > > > For example, if using UNIX and Apache, what I would do is: > > > > - place a mapserv binary in cgi-bin/ > > - foreach mapfile > > - create a shell script (see > > > http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-onl > > in > > e-resource-url) which points to mapserv after declaring the > MS_MAPFILE > > variable to be used. > > > > ..Tom > > > > > > > -----Original Message----- > > > From: B Tuttle [mailto:funkbucket at gmail.com] > > > Sent: 10 October, 2006 1:44 PM > > > To: Kralidis,Tom [Burlington] > > > Cc: MAPSERVER-USERS at lists.umn.edu > > > Subject: Re: [UMN_MAPSERVER-USERS] Question about wms and mapfile > > > location/restriction > > > > > > When using multiple instances of mapserv how do I configure what > > > mapfiles each instance is able to use? > > > > > > On 10/4/06, Kralidis,Tom [Burlington] > wrote: > > > > > > > > > > > > > -----Original Message----- > > > > > From: UMN MapServer Users List > > > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of B Tuttle > > > > > Sent: 04 October, 2006 5:49 PM > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > Subject: [UMN_MAPSERVER-USERS] Question about wms and mapfile > > > > > location/restriction > > > > > > > > > > Hi all- > > > > > > > > > > Part1- > > > > > So far to use wms I have to have the mapfile in the same > > > > > direcotry as mapserv. Any thoughts on how to set it up so > > > I can have > > > > > my mapfile in a differnet location? > > > > > > > > > > > > > You can have the mapfile anywhere on the filesystem, and > > > refer to it > > > > in your WMS server URL as: > > > > > > > > http://host/cgi-bin/mapserv?map=/path/to/mapfile.map > > > > > > > > This is a legal OGC WMS server URL, which would be > visible in your > > > > Capabilities XML. > > > > > > > > Note you can also hide the mapfile location if you wish (see: > > > > > > > > http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-o > > > nl > > > > in > > > > e-resource-url for more info). > > > > > > > > > Part 2- > > > > > I need to set up my server so some mapfiles are > available to > > > > > anyone and some are password restricted. Is there a > way to use a > > > > > config file or multiple instances of mapserv to suggest > > > what mapfile > > > > > (or direcotry hieracrhies) it can access? > > > > > > > > > > > > > You can use multiple instances of mapserv and apply > authentication > > > > rules to them via your web server configuration. > > > > > > > > Or, you can use the new Mapscript WxS API, which allows for the > > > > OGC specs API to be exposed through scripting languages like > > > python, perl, > > > > php, and java. The API will allow you to work in between > > > the request > > > > / response chain. Here you can develop an authentication > > > layer of sorts. > > > > See http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript > > > for more info. > > > > This is relatively new functionality in MapServer/mapscript and > > > > not extensively tested. > > > > > > > > > Any help would be greatly appreciated. > > > > > > > > > > > > > > > From Steve.Lime at DNR.STATE.MN.US Tue Oct 10 13:22:24 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 10 Oct 2006 15:22:24 -0500 Subject: highlite again! In-Reply-To: Message-ID: Beheen: Take a look at this page: http://maps.dnr.state.mn.us/cgi-bin/mapserv46?map=/usr/local/www/docs_maps/mapserver_demos/tests46/query_persistent/test.map&program=/cgi-bin/mapserv46&htmlroot=/mapserver_demos/tests46&map_web_imagepath=/usr/local/www/docs_maps/tmp/&map_web_imageurl=/tmp/ It's a test interface that shows how to use runtime substitutions to make selected features persistent. It doesn't use query maps at all. Rather it stores the key value (an ID) for the selected feature in a hidden variable and uses that value to draw that feature in a highlighted way. Steve >>> "Trimble, Beheen" 10/10/2006 10:01:01 AM >>> Would someone please tell me how to change this page to highlite the selected feature? I have the querymap in my mapfile. If you please make the query string in the nueva function I appreciate. Beheen ================ Performance Measure Graphics Viewer

LECSR North Palm Beach - 2000


scalebar (mi)

Browse map
Query feature
Query multiple features


Select Layers to Display:

Zoom In Pan Zoom Out

Zoom Size

Select a PMSet to Query:

Legend



From btrimble at SFWMD.GOV Tue Oct 10 13:27:02 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Tue, 10 Oct 2006 16:27:02 -0400 Subject: highlite again! Message-ID: Thanks a lot Steve. Beheen -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Tuesday, October 10, 2006 4:22 PM To: MAPSERVER-USERS at lists.umn.edu; Trimble, Beheen Subject: Re: [UMN_MAPSERVER-USERS] highlite again! Beheen: Take a look at this page: http://maps.dnr.state.mn.us/cgi-bin/mapserv46?map=/usr/local/www/docs_ma ps/mapserver_demos/tests46/query_persistent/test.map&program=/cgi-bin/ma pserv46&htmlroot=/mapserver_demos/tests46&map_web_imagepath=/usr/local/w ww/docs_maps/tmp/&map_web_imageurl=/tmp/ It's a test interface that shows how to use runtime substitutions to make selected features persistent. It doesn't use query maps at all. Rather it stores the key value (an ID) for the selected feature in a hidden variable and uses that value to draw that feature in a highlighted way. Steve >>> "Trimble, Beheen" 10/10/2006 10:01:01 AM >>> Would someone please tell me how to change this page to highlite the selected feature? I have the querymap in my mapfile. If you please make the query string in the nueva function I appreciate. Beheen ================ Performance Measure Graphics Viewer

LECSR North Palm Beach - 2000


scalebar (mi)

Browse map
Query feature
Query multiple features


Select Layers to Display:

Zoom In Pan Zoom Out

Zoom Size

Select a PMSet to Query:

Legend



From f.glandorf at GMX.DE Tue Oct 10 14:19:09 2006 From: f.glandorf at GMX.DE (Gloem) Date: Tue, 10 Oct 2006 14:19:09 -0700 Subject: Problem with Layyer from PostgreSQL In-Reply-To: <6740260.post@talk.nabble.com> Message-ID: Sorry, hab bei der sql-Datei was vergessen. Die ganze Fehlermeldung sieht nun anders aus: msDrawMap(): Image handling error. Failed to draw layer named 'PLZ'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from post_code_areas WHERE the_geom && setSRID('BOX3D(5.5 46.15,15.2 55.85)'::BOX3D, find_srid('','post_code_areas','the_geom') )' Postgresql reports the error as 'ERROR: find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? ' More Help: Error with POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' Make sure you put in the 'using unique ' and 'using SRID=#' clauses in. Die sql-Datei sieht nun folgenderma?en aus: http://www.nabble.com/file/369/test.sql test.sql Gloem wrote: > > Hello, > > I'm new to Mapserver. Maybe somecan here can help me: > > I tried to set up a UMN Mapserver with some data I found on the net. But > when I run the mapserver this message appeares: > > msDrawMap(): Image handling error. Failed to draw layer named 'PLZ'. > prepare_database(): Query error. Error executing POSTGIS DECLARE (the > actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from > post_code_areas WHERE the_geom && setSRID('BOX3D(5.5 46.15,15.2 > 55.85)'::BOX3D, find_srid('','post_code_areas','the_geom') )' > > Postgresql reports the error as 'ERROR: column "oid" does not exist ' > > More Help: > > Error with POSTGIS data variable. You specified ''. > Standard ways of specifiying are : > (1) 'geometry_column from geometry_table' > (2) 'geometry_column from () as foo using unique > using SRID=' > > Make sure you put in the 'using unique ' and 'using SRID=#' > clauses in. > > > The data I wanted to used have this structure: > http://www.nabble.com/file/367/test.sql test.sql > > And my map file looks like this: > http://www.nabble.com/file/368/mapdatei_plz.map mapdatei_plz.map > > > I tried to use the same srid in the map-file as in the database but > somehow this seems not to work correct. > > Please help > Frank > > > -- View this message in context: http://www.nabble.com/Problem-with-Layyer-from-PostgreSQL-tf2417891.html#a6745718 Sent from the Mapserver - User mailing list archive at Nabble.com. From cyohman at TECHNOLOGYSYSTEMSINC.COM Tue Oct 10 15:34:14 2006 From: cyohman at TECHNOLOGYSYSTEMSINC.COM (Chance Yohman) Date: Tue, 10 Oct 2006 18:34:14 -0400 Subject: IHO S-57 Files In-Reply-To: Message-ID: I am trying to do this in Windows XP using the most recent version of ms4w. 1) I am following this tutorial- http://mapserver.gis.umn.edu/docs/reference/vector_data/S57/ 2) I use US1BS02M.000 (Bering Sea - Southern Part B) from http://ocsdata.ncd.noaa.gov/ChartServerV2.0/jsp/index.jsp 3) I run: ogrinfo us1bs02m.000: ERROR 4: S57 Driver doesn't support update. Had to open data source read-only. INFO: Open of `US1BS02M.000' using driver `S57' successful. 1: DSID (None) 2: Point (Point) 3: Line (Line String) 4: Area (Polygon) 5: Meta (None) This is different than from the page at the top. 4) I try running: ogrinfo us1bs02m.000 DEPARE ERROR 4: S57 Driver doesn't support update. Had to open data source read-only. INFO: Open of `US1BS02M.000' using driver `S57' successful. This is different than from the page at the top. 5) I use the following map file MAP IMAGETYPE PNG EXTENT 164 47 180 62 SIZE 800 600 IMAGECOLOR 255 255 255 LAYER NAME s57 TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "/ms4w/apps/tutorial/data/s57/US1BS02M.000, 3" #The Area Layer CLASS COLOR 247 237 219 OUTLINECOLOR 120 120 120 END END # Layer END 6) I try this call- http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/s57.map& layer=s57&mode=map I get a white image. Could someone please correct me or point me in the right direction for visualizing S-57 data? I do not need a complete visualization (though, eventually a complete one would be nice). On a completely different note, has anyone tried visualizing DNCs, SENCs, or VPF into Mapserver? http://www.nga.mil/portal/site/dnc/index.jsp?epi-content=GENERIC&beanID=1714 98598&viewID=detail_view#0 I want to visualize DNCS, but I can accept converting to SENC or VPF to obtain my goal (for now). Graciously, Chance Yohman Engineer Technology Systems, Inc. Fort Andross 14 Maine St Box 41 Brunswick, ME 04011 v (207) 798-4646 ext 217 f (207) 798-4644 http://www.technologysystemsinc.com From warmerdam at POBOX.COM Tue Oct 10 16:15:12 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 10 Oct 2006 19:15:12 -0400 Subject: IHO S-57 Files In-Reply-To: <006e01c6ecbc$3767e3c0$6d00a8c0@Chance> Message-ID: Chance Yohman wrote: > I am trying to do this in Windows XP using the most recent version of ms4w. > > 1) I am following this tutorial- > http://mapserver.gis.umn.edu/docs/reference/vector_data/S57/ > > 2) I use US1BS02M.000 (Bering Sea - Southern Part B) from > http://ocsdata.ncd.noaa.gov/ChartServerV2.0/jsp/index.jsp > > 3) I run: ogrinfo us1bs02m.000: > > ERROR 4: S57 Driver doesn't support update. > Had to open data source read-only. > INFO: Open of `US1BS02M.000' > using driver `S57' successful. > 1: DSID (None) > 2: Point (Point) > 3: Line (Line String) > 4: Area (Polygon) > 5: Meta (None) > > This is different than from the page at the top. Chance, When you get the above list of layers it is because the GDAL_DATA environment variable isn't set. Try running C:\MS4W\setenv.bat first. However this doesn't really explain why the mapfile didn't work since it should have the environmnent variables set via the apache config file. The problem might be the use of "layer number 3" in the connection string. If you want DEPARE I would instead using: CONNECTION "/ms4w/apps/tutorial/data/s57/US1BS02M.000" DATA "DEPARE" Using the layer numbers instead of layer names is inherently unstable as demonstrated in this case where a recent introduction of the DSID layer has resulted in all other layers being renumbered. It is also bad karma depending on having the layer number in the connection string since in at least a few esoteric circumstances it is hard to parse this properly. 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 | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Tue Oct 10 16:18:28 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 10 Oct 2006 19:18:28 -0400 Subject: IHO S-57 Files In-Reply-To: <006e01c6ecbc$3767e3c0$6d00a8c0@Chance> Message-ID: Chance Yohman wrote: > On a completely different note, has anyone tried visualizing DNCs, SENCs, or > VPF into Mapserver? > http://www.nga.mil/portal/site/dnc/index.jsp?epi-content=GENERIC&beanID=1714 > 98598&viewID=detail_view#0 > > I want to visualize DNCS, but I can accept converting to SENC or VPF to > obtain my goal (for now). Chance, I have worked with DNCs and VPF through OGR including in MapServer. The trick is to get a build with OGDI properly included. I did a quick scan of MS4W and it does not seem to include OGDI support. SENC's - assuming this is Secure ENCs - aka DRMed to ensure the purchaser cannot do much with them - are not usable in MapServer or OGR. 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 | President OSGeo, http://osgeo.org From toni at SIGTE.UDG.ES Tue Oct 10 09:16:32 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Tue, 10 Oct 2006 18:16:32 +0200 Subject: geometry 3d Message-ID: hi all, I have a 3d multilinestring and I want to get the z for every point of the geometry. The only way I can think of is with npoint function for every point and then apply the z funcion. is there a better way to do that? From mhoward at AKIMEKA.COM Tue Oct 10 18:50:23 2006 From: mhoward at AKIMEKA.COM (Mark Howard) Date: Tue, 10 Oct 2006 15:50:23 -1000 Subject: GIS WEB Developer needed Message-ID: GIS WEB DEVELOPER Job Description: Akimeka LLC, a native Hawaiian owned company on Maui, Hawai'i, is searching for a talented GIS developer to support a US Government project. The responsibilities of this position include GIS data development, map production and general GIS support. The successful candidate will be part of project teams utilizing GIS technology to support DOD customers. The successful candidate will be responsible for meeting with users to help define information needs and develop the best way to represent the information, making recommendations on how to achieve results based on available data and applications, producing quality maps, cartographic products and presentation materials utilizing GIS, graphic software and other tools. Specific duties include: * Creating custom web applications using ESRI tools (ArcIMS, ArcGIS) * Creating, aggregating, and/or leveraging custom data sets to present an acceptable level of information for end users * Performing quality control measures on the data Desired skills include: * Working knowledge of GIS software (ESRI's 9x tools) * Experience with ArcGIS server, XML, SOAP * Experience with OGC/WMS protocols * Experience with ArcSDE/ORACLE * Java web development technologies - JAVA / Javascript * The ability to work independently and on a team * Ability to stay on schedule and meet deadlines * Organizational and data management skills * Attention to detail * Experience defining an overall data architecture as it relates to task goals during the analysis, design, planning phases and implementation of each project Minimum Requirements * MUST BE A U.S. CITIZEN and are subject to a government security investigation * Must meet eligibility requirements for access to classified information. Prior to offer, a preliminary criminal, social security and driver's license verification will be conducted * BS in computer science or related field or equivalent knowledge and experience * Candidate must be located on or be willing to relocate to Maui, Hawai'i For consideration, please e-mail a brief cover letter with attached resume to mhoward at akimeka.com Principals only please -- no recruiters. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Wed Oct 11 00:07:46 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 11 Oct 2006 10:07:46 +0300 Subject: Adjusting raster images on-the-fly? In-Reply-To: A<2576812186CDD411BF1500508B6DCE950FF3A216@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Hi, We have whole a lot of colour infrared aerial (CIR) photos and users from two different organisations. Both organisations would use the imagery adjusted in the way they have been used to and with CIR photos this means two totally different appearance from the same original imagery, reddish or greenish. Because of this we have been forced to have two separate physical image sets processed with different settings. Now I wonder if there might be some way to do this server side with MapServer. If we could do something similar to applying an adjustment layer "Curves" in Photoshop before sending the image through WMS service we would be able to save some 5 terabytes of disk space. In a similar way it would be often good for our imagery to push it through something like unsharp mask filter. Has anybody done or seen something like this? I do know of new ESRI ArcGIS Image Server but not anything else. I believe I could address one programmer to work on this if someone could point us where to start. Regards, -Jukka Rahkonen- From cyohman at TECHNOLOGYSYSTEMSINC.COM Wed Oct 11 05:21:22 2006 From: cyohman at TECHNOLOGYSYSTEMSINC.COM (Chance Yohman) Date: Wed, 11 Oct 2006 08:21:22 -0400 Subject: IHO S-57 Files In-Reply-To: <452C2980.2000504@pobox.com> Message-ID: It worked. I extend a warm-hearted thank you from the banks of the Androscoggin River this morning. Chance Yohman Engineer Technology Systems, Inc. Fort Andross 14 Maine St Box 41 Brunswick, ME 04011 v (207) 798-4646 ext 217 f (207) 798-4644 http://www.technologysystemsinc.com -----Original Message----- From: Frank Warmerdam [mailto:warmerdam at pobox.com] Sent: Tuesday, October 10, 2006 7:15 PM To: Chance Yohman Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] IHO S-57 Files Chance Yohman wrote: > I am trying to do this in Windows XP using the most recent version of ms4w. > > 1) I am following this tutorial- > http://mapserver.gis.umn.edu/docs/reference/vector_data/S57/ > > 2) I use US1BS02M.000 (Bering Sea - Southern Part B) from > http://ocsdata.ncd.noaa.gov/ChartServerV2.0/jsp/index.jsp > > 3) I run: ogrinfo us1bs02m.000: > > ERROR 4: S57 Driver doesn't support update. > Had to open data source read-only. > INFO: Open of `US1BS02M.000' > using driver `S57' successful. > 1: DSID (None) > 2: Point (Point) > 3: Line (Line String) > 4: Area (Polygon) > 5: Meta (None) > > This is different than from the page at the top. Chance, When you get the above list of layers it is because the GDAL_DATA environment variable isn't set. Try running C:\MS4W\setenv.bat first. However this doesn't really explain why the mapfile didn't work since it should have the environmnent variables set via the apache config file. The problem might be the use of "layer number 3" in the connection string. If you want DEPARE I would instead using: CONNECTION "/ms4w/apps/tutorial/data/s57/US1BS02M.000" DATA "DEPARE" Using the layer numbers instead of layer names is inherently unstable as demonstrated in this case where a recent introduction of the DSID layer has resulted in all other layers being renumbered. It is also bad karma depending on having the layer number in the connection string since in at least a few esoteric circumstances it is hard to parse this properly. 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 | President OSGeo, http://osgeo.org From ramen at TUTOPIA.COM Wed Oct 11 05:15:58 2006 From: ramen at TUTOPIA.COM (Pedro Meneses) Date: Wed, 11 Oct 2006 08:15:58 -0400 Subject: No subject Message-ID: ----- Original Message ----- From: menesesramos2005 at yahoo.es To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, October 11, 2006 8:12 AM Hello to the list I'm trying to use mapserver as cgi in two hired web hostings . In windows based server I put the following in cgi-bin directory: libcurl.dll libpq.dll NCScnet.dll NSCEcw.dll NSCEcwC.dll NSCEUtil.dll xerces-c_1_6_0.dll zlib1.dll mapserv.exe and everything goes OK In the other side, in linux based server when I put in cgi-bin directory the following : libc-2.3.2.so libcurl.so.3.0.0 libfreetype.so.6.3.5 libgc.so.1.0.2 libgdal.so.1.7.0 libidn.so.11.5.6 libjpeg.so.62.0.0 libpng12.so.0.1.2.8 libpq.so.3.1 libproj.so.0.5.0 libssl.so.0.9.7 libxerces-c.so.26.0 mapserv it does not work. What I'm missing here? Thanks in advance Pedro ______________________________ Visita http://www.tutopia.com y comienza a navegar m?s r?pido en Internet. Tutopia es Internet para todos. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at FREE.FR Wed Oct 11 05:40:56 2006 From: yjacolin at FREE.FR (Jacolin Yves) Date: Wed, 11 Oct 2006 14:40:56 +0200 Subject: No subject In-Reply-To: <01a101c6ed2f$08ec7d80$c92e49c8@q8f5x4> Message-ID: Hello, You have to put all librairies files in /usr/lib/ and run ldconfig on root. Well, actualy after building mapserver (if you do so) all these files are put in the right place automaticaly, except for the mapserv command which you have to put in /var/www/cgi/ directory. Regards, Y. Le Mercredi 11 Octobre 2006 14:15, Pedro Meneses a ?crit?: > ----- Original Message ----- > From: menesesramos2005 at yahoo.es > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: Wednesday, October 11, 2006 8:12 AM > > > Hello to the list > I'm trying to use mapserver as cgi in two hired web hostings . > In windows based server I put the following in cgi-bin directory: > > libcurl.dll > libpq.dll > NCScnet.dll > NSCEcw.dll > NSCEcwC.dll > NSCEUtil.dll > xerces-c_1_6_0.dll > zlib1.dll > mapserv.exe > > and everything goes OK > > > In the other side, in linux based server when I put in cgi-bin directory > the following : > > libc-2.3.2.so > libcurl.so.3.0.0 > libfreetype.so.6.3.5 > libgc.so.1.0.2 > libgdal.so.1.7.0 > libidn.so.11.5.6 > libjpeg.so.62.0.0 > libpng12.so.0.1.2.8 > libpq.so.3.1 > libproj.so.0.5.0 > libssl.so.0.9.7 > libxerces-c.so.26.0 > mapserv > > it does not work. What I'm missing here? > Thanks in advance > Pedro > ______________________________ > Visita http://www.tutopia.com y comienza a navegar m?s r?pido en Internet. > Tutopia es Internet para todos. -- Yves Jacolin --- HBS-Research Tel. : 01 46 97 25 14 51 rue de Verdun 92 158 Suresnes Cedex FRANCE From warmerdam at POBOX.COM Wed Oct 11 06:56:17 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 11 Oct 2006 09:56:17 -0400 Subject: Adjusting raster images on-the-fly? In-Reply-To: Message-ID: Rahkonen Jukka wrote: > Hi, > > We have whole a lot of colour infrared aerial (CIR) photos and users > from two different organisations. Both organisations would use the > imagery adjusted in the way they have been used to and with CIR photos > this means two totally different appearance from the same original > imagery, reddish or greenish. Because of this we have been forced to > have two separate physical image sets processed with different settings. > > Now I wonder if there might be some way to do this server side with > MapServer. If we could do something similar to applying an adjustment > layer "Curves" in Photoshop before sending the image through WMS service > we would be able to save some 5 terabytes of disk space. In a similar > way it would be often good for our imagery to push it through something > like unsharp mask filter. > > Has anybody done or seen something like this? I do know of new ESRI > ArcGIS Image Server but not anything else. I believe I could address one > programmer to work on this if someone could point us where to start. Jukka, I think this would be relatively easy to incorporate. You could either insert it in the LoadGDALImage() function in mapdrawgdal.c, or shortly after it is called in msDrawRasterLayerGDAL(). The scaling implementation in LoadGDALImage() may give you a good model to work from. If you are just wanting to maintain this as a local hack to your MapServer you can just go ahead and do it. If you would like to approach this as a general feature to be incorporated back into the core mapserver then an RFC should be prepared describing the implementation you propose. If you would like, I could also implement such a feature on contract though that isn't really necessary given that you have programmers of your own. In any event, I'd be willing to provide some advice and answer a few questions as needed. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From D.Stone at ED.AC.UK Wed Oct 11 07:10:59 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Wed, 11 Oct 2006 07:10:59 -0700 Subject: Counting browse hits Message-ID: I'm developing a CGI MapServer application using MapServer 4.8.3. The mapfile defines several layers which display symbols representing the location of entities associated with specific people. The user interface allows the type of entity and person to be selected. The type of entity will determine which layer is displayed; the person chosen will be applied to the layer by run-time substitution, and so will affect the number of points returned in the layer. All this works just fine. What I need to do now is to present, along with the result map, a count of the number of points returned. It's a useability thing - if the user has zoomed the map in and then browsed for some entity/person combination, the points returned quite likely lie outside the frame of the result map. So it's handy to know if there were any hits before going to the trouble of trying to locate them! I thought displaying [nr] was the answer, but it always returns zero, presumably because this is happening in browse mode rather than query. Any clues how to proceed gratefully accepted. Cheers, Dave -- View this message in context: http://www.nabble.com/Counting-browse-hits-tf2423455.html#a6756412 Sent from the Mapserver - User mailing list archive at Nabble.com. From j.l.h.hartmann at UVA.NL Wed Oct 11 07:33:13 2006 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Wed, 11 Oct 2006 16:33:13 +0200 Subject: Reprojecting with Gdalwarp vs native MapServer In-Reply-To: <452CF801.1010600@pobox.com> Message-ID: Hi, I have noticed that reprojecting layers on the fly in MapServer is much slower than creating a new file with gdalwarp and using that one in MapServer. With a PHP-MapScript program MapServer took two to three times as much time as gdalwarp, despite the fact that gdalwarp requires an extra read/write operation to disk. Is it possible to let MapServer use gdal's warping engine when gdal is available? Jan From gregor at HOSTGIS.COM Wed Oct 11 07:47:46 2006 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 11 Oct 2006 07:47:46 -0700 Subject: Reprojecting with Gdalwarp vs native MapServer In-Reply-To: <452D00A9.1080302@uva.nl> Message-ID: > I have noticed that reprojecting layers on the fly in MapServer is much > slower than creating a new file with gdalwarp and using that one in > MapServer. Any time that data needs to be reprojected on the fly, it will be a lot slower than spending the time to reproject the entire dataset beforehand. Consider: You make a request for a certain bbox. Mapserver needs to reproject the entire dataset, then test each feature for spatial intersection with that requested region. With every pan, every zoom, every query. Yuck. Doing the reprojection beforehand saves a lot of work at runtime, which translates directly into faster performance for the user. That'll always be the case, regardless of what reprojection engine is used or what CPU you have. From warmerdam at POBOX.COM Wed Oct 11 07:52:56 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 11 Oct 2006 10:52:56 -0400 Subject: Reprojecting with Gdalwarp vs native MapServer In-Reply-To: <452D00A9.1080302@uva.nl> Message-ID: Jan Hartmann wrote: > Hi, > > I have noticed that reprojecting layers on the fly in MapServer is much > slower than creating a new file with gdalwarp and using that one in > MapServer. With a PHP-MapScript program MapServer took two to three > times as much time as gdalwarp, despite the fact that gdalwarp requires > an extra read/write operation to disk. Is it possible to let MapServer > use gdal's warping engine when gdal is available? Jan, Are you saying the time to run gdalwarp + mapserver from the result is shorter than running letting mapserver do a reprojection from the source image? Yikes! This is very unexpected. I would suggest you try running the mapserver with reprojection with the layer debugging turned on. It will report some details about how much data is actually read from disk, and that may give us a clue. In general, the mapserver reprojection should be substantially faster than gdalwarp and if it isn't the case there is some sort of problem in mapserver we should fix. PS. you might want to upgrade to a recent MapServer if you aren't using one already. There was a bad problem with gross-oversampling in the reprojection code in some circumstances that was fixed a while ago (perhaps six months?) 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 | President OSGeo, http://osgeo.org From funkbucket at GMAIL.COM Wed Oct 11 10:05:42 2006 From: funkbucket at GMAIL.COM (B Tuttle) Date: Wed, 11 Oct 2006 11:05:42 -0600 Subject: Question about wms and mapfile location/restriction In-Reply-To: <2576812186CDD411BF1500508B6DCE950FF3A216@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Okay, I think I'm almost there. How do I form the URL assuming I have this shell script in my htdocs directory? I'm a little unclear on whether I can directly reference the shell script or if it has to be called within an html file or what. Thanks for the help. On 10/10/06, Kralidis,Tom [Burlington] wrote: > > Correct. > > > -----Original Message----- > > From: B Tuttle [mailto:funkbucket at gmail.com] > > Sent: 10 October, 2006 4:00 PM > > To: Kralidis,Tom [Burlington] > > Cc: MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] Question about wms and > > mapfile location/restriction > > > > I'm using Linux and Apache. The sheel script looks like a > > nice way to go. Does this set up mean one mapserv binary and > > using apache to restrict acces to the shell script and thus > > the mapfiles? > > > > On 10/10/06, Kralidis,Tom [Burlington] wrote: > > > > > > What OS are you using? And what HTTP server are you using? > > > > > > For example, if using UNIX and Apache, what I would do is: > > > > > > - place a mapserv binary in cgi-bin/ > > > - foreach mapfile > > > - create a shell script (see > > > > > http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-onl > > > in > > > e-resource-url) which points to mapserv after declaring the > > MS_MAPFILE > > > variable to be used. > > > > > > ..Tom > > > > > > > > > > -----Original Message----- > > > > From: B Tuttle [mailto:funkbucket at gmail.com] > > > > Sent: 10 October, 2006 1:44 PM > > > > To: Kralidis,Tom [Burlington] > > > > Cc: MAPSERVER-USERS at lists.umn.edu > > > > Subject: Re: [UMN_MAPSERVER-USERS] Question about wms and mapfile > > > > location/restriction > > > > > > > > When using multiple instances of mapserv how do I configure what > > > > mapfiles each instance is able to use? > > > > > > > > On 10/4/06, Kralidis,Tom [Burlington] > > wrote: > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: UMN MapServer Users List > > > > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of B Tuttle > > > > > > Sent: 04 October, 2006 5:49 PM > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > Subject: [UMN_MAPSERVER-USERS] Question about wms and mapfile > > > > > > location/restriction > > > > > > > > > > > > Hi all- > > > > > > > > > > > > Part1- > > > > > > So far to use wms I have to have the mapfile in the same > > > > > > direcotry as mapserv. Any thoughts on how to set it up so > > > > I can have > > > > > > my mapfile in a differnet location? > > > > > > > > > > > > > > > > You can have the mapfile anywhere on the filesystem, and > > > > refer to it > > > > > in your WMS server URL as: > > > > > > > > > > http://host/cgi-bin/mapserv?map=/path/to/mapfile.map > > > > > > > > > > This is a legal OGC WMS server URL, which would be > > visible in your > > > > > Capabilities XML. > > > > > > > > > > Note you can also hide the mapfile location if you wish (see: > > > > > > > > > > > http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-o > > > > nl > > > > > in > > > > > e-resource-url for more info). > > > > > > > > > > > Part 2- > > > > > > I need to set up my server so some mapfiles are > > available to > > > > > > anyone and some are password restricted. Is there a > > way to use a > > > > > > config file or multiple instances of mapserv to suggest > > > > what mapfile > > > > > > (or direcotry hieracrhies) it can access? > > > > > > > > > > > > > > > > You can use multiple instances of mapserv and apply > > authentication > > > > > rules to them via your web server configuration. > > > > > > > > > > Or, you can use the new Mapscript WxS API, which allows for the > > > > > OGC specs API to be exposed through scripting languages like > > > > python, perl, > > > > > php, and java. The API will allow you to work in between > > > > the request > > > > > / response chain. Here you can develop an authentication > > > > layer of sorts. > > > > > See http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript > > > > for more info. > > > > > This is relatively new functionality in MapServer/mapscript and > > > > > not extensively tested. > > > > > > > > > > > Any help would be greatly appreciated. > > > > > > > > > > > > > > > > > > > > > From Tom.Kralidis at EC.GC.CA Wed Oct 11 10:32:12 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 11 Oct 2006 13:32:12 -0400 Subject: Question about wms and mapfile location/restriction Message-ID: The shell script would be in your cgi-bin directory along with the mapserv binary. So: http://host/cgi-bin/shellscript Would be in your cgi-bin (make sure you chmod 755 on shellscript). $ cat shellscript #! /bin/sh export MS_MAPFILE=/path/to/mapfile.map ./mapserv Then you would use _this_ file instead of mapserv and map=/path/to/mapfile.map in the URL. > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of B Tuttle > Sent: 11 October, 2006 1:06 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Question about wms and > mapfile location/restriction > > Okay, I think I'm almost there. How do I form the URL > assuming I have this shell script in my htdocs directory? I'm > a little unclear on whether I can directly reference the > shell script or if it has to be called within an html file or > what. Thanks for the help. > > On 10/10/06, Kralidis,Tom [Burlington] wrote: > > > > Correct. > > > > > -----Original Message----- > > > From: B Tuttle [mailto:funkbucket at gmail.com] > > > Sent: 10 October, 2006 4:00 PM > > > To: Kralidis,Tom [Burlington] > > > Cc: MAPSERVER-USERS at lists.umn.edu > > > Subject: Re: [UMN_MAPSERVER-USERS] Question about wms and mapfile > > > location/restriction > > > > > > I'm using Linux and Apache. The sheel script looks like a > nice way > > > to go. Does this set up mean one mapserv binary and using > apache to > > > restrict acces to the shell script and thus the mapfiles? > > > > > > On 10/10/06, Kralidis,Tom [Burlington] > wrote: > > > > > > > > What OS are you using? And what HTTP server are you using? > > > > > > > > For example, if using UNIX and Apache, what I would do is: > > > > > > > > - place a mapserv binary in cgi-bin/ > > > > - foreach mapfile > > > > - create a shell script (see > > > > > > > > http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-o > > > nl > > > > in > > > > e-resource-url) which points to mapserv after declaring the > > > MS_MAPFILE > > > > variable to be used. > > > > > > > > ..Tom > > > > > > > > > > > > > -----Original Message----- > > > > > From: B Tuttle [mailto:funkbucket at gmail.com] > > > > > Sent: 10 October, 2006 1:44 PM > > > > > To: Kralidis,Tom [Burlington] > > > > > Cc: MAPSERVER-USERS at lists.umn.edu > > > > > Subject: Re: [UMN_MAPSERVER-USERS] Question about wms and > > > > > mapfile location/restriction > > > > > > > > > > When using multiple instances of mapserv how do I > configure what > > > > > mapfiles each instance is able to use? > > > > > > > > > > On 10/4/06, Kralidis,Tom [Burlington] > > > wrote: > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: UMN MapServer Users List > > > > > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf > Of B Tuttle > > > > > > > Sent: 04 October, 2006 5:49 PM > > > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > > > Subject: [UMN_MAPSERVER-USERS] Question about wms and > > > > > > > mapfile location/restriction > > > > > > > > > > > > > > Hi all- > > > > > > > > > > > > > > Part1- > > > > > > > So far to use wms I have to have the mapfile > in the same > > > > > > > direcotry as mapserv. Any thoughts on how to set it up so > > > > > I can have > > > > > > > my mapfile in a differnet location? > > > > > > > > > > > > > > > > > > > You can have the mapfile anywhere on the filesystem, and > > > > > refer to it > > > > > > in your WMS server URL as: > > > > > > > > > > > > http://host/cgi-bin/mapserv?map=/path/to/mapfile.map > > > > > > > > > > > > This is a legal OGC WMS server URL, which would be > > > visible in your > > > > > > Capabilities XML. > > > > > > > > > > > > Note you can also hide the mapfile location if you > wish (see: > > > > > > > > > > > > > > > http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-o > > > > > nl > > > > > > in > > > > > > e-resource-url for more info). > > > > > > > > > > > > > Part 2- > > > > > > > I need to set up my server so some mapfiles are > > > available to > > > > > > > anyone and some are password restricted. Is there a > > > way to use a > > > > > > > config file or multiple instances of mapserv to suggest > > > > > what mapfile > > > > > > > (or direcotry hieracrhies) it can access? > > > > > > > > > > > > > > > > > > > You can use multiple instances of mapserv and apply > > > authentication > > > > > > rules to them via your web server configuration. > > > > > > > > > > > > Or, you can use the new Mapscript WxS API, which allows for > > > > > > the OGC specs API to be exposed through scripting languages > > > > > > like > > > > > python, perl, > > > > > > php, and java. The API will allow you to work in between > > > > > the request > > > > > > / response chain. Here you can develop an authentication > > > > > layer of sorts. > > > > > > See http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript > > > > > for more info. > > > > > > This is relatively new functionality in MapServer/mapscript > > > > > > and not extensively tested. > > > > > > > > > > > > > Any help would be greatly appreciated. > > > > > > > > > > > > > > > > > > > > > > > > > > > > From Steve.Lime at DNR.STATE.MN.US Wed Oct 11 10:36:16 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 11 Oct 2006 12:36:16 -0500 Subject: Counting browse hits In-Reply-To: <6756412.post@talk.nabble.com> Message-ID: One way would be to use some simple AJAX code to get the counts from MapServer via a mode=nquery and display that information on the page. There are probably ways to ensure it doesn't have to happen for each pan/zoom action too although it gets tricky with reloading pages. A dhtml, load once, page can make much easier since you could trigger the AJAX call for a count update when the person/entity values change. Steve >>> DjwStone 10/11/2006 9:10:59 AM >>> I'm developing a CGI MapServer application using MapServer 4.8.3. The mapfile defines several layers which display symbols representing the location of entities associated with specific people. The user interface allows the type of entity and person to be selected. The type of entity will determine which layer is displayed; the person chosen will be applied to the layer by run-time substitution, and so will affect the number of points returned in the layer. All this works just fine. What I need to do now is to present, along with the result map, a count of the number of points returned. It's a useability thing - if the user has zoomed the map in and then browsed for some entity/person combination, the points returned quite likely lie outside the frame of the result map. So it's handy to know if there were any hits before going to the trouble of trying to locate them! I thought displaying [nr] was the answer, but it always returns zero, presumably because this is happening in browse mode rather than query. Any clues how to proceed gratefully accepted. Cheers, Dave -- View this message in context: http://www.nabble.com/Counting-browse-hits-tf2423455.html#a6756412 Sent from the Mapserver - User mailing list archive at Nabble.com. From btrimble at SFWMD.GOV Wed Oct 11 11:09:58 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Wed, 11 Oct 2006 14:09:58 -0400 Subject: highlite again! Message-ID: Hi Steve, Sorry for asking questions if they look simple to you! Since yesterday I am trying to do this! Mine does not highlight! Would you pleas answer these questions for me? 1) My layer template queries all the items from the shape file and displays the attributes in a separate window. That means the highlited layer is where I clicked the feature, right? 2) Because of item above, I am not using the CLASSITEM. Is this okay? 3) Would you please clarify this statement of yours with my case of map file and page, shown below? Rather it stores the key value (an ID) for the selected feature in a hidden variable and uses that value to draw that feature in a highlighted way. - Which one is the key value - I don't know - Which one is hidden variable - mine is 'layer' defined in EXPRESSION and the page option menu called name=layer ? - What is the value in the hidden variable after clicking - the name of the shapefile, 'lecsr_subareas' located in data directory? Thanks a lot Beheen This is part of my map file: LAYER NAME lecsr_subareas TYPE POLYGON STATUS DEFAULT DATA lecsr_subareas CLASS NAME 'Lecsr Subareas' STYLE OUTLINECOLOR 205 198 115 COLOR 255 228 225 END END CLASS NAME 'Lecsr Subareas Selected' EXPRESSION "%layer%" STYLE OUTLINECOLOR 0 0 0 COLOR 255 255 0 END END END This is part of my page: