From umberto.nicoletti at GMAIL.COM Fri Jun 1 00:10:22 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 1 Jun 2007 09:10:22 +0200 Subject: Strange mapscriptJNI_delete_1layerObj+0xf error killing Tomcat In-Reply-To: Message-ID: I suggest against this practice (no pun intended Benedikt, I sincerely appreciate your help). I say let's wait until Rodrigo tries out a rfc-24 enabled build, frankly I am quite positive rfc-24 will fix his issues. Regards, Umberto On 6/1/07, Benedikt Rothe wrote: > > Hi > > Some developers (Umberto, Tamas) work on a solution of this problem. > > As a workaround I made good experiences with > http://lists.umn.edu/cgi-bin/wa?A2=ind0506&L=mapserver-users&P=87500 > > > if we dynamically create mapserver-objects, we allway use code like this: > > classObj cO = new classObj(...); > > .. > > // Do something with cO > > .. > > //now cO isn't used any more > > cO.delete() > > With "freeing manually" we made the Mapserver inside Tomcat quite stable. > Hope, this helps > Benedikt > > > UMN MapServer Users List schrieb am > 31.05.2007 15:13:41: > > > > > Hello dear list. > > > > A problem is happening in our production machine which we were > > unable to reproduce on our development machines. We have a very > > large application almost ready for deployment, in which one of the > > modules is written in java mapscript 4.10.1, and the error on the > > attached log happened for the first time when we installed the > > application on the production server. Whats worse, the GIS module > > causing the error brings down Tomcat and the whole application with it. > > This is a excerpt from the JVM log: > > > > # An unexpected error has been detected by HotSpot Virtual Machine: > > # > > # SIGSEGV (0xb) at pc=0x636ff93b, pid=19162, tid=1759710128 > > # > > # Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode) > > # Problematic frame: > > # C [libmapscript.so+0x3893b] > > > Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1layerObj+0xf > > # > > > From veeraswamyd at YAHOO.CO.IN Fri Jun 1 04:26:45 2007 From: veeraswamyd at YAHOO.CO.IN (lakku) Date: Fri, 1 Jun 2007 04:26:45 -0700 Subject: zoom hilite query Message-ID: iam working with mapscript c# i have hilited a query on the map. now i want to zoom the hilited query anybody plz tell me the code in c# -- View this message in context: http://www.nabble.com/zoom-hilite-query-tf3851689.html#a10911001 Sent from the Mapserver - User mailing list archive at Nabble.com. From arkadi at MEBIUS.LV Fri Jun 1 03:47:32 2007 From: arkadi at MEBIUS.LV (Arkadi Shishlov) Date: Fri, 1 Jun 2007 13:47:32 +0300 Subject: layer.getType() before setType(): No enum class edu.umn.gis.mapscript.MS_LAYER_TYPE with value -1 Message-ID: If layer.getType() is called before setType() the exception is raised: java.lang.IllegalArgumentException: No enum class edu.umn.gis.mapscript.MS_LAYER_TYPE with value -1 at edu.umn.gis.mapscript.MS_LAYER_TYPE.swigToEnum(MS_LAYER_TYPE.java:35) at edu.umn.gis.mapscript.layerObj.getType(layerObj.java:118) Is it intentional? Would it be more convinient to extend enum with UNKNOWN or NOT_INITIALIZED? MapServer 4.10.1. From rodrigo.andrade at DIGITRO.COM.BR Fri Jun 1 05:59:26 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Fri, 1 Jun 2007 09:59:26 -0300 Subject: Strange mapscriptJNI_delete_1layerObj+0xf error killing Tomcat In-Reply-To: <75b4b93e0706010010i53501a17o7a86986b3b43439e@mail.gmail.com> Message-ID: Thanks a lot for all the replies, folks! I really appreciate it. I am about to get to work on that, so I will first dl and compile the svn version and give it a go without any further modifications, (like delete(), but I gotta say I am kinda of relieved: its a LOT of stuff to delete). It will be sort of a pain to test it because it is only crashing on the server, but w/e. Tamas: thanks too for the tip. Indeed all object creations we have in the code go with the new obj(parent) constructor. I will see how it works with the svn version and if it doesn't work I will implement that. Best regards, Rodrigo -- *Rodrigo Del C. Andrade* /Programador/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com Umberto Nicoletti wrote: > I suggest against this practice (no pun intended Benedikt, I sincerely > appreciate your help). > I say let's wait until Rodrigo tries out a rfc-24 enabled build, > frankly I am quite positive rfc-24 will fix his issues. > > Regards, > Umberto > > On 6/1/07, Benedikt Rothe wrote: >> >> Hi >> >> Some developers (Umberto, Tamas) work on a solution of this problem. >> >> As a workaround I made good experiences with >> http://lists.umn.edu/cgi-bin/wa?A2=ind0506&L=mapserver-users&P=87500 >> >> > if we dynamically create mapserver-objects, we allway use code like >> this: >> > classObj cO = new classObj(...); >> > .. >> > // Do something with cO >> > .. >> > //now cO isn't used any more >> > cO.delete() >> >> With "freeing manually" we made the Mapserver inside Tomcat quite >> stable. >> Hope, this helps >> Benedikt >> >> >> UMN MapServer Users List schrieb am >> 31.05.2007 15:13:41: >> >> > >> > Hello dear list. >> > >> > A problem is happening in our production machine which we were >> > unable to reproduce on our development machines. We have a very >> > large application almost ready for deployment, in which one of the >> > modules is written in java mapscript 4.10.1, and the error on the >> > attached log happened for the first time when we installed the >> > application on the production server. Whats worse, the GIS module >> > causing the error brings down Tomcat and the whole application >> with it. >> > This is a excerpt from the JVM log: >> > >> > # An unexpected error has been detected by HotSpot Virtual Machine: >> > # >> > # SIGSEGV (0xb) at pc=0x636ff93b, pid=19162, tid=1759710128 >> > # >> > # Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode) >> > # Problematic frame: >> > # C [libmapscript.so+0x3893b] >> > >> Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1layerObj+0xf >> > # >> > >> From arkadi at MEBIUS.LV Fri Jun 1 06:47:11 2007 From: arkadi at MEBIUS.LV (Arkadi Shishlov) Date: Fri, 1 Jun 2007 16:47:11 +0300 Subject: Strange mapscriptJNI_delete_1layerObj+0xf error killing Tomcat In-Reply-To: Message-ID: Tamas Szekeres wrote: > This error happened when the garbage collector have destroyed a free > standing layer object. The C memory of that object have been > implicitly destroyed previously upon the destruction of the parent map > object. > > It seems to me that you are possibly using the 'layerObj(mapObj map)' > constructor somewhere in your code for creating new layers dynamically > and adding to a map. I don't know whether it have handled for java so > far, but it is potentially unsafe for SWIG and RFC-24 is dedicated to > treat this issue (among other problems). > > If this statement applies to your code I would suggest to use the > layerObj(null) constructor and using insertLayer for adding the layer > to the map instead. > > This issue also applies to the 'classObj(layerObj layer)' and > styleObj(classObj parent_class) constructors as well. This indeed solved my problems too. After implementing insertClass/Style, using styleObj.getColor().setHex() to set color, and always working with a label returned by classObj.getLabel() the application is stable for some time. Previously it was crashing every 10 minutes. I'm also interested what is the semantic of shapeObj.add() and layerObj.addFeature()? shapeObj o = new shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POINT.swigValue()); lineObj n = new lineObj(); n.add(rulerXY1); o.add(n); layer.addFeature(o); Then both shape and line goes out of scope. Is it prone to crash? These are the helpers for reference: protected layerObj getLayer(String name) { layerObj layer = map.getLayerByName(name); if (layer == null) { layer = new layerObj(null); layer.setName(name); map.insertLayer(layer, -1); layer = map.getLayerByName(name); } return layer; } protected classObj allocClass(layerObj layer) { int i = layer.insertClass(new classObj(null), -1); return layer.getClass(i); } protected styleObj allocStyle(classObj c) { int i = c.insertStyle(new styleObj(null), -1); return c.getStyle(i); } protected classObj getFirstClass(layerObj layer) { if (layer.getNumclasses() > 0) return layer.getClass(0); return allocClass(layer); } protected styleObj getFirstStyle(classObj c) { if (c.getNumstyles() > 0) return c.getStyle(0); return allocStyle(c); } From gisaalter at GMAIL.COM Fri Jun 1 07:05:12 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Fri, 1 Jun 2007 16:05:12 +0200 Subject: Installing MapServer on Ubuntu Feisty Message-ID: Hi, I'm quite new to linux in general and, more specific, Ubuntu Feisty. Right now I've managed to set up Apache and PHP5. I'd like to install MapServer 4.10 but I can use some help achieving that. Assuming installation would be kind of similar to these instructions on Edgy: http://wiki.tdwg.org/twiki/bin/view/Geospatial/ServerPreparationStepByStep I do have run into some trouble getting it to work. Can someone with some experience compiling Mapserver on Feisty help me out ? Takk ! From szekerest at GMAIL.COM Fri Jun 1 07:44:50 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 1 Jun 2007 16:44:50 +0200 Subject: Strange mapscriptJNI_delete_1layerObj+0xf error killing Tomcat In-Reply-To: <4660235F.6070603@mebius.lv> Message-ID: 2007/6/1, Arkadi Shishlov : > I'm also interested what is the semantic of shapeObj.add() and layerObj.addFeature()? > shapeObj o = new shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POINT.swigValue()); > lineObj n = new lineObj(); > n.add(rulerXY1); > o.add(n); > layer.addFeature(o); > Then both shape and line goes out of scope. Is it prone to crash? > Both shapeObj.add() lineObj.add() and layerObj.addFeature() create a clone of the objects before adding them to the list. Therefore there's no need to transfer the ownership of the underlying C memory. You can safely use these methods considering that you cannot alter the properties of the added objects using the original reference. You should get back the reference of the objects similarly as you have done in the previous cases. Best regards, Tamas From umberto.nicoletti at GMAIL.COM Fri Jun 1 08:38:45 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 1 Jun 2007 17:38:45 +0200 Subject: Strange mapscriptJNI_delete_1layerObj+0xf error killing Tomcat In-Reply-To: <46603911.6000002@gdv.com> Message-ID: On 6/1/07, Oliver Wesp wrote: > Hi everybody, > > I just want thank everybody for the information in this thread. We're > facing similar issues with java mapscript crashing the vm. Unfortunately > the application relies on the dynamic creation of layers and classes. > > I tried the svn version this afternoon and it seems to be stable. No > more tomcat crashes till now. I will do some more testing on monday but > it looks like Umberto was right with expecting some good news :-) Yes, party time! ;-) Umberto > > Just in case this information is usefull: We're running our application > on Solaris 8 using Shapefiles, GDAL Raster (HFA) and WMS as datasources. > Tomcat is 5.0.28, JAVA is j2sdk1.4.2_11. > > Regards, > Oliver > > > > Umberto Nicoletti schrieb: > > I suggest against this practice (no pun intended Benedikt, I sincerely > > appreciate your help). > > I say let's wait until Rodrigo tries out a rfc-24 enabled build, > > frankly I am quite positive rfc-24 will fix his issues. > > > > Regards, > > Umberto > > > > On 6/1/07, Benedikt Rothe wrote: > >> > >> Hi > >> > >> Some developers (Umberto, Tamas) work on a solution of this problem. > >> > >> As a workaround I made good experiences with > >> http://lists.umn.edu/cgi-bin/wa?A2=ind0506&L=mapserver-users&P=87500 > >> > >> > if we dynamically create mapserver-objects, we allway use code like > >> this: > >> > classObj cO = new classObj(...); > >> > .. > >> > // Do something with cO > >> > .. > >> > //now cO isn't used any more > >> > cO.delete() > >> > >> With "freeing manually" we made the Mapserver inside Tomcat quite stable. > >> Hope, this helps > >> Benedikt > >> > >> > >> UMN MapServer Users List schrieb am > >> 31.05.2007 15:13:41: > >> > >> > > >> > Hello dear list. > >> > > >> > A problem is happening in our production machine which we were > >> > unable to reproduce on our development machines. We have a very > >> > large application almost ready for deployment, in which one of the > >> > modules is written in java mapscript 4.10.1, and the error on the > >> > attached log happened for the first time when we installed the > >> > application on the production server. Whats worse, the GIS module > >> > causing the error brings down Tomcat and the whole application with > >> it. > >> > This is a excerpt from the JVM log: > >> > > >> > # An unexpected error has been detected by HotSpot Virtual Machine: > >> > # > >> > # SIGSEGV (0xb) at pc=0x636ff93b, pid=19162, tid=1759710128 > >> > # > >> > # Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode) > >> > # Problematic frame: > >> > # C [libmapscript.so+0x3893b] > >> > > >> Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1layerObj+0xf > >> > # > >> > > >> > > > > > > > > -- > Dipl.-Geogr. Oliver Wesp > GDV Gesellschaft f?r geografische Datenverarbeitung mbH > Binger Str. 49-51 > 55218 Ingelheim am Rhein > Germany > Fon 049(0)6132-7148-18 > Fax 049(0)6132-7148-28 > www.gdv.com > Sitz der Gesellschaft: Ingelheim > Amtsgericht Mainz HRB 23123 > Gerichtsstand Mainz > Gesch?ftsf?hrer: Thomas Riehl, Dirk H?bener > > From umberto.nicoletti at GMAIL.COM Fri Jun 1 08:41:37 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 1 Jun 2007 17:41:37 +0200 Subject: Installing MapServer on Ubuntu Feisty In-Reply-To: <8d2ea9d70706010705y20fff4b5qb9a47a77bfb9c442@mail.gmail.com> Message-ID: On 6/1/07, Steven De Vriendt wrote: > Hi, > > I'm quite new to linux in general and, more specific, Ubuntu Feisty. > Right now I've managed to set up Apache and PHP5. > I'd like to install MapServer 4.10 but I can use some help > achieving that. Assuming installation would be kind of similar > to these instructions on Edgy: > http://wiki.tdwg.org/twiki/bin/view/Geospatial/ServerPreparationStepByStep > I do have run into some trouble getting it to work. What kind of troubles? Umberto > > Can someone with some experience compiling Mapserver on Feisty help me out ? > > Takk ! > From wesp at GDV.COM Fri Jun 1 08:19:45 2007 From: wesp at GDV.COM (Oliver Wesp) Date: Fri, 1 Jun 2007 17:19:45 +0200 Subject: Strange mapscriptJNI_delete_1layerObj+0xf error killing Tomcat In-Reply-To: <75b4b93e0706010010i53501a17o7a86986b3b43439e@mail.gmail.com> Message-ID: Hi everybody, I just want thank everybody for the information in this thread. We're facing similar issues with java mapscript crashing the vm. Unfortunately the application relies on the dynamic creation of layers and classes. I tried the svn version this afternoon and it seems to be stable. No more tomcat crashes till now. I will do some more testing on monday but it looks like Umberto was right with expecting some good news :-) Just in case this information is usefull: We're running our application on Solaris 8 using Shapefiles, GDAL Raster (HFA) and WMS as datasources. Tomcat is 5.0.28, JAVA is j2sdk1.4.2_11. Regards, Oliver Umberto Nicoletti schrieb: > I suggest against this practice (no pun intended Benedikt, I sincerely > appreciate your help). > I say let's wait until Rodrigo tries out a rfc-24 enabled build, > frankly I am quite positive rfc-24 will fix his issues. > > Regards, > Umberto > > On 6/1/07, Benedikt Rothe wrote: >> >> Hi >> >> Some developers (Umberto, Tamas) work on a solution of this problem. >> >> As a workaround I made good experiences with >> http://lists.umn.edu/cgi-bin/wa?A2=ind0506&L=mapserver-users&P=87500 >> >> > if we dynamically create mapserver-objects, we allway use code like >> this: >> > classObj cO = new classObj(...); >> > .. >> > // Do something with cO >> > .. >> > //now cO isn't used any more >> > cO.delete() >> >> With "freeing manually" we made the Mapserver inside Tomcat quite stable. >> Hope, this helps >> Benedikt >> >> >> UMN MapServer Users List schrieb am >> 31.05.2007 15:13:41: >> >> > >> > Hello dear list. >> > >> > A problem is happening in our production machine which we were >> > unable to reproduce on our development machines. We have a very >> > large application almost ready for deployment, in which one of the >> > modules is written in java mapscript 4.10.1, and the error on the >> > attached log happened for the first time when we installed the >> > application on the production server. Whats worse, the GIS module >> > causing the error brings down Tomcat and the whole application with >> it. >> > This is a excerpt from the JVM log: >> > >> > # An unexpected error has been detected by HotSpot Virtual Machine: >> > # >> > # SIGSEGV (0xb) at pc=0x636ff93b, pid=19162, tid=1759710128 >> > # >> > # Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode) >> > # Problematic frame: >> > # C [libmapscript.so+0x3893b] >> > >> Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1layerObj+0xf >> > # >> > >> > > > -- Dipl.-Geogr. Oliver Wesp GDV Gesellschaft f?r geografische Datenverarbeitung mbH Binger Str. 49-51 55218 Ingelheim am Rhein Germany Fon 049(0)6132-7148-18 Fax 049(0)6132-7148-28 www.gdv.com Sitz der Gesellschaft: Ingelheim Amtsgericht Mainz HRB 23123 Gerichtsstand Mainz Gesch?ftsf?hrer: Thomas Riehl, Dirk H?bener From wef1 at CEC.WUSTL.EDU Fri Jun 1 09:49:37 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Fri, 1 Jun 2007 09:49:37 -0700 Subject: ftp image -> Reproject -> WMS Message-ID: Hello, I've been looking through the documentation and haven't quite found what I'm looking for. I was wondering if anyone has seen or knows if this is possible. We have some map images that come from an ftp site, that we overlay on a world borders layer. The map images are a different projection from our borders, so we would like to reproject it. Does anyone know if MapServer can reproject an image file, not a shapefile or netCDF file or anything like that. A picture, a world image in png format. If anyone knows if this is or isn't possible, I would greatly appreciate any bits of info. Thanks! -Ed -- View this message in context: http://www.nabble.com/ftp-image--%3E-Reproject--%3E-WMS-tf3853389.html#a10916552 Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at HOSTGIS.COM Fri Jun 1 09:57:07 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 1 Jun 2007 10:57:07 -0600 Subject: ftp image -> Reproject -> WMS In-Reply-To: <10916552.post@talk.nabble.com> Message-ID: > Does anyone know if MapServer can reproject an image file, not a shapefile > or netCDF file or anything like that. A picture, a world image in png > format. Sure it can. Specify a projection block in the layer definition, same as you would with vector data. GDAL (which you surely have if you're using Mapserver) also includes the gdalwarp program, which can reproject the image once and for all, so you don't have to do it at runtime within Mapserver. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From tnolte at ILPCS.COM Fri Jun 1 11:00:35 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Fri, 1 Jun 2007 13:00:35 -0500 Subject: PHP/MapScript DSO Message-ID: I know that there are still many sources pointing to the fact that you must run PHP as a CGI for MapScript. I have also seen people talking about running mapscript successfully with PHP as a DSO. Can anyone confirm they are running under PHP DSO, and how did you get MapServer/MapScript to compile under DSO? Thanks. MapServer: 4.10.2 PHP: 5.1.4 From ed at TOPOZONE.COM Fri Jun 1 12:04:14 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 1 Jun 2007 15:04:14 -0400 Subject: ftp image -> Reproject -> WMS In-Reply-To: Message-ID: Ed - We do it on TopoZone hundreds of thousands of times every day.... The process is no different than with vector data; you simply specify the source projection of each layer with a PROJECTION block inside the LAYER definition, and specify the output projection for the map image with a PROJECTION block at the top level in your map file. You will want mapserv -v to report SUPPORTS=GDAL and SUPPORTS=PROJ (it would be unusual for your distribution to NOT do this), and you will need to install the PROJ.4 package. - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com >> From: edfialk >> Reply-To: edfialk >> Date: Fri, 1 Jun 2007 09:49:37 -0700 >> To: >> Subject: [UMN_MAPSERVER-USERS] ftp image -> Reproject -> WMS >> >> Hello, I've been looking through the documentation and haven't quite found >> what I'm looking for. >> >> I was wondering if anyone has seen or knows if this is possible. >> >> We have some map images that come from an ftp site, that we overlay on a >> world borders layer. >> The map images are a different projection from our borders, so we would like >> to reproject it. >> >> Does anyone know if MapServer can reproject an image file, not a shapefile >> or netCDF file or anything like that. A picture, a world image in png >> format. >> >> If anyone knows if this is or isn't possible, I would greatly appreciate any >> bits of info. >> >> Thanks! >> -Ed >> -- >> View this message in context: >> http://www.nabble.com/ftp-image--%3E-Reproject--%3E-WMS-tf3853389.html#a10916>> 5 >> 52 >> Sent from the Mapserver - User mailing list archive at Nabble.com. From rodrigo.andrade at DIGITRO.COM.BR Fri Jun 1 12:04:47 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Fri, 1 Jun 2007 16:04:47 -0300 Subject: Error compiling from SVN rev 6166 Message-ID: Hi folks. Following the previous discussion about rfc-24, I am trying to compile a version from Svn latest revision (6166). All is fine and dandy till I try to test the java mapscript lib created. Going trough the usual configure and make, mapserver shows no problems, same with mapscript/java with make interface and make: no problems. But 'make test' outputs java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. WxSTest ../../tests/test.map Exception in thread "Thread-2" java.lang.UnknownError: loadLayer(): Unknown identifier. Parsing error near (MAP):(line 1) at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) at edu.umn.gis.mapscript.mapObj.(mapObj.java:280) at WxSTest_thread.run(WxSTest.java:11) Document Length: 9658, expecting somewhere around 10000 or more. I am using the same libraries (gd, proj, etc) I had compiled for 4.10.1 and other than that the enviroment is the same. I also tried issuing a dos2unix to the offending test.map thinking it could be a windows carriage return format file, but its not. Swig is version 1.3.29, btw. Regards, Rodrigo -- *Rodrigo Del C. Andrade* /Programador/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com From David.Fawcett at STATE.MN.US Fri Jun 1 13:27:16 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 1 Jun 2007 15:27:16 -0500 Subject: imagemap examples Message-ID: Does anyone have any examples of client code that hits MapServer for both an image and an associated imagemap and puts them together? I have the backend and URLs to retrieve what I want for the image and imagemap, I am just looking for the most efficient way to stitch them together. Thanks, David. From szekerest at GMAIL.COM Fri Jun 1 13:40:15 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 1 Jun 2007 22:40:15 +0200 Subject: Error compiling from SVN rev 6166 In-Reply-To: <46606DCF.1010609@digitro.com.br> Message-ID: This version requires a newer version of the lexer, apparently flex 2.5.31 or so. This issue might be related to this change. Best regards, Tamas 2007/6/1, Rodrigo Del C. Andrade : > Hi folks. > Following the previous discussion about rfc-24, I am trying to > compile a version from Svn latest revision (6166). All is fine and dandy > till I try to test the java mapscript lib created. > Going trough the usual configure and make, mapserver shows no > problems, same with mapscript/java with make interface and make: no > problems. > But 'make test' outputs > > java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. > WxSTest ../../tests/test.map > Exception in thread "Thread-2" java.lang.UnknownError: loadLayer(): > Unknown identifier. Parsing error near (MAP):(line 1) > at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) > at edu.umn.gis.mapscript.mapObj.(mapObj.java:280) > at WxSTest_thread.run(WxSTest.java:11) > Document Length: 9658, expecting somewhere around 10000 or more. > > I am using the same libraries (gd, proj, etc) I had compiled for > 4.10.1 and other than that the enviroment is the same. I also tried > issuing a dos2unix to the offending test.map thinking it could be a > windows carriage return format file, but its not. Swig is version > 1.3.29, btw. > > Regards, > > Rodrigo > > -- > *Rodrigo Del C. Andrade* > /Programador/ > /SIC - SSE - Solu??es Seguran?a P?blica/ > > *D?GITRO TECNOLOGIA* > *E-mail:* rodrigo.andrade at digitro.com.br > > *Fone:* +55 48 3281-7314 / +55 48 3281-7000 > *Fax:* +55 48 3281-7299 > *Site:* www.digitro.com > From gregor at HOSTGIS.COM Fri Jun 1 13:46:16 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 1 Jun 2007 14:46:16 -0600 Subject: PHP/MapScript DSO In-Reply-To: Message-ID: > I know that there are still many sources pointing to the fact that you must > run PHP as a CGI for MapScript. I have also seen people talking about > running mapscript successfully with PHP as a DSO. Yeah, I've been asking off and on about this for the last 2 years. I always see one or two "works for me" especially under Windows, and three or four "no way" So I dunno... I've not been brave enough to try it on our production systems. > Can anyone confirm they > are running under PHP DSO, and how did you get MapServer/MapScript to > compile under DSO? Thanks. Mapserver/Mapscript just compiles as you would for the PHP CGI: point to the PHP source tree and it builds php_mapscript.so -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From rodrigo.andrade at DIGITRO.COM.BR Fri Jun 1 14:08:34 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Fri, 1 Jun 2007 18:08:34 -0300 Subject: Error compiling from SVN rev 6166 In-Reply-To: Message-ID: Nope =( My distro had the old 2.5.4a, but I updated it to 2.5.33 and recompiled both mapserver and mapscript but it had no effect, same error. Is it documented somewhere changes (migration guide) for this future released? I might be missing something obvious :\ Thanks, Rodrigo Tamas Szekeres wrote: > This version requires a newer version of the lexer, apparently flex > 2.5.31 or so. > This issue might be related to this change. > > Best regards, > > Tamas > > > 2007/6/1, Rodrigo Del C. Andrade : >> Hi folks. >> Following the previous discussion about rfc-24, I am trying to >> compile a version from Svn latest revision (6166). All is fine and dandy >> till I try to test the java mapscript lib created. >> Going trough the usual configure and make, mapserver shows no >> problems, same with mapscript/java with make interface and make: no >> problems. >> But 'make test' outputs >> >> java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. >> WxSTest ../../tests/test.map >> Exception in thread "Thread-2" java.lang.UnknownError: loadLayer(): >> Unknown identifier. Parsing error near (MAP):(line 1) >> at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) >> at edu.umn.gis.mapscript.mapObj.(mapObj.java:280) >> at WxSTest_thread.run(WxSTest.java:11) >> Document Length: 9658, expecting somewhere around 10000 or more. >> >> I am using the same libraries (gd, proj, etc) I had compiled for >> 4.10.1 and other than that the enviroment is the same. I also tried >> issuing a dos2unix to the offending test.map thinking it could be a >> windows carriage return format file, but its not. Swig is version >> 1.3.29, btw. >> >> Regards, >> >> Rodrigo From Bob.Basques at CI.STPAUL.MN.US Fri Jun 1 14:27:19 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 1 Jun 2007 16:27:19 -0500 Subject: imagemap examples Message-ID: David, If you want something up and running fairly quickly, you should take a look at GeoMoose. It makes this type of integration very easy (considering the pieces involved). The interface is based on this type of architecture, where any layer can have a corrosponding imagemap (XML in GeoMOOSEs case) http://www.geomoose.org/moose Take a look at the Demo sites that are using the GeoMoose framework and see if it will work for you.We're working on adding in some demos and such to make things easier on first timers with GeoMoose. There is not currently a demo in place showing this, but we hope to have one up within the next few working days that shows off the imagemap capabilities. bobb >>> "Fawcett, David" wrote: Does anyone have any examples of client code that hits MapServer for both an image and an associated imagemap and puts them together? =20 I have the backend and URLs to retrieve what I want for the image and imagemap, I am just looking for the most efficient way to stitch them together. =20 Thanks,=20 David. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Fri Jun 1 14:36:08 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 1 Jun 2007 17:36:08 -0400 Subject: PHP/MapScript DSO In-Reply-To: <46608598.7090704@hostgis.com> Message-ID: Gregor Mosheh wrote: >> I know that there are still many sources pointing to the fact that you >> must >> run PHP as a CGI for MapScript. I have also seen people talking about >> running mapscript successfully with PHP as a DSO. > > Yeah, I've been asking off and on about this for the last 2 years. I > always see one or two "works for me" especially under Windows, and three > or four "no way" So I dunno... I've not been brave enough to try it on > our production systems. > > > > Can anyone confirm they >> are running under PHP DSO, and how did you get MapServer/MapScript to >> compile under DSO? Thanks. > > Mapserver/Mapscript just compiles as you would for the PHP CGI: point to > the PHP source tree and it builds php_mapscript.so > The definitive answer to this question probably needs to come from DM Solutions et al, as they are the maintainers of PHP mapscript. The problem is a nutshell is this: You can build as a DSO and it will work ... well sort of, but not really. If you run some hits against it they will work, but the root problem is that mapserver and hence mapscript has not resolved all the thread-safety issues yet. It is TONS better than it was a few years ago, but still has some problems. So when you put your DSO under a little load and get some multiple requests running it starts to trash the various threads depending on what you are doing. There are a lot of things that are currently getting done to improve things in the code, and it might be getting to the point that if you test your specific application you might determine that you don't hit any of those issues. But then again your testing might have just missed those issues or your next application might fall flat on its face. Anyway, you see the problem. And as this is a constantly changing problem with all the code development, you probably need to ask occasionally what the status is on this. I know I have to ask every 6 months or so to see if it has changed. -Steve W. From simbiotico at HOTMAIL.COM Fri Jun 1 14:48:17 2007 From: simbiotico at HOTMAIL.COM (Simbiosis Amorpha) Date: Fri, 1 Jun 2007 16:48:17 -0500 Subject: Unsubscribe Message-ID: _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From armin.burger at GMX.NET Fri Jun 1 15:11:55 2007 From: armin.burger at GMX.NET (Armin Burger) Date: Sat, 2 Jun 2007 00:11:55 +0200 Subject: PHP/MapScript DSO In-Reply-To: Message-ID: Timothy, My experience is that PHP/Mapscript runs well under PHP as DSO when Apache is a non-threaded version. So either Apache 1.3, or Apache 2 as prefork version, not the threaded MPM (this is recommended anyway in the PHP docs, see http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2). It seems that on Windows Apache is always threaded, so there I just used PHP as CGI. The special options for Mapserver/Mapscript compilation was to add '--with-php=/usr/local/include/php --with-httpd=/usr/sbin/apache2 '. Armin Timothy J Nolte wrote: > I know that there are still many sources pointing to the fact that you must > run PHP as a CGI for MapScript. I have also seen people talking about > running mapscript successfully with PHP as a DSO. Can anyone confirm they > are running under PHP DSO, and how did you get MapServer/MapScript to > compile under DSO? Thanks. > > MapServer: 4.10.2 > PHP: 5.1.4 > From szekerest at GMAIL.COM Fri Jun 1 15:30:23 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sat, 2 Jun 2007 00:30:23 +0200 Subject: Error compiling from SVN rev 6166 In-Reply-To: <46608AD2.8010604@digitro.com.br> Message-ID: I think it's a java specific issue. The C# tests using this sample map are running pretty well, see: http://buildbot.osgeo.org:8504/ Maybe Umberto will have some further idea in this topic. Best regards, Tamas 2007/6/1, Rodrigo Del C. Andrade : > > Nope =( > My distro had the old 2.5.4a, but I updated it to 2.5.33 and > recompiled both mapserver and mapscript but it had no effect, same > error. Is it documented somewhere changes (migration guide) for this > future released? > I might be missing something obvious :\ > > Thanks, > > Rodrigo > > > Tamas Szekeres wrote: > > This version requires a newer version of the lexer, apparently flex > > 2.5.31 or so. > > This issue might be related to this change. > > > > Best regards, > > > > Tamas > > > > > > 2007/6/1, Rodrigo Del C. Andrade : > >> Hi folks. > >> Following the previous discussion about rfc-24, I am trying to > >> compile a version from Svn latest revision (6166). All is fine and dandy > >> till I try to test the java mapscript lib created. > >> Going trough the usual configure and make, mapserver shows no > >> problems, same with mapscript/java with make interface and make: no > >> problems. > >> But 'make test' outputs > >> > >> java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. > >> WxSTest ../../tests/test.map > >> Exception in thread "Thread-2" java.lang.UnknownError: loadLayer(): > >> Unknown identifier. Parsing error near (MAP):(line 1) > >> at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) > >> at edu.umn.gis.mapscript.mapObj.(mapObj.java:280) > >> at WxSTest_thread.run(WxSTest.java:11) > >> Document Length: 9658, expecting somewhere around 10000 or more. > >> > >> I am using the same libraries (gd, proj, etc) I had compiled for > >> 4.10.1 and other than that the enviroment is the same. I also tried > >> issuing a dos2unix to the offending test.map thinking it could be a > >> windows carriage return format file, but its not. Swig is version > >> 1.3.29, btw. > >> > >> Regards, > >> > >> Rodrigo > From btrimble at SFWMD.GOV Fri Jun 1 15:34:27 2007 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Fri, 1 Jun 2007 18:34:27 -0400 Subject: Does anybody know compiler writing by any chance? Message-ID: Hi All, I am working on writing a compiler and I need some assistance to debug my program in C. I know this is Mapserver site, but there are lots of smart people here. Thanks Beheen -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhda at TERRA.COM Fri Jun 1 16:04:00 2007 From: mhda at TERRA.COM (Zica Kimica) Date: Fri, 1 Jun 2007 18:04:00 -0500 Subject: Query on Database. How can i do? Message-ID: Hello, i'm a new user on Mapserver. I'm trying to develop a website that makes query based on selection of radio button and javascript trees like the example below. ------------Example of a tree-------- - Crimes - Life Crime o 2006 o 2007 + Other queries ------------------------------------- Well, then suppose the user choose Life Crimes of 2006, now i don't know what i have to do. Suppose there's a table in one database like: ------Example of LifeCrime's Table---- PK | STATES | YEAR | VALUE | 01 | StateA | 2006 | 30 | 02 | StateA | 2007 | 25 | 03 | StateB | 2006 | 25 | -------------------------------------- I also have a shapefile of States(POLYGON). like states.shp I want to know how can i make states that have values of 30+ on Life Crime appears in color red and the other in yellow. * See that i can't make the database on the shape and use CLASSITEM and EXPRESSION, because it's a related database and very long. Below you see my ideas of what i have to do, but i don't know how can i do and i also think that the best solution is different if them. Fell free to read them and post the best solution and give opinions on my ideas. ---------------my ideas, but i don't know if is it the best way------------------ 1) I think that first i have to know what is the query. PHP gets the choosed query(Life Crime of 2006) and then send a query to the database, then get the results and send it to mapserver( how does it function)? 2) Mapserver just make query like this connecting to a database(in this case, the Mapserver is doing query not the Script Language) and get values based on regular expressions.( how?) 3) I have to insert a lot of fields on the ShapeFile Table with results of the queries.(but this way is not up-to-date, neither cool). ---------------------------------------------------------------------------- Thanks for helping a new user! From akrherz at IASTATE.EDU Fri Jun 1 20:45:50 2007 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Fri, 1 Jun 2007 22:45:50 -0500 Subject: MapServer 4.10.2 Configure error In-Reply-To: Message-ID: On Wed, 30 May 2007, Amy Ramsdell wrote: > I am trying to configure MapServer 4.10.2 on a Linux RHEL4U2 machine with > the following commands. The script fails when it is looking for the gd files. > Could not find gd.h or libgd.a/libgd.so in /usr/lib64. > > I know these files are in that directory because I put them there. It wouldn't be looking for gd.h in /usr/lib64. Do you have gd-devel installed? On my RHEL4 system: gd-2.0.28-5.4E gd-devel-2.0.28-5.4E daryl From umberto.nicoletti at GMAIL.COM Sat Jun 2 02:21:33 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Sat, 2 Jun 2007 11:21:33 +0200 Subject: Error compiling from SVN rev 6166 In-Reply-To: Message-ID: On 6/2/07, Tamas Szekeres wrote: > I think it's a java specific issue. The C# tests using this sample map > are running pretty well, see: > http://buildbot.osgeo.org:8504/ > > Maybe Umberto will have some further idea in this topic. > Yes I have, and we all can have it since it's in svn revision 6167 and tracked by bug #2108. It was actually a quite serious issue. We need SteveL to have a look at this. Umberto > Best regards, > > Tamas > > > > 2007/6/1, Rodrigo Del C. Andrade : > > > > Nope =( > > My distro had the old 2.5.4a, but I updated it to 2.5.33 and > > recompiled both mapserver and mapscript but it had no effect, same > > error. Is it documented somewhere changes (migration guide) for this > > future released? > > I might be missing something obvious :\ > > > > Thanks, > > > > Rodrigo > > > > > > Tamas Szekeres wrote: > > > This version requires a newer version of the lexer, apparently flex > > > 2.5.31 or so. > > > This issue might be related to this change. > > > > > > Best regards, > > > > > > Tamas > > > > > > > > > 2007/6/1, Rodrigo Del C. Andrade : > > >> Hi folks. > > >> Following the previous discussion about rfc-24, I am trying to > > >> compile a version from Svn latest revision (6166). All is fine and dandy > > >> till I try to test the java mapscript lib created. > > >> Going trough the usual configure and make, mapserver shows no > > >> problems, same with mapscript/java with make interface and make: no > > >> problems. > > >> But 'make test' outputs > > >> > > >> java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. > > >> WxSTest ../../tests/test.map > > >> Exception in thread "Thread-2" java.lang.UnknownError: loadLayer(): > > >> Unknown identifier. Parsing error near (MAP):(line 1) > > >> at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) > > >> at edu.umn.gis.mapscript.mapObj.(mapObj.java:280) > > >> at WxSTest_thread.run(WxSTest.java:11) > > >> Document Length: 9658, expecting somewhere around 10000 or more. > > >> > > >> I am using the same libraries (gd, proj, etc) I had compiled for > > >> 4.10.1 and other than that the enviroment is the same. I also tried > > >> issuing a dos2unix to the offending test.map thinking it could be a > > >> windows carriage return format file, but its not. Swig is version > > >> 1.3.29, btw. > > >> > > >> Regards, > > >> > > >> Rodrigo > > > From veeraswamyd at YAHOO.CO.IN Sat Jun 2 03:26:18 2007 From: veeraswamyd at YAHOO.CO.IN (lakku) Date: Sat, 2 Jun 2007 03:26:18 -0700 Subject: zoom hilited query in c# Message-ID: iam working with mapscript c# i have hilited a query on the map. now i want to zoom the hilited query anybody plz tell me the code in c# -- View this message in context: http://www.nabble.com/zoom-hilited-query-in-c--tf3856419.html#a10925940 Sent from the Mapserver - User mailing list archive at Nabble.com. From veeraswamyd at YAHOO.CO.IN Sat Jun 2 03:27:59 2007 From: veeraswamyd at YAHOO.CO.IN (lakku) Date: Sat, 2 Jun 2007 03:27:59 -0700 Subject: layer labels in c# Message-ID: iam working with mapscript c# how to display labels on the map in button click event plz tell me the code in c# -- View this message in context: http://www.nabble.com/layer-labels--in-c--tf3856441.html#a10925989 Sent from the Mapserver - User mailing list archive at Nabble.com. From igev at MAIL.RU Sat Jun 2 09:59:55 2007 From: igev at MAIL.RU (Igor Evdokimov) Date: Sat, 2 Jun 2007 23:59:55 +0700 Subject: stable PHP/Mapscript segmentation faults Message-ID: Hi, List! I read some old (2005-2006) messages related to my problem in archives, but it didn't help. My php_mapscript sometimes makes segmentation faults in Apache. In /var/log/httpd/error_log I see "... child pid XXXX segmentation fault" It occurs after some reloading, moving of map, after some turning different layers on and off - in Ka-Map, Cartoweb. Then browser cotinues to work normally at 4-5 operations, then again segfault, etc. This problem I can't resolve since 2006. Then it was on Linux machine, now - on MacOSX. I've tried Apache 1 and 2, GD 2.0.35RC, different options (--with-threads --with-gd=/usr/local/ ...)? but no real result. Can anyone really help me? Or, maybe, this segfaults is a normal operation of apache? System: MacOSX 10.4.8 Apache 1.3.33 Php 5.1.4 Mapserver 4.10.2 Sincerely, Igor. From szekerest at GMAIL.COM Sat Jun 2 15:05:11 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sun, 3 Jun 2007 00:05:11 +0200 Subject: zoom hilited query in c# In-Reply-To: <10925940.post@talk.nabble.com> Message-ID: You should calculate the bounds of the results by reading the bounds of the resultCacheObj and set the extent of the map accordingly. public static void QueryByAttribute(string qstring, mapObj map, bool zoomToResults) { Console.WriteLine("\nPerforming QueryByAttribute:"); try { layerObj layer; rectObj query_bounds = null; for (int i = 0; i < map.numlayers; i++) { layer = map.getLayer(i); if (layer.connection != null) { Console.WriteLine("Layer [" + i + "] name: " + layer.name); BuildQuery(layer, qstring); // zoom to the query results using (resultCacheObj results = layer.getResults()) { if (results != null && results.numresults > 0) { // calculating the extent of the results if (query_bounds == null) query_bounds = new rectObj(results.bounds.minx, results.bounds.miny, results.bounds.maxx, results.bounds.maxy,0); else { if (results.bounds.minx < query_bounds.minx) query_bounds.minx = results.bounds.minx; if (results.bounds.miny < query_bounds.miny) query_bounds.miny = results.bounds.miny; if (results.bounds.maxx > query_bounds.maxx) query_bounds.maxx = results.bounds.maxx; if (results.bounds.maxy > query_bounds.maxy) query_bounds.maxy = results.bounds.maxy; } } } } } // setting the map extent to the result bounds if (zoomToResults) map.setExtent(query_bounds.minx, query_bounds.miny, query_bounds.maxx, query_bounds.maxy); } catch (Exception e) { Console.WriteLine("QueryByAttribute: " + e.Message); } } private static void BuildQuery(layerObj layer, string qstring) { if (layer != null && layer.map != null) { layer.open(); string qs = ""; string att = ""; for (int i=0; i < layer.numitems; i++) { if (qs == "") { qs = "("; att = layer.getItem(i); } else { qs += " OR "; } qs += "'[" + layer.getItem(i) + "]'='" + qstring + "'"; } qs += ")"; layer.close(); Console.WriteLine("Query string: " + qs); try { layer.queryByAttributes(layer.map, att, qs, 1); } catch (Exception e) { Console.WriteLine("BuildQuery: " + e.Message); } } } The complete example can be found here: http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapscript/csharp/examples/drawquery.cs and I've attached the resulting image of the sample by using / not using the zoom option. 2007/6/2, lakku : > iam working with mapscript c# > i have hilited a query on the map. > now i want to zoom the hilited query > anybody plz tell me the code in c# > -- > View this message in context: http://www.nabble.com/zoom-hilited-query-in-c--tf3856419.html#a10925940 > Sent from the Mapserver - User mailing list archive at Nabble.com. > -------------- next part -------------- A non-text attachment was scrubbed... Name: Hun_zoom.png Type: image/png Size: 12265 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Hun.png Type: image/png Size: 20860 bytes Desc: not available URL: From szekerest at GMAIL.COM Sat Jun 2 15:35:05 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sun, 3 Jun 2007 00:35:05 +0200 Subject: layer labels in c# In-Reply-To: <10925989.post@talk.nabble.com> Message-ID: I'm pretty sure I've already replied to this question in a previous thread. Once again you should set the parameters of the labelObj that belongs to the classObj of a particular layer either by mapscript of in the mapfile respectively. If you have further problems or error messages please provide more detailed information about the issue. A general note: Please do not require folks to create complete application for a particular problem especially when that problem is not specified exactly. When you speak about 'button click events' and 'combo boxes' it implies that your special application logic should also be implemented as a sample code. In this list we can only point you to the right direction by describing the solution and possibly providing code fragments for the problem but we cannot implement it entirely instead of you. Best regards, Tamas 2007/6/2, lakku : > iam working with mapscript c# > how to display labels on the map in button click event > plz tell me the code in c# > -- > View this message in context: http://www.nabble.com/layer-labels--in-c--tf3856441.html#a10925989 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From dylan.beaudette at GMAIL.COM Sat Jun 2 16:32:24 2007 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Sat, 2 Jun 2007 16:32:24 -0700 Subject: problems with Tiger road data In-Reply-To: <465745F6.3050400@hostgis.com> Message-ID: On Friday 25 May 2007 13:24, Gregor Mosheh wrote: > > Does anyone know what might cause this county to be so much worse than > > the others, and if there is some way I can fix the data? > > As to why that coounty is bad: the problem is probably more political > than technical. Counties spend money differently, have different > surveying crews, and so on. > > As to fixing it, I suspect that your best bet would be to purchase > better-quality road data for the county in question. TIGER is > notoriously incomplete and inaccurate, despite the recent drive toward > its improvement. > > Sorry that doesn't help... Looks like it wasn't all that hard to fix with an affine transform: http://casoilresource.lawr.ucdavis.edu/drupal/node/433 thanks for the tips. -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From florian.goessmann at MAC.COM Sat Jun 2 17:03:27 2007 From: florian.goessmann at MAC.COM (Florian Goessmann) Date: Sun, 3 Jun 2007 08:03:27 +0800 Subject: stable PHP/Mapscript segmentation faults In-Reply-To: <4661A20B.1010401@mail.ru> Message-ID: hi igor i had the exact same problem on os x server 10.4.9. the workaround i found was to use php-cgi instead of mod_php. since i changed that, it has been working without any problem. cheers florian On 03/06/2007, at 12:59 AM, Igor Evdokimov wrote: > Hi, List! > > I read some old (2005-2006) messages related to my problem > in archives, but it didn't help. > > My php_mapscript sometimes makes segmentation faults in Apache. > In /var/log/httpd/error_log I see "... child pid XXXX segmentation > fault" > > It occurs after some reloading, moving of map, after some turning > different > layers on and off - in Ka-Map, Cartoweb. Then browser cotinues to > work normally at > 4-5 operations, then again segfault, etc. > > This problem I can't resolve since 2006. Then it was on Linux > machine, now - on MacOSX. > I've tried Apache 1 and 2, GD 2.0.35RC, different options (--with- > threads --with-gd=/usr/local/ ...)? > but no real result. > > Can anyone really help me? Or, maybe, this segfaults is a normal > operation > of apache? > > System: > MacOSX 10.4.8 > Apache 1.3.33 > Php 5.1.4 > Mapserver 4.10.2 > > Sincerely, Igor. From David.Fawcett at STATE.MN.US Sat Jun 2 19:13:16 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Sat, 2 Jun 2007 21:13:16 -0500 Subject: imagemap examples In-Reply-To: A Message-ID: The Moose is way too big for what I am trying to do. I am looking for something more like a mouse. If I wanted to do the pan and zoom thing, I would just use dBox. I just want to retreive an imagemap and use it with my map image on document load. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bob Basques Sent: Friday, June 01, 2007 4:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] imagemap examples David, If you want something up and running fairly quickly, you should take a look at GeoMoose. It makes this type of integration very easy (considering the pieces involved). The interface is based on this type of architecture, where any layer can have a corrosponding imagemap (XML in GeoMOOSEs case) http://www.geomoose.org/moose Take a look at the Demo sites that are using the GeoMoose framework and see if it will work for you.We're working on adding in some demos and such to make things easier on first timers with GeoMoose. There is not currently a demo in place showing this, but we hope to have one up within the next few working days that shows off the imagemap capabilities. bobb >>> "Fawcett, David" wrote: Does anyone have any examples of client code that hits MapServer for both an image and an associated imagemap and puts them together? =20 I have the backend and URLs to retrieve what I want for the image and imagemap, I am just looking for the most efficient way to stitch them together. =20 Thanks,=20 David. -------------- next part -------------- An HTML attachment was scrubbed... URL: From anthony.k.farrant at GMAIL.COM Sun Jun 3 10:15:04 2007 From: anthony.k.farrant at GMAIL.COM (anthony farrant) Date: Sun, 3 Jun 2007 19:15:04 +0200 Subject: updating Proj's epsg list Message-ID: Hello people, I'm having a pretty hard time so I hope you wouldn't mind if I ask the community a question on sunday. I just installed mapserver/mapscript from source on debian (ouf) and am trying to install chameleon but I keep getting projection error messages. > msProcessProjection(): no options found I looked in the epsg file and indeed the projection from the sample applications was not there (epsg:42304). The version of proj however is the latest. So I copied the file from my ms4w installation on to my Deb server. But no, that didn't do it. > msProcessProjection(): no searchlist found My question: How should one proceed to update the epsg file, or to force the proj library or mapserver to take into account the new epsg file? Thanks in advance, -A From siukola.antti at GMAIL.COM Sun Jun 3 13:34:11 2007 From: siukola.antti at GMAIL.COM (antti siukola) Date: Sun, 3 Jun 2007 23:34:11 +0300 Subject: Problem with an odbc connection Message-ID: Hi! I get this error when trying to make an odbc connection via ovf: Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection `/path/name.ovf'. Unable to initialize ODBC connection to DSN for user/pass at DSN, [unixODBC][Driver Manager]Data source name not found, and no default driver specified in /path/name.class.php on line XX I have set up an DSN to /etc/odbc.ini like this: [DSN] Driver = /usr/lib/libodbcmyS.so // this is my RedHat .so DESCRIPTION = mysql driver SERVER = localhost PORT = 3306 USER = user // changed to foobar for this email Password = pass // changed to foobar for this email Database = db // changed to foobar for this email SOCKET = /var/lib/mysql/mysql.sock // this is correct For me it looks correct. Where could I start searching the problem? Thanks! Antti S From rodrigo.andrade at DIGITRO.COM.BR Sun Jun 3 14:16:10 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Sun, 3 Jun 2007 18:16:10 -0300 Subject: Strange mapscriptJNI_delete_1layerObj+0xf error killing Tomcat In-Reply-To: <75b4b93e0706010838r74012d75ra42ac3bd7eef31e7@mail.gmail.com> Message-ID: I have some interesting news to report. First of all, thanks Umberto for fixing the make test error so quickly. You rock! Ok, onto bussiness. I found out that make threadtests was a wonderful way to reproduce the original error that was making tomcat crash, and probably why it only happened on the server and not on my machine. Running it with 1 thread (as it was being run in my single processor / single user machine), it wouldn't crash. But running the threadtests on the 4 processor server with 10 threads, it crashed consistently about 65% of the time, on a 300 runs test. I increased it to 30 threads and I got a 100% crash rate. Now, witth Svn rev 6167, the same 300 consecutive runs with 10 threads of threadtests had a whooping ZERO crash rate! Just to be sure, I increased it to 100 threads, and am about to let it burn 10.000 times. I cant see how the application will will fare on a real life situation yet, as apparently the folks responsible for generating new versions on the production server don't come to work on sundays. Slackers. I will report back in the morning. Best regards, Rodrigo -- *Rodrigo Del C. Andrade* /Programador/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com Umberto Nicoletti wrote: > On 6/1/07, Oliver Wesp wrote: >> Hi everybody, >> >> I just want thank everybody for the information in this thread. We're >> facing similar issues with java mapscript crashing the vm. Unfortunately >> the application relies on the dynamic creation of layers and classes. >> >> I tried the svn version this afternoon and it seems to be stable. No >> more tomcat crashes till now. I will do some more testing on monday but >> it looks like Umberto was right with expecting some good news :-) > > Yes, party time! ;-) > > Umberto > >> >> Just in case this information is usefull: We're running our application >> on Solaris 8 using Shapefiles, GDAL Raster (HFA) and WMS as datasources. >> Tomcat is 5.0.28, JAVA is j2sdk1.4.2_11. >> >> Regards, >> Oliver >> >> >> >> Umberto Nicoletti schrieb: >> > I suggest against this practice (no pun intended Benedikt, I sincerely >> > appreciate your help). >> > I say let's wait until Rodrigo tries out a rfc-24 enabled build, >> > frankly I am quite positive rfc-24 will fix his issues. >> > >> > Regards, >> > Umberto >> > >> > On 6/1/07, Benedikt Rothe wrote: >> >> >> >> Hi >> >> >> >> Some developers (Umberto, Tamas) work on a solution of this problem. >> >> >> >> As a workaround I made good experiences with >> >> http://lists.umn.edu/cgi-bin/wa?A2=ind0506&L=mapserver-users&P=87500 >> >> >> >> > if we dynamically create mapserver-objects, we allway use code like >> >> this: >> >> > classObj cO = new classObj(...); >> >> > .. >> >> > // Do something with cO >> >> > .. >> >> > //now cO isn't used any more >> >> > cO.delete() >> >> >> >> With "freeing manually" we made the Mapserver inside Tomcat quite >> stable. >> >> Hope, this helps >> >> Benedikt >> >> >> >> >> >> UMN MapServer Users List schrieb am >> >> 31.05.2007 15:13:41: >> >> >> >> > >> >> > Hello dear list. >> >> > >> >> > A problem is happening in our production machine which we were >> >> > unable to reproduce on our development machines. We have a very >> >> > large application almost ready for deployment, in which one of the >> >> > modules is written in java mapscript 4.10.1, and the error on the >> >> > attached log happened for the first time when we installed the >> >> > application on the production server. Whats worse, the GIS module >> >> > causing the error brings down Tomcat and the whole application >> with >> >> it. >> >> > This is a excerpt from the JVM log: >> >> > >> >> > # An unexpected error has been detected by HotSpot Virtual >> Machine: >> >> > # >> >> > # SIGSEGV (0xb) at pc=0x636ff93b, pid=19162, tid=1759710128 >> >> > # >> >> > # Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode) >> >> > # Problematic frame: >> >> > # C [libmapscript.so+0x3893b] >> >> > >> >> Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1layerObj+0xf >> >> > # >> >> > > From woodbri at SWOODBRIDGE.COM Sun Jun 3 17:30:22 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 3 Jun 2007 20:30:22 -0400 Subject: updating Proj's epsg list In-Reply-To: Message-ID: anthony farrant wrote: > Hello people, > > I'm having a pretty hard time so I hope you wouldn't mind if I ask the > community a question on sunday. > > I just installed mapserver/mapscript from source on debian (ouf) and am > trying > to install chameleon but I keep getting projection error messages. > >> msProcessProjection(): no options found > > I looked in the > epsg file and indeed the projection from the sample applications was not > there > (epsg:42304). The version of proj however is the latest. > > So I copied the file from my ms4w installation on to my Deb server. But > no, that > didn't do it. > >> msProcessProjection(): no searchlist found > > My question: How should one proceed to update the epsg file, or to > force the proj > library or mapserver to take into account the new epsg file? > > Thanks in advance, > > -A Where did the epsg number 42304 come from? It is from an ESRI project? If so you might try using esri:42304 instead of epsg:42304 epsg is an organization the publishes standard projections code and definitions. esri also has their own set of codes and definitions. There are separate files for these to lists specifically epsg and ersi. -Steve W. From jolcese at GMAIL.COM Fri Jun 1 07:44:53 2007 From: jolcese at GMAIL.COM (joseolcese) Date: Fri, 1 Jun 2007 07:44:53 -0700 Subject: Google maps & Mapserver projection issue Message-ID: Hi I'm trying to use Google maps & Mapserver with partial success... I have a .shp configured in mapserver and I can get a transparent tile from an html page where it load google satellite view and my tiles. The problem is that I wasn't using any projection on my .map so every tile was a little distorted. I added the epsg:54004 project to the .map but now the tiles are empty. Do you have any idea why this my be happening? Thanks Jose Olcese .map: IMAGETYPE PNG EXTENT -64.20 -31.41 -64.19 -31.40 SIZE 256 256 SHAPEPATH '/ms4w/apps/tutorial/data_jose' FONTSET '/ms4w/apps/tutorial/fonts/fonts.list' TRANSPARENT ON CONFIG PROJ_LIB '/var/www/html/share/proj/' PROJECTION "init=esri:54004" END LAYER ... ... .html: ... ... tileCountry.getTileUrl=function(xy,zoom) { var lng = (-180+((xy.x+0.5)*(360/Math.pow(2,zoom)))); // -180 +180 var merclat_extent = 360/Math.pow(2,zoom); var l = 180 - ((xy.y+0.5) * merclat_extent); var e = Math.exp(2 * ( l * Math.PI) /180); e = (e - 1)/(e + 1); var lat = (Math.atan2(e, Math.sqrt(1 - (e * e))) *180 / Math.PI); return 'http://127.0.0.1/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/map_test5.map&mode=map&mapxy=' + lng + '+' + lat + '&buffer=' + ((360/Math.pow(2,zoom))/2); } ... -- View this message in context: http://www.nabble.com/Google-maps---Mapserver-projection-issue-tf3852632.html#a10913968 Sent from the Mapserver - User mailing list archive at Nabble.com. From ale.pas at TISCALI.IT Sun Jun 3 23:04:00 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Mon, 4 Jun 2007 08:04:00 +0200 Subject: Installing MapServer on Ubuntu Feisty In-Reply-To: <8d2ea9d70706010705y20fff4b5qb9a47a77bfb9c442@mail.gmail.com> Message-ID: Il venerd? 01 giugno 2007, Steven De Vriendt ha scritto: > Hi, > > I'm quite new to linux in general and, more specific, Ubuntu Feisty. > Right now I've managed to set up Apache and PHP5. > I'd like to install MapServer 4.10 but I can use some help > achieving that. Assuming installation would be kind of similar > to these instructions on Edgy: > http://wiki.tdwg.org/twiki/bin/view/Geospatial/ServerPreparationStepByStep > I do have run into some trouble getting it to work. > > Can someone with some experience compiling Mapserver on Feisty help me out > ? If you prefer precompiled binaries, you can find up to date repositories for GRASS, MAPSERVER and QGIS on deb http://les-ejk.cz/ubuntu feisty multiverse deb-src http://les-ejk.cz/ubuntu feisty multiverse See: http://www.les-ejk.cz/ubuntu/ Best regards. -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From luca76 at GMAIL.COM Sun Jun 3 23:22:34 2007 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Mon, 4 Jun 2007 08:22:34 +0200 Subject: Attaching JPEG pictures on a map image. Message-ID: Hi, I have several small JPEG images (they are tables with values) and I would like to "attach" them to the map. Obviously I have the points referred to them. There's any way to do it? -- "Work only as many hours as you can be productive and only as many hours as you can sustain." - Kent Beck, in "Extreme Programming Explained" http://www.trapanator.com/blog From umberto.nicoletti at GMAIL.COM Sun Jun 3 23:34:50 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 4 Jun 2007 08:34:50 +0200 Subject: Attaching JPEG pictures on a map image. In-Reply-To: Message-ID: Define a pixmap symbol which uses the image. It will be then rendered by mapserver exactly where the point is. Umberto On 6/4/07, Luca Manganelli wrote: > Hi, > > I have several small JPEG images (they are tables with values) and I > would like to "attach" them to the map. Obviously I have the points > referred to them. > > There's any way to do it? > > > -- > "Work only as many hours as you can be productive and only as many hours as > you can sustain." - Kent Beck, in "Extreme Programming Explained" > > http://www.trapanator.com/blog > From anthony.k.farrant at GMAIL.COM Mon Jun 4 00:49:37 2007 From: anthony.k.farrant at GMAIL.COM (anthony farrant) Date: Mon, 4 Jun 2007 09:49:37 +0200 Subject: updating Proj's epsg list In-Reply-To: <46635D1E.7020207@swoodbridge.com> Message-ID: Hi, It's a projection that came with the demo's of Chameleon. It's a Canada projection and it's written in epsg:form. I don't think it's an esri projection but I'll give your suggestion a try later on. The funny thing is that it's in the epsg file of ms4w but not in that of mapserver for linux that I compiled on debian. -A > Where did the epsg number 42304 come from? It is from an ESRI project? > If so you might try using esri:42304 instead of epsg:42304 > > epsg is an organization the publishes standard projections code and > definitions. esri also has their own set of codes and definitions. There > are separate files for these to lists specifically epsg and ersi. > > -Steve W. > From j.l.h.hartmann at UVA.NL Mon Jun 4 03:38:22 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Mon, 4 Jun 2007 12:38:22 +0200 Subject: Google maps & Mapserver projection issue In-Reply-To: <10913968.post@talk.nabble.com> Message-ID: Hi Jose Epsg 54004 is the classic Mercator projection. The units it uses are not degrees but meters (only at the equator these are real meters). Using proj I get the following boundary values (note that -180W/-90S and 180E/90N cannot be represented in a Mercator projection): proj +init=epsg:54004 -170 -80 -18924313.43 -15496570.74 170 80 18924313.43 15496570.74 Hope this helps, Jan Dr. J. Hartmann Department of Geography University of Amsterdam joseolcese wrote: > Hi > > I'm trying to use Google maps & Mapserver with partial success... > I have a .shp configured in mapserver and I can get a transparent tile from > an html page where it load google satellite view and my tiles. > The problem is that I wasn't using any projection on my .map so every tile > was a little distorted. > I added the epsg:54004 project to the .map but now the tiles are empty. > > Do you have any idea why this my be happening? > > Thanks > Jose Olcese > > .map: > IMAGETYPE PNG > EXTENT -64.20 -31.41 -64.19 -31.40 > SIZE 256 256 > SHAPEPATH '/ms4w/apps/tutorial/data_jose' > FONTSET '/ms4w/apps/tutorial/fonts/fonts.list' > TRANSPARENT ON > CONFIG PROJ_LIB '/var/www/html/share/proj/' > PROJECTION > "init=esri:54004" > END > LAYER > ... > ... > > > .html: > ... > ... > tileCountry.getTileUrl=function(xy,zoom) > { > var lng = (-180+((xy.x+0.5)*(360/Math.pow(2,zoom)))); // -180 > +180 > > var merclat_extent = 360/Math.pow(2,zoom); > var l = 180 - ((xy.y+0.5) * merclat_extent); > var e = Math.exp(2 * ( l * Math.PI) /180); > e = (e - 1)/(e + 1); > var lat = (Math.atan2(e, Math.sqrt(1 - (e * e))) *180 / > Math.PI); > > return > 'http://127.0.0.1/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/map_test5.map&mode=map&mapxy=' > + lng + '+' + lat + '&buffer=' + ((360/Math.pow(2,zoom))/2); > } > ... > > > From dmorissette at MAPGEARS.COM Mon Jun 4 04:03:06 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 4 Jun 2007 07:03:06 -0400 Subject: Using STYLEITEM with gml In-Reply-To: <6fb81fc70705310544x17bfb5ub72369941ff264d3@mail.gmail.com> Message-ID: Benoit Myard wrote: > > I wonder if anyone ever tried and actually managed to get STYLEITEM > working with GML data. The goal would be to define within the GML data > the color of the items. > STYLEITEM can only be used with "STYLEITEM AUTO" and works only for OGR formats that return style information (colors, symbols, line widths, etc.) in the form of an OGR style string. The most common OGR drivers that support that are the TAB and DGN drivers. GML itself doesn't define styling, that's why the OGR GML driver doesn't provide style strings. > Also, is RFC 19 [1] still planed for MapServer 5.0 [2] and what's the > status of this feature ? > I believe it's mostly in place in the 5.0 development version but may still be lacking docs. I'll let Steve comment on that. Daniel -- Daniel Morissette http://www.mapgears.com/ From jmckenna at DMSOLUTIONS.CA Mon Jun 4 05:13:55 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 4 Jun 2007 08:13:55 -0400 Subject: updating Proj's epsg list In-Reply-To: Message-ID: This should help you: http://dl.maptools.org/dl/proj4-epsg-with-42xxx.zip jeff anthony farrant wrote: > Hello people, > > I'm having a pretty hard time so I hope you wouldn't mind if I ask the > community a question on sunday. > > I just installed mapserver/mapscript from source on debian (ouf) and am > trying > to install chameleon but I keep getting projection error messages. > >> msProcessProjection(): no options found > > I looked in the > epsg file and indeed the projection from the sample applications was not > there > (epsg:42304). The version of proj however is the latest. > > So I copied the file from my ms4w installation on to my Deb server. But > no, that > didn't do it. > >> msProcessProjection(): no searchlist found > > My question: How should one proceed to update the epsg file, or to > force the proj > library or mapserver to take into account the new epsg file? > > Thanks in advance, > > -A > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From rodrigo.andrade at DIGITRO.COM.BR Mon Jun 4 05:55:55 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Mon, 4 Jun 2007 09:55:55 -0300 Subject: Strange mapscriptJNI_delete_1layerObj+0xf error killing Tomcat In-Reply-To: <46632F9A.3000700@digitro.com.br> Message-ID: Success! make threadtests configured to 100 simultaneous threads, 10.000 times in a row. Zero errors. 100% success rate. Great job, folks. Really great job. Now lets see how the app behaves with the new version. Cheers, Rodrigo -- *Rodrigo Del C. Andrade* /Programador/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com Rodrigo Del C. Andrade wrote: > I have some interesting news to report. > First of all, thanks Umberto for fixing the make test error so > quickly. You rock! > Ok, onto bussiness. I found out that make threadtests was a > wonderful way to reproduce the original error that was making tomcat > crash, and probably why it only happened on the server and not on my > machine. Running it with 1 thread (as it was being run in my single > processor / single user machine), it wouldn't crash. But running the > threadtests on the 4 processor server with 10 threads, it crashed > consistently about 65% of the time, on a 300 runs test. I increased it > to 30 threads and I got a 100% crash rate. > Now, witth Svn rev 6167, the same 300 consecutive runs with 10 > threads of threadtests had a whooping ZERO crash rate! > Just to be sure, I increased it to 100 threads, and am about to > let it burn 10.000 times. I cant see how the application will will > fare on a real life situation yet, as apparently the folks responsible > for generating new versions on the production server don't come to > work on sundays. Slackers. > I will report back in the morning. > > Best regards, > > Rodrigo > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tnolte at ILPCS.COM Mon Jun 4 06:07:48 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Mon, 4 Jun 2007 08:07:48 -0500 Subject: MapServer 4.10.2 Configure error Message-ID: I was getting this same problem when compiling and it came down to not having all of the image format libraries installed, in my case it was the XPM library. I installed the XPM library and this took care of the issue, although you can also add --without-xpm to the configure options and your error should also go away. From gribas at CPQD.COM.BR Mon Jun 4 06:18:24 2007 From: gribas at CPQD.COM.BR (Gustavo Henrique Sberze Ribas) Date: Mon, 4 Jun 2007 10:18:24 -0300 Subject: imagemap examples Message-ID: Hello, > I just want to retreive an imagemap and use it with my map image on document load. The trickiest part is that you can't load an imagemap from an external reference, ie, you can't do that: see http://www.w3.org/People/mimasa/test/imagemap/results So you have two options, use some kind of pre-processing to link them, like a JSP, ASP, PHP page that fetches the imagemap and puts it on the page together with your map or you can use DHTML and work with DOM do dynamically add content (the tag) to the page. Attached are two files exemplifying these ideas. If you point your browser to http://www.cpqd.com.br/monitor/americana/listEstacTotal.jsp and click on the (+) icon in the first table row you'll see an application which uses DOM to retrieve the imageMaps. HTH, Gustavo -------------- next part -------------- A non-text attachment was scrubbed... Name: imagemapTest.jsp Type: application/octet-stream Size: 1675 bytes Desc: imagemapTest.jsp URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: imagemap.js Type: application/octet-stream Size: 3920 bytes Desc: imagemap.js URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: imagemap.script Type: application/octet-stream Size: 3920 bytes Desc: imagemap.script URL: From j.l.h.hartmann at UVA.NL Mon Jun 4 06:26:51 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Mon, 4 Jun 2007 15:26:51 +0200 Subject: imagemap examples In-Reply-To: Message-ID: Perhaps this is only our University's spam filter gone wild, but I'll report back what it said anyway Jan Dr. J. Hartmann Department of Geography University of Amsterdam Gustavo Henrique Sberze Ribas wrote: > WARNING: This e-mail has been altered by the MIMEDefang filter. > For more information see http://www.ic.uva.nl/virus > > A possibly dangerous attachment was renamed. > 'imagemap.js' has been renamed to 'defang-1.binary' > > Een mogelijk gevaarlijke bijlage is hernoemd. > 'imagemap.js' is hernoemd naar 'defang-1.binary' > > > > ------------------------------------------------------------------------ > > Hello, > >> I just want to retreive an imagemap and use it with my map image on > document load. > > The trickiest part is that you can't load an imagemap from an external > reference, ie, you can't do that: > > > src="http://cpqd/cgi-bin/mapserv?SERVICE=WMS&REQUEST=GetMap...&WIDTH=800 > &HEIGHT=600" > > usemap="http://cpqd/cgi-bin/mapserv?SERVICE=WMS&REQUEST=GetMap...&WIDTH= > 800&HEIGHT=600" > > > see http://www.w3.org/People/mimasa/test/imagemap/results > > > So you have two options, use some kind of pre-processing to link them, > like a JSP, ASP, PHP page that fetches the imagemap and puts it on the > page together with your map or you can use DHTML and work with DOM do > dynamically add content (the tag) to the page. Attached are two > files exemplifying these ideas. > > If you point your browser to > http://www.cpqd.com.br/monitor/americana/listEstacTotal.jsp and click on > the (+) icon in the first table row you'll see an application which uses > DOM to retrieve the imageMaps. > > > HTH, > Gustavo From gribas at CPQD.COM.BR Mon Jun 4 06:33:01 2007 From: gribas at CPQD.COM.BR (Gustavo Henrique Sberze Ribas) Date: Mon, 4 Jun 2007 10:33:01 -0300 Subject: imagemap examples Message-ID: I'm resending the message with the examples inside a zip archive because I received all sorts of warnings from several emails servers complaining about the javascript example. Sorry about that, hope it works this time. -- Hello, > I just want to retreive an imagemap and use it with my map image on document load. The trickiest part is that you can't load an imagemap from an external reference, ie, you can't do that: see http://www.w3.org/People/mimasa/test/imagemap/results So you have two options, use some kind of pre-processing to link them, like a JSP, ASP, PHP page that fetches the imagemap and puts it on the page together with your map or you can use DHTML and work with DOM do dynamically add content (the tag) to the page. Attached are two files exemplifying these ideas. If you point your browser to http://www.cpqd.com.br/monitor/americana/listEstacTotal.jsp and click on the (+) icon in the first table row you'll see an application which uses DOM to retrieve the imageMaps. HTH, Gustavo -------------- next part -------------- A non-text attachment was scrubbed... Name: examples.zip Type: application/x-zip-compressed Size: 2441 bytes Desc: examples.zip URL: From j.l.h.hartmann at UVA.NL Mon Jun 4 08:23:36 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Mon, 4 Jun 2007 17:23:36 +0200 Subject: Google maps & Mapserver projection issue In-Reply-To: <7bdafaac0706040813x4bc6e38ck581f08136435d7ed@mail.gmail.com> Message-ID: With Mapscript it's easy: function ll2merc($lon,$lat) { $projIn = ms_newprojectionobj("proj=latlong"); $projOut = ms_newprojectionobj("proj=merc"); $p = ms_newpointobj(); $p->setXY($lon,$lat); $p->project($projIn, $projOut); return($p); } If you don't use Mapscript, you have to do the computations in Javascript. There is a project to implement the Proj package in Javascript: http://lists.maptools.org/pipermail/proj/2006-February/002125.html but I have never worked with it Jan Jose Olcese wrote: > Hi Jan, > > I really appreciate your help!. It seems that it might be the problem!. > I'll try sending Mercator Coordinates in meters as the mapexp parameter > of mapserv. > > Do you have the algorithm for converting it? > > Thanks again > Jose > > > > > On 6/4/07, *Jan Hartmann* < j.l.h.hartmann at uva.nl > > wrote: > > Hi Jose > > Epsg 54004 is the classic Mercator projection. The units it uses are not > degrees but meters (only at the equator these are real meters). Using > proj I get the following boundary values (note that -180W/-90S and > 180E/90N cannot be represented in a Mercator projection): > > proj +init=epsg:54004 > -170 -80 > -18924313.43 -15496570.74 > 170 80 > 18924313.43 15496570.74 > > Hope this helps, > > Jan > > Dr. J. Hartmann > Department of Geography > University of Amsterdam > > joseolcese wrote: > > Hi > > > > I'm trying to use Google maps & Mapserver with partial success... > > I have a .shp configured in mapserver and I can get a transparent > tile from > > an html page where it load google satellite view and my tiles. > > The problem is that I wasn't using any projection on my .map so > every tile > > was a little distorted. > > I added the epsg:54004 project to the .map but now the tiles are > empty. > > > > Do you have any idea why this my be happening? > > > > Thanks > > Jose Olcese > > > > .map: > > IMAGETYPE PNG > > EXTENT -64.20 -31.41 -64.19 -31.40 > > SIZE 256 256 > > SHAPEPATH '/ms4w/apps/tutorial/data_jose' > > FONTSET '/ms4w/apps/tutorial/fonts/fonts.list' > > TRANSPARENT ON > > CONFIG PROJ_LIB '/var/www/html/share/proj/' > > PROJECTION > > "init=esri:54004" > > END > > LAYER > > ... > > ... > > > > > > .html: > > ... > > ... > > tileCountry.getTileUrl=function(xy,zoom) > > { > > var lng = (-180+((xy.x+0.5)*(360/Math.pow(2,zoom)))); > // -180 > > +180 > > > > var merclat_extent = 360/Math.pow(2,zoom); > > var l = 180 - (( xy.y+0.5) * merclat_extent); > > var e = Math.exp(2 * ( l * Math.PI) /180); > > e = (e - 1)/(e + 1); > > var lat = (Math.atan2(e, Math.sqrt(1 - (e * e))) *180 / > > Math.PI ); > > > > return > > ' > http://127.0.0.1/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/map_test5.map&mode=map&mapxy= > ' > > + lng + '+' + lat + '&buffer=' + ((360/Math.pow(2,zoom))/2); > > } > > ... > > > > > > > > From gaia.trecarichi at GMAIL.COM Mon Jun 4 09:24:41 2007 From: gaia.trecarichi at GMAIL.COM (Gaia Trecarichi) Date: Mon, 4 Jun 2007 18:24:41 +0200 Subject: Problems in testing Java Mapscript Message-ID: *Hello,* *I'm new in mapserver stuff and I'm trying to use Java Mapscript without any success.* *My environment is:* - *Windows XP* - * MS4W version 4.10.1.* - *JDK 1.6.0_01* - * Eclipse * * I wanted to test some Java Mapscript functionality with a simple Java program whose code is the following:* * -----------------------------------------------------------------------* * ?* *import edu.umn.gis.mapscript.*;* * public class ProvaMapscript {* * public* *static* * void* main(String[] args) { ?. String mappath= * new* String("C:\\ms4w\\apps\\e-rescue\\" ); mapObj map = * new* mapObj(mappath.concat(" emergency2.map")); imageObj image = map.draw(); String image_url = "C:\\ms4w\\tmp\\ms_tmp\\emergency.png"; image.save(image_url, map); ? } } *I get the following error:* Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.6.0_01\bin\mapscript.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(*Native Method* ) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at edu.umn.gis.mapscript.mapscriptJNI.(*mapscriptJNI.java:23*) at edu.umn.gis.mapscript.mapObj.(* mapObj.java:276*) at ProvaMapscript.main(* ProvaMapscript.java:51*) *I don't know exactly which libraries mapscript.dll requires but as far as I could see from some forum the following list of dll's is needed:* *bgd.dll* *gdal14.dll* *geotiff.dll* *iconv.dll* *kernel32.dll* *libcurl.dll* *libecwj2.dll* *libmap.dll* *libmysql.dll* *libpq.dll* *libproj.dll* *libtiff.dll* *mapscript.dll* *msvcr71.dll* *msvcrt.dll* *ntdll.dll* *pdflib.dll* *proj.dll* *xerces-c_2_7.dll* *zlib1.dll* *dwmapi.dll* *I have them in the directory "C:\ms4w\Apache\cgi-bin" and this directory is in the system environment variable PATH. * * * *I don't know exactly which is the problem. I'm thinking to 2 things:* *1- As far as I can understand there is a library, namely sde91.dll, that is needed by libmap.dll. I can't find this library in my system. Is there anybody who knows where I can download this library? (but I think I don't need it since I'm not using ESRI's ArcSDE)* *2- Is it possible that my Java Mapscript files are not compatible with my JDK version 1.6.0? I say it because I read in the README_INSTALL.txt of MS4W the following:* *MapScript* *?* *Java MapScript: compiled against Java 1.5.07* *?* *If anybody could help me in this problem I would be infinitely grateful!!* *Thank you in advance,* *Gaia* -------------- next part -------------- An HTML attachment was scrubbed... URL: From helenagarcia at GRUPOTECOPY.ES Mon Jun 4 10:36:04 2007 From: helenagarcia at GRUPOTECOPY.ES (H Garcia) Date: Mon, 4 Jun 2007 12:36:04 -0500 Subject: WFS-G Message-ID: Hello, list! I would like to know if it's possible to have a WFS-G or another WFS-XX with a xml schema different than default GML model. Thanks in advance!! From umberto.nicoletti at GMAIL.COM Mon Jun 4 11:17:48 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 4 Jun 2007 20:17:48 +0200 Subject: Problems in testing Java Mapscript In-Reply-To: Message-ID: On 6/4/07, Gaia Trecarichi wrote: > > > Hello, > > I'm new in mapserver stuff and I'm trying to use Java Mapscript without any > success. > > My environment is: > Windows XP > MS4W version 4.10.1. > JDK 1.6.0_01 > Eclipse > > > I wanted to test some Java Mapscript functionality with a simple Java > program whose code is the following: > > ----------------------------------------------------------------------- > > ? > > import edu.umn.gis.mapscript.*; > > public class ProvaMapscript { > > public static void main(String[] args) { > > ?. > > String mappath= new String("C:\\ms4w\\apps\\e-rescue\\" ); > > mapObj map = new mapObj(mappath.concat(" emergency2.map")); > > imageObj image = map.draw(); > > String image_url = > "C:\\ms4w\\tmp\\ms_tmp\\emergency.png"; > > image.save(image_url, map); > > ? > > } > > } > > I get the following error: > > > Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program > Files\Java\jre1.6.0_01\bin\mapscript.dll: Can't find > dependent libraries > > at java.lang.ClassLoader$NativeLibrary.load(Native > Method ) > > at java.lang.ClassLoader.loadLibrary0(Unknown Source) > > at java.lang.ClassLoader.loadLibrary(Unknown Source) > > at java.lang.Runtime.loadLibrary0(Unknown Source) > > at java.lang.System.loadLibrary(Unknown Source) > > at > edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23 > ) > > at edu.umn.gis.mapscript.mapObj.( mapObj.java:276) > > at ProvaMapscript.main( ProvaMapscript.java:51) > > I don't know exactly which libraries mapscript.dll requires but as far as I > could see from some forum the following list of dll's is needed: > > bgd.dll > > gdal14.dll > > geotiff.dll > > iconv.dll > > kernel32.dll > > libcurl.dll > > libecwj2.dll > > libmap.dll > > libmysql.dll > > libpq.dll > > libproj.dll > > libtiff.dll > > mapscript.dll > > msvcr71.dll > > msvcrt.dll > > ntdll.dll > > pdflib.dll > > proj.dll > > xerces-c_2_7.dll > > zlib1.dll > > dwmapi.dll > > > > I have them in the directory "C:\ms4w\Apache\cgi-bin" and this directory is > in the system environment variable PATH. > > > > I don't know exactly which is the problem. I'm thinking to 2 things: > > 1- As far as I can understand there is a library, namely sde91.dll, that is > needed by libmap.dll. I can't find this library in my system. Is there > anybody who knows where I can download this library? (but I think I don't > need it since I'm not using ESRI's ArcSDE) > Gaia, what makes you think it's because of sde91.dll ? What tool have you used to detect this is the missing dll in the dependency chain? Did you use http://www.dependencywalker.com/ ? Also, are you sure that eclipse is picking up the correct path and is not using its internal default settings instead? > 2- Is it possible that my Java Mapscript files are not compatible with my > JDK version 1.6.0? I say it because I read in the README_INSTALL.txt of MS4W > the following: > Java bytecode is always backwards compatible, so that is not a problem or at least it's a very unlikely one. BTW, the java geeks who live here would very much appreciate if you turned off html formatting and reverted to posting in good ol' plain text. Thanks ;-) Hope this helps, Umberto > MapScript > > ? > > Java MapScript: compiled against Java 1.5.07 > > ? > > If anybody could help me in this problem I would be infinitely grateful!! > > Thank you in advance, > > Gaia From Tom.Kralidis at EC.GC.CA Mon Jun 4 11:32:11 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 4 Jun 2007 14:32:11 -0400 Subject: WFS-G Message-ID: > I would like to know if it's possible to have a WFS-G or > another WFS-XX with a xml schema different than default GML model. With out-of-the-box MapServer, basically your underlying data structure is displayed as a pre-defined XML content model. One option you can checkout is using mapscript as a wrapper for WxS services (see http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript), where you can put logic in between the request and reponse model of OGC services in MapServer. In this case, you could do an XSLT transformation on the generic-ish MapServer WFS response to make it look like WFS-G, then sending back to the client. Hope this helps ..Tom From watry at STEAM.COAPS.FSU.EDU Mon Jun 4 12:03:08 2007 From: watry at STEAM.COAPS.FSU.EDU (Gary Watry) Date: Mon, 4 Jun 2007 15:03:08 -0400 Subject: Thredds and mapserver Message-ID: Has anyone done any work using Thredds and Mapserver. -------------------------------------------- The information transmitted is intended solely for the person or entity for which it is addressed and may contain confidential and/or privileged information. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please contact the sender and delete the material from your computer. ____________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 Phone (850) 645-7457 E-Mail: watry at coaps.fsu.edu From rodrigo.andrade at DIGITRO.COM.BR Mon Jun 4 12:07:25 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Mon, 4 Jun 2007 16:07:25 -0300 Subject: Problems in testing Java Mapscript In-Reply-To: <75b4b93e0706041117t75053f46qa3c87c78558a448e@mail.gmail.com> Message-ID: Gaia, Risking stating the obvious or being annoying: are you sure those dlls are in the system (not user) PATH? Is their directory exported in the path or their parent directory? Have you rebooted windows after declaring it? I have seem similar errors on linux and all were related to environment variables. I have next to nil experience with MS4W, but thats were I would put my money on. As Umberto said, what makes you suspect sde91.dll? Is there something in the logs you haven't sent? Good luck. Rodrigo -- *Rodrigo Del C. Andrade* /Programador/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com Umberto Nicoletti wrote: > On 6/4/07, Gaia Trecarichi wrote: >> >> >> Hello, >> >> I'm new in mapserver stuff and I'm trying to use Java Mapscript >> without any >> success. >> >> My environment is: >> Windows XP >> MS4W version 4.10.1. >> JDK 1.6.0_01 >> Eclipse >> >> >> I wanted to test some Java Mapscript functionality with a simple Java >> program whose code is the following: >> >> ----------------------------------------------------------------------- >> >> ? >> >> import edu.umn.gis.mapscript.*; >> >> public class ProvaMapscript { >> >> public static void main(String[] args) { >> >> ?. >> >> String mappath= new String("C:\\ms4w\\apps\\e-rescue\\" ); >> >> mapObj map = new mapObj(mappath.concat(" emergency2.map")); >> >> imageObj image = map.draw(); >> >> String image_url = >> "C:\\ms4w\\tmp\\ms_tmp\\emergency.png"; >> >> image.save(image_url, map); >> >> ? >> >> } >> >> } >> >> I get the following error: >> >> >> Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program >> Files\Java\jre1.6.0_01\bin\mapscript.dll: Can't find >> dependent libraries >> >> at java.lang.ClassLoader$NativeLibrary.load(Native >> Method ) >> >> at java.lang.ClassLoader.loadLibrary0(Unknown Source) >> >> at java.lang.ClassLoader.loadLibrary(Unknown Source) >> >> at java.lang.Runtime.loadLibrary0(Unknown Source) >> >> at java.lang.System.loadLibrary(Unknown Source) >> >> at >> edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23 >> ) >> >> at edu.umn.gis.mapscript.mapObj.( mapObj.java:276) >> >> at ProvaMapscript.main( ProvaMapscript.java:51) >> >> I don't know exactly which libraries mapscript.dll requires but as >> far as I >> could see from some forum the following list of dll's is needed: >> >> bgd.dll >> >> gdal14.dll >> >> geotiff.dll >> >> iconv.dll >> >> kernel32.dll >> >> libcurl.dll >> >> libecwj2.dll >> >> libmap.dll >> >> libmysql.dll >> >> libpq.dll >> >> libproj.dll >> >> libtiff.dll >> >> mapscript.dll >> >> msvcr71.dll >> >> msvcrt.dll >> >> ntdll.dll >> >> pdflib.dll >> >> proj.dll >> >> xerces-c_2_7.dll >> >> zlib1.dll >> >> dwmapi.dll >> >> >> >> I have them in the directory "C:\ms4w\Apache\cgi-bin" and this >> directory is >> in the system environment variable PATH. >> >> >> >> I don't know exactly which is the problem. I'm thinking to 2 things: >> >> 1- As far as I can understand there is a library, namely sde91.dll, >> that is >> needed by libmap.dll. I can't find this library in my system. Is there >> anybody who knows where I can download this library? (but I think I >> don't >> need it since I'm not using ESRI's ArcSDE) >> > > Gaia, > what makes you think it's because of sde91.dll ? What tool have you > used to detect this is the missing dll in the dependency chain? Did > you use http://www.dependencywalker.com/ ? > > Also, are you sure that eclipse is picking up the correct path and is > not using its internal default settings instead? > >> 2- Is it possible that my Java Mapscript files are not compatible >> with my >> JDK version 1.6.0? I say it because I read in the README_INSTALL.txt >> of MS4W >> the following: >> > > Java bytecode is always backwards compatible, so that is not a problem > or at least it's a very unlikely one. > > BTW, the java geeks who live here would very much appreciate if you > turned off html formatting and reverted to posting in good ol' plain > text. Thanks ;-) > > Hope this helps, > Umberto > >> MapScript >> >> ? >> >> Java MapScript: compiled against Java 1.5.07 >> >> ? >> >> If anybody could help me in this problem I would be infinitely >> grateful!! >> >> Thank you in advance, >> >> Gaia From jbartol at MMM.COM Mon Jun 4 14:06:22 2007 From: jbartol at MMM.COM (Jim Bartol) Date: Mon, 4 Jun 2007 16:06:22 -0500 Subject: C# Mapscript Project Deployment using ClickOnce Message-ID: I have developed a .NET Windows Forms based application that incorporates Mapserver, and have successfully distributed it to users by using xcopy deployment. I would now like to distribute this application using ClickOnce technology. I have been able to successfully publish the application using the default settings, however it failed when I tried to deploy to a client machine with the following error message: ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of C:\ClickOnce Deployments\Rms.application resulted in exception. Following failure messages were detected: + Manifest XML signature is not valid. + No signature was present in the subject. I believe this error could occur if the mapscript_csharp.dll assembly was not signed when it was created. I have been using the binaries found in the sample code posted by David Lowther found at http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile. Has the mapscript_csharp.dll in this project been signed? If not, would it be possible to post a version of this project where the assembly has been signed. Has anyone else tried to develop a ClickOnce project with Mapscript? Thanks for any feedback on this issue, jb From szekerest at GMAIL.COM Mon Jun 4 14:28:13 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 4 Jun 2007 23:28:13 +0200 Subject: C# Mapscript Project Deployment using ClickOnce In-Reply-To: Message-ID: Jim, I think we haven't too much experience with ClickOnce but we can surely support signing the assembly using a pre-generated key pair. If you are interested in this topic submit a ticket as an enhancement for the mapscript C# component. http://trac.osgeo.org/mapserver/newticket Best regards, Tamas 2007/6/4, Jim Bartol : > I have developed a .NET Windows Forms based application that incorporates > Mapserver, and have successfully distributed it to users by using xcopy > deployment. I would now like to distribute this application using > ClickOnce technology. I have been able to successfully publish the > application using the default settings, however it failed when I tried to > deploy to a client machine with the following error message: > > ERROR SUMMARY > Below is a summary of the errors, details of these errors are listed > later in the log. > * Activation of C:\ClickOnce Deployments\Rms.application resulted in > exception. Following failure messages were detected: > + Manifest XML signature is not valid. > + No signature was present in the subject. > > I believe this error could occur if the mapscript_csharp.dll assembly was > not signed when it was created. I have been using the binaries found in > the sample code posted by David Lowther found at > http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile. Has the > mapscript_csharp.dll in this project been signed? If not, would it be > possible to post a version of this project where the assembly has been > signed. > > Has anyone else tried to develop a ClickOnce project with Mapscript? > > Thanks for any feedback on this issue, > jb > From Steve.Lime at DNR.STATE.MN.US Mon Jun 4 14:49:50 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 4 Jun 2007 16:49:50 -0500 Subject: WFS-G In-Reply-To: <2576812186CDD411BF1500508B6DCE9511B30EE3@ecnwri1.ontario.int.ec.gc.ca> Message-ID: I want to add that there is support to do some transformation of the underlying data store before output so you can conform to something other than the default GML model. Here is a link to a tutorial we developed as part of an FGDC grant that might help: http://maps.dnr.state.mn.us/mapserver_docs/wfs_tutorial/index.html In addition, besides transforming the data you also need to produce a transformed schema, the tutorial covers both. We played with having the WFS describeFeatureType response import an external schema rather than generating it. I can dig out that configuration option if you'd like. In that case you configure MapServer to output XML that matches an external schema and reference the remote schema document (so a describeFeatureType response becomes very simple, just a bunch of imports. I can't remember if that was perfected though and have meant to get back to it. One caveat is that with WFS you need to be able to support filters against what you transform and we don't do that yet. It's possible to invert the transformations noted in the above tutorial but it hasn't been completed. Using XSLT suffers from the same problem. Steve >>> On 6/4/2007 at 1:32 PM, in message <2576812186CDD411BF1500508B6DCE9511B30EE3 at ecnwri1.ontario.int.ec.gc.ca>, "Kralidis,Tom [Burlington]" wrote: >> I would like to know if it's possible to have a WFS-G or >> another WFS-XX with a xml schema different than default GML model. > > With out-of-the-box MapServer, basically your underlying data structure > is displayed as a pre-defined XML content model. > > One option you can checkout is using mapscript as a wrapper for WxS > services (see http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript), > where you can put logic in between the request and reponse model of OGC > services in MapServer. > > In this case, you could do an XSLT transformation on the generic-ish > MapServer WFS response to make it look like WFS-G, then sending back to > the client. > > Hope this helps > > ..Tom From veeraswamyd at YAHOO.CO.IN Mon Jun 4 22:03:57 2007 From: veeraswamyd at YAHOO.CO.IN (lakku) Date: Mon, 4 Jun 2007 22:03:57 -0700 Subject: problem in zoom query Message-ID: hi all, iam working with mapscript c# i have hilited the query and also zoomed that hilited query upto this it is working my problem is when i do zoomout or zoomin or pan on zoomed hilited query ,the map is zooming or panning but hilited query color is not displaying plz tell me the code -- View this message in context: http://www.nabble.com/problem-in-zoom-query-tf3869518.html#a10963156 Sent from the Mapserver - User mailing list archive at Nabble.com. From veeraswamyd at YAHOO.CO.IN Mon Jun 4 22:06:46 2007 From: veeraswamyd at YAHOO.CO.IN (lakku) Date: Mon, 4 Jun 2007 22:06:46 -0700 Subject: layer labels Message-ID: iam working with c# mapscript i want to display layer labels on the map i have written like this layer = map.getLayerByName("VILLAGES"); classobj clas = layer.getClass(0); labelObj clabel = clas.label; now how to assign this labelobj to map plz tell me the code -- View this message in context: http://www.nabble.com/layer-labels-tf3869528.html#a10963183 Sent from the Mapserver - User mailing list archive at Nabble.com. From cavallini at FAUNALIA.IT Mon Jun 4 23:08:41 2007 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Tue, 5 Jun 2007 08:08:41 +0200 Subject: unable to access file with UPPERCASE extension Message-ID: Hi all. Our MapServer fails to open some shapefiles with .SHP: $ shp2img -m /home/Documenti/www.faunalia.it/lib_dati/pmapper/map/capannori.map -o /home/walter/prova.png msDrawMap(): Image handling error. Failed to draw layer named '261070CU'.
msSHPOpenFile(): Unable to access file. (/home/Documenti/www.faunalia.it/lib_dati/pmapper/map/AC/261070AC.SHP)
msSHPOpenFile(): Unable to access file. (/home/Documenti/Gis/Cartografia/Capannori/Shape/Capannori_10K/Tematismi/AC/261070AC.SHP)
the same files, when renamed to *.shp, are opened correctly. php5-mapscript from Debian eth Version: 4.10.0-5+etch1 Anyone has found the same problem? pc -- Paolo Cavallini http://www.faunalia.it/pc -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature URL: From umberto.nicoletti at GMAIL.COM Tue Jun 5 00:04:10 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 5 Jun 2007 09:04:10 +0200 Subject: unable to access file with UPPERCASE extension In-Reply-To: <4664FDE9.503@faunalia.it> Message-ID: It's been a known issue since the old days: http://trac.osgeo.org/mapserver/ticket/166 Umberto On 6/5/07, Paolo Cavallini wrote: > Hi all. > Our MapServer fails to open some shapefiles with .SHP: > > $ shp2img -m > /home/Documenti/www.faunalia.it/lib_dati/pmapper/map/capannori.map -o > /home/walter/prova.png > msDrawMap(): Image handling error. Failed to draw layer named > '261070CU'.
> msSHPOpenFile(): Unable to access file. > (/home/Documenti/www.faunalia.it/lib_dati/pmapper/map/AC/261070AC.SHP)
> msSHPOpenFile(): Unable to access file. > (/home/Documenti/Gis/Cartografia/Capannori/Shape/Capannori_10K/Tematismi/AC/261070AC.SHP) >
> > the same files, when renamed to *.shp, are opened correctly. > php5-mapscript from Debian eth > Version: 4.10.0-5+etch1 > Anyone has found the same problem? > > pc > -- > Paolo Cavallini > http://www.faunalia.it/pc > > > From damien.corpataux at CAMPTOCAMP.COM Tue Jun 5 07:33:31 2007 From: damien.corpataux at CAMPTOCAMP.COM (Damien Corpataux) Date: Tue, 5 Jun 2007 16:33:31 +0200 Subject: Mapserver + oracle spatial Message-ID: Hello list, I have a problem with a mapserver oracle spatial laye: when dynamically adding a oraclespatial layer with this kind of query: GEOM FROM ( SELECT GEO.GEOM, A.*, ID as UNIQUEID FROM MAILLES_CIEM GEO , ( SELECT C0.code_geom, C0.label_metric LT, C0.valeur VT FROM SIH_CARTE_SIG C0 WHERE 1 = 1 and session_id = 'b5b89cbf8a613059c7c41b9796c66c44' and NUM_COUCHE = '466533b224b29' and C0.rang = 0 ) A WHERE 1 = 1 and A.code_geom = GEO.CODECIEM and trim(GEO.CODECIEM) is not null ORDER BY GEO.CODECIEM) USING UNIQUE UNIQUEID NONE any mapserver operation leads to mapserver crash. Has anyone faced this situation? Here is the output of gdb, when performing a $layer->whichShapes(). _gdb output_ #0 0xb7b7b2ac in free () from /lib/tls/libc.so.6 #1 0xb7b7ccff in malloc () from /lib/tls/libc.so.6 #2 0xb70101d1 in msOracleSpatialLayerWhichShapes () from /usr/lib/php5/20060613+lfs/php_mapscript.so #3 0xb70040e5 in msLayerWhichShapes () from /usr/lib/php5/20060613+lfs/php_mapscript.so #4 0xb6fc87cf in layerObj_whichShapes () from /usr/lib/php5/20060613+lfs/php_mapscript.so #5 0xb6fbb453 in php3_ms_lyr_whichShapes () from /usr/lib/php5/20060613+lfs/php_mapscript.so #6 0xb752972f in execute () from /usr/lib/apache2/modules/libphp5.so #7 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so #8 0xb7529111 in execute () from /usr/lib/apache2/modules/libphp5.so #9 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so #10 0xb7529111 in execute () from /usr/lib/apache2/modules/libphp5.so #11 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so #12 0xb7529111 in execute () from /usr/lib/apache2/modules/libphp5.so #13 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so #14 0xb7529111 in execute () from /usr/lib/apache2/modules/libphp5.so #15 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so apache.err (mapserver v4.8): *** glibc detected *** corrupted double-linked list: 0x08f74d30 *** [Fri Jun 01 16:34:24 2007] [notice] child pid 11105 exit signal Aborted (6) apache.err (mapserver v4.10): *** glibc detected *** malloc(): memory corruption: 0x08ebe720 *** [Fri Jun 01 12:20:01 2007] [notice] child pid 1977 exit signal Aborted (6) Best regards, Damien Corpataux -- Camptocamp SA Damien Corpataux PSE A CH-1015 Lausanne +41 21 619 10 22 (Direct) +41 21 619 10 10 (Centrale) +41 21 619 10 00 (Fax) P Please consider the environment Do you really need to print this email? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Tue Jun 5 08:33:04 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 5 Jun 2007 09:33:04 -0600 Subject: unable to access file with UPPERCASE extension In-Reply-To: <4664FDE9.503@faunalia.it> Message-ID: Paolo Cavallini wrote: > Hi all. > Our MapServer fails to open some shapefiles with .SHP: > the same files, when renamed to *.shp, are opened correctly. That's entirely normal and expected behavior. Windows people moving into the Unix world tend to get bitten by this a lot -- Windows is not case-sensitive, while Unix is. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From dovidio at PLANETEK.IT Tue Jun 5 09:05:01 2007 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Tue, 5 Jun 2007 18:05:01 +0200 Subject: MapServer GetFeatureinfo: Geoserver Cascading problems Message-ID: I have a problem in querying my layer from MapServer during a GetFeatureinfo request in a cascading configuration with GeoServer, both WMS and WFS (on the same Layer). This is my Map file __________________________________ MAP NAME "WMS-test" STATUS ON SIZE 550 250 SYMBOLSET "C:/Inetpub/wwwroot/symbols/sangroaventino.sym" EXTENT -130 24 -66 50 UNITS METERS IMAGECOLOR 255 255 255 IMAGETYPE PNG FONTSET "C:/Inetpub/wwwroot/symbols/fonts.txt" WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost/wwwroot/cgi-bin/mapserv.exe?" "wms_srs" "EPSG:4326" END END PROJECTION "init=epsg:42304" END LAYER # MapServer connects to GeoServer via WMS NAME "Sensore" TYPE POINT STATUS ON CONNECTIONTYPE WMS CONNECTION "http://myserver/geoserver/wms?service=wms& version=1.1.1&bbox=-130,24,66,50&styles=population& Format=image/png&request=GetMap&layers=topp:states& width=550&height=250&srs=EPSG:4326" METADATA "wms_title" "Sensore" END PROJECTION "init=epsg:4326" END TOLERANCE 1000 CLASS COLOR 0 0 0 SYMBOL 'circle' SIZE 15 END END END # Map File __________________________________________________________________ This is the GetFeatureInfo to MapServer http://localhost/wwwroot/cgi-bin/mapserv.exe? map=C:\Inetpub\wwwroot\Prova.map&SERVICE=WMS& bbox=-130,24,-66,50&request=GetFeatureInfo& layers=sensore&query_layers=sensore&width=550&height=250& x=170&y=160&version=1.1.1 This is the error: _____________________________________ ______________________________________ This is the same Map File with a WFS connection to the same layer described above: __________________________________________________________ MAP NAME "WMS-test" STATUS ON SIZE 550 250 SYMBOLSET "C:/Inetpub/wwwroot/symbols/sangroaventino.sym" EXTENT -130 24 -66 50 UNITS METERS IMAGECOLOR 255 255 255 IMAGETYPE PNG FONTSET "C:/Inetpub/wwwroot/symbols/fonts.txt" WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost/wwwroot/cgi-bin/mapserv.exe?" "wms_srs" "EPSG:4326" END END PROJECTION "init=epsg:42304" END LAYER # MapServer connects to GeoServer via WFS NAME "Sensore" TYPE POINT STATUS ON CONNECTIONTYPE WFS CONNECTION "http://myserver/geoserver/wfs? request=GetFeature&typeName=states" METADATA "wms_title" "Sensore" END PROJECTION "init=epsg:4326" END TOLERANCE 1000 CLASS COLOR 0 0 0 SYMBOL 'circle' SIZE 15 END END END # Map File ________________________________________________________ This is the GetFeatureInfo (to MapServer) _____________________________________ http://localhost/wwwroot/cgi-bin/mapserv.exe? map=C:\Inetpub\wwwroot\Prova.map&SERVICE=WMS& bbox=-130,24,-66,50&request=GetFeatureInfo& layers=sensore&query_layers=sensore&width=550&height=250& x=170&y=160&version=1.1.1 ____________________________________ This is the error: _____________________________________ msOGRFileOpen(): OGR error. Open failed for OGR connection `/ms4w/tmp/ms_tmp/0354675c1cc6eff953c62e12e7c8aedc.tmp.gml'. File not found or unsupported format. msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata wfs_version). What's wrong? Thanks -- Fabio D'Ovidio Web GIS Staff Planetek Italia s.r.l. Via Massaua 12, I-70123 Bari Tel.: +39 080 5343750 Fax: +39 080 5340280 dovidio at planetek.it - http://www.planetek.it -- -------------- next part -------------- A non-text attachment was scrubbed... Name: WPM$1966.PM$ Type: application/octet-stream Size: 28328 bytes Desc: Mail message body URL: From Jukka.Rahkonen at MMMTIKE.FI Tue Jun 5 09:51:44 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 5 Jun 2007 19:51:44 +0300 Subject: MapServer GetFeatureinfo: Geoserver Cascading problems Message-ID: Hi, When it comes to the WFS case, one obvious problem is that both MapServer and GeoServer support only version 1.0.0. -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Fabio D'Ovidio Sent: Tue 5.6.2007 19:05 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer GetFeatureinfo: Geoserver Cascading problems I have a problem in querying my layer from MapServer during a GetFeatureinfo request in a cascading configuration with GeoServer, both WMS and WFS (on the same Layer). This is my Map file __________________________________ MAP NAME "WMS-test" STATUS ON SIZE 550 250 SYMBOLSET "C:/Inetpub/wwwroot/symbols/sangroaventino.sym" EXTENT -130 24 -66 50 UNITS METERS IMAGECOLOR 255 255 255 IMAGETYPE PNG FONTSET "C:/Inetpub/wwwroot/symbols/fonts.txt" WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost/wwwroot/cgi-bin/mapserv.exe?" "wms_srs" "EPSG:4326" END END PROJECTION "init=epsg:42304" END LAYER # MapServer connects to GeoServer via WMS NAME "Sensore" TYPE POINT STATUS ON CONNECTIONTYPE WMS CONNECTION "http://myserver/geoserver/wms?service=wms& version=1.1.1&bbox=-130,24,66,50&styles=population& Format=image/png&request=GetMap&layers=topp:states& width=550&height=250&srs=EPSG:4326" METADATA "wms_title" "Sensore" END PROJECTION "init=epsg:4326" END TOLERANCE 1000 CLASS COLOR 0 0 0 SYMBOL 'circle' SIZE 15 END END END # Map File __________________________________________________________________ This is the GetFeatureInfo to MapServer http://localhost/wwwroot/cgi-bin/mapserv.exe? map=C:\Inetpub\wwwroot\Prova.map&SERVICE=WMS& bbox=-130,24,-66,50&request=GetFeatureInfo& layers=sensore&query_layers=sensore&width=550&height=250& x=170&y=160&version=1.1.1 This is the error: _____________________________________ ______________________________________ This is the same Map File with a WFS connection to the same layer described above: __________________________________________________________ MAP NAME "WMS-test" STATUS ON SIZE 550 250 SYMBOLSET "C:/Inetpub/wwwroot/symbols/sangroaventino.sym" EXTENT -130 24 -66 50 UNITS METERS IMAGECOLOR 255 255 255 IMAGETYPE PNG FONTSET "C:/Inetpub/wwwroot/symbols/fonts.txt" WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost/wwwroot/cgi-bin/mapserv.exe?" "wms_srs" "EPSG:4326" END END PROJECTION "init=epsg:42304" END LAYER # MapServer connects to GeoServer via WFS NAME "Sensore" TYPE POINT STATUS ON CONNECTIONTYPE WFS CONNECTION "http://myserver/geoserver/wfs? request=GetFeature&typeName=states" METADATA "wms_title" "Sensore" END PROJECTION "init=epsg:4326" END TOLERANCE 1000 CLASS COLOR 0 0 0 SYMBOL 'circle' SIZE 15 END END END # Map File ________________________________________________________ This is the GetFeatureInfo (to MapServer) _____________________________________ http://localhost/wwwroot/cgi-bin/mapserv.exe? map=C:\Inetpub\wwwroot\Prova.map&SERVICE=WMS& bbox=-130,24,-66,50&request=GetFeatureInfo& layers=sensore&query_layers=sensore&width=550&height=250& x=170&y=160&version=1.1.1 ____________________________________ This is the error: _____________________________________ msOGRFileOpen(): OGR error. Open failed for OGR connection `/ms4w/tmp/ms_tmp/0354675c1cc6eff953c62e12e7c8aedc.tmp.gml'. File not found or unsupported format. msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports only WFS 1.0.0 or 0.0.14 (please verify the version metadata wfs_version). What's wrong? Thanks -- Fabio D'Ovidio Web GIS Staff Planetek Italia s.r.l. Via Massaua 12, I-70123 Bari Tel.: +39 080 5343750 Fax: +39 080 5340280 dovidio at planetek.it - http://www.planetek.it -- From jolcese at GMAIL.COM Tue Jun 5 11:08:44 2007 From: jolcese at GMAIL.COM (joseolcese) Date: Tue, 5 Jun 2007 11:08:44 -0700 Subject: Google maps & Mapserver projection issue In-Reply-To: <46642E78.7050301@uva.nl> Message-ID: Jan, Thanks a lot for your responses! I still have no success getting the right tile with mapscript or even mapserv. I implemented a code that Ei Fujioka sent me and this is the result: I guess I've nailed down the problem to this: **** .map with no PROJECTION and latlon coordinates: http://127.0.0.1/cgi-bin/mapserv?map=/mapear/map/mapNoProjection.map&mode=map&mapext=-64.171142578125+-31.419288124288343+-64.1656494140625+-31.41460027631321 This gives me an image with some data printed -> OK **** .map with PROJECTION and latlon coordinates: http://127.0.0.1/cgi-bin/mapserv?map=/mapear/map/mapProjection.map&mode=map&mapext=-64.171142578125+-31.419288124288343+-64.1656494140625+-31.41460027631321 This gives me an image with NO data printed -> WRONG Only difference between mapNoProjection.map and mapProjection.map is that the second one has: CONFIG PROJ_LIB '/usr/local/share/proj/' PROJECTION "init=esri:54004" END Now, using the code to convert coordinates to mercator meters, I got -64.171142578125+-31.419288124288343+-64.1656494140625+-31.41460027631321 equal to: -7143498.91542,-3665050.56612,-7142887.41919,-3664442.05663 But if I request **** .map with PROJECTION and mercator meters coordinates: http://127.0.0.1/cgi-bin/mapserv?map=/mapear/map/mapProjection.map&mode=map&mapext=-7143498.91542+-3665050.56612+-7142887.41919+-3664442.05663 This gives me an image with NO data printed -> WRONG Any ideas?? Jose Jan Hartmann wrote: > > With Mapscript it's easy: > > function ll2merc($lon,$lat) { > $projIn = ms_newprojectionobj("proj=latlong"); > $projOut = ms_newprojectionobj("proj=merc"); > $p = ms_newpointobj(); > $p->setXY($lon,$lat); > $p->project($projIn, $projOut); > return($p); > } > > If you don't use Mapscript, you have to do the computations in > Javascript. There is a project to implement the Proj package in > Javascript: > > http://lists.maptools.org/pipermail/proj/2006-February/002125.html > > but I have never worked with it > > Jan > > Jose Olcese wrote: >> Hi Jan, >> >> I really appreciate your help!. It seems that it might be the problem!. >> I'll try sending Mercator Coordinates in meters as the mapexp parameter >> of mapserv. >> >> Do you have the algorithm for converting it? >> >> Thanks again >> Jose >> >> >> >> >> On 6/4/07, *Jan Hartmann* < j.l.h.hartmann at uva.nl >> > wrote: >> >> Hi Jose >> >> Epsg 54004 is the classic Mercator projection. The units it uses are >> not >> degrees but meters (only at the equator these are real meters). Using >> proj I get the following boundary values (note that -180W/-90S and >> 180E/90N cannot be represented in a Mercator projection): >> >> proj +init=epsg:54004 >> -170 -80 >> -18924313.43 -15496570.74 >> 170 80 >> 18924313.43 15496570.74 >> >> Hope this helps, >> >> Jan >> >> Dr. J. Hartmann >> Department of Geography >> University of Amsterdam >> >> joseolcese wrote: >> > Hi >> > >> > I'm trying to use Google maps & Mapserver with partial success... >> > I have a .shp configured in mapserver and I can get a transparent >> tile from >> > an html page where it load google satellite view and my tiles. >> > The problem is that I wasn't using any projection on my .map so >> every tile >> > was a little distorted. >> > I added the epsg:54004 project to the .map but now the tiles are >> empty. >> > >> > Do you have any idea why this my be happening? >> > >> > Thanks >> > Jose Olcese >> > >> > .map: >> > IMAGETYPE PNG >> > EXTENT -64.20 -31.41 -64.19 -31.40 >> > SIZE 256 256 >> > SHAPEPATH '/ms4w/apps/tutorial/data_jose' >> > FONTSET '/ms4w/apps/tutorial/fonts/fonts.list' >> > TRANSPARENT ON >> > CONFIG PROJ_LIB '/var/www/html/share/proj/' >> > PROJECTION >> > "init=esri:54004" >> > END >> > LAYER >> > ... >> > ... >> > >> > >> > .html: >> > ... >> > ... >> > tileCountry.getTileUrl=function(xy,zoom) >> > { >> > var lng = (-180+((xy.x+0.5)*(360/Math.pow(2,zoom)))); >> // -180 >> > +180 >> > >> > var merclat_extent = 360/Math.pow(2,zoom); >> > var l = 180 - (( xy.y+0.5) * merclat_extent); >> > var e = Math.exp(2 * ( l * Math.PI) /180); >> > e = (e - 1)/(e + 1); >> > var lat = (Math.atan2(e, Math.sqrt(1 - (e * e))) *180 >> / >> > Math.PI ); >> > >> > return >> > ' >> >> http://127.0.0.1/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/map_test5.map&mode=map&mapxy= >> >> ' >> > + lng + '+' + lat + '&buffer=' + ((360/Math.pow(2,zoom))/2); >> > } >> > ... >> > >> > >> > >> >> > > -- View this message in context: http://www.nabble.com/Google-maps---Mapserver-projection-issue-tf3852632.html#a10974827 Sent from the Mapserver - User mailing list archive at Nabble.com. From rodrigo.andrade at DIGITRO.COM.BR Tue Jun 5 12:20:23 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Tue, 5 Jun 2007 16:20:23 -0300 Subject: msDrawMap(): Map parent object is null Message-ID: Hello dear list, I wish it had been a longer while before I had to bother y'all again, but I am pulling my hairs out on this one. Here it goes: using java mapscript rev 6168 from svn, whenever I try to activate a specific layer, I get this: msDrawMap(): Image handling error. Failed to draw layer named 'Layer_Tematica_RJ_145'.;: The map parent object is null. Tomcat does not crash, so I think this could be a good sign. Digging trough mapserver code I was unable to find this message and look at its context to get a better idea of whats going on, so debuging my code step by step I came up with the following facts: 1- the layer where it crashes is the 68th in the line. Previously layers where drawn, both inline and non-inline ones. 2 - this layer is a clone from a layer that exists in the mapfile. It is declared with: layerObj layer = map.getLayerByName(nameFromConstant).cloneLayer(); layer.setName("blahblahblah"); try{ valores = mapa.insertLayer(layerValores, -1); }catch(Exception e){ throw new DGTKeyException("error.maxNumLayers", e.getMessage()); } 3 - It only crashes when this layer is turned on. Map is shown with this layer off when user first logs and it can be turned on from a tree widget. If he does, boom. 4 - Just before calling map.draw(), both map.getLayerByName(name) and map.getLayer(index) return the right layer. whem map.draw() is called, boom. 5 - Suspecting of the clonage bits mixed with the changes to object parenthood Umberto implemented, I modified make threadtests to clone a bunch of layers, insert them into the map, juggle them around a bit like happens in my app and then call map.draw() in the hopes of reproducing the error. No go. The test works normally and no errors occur. :( and finally 6 - reverting to mapserver 4.10.1 "fixes" it. Any clues? Thanks! Rodrigo -- *Rodrigo Del C. Andrade* /Programador/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com From jchurchill at AL.UMCES.EDU Tue Jun 5 13:11:31 2007 From: jchurchill at AL.UMCES.EDU (John B. Churchill) Date: Tue, 5 Jun 2007 16:11:31 -0400 Subject: list of unique values in a shapefile using an attribute query Message-ID: The documentation for PHP/Mapscript shows that it is possible to query by attributes using "queryByAttributes" but I must supply the qstring to get a match. Does anyone know of a way to get a list of unique values for a given field ? What I want to do is populate a "select" control (aka combo box) on a form with the unique values from a field in a shapefile. I'm essentially building a query form for attribute data that is stored in shapefiles. It seems like this shouldn't be too difficult but I'm coming into this with a GIS background and am relatively new to php and mapserver. Any help will be appreciated. J.B. -- --------------------------------------------- John B. Churchill, M.S. http://alx.al.umces.edu/~jchurch/ GIS Specialist (301) 689-7109 University of Maryland Center for Environmental Science Appalachian Laboratory http://www.al.umces.edu/ Environmental Science Education http://alese.al.umces.edu/ 301 Braddock Road Frostburg, MD 21532 FAX - (301) 689-7200 From szekerest at GMAIL.COM Tue Jun 5 13:15:04 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 5 Jun 2007 22:15:04 +0200 Subject: msDrawMap(): Map parent object is null In-Reply-To: <4665B777.1030002@digitro.com.br> Message-ID: Rodrigo, Your analysis was pretty exhaustive :-) Formery initLayer was responsible to set up the back reference in the layer object. As of the RFC24 related changes the initLayer/msCopyLayer were replaced with a simple assignment of the reference but indeed I cannot see the assignment of the parent reference a the layer object. I think Umberto will correct this issue easily. In the meantime you can try something like this Index: mapobject.c =================================================================== --- mapobject.c (revision 6161) +++ mapobject.c (working copy) @@ -472,6 +472,7 @@ //msCopyLayer((GET_LAYER(map, nIndex)), layer); GET_LAYER(map, nIndex)=layer; GET_LAYER(map, nIndex)->index = nIndex; + layer->map = map; /* adjust layers drawing order */ for (i=map->numlayers; i>nIndex; i--) { Best regards, Tamas 2007/6/5, Rodrigo Del C. Andrade : > Hello dear list, I wish it had been a longer while before I had to > bother y'all again, but I am pulling my hairs out on this one. > > > Here it goes: using java mapscript rev 6168 from svn, whenever I try > to activate a specific layer, I get this: > > msDrawMap(): Image handling error. Failed to draw layer named > 'Layer_Tematica_RJ_145'.;: The map parent object is null. > Tomcat does not crash, so I think this could be a good sign. > > Digging trough mapserver code I was unable to find this message and > look at its context to get a better idea of whats going on, so debuging > my code step by step I came up with the following facts: > > 1- the layer where it crashes is the 68th in the line. Previously > layers where drawn, both inline and non-inline ones. > 2 - this layer is a clone from a layer that exists in the mapfile. > It is declared with: > > layerObj layer = > map.getLayerByName(nameFromConstant).cloneLayer(); > layer.setName("blahblahblah"); > try{ > valores = mapa.insertLayer(layerValores, -1); > }catch(Exception e){ > throw new DGTKeyException("error.maxNumLayers", > e.getMessage()); > } > > 3 - It only crashes when this layer is turned on. Map is shown with > this layer off when user first logs and it can be turned on from a tree > widget. If he does, boom. > 4 - Just before calling map.draw(), both map.getLayerByName(name) > and map.getLayer(index) return the right layer. whem map.draw() is > called, boom. > 5 - Suspecting of the clonage bits mixed with the changes to object > parenthood Umberto implemented, I modified make threadtests to clone a > bunch of layers, insert them into the map, juggle them around a bit like > happens in my app and then call map.draw() in the hopes of reproducing > the error. No go. The test works normally and no errors occur. :( > and finally 6 - reverting to mapserver 4.10.1 "fixes" it. > > Any clues? > > Thanks! > > Rodrigo > > > > -- > *Rodrigo Del C. Andrade* > /Programador/ > /SIC - SSE - Solu??es Seguran?a P?blica/ > > *D?GITRO TECNOLOGIA* > *E-mail:* rodrigo.andrade at digitro.com.br > > *Fone:* +55 48 3281-7314 / +55 48 3281-7000 > *Fax:* +55 48 3281-7299 > *Site:* www.digitro.com > From szekerest at GMAIL.COM Tue Jun 5 13:30:03 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 5 Jun 2007 22:30:03 +0200 Subject: layer labels In-Reply-To: <10963183.post@talk.nabble.com> Message-ID: The label object has already been assigned, so you can directly set up the properties on it, like: labelObj label = layer.getClass(0).label; label.type = MS_FONT_TYPE.MS_BITMAP; label.size = (int)MS_BITMAP_FONT_SIZES.MS_MEDIUM; label.force = mapscript.MS_TRUE; label.partials = mapscript.MS_TRUE; label.position = (int)MS_LABEL_POSITIONS.MS_CC; To provide the content for the annotation you should set up either the layerObj.labelitem, the classObj.setText() or shapeObj.text appropriately. See the mapscript documentation for more details about these items. Best regards, Tamas 2007/6/5, lakku : > iam working with c# mapscript > i want to display layer labels on the map > i have written like this > layer = map.getLayerByName("VILLAGES"); > classobj clas = layer.getClass(0); > labelObj clabel = clas.label; > now how to assign this labelobj to map > plz tell me the code > -- > View this message in context: http://www.nabble.com/layer-labels-tf3869528.html#a10963183 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From swaite at PWSSC.GEN.AK.US Tue Jun 5 18:02:04 2007 From: swaite at PWSSC.GEN.AK.US (Stephanie Waite) Date: Tue, 5 Jun 2007 20:02:04 -0500 Subject: SDK Installation Message-ID: Hello, I am trying to do a web install of Microsoft Platform SDK for Visual C++ 2005 Express Edition. When I try to install it I get the error "This installation package could not be opened. Verify that the package exists and that you can access it or contact the application vendor to verify that this is a valid Windows Installer package" I have downloaded the latest Windowns Installer version, I ran a Windows Installer clean up, and I also tried installing it with my Firewall turned off. Any help would be GREATLY appreciated. Thank you! From umberto.nicoletti at GMAIL.COM Tue Jun 5 23:45:10 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 6 Jun 2007 08:45:10 +0200 Subject: msDrawMap(): Map parent object is null In-Reply-To: Message-ID: It's fixed in svn backed by python unit tests. Umberto On 6/5/07, Tamas Szekeres wrote: > Rodrigo, > > Your analysis was pretty exhaustive :-) > > Formery initLayer was responsible to set up the back reference in the > layer object. As of the RFC24 related changes the > initLayer/msCopyLayer were replaced with a simple assignment of the > reference but indeed I cannot see the assignment of the parent > reference a the layer object. > > I think Umberto will correct this issue easily. > > In the meantime you can try something like this > > Index: mapobject.c > =================================================================== > --- mapobject.c (revision 6161) > +++ mapobject.c (working copy) > @@ -472,6 +472,7 @@ > //msCopyLayer((GET_LAYER(map, nIndex)), layer); > GET_LAYER(map, nIndex)=layer; > GET_LAYER(map, nIndex)->index = nIndex; > + layer->map = map; > > /* adjust layers drawing order */ > for (i=map->numlayers; i>nIndex; i--) { > > > Best regards, > > Tamas > > > 2007/6/5, Rodrigo Del C. Andrade : > > Hello dear list, I wish it had been a longer while before I had to > > bother y'all again, but I am pulling my hairs out on this one. > > > > > > Here it goes: using java mapscript rev 6168 from svn, whenever I try > > to activate a specific layer, I get this: > > > > msDrawMap(): Image handling error. Failed to draw layer named > > 'Layer_Tematica_RJ_145'.;: The map parent object is null. > > Tomcat does not crash, so I think this could be a good sign. > > > > Digging trough mapserver code I was unable to find this message and > > look at its context to get a better idea of whats going on, so debuging > > my code step by step I came up with the following facts: > > > > 1- the layer where it crashes is the 68th in the line. Previously > > layers where drawn, both inline and non-inline ones. > > 2 - this layer is a clone from a layer that exists in the mapfile. > > It is declared with: > > > > layerObj layer = > > map.getLayerByName(nameFromConstant).cloneLayer(); > > layer.setName("blahblahblah"); > > try{ > > valores = mapa.insertLayer(layerValores, -1); > > }catch(Exception e){ > > throw new DGTKeyException("error.maxNumLayers", > > e.getMessage()); > > } > > > > 3 - It only crashes when this layer is turned on. Map is shown with > > this layer off when user first logs and it can be turned on from a tree > > widget. If he does, boom. > > 4 - Just before calling map.draw(), both map.getLayerByName(name) > > and map.getLayer(index) return the right layer. whem map.draw() is > > called, boom. > > 5 - Suspecting of the clonage bits mixed with the changes to object > > parenthood Umberto implemented, I modified make threadtests to clone a > > bunch of layers, insert them into the map, juggle them around a bit like > > happens in my app and then call map.draw() in the hopes of reproducing > > the error. No go. The test works normally and no errors occur. :( > > and finally 6 - reverting to mapserver 4.10.1 "fixes" it. > > > > Any clues? > > > > Thanks! > > > > Rodrigo > > > > > > > > -- > > *Rodrigo Del C. Andrade* > > /Programador/ > > /SIC - SSE - Solu??es Seguran?a P?blica/ > > > > *D?GITRO TECNOLOGIA* > > *E-mail:* rodrigo.andrade at digitro.com.br > > > > *Fone:* +55 48 3281-7314 / +55 48 3281-7000 > > *Fax:* +55 48 3281-7299 > > *Site:* www.digitro.com > > > From dovidio at PLANETEK.IT Wed Jun 6 01:33:16 2007 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 6 Jun 2007 10:33:16 +0200 Subject: MapServer GetFeatureinfo: Geoserver Cascading problems In-Reply-To: Message-ID: So, which is the problem with my WFS Connection string? It is: http://myserver/geoserver/wfs?request=GetFeature&typeName=states If I write the following GetFeatureinfo: http://localhost/wwwroot/cgi- bin/mapserv.exe?map=C:\Inetpub\wwwroot\Prova.map&SERVICE=WMS&bbox=-130,24,- 66,50&request=GetFeatureInfo&layers=sensore&query_layers=sensore&width=550&height =250&x=170&y=160&version=1.1.1 I have the error: msWFSLayerWhichShapes(): WFS connection error. WFS request produced unexpected output (junk?) for layer Sensore. so I've found 2 malfunctions: - First one: I have to write typename and not typeName - Second: I have specify the version in the request from MapServer even if the string without version parameter works fine directly on GeoServer. Any solution ;-) ? Bye -- Fabio D'Ovidio Web GIS Staff Planetek Italia s.r.l. Via Massaua 12, I-70123 Bari Tel.: +39 080 5343750 Fax: +39 080 5340280 dovidio at planetek.it - http://www.planetek.it -- On 5 Jun 2007 at 19:51, Rahkonen Jukka wrote: > Hi, > > When it comes to the WFS case, one obvious problem is that both MapServer and GeoServer support only version 1.0.0. > > -Jukka Rahkonen- > > > > > -----Original Message----- > From: UMN MapServer Users List on behalf of Fabio D'Ovidio > Sent: Tue 5.6.2007 19:05 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] MapServer GetFeatureinfo: Geoserver Cascading problems > > I have a problem in querying my layer from MapServer during a GetFeatureinfo request in a > cascading configuration with GeoServer, both WMS and WFS (on the same Layer). > > This is my Map file > > __________________________________ > > MAP > NAME "WMS-test" > STATUS ON > SIZE 550 250 > SYMBOLSET "C:/Inetpub/wwwroot/symbols/sangroaventino.sym" > EXTENT -130 24 -66 50 > UNITS METERS > IMAGECOLOR 255 255 255 > IMAGETYPE PNG > FONTSET "C:/Inetpub/wwwroot/symbols/fonts.txt" > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "WMS Demo Server" > "wms_onlineresource" "http://localhost/wwwroot/cgi-bin/mapserv.exe?" > "wms_srs" "EPSG:4326" > END > END > > PROJECTION > "init=epsg:42304" > END > > LAYER # MapServer connects to GeoServer via WMS > NAME "Sensore" > TYPE POINT > STATUS ON > CONNECTIONTYPE WMS > CONNECTION "http://myserver/geoserver/wms?service=wms& > version=1.1.1&bbox=-130,24,66,50&styles=population& > Format=image/png&request=GetMap&layers=topp:states& > width=550&height=250&srs=EPSG:4326" > METADATA > "wms_title" "Sensore" > END > PROJECTION > "init=epsg:4326" > END > TOLERANCE 1000 > CLASS > COLOR 0 0 0 > SYMBOL 'circle' > SIZE 15 > END > END > END # Map File > > __________________________________________________________________ > > > This is the GetFeatureInfo to MapServer > > http://localhost/wwwroot/cgi-bin/mapserv.exe? > map=C:\Inetpub\wwwroot\Prova.map&SERVICE=WMS& > bbox=-130,24,-66,50&request=GetFeatureInfo& > layers=sensore&query_layers=sensore&width=550&height=250& > x=170&y=160&version=1.1.1 > > This is the error: > _____________________________________ > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > > > ______________________________________ > > This is the same Map File with a WFS connection to the same layer described above: > > __________________________________________________________ > > MAP > NAME "WMS-test" > STATUS ON > SIZE 550 250 > SYMBOLSET "C:/Inetpub/wwwroot/symbols/sangroaventino.sym" > EXTENT -130 24 -66 50 > UNITS METERS > IMAGECOLOR 255 255 255 > IMAGETYPE PNG > FONTSET "C:/Inetpub/wwwroot/symbols/fonts.txt" > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "WMS Demo Server" > "wms_onlineresource" "http://localhost/wwwroot/cgi-bin/mapserv.exe?" > "wms_srs" "EPSG:4326" > END > END > > PROJECTION > "init=epsg:42304" > END > > LAYER # MapServer connects to GeoServer via WFS > NAME "Sensore" > TYPE POINT > STATUS ON > CONNECTIONTYPE WFS > CONNECTION "http://myserver/geoserver/wfs? > request=GetFeature&typeName=states" > METADATA > "wms_title" "Sensore" > END > PROJECTION > "init=epsg:4326" > END > TOLERANCE 1000 > CLASS > COLOR 0 0 0 > SYMBOL 'circle' > SIZE 15 > END > END > END # Map File > ________________________________________________________ > > > This is the GetFeatureInfo (to MapServer) > > _____________________________________ > > http://localhost/wwwroot/cgi-bin/mapserv.exe? > map=C:\Inetpub\wwwroot\Prova.map&SERVICE=WMS& > bbox=-130,24,-66,50&request=GetFeatureInfo& > layers=sensore&query_layers=sensore&width=550&height=250& > x=170&y=160&version=1.1.1 > > ____________________________________ > > This is the error: > _____________________________________ > > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msOGRFileOpen(): OGR error. Open failed for OGR connection > `/ms4w/tmp/ms_tmp/0354675c1cc6eff953c62e12e7c8aedc.tmp.gml'. File not found or > unsupported format. > msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports only WFS > 1.0.0 or 0.0.14 (please verify the version metadata wfs_version). > > > > > > What's wrong? > > Thanks > > > -- > Fabio D'Ovidio > > Web GIS Staff > Planetek Italia s.r.l. > Via Massaua 12, I-70123 Bari > Tel.: +39 080 5343750 Fax: +39 080 5340280 > dovidio at planetek.it - http://www.planetek.it > -- > From Maher_Karim at DORSCH.COM.JO Wed Jun 6 02:35:44 2007 From: Maher_Karim at DORSCH.COM.JO (Maher Karim) Date: Wed, 6 Jun 2007 12:35:44 +0300 Subject: Mapserver + oracle spatial In-Reply-To: <4665743B.8030303@camptocamp.com> Message-ID: Dear Damien, The best way to use such a query is to create a view in Oracle with based on your query and it should be in this form of create or replace view (viewname) as SELECT GEO.GEOM, A.*, ID as UNIQUEID FROM MAILLES_CIEM GEO , ( SELECT C0.code_geom, C0.label_metric LT, C0.valeur VT FROM SIH_CARTE_SIG C0 WHERE 1 = 1 and session_id = 'b5b89cbf8a613059c7c41b9796c66c44' and NUM_COUCHE = '466533b224b29' and C0.rang = 0 ) A WHERE 1 = 1 and A.code_geom = GEO.CODECIEM and trim(GEO.CODECIEM) is not null ORDER BY GEO.CODECIEM) and use this data in the map file data "geom from "Viewname" using unique UNIQUEID" Regards Maher Abdel Karim GIS systems analyst/programmer DC Water and Environment |---------+---------------------------------> | | Damien Corpataux | | | | | | Sent by: UMN MapServer| | | Users List | | | | | | | | | | | | 06/05/2007 05:33 PM | | | Please respond to | | | Damien Corpataux | |---------+---------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: MAPSERVER-USERS at LISTS.UMN.EDU | | cc: | | Subject: [UMN_MAPSERVER-USERS] Mapserver + oracle spatial | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hello list, I have a problem with a mapserver oracle spatial laye: when dynamically adding a oraclespatial layer with this kind of query: GEOM FROM ( SELECT GEO.GEOM, A.*, ID as UNIQUEID FROM MAILLES_CIEM GEO , ( SELECT C0.code_geom, C0.label_metric LT, C0.valeur VT FROM SIH_CARTE_SIG C0 WHERE 1 = 1 and session_id = 'b5b89cbf8a613059c7c41b9796c66c44' and NUM_COUCHE = '466533b224b29' and C0.rang = 0 ) A WHERE 1 = 1 and A.code_geom = GEO.CODECIEM and trim(GEO.CODECIEM) is not null ORDER BY GEO.CODECIEM) USING UNIQUE UNIQUEID NONE any mapserver operation leads to mapserver crash. Has anyone faced this situation? Here is the output of gdb, when performing a $layer->whichShapes(). _gdb output_ #0 0xb7b7b2ac in free () from /lib/tls/libc.so.6 #1 0xb7b7ccff in malloc () from /lib/tls/libc.so.6 #2 0xb70101d1 in msOracleSpatialLayerWhichShapes () from /usr/lib/php5/20060613+lfs/php_mapscript.so #3 0xb70040e5 in msLayerWhichShapes () from /usr/lib/php5/20060613+lfs/php_mapscript.so #4 0xb6fc87cf in layerObj_whichShapes () from /usr/lib/php5/20060613+lfs/php_mapscript.so #5 0xb6fbb453 in php3_ms_lyr_whichShapes () from /usr/lib/php5/20060613+lfs/php_mapscript.so #6 0xb752972f in execute () from /usr/lib/apache2/modules/libphp5.so #7 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so #8 0xb7529111 in execute () from /usr/lib/apache2/modules/libphp5.so #9 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so #10 0xb7529111 in execute () from /usr/lib/apache2/modules/libphp5.so #11 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so #12 0xb7529111 in execute () from /usr/lib/apache2/modules/libphp5.so #13 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so #14 0xb7529111 in execute () from /usr/lib/apache2/modules/libphp5.so #15 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so apache.err (mapserver v4.8): *** glibc detected *** corrupted double-linked list: 0x08f74d30 *** [Fri Jun 01 16:34:24 2007] [notice] child pid 11105 exit signal Aborted (6) apache.err (mapserver v4.10): *** glibc detected *** malloc(): memory corruption: 0x08ebe720 *** [Fri Jun 01 12:20:01 2007] [notice] child pid 1977 exit signal Aborted (6) Best regards, Damien Corpataux -- Camptocamp SA Damien Corpataux PSE A CH-1015 Lausanne +41 21 619 10 22 (Direct) +41 21 619 10 10 (Centrale) +41 21 619 10 00 (Fax) P Please consider the environment Do you really need to print this email? From Jukka.Rahkonen at MMMTIKE.FI Wed Jun 6 03:38:36 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 6 Jun 2007 13:38:36 +0300 Subject: MapServer GetFeatureinfo: Geoserver Cascading problems Message-ID: Hi, I add here a Mapserver WMS layer definition for a layer that is cascaded from GeoServer WFS. I found it from some old installation and my mapfile was made for MapLab application. I do know that the query button in MapLap-application worked perfectly with this layer, but I fear that I never tested it with WMS GetFeatureInfo. At that time I used MapServer v. 4.6 and GeoServer v. 1.3. -Jukka Rahkonen- LAYER NAME "WFS-parcels" STATUS OFF TYPE POLYGON CONNECTIONTYPE WFS CONNECTION "http://localhost:8080/geoserver/wfs?" MAXSCALE 100000 PROJECTION "init=epsg:2393" END CLASS NAME "baseparcels" STYLE OUTLINECOLOR 0 255 0 END END METADATA "wfs_service" "WFS" "wfs_typename" "GIS_POLYGONS" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "300" "wfs_maxfeatures" "100000" "gml_include_items" "all" END TEMPLATE "../../../../../../..//ms101/data/query.html" dump true # DEBUG TRUE END ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Fabio D'Ovidio L?hetetty: ke 6.6.2007 11:33 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] MapServer GetFeatureinfo: Geoserver Cascading problems So, which is the problem with my WFS Connection string? It is: http://myserver/geoserver/wfs?request=GetFeature&typeName=states If I write the following GetFeatureinfo: http://localhost/wwwroot/cgi- bin/mapserv.exe?map=C:\Inetpub\wwwroot\Prova.map&SERVICE=WMS&bbox=-130,24,- 66,50&request=GetFeatureInfo&layers=sensore&query_layers=sensore&width=550&height =250&x=170&y=160&version=1.1.1 I have the error: msWFSLayerWhichShapes(): WFS connection error. WFS request produced unexpected output (junk?) for layer Sensore. so I've found 2 malfunctions: - First one: I have to write typename and not typeName - Second: I have specify the version in the request from MapServer even if the string without version parameter works fine directly on GeoServer. Any solution ;-) ? Bye -- Fabio D'Ovidio Web GIS Staff Planetek Italia s.r.l. Via Massaua 12, I-70123 Bari Tel.: +39 080 5343750 Fax: +39 080 5340280 dovidio at planetek.it - http://www.planetek.it -- On 5 Jun 2007 at 19:51, Rahkonen Jukka wrote: > Hi, > > When it comes to the WFS case, one obvious problem is that both MapServer and GeoServer support only version 1.0.0. > > -Jukka Rahkonen- > > > > > -----Original Message----- > From: UMN MapServer Users List on behalf of Fabio D'Ovidio > Sent: Tue 5.6.2007 19:05 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] MapServer GetFeatureinfo: Geoserver Cascading problems > > I have a problem in querying my layer from MapServer during a GetFeatureinfo request in a > cascading configuration with GeoServer, both WMS and WFS (on the same Layer). > > This is my Map file > > __________________________________ > > MAP > NAME "WMS-test" > STATUS ON > SIZE 550 250 > SYMBOLSET "C:/Inetpub/wwwroot/symbols/sangroaventino.sym" > EXTENT -130 24 -66 50 > UNITS METERS > IMAGECOLOR 255 255 255 > IMAGETYPE PNG > FONTSET "C:/Inetpub/wwwroot/symbols/fonts.txt" > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "WMS Demo Server" > "wms_onlineresource" "http://localhost/wwwroot/cgi-bin/mapserv.exe?" > "wms_srs" "EPSG:4326" > END > END > > PROJECTION > "init=epsg:42304" > END > > LAYER # MapServer connects to GeoServer via WMS > NAME "Sensore" > TYPE POINT > STATUS ON > CONNECTIONTYPE WMS > CONNECTION "http://myserver/geoserver/wms?service=wms& > version=1.1.1&bbox=-130,24,66,50&styles=population& > Format=image/png&request=GetMap&layers=topp:states& > width=550&height=250&srs=EPSG:4326" > METADATA > "wms_title" "Sensore" > END > PROJECTION > "init=epsg:4326" > END > TOLERANCE 1000 > CLASS > COLOR 0 0 0 > SYMBOL 'circle' > SIZE 15 > END > END > END # Map File > > __________________________________________________________________ > > > This is the GetFeatureInfo to MapServer > > http://localhost/wwwroot/cgi-bin/mapserv.exe? > map=C:\Inetpub\wwwroot\Prova.map&SERVICE=WMS& > bbox=-130,24,-66,50&request=GetFeatureInfo& > layers=sensore&query_layers=sensore&width=550&height=250& > x=170&y=160&version=1.1.1 > > This is the error: > _____________________________________ > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > > > ______________________________________ > > This is the same Map File with a WFS connection to the same layer described above: > > __________________________________________________________ > > MAP > NAME "WMS-test" > STATUS ON > SIZE 550 250 > SYMBOLSET "C:/Inetpub/wwwroot/symbols/sangroaventino.sym" > EXTENT -130 24 -66 50 > UNITS METERS > IMAGECOLOR 255 255 255 > IMAGETYPE PNG > FONTSET "C:/Inetpub/wwwroot/symbols/fonts.txt" > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "WMS Demo Server" > "wms_onlineresource" "http://localhost/wwwroot/cgi-bin/mapserv.exe?" > "wms_srs" "EPSG:4326" > END > END > > PROJECTION > "init=epsg:42304" > END > > LAYER # MapServer connects to GeoServer via WFS > NAME "Sensore" > TYPE POINT > STATUS ON > CONNECTIONTYPE WFS > CONNECTION "http://myserver/geoserver/wfs? > request=GetFeature&typeName=states" > METADATA > "wms_title" "Sensore" > END > PROJECTION > "init=epsg:4326" > END > TOLERANCE 1000 > CLASS > COLOR 0 0 0 > SYMBOL 'circle' > SIZE 15 > END > END > END # Map File > ________________________________________________________ > > > This is the GetFeatureInfo (to MapServer) > > _____________________________________ > > http://localhost/wwwroot/cgi-bin/mapserv.exe? > map=C:\Inetpub\wwwroot\Prova.map&SERVICE=WMS& > bbox=-130,24,-66,50&request=GetFeatureInfo& > layers=sensore&query_layers=sensore&width=550&height=250& > x=170&y=160&version=1.1.1 > > ____________________________________ > > This is the error: > _____________________________________ > > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msOGRFileOpen(): OGR error. Open failed for OGR connection > `/ms4w/tmp/ms_tmp/0354675c1cc6eff953c62e12e7c8aedc.tmp.gml'. File not found or > unsupported format. > msBuildWFSLayerPostRequest(): WFS connection error. MapServer supports only WFS > 1.0.0 or 0.0.14 (please verify the version metadata wfs_version). > > > > > > What's wrong? > > Thanks > > > -- > Fabio D'Ovidio > > Web GIS Staff > Planetek Italia s.r.l. > Via Massaua 12, I-70123 Bari > Tel.: +39 080 5343750 Fax: +39 080 5340280 > dovidio at planetek.it - http://www.planetek.it > -- > From rodrigo.andrade at DIGITRO.COM.BR Wed Jun 6 06:04:36 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Wed, 6 Jun 2007 10:04:36 -0300 Subject: msDrawMap(): Map parent object is null In-Reply-To: <75b4b93e0706052345j3045a343h11322b230f15d202@mail.gmail.com> Message-ID: I tested rev 7176, and it's a confirmed fix. Thanks! Regards, Rodrigo Umberto Nicoletti wrote: > It's fixed in svn backed by python unit tests. > > Umberto > > On 6/5/07, Tamas Szekeres wrote: >> Rodrigo, >> >> Your analysis was pretty exhaustive :-) >> >> Formery initLayer was responsible to set up the back reference in the >> layer object. As of the RFC24 related changes the >> initLayer/msCopyLayer were replaced with a simple assignment of the >> reference but indeed I cannot see the assignment of the parent >> reference a the layer object. >> >> I think Umberto will correct this issue easily. >> >> In the meantime you can try something like this >> >> Index: mapobject.c >> =================================================================== >> --- mapobject.c (revision 6161) >> +++ mapobject.c (working copy) >> @@ -472,6 +472,7 @@ >> //msCopyLayer((GET_LAYER(map, nIndex)), layer); >> GET_LAYER(map, nIndex)=layer; >> GET_LAYER(map, nIndex)->index = nIndex; >> + layer->map = map; >> >> /* adjust layers drawing order */ >> for (i=map->numlayers; i>nIndex; i--) { >> >> >> Best regards, >> >> Tamas >> >> >> 2007/6/5, Rodrigo Del C. Andrade : >> > Hello dear list, I wish it had been a longer while before I had to >> > bother y'all again, but I am pulling my hairs out on this one. >> > >> > >> > Here it goes: using java mapscript rev 6168 from svn, whenever >> I try >> > to activate a specific layer, I get this: >> > >> > msDrawMap(): Image handling error. Failed to draw layer named >> > 'Layer_Tematica_RJ_145'.;: The map parent object is null. >> > Tomcat does not crash, so I think this could be a good sign. >> > >> > Digging trough mapserver code I was unable to find this message >> and >> > look at its context to get a better idea of whats going on, so >> debuging >> > my code step by step I came up with the following facts: >> > >> > 1- the layer where it crashes is the 68th in the line. Previously >> > layers where drawn, both inline and non-inline ones. >> > 2 - this layer is a clone from a layer that exists in the mapfile. >> > It is declared with: >> > >> > layerObj layer = >> > map.getLayerByName(nameFromConstant).cloneLayer(); >> > layer.setName("blahblahblah"); >> > try{ >> > valores = mapa.insertLayer(layerValores, -1); >> > }catch(Exception e){ >> > throw new DGTKeyException("error.maxNumLayers", >> > e.getMessage()); >> > } >> > >> > 3 - It only crashes when this layer is turned on. Map is shown >> with >> > this layer off when user first logs and it can be turned on from a >> tree >> > widget. If he does, boom. >> > 4 - Just before calling map.draw(), both map.getLayerByName(name) >> > and map.getLayer(index) return the right layer. whem map.draw() is >> > called, boom. >> > 5 - Suspecting of the clonage bits mixed with the changes to >> object >> > parenthood Umberto implemented, I modified make threadtests to clone a >> > bunch of layers, insert them into the map, juggle them around a bit >> like >> > happens in my app and then call map.draw() in the hopes of reproducing >> > the error. No go. The test works normally and no errors occur. :( >> > and finally 6 - reverting to mapserver 4.10.1 "fixes" it. >> > >> > Any clues? >> > >> > Thanks! >> > >> > Rodrigo >> > From j.l.h.hartmann at UVA.NL Wed Jun 6 06:54:03 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Wed, 6 Jun 2007 15:54:03 +0200 Subject: Google maps & Mapserver projection issue In-Reply-To: <10974827.post@talk.nabble.com> Message-ID: Hi Jose, I think mapext must have two negative and two postive values (you specify four negative values): mapext=-7143498.91542+-3665050.56612+7142887.41919+3664442.05663 Does this work? Jan joseolcese wrote: > Jan, > > Thanks a lot for your responses! > > I still have no success getting the right tile with mapscript or even > mapserv. > I implemented a code that Ei Fujioka sent me and this is the result: > > I guess I've nailed down the problem to this: > > **** .map with no PROJECTION and latlon coordinates: > http://127.0.0.1/cgi-bin/mapserv?map=/mapear/map/mapNoProjection.map&mode=map&mapext=-64.171142578125+-31.419288124288343+-64.1656494140625+-31.41460027631321 > This gives me an image with some data printed -> OK > > **** .map with PROJECTION and latlon coordinates: > http://127.0.0.1/cgi-bin/mapserv?map=/mapear/map/mapProjection.map&mode=map&mapext=-64.171142578125+-31.419288124288343+-64.1656494140625+-31.41460027631321 > This gives me an image with NO data printed -> WRONG > > Only difference between mapNoProjection.map and mapProjection.map is that > the second one has: > CONFIG PROJ_LIB '/usr/local/share/proj/' > PROJECTION > "init=esri:54004" > END > > Now, using the code to convert coordinates to mercator meters, I got > -64.171142578125+-31.419288124288343+-64.1656494140625+-31.41460027631321 > equal to: > -7143498.91542,-3665050.56612,-7142887.41919,-3664442.05663 > > But if I request > **** .map with PROJECTION and mercator meters coordinates: > http://127.0.0.1/cgi-bin/mapserv?map=/mapear/map/mapProjection.map&mode=map&mapext=-7143498.91542+-3665050.56612+-7142887.41919+-3664442.05663 > This gives me an image with NO data printed -> WRONG > > Any ideas?? > > Jose > > > > > Jan Hartmann wrote: >> With Mapscript it's easy: >> >> function ll2merc($lon,$lat) { >> $projIn = ms_newprojectionobj("proj=latlong"); >> $projOut = ms_newprojectionobj("proj=merc"); >> $p = ms_newpointobj(); >> $p->setXY($lon,$lat); >> $p->project($projIn, $projOut); >> return($p); >> } >> >> If you don't use Mapscript, you have to do the computations in >> Javascript. There is a project to implement the Proj package in >> Javascript: >> >> http://lists.maptools.org/pipermail/proj/2006-February/002125.html >> >> but I have never worked with it >> >> Jan >> >> Jose Olcese wrote: >>> Hi Jan, >>> >>> I really appreciate your help!. It seems that it might be the problem!. >>> I'll try sending Mercator Coordinates in meters as the mapexp parameter >>> of mapserv. >>> >>> Do you have the algorithm for converting it? >>> >>> Thanks again >>> Jose >>> >>> >>> >>> >>> On 6/4/07, *Jan Hartmann* < j.l.h.hartmann at uva.nl >>> > wrote: >>> >>> Hi Jose >>> >>> Epsg 54004 is the classic Mercator projection. The units it uses are >>> not >>> degrees but meters (only at the equator these are real meters). Using >>> proj I get the following boundary values (note that -180W/-90S and >>> 180E/90N cannot be represented in a Mercator projection): >>> >>> proj +init=epsg:54004 >>> -170 -80 >>> -18924313.43 -15496570.74 >>> 170 80 >>> 18924313.43 15496570.74 >>> >>> Hope this helps, >>> >>> Jan >>> >>> Dr. J. Hartmann >>> Department of Geography >>> University of Amsterdam >>> >>> joseolcese wrote: >>> > Hi >>> > >>> > I'm trying to use Google maps & Mapserver with partial success... >>> > I have a .shp configured in mapserver and I can get a transparent >>> tile from >>> > an html page where it load google satellite view and my tiles. >>> > The problem is that I wasn't using any projection on my .map so >>> every tile >>> > was a little distorted. >>> > I added the epsg:54004 project to the .map but now the tiles are >>> empty. >>> > >>> > Do you have any idea why this my be happening? >>> > >>> > Thanks >>> > Jose Olcese >>> > >>> > .map: >>> > IMAGETYPE PNG >>> > EXTENT -64.20 -31.41 -64.19 -31.40 >>> > SIZE 256 256 >>> > SHAPEPATH '/ms4w/apps/tutorial/data_jose' >>> > FONTSET '/ms4w/apps/tutorial/fonts/fonts.list' >>> > TRANSPARENT ON >>> > CONFIG PROJ_LIB '/var/www/html/share/proj/' >>> > PROJECTION >>> > "init=esri:54004" >>> > END >>> > LAYER >>> > ... >>> > ... >>> > >>> > >>> > .html: >>> > ... >>> > ... >>> > tileCountry.getTileUrl=function(xy,zoom) >>> > { >>> > var lng = (-180+((xy.x+0.5)*(360/Math.pow(2,zoom)))); >>> // -180 >>> > +180 >>> > >>> > var merclat_extent = 360/Math.pow(2,zoom); >>> > var l = 180 - (( xy.y+0.5) * merclat_extent); >>> > var e = Math.exp(2 * ( l * Math.PI) /180); >>> > e = (e - 1)/(e + 1); >>> > var lat = (Math.atan2(e, Math.sqrt(1 - (e * e))) *180 >>> / >>> > Math.PI ); >>> > >>> > return >>> > ' >>> >>> http://127.0.0.1/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/map_test5.map&mode=map&mapxy= >>> >>> ' >>> > + lng + '+' + lat + '&buffer=' + ((360/Math.pow(2,zoom))/2); >>> > } >>> > ... >>> > >>> > >>> > >>> >>> >> > From tkalyoncuoglu at GMAIL.COM Wed Jun 6 08:02:12 2007 From: tkalyoncuoglu at GMAIL.COM (Tarkan Kalyoncuoglu) Date: Wed, 6 Jun 2007 10:02:12 -0500 Subject: OGC WFS Test Message-ID: Hi, I would like to pass MapServer through OGC WFS 1.0.0 tests.I would like to use the OGC test engine. Could u please tell me what should I do ? Thanks in advance.... From sgillies at FRII.COM Wed Jun 6 08:46:48 2007 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 6 Jun 2007 09:46:48 -0600 Subject: Boulder geo-unconference 16 June Message-ID: The Front Range Users of Geospatial Open Source is organizing a one-day event on June 16 in Boulder, Colorado. http://groups.google.com/group/geosummit/web/geosummit-2007 It's not only about open source. Everyone is welcome to shape the agenda. Doing something cool with MapServer? Come and share. I'd say that it will be well worth the trip for anyone from Wheatland, Wyoming to Raton, New Mexico. Cheers, Sean From work at XWB.COM Wed Jun 6 10:46:36 2007 From: work at XWB.COM (Chip Taylor) Date: Wed, 6 Jun 2007 10:46:36 -0700 Subject: Calculating new exents from a mouse click, VB or C# without Mapscript In-Reply-To: Message-ID: We have our mapserver running on its own server and use it to display maps in a variety of our products. Most of the time we use it in mode=map to simply generate a static image. When we need to pan, etc, we bring up a page in browser mode in a frame. But now I need to be able to add pan and zoom independent of mapserver. Mapserver will serve up a static image to be displayed on a separate computer in an application. When the user clicks on that map, I need to be able to call mapserver to serve up a new static map image based on the click point. I am using the static map image as the ImageURL of an asp image button and capturing the x and y pixel coordinates of the click. All fine and good. And I can calculate the original center point coordinates of the original map from the mapextents passed to map server. Where I get lost is that, while I know the original extents passed to mapserver (in decimal degrees), I have no idea what the extents of the map image returned to me are. So, I cannot calculate how many decimal degrees are in each pixel, etc and cannot calculate the new extents based on the XY coordinates of the mouse click. I cannot load Mapscript on the application server, nor can I load Mapserver, dbox, jbox, etc there. So, how would I go about calculating the new extents? Any and all help would be appreciated. Chip Taylor Prepared Response, Inc From andre at COVALUATE.COM Wed Jun 6 11:17:52 2007 From: andre at COVALUATE.COM (Andre Lockhart) Date: Wed, 6 Jun 2007 11:17:52 -0700 Subject: Calculating new exents from a mouse click, VB or C# without Mapscript In-Reply-To: Message-ID: Would OpenLayers work for you? http://www.openlayers.org/ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chip Taylor Sent: Wednesday, June 06, 2007 10:47 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Calculating new exents from a mouse click, VB or C# without Mapscript We have our mapserver running on its own server and use it to display maps in a variety of our products. Most of the time we use it in mode=map to simply generate a static image. When we need to pan, etc, we bring up a page in browser mode in a frame. But now I need to be able to add pan and zoom independent of mapserver. Mapserver will serve up a static image to be displayed on a separate computer in an application. When the user clicks on that map, I need to be able to call mapserver to serve up a new static map image based on the click point. I am using the static map image as the ImageURL of an asp image button and capturing the x and y pixel coordinates of the click. All fine and good. And I can calculate the original center point coordinates of the original map from the mapextents passed to map server. Where I get lost is that, while I know the original extents passed to mapserver (in decimal degrees), I have no idea what the extents of the map image returned to me are. So, I cannot calculate how many decimal degrees are in each pixel, etc and cannot calculate the new extents based on the XY coordinates of the mouse click. I cannot load Mapscript on the application server, nor can I load Mapserver, dbox, jbox, etc there. So, how would I go about calculating the new extents? Any and all help would be appreciated. Chip Taylor Prepared Response, Inc From Bob.Basques at CI.STPAUL.MN.US Wed Jun 6 12:53:41 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 6 Jun 2007 14:53:41 -0500 Subject: Arbitrary text in the legends. Message-ID: All, In order to add some arbitrary text to a Legend image output, do I need to add in a dummy layer to display this sort of thing? I would like to add some Notes for specific layers to the Legend outputs. bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at CI.STPAUL.MN.US Wed Jun 6 12:54:22 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 6 Jun 2007 14:54:22 -0500 Subject: Arbitrary text in the legends. Message-ID: All, In order to add some arbitrary text to a Legend image output, do I need to add in a dummy layer to display this sort of thing? I would like to add some Notes for specific layers to the Legend outputs. bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From jolcese at GMAIL.COM Wed Jun 6 13:23:04 2007 From: jolcese at GMAIL.COM (joseolcese) Date: Wed, 6 Jun 2007 13:23:04 -0700 Subject: Google maps & Mapserver projection issue In-Reply-To: <4666BC7B.9040803@uva.nl> Message-ID: Jan, The problem was that I needed to specify PROJECTION both at the MAP and at the LAYER level. So, I had to specify PROJECTION "init=esri:54004" at the MAP level so it's rendered with this projection and PROJECTION "init=epsg:4326" at the LAYER level (because the data is in this projection). Special thanks to Ei Fugioka who find the issue. Thanks a lot! Jose Jan Hartmann wrote: > > Hi Jose, > > I think mapext must have two negative and two postive values (you > specify four negative values): > > mapext=-7143498.91542+-3665050.56612+7142887.41919+3664442.05663 > > Does this work? > > Jan > > joseolcese wrote: >> Jan, >> >> Thanks a lot for your responses! >> >> I still have no success getting the right tile with mapscript or even >> mapserv. >> I implemented a code that Ei Fujioka sent me and this is the result: >> >> I guess I've nailed down the problem to this: >> >> **** .map with no PROJECTION and latlon coordinates: >> http://127.0.0.1/cgi-bin/mapserv?map=/mapear/map/mapNoProjection.map&mode=map&mapext=-64.171142578125+-31.419288124288343+-64.1656494140625+-31.41460027631321 >> This gives me an image with some data printed -> OK >> >> **** .map with PROJECTION and latlon coordinates: >> http://127.0.0.1/cgi-bin/mapserv?map=/mapear/map/mapProjection.map&mode=map&mapext=-64.171142578125+-31.419288124288343+-64.1656494140625+-31.41460027631321 >> This gives me an image with NO data printed -> WRONG >> >> Only difference between mapNoProjection.map and mapProjection.map is that >> the second one has: >> CONFIG PROJ_LIB '/usr/local/share/proj/' >> PROJECTION >> "init=esri:54004" >> END >> >> Now, using the code to convert coordinates to mercator meters, I got >> -64.171142578125+-31.419288124288343+-64.1656494140625+-31.41460027631321 >> equal to: >> -7143498.91542,-3665050.56612,-7142887.41919,-3664442.05663 >> >> But if I request >> **** .map with PROJECTION and mercator meters coordinates: >> http://127.0.0.1/cgi-bin/mapserv?map=/mapear/map/mapProjection.map&mode=map&mapext=-7143498.91542+-3665050.56612+-7142887.41919+-3664442.05663 >> This gives me an image with NO data printed -> WRONG >> >> Any ideas?? >> >> Jose >> >> >> >> >> Jan Hartmann wrote: >>> With Mapscript it's easy: >>> >>> function ll2merc($lon,$lat) { >>> $projIn = ms_newprojectionobj("proj=latlong"); >>> $projOut = ms_newprojectionobj("proj=merc"); >>> $p = ms_newpointobj(); >>> $p->setXY($lon,$lat); >>> $p->project($projIn, $projOut); >>> return($p); >>> } >>> >>> If you don't use Mapscript, you have to do the computations in >>> Javascript. There is a project to implement the Proj package in >>> Javascript: >>> >>> http://lists.maptools.org/pipermail/proj/2006-February/002125.html >>> >>> but I have never worked with it >>> >>> Jan >>> >>> Jose Olcese wrote: >>>> Hi Jan, >>>> >>>> I really appreciate your help!. It seems that it might be the problem!. >>>> I'll try sending Mercator Coordinates in meters as the mapexp parameter >>>> of mapserv. >>>> >>>> Do you have the algorithm for converting it? >>>> >>>> Thanks again >>>> Jose >>>> >>>> >>>> >>>> >>>> On 6/4/07, *Jan Hartmann* < j.l.h.hartmann at uva.nl >>>> > wrote: >>>> >>>> Hi Jose >>>> >>>> Epsg 54004 is the classic Mercator projection. The units it uses >>>> are >>>> not >>>> degrees but meters (only at the equator these are real meters). >>>> Using >>>> proj I get the following boundary values (note that -180W/-90S and >>>> 180E/90N cannot be represented in a Mercator projection): >>>> >>>> proj +init=epsg:54004 >>>> -170 -80 >>>> -18924313.43 -15496570.74 >>>> 170 80 >>>> 18924313.43 15496570.74 >>>> >>>> Hope this helps, >>>> >>>> Jan >>>> >>>> Dr. J. Hartmann >>>> Department of Geography >>>> University of Amsterdam >>>> >>>> joseolcese wrote: >>>> > Hi >>>> > >>>> > I'm trying to use Google maps & Mapserver with partial >>>> success... >>>> > I have a .shp configured in mapserver and I can get a >>>> transparent >>>> tile from >>>> > an html page where it load google satellite view and my tiles. >>>> > The problem is that I wasn't using any projection on my .map so >>>> every tile >>>> > was a little distorted. >>>> > I added the epsg:54004 project to the .map but now the tiles are >>>> empty. >>>> > >>>> > Do you have any idea why this my be happening? >>>> > >>>> > Thanks >>>> > Jose Olcese >>>> > >>>> > .map: >>>> > IMAGETYPE PNG >>>> > EXTENT -64.20 -31.41 -64.19 -31.40 >>>> > SIZE 256 256 >>>> > SHAPEPATH '/ms4w/apps/tutorial/data_jose' >>>> > FONTSET '/ms4w/apps/tutorial/fonts/fonts.list' >>>> > TRANSPARENT ON >>>> > CONFIG PROJ_LIB '/var/www/html/share/proj/' >>>> > PROJECTION >>>> > "init=esri:54004" >>>> > END >>>> > LAYER >>>> > ... >>>> > ... >>>> > >>>> > >>>> > .html: >>>> > ... >>>> > ... >>>> > tileCountry.getTileUrl=function(xy,zoom) >>>> > { >>>> > var lng = >>>> (-180+((xy.x+0.5)*(360/Math.pow(2,zoom)))); >>>> // -180 >>>> > +180 >>>> > >>>> > var merclat_extent = 360/Math.pow(2,zoom); >>>> > var l = 180 - (( xy.y+0.5) * merclat_extent); >>>> > var e = Math.exp(2 * ( l * Math.PI) /180); >>>> > e = (e - 1)/(e + 1); >>>> > var lat = (Math.atan2(e, Math.sqrt(1 - (e * e))) >>>> *180 >>>> / >>>> > Math.PI ); >>>> > >>>> > return >>>> > ' >>>> >>>> http://127.0.0.1/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/map_test5.map&mode=map&mapxy= >>>> >>>> ' >>>> > + lng + '+' + lat + '&buffer=' + ((360/Math.pow(2,zoom))/2); >>>> > } >>>> > ... >>>> > >>>> > >>>> > >>>> >>>> >>> >> > > -- View this message in context: http://www.nabble.com/Google-maps---Mapserver-projection-issue-tf3852632.html#a10996574 Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at GMAIL.COM Wed Jun 6 13:59:04 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 6 Jun 2007 22:59:04 +0200 Subject: problem in zoom query In-Reply-To: <10963156.post@talk.nabble.com> Message-ID: Are you sure you keep the mapObj reference between the various query and zoom operations? As far as I know the layer's result cache is retained until a subsequent query is performed or the mapObj is completely recreated or reloaded. Best regards, Tamas 2007/6/5, lakku : > hi all, > iam working with mapscript c# > i have hilited the query and also zoomed that hilited query > upto this it is working > my problem is > when i do zoomout or zoomin or pan on zoomed hilited query ,the map is > zooming or panning but hilited query color is not displaying > plz tell me the code > > -- > View this message in context: http://www.nabble.com/problem-in-zoom-query-tf3869518.html#a10963156 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From stin.wang at GMAIL.COM Wed Jun 6 19:18:58 2007 From: stin.wang at GMAIL.COM (stin wang) Date: Thu, 7 Jun 2007 10:18:58 +0800 Subject: can anyone help me to check what happen in my zoom and pan control Message-ID: I'm a newman in Mapserver. i want to use mapserver to distribute some products in my office such as shape file, modis geotiff,and so on. i study the tutorial create by Created by Pericles S. Nacionales . i think i grasp the idea in section one ,that mean i learn how to write my own mapfile. but i fail in section 2, when i try to imply mapfile into website. i don't understand how to manage template file. here is my mapfile # The annotated map file (sort of) # Created by Pericles S. Nacionales for the MapServer tutorial # 20050408 # # MapServer map file uses the pound sign (#) to denote the start of a line # comment--each line that needs to be commented has to be prepended with a "#". # # Map files begin with MAP keyword to signify the start of the map object. # Well, the entire map file is THE map object. Enclosed between MAP and END # at the very bottom of this map file, are keyword/value pairs and other # objects. MAP IMAGETYPE PNG EXTENT 116.701621 38.555172 118.057785 40.251619 SIZE 800 600 SHAPEPATH "../data" IMAGECOLOR 255 255 255 FONTSET "../fonts/fonts.list" # Layer objects are defined beneath the map object. You need at least one # layer defined in your map file before you can display a map... You can # define as many layers as you'd like although a limit is typically hard-coded # in map.h in the MapServer source. The default limit is set at 100. You'd # have to have a very specialized application to need more than 100 layers in # your application. # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME county DATA county STATUS OFF TYPE POLYGON # CLASSITEM defines the non-spatial attribute that you will be using to # separate a layer into classes. This attribute will be in the DBF file # of your shapefile (it will be different for each data format). In this # example the shapefile states_ugl has an associated database # (states_ugl.dbf) that contains an attribute called "CLASS". You will be # using two values in the CLASS attribute to separate the classes (also # called themes) used in this layer--land and water. CLASSITEM is used in # association with the EXPRESSION parameter in the CLASS object. See below. CLASSITEM "??" # Just like CLASSITEM, LABELITEM defines the database attribute that you # will be using to draw labels. In this case, the values of the attribute # "STATE" will be used to label the states polygons. LABELITEM "UNITENAME" # The class object is defined within the layer object. You can define as # many classes as you need (well, there are limits as with layers, but it's # senseless to define more than ten on a "normal" layer. There are # situations, however, where you might have to do it.) CLASS NAME 'VERYGOOD' EXPRESSION ([??] >0.382) # There are styles in a class, just like there are classes in a layer, # just like there are layers in a map. You can define multiple styles in # a class just as you can define multiple classes in a layer and multiple # layers in a map. STYLE COLOR 232 121 128 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT simhei SIZE 12 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 300 BUFFER 4 ENCODING GB2312 END # end of label # There can be labels in a class, just like there are classes in a layer, # just like there are layers in a map. You can define multiple labels in # a class just as you can define multiple classes in a layer and multiple # layers in a map. # MapServer has a very flexible labeling system. With that flexibility # comes complexity, specially when using truetype fonts. Please read # through the LABEL section of the MapServer map file documentation at # http://ms.gis.umn.edu/docs/reference/mapfile for more information. END CLASS NAME 'GOOD' EXPRESSION ([??]>0.289 and [??] < 0.382 ) STYLE COLOR 25 123 12 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT simhei SIZE 12 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 300 BUFFER 4 ENCODING GB2312 END # end of label END CLASS NAME 'MIDDLE' EXPRESSION ([??]>0.251 and [??] < 0.289 ) STYLE COLOR 255 255 21 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT simhei SIZE 12 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 300 BUFFER 4 ENCODING GB2312 END # end of label END CLASS NAME 'BAD' EXPRESSION ([??]>0.179 and [??] < 0.251 ) STYLE COLOR 21 255 243 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT simhei SIZE 12 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 300 BUFFER 4 ENCODING GB2312 END # end of label END CLASS NAME 'VERYBAD' EXPRESSION ([??]=0.178 ) STYLE COLOR 255 12 243 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT simhei SIZE 12 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 300 BUFFER 4 ENCODING GB2312 END # end of label END END LAYER # MODIS raster layer begins here NAME tianjin_modis DATA "raster/tianjin.tif" STATUS OFF TYPE RASTER PROCESSING "BANDS=1,2,1" #OFFSITE 71 74 65 #PROJECTION # "init=epsg:4326" #END END # MODIS raster layer ends here LAYER # RAIL LINE layer begins here NAME rail DATA rail STATUS OFF TYPE LINE # Here's an example of the input projection definition. # EPSG:4326 is code for geographic (latlong) projection # using the WGS84 datum. # # PROJECTION objects within the LAYER object define the input # projection--this is the native projection of your data. PROJECTION "init=epsg:4326" END # CLASSITEM defines the non-spatial attribute that you will be using to # separate a layer into classes. This attribute will be in the DBF file # of your shapefile (it will be different for each data format). In this # example the shapefile states_ugl has an associated database # (states_ugl.dbf) that contains an attribute called "CLASS". You will be # using two values in the CLASS attribute to separate the classes (also # called themes) used in this layer--land and water. CLASSITEM is used in # association with the EXPRESSION parameter in the CLASS object. See below. #CLASSITEM "CLASS" CLASS STYLE SYMBOL 0 COLOR 232 232 0 END END END # RAIL LINE layer ends here LAYER # ROAD LINE layer begins here NAME road DATA road STATUS OFF TYPE LINE # Here's an example of the input projection definition. # EPSG:4326 is code for geographic (latlong) projection # using the WGS84 datum. # # PROJECTION objects within the LAYER object define the input # projection--this is the native projection of your data. PROJECTION "init=epsg:4326" END # CLASSITEM defines the non-spatial attribute that you will be using to # separate a layer into classes. This attribute will be in the DBF file # of your shapefile (it will be different for each data format). In this # example the shapefile states_ugl has an associated database # (states_ugl.dbf) that contains an attribute called "CLASS". You will be # using two values in the CLASS attribute to separate the classes (also # called themes) used in this layer--land and water. CLASSITEM is used in # association with the EXPRESSION parameter in the CLASS object. See below. #CLASSITEM "CLASS" CLASS STYLE SYMBOL 0 COLOR 232 90 232 END END END # ROAD LINE layer ends here LAYER # RAIL LINE layer begins here NAME water DATA water STATUS OFF TYPE LINE # Here's an example of the input projection definition. # EPSG:4326 is code for geographic (latlong) projection # using the WGS84 datum. # # PROJECTION objects within the LAYER object define the input # projection--this is the native projection of your data. PROJECTION "init=epsg:4326" END # CLASSITEM defines the non-spatial attribute that you will be using to # separate a layer into classes. This attribute will be in the DBF file # of your shapefile (it will be different for each data format). In this # example the shapefile states_ugl has an associated database # (states_ugl.dbf) that contains an attribute called "CLASS". You will be # using two values in the CLASS attribute to separate the classes (also # called themes) used in this layer--land and water. CLASSITEM is used in # association with the EXPRESSION parameter in the CLASS object. See below. #CLASSITEM "CLASS" CLASS STYLE SYMBOL 0 COLOR 232 90 232 END END END # WATER LINE layer ends here LAYER # States line layer begins here NAME county_line#????????? DATA COUNTY STATUS OFF TYPE line CLASS NAME "State Boundary" STYLE COLOR 32 32 32 END END END # States line layer ends here # End of LAYER DEFINITIONS ------------------------------- END # All map files must come to an end just as all other things must come to... http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/tianjin_test.map&layer=rail&layer=road&layer=county&layer=water&layer=county_line&mode=map it looks just like what i want..now i want to use this mapfile into a template,just like turorial doing . so i add some keword, in the map object before layer object. TEMPLATEPATTERN 'tianjin_test.html' WEB TEMPLATE 'tianjin_test.html' IMAGEPATH '/ms4w/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' END # Every object in MapServer must have an END.;) # # Start of legend # LEGEND KEYSIZE 12 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END the template file is just like toturial MapServer Workshop

Example 2.1: Zoom and Pan Controls

Map Mode:
Map Control:
so when i open this webpage, it shows me a picture just like what i want http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/tianjin_template.map&layer=county&layer=rail&layer=county_line&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web_template=tianjin_test.html but problem happens when i click . it should be zoom in or zoom out but when i click i found nothing anymore, the picture just diappear. can anyone help me about it?? -- ************************************** wangtie TianJin Meteorological Bureau TEL FAX ************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdc at SDC.COM.AU Wed Jun 6 23:02:25 2007 From: sdc at SDC.COM.AU (Stephen Davies) Date: Thu, 7 Jun 2007 15:32:25 +0930 Subject: Image projection question Message-ID: G'day. I have a georeferenced TIFF aerial photo with the gdalinfo below. Using a package called Farm Keeper, a shape file was created (by clicking on the image) containing several polygons defining paddocks. The shape file was then loaded into PostGIS using shp2pgsql and the results displayed with MapServer using the original geotiff as the raster layer. The result was "almost right" except each of the polygons was displayed about 20m due north of it's correct position relative to the raster. The polygon data is stored transformed to SRID 4283. The map projection is eqc with a central meridian of the centre of the polygons' MBR and the map extent is the MBR plus approx 100m - slightly smaller than the raster image extent. Looking at the Map Server map coordinates, it appears that the polygons are correctly positioned (the mouse coordinates displayed match the originals) but the raster has been "moved" (stretched north/south). Can anybody suggest what has happened? Cheers and thanks, Stephen Davies Driver: GTiff/GeoTIFF Size is 600, 448 Coordinate System is: PROJCS["GDA94 / MGA zone 54", GEOGCS["GDA94", DATUM["Geocentric_Datum_of_Australia_1994", SPHEROID["GRS 1980",6378137,298.2572221010042, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6283"]], PRIMEM["Greenwich",0], UNIT["degree (supplier to define representation)",0.01745329251994328], AUTHORITY["EPSG","4283"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",141], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",10000000], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","28354"]] Origin = (370139.138699,6182407.307100) Pixel Size = (2.00000000,-2.00000000) Metadata: AREA_OR_POINT=Area TIFFTAG_DOCUMENTNAME=ER Mapper 7.0 TIFFTAG_IMAGEDESCRIPTION=ER Mapper GeoTiff raster translator V1.0: Band 1 = Red, Band 2 = Green, Band 3 = Blue TIFFTAG_SOFTWARE=ER Mapper 7.0 TIFFTAG_XRESOLUTION=0 TIFFTAG_YRESOLUTION=0 Corner Coordinates: Upper Left ( 370139.139, 6182407.307) (139d35'8.28"E, 34d29'30.38"S) Lower Left ( 370139.139, 6181511.307) (139d35'7.79"E, 34d29'59.46"S) Upper Right ( 371339.139, 6182407.307) (139d35'55.32"E, 34d29'30.92"S) Lower Right ( 371339.139, 6181511.307) (139d35'54.84"E, 34d30'0.00"S) Center ( 370739.139, 6181959.307) (139d35'31.56"E, 34d29'45.19"S) Band 1 Block=600x20 Type=Byte, ColorInterp=Red Band 2 Block=600x20 Type=Byte, ColorInterp=Green Band 3 Block=600x20 Type=Byte, ColorInterp=Blue -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From la_barrenadora at HOTMAIL.COM Thu Jun 7 00:27:37 2007 From: la_barrenadora at HOTMAIL.COM (Victor Herrero Cazurro) Date: Thu, 7 Jun 2007 09:27:37 +0200 Subject: A Schema XML in response of MapServer - Nomenclator In-Reply-To: <016901c7a862$a28d5060$025aa8c0@DevChip> Message-ID: Hello! I need apply a schema XML to the response of Mapserver to make a Nomenclator. I think that the response to my problem are in the label: WEB METADATA "ows_schemas_location" "http://ogc.dmsolutions.ca" But i don't know what type of file, wait in this URL. And i don't know, how made the mapping of the elements of the Layer. For example, i have: <<<<>>>>> WEB METADATA . . . "ows_schemas_location" "http://ogc.dmsolutions.ca" . . . . #Server WFS "wfs_srs" "EPSG:4326" "wfs_title" "Titulo" "wfs_abstract" "explicacion" "wfs_keywordlist" " Servidor de Objetos en Red" "wfs_geometry_element_name" "MS_GEOMETRY" "wfs_srs" "EPSG:4326" "gml_featureid" "ID" "gml_include_items" "all" # The fields of the table are "id, fid, rotulo, x, y" #Client WFS "wfs_typename" "titulo" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "60" "wfs_maxfeatures" "100" "wfs_extend" "-23.0132795 27.636523 9.1810205 43.793673" I put in the browser "http://localhost/cgi-bin/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=titulo" And i obtain: -4.730000,41.500000 -4.699900,41.720000 -4.730000,41.700000 -4.730000,41.700000 -4.730000,41.700000 1 1 aaa -4.73000000 41.70000000 -4.720000,41.699000 -4.720000,41.699000 -4.720000,41.699000 2 2 bbbbb -4.72000000 41.699000 But i'd like: -5.93 37.6 -2.47 42.34 Valladolid esp Preferente Oficial Nomencl?tor Provincia Entidades del Nomencl?tor -4.72,41.65 Valladolid Madrid esp Preferente Oficial Nomencl?tor Provincia Entidades del Nomencl?tor -4.90,41.65 Madrid how can i do? Thanks _________________________________________________________________ Hor?scopo, tarot, numerolog?a... Escucha lo que te dicen los astros. http://astrocentro.msn.es/ From cheung.jackey at GMAIL.COM Thu Jun 7 00:44:03 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Thu, 7 Jun 2007 15:44:03 +0800 Subject: Lable ANGLE FOLLOW in Chinese Message-ID: Greetings. I've trying to make a map in Chinese http://www3.mapasia.com/jackout/ms.jpg. I've set the ANGLE of all road labels to FOLLOW. It seems some of the label hasn't been broken up properly, as you can see in the image, but most labels are correct. How to fix it? Here's the part of the map file: LABEL ANGLE FOLLOW ENCODING "Big5-HKSCS" COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT mingliu SIZE 9 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 500 BUFFER 5 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From cheung.jackey at GMAIL.COM Thu Jun 7 01:02:55 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Thu, 7 Jun 2007 16:02:55 +0800 Subject: Partial labels in Chinese Message-ID: Greetings. I'm trying to build a map in Chinese, but I've met a problem about labels. http://www3.mapasia.com/jackout/pl.jpg In the image, 3 labels is partially outside the map, but I've set PARTIAL FALSE in map file. Also, (if you can read Chinese, or you just can notice), in the kerning in some labels are not correct (like the upper center one, ????). How to fix this problem? here's the part of the map file: LABEL ANGLE FOLLOW ENCODING "Big5-HKSCS" COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT mingliu SIZE 9 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 500 BUFFER 5 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at BYTEWISE.IT Thu Jun 7 01:09:39 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Thu, 7 Jun 2007 10:09:39 +0200 Subject: list of unique values in a shapefile using an attribute query In-Reply-To: <4665C373.6090902@al.umces.edu> Message-ID: John, look: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/layerobj for the function queryByAttributes in PHP/Mapscript. The function accept the 'qstring' parameter, a Mapserver expression (http://mapserver.gis.umn.edu/docs/howto/msexpressions), but not a SQL query. It can be hard to create with PHP a 'unique value' response to popolate the combo. I believe the better way to do this is to store the shapefiles in a db, like PotgreSQL/PostGIS (http://www.postgresql.org/ & http://www.postgis.org/) and query it with the clause 'GROUP BY' on the fields you want. If you are in trouble with postgres let me know bye ..........................pg Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E > The documentation for PHP/Mapscript shows that it is possible to query > by attributes using "queryByAttributes" but I must supply the qstring to > get a match. Does anyone know of a way to get a list of unique values > for a given field ? > > What I want to do is populate a "select" control (aka combo box) on a > form with the unique values from a field in a shapefile. I'm > essentially building a query form for attribute data that is stored in > shapefiles. > > It seems like this shouldn't be too difficult but I'm coming into this > with a GIS background and am relatively new to php and mapserver. Any > help will be appreciated. > > J.B. > -- > --------------------------------------------- > John B. Churchill, M.S. http://alx.al.umces.edu/~jchurch/ > GIS Specialist (301) 689-7109 > > University of Maryland Center for Environmental Science > Appalachian Laboratory http://www.al.umces.edu/ > Environmental Science Education http://alese.al.umces.edu/ > > 301 Braddock Road > Frostburg, MD 21532 > FAX - (301) 689-7200 > From mgleahy at GOLDEN.NET Thu Jun 7 08:00:09 2007 From: mgleahy at GOLDEN.NET (Mike Leahy) Date: Thu, 7 Jun 2007 11:00:09 -0400 Subject: compiling c# mapscript on F7-x86_64 Message-ID: Hello List, I just finished upgrading one of my 64-bit machines to Fedora 7. I've already noticed that binary MapServer packages are installable from the repositories. However, it seems these lack the csharp mapscript module, which is something I use frequently. So I did my usual routine to compile MapServer from source...everything looked okay, until I ran 'make test' for the c# mapscript module (see output below). I haven't been able to try this on a 32-bit machine, so can only guess that it might an issue with the 64-bit environment (though FC6-x86_64 with an older version of Mono seemed to work fine). I'm not sure what to make of this output from the make test - has anyone seen anything like this before, or can anyone make any suggestions? Thanks in advance for any help, Mike ================================================================== [mgleahy at localhost csharp]$ make test LC_ALL=C mono ./shpdump.exe ../../tests/point.shp Stacktrace: at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj (System.Runtime.InteropServices.HandleRef) <0x00012> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj (System.Runtime.InteropServices.HandleRef) <0xffffffff> at shapeObj.Dispose () <0x00067> at shapeObj.Finalize () <0x00018> at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff> Native stacktrace: mono [0x517025] mono [0x4ddf9d] /lib64/libpthread.so.0 [0x3fae00dd20] /lib64/libc.so.6(cfree+0x3b) [0x3fad073acb] ./libmapscript.so(msFreeShape+0x2c) [0x2aaaab573efc] ./libmapscript.so(CSharp_delete_shapeObj+0x9) [0x2aaaab53cf69] [0x4001f90c] Debug info from gdb: (no debugging symbols found) Using host libthread_db library "/lib64/libthread_db.so.1". (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 46912496280112 (LWP 16759)] [New Thread 1075988816 (LWP 16761)] [New Thread 1073822032 (LWP 16760)] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 3 Thread 1073822032 (LWP 16760) 0x0000003fae00d3d1 in nanosleep () from /lib64/libpthread.so.0 2 Thread 1075988816 (LWP 16761) 0x0000003fad0c9ad2 in select () from /lib64/libc.so.6 1 Thread 46912496280112 (LWP 16759) 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 Thread 3 (Thread 1073822032 (LWP 16760)): #0 0x0000003fae00d3d1 in nanosleep () from /lib64/libpthread.so.0 #1 0x00000000004c1890 in ?? () #2 0x0000003fae0061c5 in start_thread () from /lib64/libpthread.so.0 #3 0x0000003fad0d062d in clone () from /lib64/libc.so.6 Thread 2 (Thread 1075988816 (LWP 16761)): #0 0x0000003fad0c9ad2 in select () from /lib64/libc.so.6 #1 0x0000003fb1c5646e in g_spawn_sync () from /lib64/libglib-2.0.so.0 #2 0x0000003fb1c56838 in g_spawn_command_line_sync () from /lib64/libglib-2.0.so.0 #3 0x00000000005170c7 in ?? () #4 0x00000000004ddf9d in ?? () #5 #6 0x0000003fad073acb in free () from /lib64/libc.so.6 #7 0x00002aaaab573efc in msFreeShape () from ./libmapscript.so #8 0x00002aaaab53cf69 in CSharp_delete_shapeObj () from ./libmapscript.so #9 0x000000004001f90c in ?? () #10 0x00002aaaaacf8d20 in ?? () #11 0x0000000000a86770 in ?? () #12 0x0000000000000001 in ?? () #13 0x0000003fae00fa28 in g_str_equal () from /lib64/libpthread.so.0 #14 0x0000000000a29390 in ?? () #15 0x0000000040223c80 in ?? () #16 0x0000000040223ee0 in ?? () #17 0x000000004001f862 in ?? () #18 0x0000000000a37e68 in ?? () #19 0x0000000040223ee0 in ?? () #20 0x0000000040223e50 in ?? () #21 0x00002aaaaacf8d20 in ?? () #22 0x00002aaaaaad3e60 in ?? () #23 0x0000000000a86770 in ?? () #24 0x00002aaaaacf8d20 in ?? () #25 0x0000000000a86770 in ?? () #26 0x00002aaaaacf8d20 in ?? () #27 0x00000000007ccc08 in ?? () #28 0x000000004001f690 in ?? () #29 0x0000000000a5f0b0 in ?? () #30 0x0000000040223f50 in ?? () #31 0x000000004001f5d8 in ?? () #32 0x00002aaaaacf8d20 in ?? () #33 0x0000000000a86770 in ?? () #34 0x0000000000000001 in ?? () #35 0x0000000000000011 in ?? () #36 0x00002aaaaacf8d20 in ?? () #37 0x00002aaaaacf8d20 in ?? () #38 0x00002aaaaaad3e60 in ?? () #39 0x0000000000a867e0 in ?? () #40 0x0000000000000000 in ?? () Thread 1 (Thread 46912496280112 (LWP 16759)): #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000004bf110 in ?? () #2 0x00000000004c160d in ?? () #3 0x00000000004c5b95 in ?? () #4 0x000000000046ccc6 in mono_domain_finalize () #5 0x00000000004dc754 in ?? () #6 0x0000000000414678 in mono_main () #7 0x0000003fad01daa4 in __libc_start_main () from /lib64/libc.so.6 #8 0x0000000000413319 in g_str_equal () #9 0x00007fff93e6c348 in ?? () #10 0x0000000000000000 in ?? () #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= make: *** [test] Aborted From gaia.trecarichi at GMAIL.COM Thu Jun 7 08:04:27 2007 From: gaia.trecarichi at GMAIL.COM (Gaia Trecarichi) Date: Thu, 7 Jun 2007 17:04:27 +0200 Subject: Problems in testing Java Mapscript Message-ID: Hello, I have some problem in testing Java Mapscript. I answer some questions posted by Umberto and Rodrigo (thanks for the reply): - Probably there is a problem with sde91.dll because , using Dependency Walker to scan mapscript.dll, it is found that sde91.dll is missing. I cannot understand why mapscript.dll need sde91.dll since I'm not using arcSDE. In case I need it, how can I download it? - Yes, I have rebooted Windows after changing SYSTEM path variable - Yes, I'm sure the path is set correctly in the SYSTEM variable If someone knows the correct list of the dll needed, please let me know. Below is reported in plain text the original email I sent some days ago: ------------------------------------------------------------------------------------------------------------------------- Hello, I'm new in mapserver stuff and I'm trying to use Java Mapscript without any success. My environment is: * Windows XP * MS4W version 4.10.1. * JDK 1.6.0_01 * Eclipse I wanted to test some Java Mapscript functionality with a simple Java program whose code is the following: ? import edu.umn.gis.mapscript.*; public class ProvaMapscript { public static void main(String[] args) { ?. String mappath= new String("C:\\ms4w\\apps\\e-rescue\\" ); mapObj map = new mapObj(mappath.concat(" emergency2.map")); imageObj image = map.draw(); String image_url = "C:\\ms4w\\tmp\\ms_tmp\\emergency.png"; image.save(image_url, map); ? } } I get the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.6.0_01\bin\mapscript.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method ) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23 ) at edu.umn.gis.mapscript.mapObj.( mapObj.java:276) at ProvaMapscript.main( ProvaMapscript.java:51) I don't know exactly which libraries mapscript.dll requires but as far as I could see from some forum the following list of dll's is needed: bgd.dll gdal14.dll geotiff.dll iconv.dll kernel32.dll libcurl.dll libecwj2.dll libmap.dll libmysql.dll libpq.dll libproj.dll libtiff.dll mapscript.dll msvcr71.dll msvcrt.dll ntdll.dll pdflib.dll proj.dll xerces-c_2_7.dll zlib1.dll dwmapi.dll I have them in the directory "C:\ms4w\Apache\cgi-bin" and this directory is in the system environment variable PATH. I don't know exactly which is the problem. I'm thinking to 2 things: 1- As far as I can understand there is a library, namely sde91.dll, that is needed by libmap.dll. I can't find this library in my system. Is there anybody who knows where I can download this library? (but I think I don't need it since I'm not using ESRI's ArcSDE) 2- Is it possible that my Java Mapscript files are not compatible with my JDK version 1.6.0? I say it because I read in the README_INSTALL.txt of MS4W the following: MapScript ? Java MapScript: compiled against Java 1.5.07 ? If anybody could help me in this problem I would be infinitely grateful!! Thank you in advance, Gaia ------------------------------------------------------------------------------------------------------------------ From dmorissette at MAPGEARS.COM Thu Jun 7 08:16:40 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 7 Jun 2007 11:16:40 -0400 Subject: Lable ANGLE FOLLOW in Chinese In-Reply-To: <06298D99560B4177AB39B4CBD6DAFF87@jackey> Message-ID: This is a known issue with curved labels. It will hopefully be fixed in 5.0. See: http://trac.osgeo.org/mapserver/ticket/1921 Daniel Jackey Cheung wrote: > Greetings. > > I've trying to make a map in Chinese http://www3.mapasia.com/jackout/ms.jpg. > > I've set the ANGLE of all road labels to FOLLOW. It seems some of the > label hasn't been broken up properly, as you can see in the image, but > most labels are correct. How to fix it? > > Here's the part of the map file: > > LABEL > ANGLE FOLLOW > ENCODING "Big5-HKSCS" > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT mingliu > SIZE 9 > ANTIALIAS TRUE > POSITION AUTO > PARTIALS FALSE > MINDISTANCE 500 > BUFFER 5 > END -- Daniel Morissette http://www.mapgears.com/ From xavier.mauclaire at GEOTER.FR Thu Jun 7 08:26:00 2007 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Thu, 7 Jun 2007 17:26:00 +0200 Subject: Mapserver, MONO and apache a great story Message-ID: Hi every body i developped a web site using Mapscript and mono 1.1.13. This site works well if only one user uses it. When a second user is connected, the site scratches with the folowing error : At this time, this situtation is rather uncomfortable I would be very happy to get help !! Thanks in advance My configuration is the following Mono (1.1.13) gtk 2.8 Apache (2.2.?) with de mod_mono compiled for it mod_mono 1.1.14 MApscript (4.8.3). Postgres 8.1.3 and Postgis 1.1.1 Geos 2.2.1 GDAL 1.3.1 Ming 0.30 Proj4 (4.4.9) Libiconv 1.9.1 gd-2.0.33 All these programs has been compiler on the computer #!/bin/sh ./configure --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-xpm=/usr/local/lib --with-ming --with-png --with-jpeg --with-zlib --with-libiconv--without-tiff --with-threads --with-gif --with-proj --with-gd=/usr/local -without-wms The error : ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Stacktrace: in (wrapper managed-to-native) mapscriptPINVOKE:mapObj_draw (System.Runtime.InteropServices.HandleRef) <0x4> in (wrapper managed-to-native) mapscriptPINVOKE:mapObj_draw (System.Runtime.InteropServices.HandleRef) <0xffffff81> in mapObj:draw () <0x21> in siteflash.GetFlashMap:ProcessRequest (System.Web.HttpContext) <0x1095> in __1:MoveNext () <0x10a0> in System.Web.HttpApplication:Tick () <0x1f> in System.Web.HttpApplication:Start (object) <0x37> in System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest (System.Web.HttpContext,System.AsyncCallback,object) <0x68> in System.Web.HttpRuntime:RealProcessRequest (object) <0x1ab> in System.Web.HttpRuntime:ProcessRequest (System.Web.HttpWorkerRequest) <0x2c> in Mono.WebServer.MonoWorkerRequest:ProcessRequest () <0xa> in Mono.WebServer.BaseApplicationHost:ProcessRequest (Mono.WebServer.MonoWorkerRequest) <0x43> in Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xdc> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff0a> in (wrapper xdomain-dispatch) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,in t,string,string[],string[]) <0xfffedaf6> in (wrapper xdomain-invoke) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffffff6a> in (wrapper remoting-invoke-with-check) Mono.WebServer.ModMonoApplicationHost:ProcessRequest (int,string,string,string,string,string,int,string,int,string,string[],strin g[]) <0xffca8c14> in Mono.WebServer.ModMonoWorker:InnerRun (object) <0x404> in Mono.WebServer.ModMonoWorker:Run (object) <0x17> in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object (object) <0xffffff95> in (wrapper runtime-invoke) System.Object:runtime_invoke_void_object (object,intptr,intptr,intptr) <0xc7371b5f> Native stacktrace: /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) [0x814ee2b] /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] [0xffffe440] /usr/local/pgsql/lib/libpq.so.4(PQreset+0x1a) [0x41f2ea9a] /usr/local/lib/libmapscript.so(msPOSTGISLayerWhichShapes+0x724) [0x4193fd24] /usr/local/lib/libmapscript.so(msLayerWhichShapes+0x39) [0x418f6e19] /usr/local/lib/libmapscript.so(msDrawVectorLayer+0x19c) [0x418fec8c] /usr/local/lib/libmapscript.so(msDrawLayer+0x90) [0x418ff150] /usr/local/lib/libmapscript.so(msDrawMap+0x2fd) [0x418ffe1d] /usr/local/lib/libmapscript.so(CSharp_mapObj_draw+0x1d) [0x418b5e3d] [0x4185849c] [0x418583ba] [0x41851956] [0x41605749] [0x416045d0] [0x416009d8] [0x416008b9] [0x41150854] [0x41150385] [0x41150343] [0x4114f544] [0x41134535] [0x41133c9c] [0x41133a7b] [0x4112125f] [0x4112109b] [0x40dc9bdd] [0x40dc9730] [0x40dc96f4] [0x40dc964e] /usr/lib/pkgconfig/../../bin/mono [0x813b180] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) [0x80d63f7] /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke_array+0x270) [0x80d78c0] /usr/lib/pkgconfig/../../bin/mono(mono_message_invoke+0xc5) [0x80d93d5] /usr/lib/pkgconfig/../../bin/mono [0x80a509f] /usr/lib/pkgconfig/../../bin/mono [0x80a58c9] /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] /usr/lib/pkgconfig/../../bin/mono [0x80f5067] /usr/lib/pkgconfig/../../bin/mono [0x8113175] /lib/tls/libpthread.so.0 [0x400e5297] /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] best regards ----------------------------------------- Xavier Mauclaire Service informatique GEOTER SAS 3, rue Jean Monnet 34830 Clapiers France T?l.: +33 (0)4.67.59.18.11 Fax: +33 (0)4.67.59.18.24 Email: xavier.mauclaire at geoter.fr Web site: http://www.geoter.fr ------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From hrodriguez at SISCAT.COM.AR Thu Jun 7 08:29:53 2007 From: hrodriguez at SISCAT.COM.AR (Rodriguez, Heraldo) Date: Thu, 7 Jun 2007 12:29:53 -0300 Subject: Mapserver Bug with Curved Labels Message-ID: Hi everyone Any news with the problem I reported a week ago? In my previous mail I mentioned that we were experiencing some problems using the ANGLE FOLLOW new feature and the workaround listed in the bug list didn?t work for us We really need to fix this issue , and we will appreciate any help you can provide. Thanks in advance. Lic. Heraldo G. Rodriguez hrodriguez at siscat.com.ar TEL: 54-11-4326-4002 int 255 Dpto. Desarrollo Sistemas Catastrales S.A _____ De: Rodriguez, Heraldo [mailto:hrodriguez at siscat.com.ar] Enviado el: martes, 29 de mayo de 2007 12:21 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] Mapserver Bug #2020 Hi everyone, Six days ago we upgraded mapserver to version 4.10.2 and we are experiencing some problems with short labels using the ANGLE FOLLOW new feature. The odd behaviour is exactly the same reported in the ticket #2020 in the mapserver bug list. Our problem is that the work around listed there is not working for us. I created the function in postgres with the current user that is running the mapserver application, but nothing changed. CREATE OR REPLACE FUNCTION pad(cString TEXT) RETURNS TEXT AS $$ BEGIN RETURN cString || repeat(' ', 4 - char_length(cString)); END; $$ LANGUAGE plpgsql; I am doing something wrong? If anyone used this fix, I will appreciate a more detailed explanation of the work around. I am not very skilful with postgres so any additional information will be valuable. Thanks in advance. Lic. Heraldo G. Rodriguez hrodriguez at siscat.com.ar TEL: 54-11-4326-4002 int 255 Dpto. Desarrollo Sistemas Catastrales S.A -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 1283 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 1283 bytes Desc: not available URL: From szekerest at GMAIL.COM Thu Jun 7 09:10:37 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 7 Jun 2007 18:10:37 +0200 Subject: compiling c# mapscript on F7-x86_64 In-Reply-To: <46681D79.2010709@golden.net> Message-ID: Did you compile the mapserver core and mapscript with the same configuration (by using the same GEOS option for example)? Best regards, Tamas 2007/6/7, Mike Leahy : > Hello List, > > I just finished upgrading one of my 64-bit machines to Fedora 7. I've > already noticed that binary MapServer packages are installable from the > repositories. However, it seems these lack the csharp mapscript module, > which is something I use frequently. So I did my usual routine to > compile MapServer from source...everything looked okay, until I ran > 'make test' for the c# mapscript module (see output below). I haven't > been able to try this on a 32-bit machine, so can only guess that it > might an issue with the 64-bit environment (though FC6-x86_64 with an > older version of Mono seemed to work fine). I'm not sure what to make > of this output from the make test - has anyone seen anything like this > before, or can anyone make any suggestions? > > Thanks in advance for any help, > Mike > > ================================================================== > > [mgleahy at localhost csharp]$ make test > LC_ALL=C mono ./shpdump.exe ../../tests/point.shp > Stacktrace: > > at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj > (System.Runtime.InteropServices.HandleRef) <0x00012> > at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj > (System.Runtime.InteropServices.HandleRef) <0xffffffff> > at shapeObj.Dispose () <0x00067> > at shapeObj.Finalize () <0x00018> > at (wrapper runtime-invoke) System.Object.runtime_invoke_void > (object,intptr,intptr,intptr) <0xffffffff> > > Native stacktrace: > > mono [0x517025] > mono [0x4ddf9d] > /lib64/libpthread.so.0 [0x3fae00dd20] > /lib64/libc.so.6(cfree+0x3b) [0x3fad073acb] > ./libmapscript.so(msFreeShape+0x2c) [0x2aaaab573efc] > ./libmapscript.so(CSharp_delete_shapeObj+0x9) [0x2aaaab53cf69] > [0x4001f90c] > > Debug info from gdb: > > (no debugging symbols found) > Using host libthread_db library "/lib64/libthread_db.so.1". > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > [Thread debugging using libthread_db enabled] > [New Thread 46912496280112 (LWP 16759)] > [New Thread 1075988816 (LWP 16761)] > [New Thread 1073822032 (LWP 16760)] > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > (no debugging symbols found) > 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () > from /lib64/libpthread.so.0 > 3 Thread 1073822032 (LWP 16760) 0x0000003fae00d3d1 in nanosleep () > from /lib64/libpthread.so.0 > 2 Thread 1075988816 (LWP 16761) 0x0000003fad0c9ad2 in select () > from /lib64/libc.so.6 > 1 Thread 46912496280112 (LWP 16759) 0x0000003fae00a597 in > pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 > > Thread 3 (Thread 1073822032 (LWP 16760)): > #0 0x0000003fae00d3d1 in nanosleep () from /lib64/libpthread.so.0 > #1 0x00000000004c1890 in ?? () > #2 0x0000003fae0061c5 in start_thread () from /lib64/libpthread.so.0 > #3 0x0000003fad0d062d in clone () from /lib64/libc.so.6 > > Thread 2 (Thread 1075988816 (LWP 16761)): > #0 0x0000003fad0c9ad2 in select () from /lib64/libc.so.6 > #1 0x0000003fb1c5646e in g_spawn_sync () from /lib64/libglib-2.0.so.0 > #2 0x0000003fb1c56838 in g_spawn_command_line_sync () > from /lib64/libglib-2.0.so.0 > #3 0x00000000005170c7 in ?? () > #4 0x00000000004ddf9d in ?? () > #5 > #6 0x0000003fad073acb in free () from /lib64/libc.so.6 > #7 0x00002aaaab573efc in msFreeShape () from ./libmapscript.so > #8 0x00002aaaab53cf69 in CSharp_delete_shapeObj () from ./libmapscript.so > #9 0x000000004001f90c in ?? () > #10 0x00002aaaaacf8d20 in ?? () > #11 0x0000000000a86770 in ?? () > #12 0x0000000000000001 in ?? () > #13 0x0000003fae00fa28 in g_str_equal () from /lib64/libpthread.so.0 > #14 0x0000000000a29390 in ?? () > #15 0x0000000040223c80 in ?? () > #16 0x0000000040223ee0 in ?? () > #17 0x000000004001f862 in ?? () > #18 0x0000000000a37e68 in ?? () > #19 0x0000000040223ee0 in ?? () > #20 0x0000000040223e50 in ?? () > #21 0x00002aaaaacf8d20 in ?? () > #22 0x00002aaaaaad3e60 in ?? () > #23 0x0000000000a86770 in ?? () > #24 0x00002aaaaacf8d20 in ?? () > #25 0x0000000000a86770 in ?? () > #26 0x00002aaaaacf8d20 in ?? () > #27 0x00000000007ccc08 in ?? () > #28 0x000000004001f690 in ?? () > #29 0x0000000000a5f0b0 in ?? () > #30 0x0000000040223f50 in ?? () > #31 0x000000004001f5d8 in ?? () > #32 0x00002aaaaacf8d20 in ?? () > #33 0x0000000000a86770 in ?? () > #34 0x0000000000000001 in ?? () > #35 0x0000000000000011 in ?? () > #36 0x00002aaaaacf8d20 in ?? () > #37 0x00002aaaaacf8d20 in ?? () > #38 0x00002aaaaaad3e60 in ?? () > #39 0x0000000000a867e0 in ?? () > #40 0x0000000000000000 in ?? () > > Thread 1 (Thread 46912496280112 (LWP 16759)): > #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () > from /lib64/libpthread.so.0 > #1 0x00000000004bf110 in ?? () > #2 0x00000000004c160d in ?? () > #3 0x00000000004c5b95 in ?? () > #4 0x000000000046ccc6 in mono_domain_finalize () > #5 0x00000000004dc754 in ?? () > #6 0x0000000000414678 in mono_main () > #7 0x0000003fad01daa4 in __libc_start_main () from /lib64/libc.so.6 > #8 0x0000000000413319 in g_str_equal () > #9 0x00007fff93e6c348 in ?? () > #10 0x0000000000000000 in ?? () > #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () > from /lib64/libpthread.so.0 > > > ================================================================= > Got a SIGSEGV while executing native code. This usually indicates > a fatal error in the mono runtime or one of the native libraries > used by your application. > ================================================================= > > make: *** [test] Aborted > From Steve.Lime at DNR.STATE.MN.US Thu Jun 7 09:10:30 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 7 Jun 2007 11:10:30 -0500 Subject: Fwd: MAPSERVER:PROBLEM RUNNING MY FIRST APPLICATION Message-ID: >>> On 6/6/2007 at 12:17 AM, in message <4679.87.127.17.224.1181107024.squirrel at webmail.aston.ac.uk>, "Idowu Peter Adebayo" wrote: > Hi, > I am just learning mapserver and am having problem in run my first > application. The editor am using (JCreator) is display the following > > see also, -agentlib:jdwp=help and -agentlib:hprof=help > -agentpath:[=] > load native agent library by full pathname > -javaagent:[=] > load Java programming language agent, see > java.lang.instrument > > > I will be happy if you can be of help. > From John.Lhotak at NOAA.GOV Thu Jun 7 09:09:49 2007 From: John.Lhotak at NOAA.GOV (John Lhotak) Date: Thu, 7 Jun 2007 11:09:49 -0500 Subject: Query Map Layer Order Message-ID: In my php script I order my layers using setlayersdrawingorder(). This works fine and the layers are drawn in the proper order when using draw(). However, when a query is done and the program does drawQuery(), the layer order is lost. Is there way order layers for a query map? thanks, john -------------- next part -------------- A non-text attachment was scrubbed... Name: john.lhotak.vcf Type: text/x-vcard Size: 272 bytes Desc: not available URL: From mgleahy at GOLDEN.NET Thu Jun 7 10:05:12 2007 From: mgleahy at GOLDEN.NET (Mike Leahy) Date: Thu, 7 Jun 2007 12:05:12 -0500 Subject: compiling c# mapscript on F7-x86_64 Message-ID: I ran ./configure for MapServer with all desired options, ran make, then went into mapscript/csharp and ran make there. Is there something else I should have done? On Thu, 7 Jun 2007 18:10:37 +0200, Tamas Szekeres wrote: >Did you compile the mapserver core and mapscript with the same >configuration (by using the same GEOS option for example)? > >Best regards, > >Tamas > > >2007/6/7, Mike Leahy : >> Hello List, >> >> I just finished upgrading one of my 64-bit machines to Fedora 7. I've >> already noticed that binary MapServer packages are installable from the >> repositories. However, it seems these lack the csharp mapscript module, >> which is something I use frequently. So I did my usual routine to >> compile MapServer from source...everything looked okay, until I ran >> 'make test' for the c# mapscript module (see output below). I haven't >> been able to try this on a 32-bit machine, so can only guess that it >> might an issue with the 64-bit environment (though FC6-x86_64 with an >> older version of Mono seemed to work fine). I'm not sure what to make >> of this output from the make test - has anyone seen anything like this >> before, or can anyone make any suggestions? >> >> Thanks in advance for any help, >> Mike >> >> ================================================================== >> >> [mgleahy at localhost csharp]$ make test >> LC_ALL=C mono ./shpdump.exe ../../tests/point.shp >> Stacktrace: >> >> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj >> (System.Runtime.InteropServices.HandleRef) <0x00012> >> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj >> (System.Runtime.InteropServices.HandleRef) <0xffffffff> >> at shapeObj.Dispose () <0x00067> >> at shapeObj.Finalize () <0x00018> >> at (wrapper runtime-invoke) System.Object.runtime_invoke_void >> (object,intptr,intptr,intptr) <0xffffffff> >> >> Native stacktrace: >> >> mono [0x517025] >> mono [0x4ddf9d] >> /lib64/libpthread.so.0 [0x3fae00dd20] >> /lib64/libc.so.6(cfree+0x3b) [0x3fad073acb] >> ./libmapscript.so(msFreeShape+0x2c) [0x2aaaab573efc] >> ./libmapscript.so(CSharp_delete_shapeObj+0x9) [0x2aaaab53cf69] >> [0x4001f90c] >> >> Debug info from gdb: >> >> (no debugging symbols found) >> Using host libthread_db library "/lib64/libthread_db.so.1". >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> [Thread debugging using libthread_db enabled] >> [New Thread 46912496280112 (LWP 16759)] >> [New Thread 1075988816 (LWP 16761)] >> [New Thread 1073822032 (LWP 16760)] >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> (no debugging symbols found) >> 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () >> from /lib64/libpthread.so.0 >> 3 Thread 1073822032 (LWP 16760) 0x0000003fae00d3d1 in nanosleep () >> from /lib64/libpthread.so.0 >> 2 Thread 1075988816 (LWP 16761) 0x0000003fad0c9ad2 in select () >> from /lib64/libc.so.6 >> 1 Thread 46912496280112 (LWP 16759) 0x0000003fae00a597 in >> pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 >> >> Thread 3 (Thread 1073822032 (LWP 16760)): >> #0 0x0000003fae00d3d1 in nanosleep () from /lib64/libpthread.so.0 >> #1 0x00000000004c1890 in ?? () >> #2 0x0000003fae0061c5 in start_thread () from /lib64/libpthread.so.0 >> #3 0x0000003fad0d062d in clone () from /lib64/libc.so.6 >> >> Thread 2 (Thread 1075988816 (LWP 16761)): >> #0 0x0000003fad0c9ad2 in select () from /lib64/libc.so.6 >> #1 0x0000003fb1c5646e in g_spawn_sync () from /lib64/libglib-2.0.so.0 >> #2 0x0000003fb1c56838 in g_spawn_command_line_sync () >> from /lib64/libglib-2.0.so.0 >> #3 0x00000000005170c7 in ?? () >> #4 0x00000000004ddf9d in ?? () >> #5 >> #6 0x0000003fad073acb in free () from /lib64/libc.so.6 >> #7 0x00002aaaab573efc in msFreeShape () from ./libmapscript.so >> #8 0x00002aaaab53cf69 in CSharp_delete_shapeObj () from ./libmapscript.so >> #9 0x000000004001f90c in ?? () >> #10 0x00002aaaaacf8d20 in ?? () >> #11 0x0000000000a86770 in ?? () >> #12 0x0000000000000001 in ?? () >> #13 0x0000003fae00fa28 in g_str_equal () from /lib64/libpthread.so.0 >> #14 0x0000000000a29390 in ?? () >> #15 0x0000000040223c80 in ?? () >> #16 0x0000000040223ee0 in ?? () >> #17 0x000000004001f862 in ?? () >> #18 0x0000000000a37e68 in ?? () >> #19 0x0000000040223ee0 in ?? () >> #20 0x0000000040223e50 in ?? () >> #21 0x00002aaaaacf8d20 in ?? () >> #22 0x00002aaaaaad3e60 in ?? () >> #23 0x0000000000a86770 in ?? () >> #24 0x00002aaaaacf8d20 in ?? () >> #25 0x0000000000a86770 in ?? () >> #26 0x00002aaaaacf8d20 in ?? () >> #27 0x00000000007ccc08 in ?? () >> #28 0x000000004001f690 in ?? () >> #29 0x0000000000a5f0b0 in ?? () >> #30 0x0000000040223f50 in ?? () >> #31 0x000000004001f5d8 in ?? () >> #32 0x00002aaaaacf8d20 in ?? () >> #33 0x0000000000a86770 in ?? () >> #34 0x0000000000000001 in ?? () >> #35 0x0000000000000011 in ?? () >> #36 0x00002aaaaacf8d20 in ?? () >> #37 0x00002aaaaacf8d20 in ?? () >> #38 0x00002aaaaaad3e60 in ?? () >> #39 0x0000000000a867e0 in ?? () >> #40 0x0000000000000000 in ?? () >> >> Thread 1 (Thread 46912496280112 (LWP 16759)): >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () >> from /lib64/libpthread.so.0 >> #1 0x00000000004bf110 in ?? () >> #2 0x00000000004c160d in ?? () >> #3 0x00000000004c5b95 in ?? () >> #4 0x000000000046ccc6 in mono_domain_finalize () >> #5 0x00000000004dc754 in ?? () >> #6 0x0000000000414678 in mono_main () >> #7 0x0000003fad01daa4 in __libc_start_main () from /lib64/libc.so.6 >> #8 0x0000000000413319 in g_str_equal () >> #9 0x00007fff93e6c348 in ?? () >> #10 0x0000000000000000 in ?? () >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () >> from /lib64/libpthread.so.0 >> >> >> ================================================================= >> Got a SIGSEGV while executing native code. This usually indicates >> a fatal error in the mono runtime or one of the native libraries >> used by your application. >> ================================================================= >> >> make: *** [test] Aborted >> From dmorissette at MAPGEARS.COM Thu Jun 7 10:17:18 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 7 Jun 2007 13:17:18 -0400 Subject: Query Map Layer Order In-Reply-To: <46682DCC.7020603@noaa.gov> Message-ID: John Lhotak wrote: > In my php script I order my layers using setlayersdrawingorder(). This > works fine and the layers are drawn in the proper order when using > draw(). However, when a query is done and the program does drawQuery(), > the layer order is lost. Is there way order layers for a query map? > Which version of MapServer are you using? Version 4.8 and older didn't follow the layer order, but that should be fixed in 4.10 according to http://trac.osgeo.org/mapserver/changeset/5592 Note that drawQuery has always had a bunch of issues and in the dev version of MapServer 5.0 msDrawQueryMap() has been modified internally to call the same code as the regular msDrawMap(), just with a special flag to request highlighting query results, so all those issues will be behind us for good. Daniel -- Daniel Morissette http://www.mapgears.com/ From abe.gillespie at GMAIL.COM Thu Jun 7 10:42:08 2007 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Thu, 7 Jun 2007 13:42:08 -0400 Subject: MapScript Install on Mac OS X Message-ID: I haven't done an install in a while. I was wondering if PHP MapScript still necessitates PHP as a CGI (instead of an Apache module). Thanks! -Abe From jchurchill at AL.UMCES.EDU Thu Jun 7 10:49:52 2007 From: jchurchill at AL.UMCES.EDU (John B. Churchill) Date: Thu, 7 Jun 2007 13:49:52 -0400 Subject: New PHP Mapscript question layer->set("data", "my_layer") Message-ID: set("name", "Landsat"); $layer->set("data", "landsat_4"); print $layer->numitems; This gives me the following. [] I (the user) "EXPECTED" that layer->set would actually set $layer to the shapefile referenced in my Map file ... and that "numitems" would there for give me the number of fields/items/attributes in that shapefile. Is that not the case ? ++++++++++++++++++++++++++++++++++++++++++++++++++ My Map file (img_browser.map) has this layer entry ... LAYER NAME landsat_4 TYPE POLYGON DATA landsat_4 STATUS ON CLASSITEM LOCATION CLASS NAME "Landsat Data" #STYLE # COLOR 40 40 200 #END STYLE OUTLINECOLOR 40 40 200 WIDTH 1 ANTIALIAS TRUE END END TEMPLATE "templates/landsat_4.html" END -- --------------------------------------------- John B. Churchill, M.S. http://alx.al.umces.edu/~jchurch/ GIS Specialist (301) 689-7109 University of Maryland Center for Environmental Science Appalachian Laboratory http://www.al.umces.edu/ Environmental Science Education http://alese.al.umces.edu/ 301 Braddock Road Frostburg, MD 21532 FAX - (301) 689-7200 From woklist at KYNGCHAOS.COM Thu Jun 7 10:53:56 2007 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 7 Jun 2007 12:53:56 -0500 Subject: MapScript Install on Mac OS X In-Reply-To: Message-ID: The recent, and past, discussion about CGI vs DSO PHP also pertain to OSX. Basically, you can try it, but (especially on high load sites) may run into problems. If you're not ready for a little uncertainty, go for the tried-and- true PHP as CGI. On Jun 7, 2007, at 12:42 PM, Abe Gillespie wrote: > I haven't done an install in a while. I was wondering if PHP > MapScript still necessitates PHP as a CGI (instead of an Apache > module). > > Thanks! > -Abe ----- William Kyngesburye http://www.kyngchaos.com/ "We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty." "Don't you even hate 'em?" "What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day." "And it might give 'em all stomach ulcers." - Tarzan, on war From szekerest at GMAIL.COM Thu Jun 7 11:03:22 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 7 Jun 2007 20:03:22 +0200 Subject: Mapserver, MONO and apache a great story In-Reply-To: Message-ID: Could you post some code from your application to see how the mapscript objects are created and used? Are you planning to upgrade to the most recent version? Best regards, Tamas 2007/6/7, Xavier Mauclaire : > > > Hi every body > > > i developped a web site using Mapscript and mono 1.1.13. > This site works well if only one user uses it. When a second user is > connected, the site scratches with the folowing error : > > At this time, this situtation is rather uncomfortable > > I would be very happy to get help !! > > Thanks in advance > > > > > My configuration is the following > > Mono (1.1.13) > gtk 2.8 > Apache (2.2.?) with de mod_mono compiled for it mod_mono 1.1.14 > MApscript (4.8.3). > Postgres 8.1.3 and Postgis 1.1.1 > Geos 2.2.1 > GDAL 1.3.1 > Ming 0.30 > Proj4 (4.4.9) > Libiconv 1.9.1 > gd-2.0.33 > > All these programs has been compiler on the computer > > #!/bin/sh > ./configure --with-gdal=/usr/local/bin/gdal-config > --with-ogr=/usr/local/bin/gdal-config > --with-postgis=/usr/local/pgsql/bin/pg_config > --with-xpm=/usr/local/lib --with-ming --with-png --with-jpeg --with-zlib > --with-libiconv--without-tiff --with-threads --with-gif --with-proj > --with-gd=/usr/local -without-wms > > > > The error : > > > ================================================================= > Got a SIGSEGV while executing native code. This usually indicates > a fatal error in the mono runtime or one of the native libraries > used by your application. > ================================================================= > > Stacktrace: > > in (wrapper managed-to-native) mapscriptPINVOKE:mapObj_draw > (System.Runtime.InteropServices.HandleRef) <0x4> > in (wrapper managed-to-native) mapscriptPINVOKE:mapObj_draw > (System.Runtime.InteropServices.HandleRef) <0xffffff81> > in mapObj:draw () <0x21> > in siteflash.GetFlashMap:ProcessRequest > (System.Web.HttpContext) <0x1095> > in __1:MoveNext () <0x10a0> > in System.Web.HttpApplication:Tick () <0x1f> > in System.Web.HttpApplication:Start (object) <0x37> > in > System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest > (System.Web.HttpContext,System.AsyncCallback,object) <0x68> > in System.Web.HttpRuntime:RealProcessRequest (object) > <0x1ab> > in System.Web.HttpRuntime:ProcessRequest > (System.Web.HttpWorkerRequest) <0x2c> > in Mono.WebServer.MonoWorkerRequest:ProcessRequest () <0xa> > in Mono.WebServer.BaseApplicationHost:ProcessRequest > (Mono.WebServer.MonoWorkerRequest) <0x43> > in Mono.WebServer.ModMonoApplicationHost:ProcessRequest > (int,string,string,string,string,string,int,string,int,string,string[],string[]) > <0xdc> > in (wrapper remoting-invoke-with-check) > Mono.WebServer.ModMonoApplicationHost:ProcessRequest > (int,string,string,string,string,string,int,string,int,string,string[],string[]) > <0xffffff0a> > in (wrapper xdomain-dispatch) > Mono.WebServer.ModMonoApplicationHost:ProcessRequest > (object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,int,string,string[],string[]) > <0xfffedaf6> > in (wrapper xdomain-invoke) > Mono.WebServer.ModMonoApplicationHost:ProcessRequest > (int,string,string,string,string,string,int,string,int,string,string[],string[]) > <0xffffff6a> > in (wrapper remoting-invoke-with-check) > Mono.WebServer.ModMonoApplicationHost:ProcessRequest > (int,string,string,string,string,string,int,string,int,string,string[],string[]) > <0xffca8c14> > in Mono.WebServer.ModMonoWorker:InnerRun (object) <0x404> > in Mono.WebServer.ModMonoWorker:Run (object) <0x17> > in (wrapper delegate-invoke) > System.MulticastDelegate:invoke_void_object (object) > <0xffffff95> > in (wrapper runtime-invoke) > System.Object:runtime_invoke_void_object > (object,intptr,intptr,intptr) <0xc7371b5f> > > Native stacktrace: > > /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb) > [0x814ee2b] > /usr/lib/pkgconfig/../../bin/mono [0x813b2cf] > [0xffffe440] > /usr/local/pgsql/lib/libpq.so.4(PQreset+0x1a) [0x41f2ea9a] > /usr/local/lib/libmapscript.so(msPOSTGISLayerWhichShapes+0x724) > [0x4193fd24] > /usr/local/lib/libmapscript.so(msLayerWhichShapes+0x39) > [0x418f6e19] > /usr/local/lib/libmapscript.so(msDrawVectorLayer+0x19c) > [0x418fec8c] > /usr/local/lib/libmapscript.so(msDrawLayer+0x90) > [0x418ff150] > /usr/local/lib/libmapscript.so(msDrawMap+0x2fd) > [0x418ffe1d] > /usr/local/lib/libmapscript.so(CSharp_mapObj_draw+0x1d) > [0x418b5e3d] > [0x4185849c] > [0x418583ba] > [0x41851956] > [0x41605749] > [0x416045d0] > [0x416009d8] > [0x416008b9] > [0x41150854] > [0x41150385] > [0x41150343] > [0x4114f544] > [0x41134535] > [0x41133c9c] > [0x41133a7b] > [0x4112125f] > [0x4112109b] > [0x40dc9bdd] > [0x40dc9730] > [0x40dc96f4] > [0x40dc964e] > /usr/lib/pkgconfig/../../bin/mono [0x813b180] > /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27) > [0x80d63f7] > /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke_array+0x270) > [0x80d78c0] > /usr/lib/pkgconfig/../../bin/mono(mono_message_invoke+0xc5) > [0x80d93d5] > /usr/lib/pkgconfig/../../bin/mono [0x80a509f] > /usr/lib/pkgconfig/../../bin/mono [0x80a58c9] > /usr/lib/pkgconfig/../../bin/mono [0x8099fb2] > /usr/lib/pkgconfig/../../bin/mono [0x80f5067] > /usr/lib/pkgconfig/../../bin/mono [0x8113175] > /lib/tls/libpthread.so.0 [0x400e5297] > /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e] > > > > best regards > > > > ----------------------------------------- > > Xavier Mauclaire > > Service informatique > GEOTER SAS > 3, rue Jean Monnet > 34830 Clapiers France > T?l.: +33 (0)4.67.59.18.11 > Fax: +33 (0)4.67.59.18.24 > > Email: xavier.mauclaire at geoter.fr > > Web site: http://www.geoter.fr > > ------------------------------------------------------- > > > > From szekerest at GMAIL.COM Thu Jun 7 11:14:46 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 7 Jun 2007 20:14:46 +0200 Subject: compiling c# mapscript on F7-x86_64 In-Reply-To: Message-ID: You should check whether other version of mapserver is installed or not. You probably have to set up your mapserver directory in LD_LIBRARY_PATH when running the tests. Best regards, Tamas 2007/6/7, Mike Leahy : > I ran ./configure for MapServer with all desired options, ran make, then > went into mapscript/csharp and ran make there. Is there something else I > should have done? > > On Thu, 7 Jun 2007 18:10:37 +0200, Tamas Szekeres wrote: > > >Did you compile the mapserver core and mapscript with the same > >configuration (by using the same GEOS option for example)? > > > >Best regards, > > > >Tamas > > > > > >2007/6/7, Mike Leahy : > >> Hello List, > >> > >> I just finished upgrading one of my 64-bit machines to Fedora 7. I've > >> already noticed that binary MapServer packages are installable from the > >> repositories. However, it seems these lack the csharp mapscript module, > >> which is something I use frequently. So I did my usual routine to > >> compile MapServer from source...everything looked okay, until I ran > >> 'make test' for the c# mapscript module (see output below). I haven't > >> been able to try this on a 32-bit machine, so can only guess that it > >> might an issue with the 64-bit environment (though FC6-x86_64 with an > >> older version of Mono seemed to work fine). I'm not sure what to make > >> of this output from the make test - has anyone seen anything like this > >> before, or can anyone make any suggestions? > >> > >> Thanks in advance for any help, > >> Mike > >> > >> ================================================================== > >> > >> [mgleahy at localhost csharp]$ make test > >> LC_ALL=C mono ./shpdump.exe ../../tests/point.shp > >> Stacktrace: > >> > >> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj > >> (System.Runtime.InteropServices.HandleRef) <0x00012> > >> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj > >> (System.Runtime.InteropServices.HandleRef) <0xffffffff> > >> at shapeObj.Dispose () <0x00067> > >> at shapeObj.Finalize () <0x00018> > >> at (wrapper runtime-invoke) System.Object.runtime_invoke_void > >> (object,intptr,intptr,intptr) <0xffffffff> > >> > >> Native stacktrace: > >> > >> mono [0x517025] > >> mono [0x4ddf9d] > >> /lib64/libpthread.so.0 [0x3fae00dd20] > >> /lib64/libc.so.6(cfree+0x3b) [0x3fad073acb] > >> ./libmapscript.so(msFreeShape+0x2c) [0x2aaaab573efc] > >> ./libmapscript.so(CSharp_delete_shapeObj+0x9) [0x2aaaab53cf69] > >> [0x4001f90c] > >> > >> Debug info from gdb: > >> > >> (no debugging symbols found) > >> Using host libthread_db library "/lib64/libthread_db.so.1". > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> [Thread debugging using libthread_db enabled] > >> [New Thread 46912496280112 (LWP 16759)] > >> [New Thread 1075988816 (LWP 16761)] > >> [New Thread 1073822032 (LWP 16760)] > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> (no debugging symbols found) > >> 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () > >> from /lib64/libpthread.so.0 > >> 3 Thread 1073822032 (LWP 16760) 0x0000003fae00d3d1 in nanosleep () > >> from /lib64/libpthread.so.0 > >> 2 Thread 1075988816 (LWP 16761) 0x0000003fad0c9ad2 in select () > >> from /lib64/libc.so.6 > >> 1 Thread 46912496280112 (LWP 16759) 0x0000003fae00a597 in > >> pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 > >> > >> Thread 3 (Thread 1073822032 (LWP 16760)): > >> #0 0x0000003fae00d3d1 in nanosleep () from /lib64/libpthread.so.0 > >> #1 0x00000000004c1890 in ?? () > >> #2 0x0000003fae0061c5 in start_thread () from /lib64/libpthread.so.0 > >> #3 0x0000003fad0d062d in clone () from /lib64/libc.so.6 > >> > >> Thread 2 (Thread 1075988816 (LWP 16761)): > >> #0 0x0000003fad0c9ad2 in select () from /lib64/libc.so.6 > >> #1 0x0000003fb1c5646e in g_spawn_sync () from /lib64/libglib-2.0.so.0 > >> #2 0x0000003fb1c56838 in g_spawn_command_line_sync () > >> from /lib64/libglib-2.0.so.0 > >> #3 0x00000000005170c7 in ?? () > >> #4 0x00000000004ddf9d in ?? () > >> #5 > >> #6 0x0000003fad073acb in free () from /lib64/libc.so.6 > >> #7 0x00002aaaab573efc in msFreeShape () from ./libmapscript.so > >> #8 0x00002aaaab53cf69 in CSharp_delete_shapeObj () from ./libmapscript.so > >> #9 0x000000004001f90c in ?? () > >> #10 0x00002aaaaacf8d20 in ?? () > >> #11 0x0000000000a86770 in ?? () > >> #12 0x0000000000000001 in ?? () > >> #13 0x0000003fae00fa28 in g_str_equal () from /lib64/libpthread.so.0 > >> #14 0x0000000000a29390 in ?? () > >> #15 0x0000000040223c80 in ?? () > >> #16 0x0000000040223ee0 in ?? () > >> #17 0x000000004001f862 in ?? () > >> #18 0x0000000000a37e68 in ?? () > >> #19 0x0000000040223ee0 in ?? () > >> #20 0x0000000040223e50 in ?? () > >> #21 0x00002aaaaacf8d20 in ?? () > >> #22 0x00002aaaaaad3e60 in ?? () > >> #23 0x0000000000a86770 in ?? () > >> #24 0x00002aaaaacf8d20 in ?? () > >> #25 0x0000000000a86770 in ?? () > >> #26 0x00002aaaaacf8d20 in ?? () > >> #27 0x00000000007ccc08 in ?? () > >> #28 0x000000004001f690 in ?? () > >> #29 0x0000000000a5f0b0 in ?? () > >> #30 0x0000000040223f50 in ?? () > >> #31 0x000000004001f5d8 in ?? () > >> #32 0x00002aaaaacf8d20 in ?? () > >> #33 0x0000000000a86770 in ?? () > >> #34 0x0000000000000001 in ?? () > >> #35 0x0000000000000011 in ?? () > >> #36 0x00002aaaaacf8d20 in ?? () > >> #37 0x00002aaaaacf8d20 in ?? () > >> #38 0x00002aaaaaad3e60 in ?? () > >> #39 0x0000000000a867e0 in ?? () > >> #40 0x0000000000000000 in ?? () > >> > >> Thread 1 (Thread 46912496280112 (LWP 16759)): > >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () > >> from /lib64/libpthread.so.0 > >> #1 0x00000000004bf110 in ?? () > >> #2 0x00000000004c160d in ?? () > >> #3 0x00000000004c5b95 in ?? () > >> #4 0x000000000046ccc6 in mono_domain_finalize () > >> #5 0x00000000004dc754 in ?? () > >> #6 0x0000000000414678 in mono_main () > >> #7 0x0000003fad01daa4 in __libc_start_main () from /lib64/libc.so.6 > >> #8 0x0000000000413319 in g_str_equal () > >> #9 0x00007fff93e6c348 in ?? () > >> #10 0x0000000000000000 in ?? () > >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () > >> from /lib64/libpthread.so.0 > >> > >> > >> ================================================================= > >> Got a SIGSEGV while executing native code. This usually indicates > >> a fatal error in the mono runtime or one of the native libraries > >> used by your application. > >> ================================================================= > >> > >> make: *** [test] Aborted > >> > From Steve.Lime at DNR.STATE.MN.US Thu Jun 7 12:34:51 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 7 Jun 2007 14:34:51 -0500 Subject: Lable ANGLE FOLLOW in Chinese In-Reply-To: <46682158.2050100@mapgears.com> Message-ID: I still need a good test case- mapfile, font and data. So that would REALLY help. Steve >>> On 6/7/2007 at 10:16 AM, in message <46682158.2050100 at mapgears.com>, Daniel Morissette wrote: > This is a known issue with curved labels. It will hopefully be fixed in > 5.0. See: > > http://trac.osgeo.org/mapserver/ticket/1921 > > Daniel > > Jackey Cheung wrote: >> Greetings. >> >> I've trying to make a map in Chinese http://www3.mapasia.com/jackout/ms.jpg. >> >> I've set the ANGLE of all road labels to FOLLOW. It seems some of the >> label hasn't been broken up properly, as you can see in the image, but >> most labels are correct. How to fix it? >> >> Here's the part of the map file: >> >> LABEL >> ANGLE FOLLOW >> ENCODING "Big5-HKSCS" >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> TYPE TRUETYPE >> FONT mingliu >> SIZE 9 >> ANTIALIAS TRUE >> POSITION AUTO >> PARTIALS FALSE >> MINDISTANCE 500 >> BUFFER 5 >> END > From mgleahy at GOLDEN.NET Thu Jun 7 12:40:23 2007 From: mgleahy at GOLDEN.NET (Mike Leahy) Date: Thu, 7 Jun 2007 14:40:23 -0500 Subject: compiling c# mapscript on F7-x86_64 Message-ID: Tamas, Thanks for the replies. I'm fairly sure what you're suggesting is not the issue in my case. This is a fresh setup, so there's no previous/other versions of mapserver. I tried what you suggested as well, and I got the same output after setting the LD_LIBRARY_PATH to point to my mapserv binaries. Besides that, I've never had to do anything with LD_LIBRARY_PATH before. I'm pretty sure that mapscript_csharp.dll only relies on the libmapscript.so that accompanies it (and through that, all of the other mapserver dependencies). As far as I can tell, libmapscript.so is linked from the current folder for the 'make test' operation. If successful, I normally copy libmapscript.so to /usr/lib64, along with all the other libraries, where it is accessible to any Mono applications that use the csharp DLL. I figure this must be something specific to Fedora 7 and/or Mono-1.2.3. I did try compiling MapServer/MapScript with minimal options to ensure it wasn't some of the additional dependencies I'm using (e.g., GDAL, PostGIS, etc...) and it still gave the same results. Any other recommendations? Regards, Mike On Thu, 7 Jun 2007 20:14:46 +0200, Tamas Szekeres wrote: >You should check whether other version of mapserver is installed or >not. You probably have to set up your mapserver directory in >LD_LIBRARY_PATH when running the tests. > >Best regards, > >Tamas > > >2007/6/7, Mike Leahy : >> I ran ./configure for MapServer with all desired options, ran make, then >> went into mapscript/csharp and ran make there. Is there something else I >> should have done? >> >> On Thu, 7 Jun 2007 18:10:37 +0200, Tamas Szekeres wrote: >> >> >Did you compile the mapserver core and mapscript with the same >> >configuration (by using the same GEOS option for example)? >> > >> >Best regards, >> > >> >Tamas >> > >> > >> >2007/6/7, Mike Leahy : >> >> Hello List, >> >> >> >> I just finished upgrading one of my 64-bit machines to Fedora 7. I've >> >> already noticed that binary MapServer packages are installable from the >> >> repositories. However, it seems these lack the csharp mapscript module, >> >> which is something I use frequently. So I did my usual routine to >> >> compile MapServer from source...everything looked okay, until I ran >> >> 'make test' for the c# mapscript module (see output below). I haven't >> >> been able to try this on a 32-bit machine, so can only guess that it >> >> might an issue with the 64-bit environment (though FC6-x86_64 with an >> >> older version of Mono seemed to work fine). I'm not sure what to make >> >> of this output from the make test - has anyone seen anything like this >> >> before, or can anyone make any suggestions? >> >> >> >> Thanks in advance for any help, >> >> Mike >> >> >> >> ================================================================== >> >> >> >> [mgleahy at localhost csharp]$ make test >> >> LC_ALL=C mono ./shpdump.exe ../../tests/point.shp >> >> Stacktrace: >> >> >> >> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj >> >> (System.Runtime.InteropServices.HandleRef) <0x00012> >> >> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj >> >> (System.Runtime.InteropServices.HandleRef) <0xffffffff> >> >> at shapeObj.Dispose () <0x00067> >> >> at shapeObj.Finalize () <0x00018> >> >> at (wrapper runtime-invoke) System.Object.runtime_invoke_void >> >> (object,intptr,intptr,intptr) <0xffffffff> >> >> >> >> Native stacktrace: >> >> >> >> mono [0x517025] >> >> mono [0x4ddf9d] >> >> /lib64/libpthread.so.0 [0x3fae00dd20] >> >> /lib64/libc.so.6(cfree+0x3b) [0x3fad073acb] >> >> ./libmapscript.so(msFreeShape+0x2c) [0x2aaaab573efc] >> >> ./libmapscript.so(CSharp_delete_shapeObj+0x9) [0x2aaaab53cf69] >> >> [0x4001f90c] >> >> >> >> Debug info from gdb: >> >> >> >> (no debugging symbols found) >> >> Using host libthread_db library "/lib64/libthread_db.so.1". >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> [Thread debugging using libthread_db enabled] >> >> [New Thread 46912496280112 (LWP 16759)] >> >> [New Thread 1075988816 (LWP 16761)] >> >> [New Thread 1073822032 (LWP 16760)] >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> (no debugging symbols found) >> >> 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () >> >> from /lib64/libpthread.so.0 >> >> 3 Thread 1073822032 (LWP 16760) 0x0000003fae00d3d1 in nanosleep () >> >> from /lib64/libpthread.so.0 >> >> 2 Thread 1075988816 (LWP 16761) 0x0000003fad0c9ad2 in select () >> >> from /lib64/libc.so.6 >> >> 1 Thread 46912496280112 (LWP 16759) 0x0000003fae00a597 in >> >> pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 >> >> >> >> Thread 3 (Thread 1073822032 (LWP 16760)): >> >> #0 0x0000003fae00d3d1 in nanosleep () from /lib64/libpthread.so.0 >> >> #1 0x00000000004c1890 in ?? () >> >> #2 0x0000003fae0061c5 in start_thread () from /lib64/libpthread.so.0 >> >> #3 0x0000003fad0d062d in clone () from /lib64/libc.so.6 >> >> >> >> Thread 2 (Thread 1075988816 (LWP 16761)): >> >> #0 0x0000003fad0c9ad2 in select () from /lib64/libc.so.6 >> >> #1 0x0000003fb1c5646e in g_spawn_sync () from /lib64/libglib-2.0.so.0 >> >> #2 0x0000003fb1c56838 in g_spawn_command_line_sync () >> >> from /lib64/libglib-2.0.so.0 >> >> #3 0x00000000005170c7 in ?? () >> >> #4 0x00000000004ddf9d in ?? () >> >> #5 >> >> #6 0x0000003fad073acb in free () from /lib64/libc.so.6 >> >> #7 0x00002aaaab573efc in msFreeShape () from ./libmapscript.so >> >> #8 0x00002aaaab53cf69 in CSharp_delete_shapeObj () from ./libmapscript.so >> >> #9 0x000000004001f90c in ?? () >> >> #10 0x00002aaaaacf8d20 in ?? () >> >> #11 0x0000000000a86770 in ?? () >> >> #12 0x0000000000000001 in ?? () >> >> #13 0x0000003fae00fa28 in g_str_equal () from /lib64/libpthread.so.0 >> >> #14 0x0000000000a29390 in ?? () >> >> #15 0x0000000040223c80 in ?? () >> >> #16 0x0000000040223ee0 in ?? () >> >> #17 0x000000004001f862 in ?? () >> >> #18 0x0000000000a37e68 in ?? () >> >> #19 0x0000000040223ee0 in ?? () >> >> #20 0x0000000040223e50 in ?? () >> >> #21 0x00002aaaaacf8d20 in ?? () >> >> #22 0x00002aaaaaad3e60 in ?? () >> >> #23 0x0000000000a86770 in ?? () >> >> #24 0x00002aaaaacf8d20 in ?? () >> >> #25 0x0000000000a86770 in ?? () >> >> #26 0x00002aaaaacf8d20 in ?? () >> >> #27 0x00000000007ccc08 in ?? () >> >> #28 0x000000004001f690 in ?? () >> >> #29 0x0000000000a5f0b0 in ?? () >> >> #30 0x0000000040223f50 in ?? () >> >> #31 0x000000004001f5d8 in ?? () >> >> #32 0x00002aaaaacf8d20 in ?? () >> >> #33 0x0000000000a86770 in ?? () >> >> #34 0x0000000000000001 in ?? () >> >> #35 0x0000000000000011 in ?? () >> >> #36 0x00002aaaaacf8d20 in ?? () >> >> #37 0x00002aaaaacf8d20 in ?? () >> >> #38 0x00002aaaaaad3e60 in ?? () >> >> #39 0x0000000000a867e0 in ?? () >> >> #40 0x0000000000000000 in ?? () >> >> >> >> Thread 1 (Thread 46912496280112 (LWP 16759)): >> >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () >> >> from /lib64/libpthread.so.0 >> >> #1 0x00000000004bf110 in ?? () >> >> #2 0x00000000004c160d in ?? () >> >> #3 0x00000000004c5b95 in ?? () >> >> #4 0x000000000046ccc6 in mono_domain_finalize () >> >> #5 0x00000000004dc754 in ?? () >> >> #6 0x0000000000414678 in mono_main () >> >> #7 0x0000003fad01daa4 in __libc_start_main () from /lib64/libc.so.6 >> >> #8 0x0000000000413319 in g_str_equal () >> >> #9 0x00007fff93e6c348 in ?? () >> >> #10 0x0000000000000000 in ?? () >> >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () >> >> from /lib64/libpthread.so.0 >> >> >> >> >> >> ================================================================= >> >> Got a SIGSEGV while executing native code. This usually indicates >> >> a fatal error in the mono runtime or one of the native libraries >> >> used by your application. >> >> ================================================================= >> >> >> >> make: *** [test] Aborted >> >> >> From szekerest at GMAIL.COM Thu Jun 7 15:43:48 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 8 Jun 2007 00:43:48 +0200 Subject: compiling c# mapscript on F7-x86_64 In-Reply-To: Message-ID: Mike, I haven't managed to reproduce this issue using the SVN trunk on my SUSE10 vs MONO 1.2.4 configuration, the make test works fairly well. I'll be trying to set up an FC7 system to make similar tests but I guess it will take some days to complete. Best regards, Tamas 2007/6/7, Mike Leahy : > Tamas, > > Thanks for the replies. I'm fairly sure what you're suggesting is not the > issue in my case. This is a fresh setup, so there's no previous/other > versions of mapserver. I tried what you suggested as well, and I got the > same output after setting the LD_LIBRARY_PATH to point to my mapserv > binaries. Besides that, I've never had to do anything with LD_LIBRARY_PATH > before. I'm pretty sure that mapscript_csharp.dll only relies on the > libmapscript.so that accompanies it (and through that, all of the other > mapserver dependencies). As far as I can tell, libmapscript.so is linked > from the current folder for the 'make test' operation. If successful, I > normally copy libmapscript.so to /usr/lib64, along with all the other > libraries, where it is accessible to any Mono applications that use the > csharp DLL. > > I figure this must be something specific to Fedora 7 and/or Mono-1.2.3. I > did try compiling MapServer/MapScript with minimal options to ensure it > wasn't some of the additional dependencies I'm using (e.g., GDAL, PostGIS, > etc...) and it still gave the same results. > > Any other recommendations? > > Regards, > Mike > > On Thu, 7 Jun 2007 20:14:46 +0200, Tamas Szekeres wrote: > > >You should check whether other version of mapserver is installed or > >not. You probably have to set up your mapserver directory in > >LD_LIBRARY_PATH when running the tests. > > > >Best regards, > > > >Tamas > > > > > >2007/6/7, Mike Leahy : > >> I ran ./configure for MapServer with all desired options, ran make, then > >> went into mapscript/csharp and ran make there. Is there something else I > >> should have done? > >> > >> On Thu, 7 Jun 2007 18:10:37 +0200, Tamas Szekeres > wrote: > >> > >> >Did you compile the mapserver core and mapscript with the same > >> >configuration (by using the same GEOS option for example)? > >> > > >> >Best regards, > >> > > >> >Tamas > >> > > >> > > >> >2007/6/7, Mike Leahy : > >> >> Hello List, > >> >> > >> >> I just finished upgrading one of my 64-bit machines to Fedora 7. I've > >> >> already noticed that binary MapServer packages are installable from the > >> >> repositories. However, it seems these lack the csharp mapscript module, > >> >> which is something I use frequently. So I did my usual routine to > >> >> compile MapServer from source...everything looked okay, until I ran > >> >> 'make test' for the c# mapscript module (see output below). I haven't > >> >> been able to try this on a 32-bit machine, so can only guess that it > >> >> might an issue with the 64-bit environment (though FC6-x86_64 with an > >> >> older version of Mono seemed to work fine). I'm not sure what to make > >> >> of this output from the make test - has anyone seen anything like this > >> >> before, or can anyone make any suggestions? > >> >> > >> >> Thanks in advance for any help, > >> >> Mike > >> >> > >> >> ================================================================== > >> >> > >> >> [mgleahy at localhost csharp]$ make test > >> >> LC_ALL=C mono ./shpdump.exe ../../tests/point.shp > >> >> Stacktrace: > >> >> > >> >> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj > >> >> (System.Runtime.InteropServices.HandleRef) <0x00012> > >> >> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj > >> >> (System.Runtime.InteropServices.HandleRef) <0xffffffff> > >> >> at shapeObj.Dispose () <0x00067> > >> >> at shapeObj.Finalize () <0x00018> > >> >> at (wrapper runtime-invoke) System.Object.runtime_invoke_void > >> >> (object,intptr,intptr,intptr) <0xffffffff> > >> >> > >> >> Native stacktrace: > >> >> > >> >> mono [0x517025] > >> >> mono [0x4ddf9d] > >> >> /lib64/libpthread.so.0 [0x3fae00dd20] > >> >> /lib64/libc.so.6(cfree+0x3b) [0x3fad073acb] > >> >> ./libmapscript.so(msFreeShape+0x2c) [0x2aaaab573efc] > >> >> ./libmapscript.so(CSharp_delete_shapeObj+0x9) [0x2aaaab53cf69] > >> >> [0x4001f90c] > >> >> > >> >> Debug info from gdb: > >> >> > >> >> (no debugging symbols found) > >> >> Using host libthread_db library "/lib64/libthread_db.so.1". > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> [Thread debugging using libthread_db enabled] > >> >> [New Thread 46912496280112 (LWP 16759)] > >> >> [New Thread 1075988816 (LWP 16761)] > >> >> [New Thread 1073822032 (LWP 16760)] > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> (no debugging symbols found) > >> >> 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () > >> >> from /lib64/libpthread.so.0 > >> >> 3 Thread 1073822032 (LWP 16760) 0x0000003fae00d3d1 in nanosleep () > >> >> from /lib64/libpthread.so.0 > >> >> 2 Thread 1075988816 (LWP 16761) 0x0000003fad0c9ad2 in select () > >> >> from /lib64/libc.so.6 > >> >> 1 Thread 46912496280112 (LWP 16759) 0x0000003fae00a597 in > >> >> pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 > >> >> > >> >> Thread 3 (Thread 1073822032 (LWP 16760)): > >> >> #0 0x0000003fae00d3d1 in nanosleep () from /lib64/libpthread.so.0 > >> >> #1 0x00000000004c1890 in ?? () > >> >> #2 0x0000003fae0061c5 in start_thread () from /lib64/libpthread.so.0 > >> >> #3 0x0000003fad0d062d in clone () from /lib64/libc.so.6 > >> >> > >> >> Thread 2 (Thread 1075988816 (LWP 16761)): > >> >> #0 0x0000003fad0c9ad2 in select () from /lib64/libc.so.6 > >> >> #1 0x0000003fb1c5646e in g_spawn_sync () from /lib64/libglib-2.0.so.0 > >> >> #2 0x0000003fb1c56838 in g_spawn_command_line_sync () > >> >> from /lib64/libglib-2.0.so.0 > >> >> #3 0x00000000005170c7 in ?? () > >> >> #4 0x00000000004ddf9d in ?? () > >> >> #5 > >> >> #6 0x0000003fad073acb in free () from /lib64/libc.so.6 > >> >> #7 0x00002aaaab573efc in msFreeShape () from ./libmapscript.so > >> >> #8 0x00002aaaab53cf69 in CSharp_delete_shapeObj () from ./libmapscript.so > >> >> #9 0x000000004001f90c in ?? () > >> >> #10 0x00002aaaaacf8d20 in ?? () > >> >> #11 0x0000000000a86770 in ?? () > >> >> #12 0x0000000000000001 in ?? () > >> >> #13 0x0000003fae00fa28 in g_str_equal () from /lib64/libpthread.so.0 > >> >> #14 0x0000000000a29390 in ?? () > >> >> #15 0x0000000040223c80 in ?? () > >> >> #16 0x0000000040223ee0 in ?? () > >> >> #17 0x000000004001f862 in ?? () > >> >> #18 0x0000000000a37e68 in ?? () > >> >> #19 0x0000000040223ee0 in ?? () > >> >> #20 0x0000000040223e50 in ?? () > >> >> #21 0x00002aaaaacf8d20 in ?? () > >> >> #22 0x00002aaaaaad3e60 in ?? () > >> >> #23 0x0000000000a86770 in ?? () > >> >> #24 0x00002aaaaacf8d20 in ?? () > >> >> #25 0x0000000000a86770 in ?? () > >> >> #26 0x00002aaaaacf8d20 in ?? () > >> >> #27 0x00000000007ccc08 in ?? () > >> >> #28 0x000000004001f690 in ?? () > >> >> #29 0x0000000000a5f0b0 in ?? () > >> >> #30 0x0000000040223f50 in ?? () > >> >> #31 0x000000004001f5d8 in ?? () > >> >> #32 0x00002aaaaacf8d20 in ?? () > >> >> #33 0x0000000000a86770 in ?? () > >> >> #34 0x0000000000000001 in ?? () > >> >> #35 0x0000000000000011 in ?? () > >> >> #36 0x00002aaaaacf8d20 in ?? () > >> >> #37 0x00002aaaaacf8d20 in ?? () > >> >> #38 0x00002aaaaaad3e60 in ?? () > >> >> #39 0x0000000000a867e0 in ?? () > >> >> #40 0x0000000000000000 in ?? () > >> >> > >> >> Thread 1 (Thread 46912496280112 (LWP 16759)): > >> >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () > >> >> from /lib64/libpthread.so.0 > >> >> #1 0x00000000004bf110 in ?? () > >> >> #2 0x00000000004c160d in ?? () > >> >> #3 0x00000000004c5b95 in ?? () > >> >> #4 0x000000000046ccc6 in mono_domain_finalize () > >> >> #5 0x00000000004dc754 in ?? () > >> >> #6 0x0000000000414678 in mono_main () > >> >> #7 0x0000003fad01daa4 in __libc_start_main () from /lib64/libc.so.6 > >> >> #8 0x0000000000413319 in g_str_equal () > >> >> #9 0x00007fff93e6c348 in ?? () > >> >> #10 0x0000000000000000 in ?? () > >> >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () > >> >> from /lib64/libpthread.so.0 > >> >> > >> >> > >> >> ================================================================= > >> >> Got a SIGSEGV while executing native code. This usually indicates > >> >> a fatal error in the mono runtime or one of the native libraries > >> >> used by your application. > >> >> ================================================================= > >> >> > >> >> make: *** [test] Aborted > >> >> > >> > From cheung.jackey at GMAIL.COM Thu Jun 7 18:32:49 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Fri, 8 Jun 2007 09:32:49 +0800 Subject: Lable ANGLE FOLLOW in Chinese Message-ID: please check this out: http://www3.mapasia.com/jackout/td.rar in the package, there are: 1. map data of a small portion of Hong Kong, in MapInfo format 2. Chinese font named "mingliu", and the font list. 3. a map file with just road and its label layers. hope this helps :D ----- Original Message ----- From: "Steve Lime" To: Sent: Friday, June 08, 2007 03:34 Subject: Re: [UMN_MAPSERVER-USERS] Lable ANGLE FOLLOW in Chinese I still need a good test case- mapfile, font and data. So that would REALLY help. Steve >>> On 6/7/2007 at 10:16 AM, in message <46682158.2050100 at mapgears.com>, >>> Daniel Morissette wrote: > This is a known issue with curved labels. It will hopefully be fixed in > 5.0. See: > > http://trac.osgeo.org/mapserver/ticket/1921 > > Daniel > > Jackey Cheung wrote: >> Greetings. >> >> I've trying to make a map in Chinese >> http://www3.mapasia.com/jackout/ms.jpg. >> >> I've set the ANGLE of all road labels to FOLLOW. It seems some of the >> label hasn't been broken up properly, as you can see in the image, but >> most labels are correct. How to fix it? >> >> Here's the part of the map file: >> >> LABEL >> ANGLE FOLLOW >> ENCODING "Big5-HKSCS" >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> TYPE TRUETYPE >> FONT mingliu >> SIZE 9 >> ANTIALIAS TRUE >> POSITION AUTO >> PARTIALS FALSE >> MINDISTANCE 500 >> BUFFER 5 >> END > From helenagarcia at GRUPOTECOPY.ES Fri Jun 8 03:54:29 2007 From: helenagarcia at GRUPOTECOPY.ES (H Garcia) Date: Fri, 8 Jun 2007 05:54:29 -0500 Subject: WFS-G Message-ID: Thanks both for your answers. Finally I try Steve's option and I configurate Mapserver mapfile to make the transformation. However, I found two problems: * First, I'd like to transform from ms:my_layer_name to ns:Entity, but this parameter is directly extracted from the NAME parameter in the mapfile LAYER object, so I think that if I want ns:Entity, my layer has to name "Entity"... Is it any parameter I could configurate to fix this? Or am I wrong? * Second, the schema I want my response to fix has mandatory fields that I can't extract from database, but whose value remains always the same. Is it any parameter I could add to insert in the response a default value for these tags? Thanks in advance!! From swaite at PWSSC.GEN.AK.US Fri Jun 8 09:52:58 2007 From: swaite at PWSSC.GEN.AK.US (Stephanie Waite) Date: Fri, 8 Jun 2007 11:52:58 -0500 Subject: CGI variable "map" is not set Message-ID: Hello, I am trying to work on my first simple map, but I keep getting the following error: loadMap(): Web application error. CGI variable "map" is not set. The URL that I type: http://localhost/cgi-bin/mapserv.exe?%20map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map Here is the Example1-1.map MAP IMAGETYPE PNG EXTENT -97.238976 41.619778 -82.122902 49.385620 SIZE 400 300 SHAPEPATH "/ms4w/apps/tutorial/data" IMAGECOLOR 255 255 255 LAYER NAME states DATA states_ugl STATUS OFF TYPE POLYGON CLASS NAME "The Upper Great Lakes States" STYLE COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END END END Any help would be appreciated to get me started. Thank you! From gregor at HOSTGIS.COM Fri Jun 8 10:01:50 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 8 Jun 2007 11:01:50 -0600 Subject: CGI variable "map" is not set In-Reply-To: Message-ID: > loadMap(): Web application error. CGI variable "map" is not set. > > The URL that I type: > http://localhost/cgi-bin/mapserv.exe?%20map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map Yeah, look at the URL. %20 is a space. Get rid of the space and you should be fine. From cagb78 at YAHOO.COM Fri Jun 8 10:41:40 2007 From: cagb78 at YAHOO.COM (carlos gordon) Date: Fri, 8 Jun 2007 10:41:40 -0700 Subject: Problem installing ka-map 1.0 with ms4w 2.2.2 Message-ID: Hi all! I?m trying to configure it the installation of ka-map with ms4w but i have many troubles making it works properly, at first these are the steps i follow: 1. Creation of mapfile 2. Configured the Apache web alias 3. Before that i have to run the setenv.bat file to set the .dll path 4. Defining alias and restartig Apache: Alias /kamap "/ms4w/apps/ka-map-1.0/htdocs" AllowOverride None Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all 5. Configuring config.php First, pointing to php modules: $szPHPMapScriptModule = "php_mapscript_4.10.0.".PHP_SHLIB_SUFFIX; $szPHPGDModule = 'php_gd2.' .PHP_SHLIB_SUFFIX; Later, defining the map array $aszMapFiles = array( "PanamaMap" => array( "Provincias Panama", "/ms4w/apps/kamap-1.0/htdocs/mapas/map/panama.map", array( 250000, 120000, 75000, 30000, 10000 ), "PNG") ); * szMap should be set to the default map file to use but can change if * this script is called with map=. */ $szMap = 'PanamaMap'; Setting the directories for cache * for the application (see mapfile configuration above.) */ $szBaseCacheDir = "C:/ms4w/tmp/ms_tmp/"; /* Uncomment the following if you have a web accessible cache */ $szBaseWebCache = "../tmp/ms_tmp/"; But it doesn?t seem to work properly, because when i go to http://localhost:8080/ka-map/, the browser IE 6.0, send me this message: Line: 76 Char: 1 Error: Object expected Code: 0 URL: http://localhost:8080/ka-map/ I'm using the ms4w 2.2.2 version and ka-map 1.0 on Windows XP 64x I have like one week figthing with this problem, because i need to configure kamap to create tiles and use it with Open Layers as a web client in my project. Thanxs in advanced, Carlos A. Gord?n Especialista en GIS Tel. (507) 665-49715 cagb78 at nuzkiamedia.com V?a Sonadora, casa 5, Penonome, Provincia de Cocl? Panam? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Fri Jun 8 11:40:11 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 8 Jun 2007 14:40:11 -0400 Subject: CGI variable "map" is not set In-Reply-To: <46698B7E.60402@hostgis.com> Message-ID: Also, since you are using MS4W, you might want to use the "PHP/MapScript Sample Application" addon package for MS4W for guidance, since it out-of-the-box sets up a WMS mapfile for you (see your localhost page after installing). jeff Gregor Mosheh wrote: >> loadMap(): Web application error. CGI variable "map" is not set. >> >> The URL that I type: >> http://localhost/cgi-bin/mapserv.exe?%20map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map >> > > Yeah, look at the URL. %20 is a space. Get rid of the space and you > should be fine. > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From andre at COVALUATE.COM Fri Jun 8 11:47:00 2007 From: andre at COVALUATE.COM (Andre Lockhart) Date: Fri, 8 Jun 2007 11:47:00 -0700 Subject: Problem installing ka-map 1.0 with ms4w 2.2.2 In-Reply-To: Message-ID: Try using TileCache with OpenLayers instead of ka-Map! http://www.tilecache.org/ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of carlos gordon Sent: Friday, June 08, 2007 10:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Problem installing ka-map 1.0 with ms4w 2.2.2 --0-1188692049-1181324500=:50919 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi all! I?m trying to configure it the installation of ka-map with ms4w but i have many troubles making it works properly, at first these are the steps i follow: 1. Creation of mapfile 2. Configured the Apache web alias 3. Before that i have to run the setenv.bat file to set the .dll path 4. Defining alias and restartig Apache: Alias /kamap "/ms4w/apps/ka-map-1.0/htdocs" AllowOverride None Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all 5. Configuring config.php First, pointing to php modules: $szPHPMapScriptModule = "php_mapscript_4.10.0.".PHP_SHLIB_SUFFIX; $szPHPGDModule = 'php_gd2.' .PHP_SHLIB_SUFFIX; Later, defining the map array $aszMapFiles = array( "PanamaMap" => array( "Provincias Panama", "/ms4w/apps/kamap-1.0/htdocs/mapas/map/panama.map", array( 250000, 120000, 75000, 30000, 10000 ), "PNG") ); * szMap should be set to the default map file to use but can change if * this script is called with map=. */ $szMap = 'PanamaMap'; Setting the directories for cache * for the application (see mapfile configuration above.) */ $szBaseCacheDir = "C:/ms4w/tmp/ms_tmp/"; /* Uncomment the following if you have a web accessible cache */ $szBaseWebCache = "../tmp/ms_tmp/"; But it doesn?t seem to work properly, because when i go to http://localhost:8080/ka-map/, the browser IE 6.0, send me this message: Line: 76 Char: 1 Error: Object expected Code: 0 URL: http://localhost:8080/ka-map/ I'm using the ms4w 2.2.2 version and ka-map 1.0 on Windows XP 64x I have like one week figthing with this problem, because i need to configure kamap to create tiles and use it with Open Layers as a web client in my project. Thanxs in advanced, Carlos A. Gord?n Especialista en GIS Tel. (507) 665-49715 cagb78 at nuzkiamedia.com V?a Sonadora, casa 5, Penonome, Provincia de Cocl? Panam? --0-1188692049-1181324500=:50919 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi all!
I?m trying to configure it the installation of ka-map with ms4w but i have many troubles making it works properly, at first these are the steps i follow:
1. Creation of mapfile
2. Configured the Apache web alias
3. Before that i have to run the setenv.bat file to set the .dll path
4. Defining alias and restartig Apache:
Alias /kamap "/ms4w/apps/ka-map-1.0/htdocs"
<Directory "/ms4w/apps/ka-map-1.0">
  AllowOverride None
  Options Indexes FollowSymLinks Multiviews
  Order allow,deny
  Allow from all
</Directory>
5. Configuring config.php
First, pointing to php modules:
$szPHPMapScriptModule = "php_mapscript_4.10.0.".PHP_SHLIB_SUFFIX;
$szPHPGDModule = 'php_gd2.' .PHP_SHLIB_SUFFIX;
Later, defining the map array
$aszMapFiles = array(
        "PanamaMap"     => array( "Provincias Panama",
                         &nbs p;       "/ms4w/apps/kamap-1.0/htdocs/mapas/map/panama.map",
   &nb sp;            & nbsp;             ;   array( 250000, 120000, 75000, 30000, 10000 ),
           &nbs p;            &n bsp;       "PNG")
);
 * szMap should be set to the default map file to use but can change if
 * this script is called with map=<mapname>.
 */
$szMap = 'PanamaMap';
Setting the directories for cache
* for the application (see mapfile configuration above.)
 */
$szBaseCacheDir =  "C:/ms4w/tmp/ms_tmp/";
/* Uncomment the following if you have a web accessible cache */
$szBaseWebCache = "../tmp/ms_tmp/";
But it doesn?t seem to work properly, because when i go to http://localhost:8080/ka-map/, the browser IE 6.0, send me this message:
Line: 76
Char: 1
Error: Object expected
Code: 0
URL: http://localhost:8080/ka-map/
I'm using the ms4w 2.2.2 version and ka-map 1.0 on Windows XP 64x
I have like one week figthing with this problem, because i need to configure kamap to create tiles and use it with Open Layers as a web client in my project.
Thanxs in advanced,


Carlos A. Gord?n
Especialista en GIS
Tel. (507) 665-49715
cagb78 at nuzkiamedia.com
V?a Sonadora, casa 5,
Penonome, Provincia de Cocl?
Panam?
--0-1188692049-1181324500=:50919-- From frdcn at HOTMAIL.COM Fri Jun 8 17:47:56 2007 From: frdcn at HOTMAIL.COM (godofredo contreras) Date: Sat, 9 Jun 2007 00:47:56 +0000 Subject: svg file generated twice per request using mapscript Message-ID: Hi mapserver users, I am working with svg and trying to develop an svg viewer applet using batik the svg content is being generated with php mapscript 4.8.2. My question is why are being generated two svg files in temp directory with the same content per request? Is this correct or could be a bug? Thank you in advance Godofredo Contreras Nava _________________________________________________________________ Hotmail to go? Get your Hotmail, news, sports and much more! Check out the New MSN Mobile! http://mobile.msn.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mgleahy at GOLDEN.NET Fri Jun 8 21:01:20 2007 From: mgleahy at GOLDEN.NET (Mike Leahy) Date: Sat, 9 Jun 2007 00:01:20 -0400 Subject: compiling c# mapscript on F7-x86_64 In-Reply-To: Message-ID: Hello again, I don't know if this helps at all, but I gave the C# dll I built a try with my application despite the output from the make test...turns out it actually works. Granted, my application does relatively little at the moment (it essentially creates a map object with a PostGIS layer, and draws the image), so this isn't a thorough test, but perhaps there's a problem with the make test operation instead (at least in my context)? Regards, Mike Tamas Szekeres wrote: > Mike, > > I haven't managed to reproduce this issue using the SVN trunk on my > SUSE10 vs MONO 1.2.4 configuration, the make test works fairly well. > I'll be trying to set up an FC7 system to make similar tests but I > guess it will take some days to complete. > > Best regards, > > Tamas > > > > 2007/6/7, Mike Leahy : >> Tamas, >> >> Thanks for the replies. I'm fairly sure what you're suggesting is not >> the >> issue in my case. This is a fresh setup, so there's no previous/other >> versions of mapserver. I tried what you suggested as well, and I got the >> same output after setting the LD_LIBRARY_PATH to point to my mapserv >> binaries. Besides that, I've never had to do anything with >> LD_LIBRARY_PATH >> before. I'm pretty sure that mapscript_csharp.dll only relies on the >> libmapscript.so that accompanies it (and through that, all of the other >> mapserver dependencies). As far as I can tell, libmapscript.so is >> linked >> from the current folder for the 'make test' operation. If successful, I >> normally copy libmapscript.so to /usr/lib64, along with all the other >> libraries, where it is accessible to any Mono applications that use the >> csharp DLL. >> >> I figure this must be something specific to Fedora 7 and/or >> Mono-1.2.3. I >> did try compiling MapServer/MapScript with minimal options to ensure it >> wasn't some of the additional dependencies I'm using (e.g., GDAL, >> PostGIS, >> etc...) and it still gave the same results. >> >> Any other recommendations? >> >> Regards, >> Mike >> >> On Thu, 7 Jun 2007 20:14:46 +0200, Tamas Szekeres >> wrote: >> >> >You should check whether other version of mapserver is installed or >> >not. You probably have to set up your mapserver directory in >> >LD_LIBRARY_PATH when running the tests. >> > >> >Best regards, >> > >> >Tamas >> > >> > >> >2007/6/7, Mike Leahy : >> >> I ran ./configure for MapServer with all desired options, ran make, >> then >> >> went into mapscript/csharp and ran make there. Is there something >> else I >> >> should have done? >> >> >> >> On Thu, 7 Jun 2007 18:10:37 +0200, Tamas Szekeres >> >> wrote: >> >> >> >> >Did you compile the mapserver core and mapscript with the same >> >> >configuration (by using the same GEOS option for example)? >> >> > >> >> >Best regards, >> >> > >> >> >Tamas >> >> > >> >> > >> >> >2007/6/7, Mike Leahy : >> >> >> Hello List, >> >> >> >> >> >> I just finished upgrading one of my 64-bit machines to Fedora >> 7. I've >> >> >> already noticed that binary MapServer packages are installable >> from the >> >> >> repositories. However, it seems these lack the csharp mapscript >> module, >> >> >> which is something I use frequently. So I did my usual routine to >> >> >> compile MapServer from source...everything looked okay, until I ran >> >> >> 'make test' for the c# mapscript module (see output below). I >> haven't >> >> >> been able to try this on a 32-bit machine, so can only guess >> that it >> >> >> might an issue with the 64-bit environment (though FC6-x86_64 >> with an >> >> >> older version of Mono seemed to work fine). I'm not sure what >> to make >> >> >> of this output from the make test - has anyone seen anything >> like this >> >> >> before, or can anyone make any suggestions? >> >> >> >> >> >> Thanks in advance for any help, >> >> >> Mike >> >> >> >> >> >> ================================================================== >> >> >> >> >> >> [mgleahy at localhost csharp]$ make test >> >> >> LC_ALL=C mono ./shpdump.exe ../../tests/point.shp >> >> >> Stacktrace: >> >> >> >> >> >> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj >> >> >> (System.Runtime.InteropServices.HandleRef) <0x00012> >> >> >> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj >> >> >> (System.Runtime.InteropServices.HandleRef) <0xffffffff> >> >> >> at shapeObj.Dispose () <0x00067> >> >> >> at shapeObj.Finalize () <0x00018> >> >> >> at (wrapper runtime-invoke) System.Object.runtime_invoke_void >> >> >> (object,intptr,intptr,intptr) <0xffffffff> >> >> >> >> >> >> Native stacktrace: >> >> >> >> >> >> mono [0x517025] >> >> >> mono [0x4ddf9d] >> >> >> /lib64/libpthread.so.0 [0x3fae00dd20] >> >> >> /lib64/libc.so.6(cfree+0x3b) [0x3fad073acb] >> >> >> ./libmapscript.so(msFreeShape+0x2c) [0x2aaaab573efc] >> >> >> ./libmapscript.so(CSharp_delete_shapeObj+0x9) >> [0x2aaaab53cf69] >> >> >> [0x4001f90c] >> >> >> >> >> >> Debug info from gdb: >> >> >> >> >> >> (no debugging symbols found) >> >> >> Using host libthread_db library "/lib64/libthread_db.so.1". >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> [Thread debugging using libthread_db enabled] >> >> >> [New Thread 46912496280112 (LWP 16759)] >> >> >> [New Thread 1075988816 (LWP 16761)] >> >> >> [New Thread 1073822032 (LWP 16760)] >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> (no debugging symbols found) >> >> >> 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () >> >> >> from /lib64/libpthread.so.0 >> >> >> 3 Thread 1073822032 (LWP 16760) 0x0000003fae00d3d1 in >> nanosleep () >> >> >> from /lib64/libpthread.so.0 >> >> >> 2 Thread 1075988816 (LWP 16761) 0x0000003fad0c9ad2 in select () >> >> >> from /lib64/libc.so.6 >> >> >> 1 Thread 46912496280112 (LWP 16759) 0x0000003fae00a597 in >> >> >> pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 >> >> >> >> >> >> Thread 3 (Thread 1073822032 (LWP 16760)): >> >> >> #0 0x0000003fae00d3d1 in nanosleep () from /lib64/libpthread.so.0 >> >> >> #1 0x00000000004c1890 in ?? () >> >> >> #2 0x0000003fae0061c5 in start_thread () from >> /lib64/libpthread.so.0 >> >> >> #3 0x0000003fad0d062d in clone () from /lib64/libc.so.6 >> >> >> >> >> >> Thread 2 (Thread 1075988816 (LWP 16761)): >> >> >> #0 0x0000003fad0c9ad2 in select () from /lib64/libc.so.6 >> >> >> #1 0x0000003fb1c5646e in g_spawn_sync () from >> /lib64/libglib-2.0.so.0 >> >> >> #2 0x0000003fb1c56838 in g_spawn_command_line_sync () >> >> >> from /lib64/libglib-2.0.so.0 >> >> >> #3 0x00000000005170c7 in ?? () >> >> >> #4 0x00000000004ddf9d in ?? () >> >> >> #5 >> >> >> #6 0x0000003fad073acb in free () from /lib64/libc.so.6 >> >> >> #7 0x00002aaaab573efc in msFreeShape () from ./libmapscript.so >> >> >> #8 0x00002aaaab53cf69 in CSharp_delete_shapeObj () from >> ./libmapscript.so >> >> >> #9 0x000000004001f90c in ?? () >> >> >> #10 0x00002aaaaacf8d20 in ?? () >> >> >> #11 0x0000000000a86770 in ?? () >> >> >> #12 0x0000000000000001 in ?? () >> >> >> #13 0x0000003fae00fa28 in g_str_equal () from >> /lib64/libpthread.so.0 >> >> >> #14 0x0000000000a29390 in ?? () >> >> >> #15 0x0000000040223c80 in ?? () >> >> >> #16 0x0000000040223ee0 in ?? () >> >> >> #17 0x000000004001f862 in ?? () >> >> >> #18 0x0000000000a37e68 in ?? () >> >> >> #19 0x0000000040223ee0 in ?? () >> >> >> #20 0x0000000040223e50 in ?? () >> >> >> #21 0x00002aaaaacf8d20 in ?? () >> >> >> #22 0x00002aaaaaad3e60 in ?? () >> >> >> #23 0x0000000000a86770 in ?? () >> >> >> #24 0x00002aaaaacf8d20 in ?? () >> >> >> #25 0x0000000000a86770 in ?? () >> >> >> #26 0x00002aaaaacf8d20 in ?? () >> >> >> #27 0x00000000007ccc08 in ?? () >> >> >> #28 0x000000004001f690 in ?? () >> >> >> #29 0x0000000000a5f0b0 in ?? () >> >> >> #30 0x0000000040223f50 in ?? () >> >> >> #31 0x000000004001f5d8 in ?? () >> >> >> #32 0x00002aaaaacf8d20 in ?? () >> >> >> #33 0x0000000000a86770 in ?? () >> >> >> #34 0x0000000000000001 in ?? () >> >> >> #35 0x0000000000000011 in ?? () >> >> >> #36 0x00002aaaaacf8d20 in ?? () >> >> >> #37 0x00002aaaaacf8d20 in ?? () >> >> >> #38 0x00002aaaaaad3e60 in ?? () >> >> >> #39 0x0000000000a867e0 in ?? () >> >> >> #40 0x0000000000000000 in ?? () >> >> >> >> >> >> Thread 1 (Thread 46912496280112 (LWP 16759)): >> >> >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () >> >> >> from /lib64/libpthread.so.0 >> >> >> #1 0x00000000004bf110 in ?? () >> >> >> #2 0x00000000004c160d in ?? () >> >> >> #3 0x00000000004c5b95 in ?? () >> >> >> #4 0x000000000046ccc6 in mono_domain_finalize () >> >> >> #5 0x00000000004dc754 in ?? () >> >> >> #6 0x0000000000414678 in mono_main () >> >> >> #7 0x0000003fad01daa4 in __libc_start_main () from >> /lib64/libc.so.6 >> >> >> #8 0x0000000000413319 in g_str_equal () >> >> >> #9 0x00007fff93e6c348 in ?? () >> >> >> #10 0x0000000000000000 in ?? () >> >> >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () >> >> >> from /lib64/libpthread.so.0 >> >> >> >> >> >> >> >> >> ================================================================= >> >> >> Got a SIGSEGV while executing native code. This usually indicates >> >> >> a fatal error in the mono runtime or one of the native libraries >> >> >> used by your application. >> >> >> ================================================================= >> >> >> >> >> >> make: *** [test] Aborted >> >> >> >> >> >> > From mike at MIKESTREET.CA Fri Jun 8 21:59:22 2007 From: mike at MIKESTREET.CA (Mike Street) Date: Sat, 9 Jun 2007 12:59:22 +0800 Subject: Mapext from itemnquerymap? Message-ID: Hi list, First, thanks for all the help. I've taken in as much as a lurker can, and lately the archives have been my best friend and have solved most of my problems. But now I'm stuck on a few things: Specs: MS4W with a 'tricked out' version of the Itasca demo and the Rosa applet for display. First project, so just CGI, HTML templates, and lots of messy javascript. :) Details: A basic browse/query/itemnquery setup to find city info (shp layers - roads, trains, landmarks, etc.). The map displays in a main HTML template frame, the queries display in query frame. For query, I use a javascript call in the query frame for the Rosa SetImageURL function to display the querymap hilited feature in the main frame. (I haven't quite figured out the persistent hilite thing yet, but that's not really an issue for this project). For itemnquery, the user supplies the base of a qstring in a textbox in the mainframe, and the query displays in the query frame. I've then set links to the [Name] field of each layer's query template, which supplies the final qstring for an itemnquerymap call in the query frame to display in the main frame via the Rosa SetImageURL function. (It works well as long as there's only one return - more on this below). So, with that... everything works okay, except: 1. Most of my data are points layers, so I use "scale=10000&mapext=shapes" in the itemnquerymap call to centre on the point, but of course the main frame still 'remembers' its last extent, so I need to reset the mapext (and other stuff) in the parent.map_frame.document, so the user can continue on without interruption. Question 1: How can I find the mapext used in the 'mapext=shapes' thing from the itemnquerymap so I can set the parent.map_frame.document.form.mapext.value? 2. This one is less important, but totally annoys me because I can't understand it. :) Each shp file has 2 fields in common - [Name] and [Link]. When the records are returned via the query/itemnquery queries, I can use the value of the [Link] (i.e. http://whatever.com) to onclick pop a new browser window and load the URL, even if there are multiple records. But when I try the same with the [Name] field (set it as a link, then onclick to call the script to display the itemnquerymap (using the [Name] value as the qstring), the only value for EVERY listed record is that of the last returned record of the itemnquery. Question 2: So what's up with that? :) Sorry for the length. It's probably obvious I lack the correct terminology, so I made up for it with verbosity. :) I'd appreciate any help, and I promise to your name (and my gratitude) into the live version. :) Cheers, and many thanks in advance, Mike Street _________________________________________________________________ Need personalized email and website? Look no further. It's easy with Doteasy $0 Web Hosting! Learn more at www.doteasy.com From karsten at TERRAGIS.NET Sat Jun 9 16:44:55 2007 From: karsten at TERRAGIS.NET (Karsten Vennemann) Date: Sat, 9 Jun 2007 18:44:55 -0500 Subject: Annotation layer doesn't draw Message-ID: Hi list, I'm a beginner map server user and I couldn't figure out why the following Annotation layer will not draw on a linux machine (mapserver 4.10 and php mapscript). It works fine with map server version 4.6 and php mapscript on windows ... LAYER NAME "Populated Places" GROUP "Places" TYPE ANNOTATION STATUS ON MAXFEATURES 5 DATA "assets/mapdata/newlayers/social_cultural/place_name/nw_pop_places" LABELITEM "NAME" CLASS NAME "Labeled on Map" LABEL TYPE TRUETYPE FONT "verdana-italic" PARTIALS FALSE POSITION CC SIZE 8 BUFFER 5 COLOR 0 0 0 OUTLINECOLOR 217 199 163 END END END The layer's ref in the map file causes the whole map not to draw. If I remove the layer everything else works fine. On the server the log gives me: [Fri Jun 08 17:39:23 2007] [error] [client 67.101.5.35] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'Populated Places'., referer: http://mapserver.commenspace.org/jlt/internal-map.php?WashingtonProtectedLandsDatabase=9ebbabea435c8ae20fca5251f8598245&PSAInternalMapServer=cc81ed7ef87668ec4a0d166acd4e95a0&JLTInternalMapServer=9ac2429ce6f2375aae81835f5fb76c89&extent=-460000%2C405000%2C-415000%2C468000&width=784&height=653&init=1 Karsten From fsimon at UNIVALI.BR Sun Jun 10 18:15:58 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Sun, 10 Jun 2007 22:15:58 -0300 Subject: Mapserver + oracle spatial In-Reply-To: Message-ID: Hi all, I believe that the problem is with the "*" in your statement. I already saw some problems when the "*" is used, specially with the query modes. In your case I suggest to you to remove the "*" and change it to the columns from your table. Another hint is to remove the "1 = 1". Best regards, --------------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer --------------------------------------------------- Maher Karim wrote: > Dear Damien, > The best way to use such a query is to create a view in Oracle with based > on your query and it should be in this form of > create or replace view (viewname) as SELECT > GEO.GEOM, A.*, ID as UNIQUEID > FROM > MAILLES_CIEM GEO , > ( > SELECT > C0.code_geom, > C0.label_metric LT, > C0.valeur VT > FROM > SIH_CARTE_SIG C0 > WHERE > 1 = 1 > and session_id = 'b5b89cbf8a613059c7c41b9796c66c44' > and NUM_COUCHE = '466533b224b29' > and C0.rang = 0 > ) A > WHERE > 1 = 1 > and A.code_geom = GEO.CODECIEM > and trim(GEO.CODECIEM) is not null > ORDER BY > GEO.CODECIEM) > and use this data in the map file > data "geom from "Viewname" using unique UNIQUEID" > > Regards > Maher Abdel Karim > GIS systems analyst/programmer > DC Water and Environment > > > > |---------+---------------------------------> > | | Damien Corpataux | > | | | | TOCAMP.COM> | > | | Sent by: UMN MapServer| > | | Users List | > | | | | .UMN.EDU> | > | | | > | | | > | | 06/05/2007 05:33 PM | > | | Please respond to | > | | Damien Corpataux | > |---------+---------------------------------> > >--------------------------------------------------------------------------------------------------------------------------------------------------| > | | > | To: MAPSERVER-USERS at LISTS.UMN.EDU | > | cc: | > | Subject: [UMN_MAPSERVER-USERS] Mapserver + oracle spatial | > >--------------------------------------------------------------------------------------------------------------------------------------------------| > > > > Hello list, > > I have a problem with a mapserver oracle spatial laye: when dynamically > adding a oraclespatial layer with this kind of query: > GEOM FROM ( > SELECT > GEO.GEOM, A.*, ID as UNIQUEID > FROM > MAILLES_CIEM GEO , > ( > SELECT > C0.code_geom, > C0.label_metric LT, > C0.valeur VT > FROM > SIH_CARTE_SIG C0 > WHERE > 1 = 1 > and session_id = 'b5b89cbf8a613059c7c41b9796c66c44' > and NUM_COUCHE = '466533b224b29' > and C0.rang = 0 > ) A > WHERE > 1 = 1 > and A.code_geom = GEO.CODECIEM > and trim(GEO.CODECIEM) is not null > ORDER BY > GEO.CODECIEM) USING UNIQUE UNIQUEID NONE > > > any mapserver operation leads to mapserver crash. Has anyone faced this > situation? > > > Here is the output of gdb, when performing a $layer->whichShapes(). > > _gdb output_ > #0 0xb7b7b2ac in free () from /lib/tls/libc.so.6 > #1 0xb7b7ccff in malloc () from /lib/tls/libc.so.6 > #2 0xb70101d1 in msOracleSpatialLayerWhichShapes () > from /usr/lib/php5/20060613+lfs/php_mapscript.so > #3 0xb70040e5 in msLayerWhichShapes () > from /usr/lib/php5/20060613+lfs/php_mapscript.so > #4 0xb6fc87cf in layerObj_whichShapes () > from /usr/lib/php5/20060613+lfs/php_mapscript.so > #5 0xb6fbb453 in php3_ms_lyr_whichShapes () > from /usr/lib/php5/20060613+lfs/php_mapscript.so > #6 0xb752972f in execute () from /usr/lib/apache2/modules/libphp5.so > #7 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so > #8 0xb7529111 in execute () from /usr/lib/apache2/modules/libphp5.so > #9 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so > #10 0xb7529111 in execute () from /usr/lib/apache2/modules/libphp5.so > #11 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so > #12 0xb7529111 in execute () from /usr/lib/apache2/modules/libphp5.so > #13 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so > #14 0xb7529111 in execute () from /usr/lib/apache2/modules/libphp5.so > #15 0xb7519128 in execute () from /usr/lib/apache2/modules/libphp5.so > > apache.err (mapserver v4.8): > *** glibc detected *** corrupted double-linked list: 0x08f74d30 *** > [Fri Jun 01 16:34:24 2007] [notice] child pid 11105 exit signal Aborted (6) > > > apache.err (mapserver v4.10): > *** glibc detected *** malloc(): memory corruption: 0x08ebe720 *** > [Fri Jun 01 12:20:01 2007] [notice] child pid 1977 exit signal Aborted (6) > > > > > Best regards, > Damien Corpataux > > > -- > > > > Camptocamp SA > Damien Corpataux > PSE A > CH-1015 Lausanne > > +41 21 619 10 22 (Direct) > +41 21 619 10 10 (Centrale) > +41 21 619 10 00 (Fax) > > P Please consider the environment > Do you really need to print this email? > > > From IANT at NAPIER.GOVT.NZ Sun Jun 10 18:12:54 2007 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Mon, 11 Jun 2007 13:12:54 +1200 Subject: Coordinate Conversion Message-ID: Hi, I need some help with a small enhancement to my MapServer site. I have been asked to display the map extents and centre in other coordinate systems. Currently the map window returns NZMG co-ordinates, I have been asked to supply these coordinates in NZTM, WGS84, and a few others. I am using MapServer 4.6, MapScript and PHP on a Linux Server. Is there a MapScript function that will convert between coordinate systems or is there another way of doing this? Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Sun Jun 10 19:55:52 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sun, 10 Jun 2007 20:55:52 -0600 Subject: Coordinate Conversion In-Reply-To: Message-ID: On 6/10/07, Ian Tidy wrote: > > > > Hi, > > I need some help with a small enhancement to my MapServer site. I have been > asked to display the map extents and centre in other coordinate systems. > Currently the map window returns NZMG co-ordinates, I have been asked to > supply these coordinates in NZTM, WGS84, and a few others. > > I am using MapServer 4.6, MapScript and PHP on a Linux Server. > Is there a MapScript function that will convert between coordinate systems > or is there another way of doing this? > > Cheers Ian Are you looking to do this on the client (browser) or the server? There is a client-side library at: http://svn.codehaus.org/mapbuilder/cscs/trunk/ that is a port of the Proj.4 code from C to JavaScript. It is not a totally user friendly package yet, but it is the best bet for JavaScript, client-side, coordinate transformation. I have an example of it here: http://www2.tetonwyo.org/mapserver/tcd.html It works only in FireFox, but that limitation has nothing to do with the coordinate system transformation, it is the blue scroll bars around the sides. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From siukola.antti at GMAIL.COM Sun Jun 10 22:47:08 2007 From: siukola.antti at GMAIL.COM (antti siukola) Date: Mon, 11 Jun 2007 08:47:08 +0300 Subject: Problem with an odbc connection In-Reply-To: Message-ID: Hi! Can anyone help me with this? It's getting quite frustrating. Thanks! Antti S On 6/3/07, antti siukola wrote: > Hi! > > I get this error when trying to make an odbc connection via ovf: > > Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR > connection `/path/name.ovf'. Unable to initialize ODBC connection to > DSN for user/pass at DSN, [unixODBC][Driver Manager]Data source name not > found, and no default driver specified in /path/name.class.php on line > XX > > I have set up an DSN to /etc/odbc.ini like this: > > [DSN] > Driver = /usr/lib/libodbcmyS.so // this is my RedHat .so > DESCRIPTION = mysql driver > SERVER = localhost > PORT = 3306 > USER = user // changed to foobar for this email > Password = pass // changed to foobar for this email > Database = db // changed to foobar for this email > SOCKET = /var/lib/mysql/mysql.sock // this is correct > > For me it looks correct. Where could I start searching the problem? > > Thanks! > > Antti S > From aborruso at TIN.IT Mon Jun 11 02:12:57 2007 From: aborruso at TIN.IT (andy) Date: Mon, 11 Jun 2007 11:12:57 +0200 Subject: Coordinate Conversion In-Reply-To: Message-ID: Hi Ian, look if this code (phpmapscript) give you some ispiration. setXY(13, 38); //original coordinates $poPoint->project($projInObj, $projOutObj); echo $poPoint->x.",".$poPoint->y; //echo new coordinates ?> cheers, a Ian Tidy ha scritto: > > Hi, > > I need some help with a small enhancement to my MapServer site. I > have been asked to display the map extents and centre in other > coordinate systems. Currently the map window returns NZMG > co-ordinates, I have been asked to supply these coordinates in NZTM, > WGS84, and a few others. > > I am using MapServer 4.6, MapScript and PHP on a Linux Server. > Is there a MapScript function that will convert between coordinate > systems or is there another way of doing this? > > Cheers Ian > ______________________ > *Ian Tidy* > *GIS Analyst / Developer* > Works Asset Department > Napier City Council > Hastings St, Private Bag 6010, Napier, New Zealand > *Phone +64-6-835-7579 Ext. 8115* > Fax +64-6-834-4195 > _mailto:iant at napier.govt.nz_ > _http://www.napier.govt.nz_ | _http://maps.napier.govt.nz_ > > > ------------------------------------------------------------------------ > This e-mail message has been scanned for Viruses and Content and > cleared by *MailMarshal * > ------------------------------------------------------------------------ > ###################################################################### > Attention: > This e-mail message and accompanying data may contain information that > is confidential and subject to legal privilege. Any information > provided is given in good faith. However unless specifically stated to > the contrary, Napier City Council accepts no liability for the > content of this e-mail or for the consequences of any action taken on > the basis of the information provided, unless that information is > subsequently confirmed in writing. If you are not the intended recipient, > you are notified that any use, dissemination, distribution or copying > of this message or data is prohibited. If you received this e-mail > message in error, please notify us immediately and erase all copies > of this message and attachments. Thank you. > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.8.13/843 - Release Date: 10/06/2007 13.39 > From neeraj.lw at GMAIL.COM Mon Jun 11 03:02:45 2007 From: neeraj.lw at GMAIL.COM (Neeraj Singh) Date: Mon, 11 Jun 2007 15:32:45 +0530 Subject: is it possible to add icons from client side on a map? Message-ID: Hi, I am new to map, mapserver and related stuff. I want to know that: Is it possible to add icons on a map manually without doing a lot of coding ? Is there any tool available which can be used to add icons on map , so that a non-technical person be able to add icons without involved in the complexity on map generation? Thanks, Neeraj From jmckenna at DMSOLUTIONS.CA Mon Jun 11 04:21:13 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 11 Jun 2007 07:21:13 -0400 Subject: Problem installing ka-map 1.0 with ms4w 2.2.2 In-Reply-To: <20070608174140.51449.qmail@web52506.mail.re2.yahoo.com> Message-ID: Note that the MS4W downloads page has its own ka-Map package available that is already configured for MS4W. jeff carlos gordon wrote: > Hi all! > I?m trying to configure it the installation of ka-map with ms4w but i > have many troubles making it works properly, at first these are the > steps i follow: > 1. Creation of mapfile > 2. Configured the Apache web alias > 3. Before that i have to run the setenv.bat file to set the .dll path > 4. Defining alias and restartig Apache: > Alias /kamap "/ms4w/apps/ka-map-1.0/htdocs" > > AllowOverride None > Options Indexes FollowSymLinks Multiviews > Order allow,deny > Allow from all > > 5. Configuring config.php > First, pointing to php modules: > $szPHPMapScriptModule = "php_mapscript_4.10.0.".PHP_SHLIB_SUFFIX; > $szPHPGDModule = 'php_gd2.' .PHP_SHLIB_SUFFIX; > Later, defining the map array > $aszMapFiles = array( > "PanamaMap" => array( "Provincias Panama", > > "/ms4w/apps/kamap-1.0/htdocs/mapas/map/panama.map", > array( 250000, 120000, 75000, 30000, > 10000 ), > "PNG") > ); > * szMap should be set to the default map file to use but can change if > * this script is called with map=. > */ > $szMap = 'PanamaMap'; > Setting the directories for cache > * for the application (see mapfile configuration above.) > */ > $szBaseCacheDir = "C:/ms4w/tmp/ms_tmp/"; > /* Uncomment the following if you have a web accessible cache */ > $szBaseWebCache = "../tmp/ms_tmp/"; > But it doesn?t seem to work properly, because when i go to > http://localhost:8080/ka-map/, the browser IE 6.0, send me this message: > Line: 76 > Char: 1 > Error: Object expected > Code: 0 > URL: http://localhost:8080/ka-map/ > I'm using the ms4w 2.2.2 version and ka-map 1.0 on Windows XP 64x > I have like one week figthing with this problem, because i need to > configure kamap to create tiles and use it with Open Layers as a web > client in my project. > Thanxs in advanced, > > > Carlos A. Gord?n > Especialista en GIS > Tel. (507) 665-49715 > cagb78 at nuzkiamedia.com > V?a Sonadora, casa 5, > Penonome, Provincia de Cocl? > Panam? -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From rwburgholzer at DEQ.VIRGINIA.GOV Mon Jun 11 06:33:54 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Mon, 11 Jun 2007 09:33:54 -0400 Subject: Coordinate Conversion Message-ID: Ian, I interpreted your question a little differently than the other respondents, so, let me see if I understand your aim correctly, that is, 1) to have the option of displaying your map re-projected to other coordinate systems, OR 2) to be able to display the numeric values for the center and extents of the maps These are somewhat different aims, so if your aim is the 2nd option, then the code that Andy gave will do what you need. If you simply want to have an alternate projection, then you can just set the projection of your map to the desired projection using the mapscript function setProjection(string proj_params, boolean bSetUnitsAndExtents), and mapserver should automatically re-project for you (provided that each of your layers has its projection specified). You can find the documentation for this function in the phpMapscript/mapObj documentation on the mapserver web site. Good luck, r.b. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ian Tidy Sent: Sunday, June 10, 2007 9:13 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Coordinate Conversion Hi, I need some help with a small enhancement to my MapServer site.? I have been asked to display the map extents and centre in other coordinate systems.? Currently the map window returns NZMG co-ordinates, I have been asked to supply these coordinates in NZTM, WGS84, and a few others. I am using MapServer 4.6, MapScript and PHP on a Linux Server. Is there a MapScript function that will convert between coordinate systems or is there another way of doing this? Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. From Steve.Lime at DNR.STATE.MN.US Mon Jun 11 08:40:23 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 11 Jun 2007 10:40:23 -0500 Subject: Mapext from itemnquerymap? In-Reply-To: <466A33AA.5090007@mikestreet.ca> Message-ID: For 1) you can't get both an extent and the image using itemnquerymap. The ...map modes return an image stream so there is no way to encode other information. The work around is to use templates and probably AJAX. If you do an itemnquery with the following template: [img] [mapext] You'll get back the base path to the created image (in the temporary directory) and the extent in one little package. You could muck with the format to return XML or JSON to ease parsing on the client. That's your best bet. For 2) I'd like to see that behavior. Sounds like a bug to me or possibly a conflict with parameters being passed. If you're using 4.10 you could try the [item...] tag as a work around. Steve >>> On 6/8/2007 at 11:59 PM, in message <466A33AA.5090007 at mikestreet.ca>, Mike Street wrote: > Hi list, > > First, thanks for all the help. I've taken in as much as a lurker can, > and lately the archives have been my best friend and have solved most of > my problems. But now I'm stuck on a few things: > > Specs: MS4W with a 'tricked out' version of the Itasca demo and the Rosa > applet for display. First project, so just CGI, HTML templates, and lots > of messy javascript. :) > > Details: A basic browse/query/itemnquery setup to find city info (shp > layers - roads, trains, landmarks, etc.). The map displays in a main > HTML template frame, the queries display in query frame. > > For query, I use a javascript call in the query frame for the Rosa > SetImageURL function to display the querymap hilited feature in the main > frame. (I haven't quite figured out the persistent hilite thing yet, but > that's not really an issue for this project). > > For itemnquery, the user supplies the base of a qstring in a textbox in > the mainframe, and the query displays in the query frame. I've then set > links to the [Name] field of each layer's query template, which supplies > the final qstring for an itemnquerymap call in the query frame to > display in the main frame via the Rosa SetImageURL function. (It works > well as long as there's only one return - more on this below). > > So, with that... everything works okay, except: > > 1. Most of my data are points layers, so I use > "scale=10000&mapext=shapes" in the itemnquerymap call to centre on the > point, but of course the main frame still 'remembers' its last extent, > so I need to reset the mapext (and other stuff) in the > parent.map_frame.document, so the user can continue on without interruption. > > Question 1: How can I find the mapext used in the 'mapext=shapes' thing > from the itemnquerymap so I can set the > parent.map_frame.document.form.mapext.value? > > 2. This one is less important, but totally annoys me because I can't > understand it. :) Each shp file has 2 fields in common - [Name] and > [Link]. When the records are returned via the query/itemnquery queries, > I can use the value of the [Link] (i.e. http://whatever.com) to onclick > pop a new browser window and load the URL, even if there are multiple > records. But when I try the same with the [Name] field (set it as a > link, then onclick to call the script to display the itemnquerymap > (using the [Name] value as the qstring), the only value for EVERY listed > record is that of the last returned record of the itemnquery. > > Question 2: So what's up with that? :) > > Sorry for the length. It's probably obvious I lack the correct > terminology, so I made up for it with verbosity. :) > > I'd appreciate any help, and I promise to your name (and > my gratitude) into the live version. :) > > Cheers, and many thanks in advance, > Mike Street > > > > > _________________________________________________________________ > Need personalized email and website? Look no further. It's easy > with Doteasy $0 Web Hosting! Learn more at www.doteasy.com From mark_brooks at NCSU.EDU Mon Jun 11 13:08:02 2007 From: mark_brooks at NCSU.EDU (Mark Brooks) Date: Mon, 11 Jun 2007 16:08:02 -0400 Subject: mapserver and msCross Message-ID: I'm trying to implement msCross (ajax) ith mapserver and mapscript (PHP). My maps are dynamic and are usually created on-the-fly based on user input. Therefore, much of my code is PHP using mapscript. Does anyone have any examples I can see that demonstrate the integration of msCross with mapscript? Much thanks, Mark NC State University From pedro1_72 at YAHOO.COM Mon Jun 11 13:13:31 2007 From: pedro1_72 at YAHOO.COM (Nahum Castro) Date: Mon, 11 Jun 2007 15:13:31 -0500 Subject: Segfault with 4.10.2 Message-ID: Hello all: I have upgraded to mapserver 4.10.2 from 4.10.0, I found strange behavior, mapserver ignore offset from my map file on gtiff files. And suddenly pmmaper stop to work, I have copied mapserv and php_mapscript.so, restarted apache with no success. How I can find what is the segfault cause, library o configuration error. Thanks to all. -- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com Llama gratis a cualquier PC del mundo. Con una excelente calidad de sonido. http://mx.messenger.yahoo.com/ From IANT at NAPIER.GOVT.NZ Mon Jun 11 13:22:24 2007 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Tue, 12 Jun 2007 08:22:24 +1200 Subject: Coordinate Conversion In-Reply-To: A<466D1219.8000109@tin.it> Message-ID: Thanks to all who replied, this does what I want. Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of andy Sent: Monday, 11 June 2007 9:13 p.m. To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Coordinate Conversion Hi Ian, look if this code (phpmapscript) give you some ispiration. setXY(13, 38); //original coordinates $poPoint->project($projInObj, $projOutObj); echo $poPoint->x.",".$poPoint->y; //echo new coordinates ?> cheers, a Ian Tidy ha scritto: > > Hi, > > I need some help with a small enhancement to my MapServer site. I > have been asked to display the map extents and centre in other > coordinate systems. Currently the map window returns NZMG > co-ordinates, I have been asked to supply these coordinates in NZTM, > WGS84, and a few others. > > I am using MapServer 4.6, MapScript and PHP on a Linux Server. > Is there a MapScript function that will convert between coordinate > systems or is there another way of doing this? > > Cheers Ian > ______________________ > *Ian Tidy* > *GIS Analyst / Developer* > Works Asset Department > Napier City Council > Hastings St, Private Bag 6010, Napier, New Zealand > *Phone +64-6-835-7579 Ext. 8115* > Fax +64-6-834-4195 > _mailto:iant at napier.govt.nz_ > _http://www.napier.govt.nz_ | _http://maps.napier.govt.nz_ > > > ------------------------------------------------------------------------ > This e-mail message has been scanned for Viruses and Content and > cleared by *MailMarshal * > ------------------------------------------------------------------------ > ###################################################################### > Attention: > This e-mail message and accompanying data may contain information that > is confidential and subject to legal privilege. Any information > provided is given in good faith. However unless specifically stated to > the contrary, Napier City Council accepts no liability for the > content of this e-mail or for the consequences of any action taken on > the basis of the information provided, unless that information is > subsequently confirmed in writing. If you are not the intended recipient, > you are notified that any use, dissemination, distribution or copying > of this message or data is prohibited. If you received this e-mail > message in error, please notify us immediately and erase all copies > of this message and attachments. Thank you. > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.8.13/843 - Release Date: 10/06/2007 13.39 > ######################################################################## ############# This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ######################################################################## ############# ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. From rwburgholzer at DEQ.VIRGINIA.GOV Mon Jun 11 13:23:32 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Mon, 11 Jun 2007 16:23:32 -0400 Subject: Mapserver Development Environments? Message-ID: I am looking for a site with some links to various development environments for mapserver. That is, applications that help automate some of the site development process. I recall there being a list of these at one time, but now I am unable to find it on the mapserver site. Thanks. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigomartin at LOPEZGREGORIO.COM.AR Mon Jun 11 13:31:24 2007 From: rodrigomartin at LOPEZGREGORIO.COM.AR (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Mon, 11 Jun 2007 17:31:24 -0300 Subject: mapserver and msCross In-Reply-To: <466DABA2.3010104@ncsu.edu> Message-ID: Hi Mark. A few month ago (Jan 22) Stefan Schwarzer ask a similar question and in that moment I send him my response outside the list. I paste here my last mail to him in wich I put a long explanation about all the steps I had to do to use PHP Mapscript with mscross. I dont even remember what I wrote but I paste it here. If you have any question ask me again. Sorry my english. Rodrigo. Hi. Ok, lets see if with some examples I can show you what I was talking about previously. Sorry if sometimes I ask basics questions or explain some basic stuff but I allways try to explain in a way that even my mother can understand what I'm talking about. First of all, if you play around a little bit with the mscross code, you will see that the way mscross obtains the image of the map is asking directly to mapserver cgi interface, generating the necesary url and assigning it to an HTML element (created dinamically by de javascript code). So, what ajax interface was expecting from the server is an image file and not an HTML file. That is why you must modify your PHP Mapscript file to return an image file instead of just HTML code. So, lets go with a simple example... To make it simple, supose you have a mapfile ready to use with mapserver and do not need to create anything dinamically so the PHP Mapscript becomes quite simple. Lets supose the mapfile have a png OUTPUTFORMAT, and three LAYERS named "countrys" "rivers" and "sea". If the mapfile is located in /mymaps/ and it name is " example1.map", then the CGI url to obtain a map (the one generated by mscross) is something like this: http://myserver/cgi-bin/mapserv.exe? map=/mymaps/example1.map&mode=map&mapext=5649512+6099485+5711778+6144474&mapsize=800+600& layers=countrys%20rivers%20sea (note that I'm using mapserver for windows but on linux the url will be almost the same) The "object" returned by mapserver CGI interface will be an Image object ( i.e. the content of the image). So the first thing you need to use your PHPMapscript with the mscross interface is make that your PHP Mapscript file return an image object and not a html object with an element on it. So, lets see the contest of this simple PHP Mapscript file: setExtent(5649512,6099485,5711778,6144474); // We set the extent of map $map->setSize(800,600); // and set the image size (resolution) $map->getLayerByName("countrys")->set(status,MS_ON); $map->getLayerByName("rivers")->set(status,MS_ON); $map->getLayerByName("sea")->set(status,MS_ON); // Set the status of three layers to on $image=$map->draw(); $imagename=$image->saveWebImage(); //Draw the image to a temp file and copy image name to the $imagename variable $image = ImageCreateFromPng("/ms4w/tmp/".$imagename); // Read the image saved previously to the $image variable imagePng($image); // Return the image content to the browser ?> Maybe there is a way to avoid the save to disk and read from disk operation but I didn't waste too much time looking for an alternative. So the previous PHP Mapscript will create a mapobject, set the properties properly and then return the image to the browser just like an image object. If you call this php file from your browser, the browser will get a png image file with the map drawed. Obviously the PHP Mapscript could be more complex, create layers, class and labels dinamically, but it must be always return an image file which is achieved with the header function in conjunct with the imagePng call at the end of the Mapscript. The next thing to do is make this Mapscript more flexible, so it could recieve the map extent, map size and layers (and maybe the mapfile even) as parameters. Sinse mscross use the GET method to obtain images we can modify our Mapscript file to get this parameters and set it properly. So, if we mantain the variables name as the ones used to get images from CGI interface to make it more simple we can modify our PHP Mapscript file so it can be more flexible and modify its output according to the url parameters: setExtent($extent[0], $extent[1], $extent[2], $extent[3]); // We get the mapext parameter... split it on its 4 parts using the space character as splitter $size = explode(" ",$_GET['mapsize']); $map->setSize($size[0], $size[1]); // and set the image size (resolution) based on mapsize parameter $layerslist=$_GET['layers']; for ($layer = 0; $layer < $map->numlayers; $layer++) { $lay = $map->getLayer($layer); if ((strpos($layerslist,($map->getLayer($layer)->name)) !== false) or (($map->getLayer($layer)->group != "") and (strpos($layerslist,($map->getLayer($layer)->group)) !== false))){ // if the name property of actual $lay object is in $layerslist // or the group property is in $layerslist then the layer was requested //so we set the status ON... otherwise we set the stat to OFF $lay->set(status,MS_ON); } else { $lay->set(status,MS_OFF); } } // The next lines are the same as previous mapscript $image=$map->draw(); $imagename=$image->saveWebImage(); $image = ImageCreateFromPng("/ms4w/tmp/".$imagename); imagePng($image); ?> If you want to get a map drawed throw this mapscript, you must now pass various parameters in the url... something like this: http://myserver/myPHPMapscript.php?map=/mymaps/example1.map&mapext=5649512+6099485+5711778+6144474&mapsize=800+600&layers=countrys%20rivers%20sea Again, the Mapscript could be more complex but always must return an image object. So the last thing we must do is get it work with the mscross ajax... Lets work with the last version of mscross javascript available at: http://datacrossing.crs4.it/download.php?l=en&id=mscross-1.1.8.js First take a look at the get_map_url() method of mscross class on mscross-1.1.8.js file... It looks something like this (I remove some lines which gives support to use wms servers): this.get_map_url = function() { var my_url; if (_protocol == 'mapservercgi') { var size = 'mapsize=' + (_map_w+_map_w_bord+_map_w_bord) + '+' + (_map_h+_map_h_bord+_map_h_bord); var ext = 'mapext=' + (_ext_Xmin-i.wPixel2real(_map_w_bord)) + '+' + (_ext_Ymin-i.hPixel2real(_map_h_bord)) + '+' + (_ext_Xmax+i.wPixel2real(_map_w_bord)) + '+' + (_ext_Ymax+i.hPixel2real(_map_h_bord)) ; my_url = _cgi + '?mode=' + _mode + '&' + _map_file + '&' + ext + '&' + size + '&layers=' + _layers; // Opera9 Bug Fix (onload event don't work if image is in cache) if (browser.isOP ) {my_url = my_url + '&' + Math.random();} } return my_url + '&' + _args; } Basically, this function build the url of the Mapserver CGI interface, so we must get it work with our recently created PHP Mapscript file. If you take a look at the line in bold, there is where the url is created: my_url = _cgi + '?mode=' + _mode + '&' + _map_file + '&' + ext + '&' + size + '&layers=' + _layers; there are some fixed (strings) parts and some variable parts in this line... first it put the _cgi content which is set using the mscross setCgi() method. Then it add the mode parameter that we dont need to use so it could be removed. Then the mapfile parameter which is set using the mscross setMapFile() method. afther mapfile parameter it puts the extent parameter at ext variable which is created some lines before and is based on the mscross object properties setted by the setFullExtent() method and the size parameter (width and height of image) which are calculated on the mscross object creation from container div width and height. Finaly it pass the layers parameter based on _layers variable setted by the mscross setLayers() method. So we want to get this url look like the one we create for the second PHP Mapscript file, so we need to set the variables properly to get my_url look like: http://myserver/myPHPMapscript.php?map=/mymaps/example1.map&mapext=5649512+6099485+5711778+6144474&mapsize=800+600& layers=countrys%20rivers%20sea The way to obtain this is: set the _cgi variable to "http://myserver/myPHPMapscript.php" using the setCgi() method. set the mapfile to "/mymaps/example1.map" using the setMapFile() method. set map extentention to (5649512,6099485,5711778,6144474) using the setFullExtent() method. and set the layers to "countrys rivers sea" using the setLayers() method (the map size is setted automatically when the mscross object is created). and finally if yo want to avoid the pass of mode parameter you can modify the get_map_url() method and remove it from the line as follows: my_url = _cgi + '?' + _map_file + '&' + ext + '&' + size + '&layers=' + _layers; So, at this point we can make a simple html file to get our mscross and PHP Mapscript working together... a simple html could be the next one:
Ok, I think that this is all :P. I hope I was clear enough but I encourage you to ask me whatever you want. Sorry my veeeeeery long mail and I hope that it be helpful. Greetings from Argentina. On 6/11/07, Mark Brooks wrote: > > I'm trying to implement msCross (ajax) ith mapserver and mapscript > (PHP). My maps are dynamic and are usually created on-the-fly based on > user input. Therefore, much of my code is PHP using mapscript. > > Does anyone have any examples I can see that demonstrate the integration > of msCross with mapscript? > > Much thanks, > Mark > NC State University > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigomlg at GMAIL.COM Mon Jun 11 14:36:48 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Mon, 11 Jun 2007 18:36:48 -0300 Subject: mapserver and msCross In-Reply-To: <466DABA2.3010104@ncsu.edu> Message-ID: Hi Mark. (I send this message again because previously I use the wrong mail address and I presume the mail will not be delivered to the list). A few month ago (Jan 22) Stefan Schwarzer ask a similar question and in that moment I send him my response outside the list. I paste here my last mail to him in wich I put a long explanation about all the steps I had to do to use PHP Mapscript with mscross. I dont even remember what I wrote but I paste it here. If you have any question ask me again. Sorry my english. Rodrigo. Hi. Ok, lets see if with some examples I can show you what I was talking about previously. Sorry if sometimes I ask basics questions or explain some basic stuff but I allways try to explain in a way that even my mother can understand what I'm talking about. First of all, if you play around a little bit with the mscross code, you will see that the way mscross obtains the image of the map is asking directly to mapserver cgi interface, generating the necesary url and assigning it to an HTML element (created dinamically by de javascript code). So, what ajax interface was expecting from the server is an image file and not an HTML file. That is why you must modify your PHP Mapscript file to return an image file instead of just HTML code. So, lets go with a simple example... To make it simple, supose you have a mapfile ready to use with mapserver and do not need to create anything dinamically so the PHP Mapscript becomes quite simple. Lets supose the mapfile have a png OUTPUTFORMAT, and three LAYERS named "countrys" "rivers" and "sea". If the mapfile is located in /mymaps/ and it name is " example1.map", then the CGI url to obtain a map (the one generated by mscross) is something like this: http://myserver/cgi-bin/mapserv.exe? map=/mymaps/example1.map&mode=map&mapext=5649512+6099485+5711778+6144474&mapsize=800+600& layers=countrys%20rivers%20sea (note that I'm using mapserver for windows but on linux the url will be almost the same) The "object" returned by mapserver CGI interface will be an Image object ( i.e. the content of the image). So the first thing you need to use your PHPMapscript with the mscross interface is make that your PHP Mapscript file return an image object and not a html object with an element on it. So, lets see the contest of this simple PHP Mapscript file: setExtent(5649512,6099485,5711778,6144474); // We set the extent of map $map->setSize(800,600); // and set the image size (resolution) $map->getLayerByName("countrys")->set(status,MS_ON); $map->getLayerByName("rivers")->set(status,MS_ON); $map->getLayerByName("sea")->set(status,MS_ON); // Set the status of three layers to on $image=$map->draw(); $imagename=$image->saveWebImage(); //Draw the image to a temp file and copy image name to the $imagename variable $image = ImageCreateFromPng("/ms4w/tmp/".$imagename); // Read the image saved previously to the $image variable imagePng($image); // Return the image content to the browser ?> Maybe there is a way to avoid the save to disk and read from disk operation but I didn't waste too much time looking for an alternative. So the previous PHP Mapscript will create a mapobject, set the properties properly and then return the image to the browser just like an image object. If you call this php file from your browser, the browser will get a png image file with the map drawed. Obviously the PHP Mapscript could be more complex, create layers, class and labels dinamically, but it must be always return an image file which is achieved with the header function in conjunct with the imagePng call at the end of the Mapscript. The next thing to do is make this Mapscript more flexible, so it could recieve the map extent, map size and layers (and maybe the mapfile even) as parameters. Sinse mscross use the GET method to obtain images we can modify our Mapscript file to get this parameters and set it properly. So, if we mantain the variables name as the ones used to get images from CGI interface to make it more simple we can modify our PHP Mapscript file so it can be more flexible and modify its output according to the url parameters: setExtent($extent[0], $extent[1], $extent[2], $extent[3]); // We get the mapext parameter... split it on its 4 parts using the space character as splitter $size = explode(" ",$_GET['mapsize']); $map->setSize($size[0], $size[1]); // and set the image size (resolution) based on mapsize parameter $layerslist=$_GET['layers']; for ($layer = 0; $layer < $map->numlayers; $layer++) { $lay = $map->getLayer($layer); if ((strpos($layerslist,($map->getLayer($layer)->name)) !== false) or (($map->getLayer($layer)->group != "") and (strpos($layerslist,($map->getLayer($layer)->group)) !== false))){ // if the name property of actual $lay object is in $layerslist // or the group property is in $layerslist then the layer was requested //so we set the status ON... otherwise we set the stat to OFF $lay->set(status,MS_ON); } else { $lay->set(status,MS_OFF); } } // The next lines are the same as previous mapscript $image=$map->draw(); $imagename=$image->saveWebImage(); $image = ImageCreateFromPng("/ms4w/tmp/".$imagename); imagePng($image); ?> If you want to get a map drawed throw this mapscript, you must now pass various parameters in the url... something like this: http://myserver/myPHPMapscript.php?map=/mymaps/example1.map&mapext=5649512+6099485+5711778+6144474&mapsize=800+600&layers=countrys%20rivers%20sea Again, the Mapscript could be more complex but always must return an image object. So the last thing we must do is get it work with the mscross ajax... Lets work with the last version of mscross javascript available at: http://datacrossing.crs4.it/download.php?l=en&id=mscross-1.1.8.js First take a look at the get_map_url() method of mscross class on mscross-1.1.8.js file... It looks something like this (I remove some lines which gives support to use wms servers): this.get_map_url = function() { var my_url; if (_protocol == 'mapservercgi') { var size = 'mapsize=' + (_map_w+_map_w_bord+_map_w_bord) + '+' + (_map_h+_map_h_bord+_map_h_bord); var ext = 'mapext=' + (_ext_Xmin-i.wPixel2real(_map_w_bord)) + '+' + (_ext_Ymin-i.hPixel2real(_map_h_bord)) + '+' + (_ext_Xmax+i.wPixel2real(_map_w_bord)) + '+' + (_ext_Ymax+i.hPixel2real(_map_h_bord)) ; my_url = _cgi + '?mode=' + _mode + '&' + _map_file + '&' + ext + '&' + size + '&layers=' + _layers; // Opera9 Bug Fix (onload event don't work if image is in cache) if (browser.isOP ) {my_url = my_url + '&' + Math.random();} } return my_url + '&' + _args; } Basically, this function build the url of the Mapserver CGI interface, so we must get it work with our recently created PHP Mapscript file. If you take a look at the line in bold, there is where the url is created: my_url = _cgi + '?mode=' + _mode + '&' + _map_file + '&' + ext + '&' + size + '&layers=' + _layers; there are some fixed (strings) parts and some variable parts in this line... first it put the _cgi content which is set using the mscross setCgi() method. Then it add the mode parameter that we dont need to use so it could be removed. Then the mapfile parameter which is set using the mscross setMapFile() method. afther mapfile parameter it puts the extent parameter at ext variable which is created some lines before and is based on the mscross object properties setted by the setFullExtent() method and the size parameter (width and height of image) which are calculated on the mscross object creation from container div width and height. Finaly it pass the layers parameter based on _layers variable setted by the mscross setLayers() method. So we want to get this url look like the one we create for the second PHP Mapscript file, so we need to set the variables properly to get my_url look like: http://myserver/myPHPMapscript.php ?map=/mymaps/example1.map&mapext=5649512+6099485+5711778+6144474&mapsize=800+600& layers=countrys%20rivers%20sea The way to obtain this is: set the _cgi variable to " http://myserver/myPHPMapscript.php" using the setCgi() method. set the mapfile to "/mymaps/example1.map" using the setMapFile() method. set map extentention to (5649512,6099485,5711778,6144474) using the setFullExtent() method. and set the layers to "countrys rivers sea" using the setLayers() method (the map size is setted automatically when the mscross object is created). and finally if yo want to avoid the pass of mode parameter you can modify the get_map_url() method and remove it from the line as follows: my_url = _cgi + '?' + _map_file + '&' + ext + '&' + size + '&layers=' + _layers; So, at this point we can make a simple html file to get our mscross and PHP Mapscript working together... a simple html could be the next one:
Ok, I think that this is all :P. I hope I was clear enough but I encourage you to ask me whatever you want. Sorry my veeeeeery long mail and I hope that it be helpful. Greetings from Argentina. On 6/11/07, Mark Brooks wrote: > > I'm trying to implement msCross (ajax) ith mapserver and mapscript > (PHP). My maps are dynamic and are usually created on-the-fly based on > user input. Therefore, much of my code is PHP using mapscript. > > Does anyone have any examples I can see that demonstrate the integration > of msCross with mapscript? > > Much thanks, > Mark > NC State University > -------------- next part -------------- An HTML attachment was scrubbed... URL: From neeraj.lw at GMAIL.COM Mon Jun 11 21:33:30 2007 From: neeraj.lw at GMAIL.COM (Neeraj Singh) Date: Tue, 12 Jun 2007 10:03:30 +0530 Subject: from where can I get GIS data? Message-ID: hi, I am new to mapserver technology , installed MS4W with php and mysql . I am wandering, how this shapefiles are created and unable to create one on my own. Is there a tool available to create shapefiles or can I get this GIS data from some-where. Thanks, Neeraj Singh M.C.A. Senior Software Engineer, Intercom Online From mike at MIKESTREET.CA Mon Jun 11 21:08:48 2007 From: mike at MIKESTREET.CA (Mike Street) Date: Tue, 12 Jun 2007 12:08:48 +0800 Subject: Mapext from itemnquerymap? In-Reply-To: <466D269D.5157.008F.0@dnr.state.mn.us> Message-ID: Hi Steve, Thanks for the reply. I've since changed things around - an itemnquery search from the main map_frame, then added a "Map it" link to each returned record in the query template that loads the map_frame in browse mode and recentres using the specific item's shpmid&scale (points) or shpext (lines/polygons). No fancy hilite, but eliminating the Rosa SetImageURL function also eliminated another weirdness I was dealing with (I can't figure out how to make IE/Opera play nice with it due to the "Click to activate" issue - even though my workaround *(jactivating*.sourceforge.net/) works admirably with Rosa within the main map_frame). As for #2, it's likely not a bug, just bad coding. :) When I insert the onclick=do_something directly into the query template (ie., put the "map it" graphic in the query template and link it to load the map_frame), it works fine. When I try using an outside js function (ie., onclick= "LoadMap()"), it only uses the last record. I'm guessing it's because the js function isn't in the (though I barely recall including the tags at 3am with no success) :), but I'm now using an inline link it's not a problem. I'm sure smarter guys than me are laughing at reading this. :) Anyway, thanks again for the help, and after I (cough) actually finish plotting the shapes, I'll return to the fancy hilite thing and mucking with the JSON. Mike Steve Lime wrote: > For 1) you can't get both an extent and the image using itemnquerymap. The ...map modes return an image stream so there is no way to encode other information. The work around is to use templates and probably AJAX. If you do an itemnquery with the following template: > > [img] > [mapext] > > You'll get back the base path to the created image (in the temporary directory) and the extent in one little package. You could muck with the format to return XML or JSON to ease parsing on the client. That's your best bet. > > For 2) I'd like to see that behavior. Sounds like a bug to me or possibly a conflict with parameters being passed. If you're using 4.10 you could try the [item...] tag as a work around. > > Steve > > >>>> On 6/8/2007 at 11:59 PM, in message <466A33AA.5090007 at mikestreet.ca>, Mike >>>> > Street wrote: > >> Hi list, >> >> First, thanks for all the help. I've taken in as much as a lurker can, >> and lately the archives have been my best friend and have solved most of >> my problems. But now I'm stuck on a few things: >> >> Specs: MS4W with a 'tricked out' version of the Itasca demo and the Rosa >> applet for display. First project, so just CGI, HTML templates, and lots >> of messy javascript. :) >> >> Details: A basic browse/query/itemnquery setup to find city info (shp >> layers - roads, trains, landmarks, etc.). The map displays in a main >> HTML template frame, the queries display in query frame. >> >> For query, I use a javascript call in the query frame for the Rosa >> SetImageURL function to display the querymap hilited feature in the main >> frame. (I haven't quite figured out the persistent hilite thing yet, but >> that's not really an issue for this project). >> >> For itemnquery, the user supplies the base of a qstring in a textbox in >> the mainframe, and the query displays in the query frame. I've then set >> links to the [Name] field of each layer's query template, which supplies >> the final qstring for an itemnquerymap call in the query frame to >> display in the main frame via the Rosa SetImageURL function. (It works >> well as long as there's only one return - more on this below). >> >> So, with that... everything works okay, except: >> >> 1. Most of my data are points layers, so I use >> "scale=10000&mapext=shapes" in the itemnquerymap call to centre on the >> point, but of course the main frame still 'remembers' its last extent, >> so I need to reset the mapext (and other stuff) in the >> parent.map_frame.document, so the user can continue on without interruption. >> >> Question 1: How can I find the mapext used in the 'mapext=shapes' thing >> from the itemnquerymap so I can set the >> parent.map_frame.document.form.mapext.value? >> >> 2. This one is less important, but totally annoys me because I can't >> understand it. :) Each shp file has 2 fields in common - [Name] and >> [Link]. When the records are returned via the query/itemnquery queries, >> I can use the value of the [Link] (i.e. http://whatever.com) to onclick >> pop a new browser window and load the URL, even if there are multiple >> records. But when I try the same with the [Name] field (set it as a >> link, then onclick to call the script to display the itemnquerymap >> (using the [Name] value as the qstring), the only value for EVERY listed >> record is that of the last returned record of the itemnquery. >> >> Question 2: So what's up with that? :) >> >> Sorry for the length. It's probably obvious I lack the correct >> terminology, so I made up for it with verbosity. :) >> >> I'd appreciate any help, and I promise to your name (and >> my gratitude) into the live version. :) >> >> Cheers, and many thanks in advance, >> Mike Street >> >> >> >> >> _________________________________________________________________ >> Need personalized email and website? Look no further. It's easy >> with Doteasy $0 Web Hosting! Learn more at www.doteasy.com >> > > > > > _________________________________________________________________ Need personalized email and website? Look no further. It's easy with Doteasy $0 Web Hosting! Learn more at www.doteasy.com From siukola.antti at GMAIL.COM Mon Jun 11 23:50:23 2007 From: siukola.antti at GMAIL.COM (antti siukola) Date: Tue, 12 Jun 2007 09:50:23 +0300 Subject: from where can I get GIS data? In-Reply-To: <001501c7acaa$daf9a4c0$2101a8c0@server2003> Message-ID: Hi! You could just use google for free gis data (probably not much good free data available) and for creating your own data maybe qgis http://qgis.org/ Cheers Antti S On 6/12/07, Neeraj Singh wrote: > hi, > I am new to mapserver technology , installed MS4W with php and mysql . I am > wandering, how this shapefiles are created and unable to create one on my > own. Is there a tool available to create shapefiles or can I get this GIS > data from some-where. > > > Thanks, > Neeraj Singh > M.C.A. > Senior Software Engineer, > Intercom Online > From Michael.Pfeiffer at BD.SO.CH Tue Jun 12 00:02:11 2007 From: Michael.Pfeiffer at BD.SO.CH (Pfeiffer Michael) Date: Tue, 12 Jun 2007 09:02:11 +0200 Subject: AW: Re: [UMN_MAPSERVER-USERS] from where can I get GIS data? Message-ID: Hi Neeraj, you can download GIS-Data from the Suisse Kanton of Solothurn in shape and Raster-Format from the following Link: http://www.so.ch/de/pub/departemente/bjd/gis/daten.htm You have to click on the right site on SO!ONLINE. The description of the download is available in English (click the english flag on the left site in the window which opens after you have clicked SO!ONLINE) Hope this will help you. regards Michael Freundliche Gr?sse Michael Pfeiffer Kanton Solothurn Bau- und Justizdepartement Amt f?r Geoinformation R?tistrasse 4 4501 Solothurn T: ++41 (0)32 627 6087 Fax: ++41 (0)32 627 2214 http://www.agi.so.ch -----Urspr?ngliche Nachricht----- Von: antti siukola [mailto:siukola.antti at GMAIL.COM] Gesendet am: Dienstag, 12. Juni 2007 07:50 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] from where can I get GIS data? Hi! You could just use google for free gis data (probably not much good free data available) and for creating your own data maybe qgis http://qgis.org/ Cheers Antti S On 6/12/07, Neeraj Singh wrote: > hi, > I am new to mapserver technology , installed MS4W with php and mysql . I am > wandering, how this shapefiles are created and unable to create one on my > own. Is there a tool available to create shapefiles or can I get this GIS > data from some-where. > > > Thanks, > Neeraj Singh > M.C.A. > Senior Software Engineer, > Intercom Online > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Tue Jun 12 02:35:43 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 12 Jun 2007 11:35:43 +0200 Subject: Problems in testing Java Mapscript In-Reply-To: Message-ID: Search for other mapscript.dll. There should be another that does not require sde. Umberto On 6/7/07, Gaia Trecarichi wrote: > Hello, > > I have some problem in testing Java Mapscript. > > I answer some questions posted by Umberto and Rodrigo (thanks for the reply): > > - Probably there is a problem with sde91.dll because , using > Dependency Walker to scan mapscript.dll, it is found that sde91.dll is > missing. I cannot understand why mapscript.dll need sde91.dll since > I'm not using arcSDE. In case I need it, how can I download it? > > - Yes, I have rebooted Windows after changing SYSTEM path variable > > - Yes, I'm sure the path is set correctly in the SYSTEM variable > > If someone knows the correct list of the dll needed, please let me know. > > Below is reported in plain text the original email I sent some days ago: > > ------------------------------------------------------------------------------------------------------------------------- > Hello, > > I'm new in mapserver stuff and I'm trying to use Java Mapscript > without any success. > > My environment is: > > * Windows XP > * MS4W version 4.10.1. > * JDK 1.6.0_01 > * Eclipse > > I wanted to test some Java Mapscript functionality with a simple Java > program whose code is the following: > > ? > import edu.umn.gis.mapscript.*; > > public class ProvaMapscript { > > public static void main(String[] args) { > > ?. > > String mappath= new String("C:\\ms4w\\apps\\e-rescue\\" ); > > mapObj map = new mapObj(mappath.concat(" emergency2.map")); > > imageObj image = map.draw(); > > String image_url = "C:\\ms4w\\tmp\\ms_tmp\\emergency.png"; > > image.save(image_url, map); > > ? > > } > > } > > I get the following error: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program > Files\Java\jre1.6.0_01\bin\mapscript.dll: Can't find dependent > libraries > > at java.lang.ClassLoader$NativeLibrary.load(Native Method ) > > at java.lang.ClassLoader.loadLibrary0(Unknown Source) > > at java.lang.ClassLoader.loadLibrary(Unknown Source) > > at java.lang.Runtime.loadLibrary0(Unknown Source) > > at java.lang.System.loadLibrary(Unknown Source) > > at edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23 ) > > at edu.umn.gis.mapscript.mapObj.( mapObj.java:276) > > at ProvaMapscript.main( ProvaMapscript.java:51) > > I don't know exactly which libraries mapscript.dll requires but as far > as I could see from some forum the following list of dll's is needed: > > bgd.dll > > gdal14.dll > > geotiff.dll > > iconv.dll > > kernel32.dll > > libcurl.dll > > libecwj2.dll > > libmap.dll > > libmysql.dll > > libpq.dll > > libproj.dll > > libtiff.dll > > mapscript.dll > > msvcr71.dll > > msvcrt.dll > > ntdll.dll > > pdflib.dll > > proj.dll > > xerces-c_2_7.dll > > zlib1.dll > > dwmapi.dll > > I have them in the directory "C:\ms4w\Apache\cgi-bin" and this > directory is in the system environment variable PATH. > > I don't know exactly which is the problem. I'm thinking to 2 things: > > 1- As far as I can understand there is a library, namely sde91.dll, > that is needed by libmap.dll. I can't find this library in my > system. Is there anybody who knows where I can download this library? > (but I think I don't need it since I'm not using ESRI's ArcSDE) > > 2- Is it possible that my Java Mapscript files are not compatible with > my JDK version 1.6.0? I say it because I read in the > README_INSTALL.txt of MS4W the following: > > MapScript > > ? > > Java MapScript: compiled against Java 1.5.07 > > ? > > If anybody could help me in this problem I would be infinitely grateful!! > > Thank you in advance, > > Gaia > > ------------------------------------------------------------------------------------------------------------------ > From la_barrenadora at HOTMAIL.COM Tue Jun 12 02:53:48 2007 From: la_barrenadora at HOTMAIL.COM (Victor Herrero Cazurro) Date: Tue, 12 Jun 2007 11:53:48 +0200 Subject: mapscript in TOMCAT In-Reply-To: <10cf58b30706111331s3db3b9e9r54ab447f53a03413@mail.gmail.com> Message-ID: Good morning!! I have a web application, the method who call mapscript class, it works correctly in stand alone application, but when run in TOMCAT, throw a exception: "GRAVE: Servlet.service() para servlet action lanz? excepci?n java.lang.UnsatisfiedLinkError: no mapscript in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23) at edu.umn.gis.mapscript.mapObj.(mapObj.java:276) at es.nomenclator.struts.model.WFS.getfeature(WFS.java:24)" The line that reference is: "mapObj map = new mapObj("C:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map");" I have a environment variable: "path = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java" in this path are "mapscript.dll" and "mapscript.jar" And "mapscript.jar" is in classpath to web application. Can somebody tell me what happend?? Thanks _________________________________________________________________ ?Est?s pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/ From umberto.nicoletti at GMAIL.COM Tue Jun 12 02:58:49 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 12 Jun 2007 11:58:49 +0200 Subject: mapscript in TOMCAT In-Reply-To: Message-ID: mapscript.dll depends on other dlls that are not found in that path. Use a tool like dependency walker to find out dependencies and add them to the path. Umberto On 6/12/07, Victor Herrero Cazurro wrote: > Good morning!! > > I have a web application, the method who call mapscript class, it works > correctly in stand alone application, but when run in TOMCAT, throw a > exception: > > "GRAVE: Servlet.service() para servlet action lanz? excepci?n > java.lang.UnsatisfiedLinkError: no mapscript in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) > at java.lang.Runtime.loadLibrary0(Runtime.java:822) > at java.lang.System.loadLibrary(System.java:993) > at edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23) > at edu.umn.gis.mapscript.mapObj.(mapObj.java:276) > at es.nomenclator.struts.model.WFS.getfeature(WFS.java:24)" > > The line that reference is: > > "mapObj map = new > mapObj("C:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map");" > > I have a environment variable: > > "path = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java" > > in this path are "mapscript.dll" and "mapscript.jar" > > And "mapscript.jar" is in classpath to web application. > > Can somebody tell me what happend?? > > Thanks > > _________________________________________________________________ > ?Est?s pensando en cambiar de coche? Todas los modelos de serie y extras en > MSN Motor. http://motor.msn.es/researchcentre/ > From la_barrenadora at HOTMAIL.COM Tue Jun 12 03:02:27 2007 From: la_barrenadora at HOTMAIL.COM (Victor Herrero Cazurro) Date: Tue, 12 Jun 2007 12:02:27 +0200 Subject: Problems in testing Java Mapscript In-Reply-To: <75b4b93e0706120235i4d00d987g723841c60fc9df6d@mail.gmail.com> Message-ID: Hello, You have a environment variable "PROJ_LIB = C:\ms4w\proj\nad"? bye >From: Umberto Nicoletti >Reply-To: Umberto Nicoletti >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Problems in testing Java Mapscript >Date: Tue, 12 Jun 2007 11:35:43 +0200 > >Search for other mapscript.dll. There should be another that does not >require sde. > >Umberto > >On 6/7/07, Gaia Trecarichi wrote: >> Hello, >> >>I have some problem in testing Java Mapscript. >> >>I answer some questions posted by Umberto and Rodrigo (thanks for the >>reply): >> >>- Probably there is a problem with sde91.dll because , using >>Dependency Walker to scan mapscript.dll, it is found that sde91.dll is >>missing. I cannot understand why mapscript.dll need sde91.dll since >>I'm not using arcSDE. In case I need it, how can I download it? >> >>- Yes, I have rebooted Windows after changing SYSTEM path variable >> >>- Yes, I'm sure the path is set correctly in the SYSTEM variable >> >>If someone knows the correct list of the dll needed, please let me know. >> >>Below is reported in plain text the original email I sent some days ago: >> >>------------------------------------------------------------------------------------------------------------------------- >>Hello, >> >>I'm new in mapserver stuff and I'm trying to use Java Mapscript >>without any success. >> >>My environment is: >> >> * Windows XP >> * MS4W version 4.10.1. >> * JDK 1.6.0_01 >> * Eclipse >> >>I wanted to test some Java Mapscript functionality with a simple Java >>program whose code is the following: >> >> >>import edu.umn.gis.mapscript.*; >> >> public class ProvaMapscript { >> >> public static void main(String[] args) { >> >> . >> >> String mappath= new String("C:\\ms4w\\apps\\e-rescue\\" ); >> >> mapObj map = new mapObj(mappath.concat(" emergency2.map")); >> >> imageObj image = map.draw(); >> >> String image_url = "C:\\ms4w\\tmp\\ms_tmp\\emergency.png"; >> >> image.save(image_url, map); >> >> >> >> } >> >> } >> >>I get the following error: >> >>Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program >>Files\Java\jre1.6.0_01\bin\mapscript.dll: Can't find dependent >>libraries >> >> at java.lang.ClassLoader$NativeLibrary.load(Native Method ) >> >> at java.lang.ClassLoader.loadLibrary0(Unknown Source) >> >> at java.lang.ClassLoader.loadLibrary(Unknown Source) >> >> at java.lang.Runtime.loadLibrary0(Unknown Source) >> >> at java.lang.System.loadLibrary(Unknown Source) >> >> at edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23 >>) >> >> at edu.umn.gis.mapscript.mapObj.( mapObj.java:276) >> >> at ProvaMapscript.main( ProvaMapscript.java:51) >> >>I don't know exactly which libraries mapscript.dll requires but as far >>as I could see from some forum the following list of dll's is needed: >> >>bgd.dll >> >>gdal14.dll >> >>geotiff.dll >> >>iconv.dll >> >>kernel32.dll >> >>libcurl.dll >> >>libecwj2.dll >> >>libmap.dll >> >>libmysql.dll >> >>libpq.dll >> >>libproj.dll >> >>libtiff.dll >> >>mapscript.dll >> >>msvcr71.dll >> >>msvcrt.dll >> >>ntdll.dll >> >>pdflib.dll >> >>proj.dll >> >>xerces-c_2_7.dll >> >>zlib1.dll >> >>dwmapi.dll >> >>I have them in the directory "C:\ms4w\Apache\cgi-bin" and this >>directory is in the system environment variable PATH. >> >>I don't know exactly which is the problem. I'm thinking to 2 things: >> >>1- As far as I can understand there is a library, namely sde91.dll, >>that is needed by libmap.dll. I can't find this library in my >>system. Is there anybody who knows where I can download this library? >>(but I think I don't need it since I'm not using ESRI's ArcSDE) >> >>2- Is it possible that my Java Mapscript files are not compatible with >>my JDK version 1.6.0? I say it because I read in the >>README_INSTALL.txt of MS4W the following: >> >>MapScript >> >> >> >>Java MapScript: compiled against Java 1.5.07 >> >> >> >>If anybody could help me in this problem I would be infinitely grateful!! >> >>Thank you in advance, >> >>Gaia >> >>------------------------------------------------------------------------------------------------------------------ >> _________________________________________________________________ Moda para esta temporada. Ponte al d?a de todas las tendencias. http://www.msn.es/Mujer/moda/default.asp From la_barrenadora at HOTMAIL.COM Tue Jun 12 03:12:52 2007 From: la_barrenadora at HOTMAIL.COM (Victor Herrero Cazurro) Date: Tue, 12 Jun 2007 12:12:52 +0200 Subject: mapscript in TOMCAT In-Reply-To: <75b4b93e0706120258t539919a8t5ccafdd495603086@mail.gmail.com> Message-ID: Ok, but what path??? because this class it works correctly in stand alone application. Then the path of SO is correctly, or not? I think, that the problem is in path of TOMCAT. It is as if TOMCAT did not take the same path that the SO. thanks in advance, >From: Umberto Nicoletti >Reply-To: Umberto Nicoletti >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] mapscript in TOMCAT >Date: Tue, 12 Jun 2007 11:58:49 +0200 > >mapscript.dll depends on other dlls that are not found in that path. >Use a tool like dependency walker to find out dependencies and add >them to the path. > >Umberto > >On 6/12/07, Victor Herrero Cazurro wrote: >>Good morning!! >> >>I have a web application, the method who call mapscript class, it works >>correctly in stand alone application, but when run in TOMCAT, throw a >>exception: >> >>"GRAVE: Servlet.service() para servlet action lanz? excepci?n >>java.lang.UnsatisfiedLinkError: no mapscript in java.library.path >> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) >> at java.lang.Runtime.loadLibrary0(Runtime.java:822) >> at java.lang.System.loadLibrary(System.java:993) >> at >>edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23) >> at edu.umn.gis.mapscript.mapObj.(mapObj.java:276) >> at es.nomenclator.struts.model.WFS.getfeature(WFS.java:24)" >> >>The line that reference is: >> >>"mapObj map = new >>mapObj("C:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map");" >> >>I have a environment variable: >> >>"path = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java" >> >>in this path are "mapscript.dll" and "mapscript.jar" >> >>And "mapscript.jar" is in classpath to web application. >> >>Can somebody tell me what happend?? >> >>Thanks >> >>_________________________________________________________________ >>?Est?s pensando en cambiar de coche? Todas los modelos de serie y extras >>en >>MSN Motor. http://motor.msn.es/researchcentre/ >> _________________________________________________________________ Descubre la descarga digital con MSN Music. M?s de un mill?n de canciones. http://music.msn.es/ From umberto.nicoletti at GMAIL.COM Tue Jun 12 03:25:02 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 12 Jun 2007 12:25:02 +0200 Subject: mapscript in TOMCAT In-Reply-To: Message-ID: This path you wrote in the first email: "path = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java" should probably be: PATH = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java;%PATH% The latter preserves previous path settings, while the former resets the path completely, which is probably not what you intended to do. HTH, Umberto On 6/12/07, Victor Herrero Cazurro wrote: > Ok, but what path??? because this class it works correctly in stand alone > application. Then the path of SO is correctly, or not? I think, that the > problem is in path of TOMCAT. It is as if TOMCAT did not take the same path > that the SO. > > thanks in advance, > > > >From: Umberto Nicoletti > >Reply-To: Umberto Nicoletti > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] mapscript in TOMCAT > >Date: Tue, 12 Jun 2007 11:58:49 +0200 > > > >mapscript.dll depends on other dlls that are not found in that path. > >Use a tool like dependency walker to find out dependencies and add > >them to the path. > > > >Umberto > > > >On 6/12/07, Victor Herrero Cazurro wrote: > >>Good morning!! > >> > >>I have a web application, the method who call mapscript class, it works > >>correctly in stand alone application, but when run in TOMCAT, throw a > >>exception: > >> > >>"GRAVE: Servlet.service() para servlet action lanz? excepci?n > >>java.lang.UnsatisfiedLinkError: no mapscript in java.library.path > >> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) > >> at java.lang.Runtime.loadLibrary0(Runtime.java:822) > >> at java.lang.System.loadLibrary(System.java:993) > >> at > >>edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23) > >> at edu.umn.gis.mapscript.mapObj.(mapObj.java:276) > >> at es.nomenclator.struts.model.WFS.getfeature(WFS.java:24)" > >> > >>The line that reference is: > >> > >>"mapObj map = new > >>mapObj("C:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map");" > >> > >>I have a environment variable: > >> > >>"path = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java" > >> > >>in this path are "mapscript.dll" and "mapscript.jar" > >> > >>And "mapscript.jar" is in classpath to web application. > >> > >>Can somebody tell me what happend?? > >> > >>Thanks > >> > >>_________________________________________________________________ > >>?Est?s pensando en cambiar de coche? Todas los modelos de serie y extras > >>en > >>MSN Motor. http://motor.msn.es/researchcentre/ > >> > > _________________________________________________________________ > Descubre la descarga digital con MSN Music. M?s de un mill?n de canciones. > http://music.msn.es/ > From dadark at DADARK.DE Tue Jun 12 04:29:53 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Tue, 12 Jun 2007 06:29:53 -0500 Subject: MapScript projection error - CGI works fine Message-ID: Hi Mapserver Community! This is my first post here, I hope the project is still active. I've just been trying to migrate my MapServer stuff from the CGI version to the Ruby MapScript version for better integration with my Rails (for those of you who don't know, it's a Ruby web framework) application. Now, while CGI is working fine, the MapScript refuses to work at all, because of a projection error. This really confuses me, I'm using exactly the same mapfile for both of them. This is what I do in Ruby and the error I get: -- irb(main):001:0> require "mapscript" => true irb(main):002:0> include Mapscript => Object irb(main):003:0> map = MapObj.new("/var/www/map/moz_serv/moz.map") RuntimeError: loadProjection(): Projection library error. Projection support is not available. -- And here comes my mapfile.. I know it's not perfect and actually it wasn't even me who created it, but at least it works with CGI. -- CONFIG PROJ_LIB /usr/share/proj/ FONTSET /var/www/odamap/fontset PROJECTION "init=epsg:4306" END MAP #UNITS METERS NAME "Mozambique" STATUS ON # SHAPEPATH "./shape" EXTENT 24.5969016666667 -26.86644 46.4558883333333 -10.4722 SIZE 800 650 IMAGECOLOR 255 255 255 WEB IMAGEPATH "/var/www/odamap/tmp/" IMAGEURL "/tmp/" TEMPLATE "global1.phtml" END REFERENCE STATUS ON IMAGE "./reference/reference.gif" SIZE 160 112 #Farbe f�r die Umrandung (hier blau) EXTENT 24.5969016666667 -26.86644 46.4558883333333 -10.4722 COLOR -1 -1 -1 #F�llfarbe f�r die Referenzkarte (-1 stellt die Farbe aus) OUTLINECOLOR 0 0 255 END QUERYMAP STATUS ON #SIZE -1 -1 #SIZE 600 500 #Die Kartengr��e eingeben STYLE HILITE COLOR 0 0 250 END # LEGEND # STATUS EMBED # TRANSPARENT TRUE # POSITION LR # END SCALEBAR STATUS ON TRANSPARENT ON UNITS kilometers INTERVALS 5 STYLE 1 LABEL SIZE small COLOR 0 0 0 END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT OFF END ########### REST OF AFRICA ############ LAYER NAME "Africa" TYPE POLYGON STATUS DEFAULT DATA "the_geom from africa" LABELITEM "cntry_name" CONNECTIONTYPE POSTGIS CONNECTION "user=*** password=*** dbname=moz host=127.0.0.1 port=5432" CLASS STYLE COLOR 250 250 250 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype COLOR 0 0 0 OUTLINECOLOR 255 255 255 SIZE 10 FONT arialbd ANTIALIAS TRUE MINDISTANCE 100 END END END ####################################### LAYER NAME "Province" #STATUS DEFAULT DATA "the_geom from moz_adm1" TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "user=*** password=*** dbname=moz host=127.0.0.1 port=5432" #CLASSITEM "province" LABELITEM "adm1" CLASS NAME "GeoDaten_Province" EXPRESSION ([province] in ('%province%')) TEMPLATE "./templates/zusatzdaten.html" LABEL TYPE truetype COLOR 0 0 0 OUTLINECOLOR 255 255 255 SIZE 10 FONT arialbd MINDISTANCE 100 END STYLE COLOR 250 250 250 OUTLINECOLOR 0 0 0 END END CLASS NAME "non Projects Province" TEMPLATE "./templates/zusatzdaten.html" STYLE COLOR 250 250 100 OUTLINECOLOR 0 0 0 END END END LAYER NAME "Districts" # DATA "the_geom from moz_adm2" DATA "the_geom from district" TYPE POLYGON #STATUS DEFAULT CONNECTIONTYPE POSTGIS CONNECTION "user=*** password=*** dbname=moz host=127.0.0.1 port=5432" LABELITEM "district" #TRANSPARENCY 50 #CLASSITEM "district" CLASS #NAME "GeoDaten_Districts" EXPRESSION ([district] in ('%district%')) TEMPLATE "./templates/zusatzdaten1.html" LABEL TYPE truetype COLOR 0 0 0 OUTLINECOLOR 255 255 255 SIZE 8 FONT verdana MINDISTANCE 100 END STYLE COLOR 250 250 250 OUTLINECOLOR 0 0 0 END END CLASS #NAME "non Projects Districts" TEMPLATE "./templates/zusatzdaten1.html" STYLE COLOR 250 250 100 OUTLINECOLOR 0 0 0 END END END LAYER NAME "Text1" DATA "the_geom from moz_adm1" CONNECTIONTYPE POSTGIS CONNECTION "user=*** password=*** dbname=moz host=127.0.0.1 port=5432" STATUS ON TYPE POLYGON LABELITEM "adm1" MINSCALE 0 MAXSCALE 100 CLASS LABEL TYPE truetype COLOR 0 0 0 OUTLINECOLOR 255 255 255 SIZE 9 FONT arialbd MINDISTANCE 100 END END END LAYER NAME "Text2" # DATA "the_geom from moz_adm3" DATA "the_geom from district" CONNECTIONTYPE POSTGIS CONNECTION "user=*** password=*** dbname=moz host=127.0.0.1 port=5432" STATUS ON TYPE POLYGON # LABELITEM "district" LABELITEM "adm2" MINSCALE 0 MAXSCALE 100 CLASS LABEL TYPE truetype COLOR 0 0 0 OUTLINECOLOR 255 255 255 SIZE 8 FONT verdana MINDISTANCE 100 END END END LAYER NAME "River" TYPE LINE STATUS DEFAULT DATA "the_geom from rivers" CONNECTIONTYPE POSTGIS CONNECTION "user=*** password=*** dbname=moz host=127.0.0.1 port=5432" CLASS STYLE COLOR 0 0 250 OUTLINECOLOR 20 20 0 END END END LAYER NAME "Mayor_Cities" TYPE POINT STATUS DEFAULT DATA "the_geom from mayor_cities" CONNECTIONTYPE POSTGIS CONNECTION "user=*** password=*** dbname=moz host=127.0.0.1 port=5432" CLASS STYLE COLOR 0 0 250 OUTLINECOLOR 20 20 0 END END END LAYER NAME "Lakes" TYPE POLYGON STATUS DEFAULT DATA "the_geom from lakes" CONNECTIONTYPE POSTGIS CONNECTION "user=*** password=*** dbname=moz host=127.0.0.1 port=5432" CLASS STYLE COLOR 0 0 250 OUTLINECOLOR 20 20 0 END END END LAYER NAME "polpulated_places" # TYPE LINE TYPE POLYGON STATUS DEFAULT DATA "the_geom from populated_places" CONNECTIONTYPE POSTGIS CONNECTION "user=*** password=*** dbname=moz host=127.0.0.1 port=5432" CLASS STYLE COLOR 0 0 250 OUTLINECOLOR 20 20 0 END END END -- Many thanks in advance! Pascal From la_barrenadora at HOTMAIL.COM Tue Jun 12 04:44:51 2007 From: la_barrenadora at HOTMAIL.COM (Victor Herrero Cazurro) Date: Tue, 12 Jun 2007 13:44:51 +0200 Subject: mapscript in TOMCAT In-Reply-To: <75b4b93e0706120325s6738350cq2eb5cee01ef293d5@mail.gmail.com> Message-ID: Thanks Umberto, I have already obtained it, was path of the Tomcat, finally I have put "PATH = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java;%PATH%" >From: "Umberto Nicoletti" >To: "Victor Herrero Cazurro" >CC: MAPSERVER-USERS at lists.umn.edu >Subject: Re: [UMN_MAPSERVER-USERS] mapscript in TOMCAT >Date: Tue, 12 Jun 2007 12:25:02 +0200 > >This path you wrote in the first email: > >"path = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java" > >should probably be: > >PATH = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java;%PATH% > >The latter preserves previous path settings, while the former resets >the path completely, which is probably not what you intended to do. > >HTH, >Umberto > >On 6/12/07, Victor Herrero Cazurro wrote: >>Ok, but what path??? because this class it works correctly in stand alone >>application. Then the path of SO is correctly, or not? I think, that the >>problem is in path of TOMCAT. It is as if TOMCAT did not take the same >>path >>that the SO. >> >>thanks in advance, >> >> >> >From: Umberto Nicoletti >> >Reply-To: Umberto Nicoletti >> >To: MAPSERVER-USERS at LISTS.UMN.EDU >> >Subject: Re: [UMN_MAPSERVER-USERS] mapscript in TOMCAT >> >Date: Tue, 12 Jun 2007 11:58:49 +0200 >> > >> >mapscript.dll depends on other dlls that are not found in that path. >> >Use a tool like dependency walker to find out dependencies and add >> >them to the path. >> > >> >Umberto >> > >> >On 6/12/07, Victor Herrero Cazurro wrote: >> >>Good morning!! >> >> >> >>I have a web application, the method who call mapscript class, it works >> >>correctly in stand alone application, but when run in TOMCAT, throw a >> >>exception: >> >> >> >>"GRAVE: Servlet.service() para servlet action lanz? excepci?n >> >>java.lang.UnsatisfiedLinkError: no mapscript in java.library.path >> >> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) >> >> at java.lang.Runtime.loadLibrary0(Runtime.java:822) >> >> at java.lang.System.loadLibrary(System.java:993) >> >> at >> >>edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23) >> >> at edu.umn.gis.mapscript.mapObj.(mapObj.java:276) >> >> at es.nomenclator.struts.model.WFS.getfeature(WFS.java:24)" >> >> >> >>The line that reference is: >> >> >> >>"mapObj map = new >> >>mapObj("C:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map");" >> >> >> >>I have a environment variable: >> >> >> >>"path = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java" >> >> >> >>in this path are "mapscript.dll" and "mapscript.jar" >> >> >> >>And "mapscript.jar" is in classpath to web application. >> >> >> >>Can somebody tell me what happend?? >> >> >> >>Thanks >> >> >> >>_________________________________________________________________ >> >>?Est?s pensando en cambiar de coche? Todas los modelos de serie y >>extras >> >>en >> >>MSN Motor. http://motor.msn.es/researchcentre/ >> >> >> >>_________________________________________________________________ >>Descubre la descarga digital con MSN Music. M?s de un mill?n de canciones. >>http://music.msn.es/ >> _________________________________________________________________ Un amor, una aventura, compa??a para un viaje. Reg?strate gratis en MSN Amor & Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349 From pcreso at PCRESO.COM Tue Jun 12 04:46:02 2007 From: pcreso at PCRESO.COM (Brent Wood) Date: Tue, 12 Jun 2007 04:46:02 -0700 Subject: from where can I get GIS data? In-Reply-To: <001501c7acaa$daf9a4c0$2101a8c0@server2003> Message-ID: --- Neeraj Singh wrote: > hi, > I am new to mapserver technology , installed MS4W with php and mysql . I am > wandering, how this shapefiles are created and unable to create one on my > own. Is there a tool available to create shapefiles or can I get this GIS > data from some-where. A few comments. I've had minimal experience with running this under Windows, but it has worked fine when I have, although performance was significantly poorer than under Linux or FreeBSD. I would strongly recommend PostGIS over MySQL for spatial data management. The GDAL/OGR packages are able to create shapefiles from many other data formats, or you can use these with MS4W to access data directly in formats other than shapefiles. Shapelib may also be useful. See http://www.freegis.org/ (geo-data) for some data sources which are in shapefile format, See http://www.fao.org/docrep/008/a0118e/a0118e05.htm for a discussion of some global coastline datasets, Some other good pointers are at http://www.mathworks.com/support/tech-notes/2100/2101.html#vmap0 If you hunt, VMAP0, DCW and GSHHS global datasets sre available for download as shapefiles, although they can be quite large. Many local & national datasets are also available, if you have a more specific requirement, ask to see if anyone can help. Cheers, Brent Wood From szekerest at GMAIL.COM Tue Jun 12 05:19:02 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 12 Jun 2007 14:19:02 +0200 Subject: compiling c# mapscript on F7-x86_64 In-Reply-To: <466A2610.8060900@golden.net> Message-ID: Mike, I still couldn't reproduce this behaviour. Did the shpdump sample display any features from the shapefile? Is the following bug relevant to this problem? http://trac.osgeo.org/mapserver/ticket/1598 Do the test run if you remove the shpdump test in the csharp makefile? Best regards, Tamas 2007/6/9, Mike Leahy : > Hello again, > > I don't know if this helps at all, but I gave the C# dll I built a try > with my application despite the output from the make test...turns out it > actually works. Granted, my application does relatively little at the > moment (it essentially creates a map object with a PostGIS layer, and > draws the image), so this isn't a thorough test, but perhaps there's a > problem with the make test operation instead (at least in my context)? > > Regards, > Mike > > Tamas Szekeres wrote: > > Mike, > > > > I haven't managed to reproduce this issue using the SVN trunk on my > > SUSE10 vs MONO 1.2.4 configuration, the make test works fairly well. > > I'll be trying to set up an FC7 system to make similar tests but I > > guess it will take some days to complete. > > > > Best regards, > > > > Tamas > > > > > > > > 2007/6/7, Mike Leahy : > >> Tamas, > >> > >> Thanks for the replies. I'm fairly sure what you're suggesting is not > >> the > >> issue in my case. This is a fresh setup, so there's no previous/other > >> versions of mapserver. I tried what you suggested as well, and I got the > >> same output after setting the LD_LIBRARY_PATH to point to my mapserv > >> binaries. Besides that, I've never had to do anything with > >> LD_LIBRARY_PATH > >> before. I'm pretty sure that mapscript_csharp.dll only relies on the > >> libmapscript.so that accompanies it (and through that, all of the other > >> mapserver dependencies). As far as I can tell, libmapscript.so is > >> linked > >> from the current folder for the 'make test' operation. If successful, I > >> normally copy libmapscript.so to /usr/lib64, along with all the other > >> libraries, where it is accessible to any Mono applications that use the > >> csharp DLL. > >> > >> I figure this must be something specific to Fedora 7 and/or > >> Mono-1.2.3. I > >> did try compiling MapServer/MapScript with minimal options to ensure it > >> wasn't some of the additional dependencies I'm using (e.g., GDAL, > >> PostGIS, > >> etc...) and it still gave the same results. > >> > >> Any other recommendations? > >> > >> Regards, > >> Mike > >> > >> On Thu, 7 Jun 2007 20:14:46 +0200, Tamas Szekeres > >> wrote: > >> > >> >You should check whether other version of mapserver is installed or > >> >not. You probably have to set up your mapserver directory in > >> >LD_LIBRARY_PATH when running the tests. > >> > > >> >Best regards, > >> > > >> >Tamas > >> > > >> > > >> >2007/6/7, Mike Leahy : > >> >> I ran ./configure for MapServer with all desired options, ran make, > >> then > >> >> went into mapscript/csharp and ran make there. Is there something > >> else I > >> >> should have done? > >> >> > >> >> On Thu, 7 Jun 2007 18:10:37 +0200, Tamas Szekeres > >> > >> wrote: > >> >> > >> >> >Did you compile the mapserver core and mapscript with the same > >> >> >configuration (by using the same GEOS option for example)? > >> >> > > >> >> >Best regards, > >> >> > > >> >> >Tamas > >> >> > > >> >> > > >> >> >2007/6/7, Mike Leahy : > >> >> >> Hello List, > >> >> >> > >> >> >> I just finished upgrading one of my 64-bit machines to Fedora > >> 7. I've > >> >> >> already noticed that binary MapServer packages are installable > >> from the > >> >> >> repositories. However, it seems these lack the csharp mapscript > >> module, > >> >> >> which is something I use frequently. So I did my usual routine to > >> >> >> compile MapServer from source...everything looked okay, until I ran > >> >> >> 'make test' for the c# mapscript module (see output below). I > >> haven't > >> >> >> been able to try this on a 32-bit machine, so can only guess > >> that it > >> >> >> might an issue with the 64-bit environment (though FC6-x86_64 > >> with an > >> >> >> older version of Mono seemed to work fine). I'm not sure what > >> to make > >> >> >> of this output from the make test - has anyone seen anything > >> like this > >> >> >> before, or can anyone make any suggestions? > >> >> >> > >> >> >> Thanks in advance for any help, > >> >> >> Mike > >> >> >> > >> >> >> ================================================================== > >> >> >> > >> >> >> [mgleahy at localhost csharp]$ make test > >> >> >> LC_ALL=C mono ./shpdump.exe ../../tests/point.shp > >> >> >> Stacktrace: > >> >> >> > >> >> >> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj > >> >> >> (System.Runtime.InteropServices.HandleRef) <0x00012> > >> >> >> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapeObj > >> >> >> (System.Runtime.InteropServices.HandleRef) <0xffffffff> > >> >> >> at shapeObj.Dispose () <0x00067> > >> >> >> at shapeObj.Finalize () <0x00018> > >> >> >> at (wrapper runtime-invoke) System.Object.runtime_invoke_void > >> >> >> (object,intptr,intptr,intptr) <0xffffffff> > >> >> >> > >> >> >> Native stacktrace: > >> >> >> > >> >> >> mono [0x517025] > >> >> >> mono [0x4ddf9d] > >> >> >> /lib64/libpthread.so.0 [0x3fae00dd20] > >> >> >> /lib64/libc.so.6(cfree+0x3b) [0x3fad073acb] > >> >> >> ./libmapscript.so(msFreeShape+0x2c) [0x2aaaab573efc] > >> >> >> ./libmapscript.so(CSharp_delete_shapeObj+0x9) > >> [0x2aaaab53cf69] > >> >> >> [0x4001f90c] > >> >> >> > >> >> >> Debug info from gdb: > >> >> >> > >> >> >> (no debugging symbols found) > >> >> >> Using host libthread_db library "/lib64/libthread_db.so.1". > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> [Thread debugging using libthread_db enabled] > >> >> >> [New Thread 46912496280112 (LWP 16759)] > >> >> >> [New Thread 1075988816 (LWP 16761)] > >> >> >> [New Thread 1073822032 (LWP 16760)] > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> (no debugging symbols found) > >> >> >> 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () > >> >> >> from /lib64/libpthread.so.0 > >> >> >> 3 Thread 1073822032 (LWP 16760) 0x0000003fae00d3d1 in > >> nanosleep () > >> >> >> from /lib64/libpthread.so.0 > >> >> >> 2 Thread 1075988816 (LWP 16761) 0x0000003fad0c9ad2 in select () > >> >> >> from /lib64/libc.so.6 > >> >> >> 1 Thread 46912496280112 (LWP 16759) 0x0000003fae00a597 in > >> >> >> pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 > >> >> >> > >> >> >> Thread 3 (Thread 1073822032 (LWP 16760)): > >> >> >> #0 0x0000003fae00d3d1 in nanosleep () from /lib64/libpthread.so.0 > >> >> >> #1 0x00000000004c1890 in ?? () > >> >> >> #2 0x0000003fae0061c5 in start_thread () from > >> /lib64/libpthread.so.0 > >> >> >> #3 0x0000003fad0d062d in clone () from /lib64/libc.so.6 > >> >> >> > >> >> >> Thread 2 (Thread 1075988816 (LWP 16761)): > >> >> >> #0 0x0000003fad0c9ad2 in select () from /lib64/libc.so.6 > >> >> >> #1 0x0000003fb1c5646e in g_spawn_sync () from > >> /lib64/libglib-2.0.so.0 > >> >> >> #2 0x0000003fb1c56838 in g_spawn_command_line_sync () > >> >> >> from /lib64/libglib-2.0.so.0 > >> >> >> #3 0x00000000005170c7 in ?? () > >> >> >> #4 0x00000000004ddf9d in ?? () > >> >> >> #5 > >> >> >> #6 0x0000003fad073acb in free () from /lib64/libc.so.6 > >> >> >> #7 0x00002aaaab573efc in msFreeShape () from ./libmapscript.so > >> >> >> #8 0x00002aaaab53cf69 in CSharp_delete_shapeObj () from > >> ./libmapscript.so > >> >> >> #9 0x000000004001f90c in ?? () > >> >> >> #10 0x00002aaaaacf8d20 in ?? () > >> >> >> #11 0x0000000000a86770 in ?? () > >> >> >> #12 0x0000000000000001 in ?? () > >> >> >> #13 0x0000003fae00fa28 in g_str_equal () from > >> /lib64/libpthread.so.0 > >> >> >> #14 0x0000000000a29390 in ?? () > >> >> >> #15 0x0000000040223c80 in ?? () > >> >> >> #16 0x0000000040223ee0 in ?? () > >> >> >> #17 0x000000004001f862 in ?? () > >> >> >> #18 0x0000000000a37e68 in ?? () > >> >> >> #19 0x0000000040223ee0 in ?? () > >> >> >> #20 0x0000000040223e50 in ?? () > >> >> >> #21 0x00002aaaaacf8d20 in ?? () > >> >> >> #22 0x00002aaaaaad3e60 in ?? () > >> >> >> #23 0x0000000000a86770 in ?? () > >> >> >> #24 0x00002aaaaacf8d20 in ?? () > >> >> >> #25 0x0000000000a86770 in ?? () > >> >> >> #26 0x00002aaaaacf8d20 in ?? () > >> >> >> #27 0x00000000007ccc08 in ?? () > >> >> >> #28 0x000000004001f690 in ?? () > >> >> >> #29 0x0000000000a5f0b0 in ?? () > >> >> >> #30 0x0000000040223f50 in ?? () > >> >> >> #31 0x000000004001f5d8 in ?? () > >> >> >> #32 0x00002aaaaacf8d20 in ?? () > >> >> >> #33 0x0000000000a86770 in ?? () > >> >> >> #34 0x0000000000000001 in ?? () > >> >> >> #35 0x0000000000000011 in ?? () > >> >> >> #36 0x00002aaaaacf8d20 in ?? () > >> >> >> #37 0x00002aaaaacf8d20 in ?? () > >> >> >> #38 0x00002aaaaaad3e60 in ?? () > >> >> >> #39 0x0000000000a867e0 in ?? () > >> >> >> #40 0x0000000000000000 in ?? () > >> >> >> > >> >> >> Thread 1 (Thread 46912496280112 (LWP 16759)): > >> >> >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () > >> >> >> from /lib64/libpthread.so.0 > >> >> >> #1 0x00000000004bf110 in ?? () > >> >> >> #2 0x00000000004c160d in ?? () > >> >> >> #3 0x00000000004c5b95 in ?? () > >> >> >> #4 0x000000000046ccc6 in mono_domain_finalize () > >> >> >> #5 0x00000000004dc754 in ?? () > >> >> >> #6 0x0000000000414678 in mono_main () > >> >> >> #7 0x0000003fad01daa4 in __libc_start_main () from > >> /lib64/libc.so.6 > >> >> >> #8 0x0000000000413319 in g_str_equal () > >> >> >> #9 0x00007fff93e6c348 in ?? () > >> >> >> #10 0x0000000000000000 in ?? () > >> >> >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () > >> >> >> from /lib64/libpthread.so.0 > >> >> >> > >> >> >> > >> >> >> ================================================================= > >> >> >> Got a SIGSEGV while executing native code. This usually indicates > >> >> >> a fatal error in the mono runtime or one of the native libraries > >> >> >> used by your application. > >> >> >> ================================================================= > >> >> >> > >> >> >> make: *** [test] Aborted > >> >> >> > >> >> > >> > > > From Matti.Silvennoinen at ARBONAUT.COM Tue Jun 12 05:26:35 2007 From: Matti.Silvennoinen at ARBONAUT.COM (Matti Silvennoinen) Date: Tue, 12 Jun 2007 15:26:35 +0300 Subject: WFS problem with tileindex and filter accepting by MapServer Message-ID: Hi list, We have following version running on Windows: MapServer version 4.10.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD F OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPP ORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPP ORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT =POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG We have problem with tileindexed tab-files when using those through WFS-connection. Tests: - MapServer 4.10.1 - Client: uDig - Data: TAB-files containing relative large dataset ~10 MB per file, altohether more than 80 files. Geometry type is line. A file does not contain unique attribute. Cases: - Single shp-file: everything works ok - Single TAB-file: everything works ok - shps with tileindex (tileindex created using ogrtindex) : all features are visible, using info tool attribute info is readable, box selection selects only one feature - possible bug - tabs with tileindex (tileindex created using ogrtindex) : all features are visible, using info tool NO attribute info is readable, box selection does NOT select any feature - possible bug We have also tried to create tileindex using tile4ms but the result is same. We found some bugs of MapServer that seems to relate to this issue. However, developers have worked with those bugs already a long time ago. #1615, #1616 The same query through MapServer - WFS - Oracle connection works OK (native connection). Any solution for this problem? Matti Silvennoinen -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark_brooks at NCSU.EDU Tue Jun 12 07:19:05 2007 From: mark_brooks at NCSU.EDU (Mark Brooks) Date: Tue, 12 Jun 2007 10:19:05 -0400 Subject: mapserver and msCross Message-ID: Rodrigo, Thank you! This is very helpful and much easier to work with than ka-map, although ka-map has great potential. I do have one question for you. The javascript function call to set the map extent only takes three arguments (Xmin, Xmax, Ymin): myMap.setFullExtent( 5649512,5711778,6099485); while the mapscript function expects four arguments (Xmin, Ymin, Xmax, Ymax): $extent = explode(" ",$_GET['mapext']); $map->setExtent($extent[0], $extent[1], $extent[2], $extent[3]); I don't understand why they aren't the same. I'm having trouble getting this part to work. Any ideas? Mark > Hi Mark. A few month ago (Jan 22) Stefan Schwarzer ask a similar question and in that moment I send him my response outside the list. I paste here my last mail to him in wich I put a long explanation about all the steps I had to do to use PHP Mapscript with mscross. I dont even remember what I wrote but I paste it here. If you have any question ask me again. Sorry my english. Rodrigo. From rodrigomlg at GMAIL.COM Tue Jun 12 08:10:15 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Tue, 12 Jun 2007 16:10:15 +0100 Subject: mapserver and msCross In-Reply-To: <466EAB59.6090805@ncsu.edu> Message-ID: Hi Mark. The myMap.setFullExtent() is a javascript function. It is implemented in mscross.js file and the it get only three parameters because the function calculate the Ymax acording to the other three parameters and the map dimension in pixels (i.e. the size in pixels of the map_tag div element), so the aspect of the image would be the right one. If you look at the code of the myMap.setFullExtent() javascript function you will see that even when it takes only three parameters it sets four variables values (_ext_Xmin_orig, _ext_Xmax_orig, _ext_Ymin_orig, _ext_Ymax_orig) and the function myMap.setExtent() (wich is used to set the new extent each time you use a tool, as pan or zoom) makes the same job settings the four variables (_ext_Xmin, _ext_Xmax, _ext_Ymin and _ext_Ymax) values. If you look then at the myMap.get_map_url() function you will see that when the function creates the url, the four values are used: var ext = 'mapext=' + (_ext_Xmin-i.wPixel2real(_map_w_bord)) + '+' + (_ext_Ymin-i.hPixel2real(_map_h_bord)) + '+' + (_ext_Xmax+i.wPixel2real(_map_w_bord)) + '+' + (_ext_Ymax+i.hPixel2real(_map_h_bord)) ; So actually when your php mapscript file is called the 'mapext' variable passed throug GET method have the four extent values (Xmin, Xmax, Ymin and Ymax). I hope I was clear enough but sometimes my bad english don't allow me to make a better explanation. If you have any question, ask me again. Rodrigo. On 6/12/07, Mark Brooks wrote: > > Rodrigo, > > Thank you! This is very helpful and much easier to work with than > ka-map, although ka-map has great potential. I do have one question for > you. > > The javascript function call to set the map extent only takes three > arguments (Xmin, Xmax, Ymin): > myMap.setFullExtent( 5649512,5711778,6099485); > > while the mapscript function expects four arguments (Xmin, Ymin, Xmax, > Ymax): > $extent = explode(" ",$_GET['mapext']); > $map->setExtent($extent[0], $extent[1], $extent[2], $extent[3]); > > I don't understand why they aren't the same. I'm having trouble getting > this part to work. Any ideas? > > Mark > > > > Hi Mark. A few month ago (Jan 22) Stefan Schwarzer ask a similar > question and in that moment I send him my response outside the list. I paste > here my last mail to him in wich I put a long explanation about all the > steps I had to do to use PHP Mapscript with mscross. I dont even remember > what I wrote but I paste it here. If you have any question ask me again. > Sorry my english. Rodrigo. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mgleahy at GOLDEN.NET Tue Jun 12 09:35:36 2007 From: mgleahy at GOLDEN.NET (Mike Leahy) Date: Tue, 12 Jun 2007 12:35:36 -0400 Subject: compiling c# mapscript on F7-x86_64 In-Reply-To: Message-ID: Tamas, I tried running each of the three tests individually...drawmap gives a much less verbose error, while I generally get the same results for shapeinfo and shpdump...though sometimes I'll get even more info in the output, like in the (much abbreviated) sample below. In this latter case, the test won't terminate on its own...or at least I haven't waited for it to. I still don't know what to make of it all. Does this add any further insight? When I have a chance (probably a couple weeks from now), I can try this again on a 32-bit setup. Mike ======================================================== [mgleahy at localhost csharp]$ LC_ALL=C mono ./drawmap.exe ../../tests/test.map test_csharp.png # Map layers 1; Map name = Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at DrawMap.Main (System.String[] args) [0x00000] ======================================================== [mgleahy at localhost csharp]$ LC_ALL=C mono ./shapeinfo.exe ../../tests/point.shp ShapeType = Num shapes = 0 (xmin, ymin) = (5.30992112211421E-317,0) (xmax, ymax) = (2.3177853899156E-310,2.3177853900065E-310) *** glibc detected *** mono: free(): invalid pointer: 0x00002aaaaacfefc8 *** ======= Backtrace: ========= /lib64/libc.so.6[0x3fad070412] /lib64/libc.so.6(cfree+0x8c)[0x3fad073b1c] /usr/lib64/libmapscript.so(CSharp_delete_shapefileObj+0x11)[0x2aaaab568521] [0x4023267c] ======= Memory map: ======== 00400000-005ca000 r-xp 00000000 08:12 4020216 /usr/bin/mono 007ca000-007cd000 rw-p 001ca000 08:12 4020216 /usr/bin/mono 007cd000-007e6000 rw-p 007cd000 00:00 0 009cc000-009d3000 rw-p 001cc000 08:12 4020216 /usr/bin/mono 009d3000-00b40000 rw-p 009d3000 00:00 0 [heap] 40000000-40010000 rwxp 40000000 00:00 0 3fad482000-3fad681000 ---p 00082000 08:12 978541 /lib64/libm-2.6.so 3fad681000-3fad682000 r--p 00081000 08:12 978541 /lib64/libm-2.6.so 3fad682000-3fad683000 rw-p 00082000 08:12 978541 /lib64/libm-2.6.so 3fc0a00000-3fc0a1f000 r-xp 00000000 08:12 978328 /lib64/libncurses.so.5.6 3fc0a1f000-3fc0c1e000 ---p 0001f000 08:12 978328 /lib64/libncurses.so.5.6 3fc0c1e000-3fc0c1f000 rw-p 0001e000 08:12 978328 /lib64/libncurses.so.5.6 2aaaaaaab000-2aaaaaacc000 rw-p 2aaaaaaab000 00:00 0 2aaaaaad1000-2aaaaaaf6000 rw-p 2aaaaaad1000 00:00 0 2aaaaaaf6000-2aaaaaaf7000 r-xp 00000000 08:16 1376494 /home/sources/mapserver-4.10.2/mapscript/csharp/shapeinfo.exe 2aaaaaaf7000-2aaaaacea000 r-xp 00000000 08:12 4535523 /usr/lib64/mono/1.0/mscorlib.dll 2aaaaacea000-2aaaaacf1000 r--s 00000000 08:12 4013989 /usr/lib64/gconv/gconv-modules.cache 2aaaafbfc000-2aaaafbfd000 rw-p 00000000 08:12 4020117 /usr/lib64/libungif.so.4.1.3 2aaab0000000-2aaab0021000 rw-p 2aaab0000000 00:00 0 2aaab0021000-2aaab4000000 ---p 2aaab0021000 00:00 0 7fff53eae000-7fff53ec3000 rw-p 7fff53eae000 00:00 0 [stack] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vdso] Stacktrace: at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapefileObj (System.Runtime.InteropServices.HandleRef) <0x00012> at (wrapper managed-to-native) mapscriptPINVOKE.delete_shapefileObj (System.Runtime.InteropServices.HandleRef) <0xffffffff> at shapefileObj.Dispose () <0x00067> at shapefileObj.Finalize () <0x00018> at (wrapper runtime-invoke) System.Object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff> Native stacktrace: mono [0x517025] /lib64/libpthread.so.0 [0x3fae00dd20] /lib64/libc.so.6(gsignal+0x35) [0x3fad0305b5] /lib64/libc.so.6(abort+0x110) [0x3fad032060] /lib64/libc.so.6 [0x3fad068d0b] /lib64/libc.so.6 [0x3fad070412] /lib64/libc.so.6(cfree+0x8c) [0x3fad073b1c] /usr/lib64/libmapscript.so(CSharp_delete_shapefileObj+0x11) [0x2aaaab568521] [0x4023267c] Tamas Szekeres wrote: > Mike, > > I still couldn't reproduce this behaviour. Did the shpdump sample > display any features from the shapefile? > Is the following bug relevant to this problem? > http://trac.osgeo.org/mapserver/ticket/1598 > > Do the test run if you remove the shpdump test in the csharp makefile? > > Best regards, > > Tamas > > > > 2007/6/9, Mike Leahy : >> Hello again, >> >> I don't know if this helps at all, but I gave the C# dll I built a try >> with my application despite the output from the make test...turns out it >> actually works. Granted, my application does relatively little at the >> moment (it essentially creates a map object with a PostGIS layer, and >> draws the image), so this isn't a thorough test, but perhaps there's a >> problem with the make test operation instead (at least in my context)? >> >> Regards, >> Mike >> >> Tamas Szekeres wrote: >> > Mike, >> > >> > I haven't managed to reproduce this issue using the SVN trunk on my >> > SUSE10 vs MONO 1.2.4 configuration, the make test works fairly well. >> > I'll be trying to set up an FC7 system to make similar tests but I >> > guess it will take some days to complete. >> > >> > Best regards, >> > >> > Tamas >> > >> > >> > >> > 2007/6/7, Mike Leahy : >> >> Tamas, >> >> >> >> Thanks for the replies. I'm fairly sure what you're suggesting is not >> >> the >> >> issue in my case. This is a fresh setup, so there's no previous/other >> >> versions of mapserver. I tried what you suggested as well, and I >> got the >> >> same output after setting the LD_LIBRARY_PATH to point to my mapserv >> >> binaries. Besides that, I've never had to do anything with >> >> LD_LIBRARY_PATH >> >> before. I'm pretty sure that mapscript_csharp.dll only relies on the >> >> libmapscript.so that accompanies it (and through that, all of the >> other >> >> mapserver dependencies). As far as I can tell, libmapscript.so is >> >> linked >> >> from the current folder for the 'make test' operation. If >> successful, I >> >> normally copy libmapscript.so to /usr/lib64, along with all the other >> >> libraries, where it is accessible to any Mono applications that use >> the >> >> csharp DLL. >> >> >> >> I figure this must be something specific to Fedora 7 and/or >> >> Mono-1.2.3. I >> >> did try compiling MapServer/MapScript with minimal options to >> ensure it >> >> wasn't some of the additional dependencies I'm using (e.g., GDAL, >> >> PostGIS, >> >> etc...) and it still gave the same results. >> >> >> >> Any other recommendations? >> >> >> >> Regards, >> >> Mike >> >> >> >> On Thu, 7 Jun 2007 20:14:46 +0200, Tamas Szekeres >> >> wrote: >> >> >> >> >You should check whether other version of mapserver is installed or >> >> >not. You probably have to set up your mapserver directory in >> >> >LD_LIBRARY_PATH when running the tests. >> >> > >> >> >Best regards, >> >> > >> >> >Tamas >> >> > >> >> > >> >> >2007/6/7, Mike Leahy : >> >> >> I ran ./configure for MapServer with all desired options, ran make, >> >> then >> >> >> went into mapscript/csharp and ran make there. Is there something >> >> else I >> >> >> should have done? >> >> >> >> >> >> On Thu, 7 Jun 2007 18:10:37 +0200, Tamas Szekeres >> >> >> >> wrote: >> >> >> >> >> >> >Did you compile the mapserver core and mapscript with the same >> >> >> >configuration (by using the same GEOS option for example)? >> >> >> > >> >> >> >Best regards, >> >> >> > >> >> >> >Tamas >> >> >> > >> >> >> > >> >> >> >2007/6/7, Mike Leahy : >> >> >> >> Hello List, >> >> >> >> >> >> >> >> I just finished upgrading one of my 64-bit machines to Fedora >> >> 7. I've >> >> >> >> already noticed that binary MapServer packages are installable >> >> from the >> >> >> >> repositories. However, it seems these lack the csharp mapscript >> >> module, >> >> >> >> which is something I use frequently. So I did my usual >> routine to >> >> >> >> compile MapServer from source...everything looked okay, until >> I ran >> >> >> >> 'make test' for the c# mapscript module (see output below). I >> >> haven't >> >> >> >> been able to try this on a 32-bit machine, so can only guess >> >> that it >> >> >> >> might an issue with the 64-bit environment (though FC6-x86_64 >> >> with an >> >> >> >> older version of Mono seemed to work fine). I'm not sure what >> >> to make >> >> >> >> of this output from the make test - has anyone seen anything >> >> like this >> >> >> >> before, or can anyone make any suggestions? >> >> >> >> >> >> >> >> Thanks in advance for any help, >> >> >> >> Mike >> >> >> >> >> >> >> >> >> ================================================================== >> >> >> >> >> >> >> >> [mgleahy at localhost csharp]$ make test >> >> >> >> LC_ALL=C mono ./shpdump.exe ../../tests/point.shp >> >> >> >> Stacktrace: >> >> >> >> >> >> >> >> at (wrapper managed-to-native) >> mapscriptPINVOKE.delete_shapeObj >> >> >> >> (System.Runtime.InteropServices.HandleRef) <0x00012> >> >> >> >> at (wrapper managed-to-native) >> mapscriptPINVOKE.delete_shapeObj >> >> >> >> (System.Runtime.InteropServices.HandleRef) <0xffffffff> >> >> >> >> at shapeObj.Dispose () <0x00067> >> >> >> >> at shapeObj.Finalize () <0x00018> >> >> >> >> at (wrapper runtime-invoke) System.Object.runtime_invoke_void >> >> >> >> (object,intptr,intptr,intptr) <0xffffffff> >> >> >> >> >> >> >> >> Native stacktrace: >> >> >> >> >> >> >> >> mono [0x517025] >> >> >> >> mono [0x4ddf9d] >> >> >> >> /lib64/libpthread.so.0 [0x3fae00dd20] >> >> >> >> /lib64/libc.so.6(cfree+0x3b) [0x3fad073acb] >> >> >> >> ./libmapscript.so(msFreeShape+0x2c) [0x2aaaab573efc] >> >> >> >> ./libmapscript.so(CSharp_delete_shapeObj+0x9) >> >> [0x2aaaab53cf69] >> >> >> >> [0x4001f90c] >> >> >> >> >> >> >> >> Debug info from gdb: >> >> >> >> >> >> >> >> (no debugging symbols found) >> >> >> >> Using host libthread_db library "/lib64/libthread_db.so.1". >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> [Thread debugging using libthread_db enabled] >> >> >> >> [New Thread 46912496280112 (LWP 16759)] >> >> >> >> [New Thread 1075988816 (LWP 16761)] >> >> >> >> [New Thread 1073822032 (LWP 16760)] >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> (no debugging symbols found) >> >> >> >> 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () >> >> >> >> from /lib64/libpthread.so.0 >> >> >> >> 3 Thread 1073822032 (LWP 16760) 0x0000003fae00d3d1 in >> >> nanosleep () >> >> >> >> from /lib64/libpthread.so.0 >> >> >> >> 2 Thread 1075988816 (LWP 16761) 0x0000003fad0c9ad2 in >> select () >> >> >> >> from /lib64/libc.so.6 >> >> >> >> 1 Thread 46912496280112 (LWP 16759) 0x0000003fae00a597 in >> >> >> >> pthread_cond_timedwait@@GLIBC_2.3.2 () from >> /lib64/libpthread.so.0 >> >> >> >> >> >> >> >> Thread 3 (Thread 1073822032 (LWP 16760)): >> >> >> >> #0 0x0000003fae00d3d1 in nanosleep () from >> /lib64/libpthread.so.0 >> >> >> >> #1 0x00000000004c1890 in ?? () >> >> >> >> #2 0x0000003fae0061c5 in start_thread () from >> >> /lib64/libpthread.so.0 >> >> >> >> #3 0x0000003fad0d062d in clone () from /lib64/libc.so.6 >> >> >> >> >> >> >> >> Thread 2 (Thread 1075988816 (LWP 16761)): >> >> >> >> #0 0x0000003fad0c9ad2 in select () from /lib64/libc.so.6 >> >> >> >> #1 0x0000003fb1c5646e in g_spawn_sync () from >> >> /lib64/libglib-2.0.so.0 >> >> >> >> #2 0x0000003fb1c56838 in g_spawn_command_line_sync () >> >> >> >> from /lib64/libglib-2.0.so.0 >> >> >> >> #3 0x00000000005170c7 in ?? () >> >> >> >> #4 0x00000000004ddf9d in ?? () >> >> >> >> #5 >> >> >> >> #6 0x0000003fad073acb in free () from /lib64/libc.so.6 >> >> >> >> #7 0x00002aaaab573efc in msFreeShape () from ./libmapscript.so >> >> >> >> #8 0x00002aaaab53cf69 in CSharp_delete_shapeObj () from >> >> ./libmapscript.so >> >> >> >> #9 0x000000004001f90c in ?? () >> >> >> >> #10 0x00002aaaaacf8d20 in ?? () >> >> >> >> #11 0x0000000000a86770 in ?? () >> >> >> >> #12 0x0000000000000001 in ?? () >> >> >> >> #13 0x0000003fae00fa28 in g_str_equal () from >> >> /lib64/libpthread.so.0 >> >> >> >> #14 0x0000000000a29390 in ?? () >> >> >> >> #15 0x0000000040223c80 in ?? () >> >> >> >> #16 0x0000000040223ee0 in ?? () >> >> >> >> #17 0x000000004001f862 in ?? () >> >> >> >> #18 0x0000000000a37e68 in ?? () >> >> >> >> #19 0x0000000040223ee0 in ?? () >> >> >> >> #20 0x0000000040223e50 in ?? () >> >> >> >> #21 0x00002aaaaacf8d20 in ?? () >> >> >> >> #22 0x00002aaaaaad3e60 in ?? () >> >> >> >> #23 0x0000000000a86770 in ?? () >> >> >> >> #24 0x00002aaaaacf8d20 in ?? () >> >> >> >> #25 0x0000000000a86770 in ?? () >> >> >> >> #26 0x00002aaaaacf8d20 in ?? () >> >> >> >> #27 0x00000000007ccc08 in ?? () >> >> >> >> #28 0x000000004001f690 in ?? () >> >> >> >> #29 0x0000000000a5f0b0 in ?? () >> >> >> >> #30 0x0000000040223f50 in ?? () >> >> >> >> #31 0x000000004001f5d8 in ?? () >> >> >> >> #32 0x00002aaaaacf8d20 in ?? () >> >> >> >> #33 0x0000000000a86770 in ?? () >> >> >> >> #34 0x0000000000000001 in ?? () >> >> >> >> #35 0x0000000000000011 in ?? () >> >> >> >> #36 0x00002aaaaacf8d20 in ?? () >> >> >> >> #37 0x00002aaaaacf8d20 in ?? () >> >> >> >> #38 0x00002aaaaaad3e60 in ?? () >> >> >> >> #39 0x0000000000a867e0 in ?? () >> >> >> >> #40 0x0000000000000000 in ?? () >> >> >> >> >> >> >> >> Thread 1 (Thread 46912496280112 (LWP 16759)): >> >> >> >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () >> >> >> >> from /lib64/libpthread.so.0 >> >> >> >> #1 0x00000000004bf110 in ?? () >> >> >> >> #2 0x00000000004c160d in ?? () >> >> >> >> #3 0x00000000004c5b95 in ?? () >> >> >> >> #4 0x000000000046ccc6 in mono_domain_finalize () >> >> >> >> #5 0x00000000004dc754 in ?? () >> >> >> >> #6 0x0000000000414678 in mono_main () >> >> >> >> #7 0x0000003fad01daa4 in __libc_start_main () from >> >> /lib64/libc.so.6 >> >> >> >> #8 0x0000000000413319 in g_str_equal () >> >> >> >> #9 0x00007fff93e6c348 in ?? () >> >> >> >> #10 0x0000000000000000 in ?? () >> >> >> >> #0 0x0000003fae00a597 in pthread_cond_timedwait@@GLIBC_2.3.2 () >> >> >> >> from /lib64/libpthread.so.0 >> >> >> >> >> >> >> >> >> >> >> >> >> ================================================================= >> >> >> >> Got a SIGSEGV while executing native code. This usually >> indicates >> >> >> >> a fatal error in the mono runtime or one of the native libraries >> >> >> >> used by your application. >> >> >> >> >> ================================================================= >> >> >> >> >> >> >> >> make: *** [test] Aborted >> >> >> >> >> >> >> >> >> >> > >> > From Steve.Lime at DNR.STATE.MN.US Tue Jun 12 10:02:53 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 12 Jun 2007 12:02:53 -0500 Subject: WFS-G In-Reply-To: Message-ID: Rats, I meant to reply last week to this. Regarding ms:my_layer_name. You can control the namespace prefix using ows_namespace_prefix. There is no way to change the move away from the layer name so you are correct. Regarding constants. The GML transformer does support constants. For example: gml_constants "constant1,constant2" gml_constant1_value "1234" gml_constant1_type "integer" gml_constant2_value "This is a constant string" Constants can be part of a group. The value is output as part of a GML instance document and the type is used to create the schema. Steve >>> On 6/8/2007 at 5:54 AM, in message , H Garcia wrote: > Thanks both for your answers. Finally I try Steve's option and I configurate > Mapserver mapfile to make the transformation. However, I found two problems: > > * First, I'd like to transform from ms:my_layer_name to ns:Entity, but this > parameter is directly extracted from the NAME parameter in the mapfile LAYER > object, so I think that if I want ns:Entity, my layer has to name > "Entity"... Is it any parameter I could configurate to fix this? Or am I > wrong? > > * Second, the schema I want my response to fix has mandatory fields that I > can't extract from database, but whose value remains always the same. Is it > any parameter I could add to insert in the response a default value for > these tags? > > Thanks in advance!! From rwburgholzer at DEQ.VIRGINIA.GOV Tue Jun 12 10:09:04 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Tue, 12 Jun 2007 13:09:04 -0400 Subject: queryByFeatures raster Message-ID: Is it possible to do a queryByFeatures on a raster? That is, I want to select a shape feature, then have that used as a query shape to summarize info in my overlapping raster. I am trying this: $rastermap = $amap->map->getLayerByName('depart30'); $shapemap = $amap->map->getLayerByName('selectedsegs'); $rastermap->queryByShape($shapemap->index); But cannot seem to retrieve any data (even though the raster is definitely overlapping). My raster layer is a geoTiff (also tried as Gif, same result), with a manually specified world file. The images display overlapping in the map view window. Any help would be appreciated, r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwburgholzer at DEQ.VIRGINIA.GOV Tue Jun 12 10:11:59 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Tue, 12 Jun 2007 13:11:59 -0400 Subject: queryByFeatures raster Message-ID: Or, can I fake it by using a querybyShape?? r.b. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Burgholzer,Robert Sent: Tuesday, June 12, 2007 1:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] queryByFeatures raster Is it possible to do a queryByFeatures on a raster? That is, I want to select a shape feature, then have that used as a query shape to summarize info in my overlapping raster. I am trying this: $rastermap = $amap->map->getLayerByName('depart30'); $shapemap = $amap->map->getLayerByName('selectedsegs'); $rastermap->queryByShape($shapemap->index); But cannot seem to retrieve any data (even though the raster is definitely overlapping). My raster layer is a geoTiff (also tried as Gif, same result), with a manually specified world file. The images display overlapping in the map view window. Any help would be appreciated, r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From saengpole at YAHOO.COM Tue Jun 12 10:59:06 2007 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Tue, 12 Jun 2007 10:59:06 -0700 Subject: Couldn't queryByRect Message-ID: Dear all, I want to query points inside RectObj, but no luck. I'm ver sure that there are points inside this RectObj's bounds. My map's layer was defined as: LAYER NAME ... DATA ... TYPE point STATUS on TEMPLATE dummy CLASS COLOR 200 0 0 END END My code snippet is: $rect=ms_newRectObj(); $rect->setextent(...); if (@$layer->queryByRect($rect)==MS_SUCCESS) { print $layer->getNumResults(); } else { print "Not found"; } It always print "Not found". What I do wrong or I couldn't query point layer. Have you any advices with this problem? Thanks in advance. Krung ____________________________________________________________________________________ Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=list&sid=396546091 -------------- next part -------------- An HTML attachment was scrubbed... URL: From huanxiangxu at YAHOO.COM.CN Tue Jun 12 10:51:02 2007 From: huanxiangxu at YAHOO.COM.CN (huanxiang xu) Date: Wed, 13 Jun 2007 01:51:02 +0800 Subject: how to addfeature to line layer by perl Message-ID: I know how to addfeature to point layer, but how to addfeature to line layer my $layer=$map->getLayerByName('cruise'); my $poi=new mapscript::pointObj(182.880000,14.090000);my $poi1=new mapscript::pointObj(180.880000, 13.090000); my $lin=new mapscript::lineObj(); $lin->add($poi);$lin->add($poi1); my $shap=new mapscript::shapeObj(); $shap->add($lin); #$layer->addFeature($shap); return $map; Is it right? The perl give me the message: Can't call method "save" on an undefined value BR, xu --------------------------------- ??????3.5G???20M??? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwburgholzer at DEQ.VIRGINIA.GOV Tue Jun 12 11:15:54 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Tue, 12 Jun 2007 14:15:54 -0400 Subject: queryByShape raster kills CGI with greater than 345+ records selected Message-ID: I figured out how to fake the queryByFeatures with a queryByShape, however, my CGI process is crashing when the number of records exceeds somewhere in the neighborhood of 340. The error I get is: "CGI / FastCGI has encountered a problem and needs to close..." Using mapserver 4.10.1 on Apache 2.2 in windows XP. I saw a limitation in some previous posts that seemed to suggest a much higher threshold of failure. The interesting thing (to me) is that the script manages to return selected records, and only bombs later on in the process. Does anyone have any idea as to how to work around this, or if there is some setting that I have botched? My code looks like so: $rastermap = $amap->map->getLayerByName('depart30'); $shapemap = $amap->map->getLayerByName('selectedsegs'); print("Result ID: $amap->lastresid
"); $shapemap->open(); $rastermap->queryByShape($shapemap->getShape(-1,$amap->lastresid)); #$rastermap->queryByFeatures($shapemap->index); $shapemap->close(); $amap->activelayer = 'depart30'; $listobject->queryrecords = $amap->getResultArray(); $listobject->showlist(); $recs = count($listobject->queryrecords); print("$recs Results Retrieved.
"); As noted, the script executes PAST the record retrieval, prints out the number of results that have been returned, then bombs. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Burgholzer,Robert Sent: Tuesday, June 12, 2007 1:12 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures raster Or, can I fake it by using a querybyShape?? r.b. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Burgholzer,Robert Sent: Tuesday, June 12, 2007 1:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] queryByFeatures raster Is it possible to do a queryByFeatures on a raster? That is, I want to select a shape feature, then have that used as a query shape to summarize info in my overlapping raster. I am trying this: $rastermap = $amap->map->getLayerByName('depart30'); $shapemap = $amap->map->getLayerByName('selectedsegs'); $rastermap->queryByShape($shapemap->index); But cannot seem to retrieve any data (even though the raster is definitely overlapping). My raster layer is a geoTiff (also tried as Gif, same result), with a manually specified world file. The images display overlapping in the map view window. Any help would be appreciated, r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Jun 12 11:23:52 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 12 Jun 2007 14:23:52 -0400 Subject: queryByFeatures raster In-Reply-To: <6C097DA58429B743A67070F98BE73A37025DD618@deqex01.deq.local> Message-ID: Burgholzer,Robert wrote: > Is it possible to do a queryByFeatures on a raster? That is, I want to > select a shape feature, then have that used as a query shape to > summarize info in my overlapping raster. > > > > I am trying this: > > > > $rastermap = $amap->map->getLayerByName('depart30'); > > $shapemap = $amap->map->getLayerByName('selectedsegs'); > > $rastermap->queryByShape($shapemap->index); > > > > But cannot seem to retrieve any data (even though the raster is > definitely overlapping). > > > > My raster layer is a geoTiff (also tried as Gif, same result), with a > manually specified world file. The images display overlapping in the map > view window. Robert, I have reviewed maprasterquery.c, and confirmed that query by shape is intended to work and the msautotest/mspython/rqtest.py script utilizes this capability. You might want to first try querybyrect and verify that is working ok. If not, then the issue is not specific to shapes. If that works but shapes don't then check things like "is your shape in the right coordinate system". If you are convinced there is a bug and can demonstrate it with a simple example then file a bug and assign it to me. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From rwburgholzer at DEQ.VIRGINIA.GOV Tue Jun 12 11:19:55 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Tue, 12 Jun 2007 14:19:55 -0400 Subject: queryByFeatures raster Message-ID: Frank, Thanks much for your reply. I was in fact querying a raster that was re-projected by mapserver, therefore, causing a problem (I guess it won't do the reprojection, then the query). Anyhow, one solution begets another challenge sometimes, as my next post regarding the death of CGI/FastCGI... any insights would be most wonderful! r.b. -----Original Message----- From: Frank Warmerdam [mailto:warmerdam at pobox.com] Sent: Tuesday, June 12, 2007 2:24 PM To: Burgholzer,Robert Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByFeatures raster Burgholzer,Robert wrote: > Is it possible to do a queryByFeatures on a raster? That is, I want to > select a shape feature, then have that used as a query shape to > summarize info in my overlapping raster. > > > > I am trying this: > > > > $rastermap = $amap->map->getLayerByName('depart30'); > > $shapemap = $amap->map->getLayerByName('selectedsegs'); > > $rastermap->queryByShape($shapemap->index); > > > > But cannot seem to retrieve any data (even though the raster is > definitely overlapping). > > > > My raster layer is a geoTiff (also tried as Gif, same result), with a > manually specified world file. The images display overlapping in the map > view window. Robert, I have reviewed maprasterquery.c, and confirmed that query by shape is intended to work and the msautotest/mspython/rqtest.py script utilizes this capability. You might want to first try querybyrect and verify that is working ok. If not, then the issue is not specific to shapes. If that works but shapes don't then check things like "is your shape in the right coordinate system". If you are convinced there is a bug and can demonstrate it with a simple example then file a bug and assign it to me. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Tue Jun 12 11:39:24 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 12 Jun 2007 14:39:24 -0400 Subject: queryByShape raster kills CGI with greater than 345+ records selected In-Reply-To: <6C097DA58429B743A67070F98BE73A37025EF81A@deqex01.deq.local> Message-ID: Burgholzer,Robert wrote: > I figured out how to fake the queryByFeatures with a queryByShape, > however, my CGI process is crashing when the number of records exceeds > somewhere in the neighborhood of 340. The error I get is: > > > > ?CGI / FastCGI has encountered a problem and needs to close?? > > > > Using mapserver 4.10.1 on Apache 2.2 in windows XP. > > > > I saw a limitation in some previous posts that seemed to suggest a much > higher threshold of failure. The interesting thing (to me) is that the > script manages to return selected records, and only bombs later on in > the process. Does anyone have any idea as to how to work around this, > or if there is some setting that I have botched? Robert, It is not obvious to me why this would be occurring. I fear this is one of those things where it may be necessary to invest quite a bit of effort in narrowing down the scope to reproduce the bug, and filing it. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From rwburgholzer at DEQ.VIRGINIA.GOV Tue Jun 12 11:53:34 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Tue, 12 Jun 2007 14:53:34 -0400 Subject: queryByShape raster kills CGI with greater than 345+ records selected Message-ID: I will do as you suggest. Thanks for looking at this. r.b. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Tuesday, June 12, 2007 2:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByShape raster kills CGI with greater than 345+ records selected Robert, It is not obvious to me why this would be occurring. I fear this is one of those things where it may be necessary to invest quite a bit of effort in narrowing down the scope to reproduce the bug, and filing it. From warmerdam at POBOX.COM Tue Jun 12 12:04:48 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 12 Jun 2007 15:04:48 -0400 Subject: MapScript projection error - CGI works fine In-Reply-To: Message-ID: Pascal Ehlert wrote: > Hi Mapserver Community! > > This is my first post here, I hope the project is still active. > > I've just been trying to migrate my MapServer stuff from the CGI version to > the Ruby MapScript version > for better integration with my Rails (for those of you who don't know, it's > a Ruby web framework) application. > > Now, while CGI is working fine, the MapScript refuses to work at all, > because of a projection error. > This really confuses me, I'm using exactly the same mapfile for both of them. > > > This is what I do in Ruby and the error I get: > > RuntimeError: loadProjection(): Projection library error. Projection support > is not available. Pascal, This generally means that your Ruby mapscript was built without PROJ.4 support. I think you need to rebuild ruby mapscript ensuring that PROJ.4 support is enabled during the full build of mapscript and the underlying mapserver library. I'm guessing that your mapscript and mapserver cgi are not from the same build. PS. MapServer is still very active, though perhaps Ruby Mapscript is only lightly used. 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 lfilak at MEDINACO.ORG Tue Jun 12 12:06:45 2007 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Tue, 12 Jun 2007 15:06:45 -0400 Subject: how to addfeature to line layer by perl In-Reply-To: <788842.44995.qm@web15315.mail.cnb.yahoo.com> Message-ID: huanxiang xu writes: > I know how to addfeature to point layer, > but how to addfeature to line layer > > my $layer=$map->getLayerByName('cruise'); > my $poi=new mapscript::pointObj(182.880000,14.090000);my $poi1=new mapscript::pointObj(180.880000, 13.090000); > my $lin=new mapscript::lineObj(); > $lin->add($poi);$lin->add($poi1); > my $shap=new mapscript::shapeObj(); > $shap->add($lin); > #$layer->addFeature($shap); > return $map; > > Is it right? > The perl give me the message: Can't call method "save" on an undefined value xu, Check the following example. Even though it is for 3.X I believe you still need to assign at least an index to the shape before adding it to the layer. HTH Lowell From dadark at DADARK.DE Tue Jun 12 12:10:13 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Tue, 12 Jun 2007 21:10:13 +0200 Subject: MapScript projection error - CGI works fine In-Reply-To: <466EEE50.5080506@pobox.com> Message-ID: Hi Frank! I figured that out myself in the meantime, I used the mapserver from the debian package and compiled mapscript on my own. As Ruby mapscript isn't very well documented and I didn't check the whole sourcecode yet, does anyone know how up-to-date it is? Are at least the current main features supported? Thank you (especially Frank for your help of course) Pascal Frank Warmerdam schrieb: > Pascal Ehlert wrote: >> Hi Mapserver Community! >> >> This is my first post here, I hope the project is still active. >> >> I've just been trying to migrate my MapServer stuff from the CGI >> version to >> the Ruby MapScript version >> for better integration with my Rails (for those of you who don't >> know, it's >> a Ruby web framework) application. >> >> Now, while CGI is working fine, the MapScript refuses to work at all, >> because of a projection error. >> This really confuses me, I'm using exactly the same mapfile for both >> of them. >> >> >> This is what I do in Ruby and the error I get: >> > > RuntimeError: loadProjection(): Projection library error. Projection > support > > is not available. > > Pascal, > > This generally means that your Ruby mapscript was built without PROJ.4 > support. I think you need to rebuild ruby mapscript ensuring that PROJ.4 > support is enabled during the full build of mapscript and the underlying > mapserver library. I'm guessing that your mapscript and mapserver cgi > are > not from the same build. > > PS. MapServer is still very active, though perhaps Ruby Mapscript is only > lightly used. > > Best regards, From rwburgholzer at DEQ.VIRGINIA.GOV Tue Jun 12 13:00:23 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Tue, 12 Jun 2007 16:00:23 -0400 Subject: Are maplab and chameleon projects still alive? Message-ID: I have just finally installed both MapLab and Chameleon, both seem very nice. Are these projects still alive, or have other DE's taken their place? Thanks, Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.hale at BTCLICK.COM Tue Jun 12 14:57:26 2007 From: alan.hale at BTCLICK.COM (Alan Hale) Date: Tue, 12 Jun 2007 22:57:26 +0100 Subject: Templatenot displaying image returned from Mapserver In-Reply-To: <466D269D.5157.008F.0@dnr.state.mn.us> Message-ID: I am just starting to get Mapserver set up on Fedora Core 6, on a 1and1 dedicate droot server, managed via Plesk 8. I am testing with simple "Hello World" template, calling a simple image file with just the "hello world" string. Within a virtual host (set up by Dynamic Virtual Hosting by Plesk) I have the paths /httpdocs/mapserver/hello.html, httpdocs/mapserver/hello.map, httpdocs/mapserver/tmp/ and /cgi-bin/mapserv. (template and map file shown below). Mapserv returns an image file to the /tmp/ directory and returns the correct image url to the template - but the image does not display. If I copy the source into a new html file, in the same directory, it works fine. Here is the img tag : I am baffled. Any help much appreciated. TEMPLATE Mapserver Hello World
MAP FILE NAME "Hello_World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "/var/www/vhosts/myvirtualhost.org.uk/httpdocs/mapserver/hello.html" IMAGEPATH "/var/www/vhosts/myvirtualhost.org.uk/httpdocs/mapserver/tmp/" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World " END #end feature CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.14/845 - Release Date: 12/06/2007 06:39 From umberto.nicoletti at GMAIL.COM Wed Jun 13 00:28:23 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 13 Jun 2007 09:28:23 +0200 Subject: MapScript projection error - CGI works fine In-Reply-To: <466EEF95.5050605@dadark.de> Message-ID: On 6/12/07, Pascal Ehlert wrote: > Hi Frank! > > I figured that out myself in the meantime, I used the mapserver from the > debian package > and compiled mapscript on my own. > > As Ruby mapscript isn't very well documented and I didn't check the > whole sourcecode yet, > does anyone know how up-to-date it is? > Are at least the current main features supported? You might want to tell us what you need to do and we'll answer with a yes or no. 'Main features' is a bit fuzzy ;-) Umberto > > > Thank you (especially Frank for your help of course) > > Pascal > > > > Frank Warmerdam schrieb: > > Pascal Ehlert wrote: > >> Hi Mapserver Community! > >> > >> This is my first post here, I hope the project is still active. > >> > >> I've just been trying to migrate my MapServer stuff from the CGI > >> version to > >> the Ruby MapScript version > >> for better integration with my Rails (for those of you who don't > >> know, it's > >> a Ruby web framework) application. > >> > >> Now, while CGI is working fine, the MapScript refuses to work at all, > >> because of a projection error. > >> This really confuses me, I'm using exactly the same mapfile for both > >> of them. > >> > >> > >> This is what I do in Ruby and the error I get: > >> > > > RuntimeError: loadProjection(): Projection library error. Projection > > support > > > is not available. > > > > Pascal, > > > > This generally means that your Ruby mapscript was built without PROJ.4 > > support. I think you need to rebuild ruby mapscript ensuring that PROJ.4 > > support is enabled during the full build of mapscript and the underlying > > mapserver library. I'm guessing that your mapscript and mapserver cgi > > are > > not from the same build. > > > > PS. MapServer is still very active, though perhaps Ruby Mapscript is only > > lightly used. > > > > Best regards, > From stefanie.poeschl at INIT.DE Wed Jun 13 01:09:50 2007 From: stefanie.poeschl at INIT.DE (Stefanie Poeschl) Date: Wed, 13 Jun 2007 03:09:50 -0500 Subject: Work around for WMS client url encoding? Message-ID: Hello list, has anyone found a workaround or fix for this problem? I'm running into the same problem and in desperate need of help! Thanks Stefanie On Thu, 23 Nov 2006 14:30:37 +0800, Chris Tweedie wrote: >Hey guys, > >I'm in urgent need of help highlighting where in mapwms i can turn off the url encoding problems mentioned in bugs #1296 and 1303. The bugs look old but appears to still be a problem with 4.10 > >We have unfortunately found a WMS server which has stricter requirements on encoded elements than mapserver does! > >eg. Mapserver client is still requesting LAYERS=One%2CTwo& instead of LAYERS=One,Two which causes significant problems in various places such as the format and bbox string. > >Cheers > >-- >Chris Tweedie From dave.weaver at ZEN.CO.UK Wed Jun 13 01:36:11 2007 From: dave.weaver at ZEN.CO.UK (Dave Weaver) Date: Wed, 13 Jun 2007 03:36:11 -0500 Subject: Postgis syntax error with WMS time request Message-ID: A couple of weeks ago I experimented with the WMS time support in Mapserver, and got a simple example going on one machine. Now I am trying to implement time support on a different machine (using the mapserv from the fgs distribution), but I am getting a strange error I don't fully understand: ------------------------------------ msDrawMap(): Image handling error. Failed to draw layer named 'sat_time_idx'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT image_time::text,asbinary(force_collection(force_2d(geometry)),'NDR'),image_path::text from satellite WHERE (image_time = 'date_trunc('minute', image_time) = '2007-06-12T11:00:00'') and (geometry && setSRID( 'BOX3D(-20012461.4573608 -44133305.4068053,20012461.4573608 44133305.4068064)'::BOX3D,find_srid('','satellite','geometry') ))' Postgresql reports the error as 'ERROR: syntax error at or near "minute" at character 178 ------------------------------------ I can see what the syntax error is, but I've no idea why it's happening! Can anyone help? The URL I'm using, if it helps, is: http://pb-vmap2:8080/cgi-bin/mapserv?map=map/satellite.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=satellite&SRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=800&HEIGHT=400&FORMAT=image/png&TRANSPARENT=false&TIME=2007-06-12T11:00 My map file is as follows: MAP NAME "Satellite" STATUS ON EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 SIZE 800 400 SHAPEPATH "/home/map/shapes" IMAGECOLOR 100 100 200 TRANSPARENT ON WEB IMAGEPATH "/home/map/fgs/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "Satellite" "wms_onlineresource" "http://pb-vmap2:8080/cgi-bin/mapserv.exe?map=satellite.map" "wms_srs" "EPSG:4326 EPSG:54004" END END PROJECTION "init=epsg:54004" END OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA END LAYER NAME "sat_time_idx" TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE POSTGIS CONNECTION "dbname=map" # host=localhost" DATA "geometry from satellite using unique image_path using srid = 4326" METADATA "wms_title" "sat_time_idx" "wms_srs" "EPSG:4326 EPSG:54004" "wms_timeitem" "image_time" #a column in postgis table of type timestamp "wms_timeextent" "2007-01-01/2099-12-31" "wms_timedefault" "2007-06-12T08:00:00Z" END END LAYER NAME satellite TYPE RASTER STATUS ON METADATA "wms_title" "satellite" "wms_srs" "EPSG:4326 EPSG:54004" END TRANSPARENCY 60 TILEINDEX "sat_time_idx" TILEITEM "image_path" PROJECTION "init=epsg:4326" END END END Many Thanks, Dave. From dave.weaver at ZEN.CO.UK Wed Jun 13 03:11:35 2007 From: dave.weaver at ZEN.CO.UK (Dave Weaver) Date: Wed, 13 Jun 2007 05:11:35 -0500 Subject: Postgis syntax error with WMS time request Message-ID: On 13/06/07, Dave Weaver wrote: > > Now I am trying to implement time support on a different machine (using the > mapserv from the fgs distribution), but I am getting a strange error I don't > fully understand: > > ------------------------------------ > msDrawMap(): Image handling error. Failed to draw layer named 'sat_time_idx'. > prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual > query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > image_time::text,asbinary(force_collection(force_2d(geometry)),'NDR'),image_path::text > from satellite WHERE (image_time = 'date_trunc('minute', image_time) = > '2007-06-12T11:00:00'') and (geometry &&amp; setSRID( 'BOX3D(-20012461.4573608 > -44133305.4068053,20012461.4573608 > 44133305.4068064)'::BOX3D,find_srid('','satellite','geometry') ))' > > Postgresql reports the error as 'ERROR: syntax error at or near "minute" at > character 178 > ------------------------------------ Well, I managed to solve this by simply downloading the lastest mapserver source and re-building it. Perhaps it's a problem in the FGS distribution? However, I'm still experiencing problems trying to display my time-based imagery. Using a WMS request the resultant image is blank. Using a Mapserver-style request, such as: http://pb-vmap2:8080/cgi-bin/mapserv?map=map/satellite.map&mode=map&layers=satellite and adding this line to my time index layer in the map file: FILTER "(date_trunc('minute',image_time) = '2007-06-12T11:00:00')" gives me an image. If I turn on debug output for the WMS request, I see that this Postgis query is being executed: query_string_0_6:DECLARE mycursor BINARY CURSOR FOR SELECT "image_time"::text,asbinary(force_collection(force_2d(geometry)),'NDR'),image_path::text from satellite WHERE (date_trunc('minute', image_time) = '2007-06-12T11:00:00') and (geometry && setSRID( 'BOX3D(-20012461.4573608 -44133305.4068053,20012461.4573608 44133305.4068064)'::BOX3D,find_srid('','satellite','geometry') )) If I cut & paste that into pgsql I get 4 rows returned (my data consists of images for several parts of the world), so it looks ok so far. I suspect that the images are being filtered geographically in some way after the postgis uery (does that happen?) so it might be down to my geometry, but I've no idea how to find out what's wrong. My images are being added to postgis with statements like this: INSERT into satellite (image_path, image_time, geometry) values( '/home/map/time_based_images/SATIR_NAMER_200706131000.png', '2007-06-13 10:00Z', GeometryFromText('POLYGON((-181.486 74.243, -28.5143852 74.2428069, -28.5143852 -2.2428056, -181.486 -2.243, -181.486 74.243))',4326) ) where those numbers in the polygon are lat/long coordinates of the 4 corners of the image - is there anything fundamentally wrong with the above? Many thanks, Dave. From Steve.Lime at DNR.STATE.MN.US Wed Jun 13 05:27:51 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 13 Jun 2007 07:27:51 -0500 Subject: Are maplab and chameleon projects still alive? Message-ID: Hi Robert: According to the MapTools.org website it looks like MapLab is not under active development. Chameleon I believe is still under active development but you might want to join their mailing list and ask there. Steve >>> "Burgholzer,Robert" 06/12/07 3:00 PM >>> I have just finally installed both MapLab and Chameleon, both seem very nice. Are these projects still alive, or have other DE's taken their place? Thanks, Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ From Steve.Lime at DNR.STATE.MN.US Wed Jun 13 05:31:35 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 13 Jun 2007 07:31:35 -0500 Subject: how to addfeature to line layer by perl Message-ID: The code below looks fine (might want some error checking, e.g. is $layer valid), but we're missing the important part- the section that calls save. I assume that's a mapObj or imageObj? Steve >>> huanxiang xu 06/12/07 12:51 PM >>> I know how to addfeature to point layer, but how to addfeature to line layer my $layer=$map->getLayerByName('cruise'); my $poi=new mapscript::pointObj(182.880000,14.090000);my $poi1=new mapscript::pointObj(180.880000, 13.090000); my $lin=new mapscript::lineObj(); $lin->add($poi);$lin->add($poi1); my $shap=new mapscript::shapeObj(); $shap->add($lin); #$layer->addFeature($shap); return $map; Is it right? The perl give me the message: Can't call method "save" on an undefined value BR, xu --------------------------------- ??????3.5G???20M??? From Steve.Lime at DNR.STATE.MN.US Wed Jun 13 05:48:36 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 13 Jun 2007 07:48:36 -0500 Subject: Mapserver Development Environments? Message-ID: You'd think that would be easy to find wouldn't you. The best that exists is: http://mapserver.gis.umn.edu/docs/link There really should be a "Client Software" section but there isn't (yet) so the various links are scattered about the utilities section. There are some important omissions: - CartoWeb (http://www.cartoweb.org/) - MapBender (http://www.mapbender.org - OGC-based but can use MapServer services) - Mapbuilder (http://docs.codehaus.org/display/MAP/Home - also OGC-based) - ka-map (http://ka-map.maptools.org/ - Google-style mapping) - OpenLayers (http://www.openlayers.org/ - more Google-style mapping) - msCross (http://datacrossing.crs4.it/en_Documentation_mscross.html) - GeoMoose (http://www.geomoose.org/moose - a new one from the City of St. Paul) and I bet I'm missing a couple of others. Steve >>> "Burgholzer,Robert" 06/11/07 3:23 PM >>> I am looking for a site with some links to various development environments for mapserver. That is, applications that help automate some of the site development process. I recall there being a list of these at one time, but now I am unable to find it on the mapserver site. Thanks. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ From rwburgholzer at DEQ.VIRGINIA.GOV Wed Jun 13 06:03:11 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Wed, 13 Jun 2007 09:03:11 -0400 Subject: Mapserver Development Environments? Message-ID: Thanks Steve! r.b. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: Wednesday, June 13, 2007 8:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Development Environments? You'd think that would be easy to find wouldn't you. The best that exists is: http://mapserver.gis.umn.edu/docs/link There really should be a "Client Software" section but there isn't (yet) so the various links are scattered about the utilities section. There are some important omissions: - CartoWeb (http://www.cartoweb.org/) - MapBender (http://www.mapbender.org - OGC-based but can use MapServer services) - Mapbuilder (http://docs.codehaus.org/display/MAP/Home - also OGC-based) - ka-map (http://ka-map.maptools.org/ - Google-style mapping) - OpenLayers (http://www.openlayers.org/ - more Google-style mapping) - msCross (http://datacrossing.crs4.it/en_Documentation_mscross.html) - GeoMoose (http://www.geomoose.org/moose - a new one from the City of St. Paul) and I bet I'm missing a couple of others. Steve >>> "Burgholzer,Robert" 06/11/07 3:23 PM >>> I am looking for a site with some links to various development environments for mapserver. That is, applications that help automate some of the site development process. I recall there being a list of these at one time, but now I am unable to find it on the mapserver site. Thanks. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ From dave.weaver at ZEN.CO.UK Wed Jun 13 06:08:46 2007 From: dave.weaver at ZEN.CO.UK (Dave Weaver) Date: Wed, 13 Jun 2007 08:08:46 -0500 Subject: Postgis syntax error with WMS time request Message-ID: On 13/06/07, Dave Weaver wrote: --- snip --- > However, I'm still experiencing problems trying to display my time-based > imagery. Using a WMS request the resultant image is blank. And I finally figured it out (having resorted to the source code and debug messages). It turns out that satellite data layer needs to have "STATUS DEFAULT", not "STATUS ON". Dave. From Steve.Lime at DNR.STATE.MN.US Wed Jun 13 07:15:15 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 13 Jun 2007 09:15:15 -0500 Subject: Mapserver Development Environments? In-Reply-To: <6C097DA58429B743A67070F98BE73A37025EF820@deqex01.deq.local> Message-ID: Anyone have time or interest to develop a page of clients for the website? Steve >>> On 6/13/2007 at 8:03 AM, in message <6C097DA58429B743A67070F98BE73A37025EF820 at deqex01.deq.local>, "Burgholzer,Robert" wrote: > Thanks Steve! > > r.b. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Steve Lime > Sent: Wednesday, June 13, 2007 8:49 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Development Environments? > > You'd think that would be easy to find wouldn't you. The best that > exists is: > > http://mapserver.gis.umn.edu/docs/link > > There really should be a "Client Software" section but there isn't (yet) > so the various links are scattered about the utilities section. > > There are some important omissions: > > - CartoWeb (http://www.cartoweb.org/) > - MapBender (http://www.mapbender.org - OGC-based but can use > MapServer services) > - Mapbuilder (http://docs.codehaus.org/display/MAP/Home - also > OGC-based) > - ka-map (http://ka-map.maptools.org/ - Google-style mapping) > - OpenLayers (http://www.openlayers.org/ - more Google-style mapping) > - msCross (http://datacrossing.crs4.it/en_Documentation_mscross.html) > - GeoMoose (http://www.geomoose.org/moose - a new one from the City of > St. Paul) > > and I bet I'm missing a couple of others. > > Steve > >>>> "Burgholzer,Robert" 06/11/07 3:23 PM >>>> > I am looking for a site with some links to various development > environments for mapserver. That is, applications that help automate > some of the site development process. I recall there being a list of > these at one time, but now I am unable to find it on the mapserver site. > > > > Thanks. > > > > Robert W. Burgholzer > > Surface Water Modeler > > Office of Water Supply and Planning > > Virginia Department of Environmental Quality > > rwburgholzer at deq.virginia.gov > > 804-698-4405 > > Open Source Modeling Tools: > > http://sourceforge.net/projects/npsource/ > > From dadark at DADARK.DE Wed Jun 13 07:25:06 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Wed, 13 Jun 2007 16:25:06 +0200 Subject: One shapefile, many countries, many colors? Message-ID: Hi all! I used shp2pgsql to insert the definitions of many countries (the African continent actually ;)) into my PostGIS enabled database. Is there still a way to distinguish between the countries now and assign different colors to them? ArcView does this in a really nice way so I think it should be possible with the MapServer too, isn't it? Thank you Pascal From dadark at DADARK.DE Wed Jun 13 07:25:23 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Wed, 13 Jun 2007 16:25:23 +0200 Subject: MapScript projection error - CGI works fine In-Reply-To: <75b4b93e0706130028t31d8c741ud83f9988b13eaa43@mail.gmail.com> Message-ID: Just checked it, everything I need is supported ;-) Thank you again! Umberto Nicoletti wrote: > On 6/12/07, Pascal Ehlert wrote: >> Hi Frank! >> >> I figured that out myself in the meantime, I used the mapserver from the >> debian package >> and compiled mapscript on my own. >> >> As Ruby mapscript isn't very well documented and I didn't check the >> whole sourcecode yet, >> does anyone know how up-to-date it is? >> Are at least the current main features supported? > > You might want to tell us what you need to do and we'll answer with a > yes or no. > 'Main features' is a bit fuzzy ;-) > > Umberto > >> >> >> Thank you (especially Frank for your help of course) >> >> Pascal >> >> >> >> Frank Warmerdam schrieb: >> > Pascal Ehlert wrote: >> >> Hi Mapserver Community! >> >> >> >> This is my first post here, I hope the project is still active. >> >> >> >> I've just been trying to migrate my MapServer stuff from the CGI >> >> version to >> >> the Ruby MapScript version >> >> for better integration with my Rails (for those of you who don't >> >> know, it's >> >> a Ruby web framework) application. >> >> >> >> Now, while CGI is working fine, the MapScript refuses to work at all, >> >> because of a projection error. >> >> This really confuses me, I'm using exactly the same mapfile for both >> >> of them. >> >> >> >> >> >> This is what I do in Ruby and the error I get: >> >> >> > > RuntimeError: loadProjection(): Projection library error. Projection >> > support >> > > is not available. >> > >> > Pascal, >> > >> > This generally means that your Ruby mapscript was built without PROJ.4 >> > support. I think you need to rebuild ruby mapscript ensuring that >> PROJ.4 >> > support is enabled during the full build of mapscript and the >> underlying >> > mapserver library. I'm guessing that your mapscript and mapserver cgi >> > are >> > not from the same build. >> > >> > PS. MapServer is still very active, though perhaps Ruby Mapscript >> is only >> > lightly used. >> > >> > Best regards, >> > From percyd at PDX.EDU Wed Jun 13 07:29:48 2007 From: percyd at PDX.EDU (percy) Date: Wed, 13 Jun 2007 07:29:48 -0700 Subject: Mapserver Development Environments? In-Reply-To: <466FA1540200008F0000BACF@co5.dnr.state.mn.us> Message-ID: p.mapper is a very nice modern "mapping framework" (that's what I refer to these applications in my talks on the subject) and then there's our own Map-Fu. Percy Steve Lime wrote: > You'd think that would be easy to find wouldn't you. The best that exists is: > > http://mapserver.gis.umn.edu/docs/link > > There really should be a "Client Software" section but there isn't (yet) so the various links are scattered about the utilities section. > > There are some important omissions: > > - CartoWeb (http://www.cartoweb.org/) > - MapBender (http://www.mapbender.org - OGC-based but can use MapServer services) > - Mapbuilder (http://docs.codehaus.org/display/MAP/Home - also OGC-based) > - ka-map (http://ka-map.maptools.org/ - Google-style mapping) > - OpenLayers (http://www.openlayers.org/ - more Google-style mapping) > - msCross (http://datacrossing.crs4.it/en_Documentation_mscross.html) > - GeoMoose (http://www.geomoose.org/moose - a new one from the City of St. Paul) > > and I bet I'm missing a couple of others. > > Steve > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From peter.bruton at NRCAN.GC.CA Wed Jun 13 08:16:02 2007 From: peter.bruton at NRCAN.GC.CA (Peter Bruton) Date: Wed, 13 Jun 2007 10:16:02 -0500 Subject: Label cache and potting in 4.8.1 Message-ID: Hello; I am using MapServer 4.8.1 and would like to control the order in which labels are plotted on a map. Lets say I have 2 annotation layers. One layer has capital city labels and the second has populated place labels. How would I ensure that all capital city labels are plotted first and then populated place labels are plotted? Besides the general question I have outlined in the previous paragraph I would like to know how MapServer assembles the labelcache and then orders labels in the cache. As I understand it MapServer 4.8.1 uses the last in first out (LIFO) mechanism to plot labels on a map. To use the previous paragraphs example, would I position the populated place layer second from the bottom of my mapfile and the capital city layer at the bottom of my mapfile so that the capital city layer is read into the cache last and thus plotted first? I presume that once all of the capital city labels are removed from the cache, the populated place layers are plotted. If that is the case, how does Mapserver determine the order in which the labels in that capital city layer are ordered in the cache and then plotted? As I understand it, I can use the "sortshp" utility to oder the records in a shapefile to control plotting order of labels. However, not all shapefiles have an attribute that can be used to sort the shapefile records. If a data set does not have an attribute that allows for the sorting of shapefile records, how does MapServer order labels in the cache? I am interested in understanding how MapServer's label plots labels on a map. Suppose the LABEL object's POSITION parameter is set to AUTO. One way that labels can be positioned is for the first label in the cache plotted in an absolute position and never moved? Then the the second label position is determined by any LABEL object parameters (such as BUFFER, OFFSET, etc.) and the location of the first label. The second label now has an absolute position and is never moved. The rest of the labels in the cache (third, fourth, etc.) are plotted in a similar manner. Is this how MapServer positions labels or is some other strategy used? Any insight on how MapServer's label cache and plotting is appreciated. Peter Bruton From david.craig.wilson at GMAIL.COM Wed Jun 13 09:30:41 2007 From: david.craig.wilson at GMAIL.COM (David Wilson) Date: Wed, 13 Jun 2007 11:30:41 -0500 Subject: Newbie question: Adding "labels" Message-ID: First off, thanks for making such a great product in MapServer. Really enjoying it. I think I'm having a jargon problem. I can't figure out if the data I have contains labels (for example highway numbers) and how to get MapServer to display them. In the mapfile reference, I expect "label" to refer to the thing I'm looking for, but that seems to refer to text manually inserted in the map file. How do I determine if the names are included in the shapefile data? How do I display the names with MapServer? Thanks! Dave Information about the road data: http://nationalatlas.gov/metadata/road00l.faq.html http://mapserver.gis.umn.edu/docs/reference/mapfile/label http://maps1.trac-king.com/tk4/itasca/demo_init.html [data]$ ls citiesx020.dbf citiesx020.tar.gz road_l.prj road_l.shp roads_French.txt statesp020.shx citiesx020.shp citiesx020.txt road_l.sbn road_l.shx statesp020.dbf statesp020.tar.gz citiesx020.shx road_l.dbf road_l.sbx roadsenglish.txt statesp020.shp statesp020.txt From woodbri at SWOODBRIDGE.COM Wed Jun 13 09:52:07 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 13 Jun 2007 12:52:07 -0400 Subject: One shapefile, many countries, many colors? In-Reply-To: <466FFE42.9060801@dadark.de> Message-ID: Pascal Ehlert wrote: > Hi all! > > I used shp2pgsql to insert the definitions of many countries (the > African continent actually ;)) into my PostGIS enabled database. > > Is there still a way to distinguish between the countries now and assign > different colors to them? > ArcView does this in a really nice way so I think it should be possible > with the MapServer too, isn't it? > > > > Thank you > > Pascal Yes, basically you would have to set up a column in the query to be a CLASSITEM and have the column represent the color you want. Then in the mapfile set up colors for each class. -Steve W. From woodbri at SWOODBRIDGE.COM Wed Jun 13 09:54:52 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 13 Jun 2007 12:54:52 -0400 Subject: Newbie question: Adding "labels" In-Reply-To: <24dc0be10706130930k47f1d9bem3b3f1fd85a4a9251@mail.gmail.com> Message-ID: David Wilson wrote: > First off, thanks for making such a great product in MapServer. Really > enjoying it. > > I think I'm having a jargon problem. I can't figure out if the data I > have contains labels (for example highway numbers) and how to get > MapServer to display them. > > In the mapfile reference, I expect "label" to refer to the thing I'm > looking for, but that seems to refer to text manually inserted in the > map file. > > How do I determine if the names are included in the shapefile data? > How do I display the names with MapServer? In the LAYER set LABELITEM attribute and or in the CLASS you can do TEXT ([attribute1] [attribute2]) and this will be used for the label text. -Steve W. From maurosa at IOL.IT Wed Jun 13 11:45:14 2007 From: maurosa at IOL.IT (maurosa@iol.it) Date: Wed, 13 Jun 2007 20:45:14 +0200 Subject: Random java crashes using intarray.setitem in java mapscript code Message-ID: Hi list I am experiencing random java crashes using intarray.setitem in java mapscript code. The code the crashes is the following //get the current drawing order intarray iaOrder = _map.getLayersDrawingOrder(); //read the wanted order from aOrderedLayers array layerObj lay = null; for (int nOrder=0; nOrder Message-ID: Hi Peter: (comments inline) >>> On 6/13/2007 at 10:16 AM, in message , Peter Bruton wrote: > Hello; > > I am using MapServer 4.8.1 and would like to control the order in which > labels are plotted on a map. Lets say I have 2 annotation layers. One > layer has capital city labels and the second has populated place labels. > How would I ensure that all capital city labels are plotted first and then > populated place labels are plotted? That's easy, draw the capital labels last and they will be given priority. > Besides the general question I have outlined in the previous paragraph I > would like to know how MapServer assembles the labelcache and then orders > labels in the cache. As I understand it MapServer 4.8.1 uses the last in > first out (LIFO) mechanism to plot labels on a map. To use the previous > paragraphs example, would I position the populated place layer second from > the bottom of my mapfile and the capital city layer at the bottom of my > mapfile so that the capital city layer is read into the cache last and thus > plotted first? I presume that once all of the capital city labels are > removed from the cache, the populated place layers are plotted. This is correct, LIFO... > If that is the case, how does Mapserver determine the order in which the > labels in that capital city layer are ordered in the cache and then plotted? > As I understand it, I can use the "sortshp" utility to oder the records in > a shapefile to control plotting order of labels. However, not all > shapefiles have an attribute that can be used to sort the shapefile records. > If a data set does not have an attribute that allows for the sorting of > shapefile records, how does MapServer order labels in the cache? The labels are always LIFO. So, if you do an ascending sort on population (biggest city last) then the biggest cities will take priority. If you don't sort MapServer renders based on the order features are placed in the cache. For a shapefile that means the order they appear in the file. (I should note that ver. 5.0 will feature a new label priority parameter for more fine tuning in this respect.) > I am interested in understanding how MapServer's label plots labels on a > map. Suppose the LABEL object's POSITION parameter is set to AUTO. One > way that labels can be positioned is for the first label in the cache > plotted in an absolute position and never moved? Then the the second label > position is determined by any LABEL object parameters (such as BUFFER, > OFFSET, etc.) and the location of the first label. The second label now has > an absolute position and is never moved. The rest of the labels in the > cache (third, fourth, etc.) are plotted in a similar manner. Is this how > MapServer positions labels or is some other strategy used? Labels are plotted with AUTO until they fit with no overlap, they are not adjusted once placed. I believe the UL position is first. If that won't work then we work around the positions counter clockwise until one works. If one doesn't then the label is skipped. It's not optimal but works reasonably well and is reasonably fast. Parameters like buffer, offset and angle are applied to a labels minimum bounding rectangle before collision computations are handled. > Any insight on how MapServer's label cache and plotting is appreciated. > > Peter Bruton Steve From jchurchill at AL.UMCES.EDU Wed Jun 13 13:26:30 2007 From: jchurchill at AL.UMCES.EDU (John B. Churchill) Date: Wed, 13 Jun 2007 16:26:30 -0400 Subject: Mapscript/PHP help me display tabular results of my query (queryByAttributes) Message-ID: Hi, I have been looking through the Mapscript API and can't find what I'm looking for. I'm just asking for help with a tip as to where to look. I'm trying to display the results of my query. ++++++++++++++ BEGIN CODE ++++++++++++++++++ getlayer($layernum); $success = $layer->queryByAttributes($field, $qstring, MS_MULTIPLE); $layer->open(); for ($i = 0; $i <= $layer->getnumresults();$i += 1) { $resultx = $layer->getResult($i); // THIS Does NOT give me what I'm after print "
";
print_r($resultx); // print_r($resultx);
print "
"; } ++++++++++++++ END OF CODE ++++++++++++++++++ The last section (with print_r) shows me the result of my query but not in the form that I want. I want to see the records in the dbf table of the shapefile that I have queried. What am I doing wrong ? -- --------------------------------------------- John B. Churchill, M.S. http://alx.al.umces.edu/~jchurch/ GIS Specialist (301) 689-7109 University of Maryland Center for Environmental Science Appalachian Laboratory http://www.al.umces.edu/ Environmental Science Education http://alese.al.umces.edu/ 301 Braddock Road Frostburg, MD 21532 From traviskirstine at GMAIL.COM Wed Jun 13 15:15:20 2007 From: traviskirstine at GMAIL.COM (Travis Kirstine) Date: Wed, 13 Jun 2007 18:15:20 -0400 Subject: ORG connection querybyattribute problem Message-ID: I have several shp files with attibute index generated with ogr and connected to mapsever using a tindex and a ogr connection. The map displays fine however querybyattribute no longer works (works when directly connected to shpfile). Error Msg: Warning: [MapServer Error]: msOGRLayerInitItemInfo(): Invalid Field name: PIN in /var/www/html/avm_v2/classes/Map.php on line 279 LAYER CONNECTIONTYPE OGR TILEINDEX "/var/www/data/zoom2it_mapserver/teranet_parcels/avm_parcels/avm_ogrindex.shp,0" #TILEINDEX /var/www/data/zoom2it_mapserver/teranet_parcels/avm_parcels/avm_parcelindex #TILEITEM "location" NAME "pin" TEMPLATE VOID METADATA DESCRIPTION "Parcel Identification Number (PIN)" END GROUP "pin" TYPE Polygon STATUS on CLASS STYLE OUTLINECOLOR 255 255 100 SYMBOL 'line_tk' SIZE 2 END END END Any help would be great -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From ben at REMOTEINFORMATION.COM.AU Wed Jun 13 15:16:00 2007 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Thu, 14 Jun 2007 06:16:00 +0800 Subject: mapserver and msCross In-Reply-To: Message-ID: G'day List, This is a sensational response to a question. How can we make sure that this effort in a response is : a) recognised, and b) captured within the website to make it easier for future reference rather than having to plough into a list search. cheers Ben On 12/06/2007, at 1:01 PM, MAPSERVER-USERS automatic digest system wrote: > From: Rodrigo Mart?n L?PEZ GREGORIO > > Date: 12 June 2007 4:31:24 AM > Subject: Re: mapserver and msCross > -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigomlg at GMAIL.COM Wed Jun 13 17:56:39 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Wed, 13 Jun 2007 21:56:39 -0300 Subject: mapserver and msCross In-Reply-To: Message-ID: Thanks Ben. It's always great hearing good things about what I do. I think however, my writing is not so good and maybe someone can make some (maybe a lot) corrections or improve my explanations before. And obviously I can make the spanish version if there is some place to put it also. Thanks again Ben for your comment. On 6/13/07, Ben Madin wrote: > > G'day List, > This is a sensational response to a question. How can we make sure that > this effort in a response is : > > a) recognised, and > > b) captured within the website to make it easier for future reference > rather than having to plough into a list search. > > cheers > > Ben > > > On 12/06/2007, at 1:01 PM, MAPSERVER-USERS automatic digest system wrote: > > *From: *Rodrigo Mart?n L?PEZ GREGORIO > > *Date: *12 June 2007 4:31:24 AM > > *Subject: **Re: mapserver and msCross* > > > > -- > > Ben Madin > REMOTE INFORMATION > > t : +61 8 9192 5455 > f : +61 8 9192 5535 > m : 0448 887 220 > Broome WA 6725 > > ben at remoteinformation.com.au > > > > > > Out here, it pays to know... > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karsten at TERRAGIS.NET Wed Jun 13 18:09:49 2007 From: karsten at TERRAGIS.NET (karsten vennemann) Date: Wed, 13 Jun 2007 18:09:49 -0700 Subject: One shapefile, many countries, many colors? In-Reply-To: <467020B7.40500@swoodbridge.com> Message-ID: Subject: Re: [UMN_MAPSERVER-USERS] One shapefile, many countries, many colors? Pascal Ehlert wrote: > Hi all! > > I used shp2pgsql to insert the definitions of many countries (the > African continent actually ;)) into my PostGIS enabled database. > > Is there still a way to distinguish between the countries now and assign > different colors to them? > ArcView does this in a really nice way so I think it should be possible > with the MapServer too, isn't it? > > > > Thank you > > Pascal > Yes, basically you would have to set up a column in the query to be a > CLASSITEM and have the column represent the color you want. Then in the > mapfile set up colors for each class. > -Steve W. As an example I am usually using something similar like this: LAYER NAME "Countries" GROUP "Africa" TYPE POLYGON STATUS ON CONNECTIONTYPE postgis CONNECTION "user=me password=none dbname=africa host=localhost" DATA "the_geom from (select the_geom, countryname, area, gid from africa_countries) as temp using unique gid using SRID=4326" # SRID 4326 is when using decimal degrees, replace with the correct SRID for your data CLASSITEM "countryname" CLASS NAME "EGYPT" COLOR 153 204 143 EXPRESSION ([countryname]=EGYPT) END CLASS NAME "LYBIA" COLOR 252 141 50 EXPRESSION ([countryname]=LYBIA) END CLASS NAME "MADAGASCAR" COLOR 255 190 232 EXPRESSION ([countryname]=MADAGASCAR) END END Cheers Karsten From andre at COVALUATE.COM Wed Jun 13 18:35:53 2007 From: andre at COVALUATE.COM (Andre Lockhart) Date: Wed, 13 Jun 2007 18:35:53 -0700 Subject: Source code for offset feature Message-ID: Sorry for the newbie question, but where can I find the source code for the OFFSET feature in MapServer? Thanks. Andr? Lockhart andre at CoValuate.com 510.333.7189 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 2286 bytes Desc: not available URL: From richard.greenwood at GMAIL.COM Wed Jun 13 21:08:34 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 13 Jun 2007 22:08:34 -0600 Subject: Mapserver Development Environments? In-Reply-To: <466FB5A9.5157.008F.0@dnr.state.mn.us> Message-ID: On 6/13/07, Steve Lime wrote: > Anyone have time or interest to develop a page of clients for the website? > > Steve I think this is very important. A wiki entry was started more than a year ago on this. Cameron, Arnulf, Paul Spencer had a paragraph or two and I have taken the liberty of copying them this email. I threw in a couple paragraphs on jBox and dBox. We need to pursue this. The server-side of web mapping is more mature than the client side. It is hard to figure out what the various clients offer and which client might be a good fit for a given project. New users need a general overview of client capabilities. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From dadark at DADARK.DE Wed Jun 13 23:05:16 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Thu, 14 Jun 2007 08:05:16 +0200 Subject: One shapefile, many countries, many colors? In-Reply-To: <002101c7ae20$b4b2ed40$6501a8c0@snuggie> Message-ID: That's great, thank you for the example.. Makes it a lot clearer :) > As an example I am usually using something similar like this: > > LAYER > NAME "Countries" > GROUP "Africa" > TYPE POLYGON > STATUS ON > CONNECTIONTYPE postgis > CONNECTION "user=me password=none dbname=africa host=localhost" > DATA "the_geom from (select the_geom, countryname, area, gid from > africa_countries) as temp using unique gid using SRID=4326" > # SRID 4326 is when using decimal degrees, replace with the correct SRID > for your data > CLASSITEM "countryname" > CLASS > NAME "EGYPT" > COLOR 153 204 143 > EXPRESSION ([countryname]=EGYPT) > END > CLASS > NAME "LYBIA" > COLOR 252 141 50 > EXPRESSION ([countryname]=LYBIA) > END > CLASS > NAME "MADAGASCAR" > COLOR 255 190 232 > EXPRESSION ([countryname]=MADAGASCAR) > END > END > > Cheers > Karsten > > From pgiannini at BYTEWISE.IT Thu Jun 14 00:34:15 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Thu, 14 Jun 2007 09:34:15 +0200 Subject: Mapscript/PHP help me display tabular results of my query (queryByAttributes) In-Reply-To: <467052F6.4090609@al.umces.edu> Message-ID: Hi John, the result of "$layer->getResult($i)" is a result cache; you must obtain the shape of the layer by the "shapeindex" property of the result cache: your code: /**********************************/ $layer->open(); for ($i = 0; $i <= $layer->getnumresults();$i += 1) { $resultx = $layer->getResult($i); // THIS Does NOT give me what I'm after print "
";
 print_r($resultx); // print_r($resultx);
 print "
"; } /**********************************/ modified: /**********************************/ $layer->open(); for ($i = 0; $i <= $layer->getnumresults();$i += 1) { $resultx = $layer->getResult($i); $shape = $layer->getShape($resultx->shapeindex); print "
";
 print_r($shape->values['string_name_of_the_field']);
 print "
"; } /**********************************/ take a look here: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/layerobj http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/resultcachememberobj bye ................................pg Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E > Hi, > > I have been looking through the Mapscript API and can't find what I'm > looking for. I'm just asking for help with a tip as to where to look. > I'm trying to display the results of my query. > > ++++++++++++++ BEGIN CODE ++++++++++++++++++ > dl('php_mapscript.dll'); > > list($layername, $field) = split(",", $_GET['q']); // q is the value of > what was selected > > $options = array(); > $map_path="C:\\ms4w\\Apache\htdocs\\img_browser\\"; > $map_file="imgb_access.map"; > $map = ms_newMapObj($map_path.$map_file); > > switch($layername) { > case 'landsat_4': > $layernum = 3; > $qstring = "Landsat"; > break; > case 'ikonos': > $layernum = 4; > $qstring = "Ikonos"; > break; > case 'hyperion': > $layernum = 5; > $qstring = "Hyperion"; > break; > case 'mn_airphotos': > $layernum = 6; > $qstring = "MN DNR"; > break; > } > > $layer = $map->getlayer($layernum); > $success = $layer->queryByAttributes($field, $qstring, MS_MULTIPLE); > $layer->open(); > > for ($i = 0; $i <= $layer->getnumresults();$i += 1) { > $resultx = $layer->getResult($i); > > // THIS Does NOT give me what I'm after > print "
";
> print_r($resultx); // print_r($resultx);
> print "
"; > } > > ++++++++++++++ END OF CODE ++++++++++++++++++ > The last section (with print_r) shows me the result of my query but not > in the form that I want. I want to see the records in the dbf table of > the shapefile that I have queried. What am I doing wrong ? > > -- > --------------------------------------------- > John B. Churchill, M.S. http://alx.al.umces.edu/~jchurch/ > GIS Specialist (301) 689-7109 > > University of Maryland Center for Environmental Science > Appalachian Laboratory http://www.al.umces.edu/ > Environmental Science Education http://alese.al.umces.edu/ > > 301 Braddock Road > Frostburg, MD 21532 > From rwburgholzer at DEQ.VIRGINIA.GOV Thu Jun 14 05:28:16 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Thu, 14 Jun 2007 08:28:16 -0400 Subject: Mapserver Development Environments? Message-ID: Steve/Richard, I am assuming that all that will be required is a little bit of text formatting, and soliciting/organizing blurbs about the various environments that exist. If my assumptions are correct, I would be glad to do this. If someone can give me basic instructions, i.e., do I go to the mapserver wiki entry that was mentioned by Richard? Is this the pre-2005 wiki, the only one I can find reference to on the mapserver site, I assume therefore the wiki is no longer functioning? Also, what do we call them? Mapserver Development Environments? Mapserver Mapping Frameworks? r.b. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard Greenwood Sent: Thursday, June 14, 2007 12:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Development Environments? On 6/13/07, Steve Lime wrote: > Anyone have time or interest to develop a page of clients for the website? > > Steve I think this is very important. A wiki entry was started more than a year ago on this. Cameron, Arnulf, Paul Spencer had a paragraph or two and I have taken the liberty of copying them this email. I threw in a couple paragraphs on jBox and dBox. We need to pursue this. The server-side of web mapping is more mature than the client side. It is hard to figure out what the various clients offer and which client might be a good fit for a given project. New users need a general overview of client capabilities. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From David.Fawcett at STATE.MN.US Thu Jun 14 06:00:02 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 14 Jun 2007 08:00:02 -0500 Subject: mapserver and msCross In-Reply-To: A Message-ID: Ben, You could definitely contribute a 'How To' or Tutorial to the MapServer site. see http://mapserver.gis.umn.edu/docs/howto or http://mapserver.gis.umn.edu/docs/tutorial David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ben Madin Sent: Wednesday, June 13, 2007 5:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver and msCross G'day List, This is a sensational response to a question. How can we make sure that this effort in a response is : a) recognised, and b) captured within the website to make it easier for future reference rather than having to plough into a list search. cheers Ben On 12/06/2007, at 1:01 PM, MAPSERVER-USERS automatic digest system wrote: From: Rodrigo Mart?n L?PEZ GREGORIO Date: 12 June 2007 4:31:24 AM Subject: Re: mapserver and msCross -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From monica.petri at GMAIL.COM Thu Jun 14 06:12:57 2007 From: monica.petri at GMAIL.COM (Monica Petri) Date: Thu, 14 Jun 2007 08:12:57 -0500 Subject: using attributes in the VAT table of a GRID instead of Value Message-ID: Hello listers, I want to map a grid not using its Value [pixel] but using an attribute within the VAT table itself. I tried using the same coding in the *.map file, but it doesn't work. Any ideas why or any workaround? Thanks in advance Monica From peter.bruton at NRCAN.GC.CA Thu Jun 14 06:24:44 2007 From: peter.bruton at NRCAN.GC.CA (Peter Bruton) Date: Thu, 14 Jun 2007 08:24:44 -0500 Subject: AGG Message-ID: Hello; I have been experimenting with AGG in MapServer (CVS April 26/2007) using various OUTPUTFORMATs and found the results inconsistent. To experiment with various OUTPUTFORMATs (DRIVERs and IMAGEMODEs), a series of mapfiles were created that have a single line layer where all features are drawn as black lines with a width of one pixel. DRIVER GD/GIF and IMAGEMODE PC256 The lines were rendered as expected. I performed this test as a baseline. http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_gd_gif_pc256.map&mode=map DRIVER AGG/PC256 and IMAGEMODE RGBA While anti-aliasing was present the pattern of the line was not consistent. Sometimes a solid line and other times there were gaps in the line. http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_agg_pc_rgba.map&mode=map DRIVER AGG/PNG and IMAGEMODE RGBA While anti-aliasing was present, the lines were gray and not black. In addition the pattern of the line was not consistent. Sometimes a solid line and other times there were gaps in the line. http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_agg_png_rgba.map&mode=map DRIVER AGG/PNG24 and IMAGEMODE RGBA While anti-aliasing was present, the lines were gray and not black. In addition the pattern of the line was not consistent. Sometimes a solid line and other times there were gaps in the line. http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_agg_png24_rgba.map&mode=map DRIVER AGG/JPG and IMAGEMODE RGBA While this produced the best rendering of the line, the background was pixelated around the line. http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_agg_jpg_rgba.map&mode=map DRIVER AGG/GIF and IMAGEMODE RGBA While anti-aliasing was present the pattern of the line was not consistent. Sometimes a solid line and other times there were gaps in the line. http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_agg_gif_rgba.map&mode=map It is not clear to me why gray and/or lines with inconsistent patterns were returned. Are the DRIVER/IMAGEMODE conbinations I am using not compatible with one another? Or am I missing something else. The symbol definition I am using for the lines in the mapfiles is: SYMBOL TYPE ELLIPSE NAME solidline POINTS 1 1 END FILLED true END Any insight to the problems I am having is appreciated. Peter Bruton From warmerdam at POBOX.COM Thu Jun 14 06:45:54 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 14 Jun 2007 09:45:54 -0400 Subject: AGG In-Reply-To: Message-ID: Peter Bruton wrote: > DRIVER AGG/PC256 and IMAGEMODE RGBA > While anti-aliasing was present the pattern of the line was not consistent. > Sometimes a solid line and other times there were gaps in the line. > http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_agg_pc_rgba.map&mode=map Peter, I expect the driver statement to include a file format name. PC256 is an IMAGEMODE. So I'm not sure what is actually being used in this case. > Any insight to the problems I am having is appreciated. I think there is some danger to using 24bit RGB formats and IMAGEMODE RGBA since the alpha is being discarded before writing to the file. Is there a reason that a 32bit PNG file output was not amoung your options? I really should get AGG into my build so I can play with this stuff! 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 bea at IXSEA.COM Thu Jun 14 06:37:02 2007 From: bea at IXSEA.COM (Benoit Andrieu) Date: Thu, 14 Jun 2007 08:37:02 -0500 Subject: Small differences in input and output Message-ID: Hi everyone ! I am trying to use MapServer to serve images at full resolution, but right now the images I receive from MS are a little different from what is in the input's files. The whole image seems to be correct but by looking closer, one can see that a vertical line has been inserted in the result. In order to achieve this, my request to the server does not include the BBOX in order to receive the whole extent served by the server. The requested width and length are equal to those of the mapfiles. The Layer is composed of one Tiff file georeferenced with a tfw file. The extent of the Map is equal to the extent of the tfw file. The projection are the same in the layer and in the input. The line that is inserted in the resulting output does not seem to come from the input neither seems to be an interpolation of the input. As a second test, I tried to offset my extent by half the resolution of my input but in this output we can now see that a set of vertical lines is offseted. You can see my input and output : http://benoit.andrieu.free.fr/images/input.png http://benoit.andrieu.free.fr/images/output_1.png http://benoit.andrieu.free.fr/images/output_2.png As you'll see the difference is very small but I need to not have this difference. Does someone has any clue where the difference could be ? Thanks in advance ! Beno?t From rodrigomlg at GMAIL.COM Thu Jun 14 06:56:55 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Thu, 14 Jun 2007 14:56:55 +0100 Subject: mapserver and msCross In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB4B3@s-sp22.pca.state.mn.us> Message-ID: David, Ben I add the how-to last night to the How-To section of Mapserver site. It's still "waiting for reviewer" but it's already there. If anyone want to take a look and suggest any corrections (specially with the writing) I can edit the how-to to improve it. http://mapserver.gis.umn.edu/docs/howto/PHPMapscriptAndMscross Thanks. Rodrigo. On 6/14/07, Fawcett, David wrote: > > Ben, > > You could definitely contribute a 'How To' or Tutorial to the MapServer > site. > > see http://mapserver.gis.umn.edu/docs/howto > or http://mapserver.gis.umn.edu/docs/tutorial > > David. > > -----Original Message----- > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Ben Madin > *Sent:* Wednesday, June 13, 2007 5:16 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] mapserver and msCross > > G'day List, > This is a sensational response to a question. How can we make sure that > this effort in a response is : > > a) recognised, and > > b) captured within the website to make it easier for future reference > rather than having to plough into a list search. > > cheers > > Ben > > > On 12/06/2007, at 1:01 PM, MAPSERVER-USERS automatic digest system wrote: > > *From: *Rodrigo Mart?n L?PEZ GREGORIO > > > *Date: *12 June 2007 4:31:24 AM > > *Subject: **Re: mapserver and msCross* > > > > -- > > Ben Madin > REMOTE INFORMATION > > t : +61 8 9192 5455 > f : +61 8 9192 5535 > m : 0448 887 220 > Broome WA 6725 > > ben at remoteinformation.com.au > > > > > > Out here, it pays to know... > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Thu Jun 14 07:02:18 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 14 Jun 2007 16:02:18 +0200 Subject: AGG In-Reply-To: Message-ID: Peter, artifacts (in your case pixelation) are expected in jpg images due to the compression algorithm: http://en.wikipedia.org/wiki/Compression_artifact Umberto On 6/14/07, Peter Bruton wrote: > Hello; > > I have been experimenting with AGG in MapServer (CVS April 26/2007) using > various OUTPUTFORMATs and found the results inconsistent. To experiment > with various OUTPUTFORMATs (DRIVERs and IMAGEMODEs), a series of mapfiles > were created that have a single line layer where all features are drawn as > black lines with a width of one pixel. > > DRIVER GD/GIF and IMAGEMODE PC256 > The lines were rendered as expected. I performed this test as a baseline. > http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_gd_gif_pc256.map&mode=map > > DRIVER AGG/PC256 and IMAGEMODE RGBA > While anti-aliasing was present the pattern of the line was not consistent. > Sometimes a solid line and other times there were gaps in the line. > http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_agg_pc_rgba.map&mode=map > > DRIVER AGG/PNG and IMAGEMODE RGBA > While anti-aliasing was present, the lines were gray and not black. In > addition the pattern of the line was not consistent. Sometimes a solid line > and other times there were gaps in the line. > http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_agg_png_rgba.map&mode=map > > DRIVER AGG/PNG24 and IMAGEMODE RGBA > While anti-aliasing was present, the lines were gray and not black. In > addition the pattern of the line was not consistent. Sometimes a solid line > and other times there were gaps in the line. > http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_agg_png24_rgba.map&mode=map > > DRIVER AGG/JPG and IMAGEMODE RGBA > While this produced the best rendering of the line, the background was > pixelated around the line. > http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_agg_jpg_rgba.map&mode=map > > DRIVER AGG/GIF and IMAGEMODE RGBA > While anti-aliasing was present the pattern of the line was not consistent. > Sometimes a solid line and other times there were gaps in the line. > http://dev.atlas.gc.ca/cgi-bin/mapserv_dev?map=/home/atlas/mapdata/english/pb_agg_gif_rgba.map&mode=map > > It is not clear to me why gray and/or lines with inconsistent patterns were > returned. Are the DRIVER/IMAGEMODE conbinations I am using not compatible > with one another? Or am I missing something else. > > The symbol definition I am using for the lines in the mapfiles is: > > SYMBOL > TYPE ELLIPSE > NAME solidline > POINTS > 1 1 > END > FILLED true > END > > Any insight to the problems I am having is appreciated. > > Peter Bruton > From warmerdam at POBOX.COM Thu Jun 14 07:11:08 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 14 Jun 2007 10:11:08 -0400 Subject: Small differences in input and output In-Reply-To: Message-ID: Benoit Andrieu wrote: ... > Theline that is inserted in the resulting output does not seem to come from > the input neither seems to be an interpolation of the input. > > As a second test, I tried to offset my extent by half the resolution of my > input but in this output we can now see that a set of vertical lines is > offseted. > > You can see my input and output : > http://benoit.andrieu.free.fr/images/input.png > http://benoit.andrieu.free.fr/images/output_1.png > http://benoit.andrieu.free.fr/images/output_2.png > > As you'll see the difference is very small but I need to not have this > difference. Benoit, What are you using for your EXTENT line in the mapfile? What does gdalinfo report for input.png? The MapServer "extent" is from the center of corner pixel to center of corner pixel, while the GDAL extents are from the outer edge of the corner pixels. So if you use gdalinfo to get the extents, you need to adjust them "in" by half a pixel. I *suspect* this is what is happening to you. If not, please file a bug, assigned to me, with a minimal map file, and input file that demonstrates the problem and I'll dig into it. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From g.molinario at GMAIL.COM Thu Jun 14 07:16:52 2007 From: g.molinario at GMAIL.COM (Giuseppe Molinario) Date: Thu, 14 Jun 2007 16:16:52 +0200 Subject: postgis Message-ID: Hi everyone, I am working with a postgis point table that needs to be displayed in a mapserver application (pmapper). my problems: 1. what happens when two points are in the same exact location? ( the rows in my table can sometimes have the identical lat long coordinates and therefore geometry column.) - how can i set the mapfile to show me both points and labels? is this ever possible? I realize this is a bit of werid question, but i am not asking about topology...just nuts and bolt postgis/mapfile.... - the query tool does not respond anymore. seems like having two identical points prevents the query tool from working - this all worked prior to me having "overlapping" points 2. different question. Layer>class in mapfile: I have an EXPRESSION object that goes like this EXPRESSION ([ID_specie_att]=2) now how do i get the SAME class to display both points that have value 2,3,4,5,6? Do i really have to make 5 different classes? I would rather not because i don't want them in my legend. thanks very much for any help. Giuseppe -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Jun 14 07:50:33 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 14 Jun 2007 10:50:33 -0400 Subject: Small differences in input and output In-Reply-To: <46714C7C.3030102@pobox.com> Message-ID: Frank - For MapServer EXTENT purposes Benoit will need to adjust the extents by one whole pixel rather than by half a pixel? If there are N pixels horizontally measured from the center of the left-hand to the center of the right-hand pixel, then there are N+1 pixels measured from the left of the left-hand to the right of the right-hand pixel, rather than N+0.5. That is, if you adjust all four corners "in" by 0.5 pixel you'll reduce the height and width by 1 whole pixel each. - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: Frank Warmerdam > Reply-To: Frank Warmerdam > Date: Thu, 14 Jun 2007 10:11:08 -0400 > To: > Subject: Re: [UMN_MAPSERVER-USERS] Small differences in input and output > > Benoit Andrieu wrote: > ... >> Theline that is inserted in the resulting output does not seem to come from >> the input neither seems to be an interpolation of the input. >> >> As a second test, I tried to offset my extent by half the resolution of my >> input but in this output we can now see that a set of vertical lines is >> offseted. >> >> You can see my input and output : >> http://benoit.andrieu.free.fr/images/input.png >> http://benoit.andrieu.free.fr/images/output_1.png >> http://benoit.andrieu.free.fr/images/output_2.png >> >> As you'll see the difference is very small but I need to not have this >> difference. > > Benoit, > > What are you using for your EXTENT line in the mapfile? What does > gdalinfo report for input.png? The MapServer "extent" is from the > center of corner pixel to center of corner pixel, while the GDAL extents > are from the outer edge of the corner pixels. > > So if you use gdalinfo to get the extents, you need to adjust them "in" > by half a pixel. > > I *suspect* this is what is happening to you. If not, please file a bug, > assigned to me, with a minimal map file, and input file that demonstrates > the problem and I'll dig into it. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Thu Jun 14 08:07:03 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 14 Jun 2007 11:07:03 -0400 Subject: Small differences in input and output In-Reply-To: Message-ID: Ed McNierney wrote: > Frank - > > For MapServer EXTENT purposes Benoit will need to adjust the extents by one > whole pixel rather than by half a pixel? If there are N pixels horizontally > measured from the center of the left-hand to the center of the right-hand > pixel, then there are N+1 pixels measured from the left of the left-hand to > the right of the right-hand pixel, rather than N+0.5. > > That is, if you adjust all four corners "in" by 0.5 pixel you'll reduce the > height and width by 1 whole pixel each. Ed, If the original file is 100 x 100 (for instance) with gdal reported extents of (0,0) to (1000,1000) then the mapfile should contain: EXTENT 5 5 995 995 SIZE 100 100 So the size is determined by the SIZE keyword - not the extents. Note that mapserver macros like MS_CELLSIZE already account for the fact that the extents represent a region that is in a sense n-1 pixels wide/long. eg. #define MS_CELLSIZE(min,max,d) ((max - min)/(d-1)) 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 ed at TOPOZONE.COM Thu Jun 14 08:11:13 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 14 Jun 2007 11:11:13 -0400 Subject: Small differences in input and output In-Reply-To: <46715997.2000505@pobox.com> Message-ID: Frank - Yes, thanks very much - that's what I meant (the EXTENT is 990 in each direction), not what I typed . - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: Frank Warmerdam > Reply-To: Frank Warmerdam > Date: Thu, 14 Jun 2007 11:07:03 -0400 > To: > Subject: Re: [UMN_MAPSERVER-USERS] Small differences in input and output > > Ed McNierney wrote: >> Frank - >> >> For MapServer EXTENT purposes Benoit will need to adjust the extents by one >> whole pixel rather than by half a pixel? If there are N pixels horizontally >> measured from the center of the left-hand to the center of the right-hand >> pixel, then there are N+1 pixels measured from the left of the left-hand to >> the right of the right-hand pixel, rather than N+0.5. >> >> That is, if you adjust all four corners "in" by 0.5 pixel you'll reduce the >> height and width by 1 whole pixel each. > > Ed, > > If the original file is 100 x 100 (for instance) with gdal reported extents > of (0,0) to (1000,1000) then the mapfile should contain: > > EXTENT 5 5 995 995 > SIZE 100 100 > > So the size is determined by the SIZE keyword - not the extents. > > Note that mapserver macros like MS_CELLSIZE already account for the fact > that the extents represent a region that is in a sense n-1 pixels wide/long. > > eg. > > #define MS_CELLSIZE(min,max,d) ((max - min)/(d-1)) > > 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 bea at IXSEA.COM Thu Jun 14 08:08:06 2007 From: bea at IXSEA.COM (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Thu, 14 Jun 2007 17:08:06 +0200 Subject: Small differences in input and output In-Reply-To: Message-ID: Yep, that worked ! I didn't know that the extents of the mapfile were not the same as the one from GDAL. There was my mistake ! So I moved the four corners in order to have the whole extent reduced by one pixel and here it was ! I am really thanking you for those fast and accurate answers !!! Beno?t ----- Original Message ----- From: "Ed McNierney" To: Sent: Thursday, June 14, 2007 4:50 PM Subject: Re: [UMN_MAPSERVER-USERS] Small differences in input and output > Frank - > > For MapServer EXTENT purposes Benoit will need to adjust the extents by > one > whole pixel rather than by half a pixel? If there are N pixels > horizontally > measured from the center of the left-hand to the center of the right-hand > pixel, then there are N+1 pixels measured from the left of the left-hand > to > the right of the right-hand pixel, rather than N+0.5. > > That is, if you adjust all four corners "in" by 0.5 pixel you'll reduce > the > height and width by 1 whole pixel each. > > - Ed > > -- > Ed McNierney > President and Chief Mapmaker > Maps a la carte, Inc. / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: (978) 251-4242 > Fax: (978) 251-1396 > ed at topozone.com > >> From: Frank Warmerdam >> Reply-To: Frank Warmerdam >> Date: Thu, 14 Jun 2007 10:11:08 -0400 >> To: >> Subject: Re: [UMN_MAPSERVER-USERS] Small differences in input and output >> >> Benoit Andrieu wrote: >> ... >>> Theline that is inserted in the resulting output does not seem to come >>> from >>> the input neither seems to be an interpolation of the input. >>> >>> As a second test, I tried to offset my extent by half the resolution of >>> my >>> input but in this output we can now see that a set of vertical lines is >>> offseted. >>> >>> You can see my input and output : >>> http://benoit.andrieu.free.fr/images/input.png >>> http://benoit.andrieu.free.fr/images/output_1.png >>> http://benoit.andrieu.free.fr/images/output_2.png >>> >>> As you'll see the difference is very small but I need to not have this >>> difference. >> >> Benoit, >> >> What are you using for your EXTENT line in the mapfile? What does >> gdalinfo report for input.png? The MapServer "extent" is from the >> center of corner pixel to center of corner pixel, while the GDAL extents >> are from the outer edge of the corner pixels. >> >> So if you use gdalinfo to get the extents, you need to adjust them "in" >> by half a pixel. >> >> I *suspect* this is what is happening to you. If not, please file a bug, >> assigned to me, with a minimal map file, and input file that demonstrates >> the problem and I'll dig into it. >> >> Best regards, >> -- >> ---------------------------------------+-------------------------------------- >> I set the clouds in motion - turn up | Frank Warmerdam, >> warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush | President OSGeo, >> http://osgeo.org > From John.C.Cartwright at NOAA.GOV Thu Jun 14 08:43:09 2007 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Thu, 14 Jun 2007 09:43:09 -0600 Subject: WMS, time support, and Oracle In-Reply-To: Message-ID: Thanks for your reply, David. I can get the same data to work fine in postgres, but when using oracle I see the error: msDrawMap(): Image handling error. Failed to draw layer named 'Hurricanes'. msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-01861: literal does not match format string . Query statement: SELECT OBJECTID, SHAPE FROM HYDRO.HURRICANES_TSQP WHERE (hurr_date >= '2004-01-01' AND hurr_date <= '2004-12-31') AND SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, 8307, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-180,-90,180,90) ),'querytype=window') = 'TRUE' . Check your data statement. Seems to be an oracle-specific time formatting problem. -- john David William Bitner wrote: > John -- > > I have not used WMS-T with Oracle, but have you seen the docs for > using WMS-T with postgis? > > http://mapserver.gis.umn.edu/docs/howto/wms_time_support/#example-of-wms-t-with-postgis-tile-index-for-raster-imagery > > David > > On 5/29/07, *John Cartwright * > wrote: > > Hello All, > > I've having trouble getting the time requests passed to Oracle in > a way > that it understands. Has anyone done this successfully? > > Thanks! > > -- john > > > > > -- > ************************************ > David William Bitner From OlsonCB at STATE.GOV Thu Jun 14 08:38:18 2007 From: OlsonCB at STATE.GOV (Olson, Curtis B) Date: Thu, 14 Jun 2007 11:38:18 -0400 Subject: unsubscribe Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From ernesvega at GMAIL.COM Thu Jun 14 09:04:34 2007 From: ernesvega at GMAIL.COM (Ernesto Vega) Date: Thu, 14 Jun 2007 12:04:34 -0400 Subject: postgis In-Reply-To: Message-ID: Giuseppe : I?ve never been into the situation of having 2 points overlapped. For a better idea is useful to send which versions of postgresql and postgis your are using. For the class question: Are you planning to dynamically change your parameter ? If so, you must read the chapter dedicated on how to use parameters on mapserver site, otherwise you may have no choice because of what you want to alter within a class hope this helps. Ernesto Vega On 6/14/07, Giuseppe Molinario wrote: > Hi everyone, > > I am working with a postgis point table that needs to be displayed in a > mapserver application (pmapper). > > my problems: > > 1. what happens when two points are in the same exact location? ( the rows > in my table can sometimes have the identical lat long coordinates and > therefore geometry column.) > > how can i set the mapfile to show me both points and labels? is this ever > possible? I realize this is a bit of werid question, but i am not asking > about topology...just nuts and bolt postgis/mapfile.... > the query tool does not respond anymore. seems like having two identical > points prevents the query tool from working > this all worked prior to me having "overlapping" points2. different > question. Layer>class in mapfile: I have an EXPRESSION object that goes like > this EXPRESSION ([ID_specie_att]=2) now how do i get the SAME class to > display both points that have value 2,3,4,5,6? Do i really have to make 5 > different classes? I would rather not because i don't want them in my > legend. > > > thanks very much for any help. > > Giuseppe From traviskirstine at GMAIL.COM Thu Jun 14 09:15:15 2007 From: traviskirstine at GMAIL.COM (Travis Kirstine) Date: Thu, 14 Jun 2007 12:15:15 -0400 Subject: ogrtindex labeling Message-ID: Hi All, I have a several shapefiles all with identical schemas which I created a tile index for using ogrtindex. >ogrtindex index.shp /var/www/data/*.shp I then in my mapfile connect to the tile index in my mapfile using ogr CONNECTIONTYPE OGR TILENDEX "/var/www/data/index.shp,0" I then try to label the feature based on a field in the attribute tables LABELITEM "NAME" When I run shp2img I get the following error: msOGRLayerInitItemInfo(): OGR error. Invalid Field name: NAME Is there something I'm missing or does the ogr connection with a tileindex not support labeling or querying by attributes. -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From g.molinario at GMAIL.COM Thu Jun 14 09:58:05 2007 From: g.molinario at GMAIL.COM (Giuseppe Molinario) Date: Thu, 14 Jun 2007 18:58:05 +0200 Subject: postgis In-Reply-To: <248e5e090706140904t41b0d49v2a32ea3a478631f@mail.gmail.com> Message-ID: Erensto thanks for the reply, I am using postgresql 8.2.3.1, and Postgis 1.2.1.1 whereas my app was working fine before, i needed to try and see how mapserver would deal with two "identical" points in the database.... well it pretty much stops working when that layer is on now. about the classes. i simply need a postgis layer to have two classes, these need to contain more that one expression value - not dynamically. example layer x class 1 EXPRESSION ([ID_specie_att]=2) and also EXPRESSION ([ID_specie_att]=3) and EXPRESSION ([ID_specie_att]=4) class 2 EXPRESSION ([ID_specie_att]=5)EXPRESSION ([ID_specie_att]=6)EXPRESSION ([ID_specie_att]=7) i cant seem to get my head around a syntax to tell the EXPRESSION that it is actually a list of values. Thanks for the help, Giuseppe On 6/14/07, Ernesto Vega wrote: > > Giuseppe : > > I?ve never been into the situation of having 2 points overlapped. > > For a better idea is useful to send which versions of postgresql and > postgis your are using. > > For the class question: > > Are you planning to dynamically change your parameter ? > > If so, you must read the chapter dedicated on how to use parameters on > mapserver site, otherwise you may have no choice because of what you > want to alter within a class > > hope this helps. > > Ernesto Vega > > On 6/14/07, Giuseppe Molinario wrote: > > Hi everyone, > > > > I am working with a postgis point table that needs to be displayed in a > > mapserver application (pmapper). > > > > my problems: > > > > 1. what happens when two points are in the same exact location? ( the > rows > > in my table can sometimes have the identical lat long coordinates and > > therefore geometry column.) > > > > how can i set the mapfile to show me both points and labels? is this > ever > > possible? I realize this is a bit of werid question, but i am not asking > > about topology...just nuts and bolt postgis/mapfile.... > > the query tool does not respond anymore. seems like having two identical > > points prevents the query tool from working > > this all worked prior to me having "overlapping" points2. different > > question. Layer>class in mapfile: I have an EXPRESSION object that goes > like > > this EXPRESSION ([ID_specie_att]=2) now how do i get the SAME class to > > display both points that have value 2,3,4,5,6? Do i really have to make > 5 > > different classes? I would rather not because i don't want them in my > > legend. > > > > > > thanks very much for any help. > > > > Giuseppe > -------------- next part -------------- An HTML attachment was scrubbed... URL: From giorgio.liberta at JRC.IT Thu Jun 14 11:14:35 2007 From: giorgio.liberta at JRC.IT (Giorgio Liberta') Date: Thu, 14 Jun 2007 20:14:35 +0200 Subject: WMS, time support, and Oracle In-Reply-To: <4671620D.7040600@noaa.gov> Message-ID: Hi John, I am working on the same problem. And I have the same error ORA-01861. It seems that when mapserver runs doesn't takes the NLS_DATE_FORMAT definition (I made a new definition according with mapserver YYYY-MM-DD format) and the session still use the Oracle default 'dd-mmm-yyyy'. I spent 1 day but no results or any work-around. my configuration is linux rhes + apache and the db server runs an oracle 10.2. ciao John Cartwright wrote: > Thanks for your reply, David. I can get the same data to work fine in > postgres, but when using oracle I see the error: > > msDrawMap(): Image handling error. Failed to draw layer named > 'Hurricanes'. > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > ORA-01861: literal does not match format string > . Query statement: SELECT OBJECTID, SHAPE FROM HYDRO.HURRICANES_TSQP > WHERE (hurr_date >= '2004-01-01' AND hurr_date <= > '2004-12-31') AND SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, > 8307, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-180,-90,180,90) > ),'querytype=window') = 'TRUE' . Check your data > statement. > > > Seems to be an oracle-specific time formatting problem. > > -- john > > > David William Bitner wrote: >> John -- >> >> I have not used WMS-T with Oracle, but have you seen the docs for >> using WMS-T with postgis? >> >> http://mapserver.gis.umn.edu/docs/howto/wms_time_support/#example-of-wms-t-with-postgis-tile-index-for-raster-imagery >> >> >> David >> >> On 5/29/07, *John Cartwright * > > wrote: >> >> Hello All, >> >> I've having trouble getting the time requests passed to Oracle in >> a way >> that it understands. Has anyone done this successfully? >> >> Thanks! >> >> -- john >> >> >> >> >> -- >> ************************************ >> David William Bitner > -- ------------------------------------------------ Giorgio Libert? European Commission - DG Joint Research Center Institute for Environment and Sustainability Land Management & Natural Hazards Unit TP 261, via Fermi Ispra (VA), 21020 Italy e-mail: giorgio.liberta at jrc.it Web: http://effis.jrc.it http://forest.jrc.it Phone: +39 0332 785309 Fax: +39 0332 786165 Mobile: +39 340 2566207 ------------------------------------------------ The views expressed are purely those of the writer and may not in any circumstances be regarded as stating an official position of the European Commission. From mitchelljj98 at GMAIL.COM Thu Jun 14 11:41:17 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Thu, 14 Jun 2007 14:41:17 -0400 Subject: outputting as a GeoTiff files via WMS and WCS Message-ID: Hi, I would like to output as a GeoTiff file via WMS and WCS. I have been able to sucessfully output as a GeoTiff file via WMS as: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/client/wms/ConsolidationOutput.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=StLouis&SRS=EPSG:4326&BBOX=-90.21816960144152,38.61906329981721,-90.17724991531047,38.64238752091208&WIDTH=800&HEIGHT=456&FORMAT=GeoTiff I have NOT been able to sucessfully output as a GeoTiff file via WCS as: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/client/wms/ConsolidationOutput.map&VERSION=1.0.0&REQUEST=GetCoverage&SERVICE=WCS&COVERAGE=StLouis&CRS=EPSG:4326&BBOX=-90.21816960144152,38.61906329981721,-90.17724991531047,38.64238752091208&WIDTH=800&HEIGHT=456&FORMAT=GeoTiff I get the error: We can't find " http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/client/wms/ConsolidationOutput.map&VERSIO " What is the difference between outputting a GeoTiff file from MapServer as WMS compared to WCS? Map file below: ------------------------------------------------------------------------------------ # # $Id: demo.map,v 1.2 2006/08/08 19:02:46 tkralidi Exp $ # # Start of map file # MAP # all temp files get prefixed with this string NAME All_Raster_Layers_ignore # always returns a map STATUS ON # image format options OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB EXTENSION "tif" END # projection of the INTERFACE that this mapfile supports PROJECTION "init=epsg:4326" END # minx miny maxx maxy EXTENT -180 -90 180 90 # World # units of map/app UNITS DD WEB # this is set in the form which initializes the page, but can be set here if you want IMAGEPATH "/ms4w/tmp/ms_tmp/" # this is set in the form which initializes the page, but can be set here if you want IMAGEURL "/ms_tmp/" END # start of layer definitions #--------------------- #--- Saint Louis reprojected --- #--------------------- LAYER # name of layer NAME StLouis # what type of data is this? TYPE RASTER # always returned with interface STATUS ON DUMP TRUE TILEINDEX "E:\converted_1178894945328\fullResolution.shp" TILEITEM "Location" #OFFSITE 0 0 0 #MAXSCALE 1000 END END Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigomartin at LOPEZGREGORIO.COM.AR Thu Jun 14 11:50:33 2007 From: rodrigomartin at LOPEZGREGORIO.COM.AR (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Thu, 14 Jun 2007 15:50:33 -0300 Subject: postgis In-Reply-To: Message-ID: Hi Giuseppe. About the EXPRESSION in CLASS element problem I just try several alternatives. I give you the ones that actually works ;) - EXPRESSION (([ID_specie_att] = 1) or ([ID_specie_att] = 2)) you can make more complex combinations of conditions using logical connectors (and, or, not) and parenthesis - EXPRESSION ([ID_specie_att] in "2,3,5,8") in this case you must enumerate the values of ID_specie_att that must be included in the CLASS. If the ID_specie_att is numeric then this is the way to use this expression... however if ID_specie_att is a string you must use EXPRESSION ('[ID_specie_att]' in "String 1,another string"). - EXPRESSION (([ID_specie_att] > 20) and ([ID_specie_att] < 80)) if you have a range of posible values and want to make it simpler you can use something like that. Actually this is not much different than the first example but I put it here anyway. About the problem with the overlapped points you can force the label to be displayed in map using the FORCE TRUE expression in LABEL element. However the two labels will overlap and maybe you'll not be able to read anything. I have made some tests but could not be able to get the labels not overlaped. Sorry about that. Rodrigo. On 6/14/07, Giuseppe Molinario wrote: > > Erensto thanks for the reply, > > I am using postgresql 8.2.3.1, and Postgis 1.2.1.1 > > whereas my app was working fine before, i needed to try and see how > mapserver would deal with two "identical" points in the database.... well it > pretty much stops working when that layer is on now. > > about the classes. > > i simply need a postgis layer to have two classes, these need to contain > more that one expression value - not dynamically. example > > layer x > > class 1 > EXPRESSION ([ID_specie_att]=2) and also EXPRESSION ([ID_specie_att]=3) and > EXPRESSION ([ID_specie_att]=4) > > class 2 > EXPRESSION ([ID_specie_att]=5)EXPRESSION ([ID_specie_att]=6)EXPRESSION > ([ID_specie_att]=7) > > i cant seem to get my head around a syntax to tell the EXPRESSION that it > is actually a list of values. > > > Thanks for the help, > > Giuseppe > > On 6/14/07, Ernesto Vega wrote: > > > > Giuseppe : > > > > I?ve never been into the situation of having 2 points overlapped. > > > > For a better idea is useful to send which versions of postgresql and > > postgis your are using. > > > > For the class question: > > > > Are you planning to dynamically change your parameter ? > > > > If so, you must read the chapter dedicated on how to use parameters on > > mapserver site, otherwise you may have no choice because of what you > > want to alter within a class > > > > hope this helps. > > > > Ernesto Vega > > > > On 6/14/07, Giuseppe Molinario wrote: > > > Hi everyone, > > > > > > I am working with a postgis point table that needs to be displayed in > > a > > > mapserver application (pmapper). > > > > > > my problems: > > > > > > 1. what happens when two points are in the same exact location? ( the > > rows > > > in my table can sometimes have the identical lat long coordinates and > > > therefore geometry column.) > > > > > > how can i set the mapfile to show me both points and labels? is this > > ever > > > possible? I realize this is a bit of werid question, but i am not > > asking > > > about topology...just nuts and bolt postgis/mapfile.... > > > the query tool does not respond anymore. seems like having two > > identical > > > points prevents the query tool from working > > > this all worked prior to me having "overlapping" points2. different > > > question. Layer>class in mapfile: I have an EXPRESSION object that > > goes like > > > this EXPRESSION ([ID_specie_att]=2) now how do i get the SAME class > > to > > > display both points that have value 2,3,4,5,6? Do i really have to > > make 5 > > > different classes? I would rather not because i don't want them in my > > > legend. > > > > > > > > > thanks very much for any help. > > > > > > Giuseppe > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbest at LANWORTH.COM Thu Jun 14 12:48:25 2007 From: nbest at LANWORTH.COM (Neil Best) Date: Thu, 14 Jun 2007 14:48:25 -0500 Subject: Chicago users Message-ID: At the end of 2005 I traded notes with Adam about networking among Mapserver users in the Chicago area. I wanted to revive that thread but have fallen out of touch. Are you out there, Adam? Neil Neil Best Project Analyst Lanworth, Inc. (formerly Forest One, Inc.) http://www.lanworth.com/ From richard.greenwood at GMAIL.COM Thu Jun 14 15:48:33 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 14 Jun 2007 16:48:33 -0600 Subject: Mapserver Development Environments? In-Reply-To: <6C097DA58429B743A67070F98BE73A37025DD61D@deqex01.deq.local> Message-ID: On 6/14/07, Burgholzer,Robert wrote: > Steve/Richard, > I am assuming that all that will be required is a little bit of text > formatting, and soliciting/organizing blurbs about the various > environments that exist. If my assumptions are correct, I would be glad > to do this. Thanks! > If someone can give me basic instructions, i.e., do I go to > the mapserver wiki entry that was mentioned by Richard? Is this the > pre-2005 wiki, the only one I can find reference to on the mapserver > site, I assume therefore the wiki is no longer functioning? I can't remember, it might not have even been a wiki. I was sort of hoping that someone would remember because it was a nice start. > Also, what do we call them? Mapserver Development Environments? > Mapserver Mapping Frameworks? In my mind they are all web map clients, with some of the (e.g. MapBender) providing a complete framework and others (e.g OpenLayers) be just a client with no server requirements. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sdc at SDC.COM.AU Thu Jun 14 17:13:11 2007 From: sdc at SDC.COM.AU (Stephen Davies) Date: Fri, 15 Jun 2007 09:43:11 +0930 Subject: Image projection question Message-ID: G'day. I posted the following last week but had no response. I am still stuck without any solution so would really appreciate any feedback at all as to what might be wrong with my setup. I have a georeferenced TIFF aerial photo with the gdalinfo below. Using a package called Farm Keeper, a shape file was created (by clicking on the image) containing several polygons defining paddocks. The shape file was then loaded into PostGIS using shp2pgsql and the results displayed with MapServer using the original geotiff as the raster layer. The result was "almost right" except each of the polygons was displayed about 20m due north of it's correct position relative to the raster. The polygon data is stored transformed to SRID 4283. The map projection is eqc with a central meridian of the centre of the polygons' MBR and the map extent is the MBR plus approx 100m - slightly smaller than the raster image extent. Looking at the Map Server map coordinates, it appears that the polygons are correctly positioned (the mouse coordinates displayed match the originals) but the raster has been "moved" (stretched north/south). Can anybody suggest what has happened? Cheers and thanks, Stephen Davies Driver: GTiff/GeoTIFF Size is 600, 448 Coordinate System is: PROJCS["GDA94 / MGA zone 54", GEOGCS["GDA94", DATUM["Geocentric_Datum_of_Australia_1994", SPHEROID["GRS 1980",6378137,298.2572221010042, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6283"]], PRIMEM["Greenwich",0], UNIT["degree (supplier to define representation)",0.01745329251994328], AUTHORITY["EPSG","4283"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",141], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",10000000], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","28354"]] Origin = (370139.138699,6182407.307100) Pixel Size = (2.00000000,-2.00000000) Metadata: AREA_OR_POINT=Area TIFFTAG_DOCUMENTNAME=ER Mapper 7.0 TIFFTAG_IMAGEDESCRIPTION=ER Mapper GeoTiff raster translator V1.0: Band 1 = Red, Band 2 = Green, Band 3 = Blue TIFFTAG_SOFTWARE=ER Mapper 7.0 TIFFTAG_XRESOLUTION=0 TIFFTAG_YRESOLUTION=0 Corner Coordinates: Upper Left ( 370139.139, 6182407.307) (139d35'8.28"E, 34d29'30.38"S) Lower Left ( 370139.139, 6181511.307) (139d35'7.79"E, 34d29'59.46"S) Upper Right ( 371339.139, 6182407.307) (139d35'55.32"E, 34d29'30.92"S) Lower Right ( 371339.139, 6181511.307) (139d35'54.84"E, 34d30'0.00"S) Center ( 370739.139, 6181959.307) (139d35'31.56"E, 34d29'45.19"S) Band 1 Block=600x20 Type=Byte, ColorInterp=Red Band 2 Block=600x20 Type=Byte, ColorInterp=Green Band 3 Block=600x20 Type=Byte, ColorInterp=Blue -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From Jacob.Delfos at MAUNSELL.COM Thu Jun 14 18:00:10 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Fri, 15 Jun 2007 09:00:10 +0800 Subject: Image projection question In-Reply-To: <200706150943.11474.sdc@sdc.com.au> Message-ID: Stephen, I'm not completely clear about what has happened to your raster. Can you please clarify whether it appears either moved, or stretched? Also, which projection were you polygons in to begin with? Can you please tell me: - the projection of your polygons - the projection of your map Your raster is in MGA94 (UTM zone 54, GDA datum), which is the common Australian projection, so that's probably fine. Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Davies > Sent: 15 June 2007 08:13 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Image projection question > > G'day. > I posted the following last week but had no response. I am > still stuck > without any solution so would really appreciate any feedback > at all as > to what might be wrong with my setup. > > > I have a georeferenced TIFF aerial photo with the gdalinfo below. > > Using a package called Farm Keeper, a shape file was created (by > clicking on the image) containing several polygons defining paddocks. > The shape file was then loaded into PostGIS using shp2pgsql and the > results displayed with MapServer using the original geotiff as the > raster layer. > > The result was "almost right" except each of the polygons was > displayed > about 20m due north of it's correct position relative to the raster. > > The polygon data is stored transformed to SRID 4283. The map > projection > is eqc with a central meridian of the centre of the polygons' MBR and > the map extent is the MBR plus approx 100m - slightly smaller > than the > raster image extent. > > Looking at the Map Server map coordinates, it appears that > the polygons > are correctly positioned (the mouse coordinates displayed match the > originals) but the raster has been "moved" (stretched north/south). > > Can anybody suggest what has happened? > > Cheers and thanks, > Stephen Davies > > > Driver: GTiff/GeoTIFF > Size is 600, 448 > Coordinate System is: > PROJCS["GDA94 / MGA zone 54", > GEOGCS["GDA94", > DATUM["Geocentric_Datum_of_Australia_1994", > SPHEROID["GRS 1980",6378137,298.2572221010042, > AUTHORITY["EPSG","7019"]], > AUTHORITY["EPSG","6283"]], > PRIMEM["Greenwich",0], > UNIT["degree (supplier to define > representation)",0.01745329251994328], > AUTHORITY["EPSG","4283"]], > PROJECTION["Transverse_Mercator"], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",141], > PARAMETER["scale_factor",0.9996], > PARAMETER["false_easting",500000], > PARAMETER["false_northing",10000000], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]], > AUTHORITY["EPSG","28354"]] > Origin = (370139.138699,6182407.307100) > Pixel Size = (2.00000000,-2.00000000) > Metadata: > AREA_OR_POINT=Area > TIFFTAG_DOCUMENTNAME=ER Mapper 7.0 > TIFFTAG_IMAGEDESCRIPTION=ER Mapper GeoTiff raster translator V1.0: > Band 1 = Red, Band 2 = Green, Band 3 = Blue > TIFFTAG_SOFTWARE=ER Mapper 7.0 > TIFFTAG_XRESOLUTION=0 > TIFFTAG_YRESOLUTION=0 > Corner Coordinates: > Upper Left ( 370139.139, 6182407.307) (139d35'8.28"E, 34d29'30.38"S) > Lower Left ( 370139.139, 6181511.307) (139d35'7.79"E, 34d29'59.46"S) > Upper Right ( 371339.139, 6182407.307) (139d35'55.32"E, > 34d29'30.92"S) > Lower Right ( 371339.139, 6181511.307) (139d35'54.84"E, 34d30'0.00"S) > Center ( 370739.139, 6181959.307) (139d35'31.56"E, > 34d29'45.19"S) > Band 1 Block=600x20 Type=Byte, ColorInterp=Red > Band 2 Block=600x20 Type=Byte, ColorInterp=Green > Band 3 Block=600x20 Type=Byte, ColorInterp=Blue > > -- > ============================================================== > ========== > This email is for the person(s) identified above, and is > confidential to > the sender and the person(s). No one else is authorised to use or > disseminate this email or its contents. > > Stephen Davies Consulting Voice: > 08-8177 1595 > Adelaide, South Australia. Fax: > 08-8177 0133 > Computing & Network solutions. > Mobile:0403 0405 83 > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From sdc at SDC.COM.AU Thu Jun 14 18:35:18 2007 From: sdc at SDC.COM.AU (Stephen Davies) Date: Fri, 15 Jun 2007 11:05:18 +0930 Subject: Image projection question In-Reply-To: <4997F456680DAD4DA1E042C40C463611C3432D@auper1ex002.au.aecomnet.com> Message-ID: G'day Jacob. The map that is displayed by MapServer shows the polygons some 20 m due north of the "correct" location relative to the background raster but the mouse coordinates displayed when pointing at the polygons seem correct (the scale is such that it is difficult to be precise but to five or six decimals they match) but coordinates for features in the raster are wrong; suggesting that the raster projection has "moved" rather than the polygons. The Farm Keeper software seems to not accept the embedded georeferencing in the raster as it insists on prompting the user to re-enter georeferencing points. It then generates the polygons in what looks like 28354 (Zone 54 eastings/northings). These are transformed to 4283 for storage in the database. The map uses: PROJECTION "proj=eqc" "lon_0=139.591e" END where lon_0 has been calculated as the longitude of the centre of the requested MBR. HTH, Stephen On Friday 15 June 2007 10:30, Delfos, Jacob wrote: > Stephen, > > I'm not completely clear about what has happened to your raster. Can > you please clarify whether it appears either moved, or stretched? > Also, which projection were you polygons in to begin with? Can you > please tell me: > - the projection of your polygons > - the projection of your map > > Your raster is in MGA94 (UTM zone 54, GDA datum), which is the common > Australian projection, so that's probably fine. > > Regards, > > Jacob > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Davies > > Sent: 15 June 2007 08:13 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Image projection question > > > > G'day. > > I posted the following last week but had no response. I am > > still stuck > > without any solution so would really appreciate any feedback > > at all as > > to what might be wrong with my setup. > > > > > > I have a georeferenced TIFF aerial photo with the gdalinfo below. > > > > Using a package called Farm Keeper, a shape file was created (by > > clicking on the image) containing several polygons defining > > paddocks. The shape file was then loaded into PostGIS using > > shp2pgsql and the results displayed with MapServer using the > > original geotiff as the raster layer. > > > > The result was "almost right" except each of the polygons was > > displayed > > about 20m due north of it's correct position relative to the > > raster. > > > > The polygon data is stored transformed to SRID 4283. The map > > projection > > is eqc with a central meridian of the centre of the polygons' MBR > > and the map extent is the MBR plus approx 100m - slightly smaller > > than the > > raster image extent. > > > > Looking at the Map Server map coordinates, it appears that > > the polygons > > are correctly positioned (the mouse coordinates displayed match the > > originals) but the raster has been "moved" (stretched north/south). > > > > Can anybody suggest what has happened? > > > > Cheers and thanks, > > Stephen Davies > > > > > > Driver: GTiff/GeoTIFF > > Size is 600, 448 > > Coordinate System is: > > PROJCS["GDA94 / MGA zone 54", > > GEOGCS["GDA94", > > DATUM["Geocentric_Datum_of_Australia_1994", > > SPHEROID["GRS 1980",6378137,298.2572221010042, > > AUTHORITY["EPSG","7019"]], > > AUTHORITY["EPSG","6283"]], > > PRIMEM["Greenwich",0], > > UNIT["degree (supplier to define > > representation)",0.01745329251994328], > > AUTHORITY["EPSG","4283"]], > > PROJECTION["Transverse_Mercator"], > > PARAMETER["latitude_of_origin",0], > > PARAMETER["central_meridian",141], > > PARAMETER["scale_factor",0.9996], > > PARAMETER["false_easting",500000], > > PARAMETER["false_northing",10000000], > > UNIT["metre",1, > > AUTHORITY["EPSG","9001"]], > > AUTHORITY["EPSG","28354"]] > > Origin = (370139.138699,6182407.307100) > > Pixel Size = (2.00000000,-2.00000000) > > Metadata: > > AREA_OR_POINT=Area > > TIFFTAG_DOCUMENTNAME=ER Mapper 7.0 > > TIFFTAG_IMAGEDESCRIPTION=ER Mapper GeoTiff raster translator > > V1.0: Band 1 = Red, Band 2 = Green, Band 3 = Blue > > TIFFTAG_SOFTWARE=ER Mapper 7.0 > > TIFFTAG_XRESOLUTION=0 > > TIFFTAG_YRESOLUTION=0 > > Corner Coordinates: > > Upper Left ( 370139.139, 6182407.307) (139d35'8.28"E, > > 34d29'30.38"S) Lower Left ( 370139.139, 6181511.307) > > (139d35'7.79"E, 34d29'59.46"S) Upper Right ( 371339.139, > > 6182407.307) (139d35'55.32"E, > > 34d29'30.92"S) > > Lower Right ( 371339.139, 6181511.307) (139d35'54.84"E, > > 34d30'0.00"S) Center ( 370739.139, 6181959.307) > > (139d35'31.56"E, > > 34d29'45.19"S) > > Band 1 Block=600x20 Type=Byte, ColorInterp=Red > > Band 2 Block=600x20 Type=Byte, ColorInterp=Green > > Band 3 Block=600x20 Type=Byte, ColorInterp=Blue > > > > -- > > ============================================================== > > ========== > > This email is for the person(s) identified above, and is > > confidential to > > the sender and the person(s). No one else is authorised to use or > > disseminate this email or its contents. > > > > Stephen Davies Consulting Voice: > > 08-8177 1595 > > Adelaide, South Australia. Fax: > > 08-8177 0133 > > Computing & Network solutions. > > Mobile:0403 0405 83 > > This email and any attachments are intended solely for the named > recipient and are confidential. The copying or distribution of them > or any information they contain by anyone other than the named > recipient is prohibited. If you have received this document in error, > please notify the sender and delete all copies from your computer > system and destroy all hard copies. It is the recipient's > responsibility to check this email and any attachments to this email > for viruses before use. -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From warmerdam at POBOX.COM Thu Jun 14 20:11:49 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 14 Jun 2007 23:11:49 -0400 Subject: Image projection question In-Reply-To: <200706150943.11474.sdc@sdc.com.au> Message-ID: Stephen Davies wrote: > G'day. > I posted the following last week but had no response. I am still stuck > without any solution so would really appreciate any feedback at all as > to what might be wrong with my setup. Stephen, I read this the first time around, but there isn't really anything to go on as far as suggesting a solution. The obvious conclusion is that the coordinates for either your raster or vector are just wrong coming in. The offset, 20m, could be systematic error in automated geocorrection of the raster data, or perhaps relates to a datum shifting issue. It is very hard to say given the information you have provided. If you made the raster and vector file available, I could at least load them in OpenEV and see if they seem to overlay properly there. 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 Jacob.Delfos at MAUNSELL.COM Thu Jun 14 19:59:17 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Fri, 15 Jun 2007 10:59:17 +0800 Subject: Image projection question In-Reply-To: <200706151105.18886.sdc@sdc.com.au> Message-ID: Hi Stephen, I'm not so sure about the projection definition of your eqc projection. It doesn't specify a lot of parameters, which makes me think it defaults to some parameters that may not work too well for Australia. All I can tell you is that MapServer definitely makes no mistakes with MGA94 projections in my experience, so that one is definitely right. I never use the 4283 projection, but rather use 4326 instead. As GDA94 and WGS84 datums are practically equivalent, this works well in my experience. Your 4283 projection uses a different ellipsoid. I can't tell whether this is wrong, but knowing that the AGD projections in the EPSG are incorrect (which also use that ellipsoid), it may be worth you trying to use 4326 instead. Please note the subtle differences in acronyms, in case you are not experienced with AGD84 and GDA94. They are different datums, and all projections in the EPSG that try to use AGD84 are inaccurate. Regards, Jacob > -----Original Message----- > From: Stephen Davies [mailto:sdc at sdc.com.au] > Sent: 15 June 2007 09:35 > To: Delfos, Jacob > Cc: Stephen Davies; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Image projection question > > G'day Jacob. > > The map that is displayed by MapServer shows the polygons > some 20 m due > north of the "correct" location relative to the background raster but > the mouse coordinates displayed when pointing at the polygons seem > correct (the scale is such that it is difficult to be precise but to > five or six decimals they match) but coordinates for features in the > raster are wrong; suggesting that the raster projection has "moved" > rather than the polygons. > > The Farm Keeper software seems to not accept the embedded > georeferencing > in the raster as it insists on prompting the user to re-enter > georeferencing points. > > It then generates the polygons in what looks like 28354 (Zone 54 > eastings/northings). These are transformed to 4283 for storage in the > database. > > The map uses: > PROJECTION > "proj=eqc" > "lon_0=139.591e" > END > where lon_0 has been calculated as the longitude of the centre of the > requested MBR. > > HTH, > Stephen > > On Friday 15 June 2007 10:30, Delfos, Jacob wrote: > > Stephen, > > > > I'm not completely clear about what has happened to your raster. Can > > you please clarify whether it appears either moved, or stretched? > > Also, which projection were you polygons in to begin with? Can you > > please tell me: > > - the projection of your polygons > > - the projection of your map > > > > Your raster is in MGA94 (UTM zone 54, GDA datum), which is > the common > > Australian projection, so that's probably fine. > > > > Regards, > > > > Jacob > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Davies > > > Sent: 15 June 2007 08:13 > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] Image projection question > > > > > > G'day. > > > I posted the following last week but had no response. I am > > > still stuck > > > without any solution so would really appreciate any feedback > > > at all as > > > to what might be wrong with my setup. > > > > > > > > > I have a georeferenced TIFF aerial photo with the gdalinfo below. > > > > > > Using a package called Farm Keeper, a shape file was created (by > > > clicking on the image) containing several polygons defining > > > paddocks. The shape file was then loaded into PostGIS using > > > shp2pgsql and the results displayed with MapServer using the > > > original geotiff as the raster layer. > > > > > > The result was "almost right" except each of the polygons was > > > displayed > > > about 20m due north of it's correct position relative to the > > > raster. > > > > > > The polygon data is stored transformed to SRID 4283. The map > > > projection > > > is eqc with a central meridian of the centre of the polygons' MBR > > > and the map extent is the MBR plus approx 100m - slightly smaller > > > than the > > > raster image extent. > > > > > > Looking at the Map Server map coordinates, it appears that > > > the polygons > > > are correctly positioned (the mouse coordinates displayed > match the > > > originals) but the raster has been "moved" (stretched > north/south). > > > > > > Can anybody suggest what has happened? > > > > > > Cheers and thanks, > > > Stephen Davies > > > > > > > > > Driver: GTiff/GeoTIFF > > > Size is 600, 448 > > > Coordinate System is: > > > PROJCS["GDA94 / MGA zone 54", > > > GEOGCS["GDA94", > > > DATUM["Geocentric_Datum_of_Australia_1994", > > > SPHEROID["GRS 1980",6378137,298.2572221010042, > > > AUTHORITY["EPSG","7019"]], > > > AUTHORITY["EPSG","6283"]], > > > PRIMEM["Greenwich",0], > > > UNIT["degree (supplier to define > > > representation)",0.01745329251994328], > > > AUTHORITY["EPSG","4283"]], > > > PROJECTION["Transverse_Mercator"], > > > PARAMETER["latitude_of_origin",0], > > > PARAMETER["central_meridian",141], > > > PARAMETER["scale_factor",0.9996], > > > PARAMETER["false_easting",500000], > > > PARAMETER["false_northing",10000000], > > > UNIT["metre",1, > > > AUTHORITY["EPSG","9001"]], > > > AUTHORITY["EPSG","28354"]] > > > Origin = (370139.138699,6182407.307100) > > > Pixel Size = (2.00000000,-2.00000000) > > > Metadata: > > > AREA_OR_POINT=Area > > > TIFFTAG_DOCUMENTNAME=ER Mapper 7.0 > > > TIFFTAG_IMAGEDESCRIPTION=ER Mapper GeoTiff raster translator > > > V1.0: Band 1 = Red, Band 2 = Green, Band 3 = Blue > > > TIFFTAG_SOFTWARE=ER Mapper 7.0 > > > TIFFTAG_XRESOLUTION=0 > > > TIFFTAG_YRESOLUTION=0 > > > Corner Coordinates: > > > Upper Left ( 370139.139, 6182407.307) (139d35'8.28"E, > > > 34d29'30.38"S) Lower Left ( 370139.139, 6181511.307) > > > (139d35'7.79"E, 34d29'59.46"S) Upper Right ( 371339.139, > > > 6182407.307) (139d35'55.32"E, > > > 34d29'30.92"S) > > > Lower Right ( 371339.139, 6181511.307) (139d35'54.84"E, > > > 34d30'0.00"S) Center ( 370739.139, 6181959.307) > > > (139d35'31.56"E, > > > 34d29'45.19"S) > > > Band 1 Block=600x20 Type=Byte, ColorInterp=Red > > > Band 2 Block=600x20 Type=Byte, ColorInterp=Green > > > Band 3 Block=600x20 Type=Byte, ColorInterp=Blue > > > > > > -- > > > ============================================================== > > > ========== > > > This email is for the person(s) identified above, and is > > > confidential to > > > the sender and the person(s). No one else is authorised to use or > > > disseminate this email or its contents. > > > > > > Stephen Davies Consulting Voice: > > > 08-8177 1595 > > > Adelaide, South Australia. Fax: > > > 08-8177 0133 > > > Computing & Network solutions. > > > Mobile:0403 0405 83 > > > > This email and any attachments are intended solely for the named > > recipient and are confidential. The copying or distribution of them > > or any information they contain by anyone other than the named > > recipient is prohibited. If you have received this document > in error, > > please notify the sender and delete all copies from your computer > > system and destroy all hard copies. It is the recipient's > > responsibility to check this email and any attachments to this email > > for viruses before use. > > -- > ============================================================== > ========== > This email is for the person(s) identified above, and is > confidential to > the sender and the person(s). No one else is authorised to use or > disseminate this email or its contents. > > Stephen Davies Consulting Voice: > 08-8177 1595 > Adelaide, South Australia. Fax: > 08-8177 0133 > Computing & Network solutions. > Mobile:0403 0405 83 > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From Steve.Lime at DNR.STATE.MN.US Thu Jun 14 20:03:50 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 14 Jun 2007 22:03:50 -0500 Subject: Source code for offset feature Message-ID: It's scattered about mapgd.c. The interpretation varies depending on the rendering type. Steve >>> Andre Lockhart 06/13/07 8:35 PM >>> Sorry for the newbie question, but where can I find the source code for the OFFSET feature in MapServer? Thanks. Andr? Lockhart andre at CoValuate.com 510.333.7189 From Jacob.Delfos at MAUNSELL.COM Thu Jun 14 21:14:21 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Fri, 15 Jun 2007 12:14:21 +0800 Subject: Image projection question In-Reply-To: <200706151340.09140.scldad@sdc.com.au> Message-ID: Hi Stephen, Actually, aside from the expected difference of 200m between AGD and GDA, there is an error in the EPSG with the AGD84 datum, such that even if you do things right, it will still be in the wrong spot. I do not know whether that might be because it doesn't deal with the GRS80 ellipsoid properly. Let me know if you need corrected definitions for those projections. Have you tried actually specifying a datum for your "eqc" projection? Perhaps it is defaulting to a north american datum in the absense of a specified one. Jacob > -----Original Message----- > From: Stephen Davies [mailto:scldad at sdc.com.au] > Sent: 15 June 2007 12:10 > To: Delfos, Jacob > Cc: Stephen Davies; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Image projection question > > G'day Jacob. > > I'll try playing with 4326 but 4283 has worked well with all previous > data. It is just this set coming into the database via Farm Keeper > shape files that is different. > > I am aware of the differences between AGD84 and GDA94. They generally > amount to some 200m E/W rather than 20m N/S. > > Cheers and thanks, > Stephen > > > On Friday 15 June 2007 12:29, Delfos, Jacob wrote: > > Hi Stephen, > > > > I'm not so sure about the projection definition of your eqc > > projection. It doesn't specify a lot of parameters, which makes me > > think it defaults to some parameters that may not work too well for > > Australia. All I can tell you is that MapServer definitely makes no > > mistakes with MGA94 projections in my experience, so that one is > > definitely right. I never use the 4283 projection, but rather use > > 4326 instead. As GDA94 and WGS84 datums are practically equivalent, > > this works well in my experience. Your 4283 projection uses a > > different ellipsoid. I can't tell whether this is wrong, but knowing > > that the AGD projections in the EPSG are incorrect (which also use > > that ellipsoid), it may be worth you trying to use 4326 instead. > > > > Please note the subtle differences in acronyms, in case you are not > > experienced with AGD84 and GDA94. They are different datums, and all > > projections in the EPSG that try to use AGD84 are inaccurate. > > > > Regards, > > > > Jacob > > > > > -----Original Message----- > > > From: Stephen Davies [mailto:sdc at sdc.com.au] > > > Sent: 15 June 2007 09:35 > > > To: Delfos, Jacob > > > Cc: Stephen Davies; MAPSERVER-USERS at lists.umn.edu > > > Subject: Re: [UMN_MAPSERVER-USERS] Image projection question > > > > > > G'day Jacob. > > > > > > The map that is displayed by MapServer shows the polygons > > > some 20 m due > > > north of the "correct" location relative to the background raster > > > but the mouse coordinates displayed when pointing at the polygons > > > seem correct (the scale is such that it is difficult to be precise > > > but to five or six decimals they match) but coordinates for > > > features in the raster are wrong; suggesting that the raster > > > projection has "moved" rather than the polygons. > > > > > > The Farm Keeper software seems to not accept the embedded > > > georeferencing > > > in the raster as it insists on prompting the user to re-enter > > > georeferencing points. > > > > > > It then generates the polygons in what looks like 28354 (Zone 54 > > > eastings/northings). These are transformed to 4283 for storage in > > > the database. > > > > > > The map uses: > > > PROJECTION > > > "proj=eqc" > > > "lon_0=139.591e" > > > END > > > where lon_0 has been calculated as the longitude of the centre of > > > the requested MBR. > > > > > > HTH, > > > Stephen > > > > > > On Friday 15 June 2007 10:30, Delfos, Jacob wrote: > > > > Stephen, > > > > > > > > I'm not completely clear about what has happened to your raster. > > > > Can you please clarify whether it appears either moved, or > > > > stretched? Also, which projection were you polygons in to begin > > > > with? Can you please tell me: > > > > - the projection of your polygons > > > > - the projection of your map > > > > > > > > Your raster is in MGA94 (UTM zone 54, GDA datum), which is > > > > > > the common > > > > > > > Australian projection, so that's probably fine. > > > > > > > > Regards, > > > > > > > > Jacob > > > > > > > > > -----Original Message----- > > > > > From: UMN MapServer Users List > > > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen > > > > > Davies Sent: 15 June 2007 08:13 > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > Subject: [UMN_MAPSERVER-USERS] Image projection question > > > > > > > > > > G'day. > > > > > I posted the following last week but had no response. I am > > > > > still stuck > > > > > without any solution so would really appreciate any feedback > > > > > at all as > > > > > to what might be wrong with my setup. > > > > > > > > > > > > > > > I have a georeferenced TIFF aerial photo with the gdalinfo > > > > > below. > > > > > > > > > > Using a package called Farm Keeper, a shape file was created > > > > > (by clicking on the image) containing several > polygons defining > > > > > paddocks. The shape file was then loaded into PostGIS using > > > > > shp2pgsql and the results displayed with MapServer using the > > > > > original geotiff as the raster layer. > > > > > > > > > > The result was "almost right" except each of the polygons was > > > > > displayed > > > > > about 20m due north of it's correct position relative to the > > > > > raster. > > > > > > > > > > The polygon data is stored transformed to SRID 4283. The map > > > > > projection > > > > > is eqc with a central meridian of the centre of the polygons' > > > > > MBR and the map extent is the MBR plus approx 100m - slightly > > > > > smaller than the > > > > > raster image extent. > > > > > > > > > > Looking at the Map Server map coordinates, it appears that > > > > > the polygons > > > > > are correctly positioned (the mouse coordinates displayed > > > > > > match the > > > > > > > > originals) but the raster has been "moved" (stretched > > > > > > north/south). > > > > > > > > Can anybody suggest what has happened? > > > > > > > > > > Cheers and thanks, > > > > > Stephen Davies > > > > > > > > > > > > > > > Driver: GTiff/GeoTIFF > > > > > Size is 600, 448 > > > > > Coordinate System is: > > > > > PROJCS["GDA94 / MGA zone 54", > > > > > GEOGCS["GDA94", > > > > > DATUM["Geocentric_Datum_of_Australia_1994", > > > > > SPHEROID["GRS 1980",6378137,298.2572221010042, > > > > > AUTHORITY["EPSG","7019"]], > > > > > AUTHORITY["EPSG","6283"]], > > > > > PRIMEM["Greenwich",0], > > > > > UNIT["degree (supplier to define > > > > > representation)",0.01745329251994328], > > > > > AUTHORITY["EPSG","4283"]], > > > > > PROJECTION["Transverse_Mercator"], > > > > > PARAMETER["latitude_of_origin",0], > > > > > PARAMETER["central_meridian",141], > > > > > PARAMETER["scale_factor",0.9996], > > > > > PARAMETER["false_easting",500000], > > > > > PARAMETER["false_northing",10000000], > > > > > UNIT["metre",1, > > > > > AUTHORITY["EPSG","9001"]], > > > > > AUTHORITY["EPSG","28354"]] > > > > > Origin = (370139.138699,6182407.307100) > > > > > Pixel Size = (2.00000000,-2.00000000) > > > > > Metadata: > > > > > AREA_OR_POINT=Area > > > > > TIFFTAG_DOCUMENTNAME=ER Mapper 7.0 > > > > > TIFFTAG_IMAGEDESCRIPTION=ER Mapper GeoTiff raster translator > > > > > V1.0: Band 1 = Red, Band 2 = Green, Band 3 = Blue > > > > > TIFFTAG_SOFTWARE=ER Mapper 7.0 > > > > > TIFFTAG_XRESOLUTION=0 > > > > > TIFFTAG_YRESOLUTION=0 > > > > > Corner Coordinates: > > > > > Upper Left ( 370139.139, 6182407.307) (139d35'8.28"E, > > > > > 34d29'30.38"S) Lower Left ( 370139.139, 6181511.307) > > > > > (139d35'7.79"E, 34d29'59.46"S) Upper Right ( 371339.139, > > > > > 6182407.307) (139d35'55.32"E, > > > > > 34d29'30.92"S) > > > > > Lower Right ( 371339.139, 6181511.307) (139d35'54.84"E, > > > > > 34d30'0.00"S) Center ( 370739.139, 6181959.307) > > > > > (139d35'31.56"E, > > > > > 34d29'45.19"S) > > > > > Band 1 Block=600x20 Type=Byte, ColorInterp=Red > > > > > Band 2 Block=600x20 Type=Byte, ColorInterp=Green > > > > > Band 3 Block=600x20 Type=Byte, ColorInterp=Blue > > > > > > > > > > -- > > > > > ============================================================== > > > > > ========== > > > > > This email is for the person(s) identified above, and is > > > > > confidential to > > > > > the sender and the person(s). No one else is > authorised to use > > > > > or disseminate this email or its contents. > > > > > > > > > > Stephen Davies Consulting Voice: > > > > > 08-8177 1595 > > > > > Adelaide, South Australia. Fax: > > > > > 08-8177 0133 > > > > > Computing & Network solutions. > > > > > Mobile:0403 0405 83 > > > > > > > > This email and any attachments are intended solely for the named > > > > recipient and are confidential. The copying or distribution of > > > > them or any information they contain by anyone other than the > > > > named recipient is prohibited. If you have received > this document > > > > > > in error, > > > > > > > please notify the sender and delete all copies from > your computer > > > > system and destroy all hard copies. It is the recipient's > > > > responsibility to check this email and any attachments to this > > > > email for viruses before use. > > > > > > -- > > > ============================================================== > > > ========== > > > This email is for the person(s) identified above, and is > > > confidential to > > > the sender and the person(s). No one else is authorised to use or > > > disseminate this email or its contents. > > > > > > Stephen Davies Consulting Voice: > > > 08-8177 1595 > > > Adelaide, South Australia. Fax: > > > 08-8177 0133 > > > Computing & Network solutions. > > > Mobile:0403 0405 83 > > > > This email and any attachments are intended solely for the named > > recipient and are confidential. The copying or distribution of them > > or any information they contain by anyone other than the named > > recipient is prohibited. If you have received this document > in error, > > please notify the sender and delete all copies from your computer > > system and destroy all hard copies. It is the recipient's > > responsibility to check this email and any attachments to this email > > for viruses before use. > > -- > ============================================================== > ========== > This email is for the person(s) identified above, and is > confidential to > the sender and the person(s). No one else is authorised to use or > disseminate this email or its contents. > > Stephen Davies Consulting Voice: > 08-8177 1595 > Adelaide, South Australia. Fax: > 08-8177 0133 > Computing & Network solutions. > Mobile:0403 0405 83 > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From cheung.jackey at GMAIL.COM Thu Jun 14 21:24:54 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Fri, 15 Jun 2007 12:24:54 +0800 Subject: about line joins and their z-order Message-ID: I've rendered a map image like this: http://www3.mapasia.com/jackout/rj.png there are a few problems here: 1. they are joined correctly 2. although they are joined, but the yellow one should "covers" the white ones 3. the white one should be drawn beneath the lower segment of the yellow one As trying to fix this kind of problems, I've noticed that it's impossible to control the z-order of how roads are drawn. Say, in may cities, one very long road may elevated somewhere, and dive beneath other roads somewhere else. Is there any way to present this kind of thing with MapServer? -------------- next part -------------- An HTML attachment was scrubbed... URL: From percyd at PDX.EDU Thu Jun 14 21:56:24 2007 From: percyd at PDX.EDU (percy) Date: Thu, 14 Jun 2007 21:56:24 -0700 Subject: One shapefile, many countries, many colors? In-Reply-To: <4670DA9C.8090508@dadark.de> Message-ID: You can also use an open source tool like Quantum GIS (qgis.org) to generate random colors like you are used to in Arc, then export the mapfile from QGIS and copy just the class expressions into your own mapfile that you've already been working with. You might need to tweak the expression syntax to work with PostGIS (depending on whether you point QGIS at a shapefile or a postgis table), but this can still save a lot of hand coding of classes. Percy Pascal Ehlert wrote: > That's great, thank you for the example.. Makes it a lot clearer :) >> As an example I am usually using something similar like this: >> >> LAYER >> NAME "Countries" >> GROUP "Africa" >> TYPE POLYGON >> STATUS ON >> CONNECTIONTYPE postgis >> CONNECTION "user=me password=none dbname=africa host=localhost" >> DATA "the_geom from (select the_geom, countryname, area, gid from >> africa_countries) as temp using unique gid using SRID=4326" >> # SRID 4326 is when using decimal degrees, replace with the correct >> SRID >> for your data CLASSITEM "countryname" >> CLASS >> NAME "EGYPT" >> COLOR 153 204 143 >> EXPRESSION ([countryname]=EGYPT) >> END >> CLASS >> NAME "LYBIA" >> COLOR 252 141 50 >> EXPRESSION ([countryname]=LYBIA) >> END >> CLASS >> NAME "MADAGASCAR" >> COLOR 255 190 232 >> EXPRESSION ([countryname]=MADAGASCAR) >> END >> END >> >> Cheers >> Karsten >> >> > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From neeraj.lw at GMAIL.COM Fri Jun 15 01:51:32 2007 From: neeraj.lw at GMAIL.COM (Neeraj Singh) Date: Fri, 15 Jun 2007 14:21:32 +0530 Subject: create map using php-mapscript and mysql Message-ID: Hi, I am new to mapserver technology. Please tell me, can we create a map (mapfile ) using PHP-Mapscript by fetching data from MYSQL database. It will be of great help if you give me some sample code also. Thank you very much , Neeraj From hartpence_gis at CO.JASPER.IA.US Fri Jun 15 06:05:36 2007 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Fri, 15 Jun 2007 08:05:36 -0500 Subject: NQuery Message-ID: Hello, I am using MapServer 4.8. I want to set up a site where the user may search a township, range, and section, zoom to that particular section, then click on a feature from a different layer to have the features of that layer display. So far I successfully have setup a form where a person may perform a search and zoom to that polygon. There I set up a tool to identify (nquery) a different point layer. The problem is that when one clicks on the = point, ALL the points are selected. Any ideas what I am doing wrong and how to do it right? Here is the site I am working on: http://216.203.113.94/Login.html Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From alan.hale at BTCLICK.COM Fri Jun 15 14:00:50 2007 From: alan.hale at BTCLICK.COM (Alan Hale) Date: Fri, 15 Jun 2007 22:00:50 +0100 Subject: Map image created but won't display In-Reply-To: <000701c7af2a$6299ead0$2101a8c0@server2003> Message-ID: I've tried once before with this and had no response at all. I'm going to try again because I have tried everything I can think of. I have mapserv running from /cgi-bin/ within a virtual host on a Fedora 6 - based server managed via Plesk. Testing with a simple "Hello World" application. Both map file (hello.map) and the initialisation/template (hello.html) file are under /httpdocs/mapserver/ . Images to be written to /httpdocs/mapserver/tmp/ Mapserv will write the images back to the /tmp/directory OK, and returns the correct image_url to hello.html, so the html looks like this: But the image does not display (a broken image icon appears). If I paste the source into a new file and FTP it back up this will display the image with no problem. I am completely baffled. #This is the "Hello World" mapfile NAME "Hello_World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "/var/www/vhosts/bsbimaps.org.uk/httpdocs/mapserver/hello.html" IMAGEPATH "/var/www/vhosts/bsbimaps.org.uk/httpdocs/mapserver/tmp/" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World - from bsbimaps" END #end feature CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END TEMPLATE Mapserver Hello World No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.16/849 - Release Date: 14/06/2007 12:44 From richard.greenwood at GMAIL.COM Fri Jun 15 14:36:30 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 15 Jun 2007 15:36:30 -0600 Subject: Map image created but won't display In-Reply-To: <000e01c7af90$41517f80$0301a8c0@bryo> Message-ID: On 6/15/07, Alan Hale wrote: > I've tried once before with this and had no response at all. I'm going > to try again because I have tried everything I can think of. > > I have mapserv running from /cgi-bin/ within a virtual host on a Fedora > 6 - based server managed via Plesk. Testing with a simple "Hello World" > application. Both map file (hello.map) and the initialisation/template > (hello.html) file are under /httpdocs/mapserver/ . Images to be written > to /httpdocs/mapserver/tmp/ > > Mapserv will write the images back to the /tmp/directory OK, and returns > the correct image_url to hello.html, so the html looks like this: src="/tmp/Hello_World118193937715913.png" width=400 height=300 border > =0> Try pasting http://HOSTNAME/tmp/Hello_World118193937715913.png into your browser's address bar, where HOSTNAME is the name or IP address of your server. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From alan.hale at BTCLICK.COM Fri Jun 15 15:45:30 2007 From: alan.hale at BTCLICK.COM (Alan Hale) Date: Fri, 15 Jun 2007 23:45:30 +0100 Subject: Map image created but won't display In-Reply-To: <4672FEEB.6050100@hostgis.com> Message-ID: > -----Original Message----- > From: Gregor Mosheh [mailto:gregor at hostgis.com] > Sent: 15 June 2007 22:05 > To: Alan Hale > Subject: Re: [UMN_MAPSERVER-USERS] Map image created but won't display > > > > Mapserv will write the images back to the /tmp/directory OK, and > > returns the correct image_url to hello.html, so the html looks like > > this: > height=300 border =0> But the image does not display (a > broken image > > icon appears). > > Interesting. But if you paste the URL into a browser, what happens? > http://your_server_address/tmp/Hello_World118193937715913.png > If it gives anything other than an image, check the webserver's error > log and that should nail the problem. > > I've noticed in my brief and unpleasant experiences with > Plesk's virtual > domains, that Plesk makes a lot of behind-the-scenes assumptions and > shortcuts about URLs. So it's possible that the directory being named > "tmp" is itself part of the problem, and you may have better > luck naming > it something else like "tmpimages" > > -- > Gregor Mosheh / Greg Allensworth > Many thanks for the quick responses. I tried pasting the URL directly into does display the image as suggested, and it does display the image OK. I also tried changing the name of the tmp directory, to no avail. I am sure you are right though and this is something to do with Plesk. I've posted the issue on one of the Plesk forums but had no response. Regards Alan Hale Aberystwyth Wales No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.16/849 - Release Date: 14/06/2007 12:44 From jscarbrough at WHERE2GETIT.COM Thu Jun 14 14:45:52 2007 From: jscarbrough at WHERE2GETIT.COM (Jon Scarbrough) Date: Thu, 14 Jun 2007 16:45:52 -0500 Subject: Chicago users In-Reply-To: Message-ID: Hi Neil, Where2GetIt is located in Arlington Heights, IL so we are not far from Itasca. Steve Woodbridge works for us and is a very active member of this list. We are a very big user of Mapserver but in a consumer facing application. We'd be happy to host any type of Chicago Mapserver meeting in our office if it doesn't get too big. :-) Best regards, Jon Scarbrough Where2GetIt.com Neil Best wrote: > At the end of 2005 I traded notes with Adam about > networking among Mapserver users in the Chicago area. I wanted to revive > that thread but have fallen out of touch. Are you out there, Adam? > > Neil > > > Neil Best > Project Analyst > Lanworth, Inc. (formerly Forest One, Inc.) > http://www.lanworth.com/ > > From paulanne.winn at WACORP.NET Fri Jun 15 15:51:10 2007 From: paulanne.winn at WACORP.NET (Mevima Winn) Date: Fri, 15 Jun 2007 15:51:10 -0700 Subject: LatLong changing to scientific notation Message-ID: I have a C#.NET app, and a grid layer with a label to show the lat/long on my map. When I build my app and load it for the first time, it shows correctly. However, when I zoom in, everything below -90lat turns into scientific notation (-1e+002, -1.1e+002, etc. instead of -100, -110), and when I zoom back out or even reload the page, the notation stays; I don't get the proper lat/long back until I rebuild. Any idea what might be causing this? Google doesn't seem to help, and I'm pretty new to the whole MapServer deal, so I might be missing something simple. The relevant part from the map file: MAP NAME "Zone Samples" SHAPEPATH "C:\training\mapServerTutorial\data" SIZE 600 400 STATUS ON IMAGETYPE PNG IMAGECOLOR 255 255 240 EXTENT -180 40 -60 60 UNITS METERS FONTSET "fonts\fonts.list" LAYER NAME "grid" METADATA "DESCRIPTION" "Grid" END TYPE LINE STATUS ON CLASS NAME "Graticule" COLOR 150 150 150 LABEL COLOR 255 0 0 FONT arial TYPE truetype SIZE 8 END END PROJECTION #"init=epsg:4326" "proj=latlong" "ellps=WGS84" "datum=WGS84" END GRID LABELFORMAT DDMM MAXARCS 10 MAXINTERVAL 10 MAXSUBDIVIDE 2 END END END Thanks, ____________ Mevima Winn Wireless Applications Corp. *paulanne.winn at wacorp.net* From sdc at SDC.COM.AU Fri Jun 15 19:33:42 2007 From: sdc at SDC.COM.AU (Stephen Davies) Date: Sat, 16 Jun 2007 12:03:42 +0930 Subject: Image projection question In-Reply-To: <4672A6B4.30007@pobox.com> Message-ID: G'day Frank. Thank you again for your feedback. My problem with displaying the shapefile was one of colour. When I added a CLASS to the unit layer, it became visible. I checked my spatial_ref_sys table and the 28354 definition is correct. I tried expanding the map PROJECTON definition but this had no visible effect. What did have an effect however, was to change the map projection to: PROJECTION "init=epsg:28354" END This fixed the polygon location relative to the raster - but broke the reference map. It no longer shows the map location. As I think I mentioned earlier, this was the reason that I originally chose eqc as the map projection. It was the only one I could find that produced matching map, reference map and scale map. I am attaching the complete map file that was used in this latest test. If you could identify why the reference map has stopped working, I think my whole problem might be solved. Cheers and thanks, Stephen On Saturday 16 June 2007 00:18, you wrote: > Stephen Davies wrote: > > MAP > > > > NAME benparts1 > > > > > > PROJECTION > > "proj=eqc" > > "lon_0=139.591e" > > END > > Stephen, > > I suspect the above is your problem. The above definition will > default to using the WGS84 as the datum, but everything else is GRS80 > (the GDA94 ellipsoid). Hmm, on review GRS80 is a very close match to > WGS84 as an ellipsoid, so this isn't so likely. Nevertheless, it > would make me feel better if you included an explicit ellipsoid. > > eg. > > PROJECTION > "+proj=eqc +lon_0=139.59 +ellps=GRS80 +towgs84=0,0,0 +no_defs" > END > > You mentioned you weren't able to get the shapefile to show: > > LAYER > # CONNECTIONTYPE postgis > NAME "unit" > DATA "/var/shapefiles/CondoCitrus" > CONNECTION "user=scldad dbname=benparts" > STATUS default > TYPE POLYGON > # FILTER "unit_id in (0)" > PROJECTION > "init=epsg:28354" > END > MAXSCALE 5000000 > END > > > I would suggest also commending out the CONNECTION. I assume the > shapefile is /var/shapefiles/CondoCitrus.shp? > > You might also consider replacing init=epsg:28354 with the following > definition just to be sure the expected definitions are being used. > > PROJECTION > "+proj=utm +zone=54 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 > +units=m +no_defs" END > > You should also check the spatial_ref_sys table in postgis, to > verify the same proj.4 string is being used there for SRID 28354. > > Best regards, -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 -------------- next part -------------- # # Copyright Stephen Davies Consulting P/L 2005 # # template map file for Agua Soil Database # MAP NAME benparts1 PROJECTION "init=epsg:28354" END SIZE 600 600 FONTSET "/var/www/html2/benparts/fonts.list" SYMBOLSET "/var/www/html2/benparts/symbols" UNITS METERS IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "QUALITY=80" END IMAGECOLOR 255 255 255 WEB template /var/www/html2/benparts/templates/test1.html imagepath "/var/www/html2/tmp/" imageurl "/tmp/" END LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 94 END STATUS ON END LAYER TYPE RASTER NAME "bkgrnd" STATUS DEFAULT PROJECTION "init=epsg:28354" END DATA "/var/www/html2/benparts/rasters/SwanReach_Citrus_Mar07_2m.tif" # OFFSITE 0 0 0 PROCESSING "DITHER=YES" END LAYER CONNECTIONTYPE postgis NAME "geog" DATA "geom from geog" CONNECTION "user=scldad dbname=benparts" STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4283" END CLASS STYLE # COLOR 233 233 233 OUTLINECOLOR 11 11 11 END END END LAYER CONNECTIONTYPE postgis NAME "unit" DATA "geom from unit" CONNECTION "user=scldad dbname=benparts" STATUS default TYPE POLYGON # FILTER "unit_id in (0)" PROJECTION "init=epsg:4283" END MAXSCALE 5000000 LABELITEM "name" CLASSITEM "mstatus" CLASS # NAME "Unknown" EXPRESSION "x" STYLE OUTLINECOLOR 127 127 127 END LABEL MINDISTANCE 150 POSITION CC SIZE MEDIUM COLOR 255 0 255 FORCE TRUE END END CLASS NAME "Saturated" EXPRESSION "1" STYLE COLOR 0 168 255 END LABEL MINDISTANCE 150 POSITION CC SIZE MEDIUM COLOR 255 0 255 FORCE TRUE END END CLASS NAME "..." EXPRESSION "2A" STYLE COLOR 0 255 0 END LABEL MINDISTANCE 150 POSITION CC SIZE MEDIUM COLOR 255 0 255 FORCE TRUE END END CLASS NAME ".. " EXPRESSION "2B" STYLE COLOR 115 255 0 END LABEL MINDISTANCE 150 POSITION CC SIZE MEDIUM COLOR 255 0 255 FORCE TRUE END END CLASS NAME "." EXPRESSION "2C" STYLE COLOR 168 255 168 END LABEL MINDISTANCE 150 POSITION CC SIZE MEDIUM COLOR 255 0 255 FORCE TRUE END END CLASS NAME "Refill Point" EXPRESSION "2D" STYLE COLOR 214 255 168 END LABEL MINDISTANCE 150 POSITION CC SIZE MEDIUM COLOR 255 0 255 FORCE TRUE END END CLASS NAME "." EXPRESSION "3A" STYLE COLOR 255 255 0 END LABEL MINDISTANCE 150 POSITION CC SIZE MEDIUM COLOR 255 0 255 FORCE TRUE END END CLASS NAME "Onset of Water Stress" EXPRESSION "3B" STYLE COLOR 255 235 0 END LABEL MINDISTANCE 150 POSITION CC SIZE MEDIUM COLOR 255 0 255 FORCE TRUE END END CLASS NAME ".." EXPRESSION "4A" STYLE COLOR 255 215 0 END LABEL MINDISTANCE 150 POSITION CC SIZE MEDIUM COLOR 255 0 255 FORCE TRUE END END CLASS NAME "..." EXPRESSION "4B" STYLE COLOR 255 195 0 END LABEL MINDISTANCE 150 POSITION CC SIZE MEDIUM COLOR 255 0 255 FORCE TRUE END END CLASS NAME "Severe Water Stress" EXPRESSION "5" STYLE COLOR 255 0 96 END LABEL MINDISTANCE 150 POSITION CC SIZE MEDIUM COLOR 255 0 255 FORCE TRUE END END END LAYER CONNECTIONTYPE postgis NAME "cadt" DATA "geom from cad" CONNECTION "user=scldad dbname=benparts" STATUS DEFAULT TYPE POINT PROJECTION "init=epsg:4283" END FILTER "gtype='T' and client_id=49" CLASSITEM "type" CLASS EXPRESSION "201" STYLE COLOR 0 255 0 END STYLE SYMBOL "tree" COLOR 0 255 0 SIZE 9 END END CLASS EXPRESSION "754" LABEL MINDISTANCE 150 POSITION CR SIZE TINY COLOR 0 0 0 FORCE TRUE END TEXT 'WM' STYLE SYMBOL "dot" COLOR 0 0 0 SIZE 5 END END CLASS EXPRESSION "757" LABEL MINDISTANCE 150 POSITION CR SIZE TINY COLOR 0 0 0 FORCE TRUE END TEXT 'Bore' STYLE SYMBOL "dot" COLOR 0 0 0 SIZE 5 END END CLASS EXPRESSION "712" STYLE SYMBOL "stobie" SIZE 4 COLOR 255 0 168 END END CLASS EXPRESSION /./ STYLE SYMBOL "dot" COLOR 9 9 9 SIZE 5 END END END LAYER CONNECTIONTYPE postgis NAME "cadl" DATA "geom from cad" CONNECTION "user=scldad dbname=benparts" STATUS DEFAULT TYPE LINE PROJECTION "init=epsg:4283" END FILTER "gtype in ('L','P') and client_id=49" CLASSITEM "type" CLASS EXPRESSION "908" STYLE SYMBOL "fence" SIZE 10 COLOR 0 255 0 END STYLE SYMBOL "dot" COLOR 0 255 0 SIZE 1 END END CLASS EXPRESSION "712" STYLE SYMBOL "power" SIZE 8 COLOR 255 0 168 END STYLE SYMBOL "dot" COLOR 255 0 168 SIZE 1 END END CLASS EXPRESSION "602" STYLE SYMBOL "dot" COLOR 137 205 190 SIZE 1 END END CLASS EXPRESSION /./ STYLE COLOR 9 9 9 END END END LAYER CONNECTIONTYPE postgis NAME "probe" DATA "geom from probe" CONNECTION "user=scldad dbname=benparts" STATUS DEFAULT TYPE POINT # FILTER "probe_id in (0)" PROJECTION "init=epsg:4283" END MAXSCALE 5000000 LABELITEM "location" CLASS NAME "Probe (Right Click to select)" STYLE COLOR 0 214 0 SYMBOL 'circle' SIZE 7 END LABEL MINDISTANCE 15 POSITION CR SIZE SMALL COLOR 0 0 0 FORCE TRUE END END END LAYER CONNECTIONTYPE postgis NAME "bore" DATA "geom from bore" CONNECTION "user=scldad dbname=benparts" FILTER "id in (0)" STATUS DEFAULT TYPE POINT PROJECTION "init=epsg:4283" END LABELITEM "name" CLASS NAME "Bore" STYLE COLOR 0 0 214 SYMBOL 'circle' SIZE 7 END LABEL MINDISTANCE 150 POSITION CR SIZE TINY COLOR 9 9 9 END END END LAYER CONNECTIONTYPE postgis NAME "weather" DATA "geom from weather_station" CONNECTION "user=scldad dbname=benparts" STATUS DEFAULT TYPE POINT FILTER "id in (0)" PROJECTION "init=epsg:4283" END LABELITEM "name" CLASS NAME "Weather Station" STYLE COLOR 214 0 0 SYMBOL 'circle' SIZE 7 END LABEL MINDISTANCE 150 POSITION CR SIZE TINY COLOR 9 9 9 END END END LAYER CONNECTIONTYPE postgis NAME "onswitch" DATA "geom from onswitch using unique id using SRID=4283" CONNECTION "user=scldad dbname=benparts" STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4283" END MAXSCALE 5000000 CLASS STYLE OUTLINECOLOR 0 0 255 MINWIDTH 3 END END END LAYER NAME 'copyright' TYPE ANNOTATION STATUS DEFAULT TRANSFORM FALSE # coordinates are in pixels FEATURE POINTS 10 595 END END CLASS LABEL TYPE TRUETYPE FONT arial SIZE 8 COLOR 255 255 255 POSITION CR END TEXT 'Photography supplied by MAPLAND, Environment Information, Dept Environment & Heritage' END END # LAYER NAME 'movie' TYPE ANNOTATION STATUS DEFAULT TRANSFORM FALSE # coordinates are in pixels FEATURE POINTS 270 10 END END CLASS LABEL TYPE TRUETYPE FONT arial SIZE 10 COLOR 251 196 6 POSITION CR END TEXT 'Status at 2007-06-13 07:00:00 .' END END # # Start of reference map # REFERENCE IMAGE /var/www/html2/benparts/refmaps/sa.png EXTENT -1191229.87 -4230140.65 167981.11 -2872042.86 SIZE 120 120 STATUS ON MINBOXSIZE 5 MAXBOXSIZE 100 COLOR 0 255 0 OUTLINECOLOR 0 0 0 MARKERSIZE 8 MARKER 'star' END # # Start of scalebar # SCALEBAR IMAGECOLOR 0 0 0 LABEL COLOR 255 255 255 SIZE TINY END STYLE 1 SIZE 200 2 COLOR 255 255 255 UNITS KILOMETERS INTERVALS 2 TRANSPARENT TRUE STATUS ON END END From rodrigomlg at GMAIL.COM Fri Jun 15 20:00:05 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Sat, 16 Jun 2007 00:00:05 -0300 Subject: about line joins and their z-order In-Reply-To: <84A5B972621F44BDA9FE9802529817E1@jackey> Message-ID: I assume that both (yellows and whites) roads are in the same layer and different classes. If this is the case you have no control about the drawing order with the class elements. Mapserver renders all layer elements in the order it gets from source (shp, postgis). I think there can be two alternatives. The first is separate the roads in two layers using a FILTER at LAYER level so all the white roads gets drawed first and then all the yellow ones. The other alternative (the one I have used sometime) is order the elements in the source (shp, postgis) so all white elements are procesed first by mapserver. If your layer DATA is on a PostgreSQL table then you can make a second table with the same structure of your original table and insert all the roads in the right order like: INSERT INTO newtable SELECT * FROM oldtable ORDER BY criteria I'm sure there must be a better way to sort the elements without creating a second table but this is the way I get it work. If your layer DATA is on a shp file I don't know how to do that but the idea is the same so if you find the way to do the same on shp file it must work also. Rodrigo. On 6/15/07, Jackey Cheung wrote: > > I've rendered a map image like this: > http://www3.mapasia.com/jackout/rj.png > > there are a few problems here: > > 1. they are joined correctly > 2. although they are joined, but the yellow one should "covers" the white > ones > 3. the white one should be drawn beneath the lower segment of the > yellow one > > As trying to fix this kind of problems, I've noticed that it's impossible > to control the z-order of how roads are drawn. Say, in may cities, one very > long road may elevated somewhere, and dive beneath other roads somewhere > else. Is there any way to present this kind of thing with MapServer? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cheung.jackey at GMAIL.COM Fri Jun 15 20:14:00 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Sat, 16 Jun 2007 11:14:00 +0800 Subject: about line joins and their z-order Message-ID: Thanks for your confirmation of the drawing order, and your advise. I'll take the 2nd work around, since the 1st one makes the lines disjoined. ----- Original Message ----- From: Rodrigo Mart?n L?PEZ GREGORIO To: Jackey Cheung Cc: MAPSERVER-USERS at lists.umn.edu Sent: Saturday, June 16, 2007 11:00 Subject: Re: [UMN_MAPSERVER-USERS] about line joins and their z-order I assume that both (yellows and whites) roads are in the same layer and different classes. If this is the case you have no control about the drawing order with the class elements. Mapserver renders all layer elements in the order it gets from source (shp, postgis). I think there can be two alternatives. The first is separate the roads in two layers using a FILTER at LAYER level so all the white roads gets drawed first and then all the yellow ones. The other alternative (the one I have used sometime) is order the elements in the source (shp, postgis) so all white elements are procesed first by mapserver. If your layer DATA is on a PostgreSQL table then you can make a second table with the same structure of your original table and insert all the roads in the right order like: INSERT INTO newtable SELECT * FROM oldtable ORDER BY criteria I'm sure there must be a better way to sort the elements without creating a second table but this is the way I get it work. If your layer DATA is on a shp file I don't know how to do that but the idea is the same so if you find the way to do the same on shp file it must work also. Rodrigo. On 6/15/07, Jackey Cheung wrote: I've rendered a map image like this: http://www3.mapasia.com/jackout/rj.png there are a few problems here: 1. they are joined correctly 2. although they are joined, but the yellow one should "covers" the white ones 3. the white one should be drawn beneath the lower segment of the yellow one As trying to fix this kind of problems, I've noticed that it's impossible to control the z-order of how roads are drawn. Say, in may cities, one very long road may elevated somewhere, and dive beneath other roads somewhere else. Is there any way to present this kind of thing with MapServer? -------------- next part -------------- An HTML attachment was scrubbed... URL: From anhtin at GMAIL.COM Sat Jun 16 01:43:52 2007 From: anhtin at GMAIL.COM (anhtin) Date: Sat, 16 Jun 2007 01:43:52 -0700 Subject: Select Point in Polyline Postgis Message-ID: hi all I am developing a web application. i am using Mapserver and Postgis I have a question below if i want to click one point on map to select the nearest point on the nearest polyline from the point i clicked. How can i do? Notes: The point I clicked is converted to X,Y coordinate (295149 2315499) could you show me the script or function on Mapserver. 1. How can i select the nearest polyline on the click point. 2. How can i select the the nearest point on the selected nearest polyline. -- View this message in context: http://www.nabble.com/Select-Point-in-Polyline-Postgis-tf3931989.html#a11152220 Sent from the Mapserver - User mailing list archive at Nabble.com. From arul_gi at REDIFFMAIL.COM Sat Jun 16 06:54:15 2007 From: arul_gi at REDIFFMAIL.COM (SUBSCRIBE MAPSERVER-USERS Arulraj.M) Date: Sat, 16 Jun 2007 08:54:15 -0500 Subject: legend display problem Message-ID: Hi all I am using UMN map server 4.10. i have enabled the scale dependent display for some layers. The layers which are all displayed by scale dependent method are not showing the labels. If i did not fix any scale dependency, the legends are displayed properly. can you please help me how to overcome this problem with codes. Regards Arulraj.M From crystal.li at IDISIS.COM Sat Jun 16 08:55:30 2007 From: crystal.li at IDISIS.COM (Crystal Li) Date: Sat, 16 Jun 2007 10:55:30 -0500 Subject: SSL Issue with MapServer Message-ID: Hello Everyone, I am pretty new with MapServer. I tried differnt versions of MapServer, it seems there are some problems with SSL. Now I installed MS4W_2.2.3, Chameleon_ms4W-2.4.1-20060906, Apache_2.2.3-Openssl_0.9.8d-WIn32, I followed the instruction until postgresql is successfully installed. then I start apache again, there is error is below: The Apache service named reported the following error: >>> httpd.exe: Syntax error on line 114 of C:/ms4w/Apache/conf/httpd.conf: Cannot load C:/ms4w/Apache/modules/mod_ssl.so into server: The operating system cannot run The Apache service named. Please help! IS SSL version not matching Mapserver version? How can I fix this problem??? Thanks in advance! Crystal From richard.greenwood at GMAIL.COM Sat Jun 16 13:13:01 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sat, 16 Jun 2007 14:13:01 -0600 Subject: NQuery In-Reply-To: Message-ID: On 6/15/07, Lawrence Hartpence wrote: > Hello, > > I am using MapServer 4.8. I want to set up a site where the user may search > a township, range, and section, zoom to that particular section, then click > on a feature from a different layer to have the features of that layer display. > > So far I successfully have setup a form where a person may perform a search > and zoom to that polygon. There I set up a tool to identify (nquery) a > different point layer. The problem is that when one clicks on the = point, > ALL the points are selected. > > Any ideas what I am doing wrong and how to do it right? > > Here is the site I am working on: http://216.203.113.94/Login.html > > Lawrence Hartpence > GIS Coordinator > 101 1st St N > Newton IA 50208 > 641-792-3084 > hartpence_gis at co.jasper.ia.us I looked at your problem for a bit and couldn't see what was wrong. Since nobody has replied, maybe you could post your layer definition and template file. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From alan.hale at BTCLICK.COM Sat Jun 16 14:51:07 2007 From: alan.hale at BTCLICK.COM (Alan Hale) Date: Sat, 16 Jun 2007 22:51:07 +0100 Subject: Map image created but won't display In-Reply-To: Message-ID: With regards to the typos in my previous posting: What I MEANT to say was: "I tried pasting the image URL directly into a browser as suggested, and it DOES display the image. I also tried changing the name of the tmp directory, to no avail." So, why the image won't display in the template is still a mystery. Incidentally, further to Plesk, to get ANY scripts to run at all from html files in httpdocs I had to change group ownership of cgi-bin from psaserv to psacln. (httpdocs is psaserv and directories and files beneath psacln). Any further help much appreciated. Many thanks Alan Hale Aberystwyth No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.17/850 - Release Date: 15/06/2007 11:31 From sdc at SDC.COM.AU Sat Jun 16 19:17:53 2007 From: sdc at SDC.COM.AU (Stephen Davies) Date: Sun, 17 Jun 2007 11:47:53 +0930 Subject: Reference maps spec Message-ID: If one is using a zone-based map projection such as epsg:28354 with a reference map that covers multiple zones, how does one specify the reference map extent? Cheers and thanks, Stephen Davies -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From richard.greenwood at GMAIL.COM Sat Jun 16 19:34:46 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sat, 16 Jun 2007 20:34:46 -0600 Subject: Map image created but won't display In-Reply-To: <003801c7b060$72e2e590$0301a8c0@bryo> Message-ID: On 6/16/07, Alan Hale wrote: > With regards to the typos in my previous posting: > > What I MEANT to say was: > > "I tried pasting the image URL directly into a browser as suggested, and > it DOES display the image. > So, why the image won't display in the template is still a mystery. You need a more fully qualified path to the image. Just change the template to: -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From dadark at DADARK.DE Sun Jun 17 01:48:25 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Sun, 17 Jun 2007 10:48:25 +0200 Subject: Partials and lables Message-ID: Good morning! Just a short question, when rendering partials, how can I make mapserver render a lable (country name in my case) only once? MINDISTANCE doesn't seem to work anymore and now my map is full of lables ;-) Thank you Pascal From dadark at DADARK.DE Sun Jun 17 02:59:28 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Sun, 17 Jun 2007 11:59:28 +0200 Subject: Mapserver damn slow Message-ID: Me again.. I finally had some time to benchmark the mapserver and was shocked when I saw the results ;-) Using the newest mapserver, fastcgi with lighttpd (with apache and normal CGI it's even slower), PNG as output format, three layers (the whole African continent) from PostGIS and truetype fonts I came to only 3.9 requests/s.. That is damn slow, isn't it? Ok, the server has only 2GHz and 512MB of RAM but there's nothing else running on it. I don't know what I could optimize further.. Any ideas? Thank you Pascal From alan.hale at BTCLICK.COM Sun Jun 17 03:41:58 2007 From: alan.hale at BTCLICK.COM (Alan Hale) Date: Sun, 17 Jun 2007 11:41:58 +0100 Subject: Map image created but won't display In-Reply-To: Message-ID: Richard - many thanks, this works. Though I'm still puzzled as to why I should need this workaround. Regards Alan > -----Original Message----- > > You need a more fully qualified path to the image. Just > change the template to: > > > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.9.0/852 - Release Date: 17/06/2007 08:23 From m.spring at GMX.DE Sun Jun 17 09:51:06 2007 From: m.spring at GMX.DE (Markus Spring) Date: Sun, 17 Jun 2007 18:51:06 +0200 Subject: OT: SDC conversion with free software Message-ID: Hi list, I have an off-topic question: Is there any free software to convert SDC (ESRI smart data compression) format to Shapefiles? I have access to up-to date timezone data in sdc format but have to import it into postgis, but unfortunately I have no access to ArcGIS Any pointers will be greatly appreciated Markus From warmerdam at POBOX.COM Sun Jun 17 10:15:07 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sun, 17 Jun 2007 13:15:07 -0400 Subject: Mapserver damn slow In-Reply-To: <46750600.5010608@dadark.de> Message-ID: Pascal Ehlert wrote: > Me again.. > > I finally had some time to benchmark the mapserver and was shocked when > I saw the results ;-) > Using the newest mapserver, fastcgi with lighttpd (with apache and > normal CGI it's even slower), PNG as output format, three layers (the > whole African continent) from PostGIS and > truetype fonts I came to only 3.9 requests/s.. That is damn slow, isn't it? Pascal, You haven't provided enough information to respond to the question. In particular, you haven't addressed the quantity of vector information going into the average map view at that 3.9 requests/s speed. For a complex map with a lot of vector information coming out of PostGIS on modest hardware it isn't bad. But the missing variable is the vector density in these map views. 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 Sun Jun 17 10:31:52 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sun, 17 Jun 2007 11:31:52 -0600 Subject: Mapserver damn slow In-Reply-To: <46756C1B.7000203@pobox.com> Message-ID: Frank Warmerdam wrote: > Pascal, > You haven't provided enough information to respond to the question. .. > For a complex map with a lot of vector information coming out of > PostGIS on modest hardware it isn't bad. But the missing variable > is the vector density in these map views. Definitely. It'd also be helpful, Pascal, to know whether and how you've indexed the PostGIS data, and whether you've analyze-ed it or vacuum-ed it or cluster-ed it, how much memory you've thrown at it. The PostGIS end of your setup is in itself an entire subsystem worthy of examination and optimization. Then there's the setup of your classes and what sort of expressions you're using to classify, whether you have labels enabled, and so on. The number of layers isn't necessarily as important as the total number of classes, combined with how many classes will be examined for each vector feature before finding a match and moving on to the next point. (e.g. put the class that matches the most records at the top) Personally, I think that benchmark-style stats such as "3.9 requests per second" are rarely accurate, since you didn't say how you got the figure. If it takes 0.25 seconds to render a map, and you could have an end-user experience of maps reloading in half a second, then that's pretty nice. It doesn't *necessarily* mean that you can only serve 4 requests in one second, either; unless your tests really were doing parallel requests and averaging the time, etc. And if the stats were accurate, I'd say that 4 requests per second or 345,000 requests per say, is pretty nice for what is now considered an entry-level PC! -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From dadark at DADARK.DE Sun Jun 17 13:11:03 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Sun, 17 Jun 2007 22:11:03 +0200 Subject: Mapserver damn slow In-Reply-To: <46757008.4080609@hostgis.com> Message-ID: Gregor Mosheh wrote: > It'd also be helpful, Pascal, to know whether and how you've indexed > the PostGIS data, and whether you've analyze-ed it or vacuum-ed it or > cluster-ed it, how much memory you've thrown at it. The PostGIS end of > your setup is in itself an entire subsystem worthy of examination and > optimization. > > Then there's the setup of your classes and what sort of expressions > you're using to classify, whether you have labels enabled, and so on. > The number of layers isn't necessarily as important as the total > number of classes, combined with how many classes will be examined for > each vector feature before finding a match and moving on to the next > point. (e.g. put the class that matches the most records at the top) > > > Personally, I think that benchmark-style stats such as "3.9 requests > per second" are rarely accurate, since you didn't say how you got the > figure. If it takes 0.25 seconds to render a map, and you could have > an end-user experience of maps reloading in half a second, then that's > pretty nice. It doesn't *necessarily* mean that you can only serve 4 > requests in one second, either; unless your tests really were doing > parallel requests and averaging the time, etc. And if the stats were > accurate, I'd say that 4 requests per second or 345,000 requests per > say, is pretty nice for what is now considered an entry-level PC! > At first, thank your for your answers. Ok, I made the benchmark from a remote pc and know 3,9req/s aren't very meanful ;) Just wanted to give a quick figure, I benchmarked once with several requests at a time, once with only one. Anyway.. The first thingwhich helped me a lot was PROCESSING "CLOSE_CONNECTION=DEFER".. That hit me upto 10req/s (see in relation with the other figure only ;)). I didn't optimize the postgres db so far. Ah, the map looks like this: http://85.199.1.166/tmp/Mozambique118209637430644.png Just give me some general ideas what I could optimize further. Thank you Pascal From w.blanken at GEON.NL Sun Jun 17 13:15:12 2007 From: w.blanken at GEON.NL (Wim Blanken) Date: Sun, 17 Jun 2007 20:15:12 -0000 Subject: Afwezig Message-ID: Geachte heer/mevrouw, Van 18 tot en met 24 juni ben ik niet in staat mijn Email te lezen vanwege een bedrijfsreis. Nadien zal ik (indien nodig) contact opnemen. Voor dringende vragen kunt u mij mobiel bereiken op: 06 20 24 72 84 . Met vriendelijke groet, Wim Blanken GEON bv From gregor at HOSTGIS.COM Sun Jun 17 15:16:19 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sun, 17 Jun 2007 16:16:19 -0600 Subject: Mapserver damn slow In-Reply-To: <46759557.3050708@dadark.de> Message-ID: > The first thingwhich helped me a lot was PROCESSING > "CLOSE_CONNECTION=DEFER".. That hit me upto 10req/s (see in relation > with the other figure only ;)). Hey neat. I'd heard conflicting reports, minimizing the impact of that processing directive. Nice to hear that it was significant for your case. > I didn't optimize the postgres db so far. Again, can't say without details. * Optimizing the DB is a huge step, if it's of any significant size: indexes, cluster, analyze and vacuum, etc. My company consults on such things if you don't get a complete-enough answer from the list; and PostGIS and PostgreSQL have mailing lists as well. * If it's completely static data, you'll find that shapefiles (especially shptree'd and/or sortshp'd ones) often perform faster than PostGIS. This also frees you from the database cruft, if you're not the DBA sort. * Examine your classes and layers, and see what you can speed up there; remember that classes are processed for every feature, in order, for the first match, so putting the most-frequently-matched classes at the top can save some CPU time, if you can still achieve the classifications you want by doing so. And I'm pretty sure there've been at least a half-dozen threads on the mailing list's archives on the topic of optiizing mapserver's performance. Try searching the archives or Googling, and see what comes up, perhaps? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From karsten at TERRAGIS.NET Sun Jun 17 16:56:11 2007 From: karsten at TERRAGIS.NET (karsten vennemann) Date: Sun, 17 Jun 2007 16:56:11 -0700 Subject: Mapserver damn slow In-Reply-To: <46759557.3050708@dadark.de> Message-ID: > I didn't optimize the postgres db so far. > Ah, the map looks like this: > http://85.199.1.166/tmp/Mozambique118209637430644.png > Just give me some general ideas what I could optimize further. Even though this might not do much with such a simple map (few features) but in general there is one thing that you could do : generalize the vector layer (weed out the vertices for the shapefile or postgis layer) for the districts shown on the map - especially the coast line is pretty detailed and doesn't need to be at that scale. You could have two layers (one generalized , one detailed). Using minscale and maxscale for those layers you can have the general layer drawn in when lokking at the map as an overview, and the detailed layer turning on when the user zooms in on the map. That makes also for a better cartographic output at the respective layer scales. Here is an example I have in one of the maps for rivers (note that the layers use the same name but different min/maxscale settings, also the second layer is a "tiled" shape file that uses an index - which helps the performance if there is a lot of detail. This however is only important if there really are a lot of features in a layer, not when using simple layers like in your map example) Karsten LAYER NAME "Rivers and Streams" GROUP "Base Layers" TYPE LINE STATUS DEFAULT MAXSCALE 1000000 MINSCALE 500000 TOLERANCE 5 DATA "rivers/rivers_500k" CLASSITEM "TYPE" CLASS NAME "Type 1" EXPRESSION "1" STYLE COLOR 128 170 255 SYMBOL "point" SIZE 1 END END END # 50k Tiled Layer LAYER NAME "Rivers and Streams" GROUP "Base Layers" TYPE LINE STATUS DEFAULT MAXSCALE 500000 MINSCALE 350000 TOLERANCE 5 TILEINDEX "rivers/wa_rivers_50k/index" TILEITEM "PATHNAME" CLASSITEM "TYPE" CLASS NAME "Type 1" EXPRESSION "1" STYLE COLOR 128 170 255 SYMBOL "point" SIZE 1 END END END From ierickson at ANALYGIS.COM Sun Jun 17 19:03:23 2007 From: ierickson at ANALYGIS.COM (Ian Erickson) Date: Sun, 17 Jun 2007 20:03:23 -0600 Subject: libmap.dll and mapObj->extent Message-ID: Perhaps I'm missing something here.... I've got a C++ project that (in keeping with the shp2img.c source), loads a map, and creates an image, saves the image, and then closes frees the stuff up. I'm trying to return the extents of the map as loaded but no matter what I do, I'm only getting 0's for maxx, maxy, minx, and miny. The application does indees return the desired map, and it does function correctly but all I want is access to the extent properties once set in the mapObj. Perhaps someone can tell me what I'm doing wrong: //---------------------------------------------------------------------------------- void makeMap( string mapfile = "", double xmax = 180.0, double ymax = 90.0, double xmin = -180.0, double ymin = -90.0, int width = 400, int height = 400 ) { mapObj *map = NULL; imageObj *image = NULL; if (mapfile.empty()) { cout << "The mapfile parameter is empty." << endl; return; } if (!fileExists( mapfile )) { cout << "The specifed file does not exist." << endl; return; } cout << "Loading the map file (" << mapfile.c_str() << ")..." <name << endl; msMapSetSize( map, width, height ); cout << "Width, Height: " << map->width << ", " << map->height << endl; msMapSetExtent( map, xmin, ymin, xmax, ymax ); cout << "Extents: (" << map->extent.minx << ", " << map->extent.miny << ") (" << map->extent.maxx << ", " << map->extent.maxy << ")" << endl; cout << "Writing the map image..." << endl; image = msDrawMap( map ); msSaveImage( map, image, "C:\\Projects\\Company\\Apogee_Mapping\\PDFMaps\\test.png" ); cout << "Cleaning up..." << endl; msFreeImage( image ); msFreeMap( map ); msCleanup(); cout << "Done." << endl; } -- Ian From stin.wang at GMAIL.COM Sun Jun 17 19:44:43 2007 From: stin.wang at GMAIL.COM (stin wang) Date: Mon, 18 Jun 2007 10:44:43 +0800 Subject: Can mapserver do a interpolation such as kriging Message-ID: Hello, everyone i have several metrological data ( temperture, rain, landsurface temperature and so on) , in different observation point. so i make a shape file, with different attributes represented different observation. My question is can mapserver interpolate the point data in to a raster data, just like what arcgis do in spatial analyst ? I search in this maillist, someone say it should be combined mapserver with grass, can anyother method do the same thing?? because i' m not familar with grass. -- ************************************** wangtie TianJin Meteorological Bureau TEL FAX ************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From monica.petri at GMAIL.COM Mon Jun 18 00:44:57 2007 From: monica.petri at GMAIL.COM (Monica Petri) Date: Mon, 18 Jun 2007 02:44:57 -0500 Subject: using attributes in the VAT table of an ESRI GRID instead of Value Message-ID: Hello listers, How do I show an attribute within an ESRI grid. I do not want to use the Value [pixel]. I tried using the same coding as for the Value in the *.map file, but it doesn't work. Any ideas why or any workaround? Thanks in advance Monica From nelson.little at TENIX.COM Mon Jun 18 00:25:55 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Mon, 18 Jun 2007 17:25:55 +1000 Subject: can layers be linked? Message-ID: Hi, I would like to link two layers of different geometry types. 1 layer contains points, the other layer contains lines. The points and lines are shown together to display a composite object on a map. If the user no longer wants to see that composite object on the map then I would like to turn off both of the layers. I am sure I can do it programmatically, but I would like to know if they can be linked in the MapFile? Thanks, Nelson Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at GEOSIGNAL.FR Mon Jun 18 00:54:05 2007 From: guillaume.sueur at GEOSIGNAL.FR (Guillaume Sueur) Date: Mon, 18 Jun 2007 09:54:05 +0200 Subject: can layers be linked? In-Reply-To: <200706180725.l5I7PtAD001440@sprint2.tenix.com> Message-ID: Hi Nelson, You can use the GROUP attribute for each layer, setting it to the same value (ex : GROUP "COMPOSITE") they'll not be linked, but you'll be able to retrieve thse layers using the group name : $aLayers = $pMap->getLayersIndexByGroup("COMPOSITE") and then loop on the $aLayers array to switch then on/off Regards, Guillaume SUEUR LITTLE Nelson a ?crit : > Hi, > > > > I would like to link two layers of different geometry types. 1 layer > contains points, the other layer contains lines. The points and lines > are shown together to display a composite object on a map. If the user > no longer wants to see that composite object on the map then I would > like to turn off both of the layers. I am sure I can do it > programmatically, but I would like to know if they can be linked in the > MapFile? > > > > Thanks, > > Nelson > -- Guillaume SUEUR From pgiannini at BYTEWISE.IT Mon Jun 18 06:18:06 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Mon, 18 Jun 2007 15:18:06 +0200 Subject: can layers be linked? In-Reply-To: <46763A1D.7030200@geosignal.fr> Message-ID: Another way can be the REQUIRES "condition" in the layer section of the .map file (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer). REQUIRES allow the layer's display only if the condition is true. The map will be so: LAYER NAME point .... END LAYER NAME line STATUS default # <---------- status default: the layer is ever visible REQUIRES "[point]" # <------ but only if layer "point" is visible too .... END ciao .............................pg Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E > Hi Nelson, > > You can use the GROUP attribute for each layer, setting it to the same > value (ex : GROUP "COMPOSITE") > they'll not be linked, but you'll be able to retrieve thse layers using > the group name : > $aLayers = $pMap->getLayersIndexByGroup("COMPOSITE") > and then loop on the $aLayers array to switch then on/off > > Regards, > > Guillaume SUEUR > > > LITTLE Nelson a ?crit : >> Hi, >> >> >> >> I would like to link two layers of different geometry types. 1 layer >> contains points, the other layer contains lines. The points and lines >> are shown together to display a composite object on a map. If the user >> no longer wants to see that composite object on the map then I would >> like to turn off both of the layers. I am sure I can do it >> programmatically, but I would like to know if they can be linked in the >> MapFile? >> >> >> >> Thanks, >> >> Nelson >> > > -- > > Guillaume SUEUR > From cjesch at CCT.LSU.EDU Mon Jun 18 06:49:20 2007 From: cjesch at CCT.LSU.EDU (Carola Jesch) Date: Mon, 18 Jun 2007 08:49:20 -0500 Subject: include a mapfile into another mapfile? Message-ID: Hi, I have an application with about 25 different map files. Each map file covers a different topic. But I also have some topographic features like border lines or water bodies that the user can overlay if wanted. The topographic features are static ones, they have been stored in a PostgreSQL database. For now, the layers of these topographic features are in each of the map files, so I have 25 map files which all contain the same topographic layers. Would it be possible to create only one map file with all the topography and include this map file into the other map files? I am running a cgi application. Thanks for ideas, Carola -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivano.picco at AQUPI.TK Mon Jun 18 06:55:03 2007 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Mon, 18 Jun 2007 08:55:03 -0500 Subject: oracle slowly than arcsde Message-ID: Hi list!, I made some tests with mapserver using the same layer from Oracle Spatial (10G) and SDE (9.2) (ArcSDE on top of the same Oracle DBMS), it is a very simple layer: 1265 features, type polygon. My tests are simple concurrent WMS connections with same envelope to mapserver on an apache webserver with mod_fcgid to avoid problem related to Oracle memory leak and as a workaround for the cgi processes during ArcSDE connections. I report my results on the picture attached. As you can see Oracle connections are very slowly than ArcSDE. I saw the same behaviour with cgi on apache and lighttpd. What is the problem? Can i do anything to optimize it? The web server has 2 Intel Xeon 3.40GHz and 2GB of RAM and Linux CentOS 4.5. The database server is a Sun-Fire-V210 with Solaris 9, it has 2 sparcv9 processor operates at 1002 MHz and 2GB of RAM. Any help would be appreciate, thanks, Ivano This is an extract from my mapfile: LAYER NAME "CTR-SDE" STATUS ON DEBUG ON DATA "ctr_sde.comuni,SHAPE" TYPE POLYGON CONNECTIONTYPE SDE CONNECTION "bubble,port:5153,esri_sde,ctr_sde,ctr_sde" PROCESSING "CLOSE_CONNECTION=DEFER" TEMPLATE "template.html" METADATA "WMS_SRS" "EPSG:32632" "WMS_NAME" "Comuni_SDE" "WMS_TITLE" "Comuni_SDE" "WMS_ABSTRACT" "Comuni SDE" END CLASS STYLE OUTLINECOLOR 0 0 0 ANTIALIAS TRUE END END END LAYER NAME "CTR-SDO" STATUS ON DEBUG ON DATA "GEOMETRY FROM comuni USING UNIQUE OBJECTID SRID 82344 FILTER VERSION 10G" TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION 'ctr_sdo/ctr_sdo at bubble:1522/OLYMPIA' PROCESSING "CLOSE_CONNECTION=DEFER" TEMPLATE "template.html" METADATA "WMS_SRS" "EPSG:32632" "WMS_NAME" "Comuni_SDO" "WMS_TITLE" "Comuni_SDO" "WMS_ABSTRACT" "Comuni SDO" END CLASS STYLE OUTLINECOLOR 0 0 0 ANTIALIAS TRUE END END END -------------- next part -------------- A non-text attachment was scrubbed... Name: Test_results.jpg Type: image/jpeg Size: 19668 bytes Desc: not available URL: From mschulz at WEBGIS.DE Mon Jun 18 07:14:02 2007 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Mon, 18 Jun 2007 16:14:02 +0200 Subject: include a mapfile into another mapfile? In-Reply-To: <000f01c7b1af$78d02ad0$6a708070$@lsu.edu> Message-ID: Hi, in recent mapserver version you can use the INCLUDE statement to do exactly what you want. http://mapserver.gis.umn.edu/docs/reference/mapfile/Include Michael 2007/6/18, Carola Jesch : > > > > > Hi, > > I have an application with about 25 different map files. Each map file > covers a different topic. But I also have some topographic features like > border lines or water bodies that the user can overlay if wanted. The > topographic features are static ones, they have been stored in a PostgreSQL > database. For now, the layers of these topographic features are in each of > the map files, so I have 25 map files which all contain the same topographic > layers. Would it be possible to create only one map file with all the > topography and include this map file into the other map files? I am running > a cgi application. > > Thanks for ideas, Carola -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From rwburgholzer at DEQ.VIRGINIA.GOV Mon Jun 18 07:55:23 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Mon, 18 Jun 2007 10:55:23 -0400 Subject: Draft Questionaire: MapServer Mapping Frameworks (comment please) Message-ID: OK, here is the information that I am considering including in the page on "MapServer Mapping Frameworks". Please feel free to suggest changes/clarifications, additions or subtractions. MapServer Mapping Framework Questionnaire: Project Name: URL: Capabilities (Yes/No/or explain): - Edit or create mapfiles? - Edit shapes (postGIS or other please specify)? - Support login/authentication? - Client-only or Client/Server? Requirements, languages/libraries: - Please indicate if Required or Optional - Ex: PHP, Python, C#, DHTML, Java, JavaScript, PROJ4, other General Description: Examples (URLs): Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ From ivano.picco at AQUPI.TK Mon Jun 18 08:07:36 2007 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Mon, 18 Jun 2007 10:07:36 -0500 Subject: oracle slowly than arcsde Message-ID: uh oh!, maybe "oracle slower than arcsde" is better. Sorry for the typo and for my bad english... Ivano From raffaele.morelli at GMAIL.COM Mon Jun 18 08:30:25 2007 From: raffaele.morelli at GMAIL.COM (Raffaele Morelli) Date: Mon, 18 Jun 2007 10:30:25 -0500 Subject: MyGIS Layer & shp2mysql Message-ID: Hi you all, I recently re-compiled mapserver (on debian lenny) with MyGis support and used shp2mysql to store shapes in a MySQL db. Adding a MyGis layer, a simple europe rivers shape, everything works fine but the visualization under pmapper. In fact rivers are renderend extremely "pruned" on the map... really just few segments are drawn. The rivers shape is displayed correctly using the "default" shp+dbf connection. Any experience/suggestion on this? Thanks Raffaele From Bob.Basques at CI.STPAUL.MN.US Mon Jun 18 08:30:16 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 18 Jun 2007 10:30:16 -0500 Subject: Draft Questionaire: MapServer Mapping Frameworks (comment please) Message-ID: Robert, I don't have a specific name for this capability, but the ability to handle separate layers individually, via separate MAPFILEs, as overlays. I have a Client Framework listing that I will add to you inventory, that allows the use of multiple MAPFILEs on the Server (same Domain [So far]). I also don't see a way of indicating what data formats that the client(s) can work with? WMS, WFS, Georeferenced Raster files, etc. Home page URL (as you already have listed) and possibly a DEMO URL, to jump right into a DEMO interface. One last thing, might be a method of separating out a short general description from a longer more detailed description via an extra page link, where the detailed description could be a separate page, might be better to do this as a link to applications home page though instead. The biggest reason I suggest this is so any MapServer specific information could be included here as well. While our Framework has been developed against MapServer, it could be used with just about any Mapping service for example. Some things I may be interested in, and probably not something for general acceptability would be (your call) : Navigation tool listing (wheel mouse actions, etc) Saving of "state" in the Client App. Services integration (Jump to Item capabilities, Startup of interface using a specific location) Theming capabilities, can the interface be themed (by design I guess) Usage License type. You did ask. :c) bobb >>> "Burgholzer,Robert" wrote: OK, here is the information that I am considering including in the page on "MapServer Mapping Frameworks". Please feel free to suggest changes/clarifications, additions or subtractions. MapServer Mapping Framework Questionnaire: Project Name: URL:=20 Capabilities (Yes/No/or explain): - Edit or create mapfiles? - Edit shapes (postGIS or other please specify)? - Support login/authentication? - Client-only or Client/Server? Requirements, languages/libraries: - Please indicate if Required or Optional - Ex: PHP, Python, C#, DHTML, Java, JavaScript, PROJ4, other General Description: Examples (URLs): Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From hartpence_gis at CO.JASPER.IA.US Mon Jun 18 10:46:04 2007 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Mon, 18 Jun 2007 12:46:04 -0500 Subject: NQuery Message-ID: I received only one reply to my post which suggested I send my layer definition and template file. Below are excerpts from my map file. Template files are attached. Here are teh parameters for teh first layer I query (Sections): LAYER NAME 'Sections' TEMPLATE 'C:\MS4W\Apache\htdocs\Engineer\Sections_query.html' DATA 'C:\Parcels_shape\sectr_poly' STATUS on TYPE Polygon MINSCALE 6000 TRANSPARENCY 0 TOLERANCE 7 TOLERANCEUNITS pixels #METADATA # WMS_SRS 'epsg:HTML' # WMS_TITLE 'WMSTitel' # WMS_FEATURE_INFO_MIME_TYPE 'text/html' #END #METADATA #PROJECTION # 'init=epsg:HTML' #END LABELITEM 'section_' CLASSITEM 'AREANUM' CLASS NAME 'Section Lines' EXPRESSION /./ STYLE # COLOR 255 255 255 OUTLINECOLOR 0 0 0 WIDTH 1.2 END #STYLE LABEL TYPE TRUETYPE SIZE 11 FONT Arial COLOR 127 0 0 POSITION CC # OUTLINECOLOR 0 0 0 ANGLE 0 OFFSET 0 0 END #LABEL END #CLASS END #LAYER Here are the parameters for the second query layer (Landcorners) LAYER NAME 'LandCorners' HEADER 'C:\ms4w\Apache\htdocs\Engineer\LCHead.html' TEMPLATE 'C:\MS4W\Apache\htdocs\Engineer\LandCor.html' DATA 'C:\Parcels_shape\CornersDB' STATUS on TYPE Point MAXSCALE 125000 TRANSPARENCY 100 TOLERANCE 7 TOLERANCEUNITS pixels #METADATA # WMS_SRS 'epsg:HTML' # WMS_TITLE 'WMSTitel' # WMS_FEATURE_INFO_MIME_TYPE 'text/html' #END #METADATA #PROJECTION # 'init=epsg:HTML' #END CLASSITEM 'SECTION_' CLASS NAME 'landcorner' EXPRESSION /./ STYLE SYMBOL 'esri_1135' SIZE 10 COLOR 0 0 0 OUTLINECOLOR -1 -1 -1 END #STYLE END #CLASS END #LAYER -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From dimitris at E-GEODATA.GR Mon Jun 18 10:55:15 2007 From: dimitris at E-GEODATA.GR (=?UTF-8?B?zqDOsc+BzrHPg8+Mz4IgzpTOt868zq7PhM+BzrfPgg==?=) Date: Mon, 18 Jun 2007 20:55:15 +0300 Subject: Thematic classification of joined table field Message-ID: Hi everyone!! I'm a new ms4w mapserver user. I need to develop a web map application, serving one shapefile joined with an MS SQL Server flat table. The polygon shapefile has a 1-1 relationship with the DB table. I need to have the polygon shapefile thematic classified based on a joined table field. So far I managed to install/create mapfile/create new map service/perform the join/deploy new map sites using FIST. So I have a working map service but I'm stuck in displaying the polygons classified based on the joined attributes. Is thematic classification based on joined field values supported? thanks in advance Dimitris Parasos Rhodes-Hellas From dadark at DADARK.DE Mon Jun 18 11:12:46 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Mon, 18 Jun 2007 20:12:46 +0200 Subject: Partials and lables In-Reply-To: <4674F559.1000807@dadark.de> Message-ID: As nobody answered yet let me _show_ you what I mean to make it a little bit clearer. So here's the map: http://pascal.hacksrus.net/dev/map.html Pascal Ehlert wrote: > Good morning! > > Just a short question, when rendering partials, how can I make mapserver > render a lable (country name in my case) > only once? > > MINDISTANCE doesn't seem to work anymore and now my map is full of > lables ;-) > > > Thank you > > Pascal > From woodbri at SWOODBRIDGE.COM Mon Jun 18 12:14:43 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 18 Jun 2007 15:14:43 -0400 Subject: Thematic classification of joined table field In-Reply-To: <4676C703.7060806@e-geodata.gr> Message-ID: ??????? ???????? wrote: > Hi everyone!! > > I'm a new ms4w mapserver user. I need to develop a web map application, > serving > one shapefile > joined with an MS SQL Server flat table. > The polygon shapefile has a 1-1 relationship with the DB table. > I need to have the polygon shapefile thematic classified based on a > joined table field. So far I managed to install/create mapfile/create new > map service/perform the join/deploy new map sites using FIST. So > I have a working map service but I'm stuck in displaying the polygons > classified > based on the joined attributes. > > Is thematic classification based on joined field values supported? > > thanks in advance > Dimitris Parasos > Rhodes-Hellas Dimitris, Mapserver has NO native join support when rendering a shapefile. The ideal way to do this is via PostGIS. Another option might be using JOINs in OGR, OGR is part of the GDAL library and tools. -Steve W From oscarfbh at GMAIL.COM Mon Jun 18 13:15:54 2007 From: oscarfbh at GMAIL.COM (Oscar ^_^) Date: Mon, 18 Jun 2007 15:15:54 -0500 Subject: Mapserver for PDAs Message-ID: Hello everybody, navigating for mapserver main page I found a link to a project with PDA, here is the link http://mapserver.gis.umn.edu/gallery/ParkingLotFinder Somebody knows how to do something similar o what is necessary to do Mapserver for PDA use?? Hope somebody can tell me cause i need something similiar for it. Oscar. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Mon Jun 18 14:44:39 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 18 Jun 2007 16:44:39 -0500 Subject: Partials and lables In-Reply-To: <4676CB1E.9010306@dadark.de> Message-ID: Can't get to the page you reference. Might help to post the label definition you are using. MINDISTANCE is the right parameter. Steve >>> On 6/18/2007 at 1:12 PM, in message <4676CB1E.9010306 at dadark.de>, Pascal Ehlert wrote: > As nobody answered yet let me _show_ you what I mean to make it a little > bit clearer. > So here's the map: http://pascal.hacksrus.net/dev/map.html > > > Pascal Ehlert wrote: >> Good morning! >> >> Just a short question, when rendering partials, how can I make mapserver >> render a lable (country name in my case) >> only once? >> >> MINDISTANCE doesn't seem to work anymore and now my map is full of >> lables ;-) >> >> >> Thank you >> >> Pascal >> From Steve.Lime at DNR.STATE.MN.US Mon Jun 18 14:47:32 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 18 Jun 2007 16:47:32 -0500 Subject: Can mapserver do a interpolation such as kriging In-Reply-To: Message-ID: That's beyond Mapserver's capabilities, sorry. Grass is definitely your best bet. There are a number of folks on the list with MapServer/Grass integration experience so... Steve >>> On 6/17/2007 at 9:44 PM, in message , stin wang wrote: > Hello, everyone > > i have several metrological data ( temperture, rain, landsurface temperature > and so on) , in different observation point. so i make a shape file, with > different attributes represented different observation. My question is can > mapserver interpolate the point data in to a raster data, just like what > arcgis do in spatial analyst ? I search in this maillist, someone say it > should be combined mapserver with grass, can anyother method do the same > thing?? because i' m not familar with grass. > > > From IANT at NAPIER.GOVT.NZ Mon Jun 18 17:19:43 2007 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Tue, 19 Jun 2007 12:19:43 +1200 Subject: Mapserver for PDAs Message-ID: Are you after the Web Based or Java based version ? I have built a PHP based solution for PDAs. (http://maps.napier.govt.nz/pocket.php) Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Oscar ^_^ Sent: Tuesday, 19 June 2007 8:16 a.m. To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver for PDAs Hello everybody, navigating for mapserver main page I found a link to a project with PDA, here is the link http://mapserver.gis.umn.edu/gallery/ParkingLotFinder Somebody knows how to do something similar o what is necessary to do Mapserver for PDA use?? Hope somebody can tell me cause i need something similiar for it. Oscar. ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________ ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dadark at DADARK.DE Mon Jun 18 21:51:11 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Tue, 19 Jun 2007 06:51:11 +0200 Subject: Partials and lables In-Reply-To: <4676B676.5157.008F.0@dnr.state.mn.us> Message-ID: Steve Lime wrote: > Can't get to the page you reference. Might help to post the label definition you > are using. MINDISTANCE is the right parameter. > Hi Steve! The page works for me and MINDISTANCE doesn't work with tiling :( I guess I have to use tilecache because Mapserver doesn't support meta-tiling. Thank you anyway Pascal From nelson.little at TENIX.COM Mon Jun 18 23:41:01 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Tue, 19 Jun 2007 16:41:01 +1000 Subject: can layers be linked? Message-ID: Hi Guillaume, Thanks for your reply. Unfortunately I am using Java MapScript and there is no "getLayersIndexByGroup" or similar functionality. Thanks, Nelson -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Guillaume Sueur Sent: Monday, 18 June 2007 5:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] can layers be linked? Hi Nelson, You can use the GROUP attribute for each layer, setting it to the same value (ex : GROUP "COMPOSITE") they'll not be linked, but you'll be able to retrieve thse layers using the group name : $aLayers = $pMap->getLayersIndexByGroup("COMPOSITE") and then loop on the $aLayers array to switch then on/off Regards, Guillaume SUEUR LITTLE Nelson a ?crit : > Hi, > > > > I would like to link two layers of different geometry types. 1 layer > contains points, the other layer contains lines. The points and lines > are shown together to display a composite object on a map. If the user > no longer wants to see that composite object on the map then I would > like to turn off both of the layers. I am sure I can do it > programmatically, but I would like to know if they can be linked in the > MapFile? > > > > Thanks, > > Nelson > -- Guillaume SUEUR Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From helenagarcia at GRUPOTECOPY.ES Tue Jun 19 04:47:46 2007 From: helenagarcia at GRUPOTECOPY.ES (H Garcia) Date: Tue, 19 Jun 2007 06:47:46 -0500 Subject: Problems in testing Java Mapscript Message-ID: Hello, Gaia If you are using Tomcat with Eclipse, try appending to its library path (in the configuration of Tomcat in Eclipse, not in Apache Tomcat Properties ) the paths where you have mapscript.dll and the others linked to it (i.e. C:\ms4w\Apache\cgi-bin and C:\ms4w\Apache\cgi-bin\mapscript\java) From helenagarcia at GRUPOTECOPY.ES Tue Jun 19 04:48:56 2007 From: helenagarcia at GRUPOTECOPY.ES (=?iso-8859-1?Q?Helena_Garc=EDa_Hernando?=) Date: Tue, 19 Jun 2007 13:48:56 +0200 Subject: Problems in testing Java Mapscript In-Reply-To: Message-ID: Hello, Gaia If you are using Tomcat with Eclipse, try appending to its library path (in the configuration of Tomcat in Eclipse, not in Apache Tomcat Properties ) the paths where you have mapscript.dll and the others linked to it (i.e. C:\ms4w\Apache\cgi-bin and C:\ms4w\Apache\cgi-bin\mapscript\java) -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Gaia Trecarichi Enviado el: jueves, 07 de junio de 2007 17:04 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] Problems in testing Java Mapscript Hello, I have some problem in testing Java Mapscript. I answer some questions posted by Umberto and Rodrigo (thanks for the reply): - Probably there is a problem with sde91.dll because , using Dependency Walker to scan mapscript.dll, it is found that sde91.dll is missing. I cannot understand why mapscript.dll need sde91.dll since I'm not using arcSDE. In case I need it, how can I download it? - Yes, I have rebooted Windows after changing SYSTEM path variable - Yes, I'm sure the path is set correctly in the SYSTEM variable If someone knows the correct list of the dll needed, please let me know. Below is reported in plain text the original email I sent some days ago: ---------------------------------------------------------------------------- --------------------------------------------- Hello, I'm new in mapserver stuff and I'm trying to use Java Mapscript without any success. My environment is: * Windows XP * MS4W version 4.10.1. * JDK 1.6.0_01 * Eclipse I wanted to test some Java Mapscript functionality with a simple Java program whose code is the following: import edu.umn.gis.mapscript.*; public class ProvaMapscript { public static void main(String[] args) { . String mappath= new String("C:\\ms4w\\apps\\e-rescue\\" ); mapObj map = new mapObj(mappath.concat(" emergency2.map")); imageObj image = map.draw(); String image_url = "C:\\ms4w\\tmp\\ms_tmp\\emergency.png"; image.save(image_url, map); } } I get the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.6.0_01\bin\mapscript.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method ) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23 ) at edu.umn.gis.mapscript.mapObj.( mapObj.java:276) at ProvaMapscript.main( ProvaMapscript.java:51) I don't know exactly which libraries mapscript.dll requires but as far as I could see from some forum the following list of dll's is needed: bgd.dll gdal14.dll geotiff.dll iconv.dll kernel32.dll libcurl.dll libecwj2.dll libmap.dll libmysql.dll libpq.dll libproj.dll libtiff.dll mapscript.dll msvcr71.dll msvcrt.dll ntdll.dll pdflib.dll proj.dll xerces-c_2_7.dll zlib1.dll dwmapi.dll I have them in the directory "C:\ms4w\Apache\cgi-bin" and this directory is in the system environment variable PATH. I don't know exactly which is the problem. I'm thinking to 2 things: 1- As far as I can understand there is a library, namely sde91.dll, that is needed by libmap.dll. I can't find this library in my system. Is there anybody who knows where I can download this library? (but I think I don't need it since I'm not using ESRI's ArcSDE) 2- Is it possible that my Java Mapscript files are not compatible with my JDK version 1.6.0? I say it because I read in the README_INSTALL.txt of MS4W the following: MapScript Java MapScript: compiled against Java 1.5.07 If anybody could help me in this problem I would be infinitely grateful!! Thank you in advance, Gaia ---------------------------------------------------------------------------- -------------------------------------- From feigle at 126.COM Tue Jun 19 06:05:54 2007 From: feigle at 126.COM (=?GB2312?Q?feigle_Dou?=) Date: Tue, 19 Jun 2007 08:05:54 -0500 Subject: php/mapscript Unable to load dynamic library php_mapscript.so Message-ID: Hi??All , I am trying to install php as a php/mpscript of mapserver . but when I test it , there is a warning : ??Warning: dl() [function.dl]: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-debug-non-zts- 20060613/php_mapscript.so' - /usr/local/php5/lib/php/extensions/no-debug- non-zts-20060613/php_mapscript.so: cannot open shared object file: No such file or directory in /var/www/html/mytest.php on line 3?? The following is what I have done: 1 My OS is Fedora Core 5 i386 , It has php preinstalled so I uninstall it Rpm ?Cq php ?Cnodeps 2 Install all the libraries in /usr/local/, such as gdal proj ?? 3 Install php in /usr/local/php5 . The version of php is php-5.2.2 ./configure ?Cenable-share --with-regex=system --with-gd=/usr/local --enable-force-cgi-redirect --enable-dbase --with-config-file-path=/usr/local/php5 --prefix=/usr/local/php5 Make Meke test Make install Cp sapi/cgi/php /var/www/cgi-bin/php Cp php.ini-dist /usr/local/lib/php.ini Vi php.ini # Add two line : extension_dit=??/usr/local/php5/lib/php/extensions?? extension = ??php_mapscript.so?? 4 configure and install mapserver ./configure ?Cwith-org=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-httpd=/usr/sbin/httpd --with-proj=/usr/local --with-freetype=/usr/ --with-gd=/usr/local --with-php=/usr/local/php5 Make Cp ./mapscript/php3/php_mapscrpt.so /usr/local/php5/lib/php/extensions/ /sbin/ldconfig ?Cv /sbin/ldconfig /usr/local ?Cv Then I run ./mapserv It works well Cp mapserv /var/www/cgi-bin/ # Vi httpd.conf # Add lines as followed AddTpye application/x-httpd-php .phtml Action php-sctipt /cgi-bin/php AddHandler php-script .php But when vi a file mytest.php in DormentRoot It will show the warning message . Can you give me some idea? Any help will be appreciated, Thanks a million!! Best wishes, feigle From feigle at 126.COM Tue Jun 19 06:24:57 2007 From: feigle at 126.COM (=?GB2312?Q?feigle_Dou?=) Date: Tue, 19 Jun 2007 08:24:57 -0500 Subject: php/mapscript dl() [function.dl]: Unable to load dynamic libraryphp_mapscript.so' Message-ID: Hi??All , I am trying to install php as a php/mpscript of mapserver . but when I test it , there is a warning : ??Warning: dl() [function.dl]: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-debug-non-zts- 20060613/php_mapscript.so' - /usr/local/php5/lib/php/extensions/no-debug- non-zts-20060613/php_mapscript.so: cannot open shared object file: No such file or directory in /var/www/html/mytest.php on line 3?? The following is what I have done: 1 My OS is Fedora Core 5 i386 , It has php preinstalled so I uninstall it Rpm ?Cq php ?Cnodeps 2 Install all the libraries in /usr/local/, such as gdal proj ?? 3 Install php in /usr/local/php5 . The version of php is php-5.2.2 ./configure ?Cenable-share --with-regex=system --with-gd=/usr/local --enable-force-cgi-redirect --enable-dbase --with-config-file-path=/usr/local/php5 --prefix=/usr/local/php5 Make Meke test Make install Cp sapi/cgi/php /var/www/cgi-bin/php Cp php.ini-dist /usr/local/lib/php.ini Vi php.ini # Add two line : extension_dit=??/usr/local/php5/lib/php/extensions?? extension = ??php_mapscript.so?? 4 configure and install mapserver ./configure ?Cwith-org=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-httpd=/usr/sbin/httpd --with-proj=/usr/local --with-freetype=/usr/ --with-gd=/usr/local --with-php=/usr/local/php5 Make Cp ./mapscript/php3/php_mapscrpt.so /usr/local/php5/lib/php/extensions/ /sbin/ldconfig ?Cv /sbin/ldconfig /usr/local ?Cv Then I run ./mapserv It works well Cp mapserv /var/www/cgi-bin/ # Vi httpd.conf # Add lines as followed AddTpye application/x-httpd-php .phtml Action php-sctipt /cgi-bin/php AddHandler php-script .php But when vi a file mytest.php in DormentRoot It will show the warning message . All the directories and files can be used have been set to 777. Can you give me some idea? Any help will be appreciated, Thanks a million!! Best wishes, feigle From dave.weaver at ZEN.CO.UK Tue Jun 19 06:49:33 2007 From: dave.weaver at ZEN.CO.UK (Dave Weaver) Date: Tue, 19 Jun 2007 08:49:33 -0500 Subject: mis-joined tiles. Message-ID: I'm experiencing a problem with horizontal lines on some of my maps, like this: http://img363.imageshack.us/my.php?image=whitelinewm2.jpg The lines only appear at some zoom levels, and at some tile sizes. For example this request: http://localhost:8080/cgi-bin/mapserv?map=map/Media_Base_Brown.map&layers=lod5&styles=&service=WMS&width=256&format=image/jpeg&request=GetMap&height=256&srs=EPSG:54004&version=1.1.1&bbox=-20037508.34,0.0,0.0,20037508.34 gets the tile with the line on, as in the above image. However if I simply change the height= parameter to 255 or 257 then the line goes away. After some investigation I can see that this gap is between 2 rows of my source tiles, so I'm wondering if it's related to the remapping from EPSG:4326 (the source tiles) to EPSG:54004 (the rendered map). The source geotiffs have what looks like correct geographical info in them. Here's the info from two tiles from the above image, one immediately above and one immediately below the white line: Driver: GTiff/GeoTIFF Size is 2048, 2048 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235629972, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (-135.000000000000000,45.000000000000000) Pixel Size = (0.021972656250000,-0.021972656250000) Metadata: AREA_OR_POINT=Area Corner Coordinates: Upper Left (-135.0000000, 45.0000000) (135d 0'0.00"W, 45d 0'0.00"N) Lower Left (-135.0000000, 0.0000000) (135d 0'0.00"W, 0d 0'0.01"N) Upper Right ( -90.0000000, 45.0000000) ( 90d 0'0.00"W, 45d 0'0.00"N) Lower Right ( -90.0000000, 0.0000000) ( 90d 0'0.00"W, 0d 0'0.01"N) Center (-112.5000000, 22.5000000) (112d30'0.00"W, 22d30'0.00"N) Band 1 Block=2048x4 Type=Byte, ColorInterp=Red Band 2 Block=2048x4 Type=Byte, ColorInterp=Green Band 3 Block=2048x4 Type=Byte, ColorInterp=Blue Band 4 Block=2048x4 Type=Byte, ColorInterp=Alpha Driver: GTiff/GeoTIFF Size is 2048, 2048 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235629972, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (-135.000000000000000,0.000000000000000) Pixel Size = (0.021972656250000,-0.021972656250000) Metadata: AREA_OR_POINT=Area Corner Coordinates: Upper Left (-135.0000000, 0.0000000) (135d 0'0.00"W, 0d 0'0.01"N) Lower Left (-135.0000000, -45.0000000) (135d 0'0.00"W, 45d 0'0.00"S) Upper Right ( -90.0000000, 0.0000000) ( 90d 0'0.00"W, 0d 0'0.01"N) Lower Right ( -90.0000000, -45.0000000) ( 90d 0'0.00"W, 45d 0'0.00"S) Center (-112.5000000, -22.5000000) (112d30'0.00"W, 22d30'0.00"S) Band 1 Block=2048x4 Type=Byte, ColorInterp=Red Band 2 Block=2048x4 Type=Byte, ColorInterp=Green Band 3 Block=2048x4 Type=Byte, ColorInterp=Blue Band 4 Block=2048x4 Type=Byte, ColorInterp=Alpha Can anyone give me a clue as to how I can fix this? Many thanks, Dave. From jlacroix at MAPGEARS.COM Tue Jun 19 06:50:28 2007 From: jlacroix at MAPGEARS.COM (Julien-Samuel Lacroix) Date: Tue, 19 Jun 2007 09:50:28 -0400 Subject: Draft Questionaire: MapServer Mapping Frameworks (comment please) In-Reply-To: <6C097DA58429B743A67070F98BE73A37025DD622@deqex01.deq.local> Message-ID: Hi, There's a page on the OSGeo wiki that tried to do that. http://wiki.osgeo.org/index.php/Choosing_a_Web_Mapping_Platform One the the important distinction between projects is if the user interface templates are managed or unmanaged. IMHO, the level of control over the UI is often an essential information when choosing a framework. The other part of the page in the wiki is about the maps. If they are managed from the client side or the server side. Julien Burgholzer,Robert wrote: > OK, here is the information that I am considering including in the page > on "MapServer Mapping Frameworks". Please feel free to suggest > changes/clarifications, additions or subtractions. > > MapServer Mapping Framework Questionnaire: > > Project Name: > URL: > Capabilities (Yes/No/or explain): > - Edit or create mapfiles? > - Edit shapes (postGIS or other please specify)? > - Support login/authentication? > - Client-only or Client/Server? > > Requirements, languages/libraries: > - Please indicate if Required or Optional > - Ex: PHP, Python, C#, DHTML, Java, JavaScript, PROJ4, other > > General Description: > > Examples (URLs): > > > Robert W. Burgholzer > Surface Water Modeler > Office of Water Supply and Planning > Virginia Department of Environmental Quality > rwburgholzer at deq.virginia.gov > 804-698-4405 > Open Source Modeling Tools: > http://sourceforge.net/projects/npsource/ > -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From gregor at HOSTGIS.COM Tue Jun 19 07:13:46 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 19 Jun 2007 08:13:46 -0600 Subject: php/mapscript dl() [function.dl]: Unable to load dynamic libraryphp_mapscript.so' In-Reply-To: Message-ID: feigle Dou wrote: > ?Warning: dl() [function.dl]: Unable to load dynamic > library '/usr/local/php5/lib/php/extensions/no-debug-non-zts- > 20060613/php_mapscript.so' - /usr/local/php5/lib/php/extensions/no-debug- > non-zts-20060613/php_mapscript.so: cannot open shared object file: No such > file or directory in /var/www/html/mytest.php on line 3? The message says what's wrong: It can't find php_mapscript.so Figure out where php_mapscript.so is, using Windows' find utility, or the "find" utility under Unix, e.g. find / -name php_mapscript.so Then make sure that the directory it's in matches the setting you have for extension_dir in your php.ini file. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From guillaume.sueur at GEOSIGNAL.FR Tue Jun 19 07:19:14 2007 From: guillaume.sueur at GEOSIGNAL.FR (Guillaume Sueur) Date: Tue, 19 Jun 2007 16:19:14 +0200 Subject: php/mapscript Unable to load dynamic library php_mapscript.so In-Reply-To: Message-ID: it seems that php is looking in /usr/local/php5/lib/php/extensions/no-debug-non-zts- 20060613/ to find mapscript instead of /usr/local/php5/lib/php/extensions check your extension_dir and maybe the php.ini really used by the system (visible in the phpinfo() table) Guillaume feigle Dou a ??crit : > Hi??All , > I am trying to install php as a php/mpscript of mapserver . but when I test > it , there is a warning : > ??Warning: dl() [function.dl]: Unable to load dynamic > library '/usr/local/php5/lib/php/extensions/no-debug-non-zts- > 20060613/php_mapscript.so' - /usr/local/php5/lib/php/extensions/no-debug- > non-zts-20060613/php_mapscript.so: cannot open shared object file: No such > file or directory in /var/www/html/mytest.php on line 3?? > > > The following is what I have done: > 1 My OS is Fedora Core 5 i386 , It has php preinstalled so I uninstall it > Rpm ?Cq php ?Cnodeps > 2 Install all the libraries in /usr/local/, such as gdal proj ?? > 3 Install php in /usr/local/php5 . The version of php is php-5.2.2 > ./configure ?Cenable-share > --with-regex=system > --with-gd=/usr/local > --enable-force-cgi-redirect > --enable-dbase > --with-config-file-path=/usr/local/php5 > --prefix=/usr/local/php5 > Make > Meke test > Make install > Cp sapi/cgi/php /var/www/cgi-bin/php > Cp php.ini-dist /usr/local/lib/php.ini > > Vi php.ini > # Add two line : > extension_dit=??/usr/local/php5/lib/php/extensions?? > extension = ??php_mapscript.so?? > 4 configure and install mapserver > ./configure ?Cwith-org=/usr/local/bin/gdal-config > --with-gdal=/usr/local/bin/gdal-config > --with-httpd=/usr/sbin/httpd > --with-proj=/usr/local > --with-freetype=/usr/ > --with-gd=/usr/local > --with-php=/usr/local/php5 > Make > > Cp ./mapscript/php3/php_mapscrpt.so /usr/local/php5/lib/php/extensions/ > /sbin/ldconfig ?Cv > /sbin/ldconfig /usr/local ?Cv > Then I run ./mapserv > It works well > Cp mapserv /var/www/cgi-bin/ > # Vi httpd.conf > # Add lines as followed > AddTpye application/x-httpd-php .phtml > Action php-sctipt /cgi-bin/php > AddHandler php-script .php > > But when vi a file mytest.php in DormentRoot > dl(??php_mapscript.so??); > phpinfor(); > ?> > It will show the warning message . > Can you give me some idea? > > Any help will be appreciated, > > Thanks a million!! > > Best wishes, > feigle > > -- Guillaume SUEUR From la_barrenadora at HOTMAIL.COM Tue Jun 19 07:30:12 2007 From: la_barrenadora at HOTMAIL.COM (Victor Herrero Cazurro) Date: Tue, 19 Jun 2007 16:30:12 +0200 Subject: help with mapscript java In-Reply-To: Message-ID: Hello! I have this class implemented by servlet, " . . . mapObj map = new mapObj("C:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map"); map.setMetaData( "wfs_onlineresource", "http://localhost/cgi-bin/mapserv" ); OWSRequest request = new OWSRequest(); request.setParameter( "SERVICE", service ); request.setParameter( "VERSION", version ); request.setParameter( "REQUEST", req ); request.setParameter( "TYPENAME", typename ); mapscript.msIO_installStdoutToBuffer(); map.OWSDispatch( request ); String xml = mapscript.msIO_getStdoutBufferString(); . . . " Once it works but when I invoke to servlet from the browser often followed, it appears east error " #An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c3429c1, pid=1320, tid=1800 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing) # Problematic frame: # C [MSVCR71.dll+0x29c1] # # An error report file with more information is saved as hs_err_pid1320.log [thread 3004 also had an error] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The error I think that this about " map.OWSDispatch( request );" Somebody can help me ? Thanks in advence _________________________________________________________________ Acepta el reto MSN Premium: Correos m?s divertidos con fotos y textos incre?bles en MSN Premium. Desc?rgalo y pru?balo 2 meses gratis. http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos From reh2 at PRODIGY.NET Tue Jun 19 08:10:34 2007 From: reh2 at PRODIGY.NET (Robert Hollingsworth) Date: Tue, 19 Jun 2007 10:10:34 -0500 Subject: MyGIS Layer & shp2mysql Message-ID: no specific comments on your exact situation, but just to say I was warned away from CONNECTIONTYPE mygis because its robustness is suspect. I had very stable results accessing MySQL thru the OGR support. I was using the GEOMETRY type in MySQL plus spatial indexes; when using MBRCONTAINS and similar functions in query, performance seems quite competitive with shapefile with shptree indexes. Robert H. >Hi you all, > >I recently re-compiled mapserver (on debian lenny) with MyGis support and >used shp2mysql to store shapes in a MySQL db. > >Adding a MyGis layer, a simple europe rivers shape, everything works fine >but the visualization under pmapper. >In fact rivers are renderend extremely "pruned" on the map... really just >few segments are drawn. > >The rivers shape is displayed correctly using the "default" shp+dbf connection. > >Any experience/suggestion on this? > >Thanks >Raffaele From woodbri at SWOODBRIDGE.COM Tue Jun 19 08:28:52 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 19 Jun 2007 11:28:52 -0400 Subject: Partials and lables In-Reply-To: <467760BF.30903@dadark.de> Message-ID: Pascal Ehlert wrote: > Steve Lime wrote: >> Can't get to the page you reference. Might help to post the label >> definition you >> are using. MINDISTANCE is the right parameter. >> > Hi Steve! > > The page works for me and MINDISTANCE doesn't work with tiling :( > I guess I have to use tilecache because Mapserver doesn't support > meta-tiling. We use the ka-Map tile.php which is php/mapscript and does support metatiling using mapserver. But hey, I suppose tilecache is just fine also. -Steve W From Steve.Lime at DNR.STATE.MN.US Tue Jun 19 11:27:02 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 19 Jun 2007 13:27:02 -0500 Subject: Partials and lables In-Reply-To: <4677F634.2010507@swoodbridge.com> Message-ID: The key is that MapServer is not a tiling engine (yet) rather a tile engine so all it's concerned with is a single tile or metatile. It's the tiling engine's responsibility to make use of metatiles if it chooses to. Steve >>> On 6/19/2007 at 10:28 AM, in message <4677F634.2010507 at swoodbridge.com>, Stephen Woodbridge wrote: > Pascal Ehlert wrote: >> Steve Lime wrote: >>> Can't get to the page you reference. Might help to post the label >>> definition you >>> are using. MINDISTANCE is the right parameter. >>> >> Hi Steve! >> >> The page works for me and MINDISTANCE doesn't work with tiling :( >> I guess I have to use tilecache because Mapserver doesn't support >> meta-tiling. > > We use the ka-Map tile.php which is php/mapscript and does support > metatiling using mapserver. But hey, I suppose tilecache is just fine also. > > -Steve W From dadark at DADARK.DE Tue Jun 19 11:42:35 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Tue, 19 Jun 2007 20:42:35 +0200 Subject: Partials and lables In-Reply-To: <4677F634.2010507@swoodbridge.com> Message-ID: Thank you for your help, TileCache works now and has the advantage, that it does caching, too! Especially when using tiling speed is very important imho, so I can only suggest using it. Pascal Stephen Woodbridge wrote: > We use the ka-Map tile.php which is php/mapscript and does support > metatiling using mapserver. But hey, I suppose tilecache is just fine > also. > > -Steve W > From ezenaide at GMAIL.COM Tue Jun 19 11:48:08 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Tue, 19 Jun 2007 15:48:08 -0300 Subject: ROSA pan Message-ID: hi, how can i use a nice pan with ROSA applet? like, instead of that 'recenter' tool, could i be able to pan? -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Tue Jun 19 12:07:10 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 19 Jun 2007 15:07:10 -0400 Subject: ROSA pan In-Reply-To: <7af310f80706191148w162ffe2ak2cae8e1e3831071f@mail.gmail.com> Message-ID: You might have better luck using something like Chameleon which has a pan widget out-of-the-box. jeff Eduardo Zenaide wrote: > hi, > > how can i use a nice pan with ROSA applet? > like, instead of that 'recenter' tool, could i be able to pan? > > -- > Eduardo Zenaide -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From ezenaide at GMAIL.COM Tue Jun 19 13:15:15 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Tue, 19 Jun 2007 17:15:15 -0300 Subject: ROSA pan In-Reply-To: <4678295E.1040607@dmsolutions.ca> Message-ID: can i use it without using chameleon adding it to other application? 2007/6/19, Jeff McKenna : > > You might have better luck using something like Chameleon which has a > pan widget out-of-the-box. > > jeff > > > > > Eduardo Zenaide wrote: > > hi, > > > > how can i use a nice pan with ROSA applet? > > like, instead of that 'recenter' tool, could i be able to pan? > > > > -- > > Eduardo Zenaide > > > -- > Jeff McKenna > DM Solutions Group Inc. > http://www.dmsolutions.ca > -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezenaide at GMAIL.COM Tue Jun 19 13:42:26 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Tue, 19 Jun 2007 17:42:26 -0300 Subject: ROSA pan In-Reply-To: <7af310f80706191315q4f41037cu690e08fd20471624@mail.gmail.com> Message-ID: other question: i'm trying to use chameleon just to understand the widgets. i've already put the files and create the conf file. happens that all pages give this error: *Warning*: fopen(c:/tmp/ms_tmp/9b39e07d9c2fa23a768d6ef41c196df3_mlt.inc.php) [function.fopen ]: failed to open stream: No such file or directory in * C:\ms4w\apps\chameleon\htdocs\common\mlt\mlt.php* on line *743 **C:\ms4w\apps\chameleon\htdocs\common\mlt\mlt.php* is correct. what could it be? thanks in advance 2007/6/19, Eduardo Zenaide : > > can i use it without using chameleon adding it to other application? > > 2007/6/19, Jeff McKenna : > > > > You might have better luck using something like Chameleon which has a > > pan widget out-of-the-box. > > > > jeff > > > > > > > > > > Eduardo Zenaide wrote: > > > hi, > > > > > > how can i use a nice pan with ROSA applet? > > > like, instead of that 'recenter' tool, could i be able to pan? > > > > > > -- > > > Eduardo Zenaide > > > > > > -- > > Jeff McKenna > > DM Solutions Group Inc. > > http://www.dmsolutions.ca > > > > > > -- > Eduardo Zenaide -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From IANT at NAPIER.GOVT.NZ Tue Jun 19 14:07:25 2007 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Wed, 20 Jun 2007 09:07:25 +1200 Subject: Mapserver for PDAs In-Reply-To: <8434d0ad0706190628o33b74c24xedca63a8d7093e08@mail.gmail.com> Message-ID: Hi Oscar, My solution works as a standard PHP/MapScript implementation. You need to keep control over the size of the image returned, and the amount of data returned. We use the search function at the front to help the user navigate and chose the map file they want to use. I have recently built a measure tool for our main site, which I am considering implementing here also, but again it is just PHP. Another key is to keep the interface clean and simple. With the layer control, I don't show the Map, this makes it easier to fit on the screen. I have also used a smaller screen size than what fits on my iPaq, this is to fit better with some of the other PDAs (i.e. Palm Treo). The key to having it work is to return the basic core HTML. Hope this helps. Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ________________________________ From: Oscar ^_^ [mailto:oscarfbh at gmail.com] Sent: Wednesday, 20 June 2007 1:28 a.m. To: Ian Tidy Subject: Re: [UMN_MAPSERVER-USERS] Mapserver for PDAs Hello Ian. I'm Web Based with PHP. I saw your page and is what i need. Can You give me tips how can I do something similar? I'll apreciate a lot. 2007/6/18, Ian Tidy : Are you after the Web Based or Java based version ? I have built a PHP based solution for PDAs. ( http://maps.napier.govt.nz/pocket.php ) Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU ] On Behalf Of Oscar ^_^ Sent: Tuesday, 19 June 2007 8:16 a.m. To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver for PDAs Hello everybody, navigating for mapserver main page I found a link to a project with PDA, here is the link http://mapserver.gis.umn.edu/gallery/ParkingLotFinder Somebody knows how to do something similar o what is necessary to do Mapserver for PDA use?? Hope somebody can tell me cause i need something similiar for it. Oscar. ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________ ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________ ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -- Oscar ^_ ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________ ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelson.little at TENIX.COM Tue Jun 19 17:17:28 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Wed, 20 Jun 2007 10:17:28 +1000 Subject: ROSA pan Message-ID: Is the Rosa Applet no longer supported? There is no longer a link to it from the maptools.org website. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff McKenna Sent: Wednesday, 20 June 2007 4:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ROSA pan You might have better luck using something like Chameleon which has a pan widget out-of-the-box. jeff Eduardo Zenaide wrote: > hi, > > how can i use a nice pan with ROSA applet? > like, instead of that 'recenter' tool, could i be able to pan? > > -- > Eduardo Zenaide -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From la_barrenadora at HOTMAIL.COM Wed Jun 20 00:32:27 2007 From: la_barrenadora at HOTMAIL.COM (Victor Herrero Cazurro) Date: Wed, 20 Jun 2007 09:32:27 +0200 Subject: mapscript with java In-Reply-To: <200706200017.l5K0HSQQ019554@sprint1.tenix.com> Message-ID: Hello! I?m a java Developer and i use mapscript library to make a consult ?WFS getfeature? to ?MAPSERVER? in Apache, i prove the java example in this url "http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#java-example" I change the parameter ? mapObj map = new mapObj(mapName); map.setMetaData( "ows_onlineresource", "http://dummy.org/" ); req.setParameter( "SERVICE", "WMS" ); req.setParameter( "VERSION", "1.1.0" ); req.setParameter( "REQUEST", "GetCapabilities" ); ? For ? mapObj map = new mapObj("c:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map"); map.setMetaData( "ows_onlineresource", "http://localhost/cgi-bin/mapserv" ); OWSRequest req = new OWSRequest(); req.setParameter( "SERVICE", "WFS" ); req.setParameter( "VERSION", "1.0.0" ); req.setParameter( "REQUEST", "getfeature" ); req.setParameter( "TYPENAME", "layer_name" ); ? And obtain this error ? # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x036b68c3, pid=7444, tid=7552 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing) # Problematic frame: # C [gdal14.dll+0x168c3] # # An error report file with more information is saved as hs_err_pid7444.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # ? somebody can help me ???? Thanks in advance! _________________________________________________________________ Hor?scopo, tarot, numerolog?a... Escucha lo que te dicen los astros. http://astrocentro.msn.es/ From piero.cavalieri at GMAIL.COM Wed Jun 20 00:43:31 2007 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Wed, 20 Jun 2007 09:43:31 +0200 Subject: ROSA pan In-Reply-To: <7af310f80706191148w162ffe2ak2cae8e1e3831071f@mail.gmail.com> Message-ID: If u want to use a java applet, there's also jBox (which has both "recenter" and "pan"). If u want the equivalent, using javascript, there's dBox, but in the "old" version it has a recenter tool (not pan). In the the new one, I don't know. Piero 2007/6/19, Eduardo Zenaide : > > hi, > > how can i use a nice pan with ROSA applet? > like, instead of that 'recenter' tool, could i be able to pan? > > -- > Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.koska at SAZP.SK Wed Jun 20 01:35:17 2007 From: martin.koska at SAZP.SK (Martin Koska) Date: Wed, 20 Jun 2007 03:35:17 -0500 Subject: Problem with compilation sde support Message-ID: We have problem with compilation of sde 9.1 support for mapserver 4.10 in Debian Linux operation system: Sde 9.1 is installed in /opt/sde/sdeexe91. We have following files in lib directory: developer sdeexe91 # ls lib/ dbtune_util.spb libicuuc.so.22.0 locator_util.sps sdo_util.spb dbtune_util.sps libloceng.so lock_util.spb sdo_util.sps layers_util.spb liblocssa.so lock_util.sps sref_util.spb layers_util.sps libmtchloc.so logfile_util.spb sref_util.sps libedgemt.so libmtchmt.so logfile_util.sps svr_config_util.spb libgsrvrora9i91.so libpe91.so metadata_util.spb svr_config_util.sps libicudata.so libsde91.so metadata_util.sps version_user_ddl.spb libicudata.so.22 libsdeora9isrvr91.so pinfo_util.spb version_user_ddl.sps libicudata.so.22.0 libsg91.so pinfo_util.sps version_util.no_state_seq.spb libicui18n.so libtiff.so rastercolumns_util.spb version_util.spb libicui18n.so.22 libxerces-c.so rastercolumns_util.sps version_util.sps libicui18n.so.22.0 libxerces-c.so.21 registry_util.spb xml_util.spb libicuuc.so libxerces-c.so.21.0 registry_util.sps xml_util.sps libicuuc.so.22 locator_util.spb sde_util.sps Configuration command is: ./configure --prefix=/usr --enable-debug --without-tiff --without-pdf --with-gd=/usr --with-freetype=/usr --with-zlib=/usr --with-png=/usr --with-xpm=/usr --with-jpeg=/usr --with-gdal --with-ogr --with-proj --with-eppl --with-postgis --with-wcs --with-wms --with-wmsclient --with-wfs --with-wfsclient --with-threads --with-geos --with-sde-version=91 --with-sde=/opt/sde/sdeexe91 Error: configure: checking whether we should include ESRI SDE support... configure: error: "Could not find sdetype.h or libsde91.a/libsde91.so in /opt/sde/sdeexe91." File libsde91.so is located in /opt/sde/sdeexe91/lib Can anybody help to solve the problem? What's wrong with this? Thank you. Martin Koska martin.koska at sazp.sk From tim.bowden at WESTNET.COM.AU Wed Jun 20 01:57:48 2007 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Wed, 20 Jun 2007 16:57:48 +0800 Subject: Problem with compilation sde support In-Reply-To: Message-ID: On Wed, 2007-06-20 at 03:35 -0500, Martin Koska wrote: > We have problem with compilation of sde 9.1 support for mapserver 4.10 in > Debian Linux operation system: > > Sde 9.1 is installed in /opt/sde/sdeexe91. > Configuration command is: > > ./configure --prefix=/usr --enable-debug --without-tiff --without-pdf > --with-gd=/usr --with-freetype=/usr --with-zlib=/usr --with-png=/usr > --with-xpm=/usr --with-jpeg=/usr --with-gdal --with-ogr --with-proj > --with-eppl --with-postgis --with-wcs --with-wms --with-wmsclient --with-wfs > --with-wfsclient --with-threads --with-geos --with-sde-version=91 > --with-sde=/opt/sde/sdeexe91 > > Error: > > configure: checking whether we should include ESRI SDE support... > configure: error: "Could not find sdetype.h or libsde91.a/libsde91.so in > /opt/sde/sdeexe91." > > File libsde91.so is located in /opt/sde/sdeexe91/lib > > Can anybody help to solve the problem? > What's wrong with this? > Try putting /opt/sde/sdeexe91/lib in /etc/ld.so.conf and running ldconfig. > Thank you. > > Martin Koska > martin.koska at sazp.sk HTH, Tim Bowden From martin.koska at SAZP.SK Wed Jun 20 02:07:59 2007 From: martin.koska at SAZP.SK (Martin Koska) Date: Wed, 20 Jun 2007 04:07:59 -0500 Subject: Problem with compilation sde support Message-ID: Dear Tim, We tryed this but don't work. Any suggestion? Martin Koska martin.koska at sazp.sk From umberto.nicoletti at GMAIL.COM Wed Jun 20 02:11:28 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 20 Jun 2007 11:11:28 +0200 Subject: mapscript with java In-Reply-To: Message-ID: Please read this first: http://mapserver.gis.umn.edu/docs/howto/javamapscript especially last section. We can't help you without that info. Umberto On 6/20/07, Victor Herrero Cazurro wrote: > Hello! > > > > I'm a java Developer and i use mapscript library to make a consult "WFS > getfeature" to "MAPSERVER" in Apache, i prove the java example in this url > > "http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#java-example" > > > > I change the parameter > > > > " > > mapObj map = new mapObj(mapName); > > map.setMetaData( "ows_onlineresource", "http://dummy.org/" ); > > req.setParameter( "SERVICE", "WMS" ); > req.setParameter( "VERSION", "1.1.0" ); > req.setParameter( "REQUEST", "GetCapabilities" ); > " > > For > > " > mapObj map = new > mapObj("c:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map"); > > map.setMetaData( "ows_onlineresource", "http://localhost/cgi-bin/mapserv" ); > > > > OWSRequest req = new OWSRequest(); > > > > req.setParameter( "SERVICE", "WFS" ); > > req.setParameter( "VERSION", "1.0.0" ); > > req.setParameter( "REQUEST", "getfeature" ); > > req.setParameter( "TYPENAME", "layer_name" ); > > " > > And obtain this error > > > > " > > # > > # An unexpected error has been detected by HotSpot Virtual Machine: > > # > > # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x036b68c3, pid=7444, > tid=7552 > > # > > # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing) > > # Problematic frame: > > # C [gdal14.dll+0x168c3] > > # > > # An error report file with more information is saved as hs_err_pid7444.log > > # > > # If you would like to submit a bug report, please visit: > > # http://java.sun.com/webapps/bugreport/crash.jsp > > # > > " > > somebody can help me ???? > > Thanks in advance! > > _________________________________________________________________ > Hor?scopo, tarot, numerolog?a... Escucha lo que te dicen los astros. > http://astrocentro.msn.es/ > From igev at MAIL.RU Wed Jun 20 10:11:25 2007 From: igev at MAIL.RU (=?KOI8-R?B?6cfP0tgg5dfEz8vJzc/X?=) Date: Thu, 21 Jun 2007 00:11:25 +0700 Subject: Firefox & IE doesn't work with GeoTIFF Message-ID: Hi, List! In a example (Mapserver Itasca Application) I've changed output format to IMAGETYPE GTIFF. The result - I can see it (geotiff image file) only in Safari (MacOSX 10.4.9). Not working: Mozilla 1.7.4 (from WinXP machine) IE6 (from WinXP) Firefox 2.0.0.4 (from MacOSX 10.4.9) I can't find any TIFF plugin to Firefox/Mozilla. Is this normal? My server: iMac + MacOSX 10.4.9 Mapserver 4.10.2 PHP 5.1.2 Best regards, Igor Evdokimov. From igev at MAIL.RU Wed Jun 20 10:21:33 2007 From: igev at MAIL.RU (Igor Evdokimov) Date: Thu, 21 Jun 2007 00:21:33 +0700 Subject: Firefox & IE doesn't work with GeoTIFF In-Reply-To: <4678FE4F.9040901@laposte.net> Message-ID: 20.06.2007, ? 17:15, Guillaume Sueur ?????(?): > yes, geoTiff and tiff are not web formats. > use PNG instead But PNG does not contain georeferencing information? From almudenarueda at INICIA.ES Wed Jun 20 03:02:38 2007 From: almudenarueda at INICIA.ES (Almudena Rueda Solache) Date: Wed, 20 Jun 2007 12:02:38 +0200 Subject: query by point Message-ID: Hello all I'm using mapserver 4.10 under windows xp and i'm programming with java. = I'm trying to query layer by point using: layer.queryByPoint(map, poit, SINGLE, -1) as i read in documentation = that -1 means mapserver will take the buffer size specified on the .map = file. But if i do so it NEVER returns any value eventhought i have a = value of 5 in the .map file. Has somebody knows hot to fix it? Thanks in advance Almudena La Primitiva. El juego de toda la vida ahora m?s f?cil que nunca. Echa tu apuesta por Internet con Tiscali https://www.ventura24.es/tiscali/primitiva.do?idpartner=tiscali_firma From Jukka.Rahkonen at MMMTIKE.FI Wed Jun 20 03:45:17 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 20 Jun 2007 13:45:17 +0300 Subject: Firefox & IE doesn't work with GeoTIFF Message-ID: Hi, Your browser wouln'tget any advantage from the georeferencing information of GeoTIFF. If you want to show the image on your browser you can use other formats. If you, however, need just GeoTIFFs then you can store it on disk first. I believe it is also possible to register some external program to be used in opening tiff files from the web. At least my browser seems to start Quick time player. -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: ????? ????????? L?hetetty: ke 20.6.2007 20:11 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Firefox & IE doesn't work with GeoTIFF Hi, List! In a example (Mapserver Itasca Application) I've changed output format to IMAGETYPE GTIFF. The result - I can see it (geotiff image file) only in Safari (MacOSX 10.4.9). Not working: Mozilla 1.7.4 (from WinXP machine) IE6 (from WinXP) Firefox 2.0.0.4 (from MacOSX 10.4.9) I can't find any TIFF plugin to Firefox/Mozilla. Is this normal? My server: iMac + MacOSX 10.4.9 Mapserver 4.10.2 PHP 5.1.2 Best regards, Igor Evdokimov. From ivano.picco at GMAIL.COM Wed Jun 20 04:41:10 2007 From: ivano.picco at GMAIL.COM (Ivano Picco) Date: Wed, 20 Jun 2007 06:41:10 -0500 Subject: Problem with compilation sde support Message-ID: You have to install SDE's SDK. you can find it in the SDE DVD. bye Ivano On Wed, 20 Jun 2007 03:35:17 -0500, Martin Koska wrote: >We have problem with compilation of sde 9.1 support for mapserver 4.10 in >Debian Linux operation system: > >Sde 9.1 is installed in /opt/sde/sdeexe91. > >We have following files in lib directory: > >developer sdeexe91 # ls lib/ >dbtune_util.spb libicuuc.so.22.0 locator_util.sps sdo_util.spb >dbtune_util.sps libloceng.so lock_util.spb sdo_util.sps >layers_util.spb liblocssa.so lock_util.sps sref_util.spb >layers_util.sps libmtchloc.so logfile_util.spb sref_util.sps >libedgemt.so libmtchmt.so logfile_util.sps >svr_config_util.spb >libgsrvrora9i91.so libpe91.so metadata_util.spb >svr_config_util.sps >libicudata.so libsde91.so metadata_util.sps >version_user_ddl.spb >libicudata.so.22 libsdeora9isrvr91.so pinfo_util.spb >version_user_ddl.sps >libicudata.so.22.0 libsg91.so pinfo_util.sps >version_util.no_state_seq.spb >libicui18n.so libtiff.so rastercolumns_util.spb >version_util.spb >libicui18n.so.22 libxerces-c.so rastercolumns_util.sps >version_util.sps >libicui18n.so.22.0 libxerces-c.so.21 registry_util.spb xml_util.spb >libicuuc.so libxerces-c.so.21.0 registry_util.sps xml_util.sps >libicuuc.so.22 locator_util.spb sde_util.sps > >Configuration command is: > >./configure --prefix=/usr --enable-debug --without-tiff --without-pdf >--with-gd=/usr --with-freetype=/usr --with-zlib=/usr --with-png=/usr >--with-xpm=/usr --with-jpeg=/usr --with-gdal --with-ogr --with-proj >--with-eppl --with-postgis --with-wcs --with-wms --with-wmsclient --with-wfs >--with-wfsclient --with-threads --with-geos --with-sde-version=91 >--with-sde=/opt/sde/sdeexe91 > >Error: > >configure: checking whether we should include ESRI SDE support... >configure: error: "Could not find sdetype.h or libsde91.a/libsde91.so in >/opt/sde/sdeexe91." > >File libsde91.so is located in /opt/sde/sdeexe91/lib > >Can anybody help to solve the problem? >What's wrong with this? > >Thank you. > >Martin Koska >martin.koska at sazp.sk From igev at MAIL.RU Wed Jun 20 12:00:46 2007 From: igev at MAIL.RU (Igor Evdokimov) Date: Thu, 21 Jun 2007 02:00:46 +0700 Subject: Firefox & IE doesn't work with GeoTIFF In-Reply-To: <467900A4.3030709@laposte.net> Message-ID: 20.06.2007, ? 17:25, Guillaume Sueur ?????(?): > do you need georeferencing information on the client side image ? > what for ? if you just need the image coordinates, you can retrieve > them from the server. I want to get map coordinates with map image and I thought it would be the best way to get GeoTIFF with embedded geoinformation rather than JPEG etc. Thanks! Best regards, Igor. From helenagarcia at GRUPOTECOPY.ES Wed Jun 20 05:11:00 2007 From: helenagarcia at GRUPOTECOPY.ES (=?iso-8859-1?Q?Helena_Garc=EDa_Hernando?=) Date: Wed, 20 Jun 2007 14:11:00 +0200 Subject: mapscript with java In-Reply-To: Message-ID: Hi! I'm having the same problem, but the problematic frame to JVM is in ntdll.dll, that's the reason why I don't think it's a gdal problem. The trace I got is this: # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x784ab333, pid=2240, tid=2852 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing) # Problematic frame: # C [ntdll.dll+0x4b333] # --------------- T H R E A D --------------- Current thread (0x03106840): JavaThread "http-8080-Processor25" daemon [_thread_in_native, id=2852] siginfo: ExceptionCode=0xc0000005, writing address 0x00000000 Registers: EAX=0x00000000, EBX=0x00000294, ECX=0x00000000, EDX=0x05711758 ESP=0x0423d374, EBP=0x0423d540, ESI=0x05710000, EDI=0x057102b8 EIP=0x784ab333, EFLAGS=0x00010283 Top of Stack: (sp=0x0423d374) 0x0423d374: 03106840 00000018 27243918 00000000 0x0423d384: 0423d540 03106840 6d7c71e5 0423d540 0x0423d394: 03106840 6d87652c 03106840 060f0000 0x0423d3a4: 2b2a2d90 27247588 0423f5b8 00000000 0x0423d3b4: 00000000 00000000 0423f5ec 0423d540 0x0423d3c4: 03106840 03228ba0 03106dd0 03106dfc 0x0423d3d4: 031071c4 0423fc8c 0423d548 00000000 0x0423d3e4: 00000000 6d81f462 0000000a 00000001 Instructions: (pc=0x784ab333) 0x784ab323: 08 89 85 d4 fe ff ff 8b 49 0c 89 8d d0 fe ff ff 0x784ab333: 89 01 89 48 04 3b c1 75 31 8b 45 d0 66 8b 00 66 Stack: [0x04200000,0x04240000), sp=0x0423d374, free space=244k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [ntdll.dll+0x4b333] C [MSVCR71.dll+0x16b3] C [MSVCR71.dll+0x16db] C [mapscript.dll+0x3cf57] j edu.umn.gis.mapscript.mapscriptJNI.new_OWSRequest()J+0 j edu.umn.gis.mapscript.OWSRequest.(Z)V+13 j com.geoportal.model.WFS.getfeature(Ljava/lang/String;Ljava/lang/String;Ljava /lang/String;Ljava/lang/String;)Lorg/w3c/dom/Document;+26 j com.geoportal.action.MapServerAction.execute(Lorg/apache/struts/action/Actio nMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServle tRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/struts/action/ ActionForward;+63 j org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax/servle t/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apach e/struts/action/Action;Lorg/apache/struts/action/ActionForm;Lorg/apache/stru ts/action/ActionMapping;)Lorg/apache/struts/action/ActionForward;+7 j org.apache.struts.action.RequestProcessor.process(Ljavax/servlet/http/HttpSe rvletRequest;Ljavax/servlet/http/HttpServletResponse;)V+213 j org.apache.struts.action.ActionServlet.process(Ljavax/servlet/http/HttpServl etRequest;Ljavax/servlet/http/HttpServletResponse;)V+19 j org.apache.struts.action.ActionServlet.doGet(Ljavax/servlet/http/HttpServlet Request;Ljavax/servlet/http/HttpServletResponse;)V+3 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletReques t;Ljavax/servlet/http/HttpServletResponse;)V+35 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/ servlet/ServletResponse;)V+30 j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/serv let/ServletRequest;Ljavax/servlet/ServletResponse;)V+362 j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/Serv letRequest;Ljavax/servlet/ServletResponse;)V+101 j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/co nnector/Request;Lorg/apache/catalina/connector/Response;)V+670 j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/co nnector/Request;Lorg/apache/catalina/connector/Response;)V+285 j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/conne ctor/Request;Lorg/apache/catalina/connector/Response;)V+64 j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/conn ector/Request;Lorg/apache/catalina/connector/Response;)V+6 j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/con nector/Request;Lorg/apache/catalina/connector/Response;)V+42 j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Reque st;Lorg/apache/coyote/Response;)V+141 j org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/ io/OutputStream;)V+566 j org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC onnection(Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+11 3 j org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lo rg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 j org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Obje ct;)V+102 j org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub V [jvm.dll+0x871a8] V [jvm.dll+0xdf462] V [jvm.dll+0x87079] V [jvm.dll+0x86dd6] V [jvm.dll+0xa1a14] V [jvm.dll+0x110aa6] V [jvm.dll+0x110a74] C [MSVCRT.dll+0x85bc] C [KERNEL32.dll+0xb3bc] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j edu.umn.gis.mapscript.mapscriptJNI.new_OWSRequest()J+0 j edu.umn.gis.mapscript.OWSRequest.(Z)V+13 j com.geoportal.model.WFS.getfeature(Ljava/lang/String;Ljava/lang/String;Ljava /lang/String;Ljava/lang/String;)Lorg/w3c/dom/Document;+26 j com.geoportal.action.MapServerAction.execute(Lorg/apache/struts/action/Actio nMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServle tRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/struts/action/ ActionForward;+63 j org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax/servle t/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apach e/struts/action/Action;Lorg/apache/struts/action/ActionForm;Lorg/apache/stru ts/action/ActionMapping;)Lorg/apache/struts/action/ActionForward;+7 j org.apache.struts.action.RequestProcessor.process(Ljavax/servlet/http/HttpSe rvletRequest;Ljavax/servlet/http/HttpServletResponse;)V+213 j org.apache.struts.action.ActionServlet.process(Ljavax/servlet/http/HttpServl etRequest;Ljavax/servlet/http/HttpServletResponse;)V+19 j org.apache.struts.action.ActionServlet.doGet(Ljavax/servlet/http/HttpServlet Request;Ljavax/servlet/http/HttpServletResponse;)V+3 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletReques t;Ljavax/servlet/http/HttpServletResponse;)V+35 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/ servlet/ServletResponse;)V+30 j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/serv let/ServletRequest;Ljavax/servlet/ServletResponse;)V+362 j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/Serv letRequest;Ljavax/servlet/ServletResponse;)V+101 j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/co nnector/Request;Lorg/apache/catalina/connector/Response;)V+670 j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/co nnector/Request;Lorg/apache/catalina/connector/Response;)V+285 j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/conne ctor/Request;Lorg/apache/catalina/connector/Response;)V+64 j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/conn ector/Request;Lorg/apache/catalina/connector/Response;)V+6 j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/con nector/Request;Lorg/apache/catalina/connector/Response;)V+42 j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Reque st;Lorg/apache/coyote/Response;)V+141 j org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/ io/OutputStream;)V+566 j org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC onnection(Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+11 3 j org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lo rg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 j org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Obje ct;)V+102 j org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x032b46a0 JavaThread "TP-Monitor" daemon [_thread_blocked, id=536] 0x02eefcb0 JavaThread "TP-Processor4" daemon [_thread_in_native, id=2124] 0x032b4490 JavaThread "TP-Processor3" daemon [_thread_blocked, id=2908] 0x0329ae18 JavaThread "TP-Processor2" daemon [_thread_blocked, id=2928] 0x032b4970 JavaThread "TP-Processor1" daemon [_thread_blocked, id=3108] 0x032bd158 JavaThread "http-8080-Monitor" [_thread_blocked, id=2824] =>0x03106840 JavaThread "http-8080-Processor25" daemon [_thread_in_native, id=2852] 0x03105ea8 JavaThread "http-8080-Processor24" daemon [_thread_in_native, id=2680] 0x03105510 JavaThread "http-8080-Processor23" daemon [_thread_blocked, id=3060] 0x0322ef18 JavaThread "http-8080-Processor22" daemon [_thread_blocked, id=2748] 0x0322e4f8 JavaThread "http-8080-Processor21" daemon [_thread_blocked, id=2936] 0x0322dad8 JavaThread "http-8080-Processor20" daemon [_thread_blocked, id=2232] 0x0323f550 JavaThread "http-8080-Processor19" daemon [_thread_blocked, id=708] 0x0323eb30 JavaThread "http-8080-Processor18" daemon [_thread_blocked, id=2700] 0x0323e110 JavaThread "http-8080-Processor17" daemon [_thread_blocked, id=3128] 0x03221cc0 JavaThread "http-8080-Processor16" daemon [_thread_blocked, id=3132] 0x032212a0 JavaThread "http-8080-Processor15" daemon [_thread_blocked, id=3152] 0x03220880 JavaThread "http-8080-Processor14" daemon [_thread_blocked, id=2580] 0x03235570 JavaThread "http-8080-Processor13" daemon [_thread_blocked, id=2976] 0x03234bd8 JavaThread "http-8080-Processor12" daemon [_thread_blocked, id=3112] 0x032322b0 JavaThread "http-8080-Processor11" daemon [_thread_blocked, id=3124] 0x03231c98 JavaThread "http-8080-Processor10" daemon [_thread_blocked, id=3144] 0x03231278 JavaThread "http-8080-Processor9" daemon [_thread_blocked, id=516] 0x032d1e58 JavaThread "http-8080-Processor8" daemon [_thread_blocked, id=352] 0x03279928 JavaThread "http-8080-Processor7" daemon [_thread_blocked, id=3044] 0x03279398 JavaThread "http-8080-Processor6" daemon [_thread_blocked, id=2920] 0x0322b798 JavaThread "http-8080-Processor5" daemon [_thread_blocked, id=2944] 0x032238c8 JavaThread "http-8080-Processor4" daemon [_thread_blocked, id=2924] 0x03228690 JavaThread "http-8080-Processor3" daemon [_thread_blocked, id=2396] 0x0326cdc8 JavaThread "http-8080-Processor2" daemon [_thread_blocked, id=3120] 0x033097e8 JavaThread "http-8080-Processor1" daemon [_thread_blocked, id=260] 0x032aa6d8 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=2932] 0x032cf328 JavaThread "MySQL Statement Cancellation Timer" daemon [_thread_blocked, id=2772] 0x031f1da0 JavaThread "Timer-0" daemon [_thread_blocked, id=3076] 0x009c2ec0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3024] 0x00737848 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2332] 0x009c0e30 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=640] 0x009bbe40 JavaThread "Finalizer" daemon [_thread_blocked, id=3040] 0x009ba990 JavaThread "Reference Handler" daemon [_thread_blocked, id=2760] 0x00737c68 JavaThread "main" [_thread_in_native, id=2856] Other Threads: 0x009b8018 VMThread [id=2804] 0x009c4458 WatcherThread [id=2784] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 576K, used 416K [0x22aa0000, 0x22b40000, 0x22f80000) eden space 512K, 70% used [0x22aa0000, 0x22af9b38, 0x22b20000) from space 64K, 90% used [0x22b20000, 0x22b2e740, 0x22b30000) to space 64K, 0% used [0x22b30000, 0x22b30000, 0x22b40000) tenured generation total 5316K, used 4669K [0x22f80000, 0x234b1000, 0x26aa0000) the space 5316K, 87% used [0x22f80000, 0x2340f518, 0x2340f600, 0x234b1000) compacting perm gen total 8192K, used 7858K [0x26aa0000, 0x272a0000, 0x2aaa0000) the space 8192K, 95% used [0x26aa0000, 0x2724c9a0, 0x2724ca00, 0x272a0000) ro space 8192K, 67% used [0x2aaa0000, 0x2afff150, 0x2afff200, 0x2b2a0000) rw space 12288K, 47% used [0x2b2a0000, 0x2b849750, 0x2b849800, 0x2bea0000) Dynamic libraries: 0x00400000 - 0x0040d000 C:\Java\j2se5.0-11\bin\javaw.exe 0x78460000 - 0x784e2000 C:\WINNT\system32\ntdll.dll 0x78ff0000 - 0x79055000 C:\WINNT\system32\ADVAPI32.dll 0x79450000 - 0x7950e000 C:\WINNT\system32\KERNEL32.dll 0x77120000 - 0x7718f000 C:\WINNT\system32\RPCRT4.dll 0x77e10000 - 0x77e6f000 C:\WINNT\system32\USER32.dll 0x77f40000 - 0x77f7c000 C:\WINNT\system32\GDI32.dll 0x78000000 - 0x78045000 C:\WINNT\system32\MSVCRT.dll 0x6d740000 - 0x6d8dd000 C:\Java\j2se5.0-11\jre\bin\client\jvm.dll 0x77550000 - 0x77581000 C:\WINNT\system32\WINMM.dll 0x6d300000 - 0x6d308000 C:\Java\j2se5.0-11\jre\bin\hpi.dll 0x68f70000 - 0x68f7b000 C:\WINNT\system32\PSAPI.DLL 0x6d710000 - 0x6d71c000 C:\Java\j2se5.0-11\jre\bin\verify.dll 0x6d380000 - 0x6d39d000 C:\Java\j2se5.0-11\jre\bin\java.dll 0x6d730000 - 0x6d73f000 C:\Java\j2se5.0-11\jre\bin\zip.dll 0x6d540000 - 0x6d553000 C:\Java\j2se5.0-11\jre\bin\net.dll 0x74fe0000 - 0x74ff4000 C:\WINNT\system32\WS2_32.dll 0x74fd0000 - 0x74fd8000 C:\WINNT\system32\WS2HELP.DLL 0x74f80000 - 0x74f9e000 C:\WINNT\system32\msafd.dll 0x74fc0000 - 0x74fc7000 C:\WINNT\System32\wshtcpip.dll 0x10000000 - 0x10095000 C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll 0x043c0000 - 0x045ef000 C:\ms4w\Apache\cgi-bin\libmap.dll 0x61b80000 - 0x61b98000 C:\Java\j2sdk1.4.2_06\jre\bin\zlib1.dll 0x045f0000 - 0x04626000 C:\ms4w\Apache\cgi-bin\proj.dll 0x7c340000 - 0x7c396000 C:\WINNT\system32\MSVCR71.dll 0x04630000 - 0x04a4a000 C:\ms4w\Apache\cgi-bin\gdal14.dll 0x12000000 - 0x121ad000 C:\ms4w\Apache\cgi-bin\xerces-c_2_7.dll 0x63100000 - 0x63121000 C:\WINNT\system32\LIBPQ.dll 0x04a50000 - 0x04b21000 C:\WINNT\system32\libeay32.dll 0x75000000 - 0x75009000 C:\WINNT\system32\WSOCK32.dll 0x04b30000 - 0x04b3d000 C:\WINNT\system32\libintl-2.dll 0x04b40000 - 0x04c1b000 C:\WINNT\system32\libiconv-2.dll 0x7cf70000 - 0x7d1bc000 C:\WINNT\system32\SHELL32.DLL 0x70a70000 - 0x70ad6000 C:\WINNT\system32\SHLWAPI.dll 0x71710000 - 0x71794000 C:\WINNT\system32\COMCTL32.dll 0x04c20000 - 0x04c47000 C:\WINNT\system32\ssleay32.dll 0x04c50000 - 0x04c82000 C:\WINNT\system32\ODBC32.dll 0x76b10000 - 0x76b4e000 C:\WINNT\system32\comdlg32.dll 0x39d00000 - 0x39e19000 C:\ms4w\Apache\cgi-bin\libecwj2.dll 0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll 0x77820000 - 0x77827000 C:\WINNT\system32\VERSION.dll 0x75980000 - 0x75986000 C:\WINNT\system32\LZ32.DLL 0x79640000 - 0x796cc000 C:\WINNT\system32\CRYPT32.dll 0x77410000 - 0x77421000 C:\WINNT\system32\MSASN1.dll 0x7ce60000 - 0x7cf4f000 C:\WINNT\system32\ole32.dll 0x7c3a0000 - 0x7c41b000 C:\WINNT\system32\MSVCP71.dll 0x04c90000 - 0x04e6e000 C:\WINNT\system32\lti_dsdk_dll.dll 0x04e70000 - 0x04fcb000 C:\ms4w\Apache\cgi-bin\cfitsio.dll 0x04fd0000 - 0x05013000 C:\ms4w\Apache\cgi-bin\netcdf.dll 0x05020000 - 0x05040000 C:\ms4w\Apache\cgi-bin\geotiff.dll 0x05040000 - 0x050d8000 C:\ms4w\Apache\cgi-bin\libtiff.dll 0x050e0000 - 0x0513e000 C:\ms4w\Apache\cgi-bin\sqlite3.dll 0x05140000 - 0x052aa000 C:\ms4w\Apache\cgi-bin\LIBMYSQL.dll 0x052b0000 - 0x0539c000 C:\ms4w\Apache\cgi-bin\geos_c.dll 0x053a0000 - 0x05468000 C:\ms4w\Apache\cgi-bin\hdf5dll.dll 0x05470000 - 0x05492000 C:\ms4w\Apache\cgi-bin\szlibdll.dll 0x054a0000 - 0x054cb000 C:\ms4w\Apache\cgi-bin\libcurl.dll 0x779b0000 - 0x77a4b000 C:\WINNT\system32\OLEAUT32.dll 0x55300000 - 0x5542a000 C:\ms4w\Apache\cgi-bin\pdflib.dll 0x054d0000 - 0x055e4000 C:\ms4w\Apache\cgi-bin\iconv.dll 0x055f0000 - 0x055fd000 C:\ms4w\Apache\cgi-bin\libfcgi.dll 0x05600000 - 0x056ea000 C:\ms4w\Apache\cgi-bin\libxml2.dll 0x1f850000 - 0x1f868000 C:\WINNT\system32\odbcint.dll 0x1f810000 - 0x1f829000 C:\WINNT\system32\odbccp32.dll 0x77840000 - 0x7784c000 C:\WINNT\System32\rnr20.dll 0x77980000 - 0x779a4000 C:\WINNT\system32\DNSAPI.DLL 0x77320000 - 0x77333000 C:\WINNT\system32\iphlpapi.dll 0x77500000 - 0x77505000 C:\WINNT\system32\ICMP.dll 0x77300000 - 0x77317000 C:\WINNT\system32\MPRAPI.dll 0x75100000 - 0x75110000 C:\WINNT\system32\SAMLIB.DLL 0x7ce00000 - 0x7ce50000 C:\WINNT\system32\NETAPI32.DLL 0x790d0000 - 0x790df000 C:\WINNT\system32\Secur32.dll 0x77bf0000 - 0x77c01000 C:\WINNT\system32\NTDSAPI.dll 0x77950000 - 0x7797c000 C:\WINNT\system32\WLDAP32.DLL 0x75170000 - 0x75176000 C:\WINNT\system32\NETRAP.dll 0x77390000 - 0x773bf000 C:\WINNT\system32\ACTIVEDS.DLL 0x77360000 - 0x77383000 C:\WINNT\system32\ADSLDPC.DLL 0x77830000 - 0x7783e000 C:\WINNT\system32\RTUTILS.DLL 0x783c0000 - 0x78451000 C:\WINNT\system32\SETUPAPI.DLL 0x78df0000 - 0x78e55000 C:\WINNT\system32\USERENV.DLL 0x774c0000 - 0x774f4000 C:\WINNT\system32\RASAPI32.dll 0x774a0000 - 0x774b1000 C:\WINNT\system32\rasman.dll 0x77510000 - 0x77532000 C:\WINNT\system32\TAPI32.dll 0x77340000 - 0x77359000 C:\WINNT\system32\DHCPCSVC.DLL 0x777e0000 - 0x777e8000 C:\WINNT\System32\winrnr.dll 0x777f0000 - 0x777f5000 C:\WINNT\system32\rasadhlp.dll VM Arguments: jvm_args: -Dcatalina.home=C:\Tomcat 5 -Dcatalina.base=C:\Tomcat 5 -Djava.endorsed.dirs=C:\Tomcat 5/common/endorsed -Djava.io.tmpdir=C:\Tomcat 5\temp -Djava.library.path=C:\Java\j2se5.0-11\bin;C:\Tomcat 5\bin;C:/ms4w/Apache/cgi-bin/mapscript/java;C:/ms4w/Apache/cgi-bin -Dsun.io.useCanonCaches=false java_command: org.apache.catalina.startup.Bootstrap start Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=C:\Java\j2sdk1.4.2_06 CLASSPATH=c:\;c:\desarrollo\dist\productos\httpclient\commons-logging.jar;c: \desarrollo\dist\productos\httpclient\commons-httpclient-2.0.jar;c:\desarrol lo\dist\productos\vividsolutions\jts-1.4.0.jar; PATH=D:\oracle\ora92\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C :\Archivos de programa\ATI Technologies\ATI Control Panel;C:\ARCHIV~1\ARCHIV~1\AUTODE~1;C:\Archivos de programa\Archivos comunes\Autodesk Shared\;C:\Java\j2sdk1.4.2_06\jre\bin;C:\Archivos de programa\UltraEdit;C:\ms4w\Apache\cgi-bin;C:\ms4w\tools\gdal-ogr;C:\ms4w\too ls\mapserv;C:\ms4w\tools\shapelib;C:\ms4w\proj\bin;C:\ms4w\tools\shp2tile;C: \ms4w\tools\shpdiff;C:\Archivos de programa\MySQL\MySQL Server 5.0\bin;C:\ms4w\Apache\cgi-bin\mapscript\java USERNAME=myname OS=Windows_NT PROCESSOR_IDENTIFIER=x86 Family 6 Model 10 Stepping 0, AuthenticAMD --------------- S Y S T E M --------------- OS: Windows 2000 Build 2195 Service Pack 4 CPU:total 1 (cores per cpu 1, threads per core 1) family 6 model 10 stepping 0, cmov, cx8, fxsr, mmx, sse, mmxext, 3dnowext, 3dnow Memory: 4k page, physical 1048096k(401440k free), swap 4194303k(3917944k free) vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0 Anybody knows how to solve this problem? -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Victor Herrero Cazurro Enviado el: mi?rcoles, 20 de junio de 2007 9:32 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] mapscript with java Hello! I?m a java Developer and i use mapscript library to make a consult ?WFS getfeature? to ?MAPSERVER? in Apache, i prove the java example in this url "http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#java-example" I change the parameter ? mapObj map = new mapObj(mapName); map.setMetaData( "ows_onlineresource", "http://dummy.org/" ); req.setParameter( "SERVICE", "WMS" ); req.setParameter( "VERSION", "1.1.0" ); req.setParameter( "REQUEST", "GetCapabilities" ); ? For ? mapObj map = new mapObj("c:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map"); map.setMetaData( "ows_onlineresource", "http://localhost/cgi-bin/mapserv" ); OWSRequest req = new OWSRequest(); req.setParameter( "SERVICE", "WFS" ); req.setParameter( "VERSION", "1.0.0" ); req.setParameter( "REQUEST", "getfeature" ); req.setParameter( "TYPENAME", "layer_name" ); ? And obtain this error ? # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x036b68c3, pid=7444, tid=7552 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing) # Problematic frame: # C [gdal14.dll+0x168c3] # # An error report file with more information is saved as hs_err_pid7444.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # ? somebody can help me ???? Thanks in advance! _________________________________________________________________ Hor?scopo, tarot, numerolog?a... Escucha lo que te dicen los astros. http://astrocentro.msn.es/ From umberto.nicoletti at GMAIL.COM Wed Jun 20 05:12:37 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 20 Jun 2007 14:12:37 +0200 Subject: mapscript with java In-Reply-To: <003601c7b334$109bb660$9f2fa8c0@grupotecopy.es> Message-ID: Please write a simple program to reproduce the error or send a complete code snippet and then open a ticket at: http://trac.osgeo.org/mapserver/ I'll look into it asap. Thanks, Umberto On 6/20/07, Helena Garc?a Hernando wrote: > Hi! > > I'm having the same problem, but the problematic frame to JVM is in > ntdll.dll, that's the reason why I don't think it's a gdal problem. > > > The trace I got is this: > > > # > # An unexpected error has been detected by HotSpot Virtual Machine: > # > # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x784ab333, pid=2240, > tid=2852 > # > # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing) > # Problematic frame: > # C [ntdll.dll+0x4b333] > # > > --------------- T H R E A D --------------- > > Current thread (0x03106840): JavaThread "http-8080-Processor25" daemon > [_thread_in_native, id=2852] > > siginfo: ExceptionCode=0xc0000005, writing address 0x00000000 > > Registers: > EAX=0x00000000, EBX=0x00000294, ECX=0x00000000, EDX=0x05711758 > ESP=0x0423d374, EBP=0x0423d540, ESI=0x05710000, EDI=0x057102b8 > EIP=0x784ab333, EFLAGS=0x00010283 > > Top of Stack: (sp=0x0423d374) > 0x0423d374: 03106840 00000018 27243918 00000000 > 0x0423d384: 0423d540 03106840 6d7c71e5 0423d540 > 0x0423d394: 03106840 6d87652c 03106840 060f0000 > 0x0423d3a4: 2b2a2d90 27247588 0423f5b8 00000000 > 0x0423d3b4: 00000000 00000000 0423f5ec 0423d540 > 0x0423d3c4: 03106840 03228ba0 03106dd0 03106dfc > 0x0423d3d4: 031071c4 0423fc8c 0423d548 00000000 > 0x0423d3e4: 00000000 6d81f462 0000000a 00000001 > > Instructions: (pc=0x784ab333) > 0x784ab323: 08 89 85 d4 fe ff ff 8b 49 0c 89 8d d0 fe ff ff > 0x784ab333: 89 01 89 48 04 3b c1 75 31 8b 45 d0 66 8b 00 66 > > > Stack: [0x04200000,0x04240000), sp=0x0423d374, free space=244k > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native > code) > C [ntdll.dll+0x4b333] > C [MSVCR71.dll+0x16b3] > C [MSVCR71.dll+0x16db] > C [mapscript.dll+0x3cf57] > j edu.umn.gis.mapscript.mapscriptJNI.new_OWSRequest()J+0 > j edu.umn.gis.mapscript.OWSRequest.(Z)V+13 > j > com.geoportal.model.WFS.getfeature(Ljava/lang/String;Ljava/lang/String;Ljava > /lang/String;Ljava/lang/String;)Lorg/w3c/dom/Document;+26 > j > com.geoportal.action.MapServerAction.execute(Lorg/apache/struts/action/Actio > nMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServle > tRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/struts/action/ > ActionForward;+63 > j > org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax/servle > t/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apach > e/struts/action/Action;Lorg/apache/struts/action/ActionForm;Lorg/apache/stru > ts/action/ActionMapping;)Lorg/apache/struts/action/ActionForward;+7 > j > org.apache.struts.action.RequestProcessor.process(Ljavax/servlet/http/HttpSe > rvletRequest;Ljavax/servlet/http/HttpServletResponse;)V+213 > j > org.apache.struts.action.ActionServlet.process(Ljavax/servlet/http/HttpServl > etRequest;Ljavax/servlet/http/HttpServletResponse;)V+19 > j > org.apache.struts.action.ActionServlet.doGet(Ljavax/servlet/http/HttpServlet > Request;Ljavax/servlet/http/HttpServletResponse;)V+3 > j > javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletReques > t;Ljavax/servlet/http/HttpServletResponse;)V+35 > j > javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/ > servlet/ServletResponse;)V+30 > j > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/serv > let/ServletRequest;Ljavax/servlet/ServletResponse;)V+362 > j > org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/Serv > letRequest;Ljavax/servlet/ServletResponse;)V+101 > j > org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/co > nnector/Request;Lorg/apache/catalina/connector/Response;)V+670 > j > org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/co > nnector/Request;Lorg/apache/catalina/connector/Response;)V+285 > j > org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/conne > ctor/Request;Lorg/apache/catalina/connector/Response;)V+64 > j > org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/conn > ector/Request;Lorg/apache/catalina/connector/Response;)V+6 > j > org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/con > nector/Request;Lorg/apache/catalina/connector/Response;)V+42 > j > org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Reque > st;Lorg/apache/coyote/Response;)V+141 > j > org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/ > io/OutputStream;)V+566 > j > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC > onnection(Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+11 > 3 > j > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lo > rg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > j > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Obje > ct;)V+102 > j org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > j java.lang.Thread.run()V+11 > v ~StubRoutines::call_stub > V [jvm.dll+0x871a8] > V [jvm.dll+0xdf462] > V [jvm.dll+0x87079] > V [jvm.dll+0x86dd6] > V [jvm.dll+0xa1a14] > V [jvm.dll+0x110aa6] > V [jvm.dll+0x110a74] > C [MSVCRT.dll+0x85bc] > C [KERNEL32.dll+0xb3bc] > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > j edu.umn.gis.mapscript.mapscriptJNI.new_OWSRequest()J+0 > j edu.umn.gis.mapscript.OWSRequest.(Z)V+13 > j > com.geoportal.model.WFS.getfeature(Ljava/lang/String;Ljava/lang/String;Ljava > /lang/String;Ljava/lang/String;)Lorg/w3c/dom/Document;+26 > j > com.geoportal.action.MapServerAction.execute(Lorg/apache/struts/action/Actio > nMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServle > tRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/struts/action/ > ActionForward;+63 > j > org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax/servle > t/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apach > e/struts/action/Action;Lorg/apache/struts/action/ActionForm;Lorg/apache/stru > ts/action/ActionMapping;)Lorg/apache/struts/action/ActionForward;+7 > j > org.apache.struts.action.RequestProcessor.process(Ljavax/servlet/http/HttpSe > rvletRequest;Ljavax/servlet/http/HttpServletResponse;)V+213 > j > org.apache.struts.action.ActionServlet.process(Ljavax/servlet/http/HttpServl > etRequest;Ljavax/servlet/http/HttpServletResponse;)V+19 > j > org.apache.struts.action.ActionServlet.doGet(Ljavax/servlet/http/HttpServlet > Request;Ljavax/servlet/http/HttpServletResponse;)V+3 > j > javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletReques > t;Ljavax/servlet/http/HttpServletResponse;)V+35 > j > javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/ > servlet/ServletResponse;)V+30 > j > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/serv > let/ServletRequest;Ljavax/servlet/ServletResponse;)V+362 > j > org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/Serv > letRequest;Ljavax/servlet/ServletResponse;)V+101 > j > org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/co > nnector/Request;Lorg/apache/catalina/connector/Response;)V+670 > j > org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/co > nnector/Request;Lorg/apache/catalina/connector/Response;)V+285 > j > org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/conne > ctor/Request;Lorg/apache/catalina/connector/Response;)V+64 > j > org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/conn > ector/Request;Lorg/apache/catalina/connector/Response;)V+6 > j > org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/con > nector/Request;Lorg/apache/catalina/connector/Response;)V+42 > j > org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Reque > st;Lorg/apache/coyote/Response;)V+141 > j > org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/ > io/OutputStream;)V+566 > j > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC > onnection(Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+11 > 3 > j > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lo > rg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > j > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Obje > ct;)V+102 > j org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > j java.lang.Thread.run()V+11 > v ~StubRoutines::call_stub > > --------------- P R O C E S S --------------- > > Java Threads: ( => current thread ) > 0x032b46a0 JavaThread "TP-Monitor" daemon [_thread_blocked, id=536] > 0x02eefcb0 JavaThread "TP-Processor4" daemon [_thread_in_native, id=2124] > 0x032b4490 JavaThread "TP-Processor3" daemon [_thread_blocked, id=2908] > 0x0329ae18 JavaThread "TP-Processor2" daemon [_thread_blocked, id=2928] > 0x032b4970 JavaThread "TP-Processor1" daemon [_thread_blocked, id=3108] > 0x032bd158 JavaThread "http-8080-Monitor" [_thread_blocked, id=2824] > =>0x03106840 JavaThread "http-8080-Processor25" daemon [_thread_in_native, > id=2852] > 0x03105ea8 JavaThread "http-8080-Processor24" daemon [_thread_in_native, > id=2680] > 0x03105510 JavaThread "http-8080-Processor23" daemon [_thread_blocked, > id=3060] > 0x0322ef18 JavaThread "http-8080-Processor22" daemon [_thread_blocked, > id=2748] > 0x0322e4f8 JavaThread "http-8080-Processor21" daemon [_thread_blocked, > id=2936] > 0x0322dad8 JavaThread "http-8080-Processor20" daemon [_thread_blocked, > id=2232] > 0x0323f550 JavaThread "http-8080-Processor19" daemon [_thread_blocked, > id=708] > 0x0323eb30 JavaThread "http-8080-Processor18" daemon [_thread_blocked, > id=2700] > 0x0323e110 JavaThread "http-8080-Processor17" daemon [_thread_blocked, > id=3128] > 0x03221cc0 JavaThread "http-8080-Processor16" daemon [_thread_blocked, > id=3132] > 0x032212a0 JavaThread "http-8080-Processor15" daemon [_thread_blocked, > id=3152] > 0x03220880 JavaThread "http-8080-Processor14" daemon [_thread_blocked, > id=2580] > 0x03235570 JavaThread "http-8080-Processor13" daemon [_thread_blocked, > id=2976] > 0x03234bd8 JavaThread "http-8080-Processor12" daemon [_thread_blocked, > id=3112] > 0x032322b0 JavaThread "http-8080-Processor11" daemon [_thread_blocked, > id=3124] > 0x03231c98 JavaThread "http-8080-Processor10" daemon [_thread_blocked, > id=3144] > 0x03231278 JavaThread "http-8080-Processor9" daemon [_thread_blocked, > id=516] > 0x032d1e58 JavaThread "http-8080-Processor8" daemon [_thread_blocked, > id=352] > 0x03279928 JavaThread "http-8080-Processor7" daemon [_thread_blocked, > id=3044] > 0x03279398 JavaThread "http-8080-Processor6" daemon [_thread_blocked, > id=2920] > 0x0322b798 JavaThread "http-8080-Processor5" daemon [_thread_blocked, > id=2944] > 0x032238c8 JavaThread "http-8080-Processor4" daemon [_thread_blocked, > id=2924] > 0x03228690 JavaThread "http-8080-Processor3" daemon [_thread_blocked, > id=2396] > 0x0326cdc8 JavaThread "http-8080-Processor2" daemon [_thread_blocked, > id=3120] > 0x033097e8 JavaThread "http-8080-Processor1" daemon [_thread_blocked, > id=260] > 0x032aa6d8 JavaThread > "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon > [_thread_blocked, id=2932] > 0x032cf328 JavaThread "MySQL Statement Cancellation Timer" daemon > [_thread_blocked, id=2772] > 0x031f1da0 JavaThread "Timer-0" daemon [_thread_blocked, id=3076] > 0x009c2ec0 JavaThread "Low Memory Detector" daemon [_thread_blocked, > id=3024] > 0x00737848 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2332] > 0x009c0e30 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=640] > 0x009bbe40 JavaThread "Finalizer" daemon [_thread_blocked, id=3040] > 0x009ba990 JavaThread "Reference Handler" daemon [_thread_blocked, > id=2760] > 0x00737c68 JavaThread "main" [_thread_in_native, id=2856] > > Other Threads: > 0x009b8018 VMThread [id=2804] > 0x009c4458 WatcherThread [id=2784] > > VM state:not at safepoint (normal execution) > > VM Mutex/Monitor currently owned by a thread: None > > Heap > def new generation total 576K, used 416K [0x22aa0000, 0x22b40000, > 0x22f80000) > eden space 512K, 70% used [0x22aa0000, 0x22af9b38, 0x22b20000) > from space 64K, 90% used [0x22b20000, 0x22b2e740, 0x22b30000) > to space 64K, 0% used [0x22b30000, 0x22b30000, 0x22b40000) > tenured generation total 5316K, used 4669K [0x22f80000, 0x234b1000, > 0x26aa0000) > the space 5316K, 87% used [0x22f80000, 0x2340f518, 0x2340f600, > 0x234b1000) > compacting perm gen total 8192K, used 7858K [0x26aa0000, 0x272a0000, > 0x2aaa0000) > the space 8192K, 95% used [0x26aa0000, 0x2724c9a0, 0x2724ca00, > 0x272a0000) > ro space 8192K, 67% used [0x2aaa0000, 0x2afff150, 0x2afff200, > 0x2b2a0000) > rw space 12288K, 47% used [0x2b2a0000, 0x2b849750, 0x2b849800, > 0x2bea0000) > > Dynamic libraries: > 0x00400000 - 0x0040d000 C:\Java\j2se5.0-11\bin\javaw.exe > 0x78460000 - 0x784e2000 C:\WINNT\system32\ntdll.dll > 0x78ff0000 - 0x79055000 C:\WINNT\system32\ADVAPI32.dll > 0x79450000 - 0x7950e000 C:\WINNT\system32\KERNEL32.dll > 0x77120000 - 0x7718f000 C:\WINNT\system32\RPCRT4.dll > 0x77e10000 - 0x77e6f000 C:\WINNT\system32\USER32.dll > 0x77f40000 - 0x77f7c000 C:\WINNT\system32\GDI32.dll > 0x78000000 - 0x78045000 C:\WINNT\system32\MSVCRT.dll > 0x6d740000 - 0x6d8dd000 C:\Java\j2se5.0-11\jre\bin\client\jvm.dll > 0x77550000 - 0x77581000 C:\WINNT\system32\WINMM.dll > 0x6d300000 - 0x6d308000 C:\Java\j2se5.0-11\jre\bin\hpi.dll > 0x68f70000 - 0x68f7b000 C:\WINNT\system32\PSAPI.DLL > 0x6d710000 - 0x6d71c000 C:\Java\j2se5.0-11\jre\bin\verify.dll > 0x6d380000 - 0x6d39d000 C:\Java\j2se5.0-11\jre\bin\java.dll > 0x6d730000 - 0x6d73f000 C:\Java\j2se5.0-11\jre\bin\zip.dll > 0x6d540000 - 0x6d553000 C:\Java\j2se5.0-11\jre\bin\net.dll > 0x74fe0000 - 0x74ff4000 C:\WINNT\system32\WS2_32.dll > 0x74fd0000 - 0x74fd8000 C:\WINNT\system32\WS2HELP.DLL > 0x74f80000 - 0x74f9e000 C:\WINNT\system32\msafd.dll > 0x74fc0000 - 0x74fc7000 C:\WINNT\System32\wshtcpip.dll > 0x10000000 - 0x10095000 > C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll > 0x043c0000 - 0x045ef000 C:\ms4w\Apache\cgi-bin\libmap.dll > 0x61b80000 - 0x61b98000 C:\Java\j2sdk1.4.2_06\jre\bin\zlib1.dll > 0x045f0000 - 0x04626000 C:\ms4w\Apache\cgi-bin\proj.dll > 0x7c340000 - 0x7c396000 C:\WINNT\system32\MSVCR71.dll > 0x04630000 - 0x04a4a000 C:\ms4w\Apache\cgi-bin\gdal14.dll > 0x12000000 - 0x121ad000 C:\ms4w\Apache\cgi-bin\xerces-c_2_7.dll > 0x63100000 - 0x63121000 C:\WINNT\system32\LIBPQ.dll > 0x04a50000 - 0x04b21000 C:\WINNT\system32\libeay32.dll > 0x75000000 - 0x75009000 C:\WINNT\system32\WSOCK32.dll > 0x04b30000 - 0x04b3d000 C:\WINNT\system32\libintl-2.dll > 0x04b40000 - 0x04c1b000 C:\WINNT\system32\libiconv-2.dll > 0x7cf70000 - 0x7d1bc000 C:\WINNT\system32\SHELL32.DLL > 0x70a70000 - 0x70ad6000 C:\WINNT\system32\SHLWAPI.dll > 0x71710000 - 0x71794000 C:\WINNT\system32\COMCTL32.dll > 0x04c20000 - 0x04c47000 C:\WINNT\system32\ssleay32.dll > 0x04c50000 - 0x04c82000 C:\WINNT\system32\ODBC32.dll > 0x76b10000 - 0x76b4e000 C:\WINNT\system32\comdlg32.dll > 0x39d00000 - 0x39e19000 C:\ms4w\Apache\cgi-bin\libecwj2.dll > 0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll > 0x77820000 - 0x77827000 C:\WINNT\system32\VERSION.dll > 0x75980000 - 0x75986000 C:\WINNT\system32\LZ32.DLL > 0x79640000 - 0x796cc000 C:\WINNT\system32\CRYPT32.dll > 0x77410000 - 0x77421000 C:\WINNT\system32\MSASN1.dll > 0x7ce60000 - 0x7cf4f000 C:\WINNT\system32\ole32.dll > 0x7c3a0000 - 0x7c41b000 C:\WINNT\system32\MSVCP71.dll > 0x04c90000 - 0x04e6e000 C:\WINNT\system32\lti_dsdk_dll.dll > 0x04e70000 - 0x04fcb000 C:\ms4w\Apache\cgi-bin\cfitsio.dll > 0x04fd0000 - 0x05013000 C:\ms4w\Apache\cgi-bin\netcdf.dll > 0x05020000 - 0x05040000 C:\ms4w\Apache\cgi-bin\geotiff.dll > 0x05040000 - 0x050d8000 C:\ms4w\Apache\cgi-bin\libtiff.dll > 0x050e0000 - 0x0513e000 C:\ms4w\Apache\cgi-bin\sqlite3.dll > 0x05140000 - 0x052aa000 C:\ms4w\Apache\cgi-bin\LIBMYSQL.dll > 0x052b0000 - 0x0539c000 C:\ms4w\Apache\cgi-bin\geos_c.dll > 0x053a0000 - 0x05468000 C:\ms4w\Apache\cgi-bin\hdf5dll.dll > 0x05470000 - 0x05492000 C:\ms4w\Apache\cgi-bin\szlibdll.dll > 0x054a0000 - 0x054cb000 C:\ms4w\Apache\cgi-bin\libcurl.dll > 0x779b0000 - 0x77a4b000 C:\WINNT\system32\OLEAUT32.dll > 0x55300000 - 0x5542a000 C:\ms4w\Apache\cgi-bin\pdflib.dll > 0x054d0000 - 0x055e4000 C:\ms4w\Apache\cgi-bin\iconv.dll > 0x055f0000 - 0x055fd000 C:\ms4w\Apache\cgi-bin\libfcgi.dll > 0x05600000 - 0x056ea000 C:\ms4w\Apache\cgi-bin\libxml2.dll > 0x1f850000 - 0x1f868000 C:\WINNT\system32\odbcint.dll > 0x1f810000 - 0x1f829000 C:\WINNT\system32\odbccp32.dll > 0x77840000 - 0x7784c000 C:\WINNT\System32\rnr20.dll > 0x77980000 - 0x779a4000 C:\WINNT\system32\DNSAPI.DLL > 0x77320000 - 0x77333000 C:\WINNT\system32\iphlpapi.dll > 0x77500000 - 0x77505000 C:\WINNT\system32\ICMP.dll > 0x77300000 - 0x77317000 C:\WINNT\system32\MPRAPI.dll > 0x75100000 - 0x75110000 C:\WINNT\system32\SAMLIB.DLL > 0x7ce00000 - 0x7ce50000 C:\WINNT\system32\NETAPI32.DLL > 0x790d0000 - 0x790df000 C:\WINNT\system32\Secur32.dll > 0x77bf0000 - 0x77c01000 C:\WINNT\system32\NTDSAPI.dll > 0x77950000 - 0x7797c000 C:\WINNT\system32\WLDAP32.DLL > 0x75170000 - 0x75176000 C:\WINNT\system32\NETRAP.dll > 0x77390000 - 0x773bf000 C:\WINNT\system32\ACTIVEDS.DLL > 0x77360000 - 0x77383000 C:\WINNT\system32\ADSLDPC.DLL > 0x77830000 - 0x7783e000 C:\WINNT\system32\RTUTILS.DLL > 0x783c0000 - 0x78451000 C:\WINNT\system32\SETUPAPI.DLL > 0x78df0000 - 0x78e55000 C:\WINNT\system32\USERENV.DLL > 0x774c0000 - 0x774f4000 C:\WINNT\system32\RASAPI32.dll > 0x774a0000 - 0x774b1000 C:\WINNT\system32\rasman.dll > 0x77510000 - 0x77532000 C:\WINNT\system32\TAPI32.dll > 0x77340000 - 0x77359000 C:\WINNT\system32\DHCPCSVC.DLL > 0x777e0000 - 0x777e8000 C:\WINNT\System32\winrnr.dll > 0x777f0000 - 0x777f5000 C:\WINNT\system32\rasadhlp.dll > > VM Arguments: > jvm_args: -Dcatalina.home=C:\Tomcat 5 -Dcatalina.base=C:\Tomcat 5 > -Djava.endorsed.dirs=C:\Tomcat 5/common/endorsed -Djava.io.tmpdir=C:\Tomcat > 5\temp -Djava.library.path=C:\Java\j2se5.0-11\bin;C:\Tomcat > 5\bin;C:/ms4w/Apache/cgi-bin/mapscript/java;C:/ms4w/Apache/cgi-bin > -Dsun.io.useCanonCaches=false > java_command: org.apache.catalina.startup.Bootstrap start > Launcher Type: SUN_STANDARD > > Environment Variables: > JAVA_HOME=C:\Java\j2sdk1.4.2_06 > CLASSPATH=c:\;c:\desarrollo\dist\productos\httpclient\commons-logging.jar;c: > \desarrollo\dist\productos\httpclient\commons-httpclient-2.0.jar;c:\desarrol > lo\dist\productos\vividsolutions\jts-1.4.0.jar; > PATH=D:\oracle\ora92\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C > :\Archivos de programa\ATI Technologies\ATI Control > Panel;C:\ARCHIV~1\ARCHIV~1\AUTODE~1;C:\Archivos de programa\Archivos > comunes\Autodesk Shared\;C:\Java\j2sdk1.4.2_06\jre\bin;C:\Archivos de > programa\UltraEdit;C:\ms4w\Apache\cgi-bin;C:\ms4w\tools\gdal-ogr;C:\ms4w\too > ls\mapserv;C:\ms4w\tools\shapelib;C:\ms4w\proj\bin;C:\ms4w\tools\shp2tile;C: > \ms4w\tools\shpdiff;C:\Archivos de programa\MySQL\MySQL Server > 5.0\bin;C:\ms4w\Apache\cgi-bin\mapscript\java > USERNAME=myname > OS=Windows_NT > PROCESSOR_IDENTIFIER=x86 Family 6 Model 10 Stepping 0, AuthenticAMD > > > > --------------- S Y S T E M --------------- > > OS: Windows 2000 Build 2195 Service Pack 4 > > CPU:total 1 (cores per cpu 1, threads per core 1) family 6 model 10 stepping > 0, cmov, cx8, fxsr, mmx, sse, mmxext, 3dnowext, 3dnow > > Memory: 4k page, physical 1048096k(401440k free), swap 4194303k(3917944k > free) > > vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on > Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0 > > > > > > > Anybody knows how to solve this problem? > > > > > > > -----Mensaje original----- > De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En > nombre de Victor Herrero Cazurro > Enviado el: mi?rcoles, 20 de junio de 2007 9:32 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Asunto: [UMN_MAPSERVER-USERS] mapscript with java > > Hello! > > > > I'm a java Developer and i use mapscript library to make a consult "WFS > getfeature" to "MAPSERVER" in Apache, i prove the java example in this url > > "http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#java-example" > > > > I change the parameter > > > > " > > mapObj map = new mapObj(mapName); > > map.setMetaData( "ows_onlineresource", "http://dummy.org/" ); > > req.setParameter( "SERVICE", "WMS" ); > req.setParameter( "VERSION", "1.1.0" ); > req.setParameter( "REQUEST", "GetCapabilities" ); > " > > For > > " > mapObj map = new > mapObj("c:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map"); > > map.setMetaData( "ows_onlineresource", "http://localhost/cgi-bin/mapserv" ); > > > > OWSRequest req = new OWSRequest(); > > > > req.setParameter( "SERVICE", "WFS" ); > > req.setParameter( "VERSION", "1.0.0" ); > > req.setParameter( "REQUEST", "getfeature" ); > > req.setParameter( "TYPENAME", "layer_name" ); > > " > > And obtain this error > > > > " > > # > > # An unexpected error has been detected by HotSpot Virtual Machine: > > # > > # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x036b68c3, pid=7444, > tid=7552 > > # > > # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing) > > # Problematic frame: > > # C [gdal14.dll+0x168c3] > > # > > # An error report file with more information is saved as hs_err_pid7444.log > > # > > # If you would like to submit a bug report, please visit: > > # http://java.sun.com/webapps/bugreport/crash.jsp > > # > > " > > somebody can help me ???? > > Thanks in advance! > > _________________________________________________________________ > Hor?scopo, tarot, numerolog?a... Escucha lo que te dicen los astros. > http://astrocentro.msn.es/ > From la_barrenadora at HOTMAIL.COM Wed Jun 20 05:14:35 2007 From: la_barrenadora at HOTMAIL.COM (Victor Herrero Cazurro) Date: Wed, 20 Jun 2007 14:14:35 +0200 Subject: mapscript with java In-Reply-To: <75b4b93e0706200211w2419a00aic7409499e24b4790@mail.gmail.com> Message-ID: Hello Umberto, this is the information that appears in the file "hs_err_pid5260.log". the version of mapserver that I use is the one of "MS4W". it is why it comes precompiled and when not compiling I do not have it access to the configuration. # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0492fadc, pid=5260, tid=5836 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing) # Problematic frame: # C [gdal14.dll+0x18fadc] # --------------- T H R E A D --------------- Current thread (0x02d48788): JavaThread "Thread-41" daemon [_thread_in_native, id=5836] siginfo: ExceptionCode=0xc0000005, reading address 0x00000004 Registers: EAX=0x00000000, EBX=0x055d0c48, ECX=0x00000000, EDX=0x7c38b1c0 ESP=0x053dd8bc, EBP=0x056a6dd0, ESI=0x051f7580, EDI=0x00000001 EIP=0x0492fadc, EFLAGS=0x00010206 Top of Stack: (sp=0x053dd8bc) 0x053dd8bc: 04a81740 04a81704 05218ff0 055d0c48 0x053dd8cc: 056a6dd0 0467aefc 05622b78 7c3505dc 0x053dd8dc: 0454cb50 055d0c48 05622b78 00000001 0x053dd8ec: 05213de0 056a6dd0 0454d115 056a6dd0 0x053dd8fc: 05622b78 05218fb8 056a6dd0 04560ec5 0x053dd90c: 056a6dd0 00000010 0457188c 056a6dd0 0x053dd91c: 0566f008 0520e050 0521f358 ffffffff 0x053dd92c: 0521f358 05218fb8 0521f4d8 056a6dd0 Instructions: (pc=0x0492fadc) 0x0492facc: 17 a8 04 68 40 17 a8 04 e8 a1 18 e7 ff 8b 4e 0c 0x0492fadc: 8b 14 b9 52 e8 ac 3d e7 ff 8b 4e 08 8b 46 0c 8b Stack: [0x053a0000,0x053e0000), sp=0x053dd8bc, free space=246k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [gdal14.dll+0x18fadc] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j edu.umn.gis.mapscript.mapscriptJNI.mapObj_OWSDispatch(JJ)I+0 j edu.umn.gis.mapscript.mapObj.OWSDispatch(Ledu/umn/gis/mapscript/OWSRequest;)I+8 j es.nomenclator.struts.action.MapServerAction$WxSTest_thread.run()V+66 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x02d5c5d8 JavaThread "Thread-42" daemon [_thread_in_native, id=5340] =>0x02d48788 JavaThread "Thread-41" daemon [_thread_in_native, id=5836] 0x00a82ea0 JavaThread "TP-Monitor" daemon [_thread_blocked, id=6040] 0x00a82518 JavaThread "TP-Processor4" daemon [_thread_in_native, id=6004] 0x02d97998 JavaThread "TP-Processor3" daemon [_thread_blocked, id=6240] 0x02d97010 JavaThread "TP-Processor2" daemon [_thread_blocked, id=6260] 0x00aab5d8 JavaThread "TP-Processor1" daemon [_thread_blocked, id=5888] 0x00aa98c0 JavaThread "http-8080-Monitor" [_thread_blocked, id=5948] 0x03252ab8 JavaThread "http-8080-Processor25" daemon [_thread_blocked, id=8136] 0x03251ff0 JavaThread "http-8080-Processor24" daemon [_thread_blocked, id=6032] 0x03251580 JavaThread "http-8080-Processor23" daemon [_thread_blocked, id=6016] 0x03250b10 JavaThread "http-8080-Processor22" daemon [_thread_blocked, id=6068] 0x03250130 JavaThread "http-8080-Processor21" daemon [_thread_blocked, id=5636] 0x031f7680 JavaThread "http-8080-Processor20" daemon [_thread_blocked, id=6052] 0x031f6c10 JavaThread "http-8080-Processor19" daemon [_thread_in_native, id=6036] 0x031f61a0 JavaThread "http-8080-Processor18" daemon [_thread_blocked, id=6012] 0x0315a220 JavaThread "http-8080-Processor17" daemon [_thread_blocked, id=5984] 0x03159808 JavaThread "http-8080-Processor16" daemon [_thread_blocked, id=6028] 0x031542a8 JavaThread "http-8080-Processor15" daemon [_thread_blocked, id=7832] 0x03161408 JavaThread "http-8080-Processor14" daemon [_thread_blocked, id=5696] 0x02ef0dd0 JavaThread "http-8080-Processor13" daemon [_thread_blocked, id=5016] 0x02ef0c48 JavaThread "http-8080-Processor12" daemon [_thread_blocked, id=5996] 0x03166110 JavaThread "http-8080-Processor11" daemon [_thread_blocked, id=5992] 0x0324b9d0 JavaThread "http-8080-Processor10" daemon [_thread_blocked, id=6000] 0x031673e0 JavaThread "http-8080-Processor9" daemon [_thread_blocked, id=5600] 0x0322dd18 JavaThread "http-8080-Processor8" daemon [_thread_blocked, id=6084] 0x03242808 JavaThread "http-8080-Processor7" daemon [_thread_blocked, id=6112] 0x031ef7f0 JavaThread "http-8080-Processor6" daemon [_thread_blocked, id=5476] 0x031babd0 JavaThread "http-8080-Processor5" daemon [_thread_blocked, id=6140] 0x02f86d80 JavaThread "http-8080-Processor4" daemon [_thread_blocked, id=5700] 0x031d0da0 JavaThread "http-8080-Processor3" daemon [_thread_blocked, id=6124] 0x031526e0 JavaThread "http-8080-Processor2" daemon [_thread_blocked, id=6220] 0x031235c0 JavaThread "http-8080-Processor1" daemon [_thread_blocked, id=6152] 0x031c0c88 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=1860] 0x031c1bc8 JavaThread "MySQL Statement Cancellation Timer" daemon [_thread_blocked, id=6168] 0x02d36d10 JavaThread "Timer-0" daemon [_thread_blocked, id=5288] 0x00a72148 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5536] 0x00a70dc8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4412] 0x00a700c0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5348] 0x00a6af70 JavaThread "Finalizer" daemon [_thread_blocked, id=6180] 0x00a6ab00 JavaThread "Reference Handler" daemon [_thread_blocked, id=4328] 0x003a64f8 JavaThread "main" [_thread_in_native, id=5036] Other Threads: 0x00a681d0 VMThread [id=6268] 0x00a6fda0 WatcherThread [id=5272] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 768K, used 190K [0x22ad0000, 0x22ba0000, 0x22fb0000) eden space 704K, 27% used [0x22ad0000, 0x22affb18, 0x22b80000) from space 64K, 0% used [0x22b80000, 0x22b80000, 0x22b90000) to space 64K, 0% used [0x22b90000, 0x22b90000, 0x22ba0000) tenured generation total 9124K, used 5473K [0x22fb0000, 0x23899000, 0x26ad0000) the space 9124K, 59% used [0x22fb0000, 0x23508420, 0x23508600, 0x23899000) compacting perm gen total 8960K, used 8816K [0x26ad0000, 0x27390000, 0x2aad0000) the space 8960K, 98% used [0x26ad0000, 0x2736c120, 0x2736c200, 0x27390000) ro space 8192K, 67% used [0x2aad0000, 0x2b02f150, 0x2b02f200, 0x2b2d0000) rw space 12288K, 47% used [0x2b2d0000, 0x2b879750, 0x2b879800, 0x2bed0000) Dynamic libraries: 0x00400000 - 0x0040d000 C:\Archivos de programa\Java\jdk1.5.0_11\bin\javaw.exe 0x7c910000 - 0x7c9c6000 C:\WINDOWS\system32\ntdll.dll 0x7c800000 - 0x7c901000 C:\WINDOWS\system32\kernel32.dll 0x77da0000 - 0x77e4c000 C:\WINDOWS\system32\ADVAPI32.dll 0x77e50000 - 0x77ee1000 C:\WINDOWS\system32\RPCRT4.dll 0x77d10000 - 0x77da0000 C:\WINDOWS\system32\USER32.dll 0x77ef0000 - 0x77f36000 C:\WINDOWS\system32\GDI32.dll 0x77be0000 - 0x77c38000 C:\WINDOWS\system32\MSVCRT.dll 0x6d740000 - 0x6d8dd000 C:\Archivos de programa\Java\jdk1.5.0_11\jre\bin\client\jvm.dll 0x76b00000 - 0x76b2e000 C:\WINDOWS\system32\WINMM.dll 0x6bd00000 - 0x6bd0d000 C:\WINDOWS\system32\SYNCOR11.DLL 0x6d300000 - 0x6d308000 C:\Archivos de programa\Java\jdk1.5.0_11\jre\bin\hpi.dll 0x76bb0000 - 0x76bbb000 C:\WINDOWS\system32\PSAPI.DLL 0x6d710000 - 0x6d71c000 C:\Archivos de programa\Java\jdk1.5.0_11\jre\bin\verify.dll 0x6d380000 - 0x6d39d000 C:\Archivos de programa\Java\jdk1.5.0_11\jre\bin\java.dll 0x6d730000 - 0x6d73f000 C:\Archivos de programa\Java\jdk1.5.0_11\jre\bin\zip.dll 0x6d540000 - 0x6d553000 C:\Archivos de programa\Java\jdk1.5.0_11\jre\bin\net.dll 0x71a30000 - 0x71a47000 C:\WINDOWS\system32\WS2_32.dll 0x71a20000 - 0x71a28000 C:\WINDOWS\system32\WS2HELP.dll 0x20b00000 - 0x20b45000 C:\WINDOWS\system32\imon.dll 0x71a50000 - 0x71a5a000 C:\WINDOWS\system32\WSOCK32.dll 0x20c00000 - 0x20c0d000 C:\Archivos de programa\Eset\pr_imon.dll 0x77660000 - 0x77681000 C:\WINDOWS\system32\NTMARTA.DLL 0x76f20000 - 0x76f4d000 C:\WINDOWS\system32\WLDAP32.dll 0x774b0000 - 0x775ec000 C:\WINDOWS\system32\ole32.dll 0x71b90000 - 0x71ba3000 C:\WINDOWS\system32\SAMLIB.dll 0x719d0000 - 0x71a10000 C:\WINDOWS\system32\mswsock.dll 0x66740000 - 0x66799000 C:\WINDOWS\system32\hnetcfg.dll 0x71a10000 - 0x71a18000 C:\WINDOWS\System32\wshtcpip.dll 0x10000000 - 0x10095000 C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll 0x04510000 - 0x0473f000 C:\ms4w\Apache\cgi-bin\libmap.dll 0x04740000 - 0x04752000 C:\ms4w\Apache\cgi-bin\zlib1.dll 0x04760000 - 0x04796000 C:\ms4w\Apache\cgi-bin\proj.dll 0x7c340000 - 0x7c396000 C:\WINDOWS\system32\MSVCR71.dll 0x047a0000 - 0x04ba2000 C:\ms4w\tools\gdal-ogr\gdal14.dll 0x745e0000 - 0x7461d000 C:\WINDOWS\system32\ODBC32.dll 0x58c30000 - 0x58cc7000 C:\WINDOWS\system32\COMCTL32.dll 0x7c9d0000 - 0x7d1ee000 C:\WINDOWS\system32\SHELL32.dll 0x77f40000 - 0x77fb6000 C:\WINDOWS\system32\SHLWAPI.dll 0x76360000 - 0x763aa000 C:\WINDOWS\system32\comdlg32.dll 0x7c3a0000 - 0x7c41b000 C:\WINDOWS\system32\MSVCP71.dll 0x770f0000 - 0x7717c000 C:\WINDOWS\system32\OLEAUT32.dll 0x04bb0000 - 0x04bdb000 C:\ms4w\Apache\cgi-bin\libcurl.dll 0x04be0000 - 0x04cee000 C:\ms4w\Apache\cgi-bin\LIBEAY32.dll 0x04cf0000 - 0x04d21000 C:\ms4w\Apache\cgi-bin\SSLEAY32.dll 0x55300000 - 0x5542a000 C:\ms4w\Apache\cgi-bin\pdflib.dll 0x04d30000 - 0x04d4d000 C:\ms4w\Apache\cgi-bin\LIBPQ.dll 0x76740000 - 0x76749000 C:\WINDOWS\system32\SHFOLDER.dll 0x04d50000 - 0x04e64000 C:\ms4w\Apache\cgi-bin\iconv.dll 0x04e70000 - 0x04e7d000 C:\ms4w\Apache\cgi-bin\libfcgi.dll 0x04e80000 - 0x04f6c000 C:\ms4w\Apache\cgi-bin\geos_c.dll 0x04f70000 - 0x0505a000 C:\ms4w\Apache\cgi-bin\libxml2.dll 0x773a0000 - 0x774a2000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll 0x20000000 - 0x20018000 C:\WINDOWS\system32\odbcint.dll 0x612d0000 - 0x612eb000 C:\WINDOWS\system32\odbccp32.dll 0x77bd0000 - 0x77bd8000 C:\WINDOWS\system32\VERSION.dll 0x76ee0000 - 0x76f07000 C:\WINDOWS\system32\DNSAPI.dll 0x76f70000 - 0x76f78000 C:\WINDOWS\System32\winrnr.dll 0x76f80000 - 0x76f86000 C:\WINDOWS\system32\rasadhlp.dll 0x00000000 - 0x00000000 VM Arguments: jvm_args: -Dcatalina.home=C:\Tomcat 5 -Dcatalina.base=C:\Tomcat 5 -Djava.endorsed.dirs=C:\Tomcat 5/common/endorsed -Djava.io.tmpdir=C:\Tomcat 5\temp -Djava.library.path=C:\Archivos de programa\Java\jdk1.5.0_11\bin;C:\Tomcat 5\bin;C:/ms4w/Apache/cgi-bin/mapscript/java;C:/ms4w/Apache/cgi-bin -Dsun.io.useCanonCaches=false java_command: org.apache.catalina.startup.Bootstrap start Launcher Type: SUN_STANDARD Environment Variables: PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ms4w\tools\gdal-ogr;C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java USERNAME=victorherrero OS=Windows_NT PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel --------------- S Y S T E M --------------- OS: Windows XP Build 2600 Service Pack 2 CPU:total 1 (cores per cpu 1, threads per core 1) family 15 model 2 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2 Memory: 4k page, physical 1539616k(618212k free), swap 3484984k(2705696k free) vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0 >From: "Umberto Nicoletti" >To: "Victor Herrero Cazurro" >CC: MAPSERVER-USERS at lists.umn.edu >Subject: Re: [UMN_MAPSERVER-USERS] mapscript with java >Date: Wed, 20 Jun 2007 11:11:28 +0200 > >Please read this first: > >http://mapserver.gis.umn.edu/docs/howto/javamapscript > >especially last section. We can't help you without that info. > >Umberto > >On 6/20/07, Victor Herrero Cazurro wrote: >>Hello! >> >> >> >>I'm a java Developer and i use mapscript library to make a consult "WFS >>getfeature" to "MAPSERVER" in Apache, i prove the java example in this url >> >>"http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#java-example" >> >> >> >>I change the parameter >> >> >> >>" >> >>mapObj map = new mapObj(mapName); >> >>map.setMetaData( "ows_onlineresource", "http://dummy.org/" ); >> >>req.setParameter( "SERVICE", "WMS" ); >>req.setParameter( "VERSION", "1.1.0" ); >>req.setParameter( "REQUEST", "GetCapabilities" ); >>" >> >>For >> >>" >>mapObj map = new >>mapObj("c:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map"); >> >>map.setMetaData( "ows_onlineresource", "http://localhost/cgi-bin/mapserv" >>); >> >> >> >>OWSRequest req = new OWSRequest(); >> >> >> >>req.setParameter( "SERVICE", "WFS" ); >> >>req.setParameter( "VERSION", "1.0.0" ); >> >>req.setParameter( "REQUEST", "getfeature" ); >> >>req.setParameter( "TYPENAME", "layer_name" ); >> >>" >> >>And obtain this error >> >> >> >>" >> >># >> >># An unexpected error has been detected by HotSpot Virtual Machine: >> >># >> >># EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x036b68c3, pid=7444, >>tid=7552 >> >># >> >># Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing) >> >># Problematic frame: >> >># C [gdal14.dll+0x168c3] >> >># >> >># An error report file with more information is saved as >>hs_err_pid5260.log >> >># >> >># If you would like to submit a bug report, please visit: >> >># http://java.sun.com/webapps/bugreport/crash.jsp >> >># >> >>" >> >>somebody can help me ???? >> >>Thanks in advance! >> >>_________________________________________________________________ >>Hor?scopo, tarot, numerolog?a... Escucha lo que te dicen los astros. >>http://astrocentro.msn.es/ >> _________________________________________________________________ Acepta el reto MSN Premium: Correos m?s divertidos con fotos y textos incre?bles en MSN Premium. Desc?rgalo y pru?balo 2 meses gratis. http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos From feigle at 126.COM Wed Jun 20 05:17:57 2007 From: feigle at 126.COM (=?GB2312?Q?feigle_Dou?=) Date: Wed, 20 Jun 2007 07:17:57 -0500 Subject: other options to handle the geospatial operations in mapserver?? Message-ID: Hi,All? I want to design a new system to display satellite images through web-gis which based on mapserver. In the old version i use oracle spatial to handle the geospatial operations,such as such as overlap of two polygons. and use php/mapscript to search Oracle spatial . Now,i want to use a new method to handle the geospatial opetations. Does PostGIS,MapInfo or GML(Geography Markup Language) can work for this function? or other database system can work for this function based on mapserver as Oracle Spatial do? Does php/mapscript can work with PostGIS, MapInfo etc?? Anyone give me some suggestion? Any information will be appreciated thanks a million! feigle From piero.cavalieri at GMAIL.COM Wed Jun 20 05:21:52 2007 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Wed, 20 Jun 2007 14:21:52 +0200 Subject: Firefox & IE doesn't work with GeoTIFF In-Reply-To: <08223770-4A64-4BC8-BBF3-D1DE2D0C8C36@MAIL.RU> Message-ID: If you want only one coordinate of clicked point, you could do a second query and use [mapx], [mapy] (and also [maplon] and [maplat]) template parameters. Piero 2007/6/20, Igor Evdokimov : > > 20.06.2007, ? 17:25, Guillaume Sueur ?????(?): > > > do you need georeferencing information on the client side image ? > > what for ? if you just need the image coordinates, you can retrieve > > them from the server. > > I want to get map coordinates with map image and I thought it would > be the best way to get > GeoTIFF with embedded geoinformation rather than JPEG etc. > > Thanks! > > Best regards, Igor. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Wed Jun 20 05:39:14 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 20 Jun 2007 08:39:14 -0400 Subject: ROSA pan In-Reply-To: <7af310f80706191342n1340833aue21e605d8ec79fc7@mail.gmail.com> Message-ID: Chameleon has its own mailing list for questions like this (join at http://lists.maptools.org/mailman/listinfo/chameleon). Eduardo Zenaide wrote: > other question: i'm trying to use chameleon just to understand the > widgets. i've already put the files and create the conf file. happens > that all pages give this error: > > *Warning*: > fopen(c:/tmp/ms_tmp/9b39e07d9c2fa23a768d6ef41c196df3_mlt.inc.php) [ > function.fopen ]: > failed to open stream: No such file or directory in > *C:\ms4w\apps\chameleon\htdocs\common\mlt\mlt.php* on line *743 > > ** C:\ms4w\apps\chameleon\htdocs\common\mlt\mlt.php* is correct. what > could it be? > > thanks in advance > > 2007/6/19, Eduardo Zenaide >: > > can i use it without using chameleon adding it to other application? > > 2007/6/19, Jeff McKenna >: > > You might have better luck using something like Chameleon which > has a > pan widget out-of-the-box. > > jeff > > > > > Eduardo Zenaide wrote: > > hi, > > > > how can i use a nice pan with ROSA applet? > > like, instead of that 'recenter' tool, could i be able to pan? > > > > -- > > Eduardo Zenaide > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From jmckenna at DMSOLUTIONS.CA Wed Jun 20 05:40:58 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 20 Jun 2007 08:40:58 -0400 Subject: ROSA pan In-Reply-To: <200706200017.l5K0HSQQ019554@sprint1.tenix.com> Message-ID: ROSA is a very old inactive project, which is why it was removed from the maptools site. LITTLE Nelson wrote: > Is the Rosa Applet no longer supported? There is no longer a link to it > from the maptools.org website. > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From umberto.nicoletti at GMAIL.COM Wed Jun 20 06:33:47 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 20 Jun 2007 15:33:47 +0200 Subject: mapscript with java In-Reply-To: Message-ID: Which version of ms4w? Umberto On 6/20/07, Victor Herrero Cazurro wrote: > Hello Umberto, > > this is the information that appears in the file "hs_err_pid5260.log". > > the version of mapserver that I use is the one of "MS4W". it is why it comes > precompiled and when not compiling I do not have it access to the > configuration. > > > # > # An unexpected error has been detected by HotSpot Virtual Machine: > # > # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0492fadc, pid=5260, > tid=5836 > # > # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing) > # Problematic frame: > # C [gdal14.dll+0x18fadc] > # > > --------------- T H R E A D --------------- > > Current thread (0x02d48788): JavaThread "Thread-41" daemon > [_thread_in_native, id=5836] > > siginfo: ExceptionCode=0xc0000005, reading address 0x00000004 > > Registers: > EAX=0x00000000, EBX=0x055d0c48, ECX=0x00000000, EDX=0x7c38b1c0 > ESP=0x053dd8bc, EBP=0x056a6dd0, ESI=0x051f7580, EDI=0x00000001 > EIP=0x0492fadc, EFLAGS=0x00010206 > > Top of Stack: (sp=0x053dd8bc) > 0x053dd8bc: 04a81740 04a81704 05218ff0 055d0c48 > 0x053dd8cc: 056a6dd0 0467aefc 05622b78 7c3505dc > 0x053dd8dc: 0454cb50 055d0c48 05622b78 00000001 > 0x053dd8ec: 05213de0 056a6dd0 0454d115 056a6dd0 > 0x053dd8fc: 05622b78 05218fb8 056a6dd0 04560ec5 > 0x053dd90c: 056a6dd0 00000010 0457188c 056a6dd0 > 0x053dd91c: 0566f008 0520e050 0521f358 ffffffff > 0x053dd92c: 0521f358 05218fb8 0521f4d8 056a6dd0 > > Instructions: (pc=0x0492fadc) > 0x0492facc: 17 a8 04 68 40 17 a8 04 e8 a1 18 e7 ff 8b 4e 0c > 0x0492fadc: 8b 14 b9 52 e8 ac 3d e7 ff 8b 4e 08 8b 46 0c 8b > > > Stack: [0x053a0000,0x053e0000), sp=0x053dd8bc, free space=246k > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native > code) > C [gdal14.dll+0x18fadc] > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_OWSDispatch(JJ)I+0 > j > edu.umn.gis.mapscript.mapObj.OWSDispatch(Ledu/umn/gis/mapscript/OWSRequest;)I+8 > j es.nomenclator.struts.action.MapServerAction$WxSTest_thread.run()V+66 > v ~StubRoutines::call_stub > > --------------- P R O C E S S --------------- > > Java Threads: ( => current thread ) > 0x02d5c5d8 JavaThread "Thread-42" daemon [_thread_in_native, id=5340] > =>0x02d48788 JavaThread "Thread-41" daemon [_thread_in_native, id=5836] > 0x00a82ea0 JavaThread "TP-Monitor" daemon [_thread_blocked, id=6040] > 0x00a82518 JavaThread "TP-Processor4" daemon [_thread_in_native, id=6004] > 0x02d97998 JavaThread "TP-Processor3" daemon [_thread_blocked, id=6240] > 0x02d97010 JavaThread "TP-Processor2" daemon [_thread_blocked, id=6260] > 0x00aab5d8 JavaThread "TP-Processor1" daemon [_thread_blocked, id=5888] > 0x00aa98c0 JavaThread "http-8080-Monitor" [_thread_blocked, id=5948] > 0x03252ab8 JavaThread "http-8080-Processor25" daemon [_thread_blocked, > id=8136] > 0x03251ff0 JavaThread "http-8080-Processor24" daemon [_thread_blocked, > id=6032] > 0x03251580 JavaThread "http-8080-Processor23" daemon [_thread_blocked, > id=6016] > 0x03250b10 JavaThread "http-8080-Processor22" daemon [_thread_blocked, > id=6068] > 0x03250130 JavaThread "http-8080-Processor21" daemon [_thread_blocked, > id=5636] > 0x031f7680 JavaThread "http-8080-Processor20" daemon [_thread_blocked, > id=6052] > 0x031f6c10 JavaThread "http-8080-Processor19" daemon [_thread_in_native, > id=6036] > 0x031f61a0 JavaThread "http-8080-Processor18" daemon [_thread_blocked, > id=6012] > 0x0315a220 JavaThread "http-8080-Processor17" daemon [_thread_blocked, > id=5984] > 0x03159808 JavaThread "http-8080-Processor16" daemon [_thread_blocked, > id=6028] > 0x031542a8 JavaThread "http-8080-Processor15" daemon [_thread_blocked, > id=7832] > 0x03161408 JavaThread "http-8080-Processor14" daemon [_thread_blocked, > id=5696] > 0x02ef0dd0 JavaThread "http-8080-Processor13" daemon [_thread_blocked, > id=5016] > 0x02ef0c48 JavaThread "http-8080-Processor12" daemon [_thread_blocked, > id=5996] > 0x03166110 JavaThread "http-8080-Processor11" daemon [_thread_blocked, > id=5992] > 0x0324b9d0 JavaThread "http-8080-Processor10" daemon [_thread_blocked, > id=6000] > 0x031673e0 JavaThread "http-8080-Processor9" daemon [_thread_blocked, > id=5600] > 0x0322dd18 JavaThread "http-8080-Processor8" daemon [_thread_blocked, > id=6084] > 0x03242808 JavaThread "http-8080-Processor7" daemon [_thread_blocked, > id=6112] > 0x031ef7f0 JavaThread "http-8080-Processor6" daemon [_thread_blocked, > id=5476] > 0x031babd0 JavaThread "http-8080-Processor5" daemon [_thread_blocked, > id=6140] > 0x02f86d80 JavaThread "http-8080-Processor4" daemon [_thread_blocked, > id=5700] > 0x031d0da0 JavaThread "http-8080-Processor3" daemon [_thread_blocked, > id=6124] > 0x031526e0 JavaThread "http-8080-Processor2" daemon [_thread_blocked, > id=6220] > 0x031235c0 JavaThread "http-8080-Processor1" daemon [_thread_blocked, > id=6152] > 0x031c0c88 JavaThread > "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon > [_thread_blocked, id=1860] > 0x031c1bc8 JavaThread "MySQL Statement Cancellation Timer" daemon > [_thread_blocked, id=6168] > 0x02d36d10 JavaThread "Timer-0" daemon [_thread_blocked, id=5288] > 0x00a72148 JavaThread "Low Memory Detector" daemon [_thread_blocked, > id=5536] > 0x00a70dc8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4412] > 0x00a700c0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, > id=5348] > 0x00a6af70 JavaThread "Finalizer" daemon [_thread_blocked, id=6180] > 0x00a6ab00 JavaThread "Reference Handler" daemon [_thread_blocked, > id=4328] > 0x003a64f8 JavaThread "main" [_thread_in_native, id=5036] > > Other Threads: > 0x00a681d0 VMThread [id=6268] > 0x00a6fda0 WatcherThread [id=5272] > > VM state:not at safepoint (normal execution) > > VM Mutex/Monitor currently owned by a thread: None > > Heap > def new generation total 768K, used 190K [0x22ad0000, 0x22ba0000, > 0x22fb0000) > eden space 704K, 27% used [0x22ad0000, 0x22affb18, 0x22b80000) > from space 64K, 0% used [0x22b80000, 0x22b80000, 0x22b90000) > to space 64K, 0% used [0x22b90000, 0x22b90000, 0x22ba0000) > tenured generation total 9124K, used 5473K [0x22fb0000, 0x23899000, > 0x26ad0000) > the space 9124K, 59% used [0x22fb0000, 0x23508420, 0x23508600, > 0x23899000) > compacting perm gen total 8960K, used 8816K [0x26ad0000, 0x27390000, > 0x2aad0000) > the space 8960K, 98% used [0x26ad0000, 0x2736c120, 0x2736c200, > 0x27390000) > ro space 8192K, 67% used [0x2aad0000, 0x2b02f150, 0x2b02f200, > 0x2b2d0000) > rw space 12288K, 47% used [0x2b2d0000, 0x2b879750, 0x2b879800, > 0x2bed0000) > > Dynamic libraries: > 0x00400000 - 0x0040d000 C:\Archivos de > programa\Java\jdk1.5.0_11\bin\javaw.exe > 0x7c910000 - 0x7c9c6000 C:\WINDOWS\system32\ntdll.dll > 0x7c800000 - 0x7c901000 C:\WINDOWS\system32\kernel32.dll > 0x77da0000 - 0x77e4c000 C:\WINDOWS\system32\ADVAPI32.dll > 0x77e50000 - 0x77ee1000 C:\WINDOWS\system32\RPCRT4.dll > 0x77d10000 - 0x77da0000 C:\WINDOWS\system32\USER32.dll > 0x77ef0000 - 0x77f36000 C:\WINDOWS\system32\GDI32.dll > 0x77be0000 - 0x77c38000 C:\WINDOWS\system32\MSVCRT.dll > 0x6d740000 - 0x6d8dd000 C:\Archivos de > programa\Java\jdk1.5.0_11\jre\bin\client\jvm.dll > 0x76b00000 - 0x76b2e000 C:\WINDOWS\system32\WINMM.dll > 0x6bd00000 - 0x6bd0d000 C:\WINDOWS\system32\SYNCOR11.DLL > 0x6d300000 - 0x6d308000 C:\Archivos de > programa\Java\jdk1.5.0_11\jre\bin\hpi.dll > 0x76bb0000 - 0x76bbb000 C:\WINDOWS\system32\PSAPI.DLL > 0x6d710000 - 0x6d71c000 C:\Archivos de > programa\Java\jdk1.5.0_11\jre\bin\verify.dll > 0x6d380000 - 0x6d39d000 C:\Archivos de > programa\Java\jdk1.5.0_11\jre\bin\java.dll > 0x6d730000 - 0x6d73f000 C:\Archivos de > programa\Java\jdk1.5.0_11\jre\bin\zip.dll > 0x6d540000 - 0x6d553000 C:\Archivos de > programa\Java\jdk1.5.0_11\jre\bin\net.dll > 0x71a30000 - 0x71a47000 C:\WINDOWS\system32\WS2_32.dll > 0x71a20000 - 0x71a28000 C:\WINDOWS\system32\WS2HELP.dll > 0x20b00000 - 0x20b45000 C:\WINDOWS\system32\imon.dll > 0x71a50000 - 0x71a5a000 C:\WINDOWS\system32\WSOCK32.dll > 0x20c00000 - 0x20c0d000 C:\Archivos de programa\Eset\pr_imon.dll > 0x77660000 - 0x77681000 C:\WINDOWS\system32\NTMARTA.DLL > 0x76f20000 - 0x76f4d000 C:\WINDOWS\system32\WLDAP32.dll > 0x774b0000 - 0x775ec000 C:\WINDOWS\system32\ole32.dll > 0x71b90000 - 0x71ba3000 C:\WINDOWS\system32\SAMLIB.dll > 0x719d0000 - 0x71a10000 C:\WINDOWS\system32\mswsock.dll > 0x66740000 - 0x66799000 C:\WINDOWS\system32\hnetcfg.dll > 0x71a10000 - 0x71a18000 C:\WINDOWS\System32\wshtcpip.dll > 0x10000000 - 0x10095000 C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll > 0x04510000 - 0x0473f000 C:\ms4w\Apache\cgi-bin\libmap.dll > 0x04740000 - 0x04752000 C:\ms4w\Apache\cgi-bin\zlib1.dll > 0x04760000 - 0x04796000 C:\ms4w\Apache\cgi-bin\proj.dll > 0x7c340000 - 0x7c396000 C:\WINDOWS\system32\MSVCR71.dll > 0x047a0000 - 0x04ba2000 C:\ms4w\tools\gdal-ogr\gdal14.dll > 0x745e0000 - 0x7461d000 C:\WINDOWS\system32\ODBC32.dll > 0x58c30000 - 0x58cc7000 C:\WINDOWS\system32\COMCTL32.dll > 0x7c9d0000 - 0x7d1ee000 C:\WINDOWS\system32\SHELL32.dll > 0x77f40000 - 0x77fb6000 C:\WINDOWS\system32\SHLWAPI.dll > 0x76360000 - 0x763aa000 C:\WINDOWS\system32\comdlg32.dll > 0x7c3a0000 - 0x7c41b000 C:\WINDOWS\system32\MSVCP71.dll > 0x770f0000 - 0x7717c000 C:\WINDOWS\system32\OLEAUT32.dll > 0x04bb0000 - 0x04bdb000 C:\ms4w\Apache\cgi-bin\libcurl.dll > 0x04be0000 - 0x04cee000 C:\ms4w\Apache\cgi-bin\LIBEAY32.dll > 0x04cf0000 - 0x04d21000 C:\ms4w\Apache\cgi-bin\SSLEAY32.dll > 0x55300000 - 0x5542a000 C:\ms4w\Apache\cgi-bin\pdflib.dll > 0x04d30000 - 0x04d4d000 C:\ms4w\Apache\cgi-bin\LIBPQ.dll > 0x76740000 - 0x76749000 C:\WINDOWS\system32\SHFOLDER.dll > 0x04d50000 - 0x04e64000 C:\ms4w\Apache\cgi-bin\iconv.dll > 0x04e70000 - 0x04e7d000 C:\ms4w\Apache\cgi-bin\libfcgi.dll > 0x04e80000 - 0x04f6c000 C:\ms4w\Apache\cgi-bin\geos_c.dll > 0x04f70000 - 0x0505a000 C:\ms4w\Apache\cgi-bin\libxml2.dll > 0x773a0000 - 0x774a2000 > C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll > 0x20000000 - 0x20018000 C:\WINDOWS\system32\odbcint.dll > 0x612d0000 - 0x612eb000 C:\WINDOWS\system32\odbccp32.dll > 0x77bd0000 - 0x77bd8000 C:\WINDOWS\system32\VERSION.dll > 0x76ee0000 - 0x76f07000 C:\WINDOWS\system32\DNSAPI.dll > 0x76f70000 - 0x76f78000 C:\WINDOWS\System32\winrnr.dll > 0x76f80000 - 0x76f86000 C:\WINDOWS\system32\rasadhlp.dll > 0x00000000 - 0x00000000 > > VM Arguments: > jvm_args: -Dcatalina.home=C:\Tomcat 5 -Dcatalina.base=C:\Tomcat 5 > -Djava.endorsed.dirs=C:\Tomcat 5/common/endorsed -Djava.io.tmpdir=C:\Tomcat > 5\temp -Djava.library.path=C:\Archivos de > programa\Java\jdk1.5.0_11\bin;C:\Tomcat > 5\bin;C:/ms4w/Apache/cgi-bin/mapscript/java;C:/ms4w/Apache/cgi-bin > -Dsun.io.useCanonCaches=false > java_command: org.apache.catalina.startup.Bootstrap start > Launcher Type: SUN_STANDARD > > Environment Variables: > PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ms4w\tools\gdal-ogr;C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java > USERNAME=victorherrero > OS=Windows_NT > PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel > > > > --------------- S Y S T E M --------------- > > OS: Windows XP Build 2600 Service Pack 2 > > CPU:total 1 (cores per cpu 1, threads per core 1) family 15 model 2 stepping > 9, cmov, cx8, fxsr, mmx, sse, sse2 > > Memory: 4k page, physical 1539616k(618212k free), swap 3484984k(2705696k > free) > > vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on > Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0 > > > > > > >From: "Umberto Nicoletti" > >To: "Victor Herrero Cazurro" > >CC: MAPSERVER-USERS at lists.umn.edu > >Subject: Re: [UMN_MAPSERVER-USERS] mapscript with java > >Date: Wed, 20 Jun 2007 11:11:28 +0200 > > > >Please read this first: > > > >http://mapserver.gis.umn.edu/docs/howto/javamapscript > > > >especially last section. We can't help you without that info. > > > >Umberto > > > >On 6/20/07, Victor Herrero Cazurro wrote: > >>Hello! > >> > >> > >> > >>I'm a java Developer and i use mapscript library to make a consult "WFS > >>getfeature" to "MAPSERVER" in Apache, i prove the java example in this url > >> > >>"http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#java-example" > >> > >> > >> > >>I change the parameter > >> > >> > >> > >>" > >> > >>mapObj map = new mapObj(mapName); > >> > >>map.setMetaData( "ows_onlineresource", "http://dummy.org/" ); > >> > >>req.setParameter( "SERVICE", "WMS" ); > >>req.setParameter( "VERSION", "1.1.0" ); > >>req.setParameter( "REQUEST", "GetCapabilities" ); > >>" > >> > >>For > >> > >>" > >>mapObj map = new > >>mapObj("c:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map"); > >> > >>map.setMetaData( "ows_onlineresource", "http://localhost/cgi-bin/mapserv" > >>); > >> > >> > >> > >>OWSRequest req = new OWSRequest(); > >> > >> > >> > >>req.setParameter( "SERVICE", "WFS" ); > >> > >>req.setParameter( "VERSION", "1.0.0" ); > >> > >>req.setParameter( "REQUEST", "getfeature" ); > >> > >>req.setParameter( "TYPENAME", "layer_name" ); > >> > >>" > >> > >>And obtain this error > >> > >> > >> > >>" > >> > >># > >> > >># An unexpected error has been detected by HotSpot Virtual Machine: > >> > >># > >> > >># EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x036b68c3, pid=7444, > >>tid=7552 > >> > >># > >> > >># Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing) > >> > >># Problematic frame: > >> > >># C [gdal14.dll+0x168c3] > >> > >># > >> > >># An error report file with more information is saved as > >>hs_err_pid5260.log > >> > >># > >> > >># If you would like to submit a bug report, please visit: > >> > >># http://java.sun.com/webapps/bugreport/crash.jsp > >> > >># > >> > >>" > >> > >>somebody can help me ???? > >> > >>Thanks in advance! > >> > >>_________________________________________________________________ > >>Hor?scopo, tarot, numerolog?a... Escucha lo que te dicen los astros. > >>http://astrocentro.msn.es/ > >> > > _________________________________________________________________ > Acepta el reto MSN Premium: Correos m?s divertidos con fotos y textos > incre?bles en MSN Premium. Desc?rgalo y pru?balo 2 meses gratis. > http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos > From dmorissette at MAPGEARS.COM Wed Jun 20 06:49:19 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 20 Jun 2007 09:49:19 -0400 Subject: ROSA pan In-Reply-To: <4679205A.8080800@dmsolutions.ca> Message-ID: You can still get to it with the following URL: http://www.maptools.org/rosa/ Daniel Jeff McKenna wrote: > ROSA is a very old inactive project, which is why it was removed from > the maptools site. > > > LITTLE Nelson wrote: >> Is the Rosa Applet no longer supported? There is no longer a link to it >> from the maptools.org website. > > -- Daniel Morissette http://www.mapgears.com/ From la_barrenadora at HOTMAIL.COM Wed Jun 20 07:08:00 2007 From: la_barrenadora at HOTMAIL.COM (Victor Herrero Cazurro) Date: Wed, 20 Jun 2007 16:08:00 +0200 Subject: mapscript with java In-Reply-To: <75b4b93e0706200633l161c4766r2a8c8735cb62c61c@mail.gmail.com> Message-ID: The version to MS4W is 2.2.3. Victor >From: "Umberto Nicoletti" >To: "Victor Herrero Cazurro" >CC: MAPSERVER-USERS at lists.umn.edu >Subject: Re: [UMN_MAPSERVER-USERS] mapscript with java >Date: Wed, 20 Jun 2007 15:33:47 +0200 > >Which version of ms4w? > >Umberto > >On 6/20/07, Victor Herrero Cazurro wrote: >>Hello Umberto, >> >>this is the information that appears in the file "hs_err_pid5260.log". >> >>the version of mapserver that I use is the one of "MS4W". it is why it >>comes >>precompiled and when not compiling I do not have it access to the >>configuration. >> >> >># >># An unexpected error has been detected by HotSpot Virtual Machine: >># >># EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0492fadc, pid=5260, >>tid=5836 >># >># Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing) >># Problematic frame: >># C [gdal14.dll+0x18fadc] >># >> >>--------------- T H R E A D --------------- >> >>Current thread (0x02d48788): JavaThread "Thread-41" daemon >>[_thread_in_native, id=5836] >> >>siginfo: ExceptionCode=0xc0000005, reading address 0x00000004 >> >>Registers: >>EAX=0x00000000, EBX=0x055d0c48, ECX=0x00000000, EDX=0x7c38b1c0 >>ESP=0x053dd8bc, EBP=0x056a6dd0, ESI=0x051f7580, EDI=0x00000001 >>EIP=0x0492fadc, EFLAGS=0x00010206 >> >>Top of Stack: (sp=0x053dd8bc) >>0x053dd8bc: 04a81740 04a81704 05218ff0 055d0c48 >>0x053dd8cc: 056a6dd0 0467aefc 05622b78 7c3505dc >>0x053dd8dc: 0454cb50 055d0c48 05622b78 00000001 >>0x053dd8ec: 05213de0 056a6dd0 0454d115 056a6dd0 >>0x053dd8fc: 05622b78 05218fb8 056a6dd0 04560ec5 >>0x053dd90c: 056a6dd0 00000010 0457188c 056a6dd0 >>0x053dd91c: 0566f008 0520e050 0521f358 ffffffff >>0x053dd92c: 0521f358 05218fb8 0521f4d8 056a6dd0 >> >>Instructions: (pc=0x0492fadc) >>0x0492facc: 17 a8 04 68 40 17 a8 04 e8 a1 18 e7 ff 8b 4e 0c >>0x0492fadc: 8b 14 b9 52 e8 ac 3d e7 ff 8b 4e 08 8b 46 0c 8b >> >> >>Stack: [0x053a0000,0x053e0000), sp=0x053dd8bc, free space=246k >>Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native >>code) >>C [gdal14.dll+0x18fadc] >> >>Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) >>j edu.umn.gis.mapscript.mapscriptJNI.mapObj_OWSDispatch(JJ)I+0 >>j >>edu.umn.gis.mapscript.mapObj.OWSDispatch(Ledu/umn/gis/mapscript/OWSRequest;)I+8 >>j es.nomenclator.struts.action.MapServerAction$WxSTest_thread.run()V+66 >>v ~StubRoutines::call_stub >> >>--------------- P R O C E S S --------------- >> >>Java Threads: ( => current thread ) >> 0x02d5c5d8 JavaThread "Thread-42" daemon [_thread_in_native, id=5340] >>=>0x02d48788 JavaThread "Thread-41" daemon [_thread_in_native, id=5836] >> 0x00a82ea0 JavaThread "TP-Monitor" daemon [_thread_blocked, id=6040] >> 0x00a82518 JavaThread "TP-Processor4" daemon [_thread_in_native, >>id=6004] >> 0x02d97998 JavaThread "TP-Processor3" daemon [_thread_blocked, id=6240] >> 0x02d97010 JavaThread "TP-Processor2" daemon [_thread_blocked, id=6260] >> 0x00aab5d8 JavaThread "TP-Processor1" daemon [_thread_blocked, id=5888] >> 0x00aa98c0 JavaThread "http-8080-Monitor" [_thread_blocked, id=5948] >> 0x03252ab8 JavaThread "http-8080-Processor25" daemon [_thread_blocked, >>id=8136] >> 0x03251ff0 JavaThread "http-8080-Processor24" daemon [_thread_blocked, >>id=6032] >> 0x03251580 JavaThread "http-8080-Processor23" daemon [_thread_blocked, >>id=6016] >> 0x03250b10 JavaThread "http-8080-Processor22" daemon [_thread_blocked, >>id=6068] >> 0x03250130 JavaThread "http-8080-Processor21" daemon [_thread_blocked, >>id=5636] >> 0x031f7680 JavaThread "http-8080-Processor20" daemon [_thread_blocked, >>id=6052] >> 0x031f6c10 JavaThread "http-8080-Processor19" daemon >>[_thread_in_native, >>id=6036] >> 0x031f61a0 JavaThread "http-8080-Processor18" daemon [_thread_blocked, >>id=6012] >> 0x0315a220 JavaThread "http-8080-Processor17" daemon [_thread_blocked, >>id=5984] >> 0x03159808 JavaThread "http-8080-Processor16" daemon [_thread_blocked, >>id=6028] >> 0x031542a8 JavaThread "http-8080-Processor15" daemon [_thread_blocked, >>id=7832] >> 0x03161408 JavaThread "http-8080-Processor14" daemon [_thread_blocked, >>id=5696] >> 0x02ef0dd0 JavaThread "http-8080-Processor13" daemon [_thread_blocked, >>id=5016] >> 0x02ef0c48 JavaThread "http-8080-Processor12" daemon [_thread_blocked, >>id=5996] >> 0x03166110 JavaThread "http-8080-Processor11" daemon [_thread_blocked, >>id=5992] >> 0x0324b9d0 JavaThread "http-8080-Processor10" daemon [_thread_blocked, >>id=6000] >> 0x031673e0 JavaThread "http-8080-Processor9" daemon [_thread_blocked, >>id=5600] >> 0x0322dd18 JavaThread "http-8080-Processor8" daemon [_thread_blocked, >>id=6084] >> 0x03242808 JavaThread "http-8080-Processor7" daemon [_thread_blocked, >>id=6112] >> 0x031ef7f0 JavaThread "http-8080-Processor6" daemon [_thread_blocked, >>id=5476] >> 0x031babd0 JavaThread "http-8080-Processor5" daemon [_thread_blocked, >>id=6140] >> 0x02f86d80 JavaThread "http-8080-Processor4" daemon [_thread_blocked, >>id=5700] >> 0x031d0da0 JavaThread "http-8080-Processor3" daemon [_thread_blocked, >>id=6124] >> 0x031526e0 JavaThread "http-8080-Processor2" daemon [_thread_blocked, >>id=6220] >> 0x031235c0 JavaThread "http-8080-Processor1" daemon [_thread_blocked, >>id=6152] >> 0x031c0c88 JavaThread >>"ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon >>[_thread_blocked, id=1860] >> 0x031c1bc8 JavaThread "MySQL Statement Cancellation Timer" daemon >>[_thread_blocked, id=6168] >> 0x02d36d10 JavaThread "Timer-0" daemon [_thread_blocked, id=5288] >> 0x00a72148 JavaThread "Low Memory Detector" daemon [_thread_blocked, >>id=5536] >> 0x00a70dc8 JavaThread "CompilerThread0" daemon [_thread_blocked, >>id=4412] >> 0x00a700c0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, >>id=5348] >> 0x00a6af70 JavaThread "Finalizer" daemon [_thread_blocked, id=6180] >> 0x00a6ab00 JavaThread "Reference Handler" daemon [_thread_blocked, >>id=4328] >> 0x003a64f8 JavaThread "main" [_thread_in_native, id=5036] >> >>Other Threads: >> 0x00a681d0 VMThread [id=6268] >> 0x00a6fda0 WatcherThread [id=5272] >> >>VM state:not at safepoint (normal execution) >> >>VM Mutex/Monitor currently owned by a thread: None >> >>Heap >>def new generation total 768K, used 190K [0x22ad0000, 0x22ba0000, >>0x22fb0000) >> eden space 704K, 27% used [0x22ad0000, 0x22affb18, 0x22b80000) >> from space 64K, 0% used [0x22b80000, 0x22b80000, 0x22b90000) >> to space 64K, 0% used [0x22b90000, 0x22b90000, 0x22ba0000) >>tenured generation total 9124K, used 5473K [0x22fb0000, 0x23899000, >>0x26ad0000) >> the space 9124K, 59% used [0x22fb0000, 0x23508420, 0x23508600, >>0x23899000) >>compacting perm gen total 8960K, used 8816K [0x26ad0000, 0x27390000, >>0x2aad0000) >> the space 8960K, 98% used [0x26ad0000, 0x2736c120, 0x2736c200, >>0x27390000) >> ro space 8192K, 67% used [0x2aad0000, 0x2b02f150, 0x2b02f200, >>0x2b2d0000) >> rw space 12288K, 47% used [0x2b2d0000, 0x2b879750, 0x2b879800, >>0x2bed0000) >> >>Dynamic libraries: >>0x00400000 - 0x0040d000 C:\Archivos de >>programa\Java\jdk1.5.0_11\bin\javaw.exe >>0x7c910000 - 0x7c9c6000 C:\WINDOWS\system32\ntdll.dll >>0x7c800000 - 0x7c901000 C:\WINDOWS\system32\kernel32.dll >>0x77da0000 - 0x77e4c000 C:\WINDOWS\system32\ADVAPI32.dll >>0x77e50000 - 0x77ee1000 C:\WINDOWS\system32\RPCRT4.dll >>0x77d10000 - 0x77da0000 C:\WINDOWS\system32\USER32.dll >>0x77ef0000 - 0x77f36000 C:\WINDOWS\system32\GDI32.dll >>0x77be0000 - 0x77c38000 C:\WINDOWS\system32\MSVCRT.dll >>0x6d740000 - 0x6d8dd000 C:\Archivos de >>programa\Java\jdk1.5.0_11\jre\bin\client\jvm.dll >>0x76b00000 - 0x76b2e000 C:\WINDOWS\system32\WINMM.dll >>0x6bd00000 - 0x6bd0d000 C:\WINDOWS\system32\SYNCOR11.DLL >>0x6d300000 - 0x6d308000 C:\Archivos de >>programa\Java\jdk1.5.0_11\jre\bin\hpi.dll >>0x76bb0000 - 0x76bbb000 C:\WINDOWS\system32\PSAPI.DLL >>0x6d710000 - 0x6d71c000 C:\Archivos de >>programa\Java\jdk1.5.0_11\jre\bin\verify.dll >>0x6d380000 - 0x6d39d000 C:\Archivos de >>programa\Java\jdk1.5.0_11\jre\bin\java.dll >>0x6d730000 - 0x6d73f000 C:\Archivos de >>programa\Java\jdk1.5.0_11\jre\bin\zip.dll >>0x6d540000 - 0x6d553000 C:\Archivos de >>programa\Java\jdk1.5.0_11\jre\bin\net.dll >>0x71a30000 - 0x71a47000 C:\WINDOWS\system32\WS2_32.dll >>0x71a20000 - 0x71a28000 C:\WINDOWS\system32\WS2HELP.dll >>0x20b00000 - 0x20b45000 C:\WINDOWS\system32\imon.dll >>0x71a50000 - 0x71a5a000 C:\WINDOWS\system32\WSOCK32.dll >>0x20c00000 - 0x20c0d000 C:\Archivos de programa\Eset\pr_imon.dll >>0x77660000 - 0x77681000 C:\WINDOWS\system32\NTMARTA.DLL >>0x76f20000 - 0x76f4d000 C:\WINDOWS\system32\WLDAP32.dll >>0x774b0000 - 0x775ec000 C:\WINDOWS\system32\ole32.dll >>0x71b90000 - 0x71ba3000 C:\WINDOWS\system32\SAMLIB.dll >>0x719d0000 - 0x71a10000 C:\WINDOWS\system32\mswsock.dll >>0x66740000 - 0x66799000 C:\WINDOWS\system32\hnetcfg.dll >>0x71a10000 - 0x71a18000 C:\WINDOWS\System32\wshtcpip.dll >>0x10000000 - 0x10095000 >>C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll >>0x04510000 - 0x0473f000 C:\ms4w\Apache\cgi-bin\libmap.dll >>0x04740000 - 0x04752000 C:\ms4w\Apache\cgi-bin\zlib1.dll >>0x04760000 - 0x04796000 C:\ms4w\Apache\cgi-bin\proj.dll >>0x7c340000 - 0x7c396000 C:\WINDOWS\system32\MSVCR71.dll >>0x047a0000 - 0x04ba2000 C:\ms4w\tools\gdal-ogr\gdal14.dll >>0x745e0000 - 0x7461d000 C:\WINDOWS\system32\ODBC32.dll >>0x58c30000 - 0x58cc7000 C:\WINDOWS\system32\COMCTL32.dll >>0x7c9d0000 - 0x7d1ee000 C:\WINDOWS\system32\SHELL32.dll >>0x77f40000 - 0x77fb6000 C:\WINDOWS\system32\SHLWAPI.dll >>0x76360000 - 0x763aa000 C:\WINDOWS\system32\comdlg32.dll >>0x7c3a0000 - 0x7c41b000 C:\WINDOWS\system32\MSVCP71.dll >>0x770f0000 - 0x7717c000 C:\WINDOWS\system32\OLEAUT32.dll >>0x04bb0000 - 0x04bdb000 C:\ms4w\Apache\cgi-bin\libcurl.dll >>0x04be0000 - 0x04cee000 C:\ms4w\Apache\cgi-bin\LIBEAY32.dll >>0x04cf0000 - 0x04d21000 C:\ms4w\Apache\cgi-bin\SSLEAY32.dll >>0x55300000 - 0x5542a000 C:\ms4w\Apache\cgi-bin\pdflib.dll >>0x04d30000 - 0x04d4d000 C:\ms4w\Apache\cgi-bin\LIBPQ.dll >>0x76740000 - 0x76749000 C:\WINDOWS\system32\SHFOLDER.dll >>0x04d50000 - 0x04e64000 C:\ms4w\Apache\cgi-bin\iconv.dll >>0x04e70000 - 0x04e7d000 C:\ms4w\Apache\cgi-bin\libfcgi.dll >>0x04e80000 - 0x04f6c000 C:\ms4w\Apache\cgi-bin\geos_c.dll >>0x04f70000 - 0x0505a000 C:\ms4w\Apache\cgi-bin\libxml2.dll >>0x773a0000 - 0x774a2000 >> >>C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll >>0x20000000 - 0x20018000 C:\WINDOWS\system32\odbcint.dll >>0x612d0000 - 0x612eb000 C:\WINDOWS\system32\odbccp32.dll >>0x77bd0000 - 0x77bd8000 C:\WINDOWS\system32\VERSION.dll >>0x76ee0000 - 0x76f07000 C:\WINDOWS\system32\DNSAPI.dll >>0x76f70000 - 0x76f78000 C:\WINDOWS\System32\winrnr.dll >>0x76f80000 - 0x76f86000 C:\WINDOWS\system32\rasadhlp.dll >>0x00000000 - 0x00000000 >> >>VM Arguments: >>jvm_args: -Dcatalina.home=C:\Tomcat 5 -Dcatalina.base=C:\Tomcat 5 >>-Djava.endorsed.dirs=C:\Tomcat 5/common/endorsed >>-Djava.io.tmpdir=C:\Tomcat >>5\temp -Djava.library.path=C:\Archivos de >>programa\Java\jdk1.5.0_11\bin;C:\Tomcat >>5\bin;C:/ms4w/Apache/cgi-bin/mapscript/java;C:/ms4w/Apache/cgi-bin >>-Dsun.io.useCanonCaches=false >>java_command: org.apache.catalina.startup.Bootstrap start >>Launcher Type: SUN_STANDARD >> >>Environment Variables: >>PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ms4w\tools\gdal-ogr;C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java >>USERNAME=victorherrero >>OS=Windows_NT >>PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel >> >> >> >>--------------- S Y S T E M --------------- >> >>OS: Windows XP Build 2600 Service Pack 2 >> >>CPU:total 1 (cores per cpu 1, threads per core 1) family 15 model 2 >>stepping >>9, cmov, cx8, fxsr, mmx, sse, sse2 >> >>Memory: 4k page, physical 1539616k(618212k free), swap 3484984k(2705696k >>free) >> >>vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built >>on >>Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0 >> >> >> >> >> >> >From: "Umberto Nicoletti" >> >To: "Victor Herrero Cazurro" >> >CC: MAPSERVER-USERS at lists.umn.edu >> >Subject: Re: [UMN_MAPSERVER-USERS] mapscript with java >> >Date: Wed, 20 Jun 2007 11:11:28 +0200 >> > >> >Please read this first: >> > >> >http://mapserver.gis.umn.edu/docs/howto/javamapscript >> > >> >especially last section. We can't help you without that info. >> > >> >Umberto >> > >> >On 6/20/07, Victor Herrero Cazurro wrote: >> >>Hello! >> >> >> >> >> >> >> >>I'm a java Developer and i use mapscript library to make a consult "WFS >> >>getfeature" to "MAPSERVER" in Apache, i prove the java example in this >>url >> >> >> >>"http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#java-example" >> >> >> >> >> >> >> >>I change the parameter >> >> >> >> >> >> >> >>" >> >> >> >>mapObj map = new mapObj(mapName); >> >> >> >>map.setMetaData( "ows_onlineresource", "http://dummy.org/" ); >> >> >> >>req.setParameter( "SERVICE", "WMS" ); >> >>req.setParameter( "VERSION", "1.1.0" ); >> >>req.setParameter( "REQUEST", "GetCapabilities" ); >> >>" >> >> >> >>For >> >> >> >>" >> >>mapObj map = new >> >>mapObj("c:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map"); >> >> >> >>map.setMetaData( "ows_onlineresource", >>"http://localhost/cgi-bin/mapserv" >> >>); >> >> >> >> >> >> >> >>OWSRequest req = new OWSRequest(); >> >> >> >> >> >> >> >>req.setParameter( "SERVICE", "WFS" ); >> >> >> >>req.setParameter( "VERSION", "1.0.0" ); >> >> >> >>req.setParameter( "REQUEST", "getfeature" ); >> >> >> >>req.setParameter( "TYPENAME", "layer_name" ); >> >> >> >>" >> >> >> >>And obtain this error >> >> >> >> >> >> >> >>" >> >> >> >># >> >> >> >># An unexpected error has been detected by HotSpot Virtual Machine: >> >> >> >># >> >> >> >># EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x036b68c3, pid=7444, >> >>tid=7552 >> >> >> >># >> >> >> >># Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, >>sharing) >> >> >> >># Problematic frame: >> >> >> >># C [gdal14.dll+0x168c3] >> >> >> >># >> >> >> >># An error report file with more information is saved as >> >>hs_err_pid5260.log >> >> >> >># >> >> >> >># If you would like to submit a bug report, please visit: >> >> >> >># http://java.sun.com/webapps/bugreport/crash.jsp >> >> >> >># >> >> >> >>" >> >> >> >>somebody can help me ???? >> >> >> >>Thanks in advance! >> >> >> >>_________________________________________________________________ >> >>Hor?scopo, tarot, numerolog?a... Escucha lo que te dicen los astros. >> >>http://astrocentro.msn.es/ >> >> >> >>_________________________________________________________________ >>Acepta el reto MSN Premium: Correos m?s divertidos con fotos y textos >>incre?bles en MSN Premium. Desc?rgalo y pru?balo 2 meses gratis. >>http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos >> _________________________________________________________________ Descubre la descarga digital con MSN Music. M?s de un mill?n de canciones. http://music.msn.es/ From nico at LANGHIRANO.IT Wed Jun 20 07:35:08 2007 From: nico at LANGHIRANO.IT (Nico Alberti) Date: Wed, 20 Jun 2007 16:35:08 +0200 Subject: How to use queryByShape Message-ID: Hi everybody. I am quite new to php_mapscript, so excuse me if the question is lame. I am trying to select which points of a shape are inside a particular area, (a shape from a polygon shapefile), so I do something like this, after having instantiated the objects: $map->prepareQuery(); $ret=$layerPoints->queryByShape($ShapeAreaObject); However, even if I am sure that some points fall within the area of $ShapeAreaObject, nothing is selected. It seems I am missing something, but after having read the documentation and the list, I did not find any clue. Using the php_ogr extension, the points that fall within the area (or better its envelope) are correctly selected, but, again, it is certainly my fault, as it's the first time I use this library. Any help will be greatly appreciated, thank you in afvance -- Ciao Nico From almudenarueda at INICIA.ES Wed Jun 20 08:19:59 2007 From: almudenarueda at INICIA.ES (Almudena Rueda Solache) Date: Wed, 20 Jun 2007 17:19:59 +0200 Subject: queryByPoint on PostGIS layers Message-ID: Hi all I?ve a problem while querying PostGIS layers using methods queryByPoint, queryByRect always returns the first register on database. I?m using mapserver 4.10 over windows xp and javamapscript. PostgreSQL version is 8.2.3 and i?m using the postgis version included on that distribution. This is the code i use: . . . . . . pointObj puntoElem = new pointObj(0,0,0); double dX = Double.parseDouble(request.getParameter("x")); double dY = Double.parseDouble(request.getParameter("y")); puntoElem.setX(dX); puntoElem.setY(dY); mapObj mapa = (mapObj)request.getSession(true).getAttribute("mapa"); layerObj layer = mapa.getLayerByName("Nuevos Elementos"); int res = layer.queryByPoint(mapa, puntoElem, mapscriptConstants.MS_SINGLE, -1); . . . . . . . Can somebody help me? thank in advance Almudena La Primitiva. El juego de toda la vida ahora m?s f?cil que nunca. Echa tu apuesta por Internet con Tiscali https://www.ventura24.es/tiscali/primitiva.do?idpartner=tiscali_firma From rwburgholzer at DEQ.VIRGINIA.GOV Wed Jun 20 08:23:48 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Wed, 20 Jun 2007 11:23:48 -0400 Subject: How to use queryByShape Message-ID: At you need to explicitly pass the shape of the selected elements of your overlay shape, something like: $ret=$layerPoints->queryByShape($ShapeAreaObject->getShape(-1,$shapeid)) ; HTH, r.b. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Nico Alberti Sent: Wednesday, June 20, 2007 10:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How to use queryByShape Hi everybody. I am quite new to php_mapscript, so excuse me if the question is lame. I am trying to select which points of a shape are inside a particular area, (a shape from a polygon shapefile), so I do something like this, after having instantiated the objects: $map->prepareQuery(); $ret=$layerPoints->queryByShape($ShapeAreaObject); However, even if I am sure that some points fall within the area of $ShapeAreaObject, nothing is selected. It seems I am missing something, but after having read the documentation and the list, I did not find any clue. Using the php_ogr extension, the points that fall within the area (or better its envelope) are correctly selected, but, again, it is certainly my fault, as it's the first time I use this library. Any help will be greatly appreciated, thank you in afvance -- Ciao Nico From Steve.Lime at DNR.STATE.MN.US Wed Jun 20 08:29:47 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 20 Jun 2007 10:29:47 -0500 Subject: How to use queryByShape In-Reply-To: Message-ID: There is no lame question... ;-) Things to check: - first, is the layer being queried queryable? That is, does it have a TEMPLATE set? - are there any possible projection issues? Search shape in a different coordinate system than the points... - does the search shape have a bounding box? Depending on how you built it there's a chance it may not and the bbox is used to initially select candidate shapes before the more expensive intersection computations are done. There is a method to rebuild the bbox if necessary (name escapes me though). Steve >>> On 6/20/2007 at 9:35 AM, in message , Nico Alberti wrote: > Hi everybody. I am quite new to php_mapscript, so excuse me if the > question is lame. > > I am trying to select which points of a shape are inside a particular > area, (a shape from a polygon shapefile), so I do something like > this, after having instantiated the objects: > > $map->prepareQuery(); > $ret=$layerPoints->queryByShape($ShapeAreaObject); > > However, even if I am sure that some points fall within the area of > $ShapeAreaObject, nothing is selected. It seems I am missing > something, but after having read the documentation and the list, I did > not find any clue. Using the php_ogr extension, the points that fall > within the area (or better its envelope) are correctly selected, but, > again, it is certainly my fault, as it's the first time I use this > library. > > Any help will be greatly appreciated, thank you in afvance From helenagarcia at GRUPOTECOPY.ES Wed Jun 20 08:38:34 2007 From: helenagarcia at GRUPOTECOPY.ES (=?iso-8859-1?Q?Helena_Garc=EDa_Hernando?=) Date: Wed, 20 Jun 2007 17:38:34 +0200 Subject: Several namespaces in XML responses Message-ID: Hello! Is it possible to configure Mapserver to have several namespaces in the response to a WFS GetFeature query? I need some of my layer attributes to adapt a schema and others attributes to another different. Thanks in advance! Helena Garc?a Hernando -------------- next part -------------- An HTML attachment was scrubbed... URL: From nico at LANGHIRANO.IT Wed Jun 20 08:39:11 2007 From: nico at LANGHIRANO.IT (Nico Alberti) Date: Wed, 20 Jun 2007 17:39:11 +0200 Subject: How to use queryByShape In-Reply-To: <6C097DA58429B743A67070F98BE73A37025EF843@deqex01.deq.local> Message-ID: 2007/6/20, Burgholzer,Robert : > At you need to explicitly pass the shape of the selected elements of > your overlay shape, something like: > > $ret=$layerPoints->queryByShape($ShapeAreaObject->getShape(-1,$shapeid)) > ; I truncated my code a little too much. The argument of queryByShape() was already a single ShapeObj. However, thank you all the same -- Ciao Nico From frdchp at NETSCAPE.NET Wed Jun 20 09:21:02 2007 From: frdchp at NETSCAPE.NET (Francisco Hern=?ISO-8859-1?Q?=E1ndez?=) Date: Wed, 20 Jun 2007 12:21:02 -0400 Subject: Starting Problem with MS4W In-Reply-To: <8C9816C573E2E55-1B34-1188D@FWM-M40.sysops.aol.com> Message-ID: Hi: I just download MS4W and tried the next example MapFile, c:/ms4w/Apache/htdocs/msSamples/exe1/helloword.map is attached Http File? c:/ms4w/Apache/htdocs/msSamples/exe1/exe1.html is attached my Apache hhtpd.conf files is attached I tried http://fcohernandez/msSamples/exe1/exe1.html appears a rectangle and a button ?Click Me?, after I get this message? The webpage page cannot be found http 404 Not Found the URL that remain is http://fcohernandez/cgi-bin/mapserv These?directories had been created c:/ms4w/tmp c:/ms4w/tmp/ms_tmp c:/ms4w/Apache/htdocs/msSamples/exe1/tmp Replies are?welcome Thx in advance Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- # Este es nuestro primer map file NAME "Hola a Todos" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1,00 1.00 1.00 WEB TEMPLATE "/ms4w/Apache/htdocs/msSamples/exe1/exe1.html" IMAGETPATH "/ms4w/Apache/htdocs/msSamples/exe1/tmp/" IMAGEURL "/msSamples/exe1/tmp/ END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "HOLA A TODOS" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END # class END # end Layer END # end Mapfile -------------- next part -------------- A non-text attachment was scrubbed... Name: httpd.conf Type: application/octet-stream Size: 19275 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From frdchp at NETSCAPE.NET Wed Jun 20 09:25:48 2007 From: frdchp at NETSCAPE.NET (Francisco Hern=?ISO-8859-1?Q?=E1ndez?=) Date: Wed, 20 Jun 2007 12:25:48 -0400 Subject: No subject Message-ID: Hi: I just download MS4W and tried the next example MapFile, c:/ms4w/Apache/htdocs/msSamples/exe1/helloword.map is attached Http File? c:/ms4w/Apache/htdocs/msSamples/exe1/exe1.htmp is attached my Apache hhtpd.conf files is attached I tried http://fcohernandez/msSamples/exe1/exe1.html appears a rectangle and a button ?Click Me?, after I get this message? The webpage page cannot be found http 404 Not Found the URL that remain is http://fcohernandez/cgi-bin/mapserv These?directories had been created c:/ms4w/tmp c:/ms4w/tmp/ms_tmp c:/ms4w/Apache/htdocs/msSamples/exe1/tmp Replies are?welcome Thx in advance ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- # Este es nuestro primer map file NAME "Hola a Todos" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1,00 1.00 1.00 WEB TEMPLATE "/ms4w/Apache/htdocs/msSamples/exe1/exe1.html" IMAGETPATH "/ms4w/Apache/htdocs/msSamples/exe1/tmp/" IMAGEURL "/msSamples/exe1/tmp/ END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "HOLA A TODOS" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END # class END # end Layer END # end Mapfile -------------- next part -------------- A non-text attachment was scrubbed... Name: httpd.conf Type: application/octet-stream Size: 19275 bytes Desc: not available URL: From frdchp at NETSCAPE.NET Wed Jun 20 09:24:46 2007 From: frdchp at NETSCAPE.NET (Francisco Hern=?ISO-8859-1?Q?=E1ndez?=) Date: Wed, 20 Jun 2007 12:24:46 -0400 Subject: No subject Message-ID: Hi: I just download MS4W and tried the next example MapFile, c:/ms4w/Apache/htdocs/msSamples/exe1/helloword.map is attached Http File? c:/ms4w/Apache/htdocs/msSamples/exe1/exe1.htmp is attached my Apache hhtpd.conf files is attached I tried http://fcohernandez/msSamples/exe1/exe1.html appears a rectangle and a button ?Click Me?, after I get this message? The webpage page cannot be found http 404 Not Found the URL that remain is http://fcohernandez/cgi-bin/mapserv These?directories had been created c:/ms4w/tmp c:/ms4w/tmp/ms_tmp c:/ms4w/Apache/htdocs/msSamples/exe1/tmp Replies are?welcome Thx in advance ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- # Este es nuestro primer map file NAME "Hola a Todos" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1,00 1.00 1.00 WEB TEMPLATE "/ms4w/Apache/htdocs/msSamples/exe1/exe1.html" IMAGETPATH "/ms4w/Apache/htdocs/msSamples/exe1/tmp/" IMAGEURL "/msSamples/exe1/tmp/ END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "HOLA A TODOS" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END # class END # end Layer END # end Mapfile -------------- next part -------------- A non-text attachment was scrubbed... Name: httpd.conf Type: application/octet-stream Size: 19275 bytes Desc: not available URL: From pedro1_72 at YAHOO.COM Wed Jun 20 09:44:28 2007 From: pedro1_72 at YAHOO.COM (Nahum Castro) Date: Wed, 20 Jun 2007 11:44:28 -0500 Subject: Segfault with 4.10.2 In-Reply-To: <376257.58334.qm@web43135.mail.sp1.yahoo.com> Message-ID: --- Nahum Castro escribi?: > Hello all: > > I have upgraded to mapserver 4.10.2 from 4.10.0, I > found strange behavior, mapserver ignore offset from > my map file on gtiff files. I have found the cause, is the outlinecolor. if I use STYLE OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 ANTIALIAS TRUE END and change to STYLE OUTLINECOLOR 255 0 0 BACKGROUNDCOLOR 0 0 0 ANTIALIAS TRUE END I get a seg fault. [Wed Jun 20 11:17:05 2007] [notice] child pid 5775 exit signal Segmentation fault (11) This is a known bug?, It is related to GD? Linux 2.6.9 Mapserver 4.10.2 Gdal 1.4.0 postgis 1.2.1 Thanks. -- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com Llama gratis a cualquier PC del mundo. Con una excelente calidad de sonido. http://mx.messenger.yahoo.com/ From efujioka at DUKE.EDU Wed Jun 20 10:37:40 2007 From: efujioka at DUKE.EDU (Ei Fujioka) Date: Wed, 20 Jun 2007 13:37:40 -0400 Subject: HTML Legend opt_flag=13 for Class block not working? Message-ID: Hi all, I'm wondering if I misunderstand something about HTML legend... What I want to do is hide classes whose status is off. Based on the HTML legend reference (http://mapserver.gis.umn.edu/docs/howto/html_legend), I set opt_flag=13 for [leg_class_html]. However, all classes show up regardless of the status. How can I hide classes having status off? Another question related to this is that if I can do the same thing for a traditional image legend. Here is the excerpt. << HTML Legend template >> [leg_layer_html order=ascending opt_flag=15] ... (All layers show up) [/leg_layer_html] [leg_class_html opt_flag=13] ... (Hopefully hide classes whose status is off) [/leg_class_html] << Mapfile >> LAYER CLASSITEM "_sp_tsn" CLASS NAME "Anatidae" EXPRESSION "174983" STATUS OFF END CLASS NAME "Kogia" EXPRESSION "180490" STATUS ON END END In this example, I expected that the HTML legend doesn't show class 'Anatidae' because its status is OFF. But both 'Anatidae' and 'Kogia' show up. I use Mapserver 4.2. Thanks, Ei -- ====================== Ei Fujioka Research Associate Duke University (919) 613-8021 efujioka at duke.edu ====================== From umberto.nicoletti at GMAIL.COM Wed Jun 20 11:13:54 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 20 Jun 2007 20:13:54 +0200 Subject: Segfault with 4.10.2 In-Reply-To: <88217.59382.qm@web43134.mail.sp1.yahoo.com> Message-ID: Hi Nahum, gd versions lower than 2.0.34 suffered from a bug in the antialiasing code that would crash mapserver. Try to upgrade to gd 2.0.34 and see if that cures the problem. Umberto On 6/20/07, Nahum Castro wrote: > --- Nahum Castro escribi?: > > > Hello all: > > > > I have upgraded to mapserver 4.10.2 from 4.10.0, I > > found strange behavior, mapserver ignore offset from > > my map file on gtiff files. > > I have found the cause, is the outlinecolor. > if I use > > STYLE > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 0 0 0 > ANTIALIAS TRUE > END > > and change to > > STYLE > OUTLINECOLOR 255 0 0 > BACKGROUNDCOLOR 0 0 0 > ANTIALIAS TRUE > END > > I get a seg fault. > > [Wed Jun 20 11:17:05 2007] [notice] child pid 5775 > exit signal Segmentation fault (11) > > This is a known bug?, It is related to GD? > > Linux 2.6.9 > Mapserver 4.10.2 > Gdal 1.4.0 > postgis 1.2.1 > > Thanks. > > -- > Nahum Castro > Leon, Guanajuato, Mexico > http://www.leon-linux.com > e-mail: pedro1_72 [en] yahoo [punto] com > > > Llama gratis a cualquier PC del mundo. > Con una excelente calidad de sonido. > http://mx.messenger.yahoo.com/ > From guillaume.sueur at GEOSIGNAL.FR Wed Jun 20 13:22:27 2007 From: guillaume.sueur at GEOSIGNAL.FR (Guillaume Sueur) Date: Wed, 20 Jun 2007 22:22:27 +0200 Subject: --> malicious ? In-Reply-To: <8C9816ECBABD49D-1B34-11987@FWM-M40.sysops.aol.com> Message-ID: Am I wrong or does this message and its attachments looked like a virus/worm thing ? Francisco Hern?ndez a ?crit : > Hi: > > I just download MS4W and tried the next example > MapFile, c:/ms4w/Apache/htdocs/msSamples/exe1/helloword.map is attached > Http File c:/ms4w/Apache/htdocs/msSamples/exe1/exe1.htmp is attached > my Apache hhtpd.conf files is attached > I tried http://fcohernandez/msSamples/exe1/exe1.html > appears a rectangle and a button ?Click Me?, after I get this message > The webpage page cannot be found > http 404 Not Found > the URL that remain is http://fcohernandez/cgi-bin/mapserv > These directories had been created > > c:/ms4w/tmp > c:/ms4w/tmp/ms_tmp > c:/ms4w/Apache/htdocs/msSamples/exe1/tmp > Replies are welcome > Thx in advance > ------------------------------------------------------------------------ > *Check Out the new free AIM(R) Mail* > > -- 2 GB of storage and industry-leading spam and email virus protection. > > ------------------------------------------------------------------------ > -- Guillaume SUEUR From dmorissette at MAPGEARS.COM Wed Jun 20 13:32:45 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 20 Jun 2007 16:32:45 -0400 Subject: HTML Legend opt_flag=13 for Class block not working? In-Reply-To: <467965E4.9070701@duke.edu> Message-ID: Ei Fujioka wrote: > > What I want to do is hide classes whose status is off. > Based on the HTML legend reference > (http://mapserver.gis.umn.edu/docs/howto/html_legend), I set opt_flag=13 > for [leg_class_html]. > However, all classes show up regardless of the status. > How can I hide classes having status off? > It seems that this flag only applies to the layer status, not the class status. Here is what the docs says, which was confirmed by reviewing the source: "2: If set, show layer even if status is OFF (default: hide layers with STATUS OFF)." There is currently no way to hide classes with status OFF. I am starting to wonder if this was intentional or if we just forgot to hide classes with status off by default in the initial implementation (with the option to set opt_flags|=2 to enable them). > Another question related to this is that if I can do the same thing for > a traditional image legend. > There is very little control on what is generated by the traditional image legend and none of the opt_flags stuff works there. I just had a quick look at the image legend generation code and it also ignores the class status, so in this respect both legend types are consistent. Daniel -- Daniel Morissette http://www.mapgears.com/ From efujioka at DUKE.EDU Wed Jun 20 14:08:12 2007 From: efujioka at DUKE.EDU (Ei Fujioka) Date: Wed, 20 Jun 2007 16:08:12 -0500 Subject: HTML Legend opt_flag=13 for Class block not working? Message-ID: Thanks, Daniel, for taking your time and what a quick response! Yeah, I thought they were typos. It is under "ClASS block" and still keeps saying "layer"... But it also states "e.g. opt_flag=14 (shown below) means do not show classes in the legend that are out of scale." So probably this parameter was originally planned for classes as well?? Anyway, good to know. It would be great if this parameter is actually implemented for classes. Thanks. Ei From paulp575 at DOG-WALKER.US Wed Jun 20 20:14:59 2007 From: paulp575 at DOG-WALKER.US (Paul Yelk) Date: Wed, 20 Jun 2007 20:14:59 -0700 Subject: Newbie With Some Questions Message-ID: I am new at this and just a bit confused as to where to begin! Let me outline what I'm looking for -- A mapping software program that can -- 1. Import and export ArcView shapefiles (necessary as we are getting USFS GIS data in this format) 2. Load USGS 24k topoquads (geoTIFF format) 3. (future need) Load satellite/aerial images 4. Provide an online environment where individuals can review proposed trails and, if necessary, make recommendations to alternatives 5. Be the front to a query-able database so users can input various data and see a catalog of areas that meet those requirements (primarily a "Where To Ride" database similar to the MN DNR Trails Guide!) I'm thinking of creating the database in MySQL and using PHP along with it. 6. Import and export GPS files - probably in the GPS eXchange format (.gpx) It appears MapServer will meet these needs. If it does, I am attempting to figure out how to proceed. I want to first use it on my own computer for testing purposes before uploading it to a web host for online use. I have looked at the various reference docs as well as some of the tutorials, but feel somewhat daunted if I need to start writing configuration files. I have downloaded the MS4W package as well as the demo data, but not yet installed it due to some questions about it. I am well-versed in HTML and have limited knowledge of javascript; have done some web site administration; and do know some programming languages. My specific questions are -- 1. Installing the MS4W package - will it change any of my Windows XP Pro registry settings? (I had previously installed the trial version of ArcView and when I removed it using a very good uninstaller program called "Your Uninstaller", it left behind a lot of ArcView entries in the registry! At one time I removed 1,800+plus entires, but still see some more left behind! Don't want that mess again in case I need to remove it!) 2. Do I need to be concerned about writing all these configuration files? Or will MS4W work in it's default configuration without a lot of modifications to the configuration files? 3. In the MS4W readme file, it mentions running MS4W as a service. I do not want to do this as this will initially be installed on my home computer for testing purposes. Once testing is complete, I will upload it to a web host for online use. In the MS4W readme file, it mentions that for Windows 95/98/ME users, it can not be run as a service. They have to manually start it each time they want to use it and then just close the DOS box to stop MS4W from running. Can I also do this for Windows XP Pro? 4. If, after evaluation, I find this program to meet our needs, what do I upload to a web host? And how do it upload it to a web host so that it is in the "root" folder of some drive? Thanks, Paul From richard.greenwood at GMAIL.COM Wed Jun 20 20:54:55 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 20 Jun 2007 21:54:55 -0600 Subject: mis-joined tiles. In-Reply-To: Message-ID: On 6/19/07, Dave Weaver wrote: > I'm experiencing a problem with horizontal lines on some of my maps, like this: > > http://img363.imageshack.us/my.php?image=whitelinewm2.jpg > > The lines only appear at some zoom levels, and at some tile sizes. For > example this request: > > http://localhost:8080/cgi-bin/mapserv?map=map/Media_Base_Brown.map&layers=lod5&styles=&service=WMS&width=256&format=image/jpeg&request=GetMap&height=256&srs=EPSG:54004&version=1.1.1&bbox=-20037508.34,0.0,0.0,20037508.34 We can't see your localhost. Maybe post a screen shot or an accessible url. > Can anyone give me a clue as to how I can fix this? I always build tiles with a few pixels of overlap between tiles. I got in this habit due to problems with other software (not MapServer) so I'm not sure that it is important with MapServer. A reprojection may require rotation of the image, which create "wedgies" - narrow triangles of no-data areas along the image borders. Ideally the adjoining tiles fill the no-data wedgies, but you would need to set transparency so that no-data areas do not mask out underlying tiles. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sdc at SDC.COM.AU Wed Jun 20 21:05:57 2007 From: sdc at SDC.COM.AU (Stephen Davies) Date: Thu, 21 Jun 2007 13:35:57 +0930 Subject: Image projection saga (continued) Message-ID: Despite feedback from this list, I have still not resolved my problem where data converted and transformed from a shape file to PostGIS does not project in the same way as the geotiff on which the shape file was based. Previously, I was transforming the shape file coordinates from the original SRID 28354 to 4283 for storage in the database. When this data was overlaid on the raster image (SRID=28354), the polygons did not line up. The map projection definition is: PROJECTION "proj=eqc" "ellps=GRS80" "towgs84=0,0,0" "no_defs" "lon_0=139.591e" END I have now tried creating a polygon (SRID 28354) using the boundary coordinates of the raster image as determined from gdalinfo and overlaying that onto the image. (This removes the transform to 4283 and the subsequent reprojection to eqc.) Still I see the polygon shift north by about 20m and by a tiny amount east. This suggests to me that the method used to project geometries is somehow different from that used to project rasters as both sources now have the same SRID and could reasonably be expected to produce the same results. To further confuse me, if I change the map projection to either 28354 or 4283, everything lines up (but my scale bar and reference maps break). I have searched all the documentation I can find but cannot find anything that describes the relationship between maps, sale bars and reference maps apart from a statement that reference map extent must be expressed in map units. TIA, Stephen Davies -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From gisaalter at GMAIL.COM Thu Jun 21 01:40:29 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Thu, 21 Jun 2007 10:40:29 +0200 Subject: Starting Problem with MS4W In-Reply-To: <8C9816E216EDDE5-1B34-11945@FWM-M40.sysops.aol.com> Message-ID: Fransico, Change the exe1.html file, the line "http://cgi-bin/mapserv" according to your configuration. Think it should be: http://fcohernandez/cgi-bin/mapserv If not, test the mapserv.cgi without the exe1.html. Steven On 6/20/07, Francisco Hern?ndez wrote: > > Hi: > > I just download MS4W and tried the next example > MapFile, c:/ms4w/Apache/htdocs/msSamples/exe1/helloword.map > is attached > Http File c:/ms4w/Apache/htdocs/msSamples/exe1/exe1.html > is attached > my Apache hhtpd.conf files is attached > I tried http://fcohernandez/msSamples/exe1/exe1.html > appears a rectangle and a button ?Click Me?, after I get this message > The webpage page cannot be found > http 404 Not Found > the URL that remain is http://fcohernandez/cgi-bin/mapserv > These directories had been created > > c:/ms4w/tmp > c:/ms4w/tmp/ms_tmp > c:/ms4w/Apache/htdocs/msSamples/exe1/tmp > Replies are welcome > Thx in advance > ________________________________ > Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading > spam and email virus protection. > > From gisaalter at GMAIL.COM Thu Jun 21 01:51:04 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Thu, 21 Jun 2007 10:51:04 +0200 Subject: Starting Problem with MS4W In-Reply-To: <8d2ea9d70706210140r10a534d2r331b36c882baba18@mail.gmail.com> Message-ID: That should be: http://fcohernandez/cgi-bin/mapserv.exe try this in the browser and it should return: "No query information to decode. QUERY_STRING is set, but empty." If this pops up it means mapserver is running and able to process requests. Steven On 6/21/07, Steven De Vriendt wrote: > Fransico, > > Change the exe1.html file, the line "http://cgi-bin/mapserv" according > to your configuration. Think it should be: > http://fcohernandez/cgi-bin/mapserv > If not, test the mapserv.cgi without the exe1.html. > > Steven > > On 6/20/07, Francisco Hern?ndez wrote: > > > > Hi: > > > > I just download MS4W and tried the next example > > MapFile, c:/ms4w/Apache/htdocs/msSamples/exe1/helloword.map > > is attached > > Http File c:/ms4w/Apache/htdocs/msSamples/exe1/exe1.html > > is attached > > my Apache hhtpd.conf files is attached > > I tried http://fcohernandez/msSamples/exe1/exe1.html > > appears a rectangle and a button ?Click Me?, after I get this message > > The webpage page cannot be found > > http 404 Not Found > > the URL that remain is http://fcohernandez/cgi-bin/mapserv > > These directories had been created > > > > c:/ms4w/tmp > > c:/ms4w/tmp/ms_tmp > > c:/ms4w/Apache/htdocs/msSamples/exe1/tmp > > Replies are welcome > > Thx in advance > > ________________________________ > > Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading > > spam and email virus protection. > > > > > From jmckenna at DMSOLUTIONS.CA Thu Jun 21 04:51:56 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 21 Jun 2007 07:51:56 -0400 Subject: Newbie With Some Questions In-Reply-To: <4679ED33.7020601@dog-walker.us> Message-ID: Paul Yelk wrote: > > 1. Installing the MS4W package - will it change any of my Windows XP Pro > registry settings? (I had previously installed the trial version of > ArcView and when I removed it using a very good uninstaller program > called "Your Uninstaller", it left behind a lot of ArcView entries in > the registry! At one time I removed 1,800+plus entires, but still see > some more left behind! Don't want that mess again in case I need to > remove it!) If you use the '.zip' file it won't modify the registry. If you use the '.exe' installer it will modify the registry. > > 2. Do I need to be concerned about writing all these configuration > files? Or will MS4W work in it's default configuration without a lot of > modifications to the configuration files? The MS4W download page has links to several 'applications packaged for MS4W' that are pre-configured to work in that environment. > > 3. In the MS4W readme file, it mentions running MS4W as a service. I do > not want to do this as this will initially be installed on my home > computer for testing purposes. Once testing is complete, I will upload > it to a web host for online use. > Then follow the instructions in the "NOTE for Win95,98,ME users" section to start Apache manually. > In the MS4W readme file, it mentions that for Windows 95/98/ME users, > it can not be run as a service. They have to manually start it each time > they want to use it and then just close the DOS box to stop MS4W from > running. Can I also do this for Windows XP Pro? Yes. > > 4. If, after evaluation, I find this program to meet our needs, what do > I upload to a web host? And how do it upload it to a web host so that it > is in the "root" folder of some drive? > It always depends on the operating system of your web host. If it is windows nothing is different in setup from your local machine. Unix is a different story. Note: MS4W questions like this should be sent to the MS4W mailing list (join at http://lists.maptools.org/mailman/listinfo/ms4w-users). -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From dave.weaver at ZEN.CO.UK Thu Jun 21 06:47:49 2007 From: dave.weaver at ZEN.CO.UK (Dave Weaver) Date: Thu, 21 Jun 2007 08:47:49 -0500 Subject: mis-joined tiles. Message-ID: Richard Greenwood wrote: >On 6/19/07, Dave Weaver wrote: >> I'm experiencing a problem with horizontal lines on some of my maps, like this: >> >> http://img363.imageshack.us/my.php?image=whitelinewm2.jpg >> >> The lines only appear at some zoom levels, and at some tile sizes. For >> example this request: >> >>http://localhost:8080/cgi-bin/mapserv?map=map/Media_Base_Brown.map&layers=lod5&styles=&service=WMS&width=256&format=image/jpeg&request=GetMap&height=256&srs=EPSG:54004&version=1.1.1&bbox=-20037508.34,0.0,0.0,20037508.34 > > We can't see your localhost. Maybe post a screen shot or an accessible url. I did. Look 8 or so lines up. The 2nd URL was just a sample of the URL I'm using to access the data, in case there was anything relevant there. > >I always build tiles with a few pixels of overlap between tiles. I >got in this habit due to problems with other software (not MapServer) >so I'm not sure that it is important with MapServer. Unfortunately my source files for my map are in non-overlapping tiles. It would be a lot of work to make them overlapping. The best work-around I have so far is to tweak the upper/lower latitude boundary values by a faction of a degree, but I'm not entirely happy with this solution. Ah well. Thanks for the input. Dave. From paulp575 at DOG-WALKER.US Thu Jun 21 08:52:10 2007 From: paulp575 at DOG-WALKER.US (Paul Yelk) Date: Thu, 21 Jun 2007 08:52:10 -0700 Subject: Newbie With Some Questions In-Reply-To: <467A665C.10808@dmsolutions.ca> Message-ID: Jeff McKenna wrote: > Note: MS4W questions like this should be sent to the MS4W mailing list > (join at http://lists.maptools.org/mailman/listinfo/ms4w-users). Thanks for your help. I wasn't sure if this was a MS4W post or not, I will be more careful in the future! Paul From mdeblois at MAPLECROFT.NET Thu Jun 21 10:10:43 2007 From: mdeblois at MAPLECROFT.NET (Mark de Blois) Date: Thu, 21 Jun 2007 18:10:43 +0100 Subject: Lining up offset problem WMS/Flash overlay Message-ID: Hi all, I am struggling with a slight offset in a new application we are developing which is a flash application (global risk mapping) and which will take in overlaid WMS layers served by MapServer in Winkel Triple. I have reprojected the base data (shapes, rasters) so that MapServer does not have to reproject on the fly, and performance seems to be good. However, I am having a problem when zooming in and new WMS request are being made. The more you zoom in, the more offset becomes visible between the base (flash) layer (generated by exporting an ai file of the same shapefile) and the overlaid MapServer png. Perhaps this has to do with the spatial extent of my data and the width/height ratio (SIZE)?! I used ogrinfo shape.shp -al -summary to generate the extent of my shape, which I then used as the extent of the map file. For the SIZE parameters I used the width I need for my png and calculated the height based on the width/height ratio in the above mentioned extent. Is this the right way to do so?! Or am I missing something here? The image looks fine, except when zooming in and new requests are made using an adjusted bounding box (dimensions divided by a factor), the offset becomes slightly bigger with each zoom factor, as if a slight skewing is taking place. Unlike the case in unprojected (lat/long) data, I cannot change these parameters much at all (about 2 pixels) before MapServer gives me an empty image. Is there a way in which MapServer will more flexibly allow me to change the range of these parameters? I also noticed that WMS requests give me bitmaps with dimensions consisting of whole integers. A rounding off takes place. This could result in some potential inaccuracies along borders too of course. Some of these problems wouldn't occur if we were just using a MapServer based mapping application, however we do need to combine and line it up with the flash layer for other purposes. I will now play around with the limited range in which I can change these parameters, but maybe I am missing a more obvious thing?! Any help/advice on this issue would be greatly appreciated! I have included part of the map file below. Regards, Mark de Blois Maplecroft # #Start of map file, created by AmeiN! for ArcGis 13/09/2006, 15:20:54 # MAP NAME 'MaplecroftWMS' STATUS ON PROJECTION "proj=wintri" "ellps=WGS84" "lat_1=45" END SIZE 697.8 401.31 EXTENT -16707480.310734 -10018754.171395 16920780.652974 9320947.177797 UNITS meters LAYER NAME 'Countries_WT' DATA './admin/maplecroft_countries_winkel_45' STATUS off TYPE Polygon TOLERANCE 7 TOLERANCEUNITS pixels METADATA WMS_TITLE 'Countries_WT' WMS_FEATURE_INFO_MIME_TYPE 'text/html' END #METADATA PROJECTION "proj=wintri" "ellps=WGS84" "lat_1=45" END CLASS NAME 'Countries' STYLE #COLOR 255 255 212 OUTLINECOLOR 255 0 0 END #STYLE END #CLASS TEMPLATE "winkel_query.html" END #LAYER From dadark at DADARK.DE Thu Jun 21 10:35:20 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Thu, 21 Jun 2007 19:35:20 +0200 Subject: Prevent user from panning out of a certain area Message-ID: Hi list! I'm currently working on a Map of Mozambique using MapServer CGI. Because a map which shows only one country looks rather strange I also added the surrounding countries and the whole African continent respectively. Anyway, Mozambique itself is still the only country of interest and I would like to prevent the users from panning anywhere and getting lost somewhere in Nicaragua or whatever ;-) The new version of my map uses OpenLayers and TileCache and it was rather easy to implement it there, but if possible I'd like to hear a solution for the plain CGI version, too. Thank you Pascal From gregor at HOSTGIS.COM Thu Jun 21 10:53:54 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 21 Jun 2007 11:53:54 -0600 Subject: Prevent user from panning out of a certain area In-Reply-To: <467AB6D8.50501@dadark.de> Message-ID: Pascal Ehlert wrote: > would like to prevent the users from panning anywhere ... > but if possible I'd like to hear a solution for the plain CGI version, too. Nope; Mapserver won't keep someone from panning anywhere they want. It just takes a box and returns whatever is there, even if that's a plain blank image. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From dadark at DADARK.DE Thu Jun 21 11:17:27 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Thu, 21 Jun 2007 20:17:27 +0200 Subject: Prevent user from panning out of a certain area In-Reply-To: <467ABB32.1020502@hostgis.com> Message-ID: Ah, ok! So my users will have to wait for the next major update. ;) Thank you anyway Pascal Gregor Mosheh schrieb: > Pascal Ehlert wrote: >> would like to prevent the users from panning anywhere > ... >> but if possible I'd like to hear a solution for the plain CGI >> version, too. > > Nope; Mapserver won't keep someone from panning anywhere they want. It > just takes a box and returns whatever is there, even if that's a plain > blank image. > From perrygeo at GMAIL.COM Thu Jun 21 12:11:22 2007 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Thu, 21 Jun 2007 12:11:22 -0700 Subject: Prevent user from panning out of a certain area In-Reply-To: <467AC0B7.3040307@dadark.de> Message-ID: On 6/21/07, Pascal Ehlert wrote: > Ah, ok! > So my users will have to wait for the next major update. ;) > > Thank you anyway I would not wait for this to be handled on the server side. This sort of issue is much better handled by the client application. - matt > > Gregor Mosheh schrieb: > > Pascal Ehlert wrote: > >> would like to prevent the users from panning anywhere > > ... > >> but if possible I'd like to hear a solution for the plain CGI > >> version, too. > > > > Nope; Mapserver won't keep someone from panning anywhere they want. It > > just takes a box and returns whatever is there, even if that's a plain > > blank image. > > > -- Matthew T. Perry http://www.perrygeo.net "You never change things by fighting the existing reality. To change something, build a new model that makes the existing model obsolete" - R. Buckminster Fuller From dadark at DADARK.DE Thu Jun 21 12:16:31 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Thu, 21 Jun 2007 21:16:31 +0200 Subject: Prevent user from panning out of a certain area In-Reply-To: <5383fa5e0706211211y56e0138ci36521cdb529d8f85@mail.gmail.com> Message-ID: Yeah, I'm gonna handle it on the client side! That's what I meant with "major update".. Major update of MY application ;-) Pascal Matthew Perry schrieb: > On 6/21/07, Pascal Ehlert wrote: >> Ah, ok! >> So my users will have to wait for the next major update. ;) >> >> Thank you anyway > > > I would not wait for this to be handled on the server side. This sort > of issue is much better handled by the client application. > > - matt > > > >> >> Gregor Mosheh schrieb: >> > Pascal Ehlert wrote: >> >> would like to prevent the users from panning anywhere >> > ... >> >> but if possible I'd like to hear a solution for the plain CGI >> >> version, too. >> > >> > Nope; Mapserver won't keep someone from panning anywhere they want. It >> > just takes a box and returns whatever is there, even if that's a plain >> > blank image. >> > >> > > From ihowat at APL.WASHINGTON.EDU Thu Jun 21 12:18:43 2007 From: ihowat at APL.WASHINGTON.EDU (Ian Howat) Date: Thu, 21 Jun 2007 13:18:43 -0600 Subject: SIGNOFF MAPSERVER-USERS Message-ID: -- Ian Howat Research Associate Applied Physics Lab, University of Washington & National Snow & Ice Data Center, University of Colorado From Bob.Bruce at GOV.MB.CA Thu Jun 21 17:41:05 2007 From: Bob.Bruce at GOV.MB.CA (Bruce, Bob (CON)) Date: Thu, 21 Jun 2007 19:41:05 -0500 Subject: MapServer Commercial Hosting Providers Message-ID: I probably will have to change our hosting provider for www.themuralsofwinnipeg.com mapping site. I are using a version of PHP/MapScript that I customized in order to use imagemaps of point symbols (murals). I am looking for a hosting provider that knows MapServer who can provide me with an environment that I can make my changes to MapScript and host my site at COMPETITIVE RATES. Do you have any suggestions or recommendations for hosting sites for me to explore? Thanks, Bob Bruce ************************************************************************ ** Bob Bruce, P.Eng. Geomatics Support Engineer ** bbruce at gov.mb.ca Manitoba Geomatics/Remote Sensing Branch, ** work # (204) 945-6636 1007 Century Street, ** FAX # (204) 945-1365 Winnipeg, Manitoba, Canada, R3H 0W4 ** ** ** The Manitoba Centre for: ** Cadastral & Topographical Mapping, and Remote Sensing ** See us on the Web at: http://www.gov.mb.ca/conservation/geomatics/ ** and: ** http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html ** Check out our digital maps at: https://web2.gov.mb.ca/mli/index.html ** and at: http://mlidata.gov.mb.ca/WPMLI ************************************************************************ From IANT at NAPIER.GOVT.NZ Thu Jun 21 17:57:05 2007 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Fri, 22 Jun 2007 12:57:05 +1200 Subject: MapServer Commercial Hosting Providers In-Reply-To: A<94DB743EBD20EC41B487D470B1DE23458EF219@OC1EX02.ME.MBGOV.CA> Message-ID: Try Micro Resources http://www.mrcc.com or info at mrcc.com Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bruce, Bob (CON) Sent: Friday, 22 June 2007 12:41 p.m. To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer Commercial Hosting Providers I probably will have to change our hosting provider for www.themuralsofwinnipeg.com mapping site. I are using a version of PHP/MapScript that I customized in order to use imagemaps of point symbols (murals). I am looking for a hosting provider that knows MapServer who can provide me with an environment that I can make my changes to MapScript and host my site at COMPETITIVE RATES. Do you have any suggestions or recommendations for hosting sites for me to explore? Thanks, Bob Bruce ************************************************************************ ** Bob Bruce, P.Eng. Geomatics Support Engineer ** bbruce at gov.mb.ca Manitoba Geomatics/Remote Sensing Branch, ** work # (204) 945-6636 1007 Century Street, ** FAX # (204) 945-1365 Winnipeg, Manitoba, Canada, R3H 0W4 ** ** ** The Manitoba Centre for: ** Cadastral & Topographical Mapping, and Remote Sensing ** See us on the Web at: http://www.gov.mb.ca/conservation/geomatics/ ** and: ** http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html ** Check out our digital maps at: https://web2.gov.mb.ca/mli/index.html ** and at: http://mlidata.gov.mb.ca/WPMLI ************************************************************************ ######################################################################## ############# This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ######################################################################## ############# ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. From gregor at HOSTGIS.COM Thu Jun 21 18:12:39 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 21 Jun 2007 19:12:39 -0600 Subject: MapServer Commercial Hosting Providers In-Reply-To: <94DB743EBD20EC41B487D470B1DE23458EF219@OC1EX02.ME.MBGOV.CA> Message-ID: > I am looking for a hosting provider that knows > MapServer who can provide me with an environment that I can make my > changes to MapScript and host my site at COMPETITIVE RATES. Do you have > any suggestions or recommendations for hosting sites for me to explore? I recommend the company I work for: HostGIS. See our website and contact info below. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From nelson.little at TENIX.COM Thu Jun 21 18:41:29 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Fri, 22 Jun 2007 11:41:29 +1000 Subject: ROSA pan Message-ID: Are there any examples on the web that use jBox? I would like to see some before trying it. ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Piero Cavalieri Sent: Wednesday, 20 June 2007 5:14 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ROSA pan If u want to use a java applet, there's also jBox (which has both "recenter" and "pan"). If u want the equivalent, using javascript, there's dBox, but in the "old" version it has a recenter tool (not pan). In the the new one, I don't know. Piero 2007/6/19, Eduardo Zenaide : hi, how can i use a nice pan with ROSA applet? like, instead of that 'recenter' tool, could i be able to pan? -- Eduardo Zenaide Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cheung.jackey at GMAIL.COM Fri Jun 22 00:56:19 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Fri, 22 Jun 2007 15:56:19 +0800 Subject: working with database in UTF-8 Message-ID: Greetings! I'm trying to setup a mapserver that supports multiple languages with MySQL. The database uses UTF-8, while the map server use a select statement to retrieve records. The layer goes as: LAYER NAME sr STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION " MYSQL:MapSQL,user=root,password=123456,host=localhost,port=3306,tables=POI SELECT `Name`, geom FROM `POI` WHERE `ID` = %o% wkbPoint " DATA "sr" UNITS METERS MAXFEATURES 1 LABELITEM "Name" CLASS SYMBOL "point" MINSIZE 10 COLOR 250 0 0 OUTLINECOLOR 0 128 0 LABEL ENCODING "utf-8" COLOR 255 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION UC PARTIALS FALSE BUFFER 5 FORCE TRUE END END END All Chinese characters are shown as question marks (?) on the map, no mater using arial or Chinese fonts. Any advise? -------------- next part -------------- An HTML attachment was scrubbed... URL: From piero.cavalieri at GMAIL.COM Fri Jun 22 02:12:50 2007 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Fri, 22 Jun 2007 11:12:50 +0200 Subject: ROSA pan In-Reply-To: <200706220141.l5M1fTG8010996@sprint2.tenix.com> Message-ID: This one should use it: http://www2.tetonwyo.org/mapserver/ If you have some hours to write a bit of code, I suggest to try it. These 2 links are usefull: http://www.greenwoodmap.com/mapserver/Ottawa-workshop/presentation/outline.html http://mapserver.gis.umn.edu/docs/howto/jbox JBox itself doesn't have a toolbar, but it's not too much difficult to take one (for example the Mapsurfer one) and to use it with the JBox. Cheers Piero 2007/6/22, LITTLE Nelson : > > Are there any examples on the web that use jBox? I would like to see some > before trying it. > > > ------------------------------ > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Piero Cavalieri > *Sent:* Wednesday, 20 June 2007 5:14 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] ROSA pan > > > > If u want to use a java applet, there's also jBox (which has both > "recenter" and "pan"). If u want the equivalent, using javascript, there's > dBox, but in the "old" version it has a recenter tool (not pan). In the the > new one, I don't know. > > Piero > > 2007/6/19, Eduardo Zenaide : > > hi, > > how can i use a nice pan with ROSA applet? > like, instead of that 'recenter' tool, could i be able to pan? > > -- > Eduardo Zenaide > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Amy.Keyworth at NCMAIL.NET Fri Jun 22 04:32:11 2007 From: Amy.Keyworth at NCMAIL.NET (Amy Keyworth) Date: Fri, 22 Jun 2007 07:32:11 -0400 Subject: preview of map is blank in mapedit Message-ID: I'm new to the MapServer/Maplab world, and have spent several days struggling to get a map to work. We've ironed out several problems largely dealing with pathnames, and no longer get errors when I push the "Preview Map" button in MapEdit. Instead I get a page with a box listing the layers in my map (only 2 so far), a blank space for the map, several zoom tools, and a box for a reference map. I cannot get the layers to display. I can't even get both radio buttons to stay on simultaneously. Without an error message I don't know where to start looking for a solution to this problem. Any help is appreciated. Amy -------------- next part -------------- A non-text attachment was scrubbed... Name: Amy.Keyworth.vcf Type: text/x-vcard Size: 323 bytes Desc: not available URL: From peter.loewe at GMX.DE Fri Jun 22 07:30:41 2007 From: peter.loewe at GMX.DE (Peter Loewe) Date: Fri, 22 Jun 2007 16:30:41 +0200 Subject: Mapscript and SOS Message-ID: Hi, does any information exist how to formulate SOS getObeservation / describeSensor queries when using Mapscript/PHP in the backend ? The available documentation only deals with mapfiles. Any hints or examples would be much appreciated! Peter -- Dr. Peter L?we 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 paulanne.winn at WACORP.NET Fri Jun 22 08:04:59 2007 From: paulanne.winn at WACORP.NET (Mevima Winn) Date: Fri, 22 Jun 2007 08:04:59 -0700 Subject: preview of map is blank in mapedit In-Reply-To: <467BB33B.50900@ncmail.net> Message-ID: I've found that normally when you only return a blank image and no map, the problem is with your mapfile. Look it over carefully, make sure you're pulling the proper data with the proper keywords. It might help to post the mapfile for some help. -Mevima Winn -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Amy Keyworth Sent: Friday, June 22, 2007 4:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] preview of map is blank in mapedit I'm new to the MapServer/Maplab world, and have spent several days struggling to get a map to work. We've ironed out several problems largely dealing with pathnames, and no longer get errors when I push the "Preview Map" button in MapEdit. Instead I get a page with a box listing the layers in my map (only 2 so far), a blank space for the map, several zoom tools, and a box for a reference map. I cannot get the layers to display. I can't even get both radio buttons to stay on simultaneously. Without an error message I don't know where to start looking for a solution to this problem. Any help is appreciated. Amy From Tom.Kralidis at EC.GC.CA Fri Jun 22 08:05:23 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 22 Jun 2007 11:05:23 -0400 Subject: Mapscript and SOS In-Reply-To: A<20070622143041.33270@gmx.net> Message-ID: > Hi, > > does any information exist how to formulate SOS > getObeservation / describeSensor queries when using > Mapscript/PHP in the backend ? > > The available documentation only deals with mapfiles. > Currently, SOS support in MapServer is server only, so there is no mapscript functionality specific to SOS query building. ..Tom From assefa at DMSOLUTIONS.CA Fri Jun 22 08:10:19 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 22 Jun 2007 11:10:19 -0400 Subject: Mapscript and SOS In-Reply-To: <20070622143041.33270@gmx.net> Message-ID: Peter, There is no direct support through the scripting languages to call SOS requests or any other OGC specific requests. You may want to look into the MapScript Wrappers for WxS Services (http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript) if that can be used for you purpose. Later, Peter Loewe wrote: > Hi, > > does any information exist how to formulate SOS getObeservation / describeSensor queries when using Mapscript/PHP in the backend ? > > The available documentation only deals with mapfiles. > > Any hints or examples would be much appreciated! > Peter -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From rwburgholzer at DEQ.VIRGINIA.GOV Fri Jun 22 08:57:43 2007 From: rwburgholzer at DEQ.VIRGINIA.GOV (Burgholzer,Robert) Date: Fri, 22 Jun 2007 11:57:43 -0400 Subject: preview of map is blank in mapedit Message-ID: Try turning DEBUG ON in one or more of your layers. The debug output will go to the httpd logfile, and it can be very useful. Robert -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Amy Keyworth Sent: Friday, June 22, 2007 4:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] preview of map is blank in mapedit I'm new to the MapServer/Maplab world, and have spent several days struggling to get a map to work. We've ironed out several problems largely dealing with pathnames, and no longer get errors when I push the "Preview Map" button in MapEdit. Instead I get a page with a box listing the layers in my map (only 2 so far), a blank space for the map, several zoom tools, and a box for a reference map. I cannot get the layers to display. I can't even get both radio buttons to stay on simultaneously. Without an error message I don't know where to start looking for a solution to this problem. Any help is appreciated. Amy From ltrevinoh at GMAIL.COM Fri Jun 22 09:34:48 2007 From: ltrevinoh at GMAIL.COM (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Fri, 22 Jun 2007 11:34:48 -0500 Subject: ROSA pan In-Reply-To: <200706220141.l5M1fTG8010996@sprint2.tenix.com> Message-ID: you can see one on: http://www2.tetonwyo.org/mapserver/ 2007/6/21, LITTLE Nelson : > > Are there any examples on the web that use jBox? I would like to see some > before trying it. > > > ------------------------------ > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Piero Cavalieri > *Sent:* Wednesday, 20 June 2007 5:14 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] ROSA pan > > > > If u want to use a java applet, there's also jBox (which has both > "recenter" and "pan"). If u want the equivalent, using javascript, there's > dBox, but in the "old" version it has a recenter tool (not pan). In the the > new one, I don't know. > > Piero > > 2007/6/19, Eduardo Zenaide : > > hi, > > how can i use a nice pan with ROSA applet? > like, instead of that 'recenter' tool, could i be able to pan? > > -- > Eduardo Zenaide > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Fri Jun 22 09:52:41 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 22 Jun 2007 11:52:41 -0500 Subject: FOSS4G 2007 Call for Presentations Closes in ONE WEEK Message-ID: http://www.foss4g2007.org/ June 29 is the close of the Call for Presentations for FOSS4G (Free and Open Source Software for Geospatial). If you plan on giving a 25 minute presentation at FOSS4G, make sure you get your abstract in before the deadline! http://www.foss4g2007.org/presentations/ FOSS4G 2007 presentations are 25 minute talks, with 5 minute question and answer sessions at the end. Presentations cover the use or development of open source geospatial software. Anyone can can submit a presentation proposal and take part in the conference as a presenter. Some topics of interest for this year are: * Case Studies: Relate the experiences of you and your organization using open source geospatial. Where do things work well? Poorly? What problems did you solve, and at what cost? What do you recommend for others? Why? * Benchmarks: Comparisons between pieces of geospatial software. How do features compare? Speed? Ease of use? What do you recommend for others? * Visualization: Tell about your tips and tricks for effective visualization. How do you present information in a compelling way? 3D? Cartographic tricks? Labelling and naming ideas? Graphs and hybrid map/data combinations? * Development: What are the new developments in your open source geospatial software product? How does it work, how do people use it, what are the technical issues you are running into? * Hacks and Mashing: Have you put together something novel or cool this year? What did you stick together, how did it work, show us your gizmo! * Collaboration: What techniques are you using to improve collaboration between organizations and between individuals. Public geodata, collaborative data collection, data sharing, open standards, de facto standards, and more! If you have an open source geospatial story to tell, we want to hear it! DEMO THEATER Looking to show off your project in a short format venue? Check out the demo theater! Note that space is limited, and sponsors get first priority for slots. http://www.foss4g2007.org/exhibition/demotheatre/ From Steve.Lime at DNR.STATE.MN.US Fri Jun 22 10:52:27 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 22 Jun 2007 12:52:27 -0500 Subject: working with database in UTF-8 In-Reply-To: Message-ID: Hmmm... All the encoding parameter does is tell MapServer to convert from the supplied encoding to unicode so I don't think it has any effect. If you already have unicode/utf-8 strings then this should just work assuming your font has the right characters. Does a simple shapefile work? Steve >>> On 6/22/2007 at 2:56 AM, in message , Jackey Cheung wrote: > Greetings! > > I'm trying to setup a mapserver that supports multiple languages with MySQL. > The database uses UTF-8, while the map server use a select statement to > retrieve records. The layer goes as: > > LAYER > NAME sr > STATUS OFF > > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION " > > > MYSQL:MapSQL,user=root,password=123456,host=localhost,port=3306 > ,tables=POI > SELECT `Name`, geom > FROM `POI` WHERE `ID` = %o% > > wkbPoint > > " > DATA "sr" > UNITS METERS > > MAXFEATURES 1 > LABELITEM "Name" > > CLASS > SYMBOL "point" > MINSIZE 10 > COLOR 250 0 0 > OUTLINECOLOR 0 128 0 > > LABEL > ENCODING "utf-8" > COLOR 255 0 0 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT arial > SIZE 8 > ANTIALIAS TRUE > POSITION UC > PARTIALS FALSE > BUFFER 5 > FORCE TRUE > END > END > END > > All Chinese characters are shown as question marks (?) on the map, no mater > using arial or Chinese fonts. > > Any advise? From woodbri at SWOODBRIDGE.COM Fri Jun 22 11:45:46 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 22 Jun 2007 14:45:46 -0400 Subject: working with database in UTF-8 In-Reply-To: <467BC60B.5157.008F.0@dnr.state.mn.us> Message-ID: Jackey, I suspect that the font file is not utf8 or the data is already mangled before it gets to mapserver. The mapserver stuff works fine for me with utf-8 data in shapefiles as long as I set the ENCODING 'utf8' in the LABEL. A bigger issue might be: What is the encoding on the source data? what is the encoding on the database? was the data loded correct with respect to the encoding? if you do a select * from table in mysql does the data display correctly? if you slect the records with ogrinfo? to a file or you monitor do they show corectly? There are a WHOLE lot oof steps where things could have broken before it gets to mapserver. You need to validate the data is still good as it comes into mapserver. -Steve W. Steve Lime wrote: > Hmmm... All the encoding parameter does is tell MapServer to convert from the supplied encoding to > unicode so I don't think it has any effect. If you already have unicode/utf-8 strings then this should > just work assuming your font has the right characters. > > Does a simple shapefile work? > > Steve > >>>> On 6/22/2007 at 2:56 AM, in message > , Jackey Cheung > wrote: >> Greetings! >> >> I'm trying to setup a mapserver that supports multiple languages with MySQL. >> The database uses UTF-8, while the map server use a select statement to >> retrieve records. The layer goes as: >> >> LAYER >> NAME sr >> STATUS OFF >> >> TYPE POINT >> CONNECTIONTYPE OGR >> CONNECTION " >> >> >> MYSQL:MapSQL,user=root,password=123456,host=localhost,port=3306 >> ,tables=POI >> SELECT `Name`, geom >> FROM `POI` WHERE `ID` = %o% >> >> wkbPoint >> >> " >> DATA "sr" >> UNITS METERS >> >> MAXFEATURES 1 >> LABELITEM "Name" >> >> CLASS >> SYMBOL "point" >> MINSIZE 10 >> COLOR 250 0 0 >> OUTLINECOLOR 0 128 0 >> >> LABEL >> ENCODING "utf-8" >> COLOR 255 0 0 >> OUTLINECOLOR 255 255 255 >> TYPE TRUETYPE >> FONT arial >> SIZE 8 >> ANTIALIAS TRUE >> POSITION UC >> PARTIALS FALSE >> BUFFER 5 >> FORCE TRUE >> END >> END >> END >> >> All Chinese characters are shown as question marks (?) on the map, no mater >> using arial or Chinese fonts. >> >> Any advise? From williams at WEBSAWYER.COM Fri Jun 22 12:25:38 2007 From: williams at WEBSAWYER.COM (Doug Williams) Date: Fri, 22 Jun 2007 13:25:38 -0600 Subject: phpmapscript imagemap creation Message-ID: Hi all, Does anyone have a phpmapscript example of imagemap creation to utilize on the client's browser? I have read through the Mapserver CGI examples on the website, but have failed to get it going in phpmapscript. Thanks. Doug From cplist at SECONDCREEK.ORG Sat Jun 23 07:15:23 2007 From: cplist at SECONDCREEK.ORG (Charlton Purvis) Date: Sat, 23 Jun 2007 10:15:23 -0400 Subject: wms_timeitem use for WFS? Message-ID: Hello, all: Could someone confirm that the WMS time support via the wms_timeitem does *not* work for WFS? I can use the wms_timeitem fantastically for WMS requests, but it doesn't seem to have any effect on WFS requests. Thanks, Charlton From woodbri at SWOODBRIDGE.COM Sat Jun 23 11:31:12 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 23 Jun 2007 14:31:12 -0400 Subject: Building Mapserver with minGW? Message-ID: Hi all, I would like to be able to build mapserver under minGW, but my first couple of attemps were not successful. Has anyone done this with a resent version of Mapserver. I only need a minimal configuration. I have looked around on google but have not found much that is helpful. I got stuck trying to build gd and freetype dependencies. It is also not obvious from the minGW downloads what packages are needed. -Steve W. From alan.hale at BTCLICK.COM Sat Jun 23 13:55:59 2007 From: alan.hale at BTCLICK.COM (Alan Hale) Date: Sat, 23 Jun 2007 21:55:59 +0100 Subject: Where to find php_mapscript.so ? In-Reply-To: <010c01c7b5a0$f1030410$db0bdd46@latitude> Message-ID: I want to install php mapscript on a Fedora Core 6 server with PHP5 running as a module rather than cgi. If I understand correctly I need to place a version of php_mapscript.so in /usr/lib64/php/modules/ and put a php_mapscript.ini file in /etc/php.d with "extension=phpmapscript.so". Or am I completely off track here? In any case, I can't find a copy of any version of php_mapscript.so. Apparently relevant pages on the Mapserver website seem to send me round in circles. Again, am I missing something? Many thanks Alan Hale Aberystwyth No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.9.6/862 - Release Date: 22/06/2007 15:04 From alan.hale at BTCLICK.COM Sun Jun 24 09:02:58 2007 From: alan.hale at BTCLICK.COM (Alan Hale) Date: Sun, 24 Jun 2007 17:02:58 +0100 Subject: Where to find php_mapscript.so ? In-Reply-To: <002201c7b5d8$e6e306f0$0301a8c0@bryo> Message-ID: OK, I've realised I can make php_mapscript.so by re-configuring mapserver --with-php={path] and using the Makefile created in ./mapscript/php3. > -----Original Message----- > From: UMN MapServer Users List > > In any case, I can't find a copy of any version of > php_mapscript.so. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.9.6/863 - Release Date: 23/06/2007 11:08 From alan.hale at BTCLICK.COM Sun Jun 24 09:12:18 2007 From: alan.hale at BTCLICK.COM (Alan Hale) Date: Sun, 24 Jun 2007 17:12:18 +0100 Subject: Problem installing gdal In-Reply-To: <002201c7b5d8$e6e306f0$0301a8c0@bryo> Message-ID: Trying to do a make install of gdal-1.4.1 on Fedora. This seems to have a problem with Python. Make[1]: [gdal_wrap.o] Error 1 Make: [py-module] Error 2 Any ideas please? Alan Hale Aberystwyth No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.9.6/863 - Release Date: 23/06/2007 11:08 From cheung.jackey at GMAIL.COM Mon Jun 25 01:49:42 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Mon, 25 Jun 2007 16:49:42 +0800 Subject: working with database in UTF-8 Message-ID: I was suspecting that the TTF would be the cause, but I'm not sure which font come with Windows is UTF-8 font, or where to get one. Pls advise. thx. ----- Original Message ----- From: "Stephen Woodbridge" To: Sent: Saturday, June 23, 2007 02:45 Subject: Re: [UMN_MAPSERVER-USERS] working with database in UTF-8 > Jackey, > > I suspect that the font file is not utf8 or the data is already mangled > before it gets to mapserver. The mapserver stuff works fine for me with > utf-8 data in shapefiles as long as I set the ENCODING 'utf8' in the > LABEL. A bigger issue might be: > > What is the encoding on the source data? > what is the encoding on the database? > was the data loded correct with respect to the encoding? > if you do a select * from table in mysql does the data display correctly? > if you slect the records with ogrinfo? to a file or you monitor do they > show corectly? > > There are a WHOLE lot oof steps where things could have broken before it > gets to mapserver. You need to validate the data is still good as it comes > into mapserver. > > -Steve W. > > Steve Lime wrote: >> Hmmm... All the encoding parameter does is tell MapServer to convert from >> the supplied encoding to >> unicode so I don't think it has any effect. If you already have >> unicode/utf-8 strings then this should >> just work assuming your font has the right characters. >> >> Does a simple shapefile work? >> >> Steve >> >>>>> On 6/22/2007 at 2:56 AM, in message >> , Jackey >> Cheung >> wrote: >>> Greetings! >>> >>> I'm trying to setup a mapserver that supports multiple languages with >>> MySQL. >>> The database uses UTF-8, while the map server use a select statement to >>> retrieve records. The layer goes as: >>> >>> LAYER >>> NAME sr >>> STATUS OFF >>> >>> TYPE POINT >>> CONNECTIONTYPE OGR >>> CONNECTION " >>> >>> >>> MYSQL:MapSQL,user=root,password=123456,host=localhost,port=3306 >>> ,tables=POI >>> SELECT `Name`, >>> geom >>> FROM `POI` WHERE `ID` = %o% >>> >>> wkbPoint >>> >>> " >>> DATA "sr" >>> UNITS METERS >>> >>> MAXFEATURES 1 >>> LABELITEM "Name" >>> >>> CLASS >>> SYMBOL "point" >>> MINSIZE 10 >>> COLOR 250 0 0 >>> OUTLINECOLOR 0 128 0 >>> >>> LABEL >>> ENCODING "utf-8" >>> COLOR 255 0 0 >>> OUTLINECOLOR 255 255 255 >>> TYPE TRUETYPE >>> FONT arial >>> SIZE 8 >>> ANTIALIAS TRUE >>> POSITION UC >>> PARTIALS FALSE >>> BUFFER 5 >>> FORCE TRUE >>> END >>> END >>> END >>> >>> All Chinese characters are shown as question marks (?) on the map, no >>> mater >>> using arial or Chinese fonts. >>> >>> Any advise? From John.Spotten at CAPETOWN.GOV.ZA Mon Jun 25 03:05:30 2007 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Mon, 25 Jun 2007 12:05:30 +0200 Subject: Mapserver 4.10 and html legend opt_flag=2 Message-ID: Hi All, Mapserver 4.10 doesn't like the opt_flag=2 attribute in the leg_layer_html tag to show invisible layers in the html legend with status off in the map file. Worked fine in 4.8. Any clues. I am not using any layer groupings in the map file and do not use leg_class_html tags in the html legend. Bye for now john John Spotten C.Eng Pr.Eng Head of Transport Modelling and Systems Analysis Transport Planning 10th Floor Harbour Side Cape Town Civic Centre Tel +27 21 4004732 Fax +27 21 4004931 Cell +27 842314457 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Mon Jun 25 04:31:49 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 25 Jun 2007 07:31:49 -0400 Subject: wms_timeitem use for WFS? In-Reply-To: A<010c01c7b5a0$f1030410$db0bdd46@latitude> Message-ID: > Could someone confirm that the WMS time support via the > wms_timeitem does > *not* work for WFS? I can use the wms_timeitem fantastically > for WMS requests, but it doesn't seem to have any effect on > WFS requests. You're correct; it doesn't. There is an open ticket on this (see http://trac.osgeo.org/mapserver/ticket/1583). Cheers ..Tom From cplist at SECONDCREEK.ORG Mon Jun 25 04:49:08 2007 From: cplist at SECONDCREEK.ORG (Charlton Purvis) Date: Mon, 25 Jun 2007 07:49:08 -0400 Subject: wms_timeitem use for WFS? In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F277EDE@ecburexch1.ontario.int.ec.gc.ca> Message-ID: Hi, Tom: > You're correct; it doesn't. There is an open ticket on this (see > http://trac.osgeo.org/mapserver/ticket/1583). Thanks for pointing me to that. It looks like you started that thread 2y ago. It's something worth the wait, but I'll code a 1-off until then. :) Charlton From sbattey at DOTTEDEYES.COM Mon Jun 25 05:34:04 2007 From: sbattey at DOTTEDEYES.COM (Steve-e-b) Date: Mon, 25 Jun 2007 05:34:04 -0700 Subject: UnsatisfiedLinkError loading the MapScript Java library Message-ID: I am compiling MapServer v4.8.4 using FWTools v1.3.2 for our webapp running in Tomcat 5.5.17 and using Java 1.5.0_07 on Linux. When I try to load MapScript Java I get the following error message: java.lang.UnsatisfiedLinkError: /usr/local/mapserver-4.8.4/mapscript/java/libmapscript.so: /root/rmx/FWTools/lib/libtiff.so.3: undefined symbol: jpeg_resync_to_restart at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) The jpeg_resync_to_restart symbol is defined in the libjpeg library. I noticed that the JRE has its own libjpeg.so file which takes precedence over the libjpeg.so file in FWTools. So I replaced the JRE's libjpeg.so file with the libjpeg.so file in FWTools. This fixes the error message above, the MapScript Java library loads okay but then the JVM crashes at random intervals - probably due to the libjpeg library being replaced. Has any one encountered this error message before? It suggests there is a conflict between the libjpeg library required by the JRE and the libjpeg library required by FWTools. I really want to avoid having to compile the individual libraries provided by FWTools. Are there any known compatibility issues between specific versions of JREs and FWTools? -- View this message in context: http://www.nabble.com/UnsatisfiedLinkError-loading-the-MapScript-Java-library-tf3975878.html#a11285812 Sent from the Mapserver - User mailing list archive at Nabble.com. From umberto.nicoletti at GMAIL.COM Mon Jun 25 05:50:37 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 25 Jun 2007 14:50:37 +0200 Subject: UnsatisfiedLinkError loading the MapScript Java library In-Reply-To: <11285812.post@talk.nabble.com> Message-ID: Try to recompile mapserver without jpeg support and see if that works. You should still be able to produce jpg images through gd. Umberto On 6/25/07, Steve-e-b wrote: > I am compiling MapServer v4.8.4 using FWTools v1.3.2 for our webapp running > in Tomcat 5.5.17 and using Java 1.5.0_07 on Linux. When I try to load > MapScript Java I get the following error message: > > java.lang.UnsatisfiedLinkError: > /usr/local/mapserver-4.8.4/mapscript/java/libmapscript.so: > /root/rmx/FWTools/lib/libtiff.so.3: undefined symbol: jpeg_resync_to_restart > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) > at java.lang.Runtime.loadLibrary0(Runtime.java:822) > at java.lang.System.loadLibrary(System.java:992) > > The jpeg_resync_to_restart symbol is defined in the libjpeg library. > I noticed that the JRE has its own libjpeg.so file which takes precedence > over the libjpeg.so file in FWTools. So I replaced the JRE's libjpeg.so file > with the libjpeg.so file in FWTools. This fixes the error message above, the > MapScript Java library loads okay but then the JVM crashes at random > intervals - probably due to the libjpeg library being replaced. > > Has any one encountered this error message before? > It suggests there is a conflict between the libjpeg library required by the > JRE and the libjpeg library required by FWTools. I really want to avoid > having to compile the individual libraries provided by FWTools. Are there > any known compatibility issues between specific versions of JREs and > FWTools? > -- > View this message in context: http://www.nabble.com/UnsatisfiedLinkError-loading-the-MapScript-Java-library-tf3975878.html#a11285812 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From sbattey at DOTTEDEYES.COM Mon Jun 25 06:46:38 2007 From: sbattey at DOTTEDEYES.COM (Steve-e-b) Date: Mon, 25 Jun 2007 06:46:38 -0700 Subject: UnsatisfiedLinkError loading the MapScript Java library In-Reply-To: <75b4b93e0706250550m617df173q66cd38176a38f5ff@mail.gmail.com> Message-ID: Thanks for such a quick reply. I have tried turning off jpeg support but still got the same error. (Strangely I have tiff turned off as well, yet the error message clearly shows the libtiff.so library is being loaded.) Here is my full ./configure command: ./configure --enable-debug --with-threads --without-pdf --without-tiff --with-gdal=/root/rmx/FWTools/bin/gdal-config --with-proj=/root/rmx/FWTools --with-gd=/root/rmx/FWTools --with-freetype=/root/rmx/FWTools --with-png=/root/rmx/FWTools --with-zlib=/root/rmx/FWTools --without-jpeg Umberto Nicoletti wrote: > > Try to recompile mapserver without jpeg support and see if that works. > You should still be able to produce jpg images through gd. > > Umberto > > On 6/25/07, Steve-e-b wrote: >> I am compiling MapServer v4.8.4 using FWTools v1.3.2 for our webapp >> running >> in Tomcat 5.5.17 and using Java 1.5.0_07 on Linux. When I try to load >> MapScript Java I get the following error message: >> >> java.lang.UnsatisfiedLinkError: >> /usr/local/mapserver-4.8.4/mapscript/java/libmapscript.so: >> /root/rmx/FWTools/lib/libtiff.so.3: undefined symbol: >> jpeg_resync_to_restart >> at java.lang.ClassLoader$NativeLibrary.load(Native Method) >> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) >> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) >> at java.lang.Runtime.loadLibrary0(Runtime.java:822) >> at java.lang.System.loadLibrary(System.java:992) >> >> The jpeg_resync_to_restart symbol is defined in the libjpeg library. >> I noticed that the JRE has its own libjpeg.so file which takes precedence >> over the libjpeg.so file in FWTools. So I replaced the JRE's libjpeg.so >> file >> with the libjpeg.so file in FWTools. This fixes the error message above, >> the >> MapScript Java library loads okay but then the JVM crashes at random >> intervals - probably due to the libjpeg library being replaced. >> >> Has any one encountered this error message before? >> It suggests there is a conflict between the libjpeg library required by >> the >> JRE and the libjpeg library required by FWTools. I really want to avoid >> having to compile the individual libraries provided by FWTools. Are there >> any known compatibility issues between specific versions of JREs and >> FWTools? >> -- >> View this message in context: >> http://www.nabble.com/UnsatisfiedLinkError-loading-the-MapScript-Java-library-tf3975878.html#a11285812 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/UnsatisfiedLinkError-loading-the-MapScript-Java-library-tf3975878.html#a11286903 Sent from the Mapserver - User mailing list archive at Nabble.com. From tnolte at ILPCS.COM Mon Jun 25 09:22:39 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Mon, 25 Jun 2007 11:22:39 -0500 Subject: Looking for MapServer Training... Message-ID: Does anyone know about any MapServer training that might be available in the MidWest US? I am aware of the training provided by DM Solutions, but I'm looking for something in the US. Something hands-on with MapServer and/or Chameleon would be great. From williams at WEBSAWYER.COM Mon Jun 25 09:27:38 2007 From: williams at WEBSAWYER.COM (Doug Williams) Date: Mon, 25 Jun 2007 10:27:38 -0600 Subject: phpmapscript imagemap creation Message-ID: I think I have just about figured it out. From rodrigomartin at LOPEZGREGORIO.COM.AR Mon Jun 25 09:38:16 2007 From: rodrigomartin at LOPEZGREGORIO.COM.AR (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Mon, 25 Jun 2007 17:38:16 +0100 Subject: phpmapscript imagemap creation In-Reply-To: <20070625162620.M80504@websawyer.com> Message-ID: Hi Doug. Wich version of mapserver are you using? (windows? linux? version?). I've made some tries with ms4w and couldn't get it working. Also I found there is a reported bug in mapserver that makes mapserver return an empty imagemap. The only way I could get it working was using templates and query mode through CGI but it will only work with just one layer. I will apreciate if you can send me how did you get it working. Thanks. Rodrigo. On 6/25/07, Doug Williams wrote: > > I think I have just about figured it out. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbarker at ITTVIS.COM Mon Jun 25 11:03:49 2007 From: nbarker at ITTVIS.COM (Norman Barker) Date: Mon, 25 Jun 2007 12:03:49 -0600 Subject: Specifying gdal input driver for mapserver Message-ID: Hi, Is there a way to specify the GDAL input driver for MapServer? I would like to choose JP2KAK over JP2ECW on a windows machine? Normally I would compile GDAL with just the driver I need, but I want to use FWTools for ease of deployment on Windows. It seems that the JP2ECW driver doesn't handle colour too well on some of my images, and also there is the license problem. Many thanks, Norman Barker From warmerdam at POBOX.COM Mon Jun 25 11:37:24 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 25 Jun 2007 14:37:24 -0400 Subject: Specifying gdal input driver for mapserver In-Reply-To: Message-ID: Norman Barker wrote: > Hi, > > Is there a way to specify the GDAL input driver for MapServer? I would > like to choose JP2KAK over JP2ECW on a windows machine? Normally I > would compile GDAL with just the driver I need, but I want to use > FWTools for ease of deployment on Windows. > > It seems that the JP2ECW driver doesn't handle colour too well on some > of my images, and also there is the license problem. Norman, To ignore the JP2ECW driver set the GDAL_SKIP environment/config variable to JP2ECW. 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 tim at SIG.MSSTATE.EDU Mon Jun 25 12:05:51 2007 From: tim at SIG.MSSTATE.EDU (Tim Tsai) Date: Mon, 25 Jun 2007 14:05:51 -0500 Subject: Source for imagemap demo In-Reply-To: <46800B64.8070602@pobox.com> Message-ID: Can somebody tell me where to get the source for Steve Lim's SHPXY Example? http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true Google found an old link but it's stale. Thanks! Tim From ivan.lucena at PMLDNET.COM Mon Jun 25 15:20:36 2007 From: ivan.lucena at PMLDNET.COM (Lucena, Ivan) Date: Mon, 25 Jun 2007 18:20:36 -0400 Subject: Specifying gdal input driver for mapserver In-Reply-To: Message-ID: Norman, GDAL has a very nice way to handle plug-ins dlls that I think should be a solution for your. By using this technique you don't need to recompile FWTools or MapServer in order to override the driver. That is what I am doing with GDAL in ESRI stuff. You need to compile a gdal_jpeg.dll based on the library your prefer and then you can set the GDAL_DRIVER_PATH on the MapServer environment to point to the folder where this dll resides. You need to make sure that the plugin dll is compiled with the same GDAL version as GDAL in MapServer (and FWTools if you want) and you should also make sure that you are using VS2003/VC71. Ivan Norman Barker wrote: > Hi, > > Is there a way to specify the GDAL input driver for MapServer? I would > like to choose JP2KAK over JP2ECW on a windows machine? Normally I > would compile GDAL with just the driver I need, but I want to use > FWTools for ease of deployment on Windows. > > It seems that the JP2ECW driver doesn't handle colour too well on some > of my images, and also there is the license problem. > > Many thanks, > > Norman Barker > > From Jukka.Rahkonen at MMMTIKE.FI Mon Jun 25 16:08:48 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 26 Jun 2007 02:08:48 +0300 Subject: Specifying gdal input driver for mapserver Message-ID: Hi Norman, I am sure I have been able to select between JP2ECW and JP2KAK drivers in FWTools Mapserver version in some way, because I have been doing some speed comparisons by doing so. I can't find right now how I did it. I think that if GDAL has several drivers for an image format, which is the case with JPEG2000, it selects the first it finds, but there is some way to tell GDAL to _skip_ a driver. Then the next driver in a row will be selected. Frank Warmerdam. revealed the trick but I couldn't find the mail from Mapserver or gdal-dev archives yet. Anyway, I believe you should be able to use JP2KAK with FWTools in a simple way if you find out how to skip the JP2ECW driver. Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Norman Barker Sent: Mon 25.6.2007 21:03 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Specifying gdal input driver for mapserver Hi, Is there a way to specify the GDAL input driver for MapServer? I would like to choose JP2KAK over JP2ECW on a windows machine? Normally I would compile GDAL with just the driver I need, but I want to use FWTools for ease of deployment on Windows. It seems that the JP2ECW driver doesn't handle colour too well on some of my images, and also there is the license problem. Many thanks, Norman Barker From anthony.k.farrant at GMAIL.COM Mon Jun 25 16:35:07 2007 From: anthony.k.farrant at GMAIL.COM (anthony farrant) Date: Tue, 26 Jun 2007 01:35:07 +0200 Subject: list of common extents Message-ID: Hi List, Anybody know if there exists a file with a list of common extents, say countries, continents,... This could be useful. Would there be some way to automatize the creation of such a list? Thx, -A From perrygeo at GMAIL.COM Mon Jun 25 18:15:08 2007 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Mon, 25 Jun 2007 18:15:08 -0700 Subject: list of common extents In-Reply-To: Message-ID: On 6/25/07, anthony farrant wrote: > Hi List, > > Anybody know if there exists a file with a list of common extents, say > countries, continents,... > > This could be useful. > > Would there be some way to automatize the creation of such a list? > The easiest way would be to load a countries shapefile into postgis and calculate the extent of each country: select extent(the_geom), name from countries group by name; I believe the community mapbuilder project also ships with an xml file containing the extents for most countries. -- Matthew T. Perry http://www.perrygeo.net "You never change things by fighting the existing reality. To change something, build a new model that makes the existing model obsolete" - R. Buckminster Fuller From IANT at NAPIER.GOVT.NZ Mon Jun 25 20:46:53 2007 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Tue, 26 Jun 2007 15:46:53 +1200 Subject: OT: MS4W Configuration Message-ID: Hi All, This is a bit off topic, but I am trying to change MS4W from running PHP as a CGI to running the PHP5 module. I have edited the httpd.conf file and added "LoadModule php5_module cgi-bin/php5apache2.dll". But when I test the configuration, I get an error message stating that the DLL file can't be found. Can anyone help me with this?? Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cheung.jackey at GMAIL.COM Tue Jun 26 01:33:28 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Tue, 26 Jun 2007 16:33:28 +0800 Subject: working with database in UTF-8 Message-ID: I've checked that data in MySQL are loaded correctly with UTF-8 encoding, and I can select data out of it with SELECT. However, since I'm using OGR to connect to MySQL, I'm not sure whether there were any encoding issue here. But I'm suspecting that the TTF font I'm using may not correct. I've tried some fonts, like Arial, Arial unicode, and another TTF font of Big5 encoding. But none works. The original encoding of the text is Big5, I've converted and loaded them to MySQL as UTF-8, and they show up correct inside MySQL, what fonts should I use to display them on a map? ----- Original Message ----- From: "Stephen Woodbridge" To: Sent: Saturday, June 23, 2007 02:45 Subject: Re: [UMN_MAPSERVER-USERS] working with database in UTF-8 > Jackey, > > I suspect that the font file is not utf8 or the data is already mangled > before it gets to mapserver. The mapserver stuff works fine for me with > utf-8 data in shapefiles as long as I set the ENCODING 'utf8' in the > LABEL. A bigger issue might be: > > What is the encoding on the source data? > what is the encoding on the database? > was the data loded correct with respect to the encoding? > if you do a select * from table in mysql does the data display correctly? > if you slect the records with ogrinfo? to a file or you monitor do they > show corectly? > > There are a WHOLE lot oof steps where things could have broken before it > gets to mapserver. You need to validate the data is still good as it comes > into mapserver. > > -Steve W. > > Steve Lime wrote: >> Hmmm... All the encoding parameter does is tell MapServer to convert from >> the supplied encoding to >> unicode so I don't think it has any effect. If you already have >> unicode/utf-8 strings then this should >> just work assuming your font has the right characters. >> >> Does a simple shapefile work? >> >> Steve >> >>>>> On 6/22/2007 at 2:56 AM, in message >> , Jackey >> Cheung >> wrote: >>> Greetings! >>> >>> I'm trying to setup a mapserver that supports multiple languages with >>> MySQL. >>> The database uses UTF-8, while the map server use a select statement to >>> retrieve records. The layer goes as: >>> >>> LAYER >>> NAME sr >>> STATUS OFF >>> >>> TYPE POINT >>> CONNECTIONTYPE OGR >>> CONNECTION " >>> >>> >>> MYSQL:MapSQL,user=root,password=123456,host=localhost,port=3306 >>> ,tables=POI >>> SELECT `Name`, >>> geom >>> FROM `POI` WHERE `ID` = %o% >>> >>> wkbPoint >>> >>> " >>> DATA "sr" >>> UNITS METERS >>> >>> MAXFEATURES 1 >>> LABELITEM "Name" >>> >>> CLASS >>> SYMBOL "point" >>> MINSIZE 10 >>> COLOR 250 0 0 >>> OUTLINECOLOR 0 128 0 >>> >>> LABEL >>> ENCODING "utf-8" >>> COLOR 255 0 0 >>> OUTLINECOLOR 255 255 255 >>> TYPE TRUETYPE >>> FONT arial >>> SIZE 8 >>> ANTIALIAS TRUE >>> POSITION UC >>> PARTIALS FALSE >>> BUFFER 5 >>> FORCE TRUE >>> END >>> END >>> END >>> >>> All Chinese characters are shown as question marks (?) on the map, no >>> mater >>> using arial or Chinese fonts. >>> >>> Any advise? From Tom.Kralidis at EC.GC.CA Tue Jun 26 04:52:41 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 26 Jun 2007 07:52:41 -0400 Subject: list of common extents In-Reply-To: A<5383fa5e0706251815l4eb0585ev425d19fa4688ddbd@mail.gmail.com> Message-ID: > > Anybody know if there exists a file with a list of common > extents, say > > countries, continents,... > > > > This could be useful. > > > > Would there be some way to automatize the creation of such a list? > > > > > The easiest way would be to load a countries shapefile into > postgis and calculate the extent of each country: > > select extent(the_geom), name > from countries > group by name; > > I believe the community mapbuilder project also ships with an > xml file containing the extents for most countries. > This can be found at: http://nightly.communitymapbuilder.org/mapbuilder/demo/data/locations/Gl obal.xml ..Tom From pedro1_72 at YAHOO.COM Tue Jun 26 07:35:50 2007 From: pedro1_72 at YAHOO.COM (Nahum Castro) Date: Tue, 26 Jun 2007 09:35:50 -0500 Subject: Segfault with 4.10.2 In-Reply-To: <75b4b93e0706201113s29b26ec3w4f47b50a3a6f1e4f@mail.gmail.com> Message-ID: --- Umberto Nicoletti escribi?: > Hi Nahum, > gd versions lower than 2.0.34 suffered from a bug in > the antialiasing > code that would crash mapserver. > Try to upgrade to gd 2.0.34 and see if that cures > the problem. > Thanks, the problem was that red hat installed gd, when I compiled mapserver, linked against the red-hat version, no the 2.0.34. Problem solved, Thanks. -- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com ___________________________________________________________ Do You Yahoo!? La mejor conexi?n a Internet y 2GB extra a tu correo por $100 al mes. http://net.yahoo.com.mx From roland.w.martin at GMAIL.COM Tue Jun 26 10:13:45 2007 From: roland.w.martin at GMAIL.COM (Roland Martin) Date: Tue, 26 Jun 2007 18:13:45 +0100 Subject: [Chameleon] LocateByAttribute and zoom to result In-Reply-To: <468135D3.6090008@igeo.pt> Message-ID: Hi Danilo, For some reason, certain versions only work if you throw in an invisible boundingboxpopup as well: Cheers, r. On 26/06/07, Danilo Furtado wrote: > > Hi list, > I'm new in chameleon and mapserver and i trying to use the > LocateByAttribute widget to search attributes in the shapefiles and then > offers a zoom to option results. > Everything is wheel except the zoom to the extents of a selected > feature, that don?t work. > The data Spatial Reference Systems is EPSG:27492 > > > searchall="true" > zoombuffer="50" > height="90" > width="400" > highlight="true" > allowdownload="true" > popup="false" > VISIBLE="TRUE"/> > > Any help/direction would be appreciated. > > Tanks and best regards > Danilo > _______________________________________________ > Chameleon mailing list > Chameleon at lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bogdan at HLEVCA.COM Tue Jun 26 10:20:31 2007 From: bogdan at HLEVCA.COM (bhlevca) Date: Tue, 26 Jun 2007 10:20:31 -0700 Subject: lib-gd strange error In-Reply-To: <200705311042.18141.ale.pas@tiscali.it> Message-ID: I had similar experiences using the Python mapscript API on a 64 bits platform with 10.1 I can generate images from the script directly, but when using the script under apache it crashes somewhere in ming library when is adding the image to the movie. I checked the memory locations and the allocation is done in the 2 distinct cases at different locations. I believe is something related to initialization of memory, I looked in the code and there are may places where variables are not initialized, which is bad thing. I some places memset is correctly used. Please let me know if you found a solution to your problem. I don't understand how Apache2 changes the allocation , yet. I made sure that the environment is passed correctly and it is identical in both cases. I had the exactly same code running fine on 32 bit Linux. Bogdan -- View this message in context: http://www.nabble.com/lib-gd-strange-error-tf3845395.html#a11309465 Sent from the Mapserver - User mailing list archive at Nabble.com. From williams at WEBSAWYER.COM Tue Jun 26 15:25:24 2007 From: williams at WEBSAWYER.COM (Doug Williams) Date: Tue, 26 Jun 2007 16:25:24 -0600 Subject: phpmapscript imagemap creation Message-ID: Hello, I have successfully made an imagemap which I can mouseover and correctly find polygon shapes. Below is the the outputformat in my mapfile which properly generates the map and area coords. Below the outputformat listing from the mapfile is the output generated in the html sent to the client browser. from mapfile: OUTPUTFORMAT NAME imagemap DRIVER imagemap FORMATOPTION "POLYHREF=" FORMATOPTION "MAPNAME=map_test" FORMATOPTION "POLYMOUSEOUT=handleClick(event,'boxinfo','hide it',''); return false;" FORMATOPTION "POLYMOUSEOVER=handleClick(event,'boxinfo','show it','in'); return false;" FORMATOPTION "TITLE=" END from generated html: .... This is not a complete listing as indicated by the '....', but serves to show that I am getting what I want in terms of the image map. MY PROBLEM is that I cannot figure out how to include attribute data from the shape file in the html output. Where my FORMATOPTION "POLYMOUSEOVER=handleClick(event,'boxinfo','show it','in'); return false;" does perform as expected, what I would like to do is change the last parameter in the variables passed to the handleClick javascript function from the term 'in', which displays the word 'in' when I am moused over a polygon to one of the identifying attributes from the shape file. I have tried the following...(NAME is an attribute in this shape file!) FORMATOPTION "POLYMOUSEOVER=handleClick(event,'boxinfo','show it','[NAME]'); return false;" but without the desired effect. Can anyone help me understand how to retrieve the shape attribute data. Is this the right place to grab the attribute? Thanks, Doug From cheung.jackey at GMAIL.COM Tue Jun 26 18:34:11 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Wed, 27 Jun 2007 09:34:11 +0800 Subject: working with database in UTF-8 Message-ID: Well, it shows a bunch of question marks (?) no matter I use arial or big5 fonts. I don't know how to check out the encoding of fonts, and I don't know which font to use for the case. If I use the shape (mapinfo) file, which is in Big5 encoding, mapserver can show the correct characters. I've tried converting the query result to big5 from MySQL: "SELECT CONVERT(name USING big5) AS name FROM table", and use big5 encoding and font for the layer, but it doesn't work neither, still only question marks. ----- Original Message ----- From: "Steve Lime" To: "Jackey Cheung" Sent: Tuesday, June 26, 2007 23:16 Subject: Re: [UMN_MAPSERVER-USERS] working with database in UTF-8 What do you see when you use a unicode Arial, are all characters garbled, a select few or ? If you have a font that has big5 encoding AND also unicode that might be the ticket. Steve >>> On 6/26/2007 at 3:33 AM, in message >>> <27FD47F181414813A4276082ED03C0EC at jackey>, Jackey Cheung wrote: > I've checked that data in MySQL are loaded correctly with UTF-8 encoding, > and I can select data out of it with SELECT. However, since I'm using OGR > to > > connect to MySQL, I'm not sure whether there were any encoding issue here. > > But I'm suspecting that the TTF font I'm using may not correct. I've tried > some fonts, like Arial, Arial unicode, and another TTF font of Big5 > encoding. But none works. The original encoding of the text is Big5, I've > converted and loaded them to MySQL as UTF-8, and they show up correct > inside > MySQL, what fonts should I use to display them on a map? > > > ----- Original Message ----- > From: "Stephen Woodbridge" > To: > Sent: Saturday, June 23, 2007 02:45 > Subject: Re: [UMN_MAPSERVER-USERS] working with database in UTF-8 > >> Jackey, >> >> I suspect that the font file is not utf8 or the data is already mangled >> before it gets to mapserver. The mapserver stuff works fine for me with >> utf-8 data in shapefiles as long as I set the ENCODING 'utf8' in the >> LABEL. A bigger issue might be: >> >> What is the encoding on the source data? >> what is the encoding on the database? >> was the data loded correct with respect to the encoding? >> if you do a select * from table in mysql does the data display correctly? >> if you slect the records with ogrinfo? to a file or you monitor do they >> show corectly? >> >> There are a WHOLE lot oof steps where things could have broken before it >> gets to mapserver. You need to validate the data is still good as it >> comes >> into mapserver. >> >> -Steve W. >> >> Steve Lime wrote: >>> Hmmm... All the encoding parameter does is tell MapServer to convert >>> from >>> the supplied encoding to >>> unicode so I don't think it has any effect. If you already have >>> unicode/utf-8 strings then this should >>> just work assuming your font has the right characters. >>> >>> Does a simple shapefile work? >>> >>> Steve >>> >>>>>> On 6/22/2007 at 2:56 AM, in message >>> , Jackey >>> Cheung >>> wrote: >>>> Greetings! >>>> >>>> I'm trying to setup a mapserver that supports multiple languages with >>>> MySQL. >>>> The database uses UTF-8, while the map server use a select statement to >>>> retrieve records. The layer goes as: >>>> >>>> LAYER >>>> NAME sr >>>> STATUS OFF >>>> >>>> TYPE POINT >>>> CONNECTIONTYPE OGR >>>> CONNECTION " >>>> >>>> >>>> MYSQL:MapSQL,user=root,password=123456,host=localhost,port=3306 >>>> ,tables=POI >>>> SELECT `Name`, >>>> geom >>>> FROM `POI` WHERE `ID` = %o% >>>> >>>> wkbPoint >>>> >>>> " >>>> DATA "sr" >>>> UNITS METERS >>>> >>>> MAXFEATURES 1 >>>> LABELITEM "Name" >>>> >>>> CLASS >>>> SYMBOL "point" >>>> MINSIZE 10 >>>> COLOR 250 0 0 >>>> OUTLINECOLOR 0 128 0 >>>> >>>> LABEL >>>> ENCODING "utf-8" >>>> COLOR 255 0 0 >>>> OUTLINECOLOR 255 255 255 >>>> TYPE TRUETYPE >>>> FONT arial >>>> SIZE 8 >>>> ANTIALIAS TRUE >>>> POSITION UC >>>> PARTIALS FALSE >>>> BUFFER 5 >>>> FORCE TRUE >>>> END >>>> END >>>> END >>>> >>>> All Chinese characters are shown as question marks (?) on the map, no >>>> mater >>>> using arial or Chinese fonts. >>>> >>>> Any advise? From paul at SUSTAINABLEGIS.COM Tue Jun 26 19:09:27 2007 From: paul at SUSTAINABLEGIS.COM (Paul Hastings) Date: Wed, 27 Jun 2007 09:09:27 +0700 Subject: working with database in UTF-8 In-Reply-To: <539460712A8D411BADF073E447FD2D4F@jackey> Message-ID: Jackey Cheung wrote: > Well, it shows a bunch of question marks (?) no matter I use arial or big5 > fonts. I don't know how to check out the encoding of fonts, and I don't know > which font to use for the case. ? indicate that your data is garbaged somewhere along the line, usually from a serious encoding mismatch. mojibake (@$%!?<+~ etc.) usually means simple encoding mismatch. if you see boxes instead of chars, that's a font issue. From terry.byrne at CSIRO.AU Tue Jun 26 19:56:34 2007 From: terry.byrne at CSIRO.AU (Terry Byrne) Date: Tue, 26 Jun 2007 21:56:34 -0500 Subject: Oracle Varray does not display in WFS Message-ID: Hi All I am a novice MapServer user, attempting to use an Oracle Varray to deliver data via WFS. My layer displays correctly in a WMS, but not as WFS. I have tried two clients, Gaia2, and svSIG. Gaia2 reports no error, and will zoom to the layer extent correctly, but does not display any of the data unless the Varray is removed form the select statement. svSIG reports a Java error, and does not zoom to layer. If I delete the Varray column from the select statement, the layer displays correctly in either client. Regards Terry Byrne CSIRO Marine and Atmospheric Research Hobart, Tasmania, Australia From cheung.jackey at GMAIL.COM Tue Jun 26 20:22:19 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Wed, 27 Jun 2007 11:22:19 +0800 Subject: working with database in UTF-8 Message-ID: hmm, yes, you've reminded me 'bout the box and question marks. thx. Currently, all data in the mysql database use utf8, and I'm running a wfs server with the same data, which seems fine. I can use openlayers running in ie or firefox to retrieve data and show them correctly on screen, using utf8 encoding. Question marks show up only in mapserver generated images. Any advise how can I pin down the cause of this problem? ----- Original Message ----- From: "Paul Hastings" To: "Jackey Cheung" Cc: Sent: Wednesday, June 27, 2007 10:09 Subject: Re: [UMN_MAPSERVER-USERS] working with database in UTF-8 > Jackey Cheung wrote: >> Well, it shows a bunch of question marks (?) no matter I use arial or >> big5 fonts. I don't know how to check out the encoding of fonts, and I >> don't know which font to use for the case. > > ? indicate that your data is garbaged somewhere along the line, usually > from a serious encoding mismatch. mojibake (@$%!?<+~ etc.) usually means > simple encoding mismatch. if you see boxes instead of chars, that's a font > issue. From paul at SUSTAINABLEGIS.COM Tue Jun 26 21:50:20 2007 From: paul at SUSTAINABLEGIS.COM (Paul Hastings) Date: Wed, 27 Jun 2007 11:50:20 +0700 Subject: working with database in UTF-8 In-Reply-To: <695A66143CDA4A3FA2CAED8A8A643FD2@jackey> Message-ID: Jackey Cheung wrote: > Currently, all data in the mysql database use utf8, and I'm running a wfs > server with the same data, which seems fine. I can use openlayers running in > ie or firefox to retrieve data and show them correctly on screen, using utf8 > encoding. Question marks show up only in mapserver generated images. > > Any advise how can I pin down the cause of this problem? have you done what the other folks have suggested (verify data/encoding)? can you dump out a text file from mySQL & double check that the text is still readable & unicode? sorry but i don't know enough about OGR to be specific but in most cases it's the db driver itself or it's settings. in the past, i've dealt w/mySQL JDBC driver (outside of mapserver apps) & its url usually needed useUnicode=true&characterEncoding=utf8 added to the connection string (not sure if this is still the case w/newer versions) to get unicode to work. also if you're sure your db *is* unicode, have you tried dropping the utf-8 encoding from your label? From g.molinario at GMAIL.COM Wed Jun 27 01:48:15 2007 From: g.molinario at GMAIL.COM (Giuseppe Molinario) Date: Wed, 27 Jun 2007 10:48:15 +0200 Subject: No subject Message-ID: Hi everyone, Any takers on this problem? My problem is this: I am using the following layer in a Mapserver based application. The DATA connection works, objects are visible on the map in their correct place and symbology, however the query of the postgis table works only if I name the columns of the LEFT table in the RESULT FIELDS. How do i get the thing to query also my Columns from the joined table? Why on earth would i have the same problem usind the DATA connected to a table view? here are the three DATA strings and the metadata DATA "the_geom FROM Tbl_view_map USING UNIQUE oid USING SRID=32633" - works but no query on the joined fields. DATA "the_geom FROM (SELECT allevamenti.the_geom2 AS the_geom, allevamenti.id_desc_ok, allevamenti.oid, allevamenti.cod_azienda, allevamenti.nome, allevamenti.indirizzo, allevamenti.cap, allevamenti.comune, allevamenti.specie, allevamenti.numero_capi, decodificaattivita.descr FROM allevamenti LEFT JOIN decodificaattivita ON allevamenti.id_desc_ok = decodificaattivita.id_desc_ok WHERE allevamenti.id_desc_ok = decodificaattivita.id_desc_ok) AS tbl_result_join USING UNIQUE oid USING SRID=32633" DATA "the_geom FROM (SELECT allevamenti.the_geom2 AS the_geom, allevamenti.id_desc_ok, allevamenti.oid, allevamenti.cod_azienda, allevamenti.nome, allevamenti.indirizzo, allevamenti.cap, allevamenti.comune, allevamenti.specie, allevamenti.numero_capi, decodificaattivita.descr FROM allevamenti, decodificaattivita WHERE allevamenti.id_desc_ok = decodificaattivita.id_desc_ok) AS tbl_result_join USING UNIQUE oid USING SRID=32633" METADATA "DESCRIPTION" "Allevamenti" "RESULT_FIELDS" "cod_azienda, nome, indirizzo, cap, comune, specie, numero_cap, (if i ADD "descr" column here the query tools of my app stop working in all three cases" "RESULT_HEADERS" "Codice Azienda, Nome, Indirizzo, CAP, Comune, Specie Allevata, Numero Capi, Attivit? Commerciali" "LAYER_ENCODING" "UTF-8" END # Metadata Thanks, PS. I am using pmapper Giuseppe -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Wed Jun 27 01:56:26 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 27 Jun 2007 10:56:26 +0200 Subject: No subject In-Reply-To: Message-ID: Giuseppe, try creating a view based on the joined tables. HTH, Umberto On 6/27/07, Giuseppe Molinario wrote: > Hi everyone, > > > Any takers on this problem? > > My problem is this: I am using the following layer in a Mapserver based > application. The DATA connection works, objects are visible on the map in > their correct place and symbology, however the query of the postgis table > works only if I name the columns of the LEFT table in the RESULT FIELDS. How > do i get the thing to query also my Columns from the joined table? Why on > earth would i have the same problem usind the DATA connected to a table > view? > > here are the three DATA strings and the metadata > > DATA "the_geom FROM Tbl_view_map USING UNIQUE oid USING SRID=32633" - works > but no query on the joined fields. > > DATA "the_geom FROM (SELECT allevamenti.the_geom2 AS the_geom, > allevamenti.id_desc_ok, allevamenti.oid, allevamenti.cod_azienda, > allevamenti.nome, allevamenti.indirizzo, allevamenti.cap, > allevamenti.comune, allevamenti.specie, allevamenti.numero_capi , > decodificaattivita.descr FROM allevamenti LEFT JOIN decodificaattivita ON > allevamenti.id_desc_ok = decodificaattivita.id_desc_ok WHERE > allevamenti.id_desc_ok = decodificaattivita.id_desc_ok) AS tbl_result_join > USING UNIQUE oid USING SRID=32633" > > DATA "the_geom FROM (SELECT allevamenti.the_geom2 AS the_geom, > allevamenti.id_desc_ok, allevamenti.oid, allevamenti.cod_azienda, > allevamenti.nome, allevamenti.indirizzo, allevamenti.cap, > allevamenti.comune, allevamenti.specie , allevamenti.numero_capi, > decodificaattivita.descr FROM allevamenti, decodificaattivita WHERE > allevamenti.id_desc_ok = decodificaattivita.id_desc_ok) AS tbl_result_join > USING UNIQUE oid USING SRID=32633" > > METADATA > "DESCRIPTION" "Allevamenti" > "RESULT_FIELDS" "cod_azienda, nome, indirizzo, cap, comune, > specie, numero_cap, (if i ADD "descr" column here the query tools of my app > stop working in all three cases" > "RESULT_HEADERS" "Codice Azienda, Nome, Indirizzo, CAP, Comune, > Specie Allevata, Numero Capi, Attivit? Commerciali" > "LAYER_ENCODING" "UTF-8" > END # Metadata > > Thanks, > > PS. I am using pmapper > > > Giuseppe > > From sbattey at DOTTEDEYES.COM Wed Jun 27 07:24:17 2007 From: sbattey at DOTTEDEYES.COM (Steve-e-b) Date: Wed, 27 Jun 2007 07:24:17 -0700 Subject: UnsatisfiedLinkError loading the MapScript Java library In-Reply-To: <11285812.post@talk.nabble.com> Message-ID: Working on the assumption there is a conflict between FWTools and the JRE I tried using other versions of Java. In all I tested MapServer (compiled against FWTools 1.3.2) with Java v1.5.0_01, v1.5.0_07, v1.5.0_09, v1.5.0_10, v1.5.0_12. Each time I got the same error when the MapScript Java library is loaded: undefined symbol: jpeg_resync_to_restart Although JDKs v1.5.0_10 and v1.5.0_12 masked this problem with a different error message: Can't load IA 32-bit .so on a IA 32-bit platform (see http://forum.java.sun.com/thread.jspa?threadID=792436 http://forum.java.sun.com/thread.jspa?threadID=792436 ) As I'm using Tomcat 5 I can't go back to JDK 1.4. While Java 6 crashes Linux when I use the javac command. So stuck with Java5 I tried changing the version of FWTools instead. I downloaded and installed FWTools 1.1.1. When MapServer is compiled against this version of FWTools the runtime error does not occur. The libmapscript.so library loads and I get maps, at last! Steve-e-b wrote: > > I am compiling MapServer v4.8.4 using FWTools v1.3.2 for our webapp > running in Tomcat 5.5.17 and using Java 1.5.0_07 on Linux. When I try to > load MapScript Java I get the following error message: > > java.lang.UnsatisfiedLinkError: > /usr/local/mapserver-4.8.4/mapscript/java/libmapscript.so: > /root/rmx/FWTools/lib/libtiff.so.3: undefined symbol: > jpeg_resync_to_restart > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) > at java.lang.Runtime.loadLibrary0(Runtime.java:822) > at java.lang.System.loadLibrary(System.java:992) > > The jpeg_resync_to_restart symbol is defined in the libjpeg library. > I noticed that the JRE has its own libjpeg.so file which takes precedence > over the libjpeg.so file in FWTools. So I replaced the JRE's libjpeg.so > file with the libjpeg.so file in FWTools. This fixes the error message > above, the MapScript Java library loads okay but then the JVM crashes at > random intervals - probably due to the libjpeg library being replaced. > > Has any one encountered this error message before? > It suggests there is a conflict between the libjpeg library required by > the JRE and the libjpeg library required by FWTools. I really want to > avoid having to compile the individual libraries provided by FWTools. Are > there any known compatibility issues between specific versions of JREs and > FWTools? > -- View this message in context: http://www.nabble.com/UnsatisfiedLinkError-loading-the-MapScript-Java-library-tf3975878.html#a11325485 Sent from the Mapserver - User mailing list archive at Nabble.com. From christopher.wellen at MAIL.MCGILL.CA Wed Jun 27 10:53:30 2007 From: christopher.wellen at MAIL.MCGILL.CA (Christopher Wellen) Date: Wed, 27 Jun 2007 12:53:30 -0500 Subject: Call to undefined method getFeature Message-ID: *Hi all, I'm having some trouble getting the getFeature method to work on a layer object. Here's the error I get: Fatal error*: Call to undefined method ms_layer_obj::getFeature() in *C:\ms4w\Apache\htdocs\test.php* on line *10 And the php code: getLayerByName('pn_points'); $attribute = $this_layer->getFeature(1, -1); echo "ok"; ?> and the mapfile: # This is our fifth map file NAME "es" UNITS meters EXTENT 167000 5814000 542300 5948000 SIZE 640 480 IMAGECOLOR 255 255 255 IMAGETYPE PNG SHAPEPATH "c:\ms4w\apache\htdocs\wem\" FONTSET "c:\ms4w\apache\htdocs\fontset.txt" WEB IMAGEPATH "/ms_temp/" IMAGEURL "http://132.206.251.215/ms_temp/" END ##################################### # placenames layer - points # LAYER NAME "pn_points" DATA "points_ID_real" STATUS on TYPE point CLASS STYLE SIZE 1 COLOR 100 100 200 END END END END # mapfile Any ideas? I'm totally stumped. I don't know if its the software (mapserver 4.10, mapscript 4.10, php 5)or a mistake I've made that is eluding me. * -- Christopher Wellen M.Sc. Candidate Department of Geography McGill University Montreal, Quebec Burnside Hall room 428 805 Sherbrooke Street West Montreal, Quebec H3A 2K6 skype: christopher.wellen MSN: christopher.wellen at mail.mcgill.ca home: 514-509-9476 cell: 514-585-5138 From alan.hale at BTCLICK.COM Wed Jun 27 14:13:46 2007 From: alan.hale at BTCLICK.COM (Alan Hale) Date: Wed, 27 Jun 2007 22:13:46 +0100 Subject: More GDAL problems Message-ID: On Fedora Linux - I've installed GDAL as part of FWTools package and now trying to re-configure Mapserver with GDAL. I've put the path to FWTools in bash_profile but the Mapserver config can't find it without help. So I put --with-gdal=/[path to]/FWTools-1.3.2/bin_safe/gdal-config. This works - but when I add other options (e.g. --with-proj) - the Mapserver config fails to find gdal-config. I've trie dputting --with-gdal first in the options list but this does not make any difference. Very odd. Can anyone help please? Alan Hale Aberystwyth Wales No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.9.10/873 - Release Date: 26/06/2007 23:54 From warmerdam at POBOX.COM Wed Jun 27 14:41:25 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 27 Jun 2007 17:41:25 -0400 Subject: More GDAL problems In-Reply-To: <001301c7b900$0d0fb420$0401a8c0@bryo> Message-ID: Alan Hale wrote: > On Fedora Linux - I've installed GDAL as part of FWTools package and now > trying to re-configure Mapserver with GDAL. I've put the path to FWTools > in bash_profile but the Mapserver config can't find it without help. > So I put --with-gdal=/[path to]/FWTools-1.3.2/bin_safe/gdal-config. This > works - but when I add other options (e.g. --with-proj) - the Mapserver > config fails to find gdal-config. I've trie dputting --with-gdal first > in the options list but this does not make any difference. Very odd. Alan, FWTools isn't really intended for building other packages on top of. In theory, it might work but little care goes into make sure it will. So I am not sure your basic idea is prudent. Also, FWTools does include a MapServer build. Is this unsuitable for your use for some reason? 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 williams at WEBSAWYER.COM Wed Jun 27 16:50:37 2007 From: williams at WEBSAWYER.COM (Doug Williams) Date: Wed, 27 Jun 2007 17:50:37 -0600 Subject: phpmapscript imagemap attributes Message-ID: Hi All, Jeff, Assefa, I have made a phpmapscript to generate an imagemap for my drawn map so when mousing over the map information about the shp below the mouse cursor is displayed beside the cursor. I like the way it works, http://www.wildweb.org/imagemap/ except for a couple of questions! I am using version 4.8 on linux. 1) Some of the polygon coords for the map areas begin with a comma, such as ...... Notice how the coords for the second area begin with a comma. Does that mean I have a bad shape file? Those commas seem problematic for some browsers when using the imagemap. If I delete the commas by brute force and then display the edited html file, the imagemap works properly in all the browsers I have checked, although I guess that the areas with just two coords are not good... 2) I cannot figure how to get the attribute data for the shape. The cgi version of mapserver describes using a template, but where the cgi version describes the use of templates for other tasks, I have not found them useful for phpmapscript version, nor am I using, for this script, the header and footer templates as described in the cgi version imagemap creation tutorial, as setting the OUTPUTFORMAT driver to imagemap along with the correct FORMATOPTIONs generates everything as described in the cgi version tutorial, except I am not understanding how to get the attribute data other than the shp coords. The cgi version says the the mode would need to be set to nquery. I think this means that phpmapscript does a drawQuery(). Attempting this results in: Warning: [MapServer Error]: msDrawQueryMap(): Unable to initialize image. in /.../index.php on line 184 Fatal error: Call to a member function on a non-object in /.../index.php on line 185 It does not seem necessary to use drawQuery(). draw() provides the coords as desired (w/ the question about the commas above). My belief is that I would grab the attribute data in the FORMATOPTION statement. Am I on the right track? Does this capability exist as part of the OUTPUTFORMAT imagemap driver in phpmapscript? This is my OUTPUTFORMAT to create the imagemap: OUTPUTFORMAT NAME imagemap DRIVER imagemap FORMATOPTION "MAPNAME=map_test" FORMATOPTION "POLYHREF=" FORMATOPTION "POLYMOUSEOUT=handleClick(event,'boxinfo','hide it',''); return false;" FORMATOPTION "POLYMOUSEOVER=handleClick(event,'boxinfo','show it','%NAME%'); return false;" FORMATOPTION "TITLE=" MIMETYPE "text/html" END The %NAME% was based on the sections discussing cookie variables and such, and NAME just ends up displayed without the % chars. [NAME] as shown in the cgi version doc produces [NAME] as output. I have tried escaping the ' char with \, but that results in an error. Is there a code to put in the FORMATOPTION statement to obtain attribute data? Does the layer definition matter? Here is my layer definition: LAYER NAME "lakes" DATA esri/world/lakes STATUS on PROJECTION "proj=latlong" END #projection TYPE POLYGON METADATA "DESCRIPTION" "Lakes" "RESULT_FIELDS" "NAME SURF_ELEV DEPTH" END # HEADER "lakes_header.html" # FOOTER "lakes_footer.html" TEMPLATE "" CLASS NAME "States" OUTLINECOLOR 0 0 0 END END I have tried this with a couple of different layers and like the imagemap result (aside from not understanding why some area coords begin with a comma), but without the attribute data I am not sure what to do with it! All ideas would be much appreciated, Doug From pgiannini at BYTEWISE.IT Thu Jun 28 00:56:37 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Thu, 28 Jun 2007 09:56:37 +0200 Subject: Call to undefined method getFeature In-Reply-To: Message-ID: Hi Christopher, there is no mapscript function layerobj::getFeature(), maybe you need the layeroby::getShape(). (Effectively getFeature is a more exact name for this function: a "shape" don't have attributes, a "feature" is a shape with attributes) take a look here: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/layerobj ciao .........................pg Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E > *Hi all, > > I'm having some trouble getting the getFeature method to work on a layer > object. Here's the error I get: > > Fatal error*: Call to undefined method ms_layer_obj::getFeature() in > *C:\ms4w\Apache\htdocs\test.php* on line *10 > > And the php code: > > dl("php_mapscript.dll"); > dl("php_dbase.dll"); > dl("php_curl.dll"); > > > $shape_id = 1; > $map = ms_newMapObj("c:\ms4w\apache\htdocs\es.map"); > $this_layer = $map->getLayerByName('pn_points'); > $attribute = $this_layer->getFeature(1, -1); > echo "ok"; > ?> > > and the mapfile: > > # This is our fifth map file > NAME "es" > UNITS meters > EXTENT 167000 5814000 542300 5948000 > SIZE 640 480 > IMAGECOLOR 255 255 255 > IMAGETYPE PNG > SHAPEPATH "c:\ms4w\apache\htdocs\wem\" > FONTSET "c:\ms4w\apache\htdocs\fontset.txt" > > WEB > IMAGEPATH "/ms_temp/" > IMAGEURL "http://132.206.251.215/ms_temp/" > END > > ##################################### > # placenames layer - points > # > LAYER > NAME "pn_points" > DATA "points_ID_real" > STATUS on > TYPE point > CLASS > STYLE > SIZE 1 > COLOR 100 100 200 > END > END > END > > > END # mapfile > > Any ideas? I'm totally stumped. I don't know if its the software > (mapserver > 4.10, mapscript 4.10, php 5)or a mistake I've made that is eluding me. > * > > -- > Christopher Wellen > M.Sc. Candidate > Department of Geography > McGill University > Montreal, Quebec > Burnside Hall room 428 > 805 Sherbrooke Street West > Montreal, Quebec H3A 2K6 > skype: christopher.wellen > MSN: christopher.wellen at mail.mcgill.ca > home: 514-509-9476 > cell: 514-585-5138 > From roybraam at B3PARTNERS.NL Thu Jun 28 03:56:00 2007 From: roybraam at B3PARTNERS.NL (Roy Braam) Date: Thu, 28 Jun 2007 12:56:00 +0200 Subject: transparency of rotated GIF files Message-ID: Hai, I've got a question about the transparency of rotated GIF files. Perhaps it's asked a many times but i can't find a answer on the internet. The layer: LAYER STATUS OFF METADATA "wms_title" "somelayer" END CONNECTIONTYPE postgis NAME "somelayer" CONNECTION "user=postgres password=xxxx dbname=xxxx host=xxxxx" DATA "the_geom from somelayer" #MAXSCALE 100000 TYPE POINT DUMP TRUE TEMPLATE bla TOLERANCE 10 TRANSPARENCY alpha CLASS EXPRESSION ('[s]'="B") NAME "Brug" STYLE ANGLE [road_direction] COLOR 0 0 255 SYMBOL "bridge.gif" END END END If i don't rotate the image then the image is transparent but if i add the property angle [road_direction] the image rotates fine but isn't transparent any more. How can a i solv this problem? Tia, Roy -------------- next part -------------- An HTML attachment was scrubbed... URL: From nkdiitd2002 at GMAIL.COM Thu Jun 28 04:37:56 2007 From: nkdiitd2002 at GMAIL.COM (nishith datta) Date: Thu, 28 Jun 2007 17:07:56 +0530 Subject: unable to display point data Message-ID: hi every1, I am new to mapserver. Can't display a point data when set the TYPE keyword to POINT in the layer object. No error is displayed , just the data won't show up in the browser. What could be wrong ? thanks nishith -------------- next part -------------- An HTML attachment was scrubbed... URL: From roybraam at B3PARTNERS.NL Thu Jun 28 05:10:46 2007 From: roybraam at B3PARTNERS.NL (Roy Braam) Date: Thu, 28 Jun 2007 14:10:46 +0200 Subject: unable to display point data In-Reply-To: ab4f50c80706280437o48b26637h55c6288be1cfb22a@mail.gmail.com Message-ID: Nishith Please give some more info about your configuration. Like the settings in your mapfile. Roy _____ From: nishith datta [mailto:nkdiitd2002 at GMAIL.COM] To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thu, 28 Jun 2007 13:37:56 +0200 Subject: [UMN_MAPSERVER-USERS] unable to display point data hi every1, I am new to mapserver. Can't display a point data when set the TYPE keyword to POINT in the layer object. No error is displayed , just the data won't show up in the browser. What could be wrong ? thanks nishith -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Thu Jun 28 05:47:04 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 28 Jun 2007 09:47:04 -0300 Subject: Oracle Varray does not display in WFS In-Reply-To: Message-ID: Hi Terry, Can you provide more info about the problem? What type of call are not working? How did you define your layer? Are you trying to show how type the columns (the database column type)? Are you using what connector driver, OGR, Native Connection? Best regards. --------------------------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer --------------------------------------------------------------- Terry Byrne wrote: > Hi All > I am a novice MapServer user, attempting to use an Oracle Varray to deliver > data via WFS. > My layer displays correctly in a WMS, but not as WFS. > I have tried two clients, Gaia2, and svSIG. Gaia2 reports no error, and will > zoom to the layer extent correctly, but does not display any of the data > unless the Varray is removed form the select statement. > svSIG reports a Java error, and does not zoom to layer. > If I delete the Varray column from the select statement, the layer displays > correctly in either client. > > Regards > Terry Byrne > CSIRO Marine and Atmospheric Research > Hobart, Tasmania, Australia > > From topografia.oliva at CV.GVA.ES Thu Jun 28 06:02:52 2007 From: topografia.oliva at CV.GVA.ES (Lara Perez) Date: Thu, 28 Jun 2007 08:02:52 -0500 Subject: Mapserver 4.4 to mapserver 4.10 migration problem Message-ID: Hello, everybody. I have a little problem I had my mapserver 4.4. running under apache 1.3 and i'd actualizated to apache 2.2 and mapser 4.10. I'd made the necesaries changes, but when the html page opens, the images (*.map) are not shown. If I make a pan it works, but I don't see the images. I can navigate fine, but I can't see the maps. I?ve attached the files. Any idea? Thanks in advance. -------------- next part -------------- A non-text attachment was scrubbed... Name: Planeamiento.map Type: application/octet-stream Size: 5485 bytes Desc: not available URL: From christopher.wellen at MAIL.MCGILL.CA Thu Jun 28 06:42:38 2007 From: christopher.wellen at MAIL.MCGILL.CA (Christopher Wellen) Date: Thu, 28 Jun 2007 09:42:38 -0400 Subject: Call to undefined method getFeature In-Reply-To: <53344.62.77.56.15.1183017397.squirrel@127.0.0.1> Message-ID: Thanks Pietro, though the reference did mention that the getShape method was deprecated in favor of the getFeature one. This begs the question of exactly how I would get the attributes associated with a particular shape. Chris Pietro Giannini wrote: > Hi Christopher, > > there is no mapscript function layerobj::getFeature(), maybe you need the > layeroby::getShape(). > > (Effectively getFeature is a more exact name for this function: a "shape" > don't have attributes, a "feature" is a shape with attributes) > > take a look here: > http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/layerobj > > ciao > .........................pg > > > > > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > > > >> *Hi all, >> >> I'm having some trouble getting the getFeature method to work on a layer >> object. Here's the error I get: >> >> Fatal error*: Call to undefined method ms_layer_obj::getFeature() in >> *C:\ms4w\Apache\htdocs\test.php* on line *10 >> >> And the php code: >> >> > dl("php_mapscript.dll"); >> dl("php_dbase.dll"); >> dl("php_curl.dll"); >> >> >> $shape_id = 1; >> $map = ms_newMapObj("c:\ms4w\apache\htdocs\es.map"); >> $this_layer = $map->getLayerByName('pn_points'); >> $attribute = $this_layer->getFeature(1, -1); >> echo "ok"; >> ?> >> >> and the mapfile: >> >> # This is our fifth map file >> NAME "es" >> UNITS meters >> EXTENT 167000 5814000 542300 5948000 >> SIZE 640 480 >> IMAGECOLOR 255 255 255 >> IMAGETYPE PNG >> SHAPEPATH "c:\ms4w\apache\htdocs\wem\" >> FONTSET "c:\ms4w\apache\htdocs\fontset.txt" >> >> WEB >> IMAGEPATH "/ms_temp/" >> IMAGEURL "http://132.206.251.215/ms_temp/" >> END >> >> ##################################### >> # placenames layer - points >> # >> LAYER >> NAME "pn_points" >> DATA "points_ID_real" >> STATUS on >> TYPE point >> CLASS >> STYLE >> SIZE 1 >> COLOR 100 100 200 >> END >> END >> END >> >> >> END # mapfile >> >> Any ideas? I'm totally stumped. I don't know if its the software >> (mapserver >> 4.10, mapscript 4.10, php 5)or a mistake I've made that is eluding me. >> * >> >> -- >> Christopher Wellen >> M.Sc. Candidate >> Department of Geography >> McGill University >> Montreal, Quebec >> Burnside Hall room 428 >> 805 Sherbrooke Street West >> Montreal, Quebec H3A 2K6 >> skype: christopher.wellen >> MSN: christopher.wellen at mail.mcgill.ca >> home: 514-509-9476 >> cell: 514-585-5138 >> >> > > > -- Christopher Wellen M.Sc. Candidate Department of Geography McGill University Montreal, Quebec Burnside Hall room 428 805 Sherbrooke Street West Montreal, Quebec H3A 2K6 skype: christopher.wellen MSN: christopher.wellen at mail.mcgill.ca home: 514-509-9476 cell: 514-585-5138 From pgiannini at BYTEWISE.IT Thu Jun 28 07:21:06 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Thu, 28 Jun 2007 16:21:06 +0200 Subject: Call to undefined method getFeature In-Reply-To: <4683BACE.6090604@mail.mcgill.ca> Message-ID: Chris, I don't read the reference, which doc? I use mapscript 4.10 and, like you, function getShape don't exists. to get attributes I do: $obj_layer = $obj_map->getLayerByName("name_of_layer"); $obj_layer->queryByRect($a_obj_rect); // or queryBYPoint, or queryByAttributes... $obj_layer->open(); $i_numres = $obj_layer->getNumResults(); for ($i=0;$i<$i_numres;$i++) { $resCache = $obj_layer->getResult($i); $sh = $obj_layer->getShape(resCache->tileindex,$resCache->shapeindex); print_r($sh->values); } $obj_layer->close(); I hope it is useful. ciao ...............................pg Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E > Thanks Pietro, though the reference did mention that the getShape method > was deprecated in favor of the getFeature one. This begs the question of > exactly how I would get the attributes associated with a particular shape. > > Chris > > Pietro Giannini wrote: >> Hi Christopher, >> >> there is no mapscript function layerobj::getFeature(), maybe you need >> the >> layeroby::getShape(). >> >> (Effectively getFeature is a more exact name for this function: a >> "shape" >> don't have attributes, a "feature" is a shape with attributes) >> >> take a look here: >> http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/layerobj >> >> ciao >> .........................pg >> >> >> >> >> Pietro Giannini >> Bytewise srl - Area GIS >> 41?50'38.58"N 12?29'13.39"E >> >> >> >> >> >>> *Hi all, >>> >>> I'm having some trouble getting the getFeature method to work on a >>> layer >>> object. Here's the error I get: >>> >>> Fatal error*: Call to undefined method ms_layer_obj::getFeature() in >>> *C:\ms4w\Apache\htdocs\test.php* on line *10 >>> >>> And the php code: >>> >>> >> dl("php_mapscript.dll"); >>> dl("php_dbase.dll"); >>> dl("php_curl.dll"); >>> >>> >>> $shape_id = 1; >>> $map = ms_newMapObj("c:\ms4w\apache\htdocs\es.map"); >>> $this_layer = $map->getLayerByName('pn_points'); >>> $attribute = $this_layer->getFeature(1, -1); >>> echo "ok"; >>> ?> >>> >>> and the mapfile: >>> >>> # This is our fifth map file >>> NAME "es" >>> UNITS meters >>> EXTENT 167000 5814000 542300 5948000 >>> SIZE 640 480 >>> IMAGECOLOR 255 255 255 >>> IMAGETYPE PNG >>> SHAPEPATH "c:\ms4w\apache\htdocs\wem\" >>> FONTSET "c:\ms4w\apache\htdocs\fontset.txt" >>> >>> WEB >>> IMAGEPATH "/ms_temp/" >>> IMAGEURL "http://132.206.251.215/ms_temp/" >>> END >>> >>> ##################################### >>> # placenames layer - points >>> # >>> LAYER >>> NAME "pn_points" >>> DATA "points_ID_real" >>> STATUS on >>> TYPE point >>> CLASS >>> STYLE >>> SIZE 1 >>> COLOR 100 100 200 >>> END >>> END >>> END >>> >>> >>> END # mapfile >>> >>> Any ideas? I'm totally stumped. I don't know if its the software >>> (mapserver >>> 4.10, mapscript 4.10, php 5)or a mistake I've made that is eluding me. >>> * >>> >>> -- >>> Christopher Wellen >>> M.Sc. Candidate >>> Department of Geography >>> McGill University >>> Montreal, Quebec >>> Burnside Hall room 428 >>> 805 Sherbrooke Street West >>> Montreal, Quebec H3A 2K6 >>> skype: christopher.wellen >>> MSN: christopher.wellen at mail.mcgill.ca >>> home: 514-509-9476 >>> cell: 514-585-5138 >>> >>> >> >> >> > > > -- > Christopher Wellen > M.Sc. Candidate > Department of Geography > McGill University > Montreal, Quebec > Burnside Hall room 428 > 805 Sherbrooke Street West > Montreal, Quebec H3A 2K6 > skype: christopher.wellen > MSN: christopher.wellen at mail.mcgill.ca > home: 514-509-9476 > cell: 514-585-5138 > From christopher.wellen at MAIL.MCGILL.CA Thu Jun 28 07:40:43 2007 From: christopher.wellen at MAIL.MCGILL.CA (Christopher Wellen) Date: Thu, 28 Jun 2007 10:40:43 -0400 Subject: Call to undefined method getFeature In-Reply-To: <59172.62.77.56.18.1183040466.squirrel@127.0.0.1> Message-ID: Thanks very much Pietro! I'm sure this will help many mapscript newbies! Chris Pietro Giannini wrote: > Chris, > I don't read the reference, which doc? > I use mapscript 4.10 and, like you, function getShape don't exists. > > to get attributes I do: > > $obj_layer = $obj_map->getLayerByName("name_of_layer"); > $obj_layer->queryByRect($a_obj_rect); > // or queryBYPoint, or queryByAttributes... > $obj_layer->open(); > $i_numres = $obj_layer->getNumResults(); > for ($i=0;$i<$i_numres;$i++) { > $resCache = $obj_layer->getResult($i); > $sh = $obj_layer->getShape(resCache->tileindex,$resCache->shapeindex); > print_r($sh->values); > } > $obj_layer->close(); > > I hope it is useful. > > ciao > ...............................pg > > > > > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > > >> Thanks Pietro, though the reference did mention that the getShape method >> was deprecated in favor of the getFeature one. This begs the question of >> exactly how I would get the attributes associated with a particular shape. >> >> Chris >> >> Pietro Giannini wrote: >> >>> Hi Christopher, >>> >>> there is no mapscript function layerobj::getFeature(), maybe you need >>> the >>> layeroby::getShape(). >>> >>> (Effectively getFeature is a more exact name for this function: a >>> "shape" >>> don't have attributes, a "feature" is a shape with attributes) >>> >>> take a look here: >>> http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/layerobj >>> >>> ciao >>> .........................pg >>> >>> >>> >>> >>> Pietro Giannini >>> Bytewise srl - Area GIS >>> 41?50'38.58"N 12?29'13.39"E >>> >>> >>> >>> >>> >>> >>>> *Hi all, >>>> >>>> I'm having some trouble getting the getFeature method to work on a >>>> layer >>>> object. Here's the error I get: >>>> >>>> Fatal error*: Call to undefined method ms_layer_obj::getFeature() in >>>> *C:\ms4w\Apache\htdocs\test.php* on line *10 >>>> >>>> And the php code: >>>> >>>> >>> dl("php_mapscript.dll"); >>>> dl("php_dbase.dll"); >>>> dl("php_curl.dll"); >>>> >>>> >>>> $shape_id = 1; >>>> $map = ms_newMapObj("c:\ms4w\apache\htdocs\es.map"); >>>> $this_layer = $map->getLayerByName('pn_points'); >>>> $attribute = $this_layer->getFeature(1, -1); >>>> echo "ok"; >>>> ?> >>>> >>>> and the mapfile: >>>> >>>> # This is our fifth map file >>>> NAME "es" >>>> UNITS meters >>>> EXTENT 167000 5814000 542300 5948000 >>>> SIZE 640 480 >>>> IMAGECOLOR 255 255 255 >>>> IMAGETYPE PNG >>>> SHAPEPATH "c:\ms4w\apache\htdocs\wem\" >>>> FONTSET "c:\ms4w\apache\htdocs\fontset.txt" >>>> >>>> WEB >>>> IMAGEPATH "/ms_temp/" >>>> IMAGEURL "http://132.206.251.215/ms_temp/" >>>> END >>>> >>>> ##################################### >>>> # placenames layer - points >>>> # >>>> LAYER >>>> NAME "pn_points" >>>> DATA "points_ID_real" >>>> STATUS on >>>> TYPE point >>>> CLASS >>>> STYLE >>>> SIZE 1 >>>> COLOR 100 100 200 >>>> END >>>> END >>>> END >>>> >>>> >>>> END # mapfile >>>> >>>> Any ideas? I'm totally stumped. I don't know if its the software >>>> (mapserver >>>> 4.10, mapscript 4.10, php 5)or a mistake I've made that is eluding me. >>>> * >>>> >>>> -- >>>> Christopher Wellen >>>> M.Sc. Candidate >>>> Department of Geography >>>> McGill University >>>> Montreal, Quebec >>>> Burnside Hall room 428 >>>> 805 Sherbrooke Street West >>>> Montreal, Quebec H3A 2K6 >>>> skype: christopher.wellen >>>> MSN: christopher.wellen at mail.mcgill.ca >>>> home: 514-509-9476 >>>> cell: 514-585-5138 >>>> >>>> >>>> >>> >>> >> -- >> Christopher Wellen >> M.Sc. Candidate >> Department of Geography >> McGill University >> Montreal, Quebec >> Burnside Hall room 428 >> 805 Sherbrooke Street West >> Montreal, Quebec H3A 2K6 >> skype: christopher.wellen >> MSN: christopher.wellen at mail.mcgill.ca >> home: 514-509-9476 >> cell: 514-585-5138 >> >> > > > -- Christopher Wellen M.Sc. Candidate Department of Geography McGill University Montreal, Quebec Burnside Hall room 428 805 Sherbrooke Street West Montreal, Quebec H3A 2K6 skype: christopher.wellen MSN: christopher.wellen at mail.mcgill.ca home: 514-509-9476 cell: 514-585-5138 From alan.hale at BTCLICK.COM Thu Jun 28 08:08:37 2007 From: alan.hale at BTCLICK.COM (Alan Hale) Date: Thu, 28 Jun 2007 16:08:37 +0100 Subject: More GDAL problems In-Reply-To: <4683CA72.4040005@pobox.com> Message-ID: > -----Original Message----- > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > > Have you looked at FGS? It is the "natural" choice of a binaries > for linux that will work with Chameleon and friends. Yes, I've successfully installed Mapserver/Chameleon on a test system without Apache or PHP pre-installed. My "working server" has Apache and PHP5 installed as a module. I'm not clear on the implications when this is the case - whether the FGS install will impinge on applications running on the PHP5 module (including Plesk Control panel) for example. I've asked about this on the Chameleon mailing list now, awaiting a reply. > > /me scans for previous post. > > Was it "Problem installing gdal" where you say: > > """ > Trying to do a make install of gdal-1.4.1 on Fedora. This > seems to have a problem with Python. > > Make[1]: [gdal_wrap.o] Error 1 > Make: [py-module] Error 2 Yes > First, you haven't given enough text around the failure to > constructive answer. No doubt why I ignored it the first time around. Apologies. It was a straight configure, with no options > > But also, what do you need python for if you want to use Chameleon? > If you don't need it just configure "--without-python". There are > lots of messy problems that can arise as you start adding > languages and external libraries to gdal builds. > Good point! I've now tried the gdal configure --without-python and it works fine, and is happy to play with the mapserver config. Many thanks for your advice. Alan Hale Aberystwyth Wales No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.9.10/875 - Release Date: 27/06/2007 21:08 From jdouglas at I3.COM Thu Jun 28 10:26:12 2007 From: jdouglas at I3.COM (Jay Douglas) Date: Thu, 28 Jun 2007 12:26:12 -0500 Subject: Map Server 64 bit on Windows Message-ID: I?m looking for a complete answer on using MapServer in 64 bit on Windows 2003 R2 64bit. Currently MapServer is executing as a CGI via Apache (I can change to IIS at anytime). I?ve found a few message threads touching on the idea, but no definitive answers. Is there any message thread, article, tutorial, etc that will help with completing the compilation? Thanks for any help!! Jay PS: Other message threads http://lists.umn.edu/cgi-bin/wa?A2=ind0611&L=MAPSERVER- USERS&P=R21863&X=7AE0E54523D02F350A http://lists.umn.edu/cgi-bin/wa?A2=ind0701&L=MAPSERVER- USERS&P=R25970&X=7AE0E54523D02F350A From ebalas at GRNOC.IU.EDU Thu Jun 28 11:08:36 2007 From: ebalas at GRNOC.IU.EDU (Edward G. Balas) Date: Thu, 28 Jun 2007 14:08:36 -0400 Subject: Try to adjust projection parameters via CGI Message-ID: Hey all, Ive been dorking with mapserver for a while now and cant seem to figure out how to do something which on the surface would seem to be a common task. Within my map, I would like keep lon_0 centered between MINX and MAXX of my extent. The objective is keep the projection centered on what the user is looking at while also allowing the user to change their extent via the CGI interface. I explored using variable substitution but it would appear as if this is not supported in the PROJECTION stanza. Any thoughts on how this might best be accomplished? --- Edward G. Balas ebalas at grnoc.iu.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From rdmailings at DUIF.NET Thu Jun 28 11:55:28 2007 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Thu, 28 Jun 2007 20:55:28 +0200 Subject: transparency of rotated GIF files In-Reply-To: <20070628105600.b542dc2e@kmail.b3partners.nl> Message-ID: Hi Roy, I've been fiddling with this also, but was not successfull. I found that it's only possible to rotate 90, 180 and 270 degree's WITH transparency, but only with png24 (not png8), all other degrees will result in some semitransparent block around the symbol. Somebody suggested problems with the underlying gdlib at that time? If you (or somebody else) manage(s) to get this working: please let me/us know. for example see: http://www.nabble.com/Re%3A-Problem%3A-ANGLEITEM-and-TRANSPARENT-tf3490343.html#a9872743 Richard Duivenvoorde Roy Braam wrote: > Hai, > > I've got a question about the transparency of rotated GIF files. Perhaps > it's asked a many times but i can't find a answer on the internet. > > The layer: > LAYER > STATUS OFF > METADATA > "wms_title" "somelayer" > END > CONNECTIONTYPE postgis > NAME "somelayer" > CONNECTION "user=postgres password=xxxx dbname=xxxx host=xxxxx" > DATA "the_geom from somelayer" > #MAXSCALE 100000 > TYPE POINT > DUMP TRUE > TEMPLATE bla > TOLERANCE 10 > TRANSPARENCY alpha > CLASS > EXPRESSION ('[s]'="B") > NAME "Brug" > STYLE > ANGLE [road_direction] > COLOR 0 0 255 > SYMBOL "bridge.gif" > END > END > END > > If i don't rotate the image then the image is transparent but if i add > the property angle [road_direction] the image rotates fine but isn't > transparent any more. How can a i solv this problem? > > Tia, > > Roy From siukola.antti at GMAIL.COM Thu Jun 28 13:25:14 2007 From: siukola.antti at GMAIL.COM (antti siukola) Date: Thu, 28 Jun 2007 23:25:14 +0300 Subject: Problem with an odbc connection In-Reply-To: Message-ID: Hi! I get this error now: I run #ogrinfo name.ovf --debug on ERROR 4: Update access not supported for VRT datasources. OGR_ODBC: EstablishSession(DSN:"dsn", userid:"user", password:"pass") ODBC: SQLConnect(myodbc) ODBC: ... failed: [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed ODBC: SQLDisconnect() ERROR 1: Unable to initialize ODBC connection to DSN for user/pass at dsn, [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed FAILURE: Unable to open datasource `name.ovf' with the following drivers. ODBC connection works fine with isql and ogrinfo if used directly but not with ovf. What can I do? Here's the ovf: ODBC:user/pass at dsn Tested and working SQL The same ovf works fine on 2 other servers but not on my new one. Regards! Antti S From m5 at RENEFOURNIER.COM Thu Jun 28 14:09:42 2007 From: m5 at RENEFOURNIER.COM (M5) Date: Thu, 28 Jun 2007 15:09:42 -0600 Subject: Geographic math question Message-ID: Not being very strong at math, I have a little problem that I'm not sure how to solve. Maybe someone can help me. Basically, given a point (latitude, longitude) and a radius (100 meters) (think circle), I need to compute an equivalent square: That is, two points that would correspond to two corners of the square. From: 51, -114 100 meters To: 51.005, -114.005 NE corner 49.995, -113.995 SW corner Now, the above is not really accurate, of course, since the earth is spherical (well, at least most people think so), and I would like this computation to run in MySQL query, e.g.: UPDATE places SET ne_latitude = (*), ne_longitude = (*), sw_latitude = (*), sw_longitude = (*) In the above table, there are already three columns with the centre latitude and longitude and radius. Any ideas? Thanks. ...Rene -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at GMAIL.COM Thu Jun 28 15:17:51 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Thu, 28 Jun 2007 18:17:51 -0400 Subject: Geographic math question In-Reply-To: <478B2BA1-3B41-4719-BFB8-678750A82763@renefournier.com> Message-ID: On 6/28/07, M5 wrote: > Not being very strong at math, I have a little problem that I'm not sure how > to solve. Maybe someone can help me. > > Basically, given a point (latitude, longitude) and a radius (100 meters) > (think circle), I need to compute an equivalent square: That is, two points > that would correspond to two corners of the square. > > From: 51, -114 100 meters > To: 51.005, -114.005 NE corner > 49.995, -113.995 SW corner > > Now, the above is not really accurate, of course, since the earth is > spherical (well, at least most people think so), and I would like this > computation to run in MySQL query, e.g.: > > UPDATE places SET ne_latitude = (*), ne_longitude = (*), sw_latitude = (*), > sw_longitude = (*) > > In the above table, there are already three columns with the centre latitude > and longitude and radius. Any ideas? Thanks. > use the great circle method for calculating the distance between two lat/lon pairs. See below for an Oracle-specific proc I wrote a while back. Modify it for your database, and adapt it for your problem. ============================ /* The great_circle_distance function calculates distance between two points given two sets of lon/lat and the radius of the earth. I call it lon/lat instead of the more colloquial lat/lon to reflect that lon is actually x coord and lat is y coord. Easy to forget this. This function will return the distance in whatever units the earth radius is provided. FYI, the approx. spherical radius of earth in miles is 3956, and in kms is 6367. In any case, keep in mind that the radius of the earth varies from equator to pole because the earth is not a sphere but an oblate spheroid. It is possible to approximate adjustment to the radius of the earth based on the latitude. For that, two radii would be required. The calculation would be like so earth_radius_equator = radius at equator earth_radius_pole = radius at pole lat = latitude at which the radius is desired earth_radius = earth_radius_equator - ((earth_radius_equator - earth_radius_pole) * SIN(lat)) Suit yerself. Puneet Kishor, punkish at eidesis.org Aug, 2006 */ CREATE OR REPLACE FUNCTION great_circle_distance( lon1 NUMBER, lat1 NUMBER, lon2 NUMBER, lat2 NUMBER, earth_radius NUMBER, ) RETURN NUMBER IS -- change this to suit yourself pi CONSTANT NUMBER := 3.14159; /* Most computers require the arguments of trigonometric functions to be expressed in radians. To convert dms lon/lat to radians, multiply by dec2rad constant declared above */ dec2rad CONSTANT NUMBER := pi / 180; a NUMBER; c NUMBER; d_lat NUMBER; d_lon NUMBER; BEGIN d_lon := abs( (lon2 * dec2rad) - (lon1 * dec2rad) ); d_lat := abs( (lat2 * dec2rad) - (lat1 * dec2rad) ); a := POWER(SIN(d_lat / 2), 2) + ( COS( (lat1 * dec2rad) ) * COS( (lat2 * dec2rad) ) * POWER(SIN(d_lon / 2), 2) ); -- distance in radians c := 2 * ATAN2(SQRT(a), SQRT(1-a)); RETURN ROUND(earth_radius * c, 1); END great_circle_distance; ================================= -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ S&T Policy Fellow, National Academy of Sciences http://www.nas.edu/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From tutey at O2.PL Thu Jun 28 16:30:14 2007 From: tutey at O2.PL (Maciej Sieczka) Date: Fri, 29 Jun 2007 01:30:14 +0200 Subject: linked tables and spatial queries Message-ID: Hi All! I'm new here. Just joined the list as I can't find an answer to my question on the Mapserver site, archives and googling around. Maybe I'm just missing terms which I should look for, as I haven't used UMN Mapserver yet and have very little experience with RDBMS. There are 3 postgis layers - administrative boundaries (polygon), protected areas (polygon), location of parties A, B, C, responsible for the protected areas (points). I know I can use UMN Mapserver in order to present the data on a website. But, can Mapserver allow for queries like: a) I click an admistrative unit on the map and obtain a highlited view and a list of protected areas that overlap it? b) now choose one protected area from the list (not from the map) and see which party is responsible for it? c) now click the name of the party and obtain a list and a map view of other protected areas it is in charge of? Sorry if these are obvious questions. I have no experience with RDBMS and Mapserver. Just starting. If what I need is doable, I will be very gratefull if anybody can point me to a resource where I can read how to do it. Best, Maciek From dylan.beaudette at GMAIL.COM Thu Jun 28 18:50:47 2007 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Thu, 28 Jun 2007 18:50:47 -0700 Subject: linked tables and spatial queries In-Reply-To: <46844486.3080608@o2.pl> Message-ID: On Thursday 28 June 2007 16:30, Maciej Sieczka wrote: > Hi All! > > I'm new here. Just joined the list as I can't find an answer to my > question on the Mapserver site, archives and googling around. Maybe I'm > just missing terms which I should look for, as I haven't used UMN > Mapserver yet and have very little experience with RDBMS. > > There are 3 postgis layers - administrative boundaries (polygon), > protected areas (polygon), location of parties A, B, C, responsible for > the protected areas (points). > > I know I can use UMN Mapserver in order to present the data on a website. > > But, can Mapserver allow for queries like: > > a) I click an admistrative unit on the map and obtain a highlited view > and a list of protected areas that overlap it? > > b) now choose one protected area from the list (not from the map) and > see which party is responsible for it? > > c) now click the name of the party and obtain a list and a map view of > other protected areas it is in charge of? > > Sorry if these are obvious questions. I have no experience with RDBMS > and Mapserver. Just starting. If what I need is doable, I will be very > gratefull if anybody can point me to a resource where I can read how to > do it. > > Best, > Maciek Hey Maciek, nice to see you here on the mapsever list! I was in need of this type of functionality, and found it through two methods: 1. define a query template in your mapfile, and have it redirect the user to a PHP page which can do related DB lookups and presentation. You can pass along mapserver query results on the URL. 2. use something like ka-map and adjust how the query system displays the results in the left-hand side panel. I modified the query functions such that all searching and presentation was done via postgres+PHP. let me know if you need the details. cheers, dylan -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From Terry.Byrne at CSIRO.AU Thu Jun 28 20:27:29 2007 From: Terry.Byrne at CSIRO.AU (Terry Byrne) Date: Fri, 29 Jun 2007 13:27:29 +1000 Subject: Oracle Varray does not display in WFS Message-ID: Hi Fernando I am not sure of protocol using mailing lists, so I have replied to you both and the list. I think the problem relates to how Oracle varray element access works. The result of a simple select statement is like CTD_PRESSURE_TYPE(6, 6, 6, 6, 8, 8, 8, 8, 10, 10, 10, 10) instead of just numbers. To access the discrete values requires a nested query I am not sure how to construct within MapServer. I suspect that the WFS clients need just the values, which I could deliver using varchar data type except this type holds max 32767 chars, and I need up to 64000 values. There must be a ways to either strip out the 'CTD_PRESSURE_TYPE(' and final ')', or concatenate the values, which I can do with PL/SQL, but I have not figured which way to go yet. I don't really understand how the WFS client and MapServer interact. Here is some more info: MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE LAYER NAME testCTDdataVarrays STATUS default EXTENT 55 -45 220 10 TYPE point CONNECTIONTYPE oraclespatial CONNECTION "user/passwd at machine" DATA "GEOLOC from (select * from CTDtable) using unique DATA_ID SRID 8307" DUMP TRUE CLASS NAME "testCTDdataVarrays" STYLE COLOR 225 0 0 SIZE 10 END END METADATA "WFS_TITLE" "test CSIRO Marine National Facility CTD data stored as Varrays - " "WFS_ABSTRACT" "Marine National Facility CTD cast data as Oracle Varrays" "GML_INCLUDE_ITEMS" "all" "GML_FEATUREID" "DATA_ID" "WFS_FORMAT" "image/png" "WFS_SRS" "EPSG:4326" # ESPG code WGS84 Geographic 2D END END The result of the Oracle select statement is like: DATA_ID 77699 SURVEY_NAME SS200407 PRESSURE_VA CTD_PRESSURE_TYPE(6, 6, 6, 6, 8, 8, 8, 8, 10, 10, 10, 10) GEOLOC(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(113.00584, -27.83431, NULL), NULL, NULL) There are no errors displayed in the Apache log on accessing the WFS using a client. svSIG java.lang.NullPointerException on examining layer properties > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fernando Simon > Sent: Thursday, 28 June 2007 10:47 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Oracle Varray does not > display in WFS > > Hi Terry, > Can you provide more info about the problem? What type of > call are > not working? > How did you define your layer? Are you trying to show how > type the > columns (the database column type)? > Are you using what connector driver, OGR, Native Connection? > Best regards. > > --------------------------------------------------------------- > Fernando Simon > UMN Mapserver and Oracle Spatial developer > --------------------------------------------------------------- > > Terry Byrne wrote: > > Hi All > > I am a novice MapServer user, attempting to use an Oracle > Varray to deliver > > data via WFS. > > My layer displays correctly in a WMS, but not as WFS. > > I have tried two clients, Gaia2, and svSIG. Gaia2 reports > no error, and will > > zoom to the layer extent correctly, but does not display > any of the data > > unless the Varray is removed form the select statement. > > svSIG reports a Java error, and does not zoom to layer. > > If I delete the Varray column from the select statement, > the layer displays > > correctly in either client. > > > > Regards > > Terry Byrne > > CSIRO Marine and Atmospheric Research > > Hobart, Tasmania, Australia > > > > > > From roybraam at B3PARTNERS.NL Fri Jun 29 00:05:14 2007 From: roybraam at B3PARTNERS.NL (Roy Braam) Date: Fri, 29 Jun 2007 09:05:14 +0200 Subject: transparency of rotated GIF files In-Reply-To: 46840420.1010202@duif.net Message-ID: I think this can be solved with fonts. So create your own font with the symbols. But i havn't tested it. Roy Braam B3partners BV _____ From: Richard Duivenvoorde [mailto:rdmailings at DUIF.NET] To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thu, 28 Jun 2007 20:55:28 +0200 Subject: Re: [UMN_MAPSERVER-USERS] transparency of rotated GIF files Hi Roy, I've been fiddling with this also, but was not successfull. I found that it's only possible to rotate 90, 180 and 270 degree's WITH transparency, but only with png24 (not png8), all other degrees will result in some semitransparent block around the symbol. Somebody suggested problems with the underlying gdlib at that time? If you (or somebody else) manage(s) to get this working: please let me/us know. for example see: http://www.nabble.com/Re%3A-Problem%3A-ANGLEITEM-and-TRANSPARENT-tf3490343.html#a9872743 Richard Duivenvoorde Roy Braam wrote: > Hai, > > I've got a question about the transparency of rotated GIF files. Perhaps > it's asked a many times but i can't find a answer on the internet. > > The layer: > LAYER > STATUS OFF > METADATA > "wms_title" "somelayer" > END > CONNECTIONTYPE postgis > NAME "somelayer" > CONNECTION "user=postgres password=xxxx dbname=xxxx host=xxxxx" > DATA "the_geom from somelayer" > #MAXSCALE 100000 > TYPE POINT > DUMP TRUE > TEMPLATE bla > TOLERANCE 10 > TRANSPARENCY alpha > CLASS > EXPRESSION ('[s]'="B") > NAME "Brug" > STYLE > ANGLE [road_direction] > COLOR 0 0 255 > SYMBOL "bridge.gif" > END > END > END > > If i don't rotate the image then the image is transparent but if i add > the property angle [road_direction] the image rotates fine but isn't > transparent any more. How can a i solv this problem? > > Tia, > > Roy -------------- next part -------------- An HTML attachment was scrubbed... URL: From tutey at O2.PL Fri Jun 29 02:20:34 2007 From: tutey at O2.PL (Maciej Sieczka) Date: Fri, 29 Jun 2007 11:20:34 +0200 Subject: linked tables and spatial queries In-Reply-To: <200706281850.47947.dylan.beaudette@gmail.com> Message-ID: Dylan Beaudette wrote: > Hey Maciek, nice to see you here on the mapsever list! Hi Dylan! Thanks for your warm welcoming :). > I was in need of this type of functionality, and found it through two methods: > > 1. define a query template in your mapfile, and have it redirect the user to a > PHP page which can do related DB lookups and presentation. You can pass along > mapserver query results on the URL. > > 2. use something like ka-map and adjust how the query system displays the > results in the left-hand side panel. I modified the query functions such that > all searching and presentation was done via postgres+PHP. > > let me know if you need the details. Glad it's doable. Could you point me to working online examples of either approach? Which do you think is easier to implement? Do you know if code samples or a tutorial targeted at such an application are available? Maciek From mikesaunt at GMAIL.COM Fri Jun 29 02:43:53 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Fri, 29 Jun 2007 10:43:53 +0100 Subject: OGR, MapInfo Tab, Arial Black font Message-ID: Hi All I've got an issue with reading a MapInfo text layer as a standard ANNOTATION layer in MapServer. I use StyleItem "AUTO" which works really well for all text objects except Arial Black. I have an Arial Black entry in my fonts.list (ariblk ariblk.ttf ) along with the font in the shared fonts directory. I can't seem to get these text objects to render with that font. I've also confirmed with ogrinfo that that is the font name. LAYER NAME TextLyr STATUS DEFAULT TYPE ANNOTATION CONNECTIONTYPE OGR CONNECTION "MasterMap\Text.tab" MAXSCALE 4000 STYLEITEM "AUTO" CLASS END END Anyone know where I can look further? I'm trying to avoid using separate classes if possible... Many thanks Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Fri Jun 29 05:17:48 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 29 Jun 2007 08:17:48 -0400 Subject: phpmapscript imagemap attributes In-Reply-To: <20070627234252.M26945@websawyer.com> Message-ID: Doug, I am not very familiar with imagemap output but what I can certainly do is test the output results and see why there is a problem with the "coords" output, if you provide me a simple map and data. Note that I will do the tests with Mapserver svn (to be 5.0 release). Note that I did a couple of tests with tests data that I have here and the "cooords" result seem to be correct. Later, Doug Williams wrote: > Hi All, Jeff, Assefa, > > I have made a phpmapscript to generate an imagemap for my drawn map so when mousing over the > map information about the shp below the mouse cursor is displayed beside the cursor. I like the way > it works, > > http://www.wildweb.org/imagemap/ > > except for a couple of questions! I am using version 4.8 on linux. > > 1) Some of the polygon coords for the map areas begin with a comma, such as > > > onMouseOut="handleClick(event,'boxinfo','hide it',''); return false;" title="" shape="poly" coords=" > 96,70, 96,69, 95,68, 105,68, 105,73, 101,73, 101,74, 95,74, 95,73, 93,73, 94,72, 93,72, 93,70, > 92,70, 92,69, 93,70, 95,70, 96,70, 96,71, 95,71, 95,72, 96,71, 96,70" /> > onMouseOut="handleClick(event,'boxinfo','hide it',''); return false;" title="" shape="poly" coords=", > 95,69" /> > ...... > > > Notice how the coords for the second area begin with a comma. Does that mean I have a bad shape > file? Those commas seem problematic for some browsers when using the imagemap. If I delete the > commas by brute force and then display the edited html file, the imagemap works properly in all the > browsers I have checked, although I guess that the areas with just two coords are not good... > > > 2) I cannot figure how to get the attribute data for the shape. The cgi version of mapserver describes > using a template, but where the cgi version describes the use of templates for other tasks, I have not > found them useful for phpmapscript version, nor am I using, for this script, the header and footer > templates as described in the cgi version imagemap creation tutorial, as setting the OUTPUTFORMAT > driver to imagemap along with the correct FORMATOPTIONs generates everything as described in the > cgi version tutorial, except I am not understanding how to get the attribute data other than the shp > coords. > > The cgi version says the the mode would need to be set to nquery. I think this means that > phpmapscript does a drawQuery(). Attempting this results in: > > Warning: [MapServer Error]: msDrawQueryMap(): Unable to initialize image. in /.../index.php on line > 184 > Fatal error: Call to a member function on a non-object in /.../index.php on line 185 > > It does not seem necessary to use drawQuery(). draw() provides the coords as desired (w/ the > question about the commas above). > > My belief is that I would grab the attribute data in the FORMATOPTION statement. Am I on the right > track? Does this capability exist as part of the OUTPUTFORMAT imagemap driver in phpmapscript? > > This is my OUTPUTFORMAT to create the imagemap: > OUTPUTFORMAT > NAME imagemap > DRIVER imagemap > FORMATOPTION "MAPNAME=map_test" > FORMATOPTION "POLYHREF=" > FORMATOPTION "POLYMOUSEOUT=handleClick(event,'boxinfo','hide it',''); return false;" > FORMATOPTION "POLYMOUSEOVER=handleClick(event,'boxinfo','show it','%NAME%'); return false;" > FORMATOPTION "TITLE=" > MIMETYPE "text/html" > END > > The %NAME% was based on the sections discussing cookie variables and such, and NAME just ends > up displayed without the % chars. [NAME] as shown in the cgi version doc produces [NAME] as > output. I have tried escaping the ' char with \, but that results in an error. Is there a code to put in > the FORMATOPTION statement to obtain attribute data? > > Does the layer definition matter? Here is my layer definition: > LAYER > NAME "lakes" > DATA esri/world/lakes > STATUS on > PROJECTION > "proj=latlong" > END #projection > TYPE POLYGON > METADATA > "DESCRIPTION" "Lakes" > "RESULT_FIELDS" "NAME SURF_ELEV DEPTH" > END > # HEADER "lakes_header.html" > # FOOTER "lakes_footer.html" > TEMPLATE "" > CLASS > NAME "States" > OUTLINECOLOR 0 0 0 > END > END > > I have tried this with a couple of different layers and like the imagemap result (aside from not > understanding why some area coords begin with a comma), but without the attribute data I am not > sure what to do with it! > > All ideas would be much appreciated, > > Doug > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Steve.Lime at DNR.STATE.MN.US Fri Jun 29 12:13:54 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 29 Jun 2007 14:13:54 -0500 Subject: Try to adjust projection parameters via CGI In-Reply-To: <4AAF5153-6BED-4288-B381-4EF5F66741BA@grnoc.iu.edu> Message-ID: You can change projections using the map_... syntax. I believe simply setting map_projection=new projection string in a url will suffice. Steve >>> On 6/28/2007 at 1:08 PM, in message <4AAF5153-6BED-4288-B381-4EF5F66741BA at grnoc.iu.edu>, "Edward G. Balas" wrote: > Hey all, > > Ive been dorking with mapserver for a while now and cant seem to > figure out how to do something which > on the surface would seem to be a common task. > > Within my map, I would like keep lon_0 centered between MINX and MAXX > of my extent. > The objective is keep the projection centered on what the user is > looking at while also allowing the > user to change their extent via the CGI interface. > > I explored using variable substitution but it would appear as if this > is not supported in the PROJECTION > stanza. > > > Any thoughts on how this might best be accomplished? > > > --- > Edward G. Balas > ebalas at grnoc.iu.edu From Steve.Lime at DNR.STATE.MN.US Fri Jun 29 12:17:41 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 29 Jun 2007 14:17:41 -0500 Subject: transparency of rotated GIF files In-Reply-To: <20070628105600.b542dc2e@kmail.b3partners.nl> Message-ID: What version of GD are you using? With older versions there seems to be an issue in GD itself. I was hoping perhaps that it was fixed on their end in 2.0.34 but I have not checked myself. Steve >>> On 6/28/2007 at 5:56 AM, in message <20070628105600.b542dc2e at kmail.b3partners.nl>, Roy Braam wrote: > Hai, > > I've got a question about the transparency of rotated GIF files. Perhaps > it's asked a many times but i can't find a answer on the internet. > > The layer: > LAYER > STATUS OFF > METADATA > "wms_title" "somelayer" > END > CONNECTIONTYPE postgis > NAME "somelayer" > CONNECTION "user=postgres password=xxxx dbname=xxxx host=xxxxx" > DATA "the_geom from somelayer" > #MAXSCALE 100000 > TYPE POINT > DUMP TRUE > TEMPLATE bla > TOLERANCE 10 > TRANSPARENCY alpha > CLASS > EXPRESSION ('[s]'="B") > NAME "Brug" > STYLE > ANGLE [road_direction] > COLOR 0 0 255 > SYMBOL "bridge.gif" > END > END > END > > If i don't rotate the image then the image is transparent but if i add the > property angle [road_direction] the image rotates fine but isn't transparent > any more. How can a i solv this problem? > > Tia, > > Roy From payneliu at HOTMAIL.COM Sat Jun 30 13:24:23 2007 From: payneliu at HOTMAIL.COM (Leo Peiwen-Liu) Date: Sat, 30 Jun 2007 15:24:23 -0500 Subject: Raster Image Message-ID: Hi, I want to start my project with a simple raster layer demo. After a few weeks' trying different codes, I'm stuck. The raster image won't display at all. I tried to generate vector map from shapefile and it's working fine. The following is the map file: MAP NAME lpwUSA3 STATUS ON IMAGETYPE PNG SIZE 800 500 SHAPEPATH "/home/mapdata/" EXTENT -6086744.000 -2784127 4278894 4485901 WEB TEMPLATE '/opt/fgs/www/htdocs/lpwfirst.html' IMAGEPATH '/opt/fgs/www/htdocs/tmp/' IMAGEURL '/tmp/' END LAYER NAME "Nighttime lights" TYPE RASTER STATUS ON DATA "/home/mapdata/nitelti020l.tif" END END The following is the html template: lpw MapServer First Map The nitelti020l.tif image and nitelti020l.tfw world file are located in /home/mapdata/ . The following is the content of tfw file: 769.4780 0.000000 0.000000 -769.4780 -6086744.0000 4485901.0000 I'm using the FGS installation Mapserver 4.4.1 and Apache-base 1.3.33 on Fedora core 6. Thanks in advance, Leo