Re: [mapserver-users] GEOMTRANSFORM definition causing an error
Ah, right. You will need the layer geomtransform for that. On 13-09-27 11:11 AM, tday wrote: H...My assumption has been that the style GEOMTRANSFORM will be shown if I am producing an image with mapserver. If all I'm getting is geojson from mapserver, will the style GEOMTRANSFORM be applied? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080590.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GEOMTRANSFORM definition causing an error
Better with an example: LAYER NAME "my_layer" TYPE LINE STATUS DEFAULT DATA "lines.shp" CLASS STYLE GEOMTRANSFORM (buffer([shape], 5) ## In pixels WIDTH 2 COLOR 255 0 0 END END END On 13-09-27 10:55 AM, Alan Boudreault wrote: tday, Note that the *LAYER* geomstransform has been added in 6.4. You can still use the buffer GEOMSTRANSFORM in you style definition. Give it a try. Alan On 13-09-27 10:53 AM, tday wrote: It appears that layer level GEOMTRANSFORM was added in 6.4 according to the changelog: http://mapserver.org/trunk/development/changelog/changelog-6-4.html ...and it is confirmed we are using 6.2.1 So that is a very basic requirement - looks like my server admin will get to reinstall newest version of mapserver. You guys have been fantastic! I've learned a lot going through this process - Thank you! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080579.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GEOMTRANSFORM definition causing an error
tday, Note that the *LAYER* geomstransform has been added in 6.4. You can still use the buffer GEOMSTRANSFORM in you style definition. Give it a try. Alan On 13-09-27 10:53 AM, tday wrote: It appears that layer level GEOMTRANSFORM was added in 6.4 according to the changelog: http://mapserver.org/trunk/development/changelog/changelog-6-4.html ...and it is confirmed we are using 6.2.1 So that is a very basic requirement - looks like my server admin will get to reinstall newest version of mapserver. You guys have been fantastic! I've learned a lot going through this process - Thank you! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080579.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.4 Released
Andy, Effectively, debian maintainers have made a patch for the install directory (perl and ruby). Here's the perl patch: http://anonscm.debian.org/gitweb/?p=pkg-grass/mapserver.git;a=blob;f=debian/patches/perl-mapscript-install.patch;h=2a639cf50f09541d5d9db7c3bfa918261174f0c9;hb=HEAD Is is related to your issue? Alan On 13-09-17 04:55 PM, andy wrote: On 9/17/2013 3:15 PM, andy wrote: On 9/17/2013 9:09 AM, thomas bonfort wrote: The MapServer team is pleased to announce the release of MapServer 6.4, along with the joint release of MapCache 1.2. Details of the new features, migration instructions, and download links can be found on the dedicated announcement page at http://www.mapserver.org/development/announce/6-4.html . cheers, The MapServer PSC I start with: cmake -DCMAKE_INSTALL_PREFIX=/tmp/map -DWITH_PERL=1 .. it runs ok, and displays: -- Will install files to /tmp/map -- Configuring done -- Generating done then I run make, which compiles fine. But "make install" has a problem with mapscript and tries to copy it to /usr/local/lib64, not /tmp/map. [ 90%] Built target mapserver [ 90%] Built target legend [ 91%] Built target mapserv [ 92%] Built target msencrypt [ 92%] Built target scalebar [ 93%] Built target shp2img [ 94%] Built target shptree [ 95%] Built target shptreetst [ 96%] Built target shptreevis [ 97%] Built target sortshp [ 98%] Built target tile4ms [100%] Built target perlmapscript Install the project... -- Install configuration: "" -- Installing: /tmp/map/bin/sortshp -- Set runtime path of "/tmp/map/bin/sortshp" to "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib" -- Installing: /tmp/map/bin/shptree -- Set runtime path of "/tmp/map/bin/shptree" to "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib" -- Installing: /tmp/map/bin/shptreevis -- Set runtime path of "/tmp/map/bin/shptreevis" to "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib" -- Installing: /tmp/map/bin/msencrypt -- Set runtime path of "/tmp/map/bin/msencrypt" to "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib" -- Installing: /tmp/map/bin/legend -- Set runtime path of "/tmp/map/bin/legend" to "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib" -- Installing: /tmp/map/bin/scalebar -- Set runtime path of "/tmp/map/bin/scalebar" to "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib" -- Installing: /tmp/map/bin/tile4ms -- Set runtime path of "/tmp/map/bin/tile4ms" to "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib" -- Installing: /tmp/map/bin/shptreetst -- Set runtime path of "/tmp/map/bin/shptreetst" to "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib" -- Installing: /tmp/map/bin/shp2img -- Set runtime path of "/tmp/map/bin/shp2img" to "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib" -- Installing: /tmp/map/bin/mapserv -- Set runtime path of "/tmp/map/bin/mapserv" to "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib" -- Installing: /tmp/map/lib/libmapserver.so.6.4.0 -- Installing: /tmp/map/lib/libmapserver.so.1 -- Installing: /tmp/map/lib/libmapserver.so -- Set runtime path of "/tmp/map/lib/libmapserver.so.6.4.0" to "/tmp/map/lib:/usr/local/pg93/lib:/usr/local/lib" -- Installing: /usr/local/lib64/perl5/auto/mapscript/mapscript.so CMake Error at mapscript/perl/cmake_install.cmake:38 (FILE): file INSTALL cannot copy file "/home/andy/gis/mapserver/mapserver-6.4.0/buid/mapscript/perl/mapscript.so" to "/usr/local/lib64/perl5/auto/mapscript/mapscript.so". Call Stack (most recent call first): cmake_install.cmake:273 (INCLUDE) make: *** [install] Error 1 Any hints how I might fix this? -Andy In mapscript/perl/CMakeLists.txt, how about stripping the leading '/' so that INSTALL() has a relative path instead of absolute: set(CUSTOM_PERL_SITE_ARCH_DIR ${PERL_SITEARCH} CACHE DIR "Custom installation directory for perl binary extension # strip leading slash so INSTALL() uses CMAKE_INSTALL_PREFIX string(SUBSTRING ${CUSTOM_PERL_SITE_ARCH_DIR} 1 -1 CUSTOM_PERL_SITE_ARCH_DIR) Maybe? -Andy ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver and gdal 1.10
Andrea, I'm using the GDAL development version since a while. So, everything should be compatible with MS 6.2 and GDAL 1.10. Alan On 13-05-03 12:06 PM, Andrea Peri wrote: Hi, I see was relased gdal 1.10. Is it compatible with mapserver 6.2 and spatialite ? thx -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SDE 10.x support...
Steve, I was looking to use SDE 10 too, have you been able to get it to work? Alan On 12-11-01 03:57 PM, Lime, Steve D (DNR) wrote: Hi all: Has anyone successfully used the SDE 10.x client libs with MapServer 6.0+? Compiles ok but I’ve had no luck actually using SDE layers. Steve *StEVE LIME | *DATA & Applications MANAGER MN.IT Services @ MnDNR 651-259-5473 (w) *|* 651-297-4946 (f) *|* steve.l...@state.mn.us <mailto:your.n...@state.mn.us> // <http://www.mn.gov/oet>// Information Technology for Minnesota Government *|* mn.gov/oet <http://www.mn.gov/oet> ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.2.0 beta3 release
Ubuntu package is available for precise in testing PPA: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/+packages?field.name_filter=&field.status_filter=published&field.series_filter=precise Alan On 12-09-06 02:07 PM, thomas bonfort wrote: The MapServer Team is pleased to announce the release of MapServer 6.2.0 beta3. This is the third beta on our way to a final 6.2 release, and contains many fixes that we encourage you to test. Depending on issues found in this beta release, we should probably be able to publish a release candidate for the next iteration. The changelog since beta3 is included in this email, or can be consulted here: http://www.mapserver.org/en/development/changelog/changelog-6-2-0-beta3.html The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.2.0-beta3.tar.gz The binary distributions listed in the download page should be updated with binaries for the new 6.2.0-beta3 release in the next couple of days. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team $ git --no-pager log --no-merges --pretty=format:"%h %ai (%an)%n%s%n" rel-6-2-0-beta2..HEAD | gsed 's!#\([0-9]\+\)! https://github.com/mapserver/mapserver/issues/\1 !g' 00791ca 2012-09-06 19:28:18 +0200 (Thomas Bonfort) update header version for beta3 af90e5a 2012-09-06 19:10:49 +0200 (Stephan Meissl) Fixing Style inheritance in WMS ( https://github.com/mapserver/mapserver/issues/4442 ) c55668e 2012-09-06 15:48:04 +0200 (Thomas Bonfort) avoir writing default values to STYLE ( https://github.com/mapserver/mapserver/issues/4446 ) 191d0c9 2012-09-06 15:32:36 +0200 (Thomas Bonfort) php-mapscript allow setting NULL template ( https://github.com/mapserver/mapserver/issues/4443 ) f8d8837 2012-09-06 14:23:01 +0200 (Thomas Bonfort) create python-mapscript install destination directory ( https://github.com/mapserver/mapserver/issues/4445 ) 8b61e09 2012-09-06 12:39:30 +0200 (Thomas Bonfort) adjust clip buffer for polygons in image space ( https://github.com/mapserver/mapserver/issues/179 ) f5e1bec 2012-09-05 17:48:45 +0200 (Thomas Bonfort) adjust clipping buffer to avoid edge artifacts ( https://github.com/mapserver/mapserver/issues/179 ) 9c9d999 2012-09-05 01:35:27 -0700 (Umberto Nicoletti) fix for https://github.com/mapserver/mapserver/issues/4417 : Oracle and queryByAttributes doesn't run d6be4e6 2012-09-05 14:27:22 +0200 (Stephan Meissl) Fixing wrong size in LegendURL of root layer ( https://github.com/mapserver/mapserver/issues/4441 ). 40ad795 2012-09-05 14:22:12 +0200 (Thomas Bonfort) build and clean mapscriptvars utility file ( https://github.com/mapserver/mapserver/issues/4440 ) fadc37a 2012-09-05 14:14:50 +0200 (Thomas Bonfort) fix ogc "equals" operator after rfc 64 ( https://github.com/mapserver/mapserver/issues/3613 ) ee0e42c 2012-09-05 14:11:57 +0200 (Thomas Bonfort) allow empty wms styles ( https://github.com/mapserver/mapserver/issues/4355 ) 5e9c8a1 2012-09-05 13:32:02 +0200 (Thomas Bonfort) deactivate postgis getextent function ( https://github.com/mapserver/mapserver/issues/4039 ) 9184876 2012-09-05 13:26:43 +0200 (Thomas Bonfort) avoid token collisions in parser when reading char by char ( https://github.com/mapserver/mapserver/issues/4012 ) 9cb9e5e 2012-09-05 13:19:44 +0200 (Thomas Bonfort) adjust letterspacing on follow labels ( https://github.com/mapserver/mapserver/issues/4404 ) 2d474ae 2012-09-04 20:47:34 +0200 (szekerest) SDE: Fix for the crash with NCLOB type ( https://github.com/mapserver/mapserver/issues/3001 ) 73c9d9d 2012-09-03 18:55:09 +0200 (Stephan Meissl) Fixing wms_style_name in GetMap requests ( https://github.com/mapserver/mapserver/issues/4439 ). ca2cbad 2012-08-31 17:30:53 +0200 (Thomas Bonfort) add branch-6-2 to stable merge script ( https://github.com/mapserver/mapserver/issues/4437 ) 155c827 2012-08-30 14:49:57 + (Alan Boudreault) Fix queryByFilter segfault in SWIG... 6f293c3 2012-08-30 14:18:18 + (Alan Boudreault) Fix in msQueryBy* functions to support the startindex from MapScript 75be13f 2012-08-30 13:30:24 + (Alan Boudreault) Modified WFSGetFeature to support maxfeatures across layers rather than within ( https://github.com/mapserver/mapserver/issues/4011 ) 5af6da6 2012-08-30 10:39:12 +0200 (Stephan Meissl) Updating HISTORY.TXT 5ca7cf0 2012-08-29 16:40:20 + (Alan Boudreault) Fix segfault in queryByFilter function in PHP/MapScript 6990f04 2012-08-29 15:27:01 + (Alan Boudreault) Fix another issue in symbolObj.getImage related to internal renderer object e1d9b33 2012-08-29 15:59:49 +0200 (Stephan Meissl) Adjusting to GMLCOV 1.0 corrigendum 1.0.1 ( https://github.com/mapserver/mapserver/issues/4003 ). 5849069 2012-08-29 15:18:14 +0200 (Stephan Meissl) Adjusting to WCS 2.0 Core corri
Re: [mapserver-users] Python MapScript compile error
Hmm... I think we already ship MapServer with the C wrapper generated. IIRC, you can use the standard way to build the python module also, which does not require swig: cd mapscript/python && python setup.py build && python setup.py install Alan On 12-07-05 01:08 AM, Umberto Nicoletti wrote: python mapscript now requires swig 2.x: install it then rerun configure and make hth, Umberto On Thursday, July 5, 2012, Jackey Cheung wrote: Hi all, Not sure if i've done anything wrong. I've met the "Unknown option: -a" while compiling Python MapScript. MapServer: Git trunk, CentOS 6 box running on Intel Pentium D. ./configure --with-wms --with-wfs --with-curl --with-jpeg --with-freetype --with-png --with-threads --with-postgis --with-xml2 --with-libiconv --with-proj --with-ogr --with-gdal --with-cairo --with-ftgl --with-opengl --with-threads --with-geos --with-postgis --with-mysql --with-wmsclient --with-wfsclient --with-sos --with-wcs --with-curl --with-kml --with-xml-mapfile --with-xslt --with-fastcgi --with-exempi --with-fribidi-config --with-zlib --with-gd --with-postgis --with-mysql --with-php --with-libsvg-cairo --enable-fast-nint --enable-proj-fastpath --enable-point-z-m --enable-python-mapscript Although I don't need all these features yet, I've decided to test compiling all of them in case I need them in future. Configure went well, and finished with everything. But while compiling Python: cd mapscript/python; make; make[1]: Entering directory `/home/jackey.cheung/mapserver-6.2.0-beta1/mapscript/python' python -shadow -modern -templatereduce -fastdispatch -fvirtual -fastproxy -modernargs -castmode -dirvtable -fastinit -fastquery -noproxydel -nobuildnone -DUSE_PROJ_FASTPATHS -DUSE_POINT_Z_M -DUSE_FASTCGI -DUSE_SVG_CAIRO -DUSE_CAIRO -DUSE_FRIBIDI -DUSE_FRIBIDI2 -DUSE_EXSLT -DUSE_XSLT -DUSE_XMLMAPFILE -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_KML -DUSE_EXEMPI -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYSQL -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DHAVE_SYNC_FETCH_AND_ADD -DUSE_THREAD -DUSE_PROJ -DUSE_OGL -DUSE_FTGL -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF -DUSE_ICONV -DUSE_JPEG -DUSE_GIF -DUSE_PNG -DUSE_FREETYPE -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DDISABLE_CVSID -o mapscript_wrap.c ../mapscript.i Unknown option: -a usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ... Try `python -h' for more information. Any clue? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapCache - A way to delete a whole zoom level ?
How can it doesn't work? Any error output? Have you checked the directory of the zoom level? Alan On 12-06-04 03:52 AM, Ludovic Gnemmi wrote: Hi Alan, I tried the mapcache_seed with delete mode as in your example but it still doesn't work :( Ludovic -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-delete-a-whole-zoom-level-tp4978491p4978902.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapCache - A way to delete a whole zoom level ?
Have you tried the mapcache_seed with the delete mode? something like:-m delete -z 10,10 , to delete the zoom level 10. Alan On 12-06-01 05:30 AM, Ludovic Gnemmi wrote: Hi List, Is there any option in the seeder to delete a whole zoom level? I've no space left on my device and i don't want to delete my whole tileset :( Thanks for your help. Ludovic ps:using Berkeley DB cache size: maybe there's a bdb command line tool to do this job? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-delete-a-whole-zoom-level-tp4978491.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver as cascading WMS for ArcGIS Rest?
I don't think so. MapServer only allows wms cascading using the http/wms requests. Alan On 12-05-23 09:39 PM, Robert Sanson wrote: Is it possible to have a layer in Mapserver pulling data from a ArcGIS Rest service? Thanks, Robert Sanson This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Mapserv stopped running after upgrade to trunk
You are right, it is on our long todo list for 6.2. :) Alan On 12-02-28 09:47 AM, Luís de Sousa wrote: Thank you Alan that worked. I think there should be some documentation on this, no way I could have guessed I had to run make install. Regards, Luís -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserv-stopped-running-after-upgrade-to-trunk-tp4522390p4522499.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserv stopped running after upgrade to trunk
With MapServer trunk... you have to use the make install to install it.. rather than simply copying the mapserv app. I suppose you copied the main mapserv script from the ms source directory... which is in fact only a libtool wrapper. You can't use it. ./configure make make install Alan On 12-02-28 09:05 AM, Luís de Sousa wrote: Hello everyone, I'm trying to install the trunk version, I checkout the project, compiled it and moved it to the cgi-bin directory. But now it doesn't run: $ ./mapserv -v mkdir: cannot create directory `/usr/lib/cgi-bin/.libs': Permission denied /usr/bin/ld.bfd.real: cannot open output file /usr/lib/cgi-bin/.libs/17805-lt-mapserv: No such file or directory collect2: ld returned 1 exit statusn Why is mapserv trying to access /usr/lib/cgi-bin/.libs? I had a previous version installed so I shouldn't be missing any libraries. Thank you, Luís -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserv-stopped-running-after-upgrade-to-trunk-tp4522390p4522390.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Problem with Mapserver 6.0.1 and PHP Mapscript
The extension was totally written differently using old compatibility way. It was probably working differently in older php (some magic?) So the those function haven't been dropped. They just don't exist. Perhaps a day I will get time to write them! Glad to hear that's it's not related to your issue. Good luck. Alan On 12-02-17 09:16 AM, Nick Friedrich wrote: Mmh, ok. But in older Versions the output showed everything in the object. I assume that there has been no complete rewrite of Mapscript for Mapserver 6, so the appropriate methods must exist in older version. Maybe they have been dropped. I just thought, that it would be related to my problem, because older mapserver versions showed a different behavior. With regard to your statement it has nothing to do with my problem, so it doesn't matter. Am 17.02.2012 14:09, schrieb Alan Boudreault: This is the only output you'll get from a var_dump: object(mapObj)#1 (0) { } until the appropriate methods for this will be implemented. Alan On 12-02-17 07:58 AM, Nick Friedrich wrote: Hi, when using older mapserver versions var_dump returns not an empty mapObj. Nick -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-Mapserver-6-0-1-and-PHP-Mapscript-tp4476779p4479995.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Problem with Mapserver 6.0.1 and PHP Mapscript
This is the only output you'll get from a var_dump: object(mapObj)#1 (0) { } until the appropriate methods for this will be implemented. Alan On 12-02-17 07:58 AM, Nick Friedrich wrote: Hi, when using older mapserver versions var_dump returns not an empty mapObj. Nick -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-Mapserver-6-0-1-and-PHP-Mapscript-tp4476779p4479995.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript
Hi Nick, It is normal that the var_dump and/or print_r returns nothing. IIRC, those functions haven't been implemented in the extension (yet?). However, you should not be able to set/get a properties that is not a member of the mapObj. I guess you map is really an empty object. Enable error log and debug in your mapfile to see if something is wrong.. though an error is normally thrown when the mapfile cannot be loaded. Alan On 12-02-16 11:25 AM, Nick Friedrich wrote: Hello, I have a problem with Mapserver 6.0.1 and PHP Mapscript. Until now I am working with Mapserver 5.2. For testing purposes I created a minimal mapfile, just with name and symbolset. The symbolset file contains just one simple filled circle. When I create a mapObj (tried old an new constructors) I get an empty Object (var_dump or print_r). Non-object members like name or status are still there, when accessing them directly. Set methods are also working for non-object members. Members, that are objects themselves, like projection, are not accessible. I have no clue what could be the problem. The system configuration is the same as when using Mapserver 5.2. PHP version is 5.2.17 (CGI). Version of other libraries (libpng, libgd, ...) meet the requirements. Thanks for your help, Nick ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] php_mapscript.so library
The php_mapscript.so will be in the mapscript/php directory IIF you compiled MapServer with the appropriate option. I think you can open the config.log file to see if you have enabled the php binding when you compiled MS initially. Alan On 12-02-10 02:37 PM, David Quinn wrote: Hi List, I'm following the instructions <http://www.mapserver.org/installation/php.html#obtaining-compiling-and-installing-php-and-the-php-mapscript-module> on the Mapserver website to install the PHP module, but I'm confused by this line: Copy the php_mapscript.so library to your PHP extensions directory, and then use the dl() function to load the module at the beginning of your PHP scripts. See also the PHP function extension_loaded() <http://www.php.net/manual/en/function.extension-loaded.php> to check whether an extension is already loaded. I just re-downloaded and unzipped mapserver-6.0.1 but I don't see the php_mapscript.so library anywhere. Also, is there a way that I check if I compiled Mapserver with '/–with-php=DIR' /I compiled it for CentOS Linux a few months ago and cannot remember all of the options that I chose. Thanks, David ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Release of MapServer 6.0.2 and 5.6.8
Direct link to UbuntuGIS packages: https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable/+packages Alan On 12-02-09 11:22 AM, Alan Boudreault wrote: MapServer 6.0.2 is now in the UbuntuGIS unstable PPA for Hardy, Lucid, Natty and Oneiric. Alan On 12-02-08 04:12 PM, Daniel Morissette wrote: The MapServer team announces the release of MapServer versions 6.0.2 and 5.6.8. No new functionality has been added. 6.0.2 is a maintenance release that fixes a few issues found since 6.0.1 including a recently discovered security vulnerability in the handling of WFS filters inside a SLD. The list of fixes since 6.0.1 is included at the end of this message. Versions 5.6.8 includes fixes for the same WFS Filter security vulnerability plus a few bug fixes that were backported since the last official release. See the 5.6.8 HISTORY.TXT file for additional information. Source and binary downloads: The source code is available at: http://mapserver.org/download.html The binary distributions listed in the download page should be updated shortly with binaries for the new 6.0.2 release (and in some cases 5.6.8). The MapServer Team Version 6.0.2 (2012-02-08): --- - Fix security issue with quote escape in WFS GetFeature Filter (#4087) - Fixed lexer buffer size issue with single quotes in a string (#4175) - Raster layer fails to be drawn if the window is less than half a pixel (#4172) - Fixed SLD with FILTER doesn't apply properly to database layers (#4112) - Fixed a problem with calls to labelInImage() (maplabel.c) when label gutter and label buffers are both used (#3303). Also changed the usage around that function to make it easier to understand. At a result the "labelcache_map_edge_buffer" processing option (i.e. gutter) can be provided as a positive or negative value. (closes #1355 too) - Added label->style markers to collision detection (#4133) - Fixed single pixel coverages in WCS 2.0 (#4110) - Fixed subsetting in WCS 2.0 (#4099) - Fixed segfault when calling classObj::updateFromString() with SYMBOL (#4062) - fix rendering offset on thick GD lines (#3962) - fix segfault on join with postgresql tables (#4074) - Fixed Python Mapscript does not write COLOR to reference map (#4042) - Fixed cannot add a style to a label in PHP/SWIG Mapscript (#4038) - Add missing outputFormat support in WFS GetFeature POST XML requests (#4052) - Fixed schema validity issue for WCS 1.1 GetCoverage responses (#4047) - fix centroid geomtransform parser (#4029) - PHP MapScript is missing many styleObj properties (#3901) - Added GEOMTRANSFORM in writeStyle function - WCS 1.0: Fix crash with some _rangeset_axes values (#4020) - Changed msDrawVectorLayer() not to cache shapes if attribute binding is present after the first style (#3976) - Fix mapscript to build when TRUE macro is not defined (#3926) - Fix mapscript php build issues with MSVC (#4004) - PHP/Mapscript: Segmentation fault when getting complex object using PHP 5.2 (#3930) - Fixed contains operator in logical expresions (#3974) - Fix incorrect rendering of GD lines between 1 and 2 pixels wide (#3962) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Release of MapServer 6.0.2 and 5.6.8
MapServer 6.0.2 is now in the UbuntuGIS unstable PPA for Hardy, Lucid, Natty and Oneiric. Alan On 12-02-08 04:12 PM, Daniel Morissette wrote: The MapServer team announces the release of MapServer versions 6.0.2 and 5.6.8. No new functionality has been added. 6.0.2 is a maintenance release that fixes a few issues found since 6.0.1 including a recently discovered security vulnerability in the handling of WFS filters inside a SLD. The list of fixes since 6.0.1 is included at the end of this message. Versions 5.6.8 includes fixes for the same WFS Filter security vulnerability plus a few bug fixes that were backported since the last official release. See the 5.6.8 HISTORY.TXT file for additional information. Source and binary downloads: The source code is available at: http://mapserver.org/download.html The binary distributions listed in the download page should be updated shortly with binaries for the new 6.0.2 release (and in some cases 5.6.8). The MapServer Team Version 6.0.2 (2012-02-08): --- - Fix security issue with quote escape in WFS GetFeature Filter (#4087) - Fixed lexer buffer size issue with single quotes in a string (#4175) - Raster layer fails to be drawn if the window is less than half a pixel (#4172) - Fixed SLD with FILTER doesn't apply properly to database layers (#4112) - Fixed a problem with calls to labelInImage() (maplabel.c) when label gutter and label buffers are both used (#3303). Also changed the usage around that function to make it easier to understand. At a result the "labelcache_map_edge_buffer" processing option (i.e. gutter) can be provided as a positive or negative value. (closes #1355 too) - Added label->style markers to collision detection (#4133) - Fixed single pixel coverages in WCS 2.0 (#4110) - Fixed subsetting in WCS 2.0 (#4099) - Fixed segfault when calling classObj::updateFromString() with SYMBOL (#4062) - fix rendering offset on thick GD lines (#3962) - fix segfault on join with postgresql tables (#4074) - Fixed Python Mapscript does not write COLOR to reference map (#4042) - Fixed cannot add a style to a label in PHP/SWIG Mapscript (#4038) - Add missing outputFormat support in WFS GetFeature POST XML requests (#4052) - Fixed schema validity issue for WCS 1.1 GetCoverage responses (#4047) - fix centroid geomtransform parser (#4029) - PHP MapScript is missing many styleObj properties (#3901) - Added GEOMTRANSFORM in writeStyle function - WCS 1.0: Fix crash with some _rangeset_axes values (#4020) - Changed msDrawVectorLayer() not to cache shapes if attribute binding is present after the first style (#3976) - Fix mapscript to build when TRUE macro is not defined (#3926) - Fix mapscript php build issues with MSVC (#4004) - PHP/Mapscript: Segmentation fault when getting complex object using PHP 5.2 (#3930) - Fixed contains operator in logical expresions (#3974) - Fix incorrect rendering of GD lines between 1 and 2 pixels wide (#3962) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Compiling Mapserver
Checking the log.. we see that error: gcc: error trying to exec 'cc1': execvp: No such file or directory which is strange to me. I think that you'll get the same error just trying typing gcc or cpp. Could you try to reinstall build-essential? sudo apt-get install --reinstall build-essential otherwise... make sure you are using a bash shell environment. I've seen a post on the web talking about something like that. Alan On 12-02-08 01:44 PM, paulmaddock wrote: http://osgeo-org.1560.n6.nabble.com/file/n4376875/config.log config.log -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Compiling-Mapserver-tp4370929p4376875.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Compiling Mapserver
Have you checked the config.log file? On 12-02-06 05:41 PM, Paul Maddock wrote: Hi all, When using the command ./configure for setting up mapserver-6.0.1 bash kicks out: checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. I’ve run… sudo apt-get install build-essential sudo apt-get install g++ sudo apt-get install libc6-dev …and still no dice. Any suggestions? Many Thanks, Paul Maddock ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] shape->draw problem
Hi Bob, I do not see any query in your code. Not sure why numresults return a non-zero value. Check the example of the getShape() or nextShape() functions in the documentation: http://mapserver.org/mapscript/php/index.html#layerobj Alan On 12-01-20 03:55 PM, Bistrais, Bob wrote: I’m upgrading an application from Mapserver 5.6 to 6.0.1, PHP MapScript. I’m having a problem with one section of code where it gives a shape->draw command. In MS 5.6, the Shape was derived from a getFeature method, but in MS 6 this had to be changed to a getShape. The next command is to draw the shape. This returns the following error: Fatal error: Uncaught exception 'MapScriptException' in C:\ms4w_303\apps\mgs\htdocs\drawMap_detail_spatial.php:101 Stack trace: #0 C:\ms4w_303\apps\mgs\htdocs\drawMap_detail_spatial.php(101): shapeObj->draw(Object(mapObj), Object(layerObj), Object(imageObj)) #1 {main} thrown in C:\ms4w_303\apps\mgs\htdocs\drawMap_detail_spatial.php on line 101 Here is the code leading up to the error: $oLayer_shape = $oMap->getLayerByName("master"); for ($i=0; $i<=($oLayer_master->getNumResults() - 1); $i++) { $oResult = $oLayer_master->getResult($i); $oLayer_master->open(); // $oShape = $oLayer_master->getFeature($oResult->shapeindex,-1); -Old getFeature method-commented out and replaced on next line: $oShape = $oLayer_master->getShape($oResult); $oShape->draw($oMap,$oLayer_shape,$oImage); -fails on this line $oLayer_master->close(); } I do believe I’m retrieving a valid shape. What’s even more confusing, I’ve had to replace the getFeature with getShape in other parts of the application and it seems to work. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP Mapscript: getFeature / addFeature
Hi, In any case, If you got a internal error.. it's a bug. Please fill a ticket in trac. Will try to check it as soon as possibl.e Regards, Alan On 11-10-20 01:08 PM, Chris Green wrote: Dear List I’m struggling with what should be (I think) quite simple. I want to get a feature from one layer of a map then add it to another layer. I am using Mapserver 6.0 and PHP mapscript like so: $map = ms_newMapobj("path/to/.map"); $layer1=$map->getLayerByName("countries"); $layer2=$map->getLayerByName("highlightCountry"); $country=’France’; $layer1->queryByAttributes('NAME', $country , MS_SINGLE ); $shape = $layer1->getShape($layer1->getResult(0)); $layer2->open(); $layer2->addFeature($shape); ## I get a Mapserver ‘internal error’ at this point ## $layer2->close(); $image=$map->draw(); Extract from my mapfile: LAYER NAME "countries" DATA "world" STATUS default TYPE line CLASS STYLE COLOR 255 255 255 WIDTH 1 END # style END # class END #layer LAYER NAME "highlightCountry" STATUS default TYPE line CLASS STYLE COLOR 255 255 0 WIDTH 4 END # style END # class END # layer Can anyone help? Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP Mapscript - debugging help
It's hard to help you without details. I'd suggest to try to minimize the mapfile to isolate the part that produces the seg fault. You can also try the utility valgrind to see where the application crashes: valgrind php myscript.php Alan On September 26, 2011 01:54:37 pm Ian Walberg wrote: > Hello, > > > > We have moved from 5.x to 6.x are chasing an issue causing a > segmentation fault which appears to be related to the way we are > defining the symbols. > > > > If we create the map object from an empty map file (with just MAP and > END in it) then we do not get a segmentation fault, sounds like > something not initialized I know... > > > > Any ideas on this appreciated but here is the real question (and it may > really be a php question) :- > > > > We used to print_r the map object and then compare the one created from > the map file and the one we had created programmatically, however with > mapserver 6.x the print_r on the map object is empty. > > > > I am sure this is basic PHP but any help would be appreciated. > > > > Thanks > > > > Ian -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapscript and Python
Try to rebuild and recompile the python binding using an old version of SWIG. It seems that using a too recent swig causes issues sometime. I think I normally use swig 1.3.39. Alan On September 23, 2011 04:27:44 am Rustam Kamberov wrote: > Hi everyone, > > i have installed Mapserver, and downloaded Mapscript library for Python, > followed the official procedure. > > I tested http://localhost:8080/cgi-bin/test-cgi-mapscript.py example. it > works perfectly. But when I try to import mapscript from Python IDLE, it > > gives the error shown below: > >>> import mapscript > > Traceback (most recent call last): > File "", line 1, in > import mapscript > File "C:\Python26\lib\site-packages\mapscript.py", line 25, in > _mapscript = swig_import_helper() > File "C:\Python26\lib\site-packages\mapscript.py", line 24, in > swig_import_helper > return _mod > UnboundLocalError: local variable '_mod' referenced before assignment > > > It seem the problem in the mapscript.py code. I would appreciate if you > give me an advice what to do. > > Thanks in advance, > Rustam -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: RE [mapserver-users] Problem using FILTER when the value begins with i
Steve, a " or ' followed by a i means a string insensitive. Howerver... it should only match the last '. Please, fill a bug and assign it to "aboudreault". Thanks, Alan On August 22, 2011 01:58:01 pm steve.tout...@inspq.qc.ca wrote: > UPDATE... > escaping "i works > FILTER "code= '\Inactive'" > > If someone can explain I would appreciate. > thanks > Steve > > > > > steve.tout...@inspq.qc.ca@lists.osgeo.org > Envoyé par : mapserver-users-boun...@lists.osgeo.org > 2011-08-22 13:47 > > A > mapserver-users@lists.osgeo.org > cc > > Objet > [mapserver-users] Problem using FILTER when the value begins with i > > > > > > > > > > I have a strange behavior when using a FILTER where the values begin with > 'i, I have to double my "i" to make it work! > Example: > This doesn't work > FILTER "code= 'Inactive'" > In the mapserver.log I can see that "i" disappear, I get in the query ... > (code = 'nactive'), so no data are returns > > Using double "I" it works > FILTER "code= 'IInactive'" > > It seems that using 'I' or "i" mean something...and that changes the > encoding of the string or something. > I'm using mapserver 6.0.1 on a windows 2008 64bits server. The data are in > a postgis table. > > This mapfile was working well with mapserver 5.6 on windows 2003 32bits > server. > > Anyone have seen this before? > thanks for your help, > Steve > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] XML mapfile
Good work Ludovic. That's what I thought. You initially tried to use LayerSet *inside* the Map tag, which is invalid. LayerSet is only used when we put the layers in another xml file. Alan On August 19, 2011 10:04:35 am Ludovic Granjon wrote: > Ok it seems to be ok, my mapfile xml is valid and I can generate a .map > who work fine. > I join my minimum mapfile. > Thanks Alan > > Le 19/08/2011 15:34, Ludovic Granjon a écrit : > > Yes no problem > > http://pastebin.com/fPz6qgXx > > Thanks > > > > Le 19/08/2011 15:17, Alan Boudreault a écrit : > >> Paste your mapfile on pastebin.com if you can. > >> > >> Alan > >> > >> On August 19, 2011 08:40:39 am Ludovic Granjon wrote: > >>> Thanks Alan > >>> > >>> Yes that's what I try to do but when I try to launch xmlstarlet I > >>> always > >>> have an invalid mapfile; > >>> for exemple I join my mapfile > >>> And the message of xmlstartlet is : > >>> > >>> "mapfile-test_ludo.xml:69: element LayerSet: Schemas validity error : > >>> Element '{http://www.mapserver.org/mapserver}LayerSet': This element is > >>> not expected. Expected is ( {http://www.mapserver.org/mapserver}Web )." > >>> > >>> If I delete the LayerSet bloc it's ok but it's annoying ... > >>> > >>> If I try with my very little mapfile.map, it seems that it always miss > >>> some bloc so I must insert legend, scalebar, etc > >>> > >>> Thanks for your help > >>> > >>> Ludovic > >>> > >>> Le 19/08/2011 14:20, Alan Boudreault a écrit : > >>>> IIRC, the mapfiles in svn were only to test translation and > >>>> loading. You > >>>> can take a small standard mapfile you have and write it in xml. It > >>>> should be very straighforward and you can use the svn mapfiles as > >>>> example. > >>>> > >>>> Let me know if you need further help. > >>>> > >>>> Alan > >>>> > >>>> On August 19, 2011 07:42:17 am Ludovic Granjon wrote: > >>>>> Hello > >>>>> Someone is using mapfiles in xml? > >>>>> I tried but it does not work, is there such a minimal mapfile in > >>>>> xml to > >>>>> try? Is there a documentation ? I tried unsuccessfully > >>>>> http://trac.osgeo.org/mapserver/browser/trunk/mapserver/xmlmapfile > >>>>> Thanks > >>>>> > >>>>> Ludovic > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] XML mapfile
Paste your mapfile on pastebin.com if you can. Alan On August 19, 2011 08:40:39 am Ludovic Granjon wrote: > Thanks Alan > > Yes that's what I try to do but when I try to launch xmlstarlet I always > have an invalid mapfile; > for exemple I join my mapfile > And the message of xmlstartlet is : > > "mapfile-test_ludo.xml:69: element LayerSet: Schemas validity error : > Element '{http://www.mapserver.org/mapserver}LayerSet': This element is > not expected. Expected is ( {http://www.mapserver.org/mapserver}Web )." > > If I delete the LayerSet bloc it's ok but it's annoying ... > > If I try with my very little mapfile.map, it seems that it always miss > some bloc so I must insert legend, scalebar, etc > > Thanks for your help > > Ludovic > > Le 19/08/2011 14:20, Alan Boudreault a écrit : > > IIRC, the mapfiles in svn were only to test translation and loading. You > > can take a small standard mapfile you have and write it in xml. It > > should be very straighforward and you can use the svn mapfiles as > > example. > > > > Let me know if you need further help. > > > > Alan > > > > On August 19, 2011 07:42:17 am Ludovic Granjon wrote: > >> Hello > >> Someone is using mapfiles in xml? > >> I tried but it does not work, is there such a minimal mapfile in xml to > >> try? Is there a documentation ? I tried unsuccessfully > >> http://trac.osgeo.org/mapserver/browser/trunk/mapserver/xmlmapfile > >> Thanks > >> > >> Ludovic -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] XML mapfile
IIRC, the mapfiles in svn were only to test translation and loading. You can take a small standard mapfile you have and write it in xml. It should be very straighforward and you can use the svn mapfiles as example. Let me know if you need further help. Alan On August 19, 2011 07:42:17 am Ludovic Granjon wrote: > Hello > Someone is using mapfiles in xml? > I tried but it does not work, is there such a minimal mapfile in xml to > try? Is there a documentation ? I tried unsuccessfully > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/xmlmapfile > Thanks > > Ludovic ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.0.0-rc2 release
UbuntuGIS MapServer packages have been updated for the RC2 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On May 5, 2011 10:39:07 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-rc2. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > We had to issue a new release candidate since a few important issues > were reported and fixed in rc1. If all goes well and no blocker issues > are reported, then this release candidate could lead us to a final 6.0.0 > release next week. The full release plan which also includes the list of > new features and changes in this release is available at: >http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since the last release candidate is attached at the > end of this message. For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-rc2/mapserver/HISTOR > Y.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. The latest version is available online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-rc2.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-rc2 (2011-05-05) > -- > > - Fixed seg fault with [shpxy] tag... (#3860) > > - Removed obsolete msQueryByOperator() function > > - Call msLayerClose() before msLayerOpen() in the various query >functions (#3692) > > - Fix WMS 1.3.0 to use full list of epsg codes with inverted axis (#3582) > > - PHP/Mapscript: Added getResultsBounds() method in layer object (#2967) > > - Fix SLD containing a PropertyIsLike filter (#3855) > > - Fixed msUnionLayerNextShape to return correct values (#3859) > > - Union layer: fix for the failure if one or more of the source layers >are not in the current extent (#3858) > > - Fix memory leak in msResampleGDALToMap() (#3857) > > - Fix missing initialization of default formats in WCS 1.x. > > - Fix maxoverlapangle when value is set to 0 (#3856) > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6
That's what I thought. Thanks for testing. Alan On April 29, 2011 01:40:42 pm Armin Burger wrote: > Alan > > I used a script creating 3 different type of objects without applying > the "free" method, put it in a loop with 1M cycles and opened it in a > browser. Checking the memory usage of the Apache process while running > the script showed no increase of memory at all. So I would guess the > free() is not needed any more. Test was made with MS 5.6 > > Armin > > On 29/04/2011 15:13, Alan Boudreault wrote: > > Hi Armin, > > > > Although I'm not sure if the free call was useful... since it was only > > removing the php object from a global list but the object was not really > > freed until the end of the script... I would suggest to simply add a > > such condition "if ms_version< 6 ... obj->free()" rather than removing > > them to be compatible 5.6/6.0 and avoid any issue. You can also do a > > quick test in your script with some echo of the memory used before the > > end of the script and see if the free() removal has any effect. > > > > Alan > > > > On April 27, 2011 01:25:54 pm Armin Burger wrote: > >> Hi everybody > >> > >> in MapServer/MapScript 6 the various class methods "free()" have been > >> removed. If I want to have PHP/MapScript code compatible with both > >> MapServer 5.x and 6, the easiest would be to completely remove these > >> method calls from the code. > >> > >> My question is just if these free() methods are still somehow required > >> or recommended for MapServer/MapScript 5.x or if I can silently drop > >> them without any drawbacks. > >> > >> Cheers > >> Armin > >> ___ > >> mapserver-users mailing list > >> mapserver-users@lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6
Hi Armin, Although I'm not sure if the free call was useful... since it was only removing the php object from a global list but the object was not really freed until the end of the script... I would suggest to simply add a such condition "if ms_version < 6 ... obj->free()" rather than removing them to be compatible 5.6/6.0 and avoid any issue. You can also do a quick test in your script with some echo of the memory used before the end of the script and see if the free() removal has any effect. Alan On April 27, 2011 01:25:54 pm Armin Burger wrote: > Hi everybody > > in MapServer/MapScript 6 the various class methods "free()" have been > removed. If I want to have PHP/MapScript code compatible with both > MapServer 5.x and 6, the easiest would be to completely remove these > method calls from the code. > > My question is just if these free() methods are still somehow required > or recommended for MapServer/MapScript 5.x or if I can silently drop > them without any drawbacks. > > Cheers > Armin > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.0.0-rc1 release
UbuntuGIS MapServer packages have been updated for the RC1 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On April 27, 2011 10:56:51 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-rc1 (release candidate 1). > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well and no blocker issues are reported, then this release > candidate could lead us to a final 6.0.0 release next week. The full > release plan which also includes the list of new features and changes in > this release is available at: >http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since the last beta is attached at the end of this > message. For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-rc1/mapserver/HISTOR > Y.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. The latest version is available online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-rc1.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > > Version 6.0.0-rc1 (2011-04-27) > -- > > - Fix for the styleitem handling with union layer (#3674) > > - Fixed mindistance label test to check layer indexes. (#3851) > > - Fixed segmentation fault in PHP/MapScript and improved the php object >method calls (#3730) > > - Fix build issue related to unnecessary use of gdal-config --dep-libs > (#3316) > > > _______ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.0.0-beta7 release
UbuntuGIS MapServer packages have been updated for the beta7 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On April 21, 2011 03:23:55 am Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta7. This is the latest beta on our way to a final 6.0 release. > Once again this beta contains several important fixes and we encourage > you to test it and continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well, we hope to have a release candidate next week and a > final 6.0 release around the end of April. The full release plan which > also includes the list of new features and changes in this release is > available at: >http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since the last beta is attached at the end of this > message. For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta7/mapserver/HIST > ORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta7.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-beta7 (2011-04-20) > > > - Union Layer: fix for the STYLEITEM AUTO option (#3674) > > - Union Layer: Add support for the layer FILTER expressions, >add "Union:SourceLayerVisible" predefined attribute (#3674) > > - fix circle layer drawing for edge case when point1.x==point2.x (#1356) > > - fix incorrect quantization for images with very large number of >colors (#3848) > > - fix poor performance of polygon hatching (#3846) > > - upgrade clipper library to 4.2 (related to #3846) > > - Fix configure output for "WFS Client" (was reporting WMS info, #3842) > > - KML: latlon bbox for raster layers could end up being wrong for > non-square requests (#3840) > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.0.0-beta6 release
UbuntuGIS MapServer packages have been updated for the beta6 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On April 13, 2011 07:12:41 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta6. This is the latest beta on our way to a final 6.0 release. > Once again this beta contains several important fixes and we encourage > you to test it and continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well, the plan is to have a final 6.0 release around the end > of April. The full release plan which also includes the list of new > features and changes in this release is available at: >http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since beta1 is attached at the end of this message. > For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta6/mapserver/HIST > ORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta6.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-beta6 (2011-04-13) > > > - SLD: use pixmap size when parameter size is not specified (#2305) > > - fix memory leaks in mapgraticule.c (#3831) > > - fix runtime sub validation against web metadata, was using wrong > lookup key > > - clean up the symbolset if we've used an alternate renderer for a >layer (#3834,#3616) > > - fix crash on embeded legend with cairo raster renderer > > - fix crashes in SVG renderer on polygon symbol fills (#3837) > > - fix crash/corruptions with raster layers in pdf outputs (#3799) > > - fix memory leak in msFreeLabelCacheSlot (#3829) > > - use a circle brush for wide GD lines (#3835) > > - fix segmentation fault with transparent layers containing symbols (#3834) > > - fix memory leak on tiled vector polygons > > - fix segfault with marker symbols on short lines (#3823) > > - wms_getmap_formatlist causes first defined outputformat to be returned by >getmap (#3826) > > - fix building of mapcluster.c when OGR support is disabled > > - fix some valgrind found memory leaks (offset symbols, and gd io contexts) > > - skip marker symbol with no defined SYMBOL (caused some memory leaks with >uninitialized vector points) > > - fix crash in GD lines with floating point dash patterns (#3823) > > - Check renderer before using it when calculating label size (#3822) > > - allow palette file path to be relative to mapfile (#2115) > > - use supplied offset for brushed lines (#3825, #3792) > > - fix division by 0 error in bar charts for some ill-defined cases (#3218) > > - add GAP, POSITION and CAPS/JOINS to mapfile writer (#3797) > > - fix GEOMTRANSFORM rotation orientation for vector symbols (#3802) > > - GD Driver broken in FastCGI (#3813) > > - configure: look for libexslt.so under lib64 as well > > - Coding style and formatting fixes (#3819, #3820, #3821, and more) > > - More improvements to OpenGL error handling (#3791) > > - Added WMS GetFeatureInfo RADIUS=bbox vendor-specific option (#3561) > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] fastcgi mode with raster layer?
Martin, you'll have to set explicitly the CONNECTION POOL setting to get a persistant DB connection for a specific layer. See: http://mapserver.org/mapfile/layer.html (search for pooling) Alan On April 11, 2011 01:22:11 pm Martin Ouellet wrote: > I've just activated the fastcgi mode (RHEL5 - Mapserver 5.6.3 - Httpd) on > my server. is it normal to have no speed increase for a raster layer? > > Does the fastcgi mode is optimized mainly for database layers as Oracle or > PostGIS? > > thank you in advance. > > MartinOuellet -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.0.0-beta5 release
UbuntuGIS MapServer packages have been updated for the beta5 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On April 6, 2011 11:29:04 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta5. This is the latest beta on our way to a final 6.0 release. > Once again this beta contains several important fixes and we encourage > you to test it and continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well, the plan is to have a final 6.0 release around the end > of April. The full release plan which also includes the list of new > features and changes in this release is available at: >http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since beta1 is attached at the end of this message. > For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta5/mapserver/HIST > ORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta5.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > > Version 6.0.0-beta5 (2011-04-06) > > > - Fix setting of top-level mapObj member variables in PHP MapScript (#3815) > > - More robust OpenGL context creation on older video cards and drivers > (#3791) > > - Allow users to set the maximum number of vector features to be drawn > (#3739) > > - Fixed FCGI on Windows problem related to lexer (#3812) > > - KML: Add ows/kml_exclude_items (#3560) > > - Removed all refs left to MS_SYMBOL_CARTOLINE (#3798) > > - Removed GAP, PATTERN, LINECAP/JOIN and POSITION from symbolObj (#3797) > > - Fixed handling of STYLEITEM AUTO label position codes 10,11,12 (#3806) > > - Fixed msGEOSGeometry2Shape to handle 'GEOMETRYCOLLECTION EMPTY' >as null geometry instead of raising an error (#3811) > > - Re-added the MYSQL JOIN support. Had been removed with the MYGIS >deprecated driver. > > - Add opacity to legend (#3740) > > - Updated PHP/MapScript with the new objects properties (#3735) > > - KML: set layer's projection when it is not defined (#3809) > > - Updated xml mapfile schema and xsl with the new lexer properties (#3735) > > - Updated PHP/MapScript for MS RFC 69: clustering. (#3700) > > - Move allocation of cgiRequestObj paramNames/Values to msAllocCgiObj() > (#1888) > > - Add support for simple aggregates for the cluster layer attributes > (#3700) > > - Improved error reporting in msSaveImage() (#3733) > > - configure: look for libxslt.so under lib64 as well > > - added missing ';' before charset in WFS DescribeFeatureType header > (#3793) > > - add brushed line support for agg renderer (#3792) > > - fix bug with marker symbols along offset line > > - fix for the cluster layer returning invalid feature count (#3794) > > - remove some compiler warnings > > - fix incorrect scaling of hatch symbol spacing (#3773) > > - fix incorrect background color for INIMAGE exceptions (#3790) > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer download (at download.osgeo.org) failure
I've just tried the link and it is working properly. The failure may come from your side. Alan On April 1, 2011 10:23:18 am Lmhelp wrote: > Hi, > > Thank you for reading my post. > > When I try to download "MapServer" by clicking the following link: > http://download.osgeo.org/mapserver/mapserver-5.6.6.tar.gz > in the download page : http://mapserver.org/download.html > it says: > "The connection has timed out. > The server at download.osgeo.org is taking to long to respond." > > How/where can I download "MapServer"? > > Thank you for your help and best regards. > > > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.0.0-beta4 release
UbuntuGIS MapServer packages have been updated for the beta4 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On March 30, 2011 09:35:44 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta4. This is the latest beta on our way to a final 6.0 release. > Once again this beta contains several important fixes and we encourage > you to test it and continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well, the plan is to have a final 6.0 release around the end > of April. The full release plan which also includes the list of new > features and changes in this release is available at: >http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since beta1 is attached at the end of this message. > For a complete list see the HISTORY.TXT file at: > > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta4/mapserver/HIST > ORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta4.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-beta4 (2011-03-30) > > > - Fix shp2img's -i flag to honour map level transparent, image quality and >interlace settings. > > - Make sure command-line programs use an exit status other than 0 >when an error is encountered. (#3753) > > - Applied patch to filter unwanted fribidi characters (#3763) > > - Fixed lexer to set the proper state on URL variable substitutions > > - Fixed Memory leak in PostGIS driver (#3768) > > - Fixed PHP/MapScript symbol property setter method > > - fix memory leak in bar charts > > - fix some valgrind errors on agg rotated pixmap symbols > > - WCS 2.0: Adjusted definition of NilValues. > > - Fixed handling of PROJ_LIB value relative to mapfile path (#3094) > > - Fixed compilation error with opengl support (#3769) > > - add support for gml:Box for spatial filters (#3789) > > - fix query map generation error introduced in beta2 when output format >initialized was made as needed. > > - fix incorrect PATTERN behavior on agg lines (#3787) > > - report SOS DescribeObservationType in Capabilities (#3777) > > - Updated lexer to detect time attribute bindings (e.g. `[item]`) in > logical expressions > > - Fixed layer context expressions (REQUIRES/LABELREQUIRES) (#3737) > > - KML: Output ExtendedData (#3728) > > - Fixed OWS usage of multiple layers with same name (#3778) > > - WCS implementation should not lookup wms_* metadata (#3779) > > - WCS 2.0: Adjusted definition of rangeType. > > - Fixed OWS GetCapabilities to report only requests/operations that are >enabled. > > - WCS 2.0: Report only bands in the range subset. > > - OWS requests should be completely blocked by default (#3755) > > - SLD: check for limit on dash arrays (#3772) > > - WMS: Apply sld after bbox and srs have been parsed (#3765) > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Restrict WMS operations
Hi aznan, This modification has been added last week. It will be in the beta 4 release. Thanks, Alan On March 29, 2011 10:51:08 am aznan wrote: > Hi! > I finally got around to trying out Mapserver 6 beta 3. When adding this > line to the map file: > > "wms_enable_request" "GetCapabilities GetMap" > > requests other than the two mentioned return a ServiceException, which is > great, but the other operations still show up in the GetCapabilities > response. Is there something I'm missing? > > Thanks! > /Matti > > > -Original Message- > From: Jeff McKenna [via OSGeo.org] > <ml-node+6192878-452004863-270...@n2.nabble.com> > To: aznan <g...@email.com> > Sent: Mon, Mar 21, 2011 5:26 pm > Subject: Re: Restrict WMS operations > > > On 11-03-21 1:01 PM, aznan wrote: > > > Hi! > > I'm a new Mapserver user and I'm trying to figure out how to make my > WMS > > server only accept GetCapabilities and GetMap requests. > > > > The documentation at http://mapserver.org/ogc/wms_server.html says > that > GetLegendGraphic requires a LEGEND object in the map file. I've > been looking > > at the examples in the OGC workshop and I tried to remove LEGEND from > > config.map but GetLegendGraphic still shows up in the capabilities > response > > and a request still returns the blue squiggly line and 'Rivers' image. > I > > don't even know where to begin restricting GetFeatureInfo and the > other > operations. > > > > Please help! > > Hello, > > Regarding restricting WMS requests, take a look at the functionality > that is upcoming in the MapServer 6.0 release: > http://mapserver.org/development/rfc/ms-rfc-67.html You should be able > to try this on your platform, as MapServer 6.0-beta2 was just released. > > -jeff -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.0.0-beta3 release
UbuntuGIS MapServer packages have been updated for the beta3 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On March 23, 2011 05:45:22 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta3. This is the latest beta on our way to a final 6.0 release. > We realize that it comes only 5 days after beta2, but it also contains > several important fixes and we encourage you to test it and continue to > provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > This is the third of four planned beta releases and if all goes well a > final release should occur around the end of April. The full release > plan which also includes the list of new features and changes in this > release is available at: >http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since beta1 is attached at the end of this message. > For a complete list see the HISTORY.TXT file at: > > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta3/mapserver/HIST > ORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta3.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-beta3 (2011-03-23) > > > - apply min/max size/width style values to polygon spacing (vaguely related >to #3132) > > - assure that a created tile has a non-zero width and height (#3370) > > - use png_sig_cmp instead of png_check_sig (#3762) > > - Rendering: scale style OFFSET and GAP the same way we scale other style >attributes. Beforehand, we scaled them proportionaly to the computed > width. > > - KML: fix rounding problem for point feautres (#3767) > > - KML: update code to reflect output changes. Fix true type symbols. > (#3766) > > - SLD: Text Symbolizer now uses the new expression syntax (#3757) > > - WFS: correct bbox values for GetFeature with featureid request (#3761) > > - Mapscript Seg Fault on mapObj->getMetaData (#3738) > > - Correct double free in msCleanup(). > > - Initialize default formats in WCS. > > - Fix csharp Makefile.in (#3758) > > - Allow run-time subs in class->text (makes sense if you allow it in >class->expression). > > - Fix build problem when --enable-cgi-cl-debug-args is enabled (#2853) > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
The binaries of MapServer 6.0.0-beta1 are now available in UbuntuGIS for Ubuntu hardy, lucid and maverick. ubuntugis-testing ppa: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On March 9, 2011 09:47:54 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta1. This is the first beta on our way to a final 6.0 release. > > This new release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > The timing and feedback for this first beta is very important since it > comes one week before the Montreal Code Sprint where about a dozen > participants will be working specifically on MapServer and will have a > chance to tackle important 6.0 issues that may be found and reported. > > Here is a quick list of RFCs documenting some of the new features or > important changes in 6.0. This list is not complete, we will update it > as we polish the release documentation: > > Core Changes in MapServer 6.0 which could affect existing applications: > > * MS RFC 54: Rendering Interface API > * MS RFC 64: MapServer Expression Parser Overhaul > * MS RFC 65: Single-pass Query Changes for 6.0 > > New Features and Enhancements in MapServer 6.0: > > * MS RFC 58: Kml Output > * MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels > with too much character overlap > * MS RFC 61: Enhance MapServer Feature Style Support > * MS RFC 62: Support Additional WFS GetFeature Output Formats > * MS RFC 63: Built-in OpenLayers map viewer > * MS RFC 66: Better handling of temporary files > * MS RFC 67: Enable/Disable Layers in OGC Web Services > * MS RFC 68: Support for combining features from multiple layers > * MS RFC 69: Support for clustering of features in point layers > > (RFCs are available online at http://mapserver.org/development/rfc/) > > As usual there an a large number of additional small enhancements and > bug fixes. For a complete list see the HISTORY.TXT file at: > > > http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new 6.0.0-beta1 release in the next day or so. > > > This is the first of four planned beta releases and if all goes well a > final release should occur around the end of April. The full release > plan can be viewed at: > >http://trac.osgeo.org/mapserver/wiki/60ReleasePlan > > Once again we need your help to ensure a high quality product, > especially for this beta due to its timing with next week's Code Sprint, > so please help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] crash on SYMBOL
Fixed and committed in r10809. Alan On December 21, 2010 02:25:44 pm Daniel Morissette wrote: > Bart, > > Is "604310017" a symbol name? If you add quotes around it in the mapfile > then the entry should be treated as a symbol name and the seg fault > would go away, can you verify that? > > I suspect the integer value 604310017 (without quotes) is treated as an > index and used to access the array of symbols without bounds checking. > Please file a ticket and we'll have a look. > > Daniel > > Bart van den Eijnden (OSGIS) wrote: > > Hi list, > > > > we have some faulty MAP files, which did not crash MS 5.2, however they > > do seem to crash MS trunk. > > > > It results in a segfault (e.g. in a WMS GetCapabilities request) when we > > use e.g. > > > > SYMBOL 604310017 > > > > Any idea what has changed in the meantime to cause this to segfault? > > > > TIA. > > > > Best regards, > > Bart > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript
Yes I'm using the php cgi mode. On November 30, 2010 12:01:15 pm Peter Hopfgartner wrote: > Are you using PHP in CGI mode? loadparams() might not work with 5.6 when > PHP is used as an Apache module. > > Peter Hopfgartner > > R3 GIS Srl - GmbH > http://www.r3-gis.com > > > Alan Boudreault wrote > Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript > Date: 30.11.2010 17:44 > > >Well, not sure what's wrong with my test case... but I'm just unable to > >get > >the loadparams() method working in MapServer 5.4.2/5.6.5. It seems to > >crash > >without any exception. I see nothing in my debug file neither. The http > >request returns no data. > > > >Everything works like a charm using MapServer-dev, GET params and POST > >params. > > > >Alan > > > >On November 30, 2010 11:02:00 am Peter Hopfgartner wrote: > >> Thanks! > >> > >> Peter Hopfgartner > >> > >> R3 GIS Srl - GmbH > >> http://www.r3-gis.com > >> > >> > >> Alan Boudreault wrote > >> Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript > >> Date: 30.11.2010 16:10 > >> > >> >Well, I may be wrong... the php code and the cgiutil code have been > >> >modified.. > >> >let me give it a try today and will get back to you. > >> > > >> >Alan > >> > > >> >On November 30, 2010 10:01:30 am Alan Boudreault wrote: > >> >> Peter, > >> >> > >> >> By the current PHP MapScript, I assume you mean MapServer 5.6.5. > >> >> Unfortunately, I doubt it will work in that version. However, the > >> >> OWSRequest- > >> >> > >> >> >loadParams method supports post parameters in MS-dev. It will be > >> > > >> >available > >> > > >> >> >in > >> >> > >> >> MS 6.0. > >> >> > >> >> Alan > >> >> > >> >> On November 30, 2010 09:03:07 am Peter Hopfgartner wrote: > >> >> > Is OWSRequest->postrequest implemented in the current PHP > > > >MapScript? > > > >> >Is > >> > > >> >> > it available only for CGI? We would like to use a wrapper for > >> > > >> >handling > >> > > >> >> > WFS request and we would like to pass the POST data to MapServer > >> > > >> >without > >> > > >> >> > the need to slice the XML into single setParameters() calls. > >> >> > > >> >> > Regards, > >> >> > > >> >> > Peter Hopfgartner > >> >> > > >> >> > R3 GIS Srl - GmbH > >> >> > http://www.r3-gis.com > >> >> > > >> >> > > >> >> > ___ > >> >> > mapserver-users mailing list > >> >> > mapserver-users@lists.osgeo.org > >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript
Well, not sure what's wrong with my test case... but I'm just unable to get the loadparams() method working in MapServer 5.4.2/5.6.5. It seems to crash without any exception. I see nothing in my debug file neither. The http request returns no data. Everything works like a charm using MapServer-dev, GET params and POST params. Alan On November 30, 2010 11:02:00 am Peter Hopfgartner wrote: > Thanks! > > Peter Hopfgartner > > R3 GIS Srl - GmbH > http://www.r3-gis.com > > > Alan Boudreault wrote > Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript > Date: 30.11.2010 16:10 > > >Well, I may be wrong... the php code and the cgiutil code have been > >modified.. > >let me give it a try today and will get back to you. > > > >Alan > > > >On November 30, 2010 10:01:30 am Alan Boudreault wrote: > >> Peter, > >> > >> By the current PHP MapScript, I assume you mean MapServer 5.6.5. > >> Unfortunately, I doubt it will work in that version. However, the > >> OWSRequest- > >> > >> >loadParams method supports post parameters in MS-dev. It will be > > > >available > > > >> >in > >> > >> MS 6.0. > >> > >> Alan > >> > >> On November 30, 2010 09:03:07 am Peter Hopfgartner wrote: > >> > Is OWSRequest->postrequest implemented in the current PHP MapScript? > > > >Is > > > >> > it available only for CGI? We would like to use a wrapper for > > > >handling > > > >> > WFS request and we would like to pass the POST data to MapServer > > > >without > > > >> > the need to slice the XML into single setParameters() calls. > >> > > >> > Regards, > >> > > >> > Peter Hopfgartner > >> > > >> > R3 GIS Srl - GmbH > >> > http://www.r3-gis.com > >> > > >> > > >> > ___ > >> > mapserver-users mailing list > >> > mapserver-users@lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript
Well, I may be wrong... the php code and the cgiutil code have been modified.. let me give it a try today and will get back to you. Alan On November 30, 2010 10:01:30 am Alan Boudreault wrote: > Peter, > > By the current PHP MapScript, I assume you mean MapServer 5.6.5. > Unfortunately, I doubt it will work in that version. However, the > OWSRequest- > > >loadParams method supports post parameters in MS-dev. It will be available > >in > > MS 6.0. > > Alan > > On November 30, 2010 09:03:07 am Peter Hopfgartner wrote: > > Is OWSRequest->postrequest implemented in the current PHP MapScript? Is > > it available only for CGI? We would like to use a wrapper for handling > > WFS request and we would like to pass the POST data to MapServer without > > the need to slice the XML into single setParameters() calls. > > > > Regards, > > > > Peter Hopfgartner > > > > R3 GIS Srl - GmbH > > http://www.r3-gis.com > > > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript
Peter, By the current PHP MapScript, I assume you mean MapServer 5.6.5. Unfortunately, I doubt it will work in that version. However, the OWSRequest- >loadParams method supports post parameters in MS-dev. It will be available in MS 6.0. Alan On November 30, 2010 09:03:07 am Peter Hopfgartner wrote: > Is OWSRequest->postrequest implemented in the current PHP MapScript? Is it > available only for CGI? We would like to use a wrapper for handling WFS > request and we would like to pass the POST data to MapServer without the > need to slice the XML into single setParameters() calls. > > Regards, > > Peter Hopfgartner > > R3 GIS Srl - GmbH > http://www.r3-gis.com > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] issue with the issue tracker
It depends where the link comes from. You can report it here, I'll take care to fix it. Alan On October 12, 2010 05:07:17 pm Richard Greenwood wrote: > Thanks, that works. Any idea who I should contact to get the link fixed? > > Rich > > On Tue, Oct 12, 2010 at 1:57 PM, Alan Boudreault > > wrote: > > This URL is effectively invalid. Try this one: > > > > http://trac.osgeo.org/mapserver/newticket > > > > Alan > > > > On October 12, 2010 03:49:09 pm Richard Greenwood wrote: > >> When I try to create a new ticket at: > >> > >> http://trac.osgeo.org/mapserver/mapserver/newticket > >> > >> I get: > >> > >> Error: Not Found > >> > >> No handler matched request to /mapserver/newticket > >> > >> > >> > >> I have tried while logged in with my OSGEO account, also when logged > >> out. > >> > >> > >> > >> Thanks, > >> > >> Rich > > > > -- > > > > Alan Boudreault > > > > Mapgears > > > > http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] issue with the issue tracker
This URL is effectively invalid. Try this one: http://trac.osgeo.org/mapserver/newticket Alan On October 12, 2010 03:49:09 pm Richard Greenwood wrote: > When I try to create a new ticket at: > http://trac.osgeo.org/mapserver/mapserver/newticket > I get: > Error: Not Found > No handler matched request to /mapserver/newticket > > I have tried while logged in with my OSGEO account, also when logged out. > > Thanks, > Rich -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer Resolution - how to set the parameter dynamically
You can change the resolution in the url with that parameter: &map_resolution=x regards, Alan On October 5, 2010 03:41:07 am Astrid Emde wrote: > Hello list, > > I tested the new Parameter > > RESOLUTION > DEFRESOLUTION > > With these Paramter I can produce a nice map for print output [1]. > > It would be nice to set the Paramter RESOLUTION parameter directly in the > MapRequest like &RESOLUTION=288. If not set here the default from the > Mapfile could be used. > What do you think about this idea? Do you have discussed this already? > > Alternatively I tried to set a variable wit MapServer variable > substitution [2] like: > > RESOLUTION %resolution% > > But this caused a MapServer error. > > If someone has already a solution to set the resolution dynamically > (without MapScript) please let me know. > > Astrid Emde > > [1] http://mapserver.org/development/rfc/ms-rfc-55.html > [2] http://mapserver.org/mapfile/variable_sub.html > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Coments about the Tickedt 3541
Those steps are only needed when you want to use the Oracle support of OGR. ( http://mapserver.org/input/vector/oracle.html#two-options-for-using-oracle- spatial-with-mapserver ) By setting "CONNECTIONTYPE ORACLESPATIAL", you use the native oracle through mapserver. The DLL you were talking about is not used. So, with MapServer 5.6.1, you can reproduce the problem.. but not with 5.2.1. Thanks for the info, Alan On September 28, 2010 03:31:54 am Jorge Bellido Diez wrote: > We're using 'oraclespatial', I mean > > CONNECTIONTYPE oraclespatial > > CONNECTION user/p...@database > > We've just done what is explained in ms4w manual to get Oracle support > (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracl > e-10g > <http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html> ) > > Does this tell something to you?? Thanks > > > > > De: Alan Boudreault [mailto:aboudrea...@mapgears.com] > Enviado el: lunes, 27 de septiembre de 2010 15:04 > Para: mapserver-users@lists.osgeo.org > CC: Jorge Bellido Diez; Sumit Sharma > Asunto: Re: [mapserver-users] Re: Coments about the Tickedt 3541 > > > > It depends on how you define your layer. In the bug, they are using the > native oracle support in MapServer and not the oracle support from OGR. > So, the ogr_OCI.dll is not used. What OCI support are you using? (The > CONNECTIONTYPE in your layer) > > Alan > > On September 27, 2010 06:16:59 am Jorge Bellido Diez wrote: > > Hi, > > > > > > > > More comments about this ticket. We're using ms4w 3.0 beta 11 > > > > (DEVELOPMENT) as commented previously, which includes MapServer 5.6.1 > > > > version. In the beginning we started using ms4w 2.3.1 (STABLE), which > > > > includes MapServer 5.2.1. We've installed again the STABLE version > > with > > > same DB server, same data, same WMS configuration and the error is not > > > > reproduced anymore. > > > > > > > > We've noticed that the ogr_OCI.dll file is different. It could be > > > > posible that problem could be there?? Or it's more likely to be a bug > > in > > > MapServer's code?? > > > > > > > > Thanks. > > > > > > > > -Mensaje original- > > > > De: mapserver-users-boun...@lists.osgeo.org > > > > [mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de Sumit > > > > Sharma > > > > Enviado el: jueves, 23 de septiembre de 2010 16:17 > > > > Para: mapserver-users@lists.osgeo.org > > > > Asunto: [mapserver-users] Re: Coments about the Tickedt 3541 > > > > > > > > > > > > Initially this bug appears random to me as well, but it is certainly > > > > not. > > > > However, there is surely some loophole in OCI, and that bug is > > exploited > > > by MapServer. I have posted this bug in Oracle forum as well, but no > > > > luck as of now. > > > > As Alan is already able to verify this behavior, hopefully we will get > > > > some patch soon ... :-) -Sumit > > > > -- > > > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Coments-about-the-Tickedt-3541-tp > > > 5558012p5563227.html > > > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > ___ > > > > mapserver-users mailing list > > > > mapserver-users@lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ___ > > > > mapserver-users mailing list > > > > mapserver-users@lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Coments about the Tickedt 3541
It depends on how you define your layer. In the bug, they are using the native oracle support in MapServer and not the oracle support from OGR. So, the ogr_OCI.dll is not used. What OCI support are you using? (The CONNECTIONTYPE in your layer) Alan On September 27, 2010 06:16:59 am Jorge Bellido Diez wrote: > Hi, > > More comments about this ticket. We're using ms4w 3.0 beta 11 > (DEVELOPMENT) as commented previously, which includes MapServer 5.6.1 > version. In the beginning we started using ms4w 2.3.1 (STABLE), which > includes MapServer 5.2.1. We've installed again the STABLE version with > same DB server, same data, same WMS configuration and the error is not > reproduced anymore. > > We've noticed that the ogr_OCI.dll file is different. It could be > posible that problem could be there?? Or it's more likely to be a bug in > MapServer's code?? > > Thanks. > > -Mensaje original- > De: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de Sumit > Sharma > Enviado el: jueves, 23 de septiembre de 2010 16:17 > Para: mapserver-users@lists.osgeo.org > Asunto: [mapserver-users] Re: Coments about the Tickedt 3541 > > > Initially this bug appears random to me as well, but it is certainly > not. > However, there is surely some loophole in OCI, and that bug is exploited > by MapServer. I have posted this bug in Oracle forum as well, but no > luck as of now. > As Alan is already able to verify this behavior, hopefully we will get > some patch soon ... :-) -Sumit > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Coments-about-the-Tickedt-3541-tp > 5558012p5563227.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Coments about the Tickedt 3541
> Ticket number is 3541. > -Sumit > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Problems-with-MapServer-and-Oracle- > Spatial-tp5518303p5534732.html Sent from the Mapserver - User mailing list > archive at Nabble.com. ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Problems with MapServer and Oracle Spatial
Hi, Could you create a ticket and attach a small test case? I'm going to take a look as soon as I can. Thanks, Alan On September 15, 2010 06:40:18 am Sumit Sharma wrote: > Hi, > Even I am facing similar problems with mapserver 5.6.3 and Oracle Spatial > (Native support). I further narrow down this problem. When I execute > command resultsGetShape (after queryByRect) my oracle spatial data gets > corrupt. To my surprise I see duplicate value in my primary key. > Furthermore primary index still points to old data. > After further debugging I found that in msOracleSpatialLayerResultGetShape > when you try to fetch records using following oci function call, records > are updated. > > "TRY( hand, OCIAttrGet( (dvoid *)sthand->stmthp, (ub4)OCI_HTYPE_STMT, > (dvoid *)&sthand->rows_fetched, (ub4 *)0, (ub4)OCI_ATTR_ROWS_FETCHED, > hand->errhp ));" > > There was no error, exception or any debugging info... > > I was able to replicate this error in 10g and 11g as well. I am clueless > now. If anybody else is also facing same problem and have some other way > around or any suggestion for debugging further please let us know. > Thanks in advance, > Sumit. -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHPMapscript, Ming & Segmentation fault.
Hi, I'd say that php mapscript is not the cause. Could you try to display your map using the CGI directly. If you get the same seg fault error, it would be good if you could create a ticket with a minimal test case with a mapfile and data (perhaps you could do a simple ogr2gr from postgis to shapefile). regards, Alan On September 8, 2010 03:14:22 am Joseph Mamuchishvili wrote: > Hello, > > I have compiled MapServer 5.6.4 with PHPMapscript on FreeBSD 8.1. > During configuration Ming support was added. > phpinfo() returns the following: > MapScriptMapServer VersionMapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER > SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR > INPUT=SHAPEFILEPHP MapScript Version > ($Revision: 10204 $ $Date: 2010-06-02 06:57:48 -0700 (Wed, 02 Jun 2010) $) > > mingMing SWF output libraryenabledVersion0.4.3 > I am using the following php script (*testmap.php*): > > $map = ms_newMapObj("/map/apache/htdocs/map/mapsql.map"); > $image=$map->draw(); > $image_url=$image->saveImage("\\tmp"); > ?> > > > > > Example 1: Displaying a map > > > > > > > > > > > and the contents for *mapsql.map* file is: > > MAP NAME "Europe in purple" > > SIZE 400 400 > STATUS ON > EXTENT 478895 4615055 485900 4620056 > > UNITS METERS > SHAPEPATH "/home/map/SHP" > > WEB > IMAGEPATH "/map/apache/htdocs/tmp/" > IMAGEURL "/tmp/" > METADATA >"wms_title" "wms_title" ##required >"wms_onlineresource" " > http://soso.freebsd.host/cg-bin/mapserv?map=/map/apache/htdocs/mapsql.map&"; >"wms_srs" "EPSG:32638" > END > END > PROJECTION > "proj=utm" > "zone=38" > "ellps=WGS84" > "datum=WGS84" > "units=m" > "no_defs" > END > > QUERYMAP > COLOR 0 0 255 > STATUS ON > STYLE HILITE > END > > > LAYER > NAME "main_streets" > TOLERANCE 1 > TOLERANCEUNITS meters > CONNECTIONTYPE postgis > CONNECTION "user=pgsql dbname=pgsql host=soso.freebsd.host" > TEMPLATE "../query/query_template.html" > METADATA >QUERYABLE "true" >fields 'quca_ge:ქუჩის დასახელება,gid:გიდი' >hyperlink 'quca|http://myurl.com' >searchfield "quca" > RESULT_FIELDS "quca_ge" > RESULT_HEADERS "the_geom" > END > TYPE POLYGON > STATUS ON > DATA "the_geom from main_streets" > CLASS > STYLE > COLOR 110 50 100 > OUTLINECOLOR 200 200 200 > END > END > END > > END > > *Everything works fine*, but now *i want to generate flash output*. So I > added the following block to *mapsql.map *file: > > OUTPUTFORMAT > NAME swf > DRIVER "SWF" > MIMETYPE "application/x-shockwave-flash" > EXTENSION "swf" > IMAGEMODE PC256 > FORMATOPTION "OUTPUT_MOVIE=SINGLE" > END > > flash output is not generated and the following is appeared in apache error > log: *Segmentation fault (11).* > When trying to *launch *the testmap.php script from* the shell* the > following happens: > /php/bin/php ./testmap.php > *newSFWBitmapFillStyle: not a valid Bitmap FillStyle: 0* > Segmentation fault (core dumped) > > What is the reason of this ? What am I doing wrong ? > > Any suggestions or help will be appreciated. > > Joseph. > * > * > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Fast-CGI mode on Ubuntu
http://mapserver.org/optimization/fastcgi.html Alan On July 23, 2010 11:35:22 am Jeff Dege wrote: > I'm running MapServer version 5.6.1 on Ubuntu 10.04, using the default > configuration as created by the Ubuntu repository packages. According to > "mapserv -v", the executable is compiled to support fast-CGI mode. That > doesn't mean it's configured to support it. > > Can anyone tell me whether the default configuration of mapserv on Ubuntu > uses fast-CGI? Or point me to some decent documentation on how to change > it so that it is, if it isn't? > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Question about oracle spatial configuration change
Normally, you shouldn't have to change anything else. Have you tried to connect to the DB with your new user from the oracle sqlplus and did a "select * from " ? Thanks, Alan On July 14, 2010 08:07:05 am David Alda Fernandez de Lezea wrote: > Hi list, > > We were working with mapserver 5.6.1 and oracle spatial, and we have change > the user (the new one has less privileges - it cannot modify anything > stored in the DB) that connects to oracle spatial, and now we cannot > connect to the layers stored in oracle. We get the following message: > > [Wed Jul 14 14:01:29 2010].755000 CGI Request 1 on process 2648 > [Wed Jul 14 14:01:30 2010].38 msOracleSpatialLayerGetItems(): Query > error. Cannot retrieve column list [Wed Jul 14 14:01:30 2010].38 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:30 2010].38 mapserv request processing > time (msLoadMap not incl.): 0.625s [Wed Jul 14 14:01:30 2010].38 > msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:32 2010].52 > CGI Request 1 on process 1924 > [Wed Jul 14 14:01:32 2010].661000 msOracleSpatialLayerGetItems(): Query > error. Cannot retrieve column list [Wed Jul 14 14:01:32 2010].661000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:32 2010].661000 mapserv request processing > time (msLoadMap not incl.): 0.141s [Wed Jul 14 14:01:32 2010].661000 > msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 2010].36000 CGI > Request 1 on process 2408 > [Wed Jul 14 14:01:33 2010].161000 msOracleSpatialLayerGetItems(): Query > error. Cannot retrieve column list [Wed Jul 14 14:01:33 2010].161000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:33 2010].161000 mapserv request processing > time (msLoadMap not incl.): 0.125s [Wed Jul 14 14:01:33 2010].161000 > msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 2010].505000 > CGI Request 1 on process 2064 > [Wed Jul 14 14:01:33 2010].677000 msOracleSpatialLayerGetItems(): Query > error. Cannot retrieve column list [Wed Jul 14 14:01:33 2010].677000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:33 2010].677000 mapserv request processing > time (msLoadMap not incl.): 0.172s [Wed Jul 14 14:01:33 2010].677000 > msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 2010].989000 > CGI Request 1 on process 3216 > [Wed Jul 14 14:01:34 2010].13 msOracleSpatialLayerGetItems(): Query > error. Cannot retrieve column list [Wed Jul 14 14:01:34 2010].13 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:34 2010].13 mapserv request processing > time (msLoadMap not incl.): 0.141s [Wed Jul 14 14:01:34 2010].13 > msFreeMap(): freeing map at 019AB590. > > Do we have to refresh something or do somethign else? > > Layer config: > > CONNECTIONTYPE oraclespatial > CONNECTION "newuser/newp...@ora10gex" > > If configure the layer with the old user, it works. > > Thanks. > > Un saludo, > > ··· > ··· > > David Alda Fernández de Lezea > Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad > > IKT > Granja Modelo s/n · 01192 · Arkaute (Araba) > > ··· > ··· Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 > ··· > ··· email: da...@ikt.esweb: www.ikt.es > ·· > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] compilation problem
UbuntuGIS has it: http://trac.osgeo.org/ubuntugis/wiki https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable Alan On July 13, 2010 02:50:24 pm ahmet temiz wrote: > thank you for your both mail > > I must have destroyed that library accidentally , when I tried to > install gdal_1.7.2 ubuntu. > > Do you know where gdal_1.7.2 ubuntu package can be found ? > > regards > > 2010/7/13 Alan Boudreault : > > Same problem, a library named libdf.so is missing. Find the package that > > contains the file "libdf.so" and install it. On Ubuntu, it's > > libhdf4g-dev. > > > > Alan > > > > On July 13, 2010 08:29:19 am ahmet temiz wrote: > >> hello > >> > >> when I tried to compile mapserver: > >> > >> I got this. > >> > >> /usr/bin/ld: cannot find -ldf > >> collect2: ld returned 1 exit status > >> make: *** [shp2img] Error 1 > >> > >> > >> what might be the problem ? > >> > >> > >> regards > >> _______ > >> mapserver-users mailing list > >> mapserver-users@lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > > Alan Boudreault > > Mapgears > > http://www.mapgears.com > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Fwd: Re: [mapserver-dev] rendering difference between 5.6.3 and 5.6.4
-- Alan Boudreault Mapgears http://www.mapgears.com --- Begin Message --- The problem is effectively related to that enum order. It seems that MapServer doesn't use only the enum name but use the enum integer values (determined by the enum order) to get the inchesPerUnit values. There is scale/units code in 4 different files, I would say that a cleanup should be done to avoid such problems in the future. It's now fixed in trunk and backported in branch 5.6. I'd need someone that could get the svn branch 5-6 and confirm that the problem is fixed before Daniel prepares the MS 5.6.5 release. Changeset: http://trac.osgeo.org/mapserver/changeset/10345 My apologies for any inconvenience I caused >:| regards, Alan On July 13, 2010 10:36:19 am Daniel Morissette wrote: > Lime, Steve D (DNR) wrote: > > Probably related to the issue that Steve W. identified yesterday. Time to > > start digging folks... > > I think the problem may be related to the patch for the units enum order: > http://trac.osgeo.org/mapserver/ticket/3413 > > The patch (r10243) does not seem to sync the inchesPerUnit[] array in > mapscale.c... > > Checking... > > Daniel > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-dev mailing list mapserver-...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-dev --- End Message --- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] rendering difference between 5.6.3 and 5.6.4
Hi Christy, That's right, 5.6.4 shouldn't require any modifications for users, it's only a bug fix release. Would you be able to provide a small test case (data+mapfile) ? Alan On July 13, 2010 09:46:24 am Christy Nieman wrote: > Hi, > > I've just compiled mapserver 5.6.4 in an FGS enviromnment, and when I > rendered a map I noticed that it was taking a very long time. Once the > image was displayed, it seemed that the largest scale class for each > layer had been used for a rather small scale map. I've attached a 5.6.3 > and 5.6.4 example of the same mapfile. Is there something that I > haven't changed that's needed for 5.6.4? I recall reading that 5.6.4 > wouldn't require any modifications for users? > > Thanks, > Christy > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] compilation problem
Same problem, a library named libdf.so is missing. Find the package that contains the file "libdf.so" and install it. On Ubuntu, it's libhdf4g-dev. Alan On July 13, 2010 08:29:19 am ahmet temiz wrote: > hello > > when I tried to compile mapserver: > > I got this. > > /usr/bin/ld: cannot find -ldf > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > > what might be the problem ? > > > regards > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] cannot find -lmfhdf
You should be able to fix that by installing the libhdf4g dev package for your distribution. Debian/Ubuntu: libhdf4g-dev Alan On July 13, 2010 06:44:44 am ahmet temiz wrote: > hello > > when I tried to install mapserver from source > > I received: > > cannot find -lmfhdf > > > how can I solve the problem ? > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver 5.6.3 on Linux 64 bits
Yes, It should build without problem. Alan On June 28, 2010 10:52:02 am Ricardo Vilella wrote: > Hi I have a simple question, can compile MapServer 5.6.3 on Debian Lenny > 64-bit? Look in the documentation but did not specify if possible. > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver 5.6.3 compile error
Hi Jan, You have to install the unixodbc dev package. On my Ubuntu system, the package name is unixodbc-dev, which contains the libodbcinst.so file needed. Find the appropriate package for you distribution and install it. Alan On June 10, 2010 08:15:48 am Jan Peters-Anders wrote: > Dear all, > I am just upgrading my Mapserver executable to version 5.6.3 and I am > encoutering this compile error: > > --8<--- > gcc -c -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR > -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL > -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_TIFF > -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD > -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB > -I/usr/lib -I/usr/include/freetype2-I/usr/include -I/usr/include > -I/usr/include -I/usr/include -I/usr/local/include > -I/usr/include/libxml2 shp2img.c -o shp2img.o g++ -g -fPIC -Wall > -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR-DUSE_WMS_LYR > -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR > -DUSE_WFS_SVR -DUSE_WMS_SVR-DUSE_POSTGIS -DUSE_TIFF -DUSE_GDAL > -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ > -DUSE_EPPL -DUSE_AGG -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG > -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR > -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/lib > -I/usr/include/freetype2-I/usr/include -I/usr/include > -I/usr/include -I/usr/include -I/usr/local/include > -I/usr/include/libxml2 shp2img.o -L. -lmapserver -L/usr/lib -lgd -ljpeg > -lfreetype -lpng -lz -lXpm -lX11 -lpdf -ltiff -ljpeg -lfreetype -lpng > -lz -lXpm -lX11 -L/usr/include -lproj -ljpeg -lpng -L/usr/lib -lgdal > -L/usr/lib -lgeos -lgeos_c -lodbc -lodbcinst -lgif -ljpeg -ltiff -lpng > -lnetcdf -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -L/usr/kerberos/lib -lcurl > -ldl -l gssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz > -L/usr/lib -lpq -lpgport -lpam -lssl -lcrypto -lkrb5 -lz -lreadline > -ltermcap -lcrypt -lresolv -lnsl -ldl -lm -lbsd -L/usr/kerberos/lib > -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto > -lz-L/usr/lib -lgeos_c -lpthread -L/usr/local/lib -liconv -lz > -L/usr/lib -lxml2 -lz -lm -lm -lstdc++-o shp2img /usr/bin/ld: cannot > find -lodbcinst > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > --8<--- > > I know that this might be just a numb Linux specific problem and I am > asking just a beginner's (which I still seem to be when it comes to > compiling code on Linux :) ) question, but can anybody point me in the > right direction how to link the odbcinst correctly (it is located at > /usr/bin/odbcinst) so the compiler can find it? > > Thanks in advance! > > Regards > Jan > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapScript resultsGetShape confusion [solved!]
Steve and I are in discussion to solve this issue. If you have other useful information or want to follow the bug processing, here's the trac ticket: http://trac.osgeo.org/mapserver/ticket/3467 regards, Alan On June 3, 2010 08:57:27 am Worth Lutz wrote: > Yes, adding the tileindex argument to the resultsGetShape call in PHP > mapscript seems to have solved my problem with moving my application from > MapServer 5.6.1 to 5.6.3. > > Worth > > -Original Message- > From: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Worth Lutz > Sent: Wednesday, June 02, 2010 8:12 PM > To: 'Christian Jauvin'; 'Daniel Morissette' > Cc: mapserver-users@lists.osgeo.org > Subject: RE: [mapserver-users] MapScript resultsGetShape confusion > [solved!] > > This may be the problem I had when I tried to update to 5.6.3. from 5.6.1. > > I'm in the middle of a project and did not have time to figure out what was > causing the problem. The only change was the change to the MapServer > version so I quickly reverted back. I'm using PHP Mapscript. I'll see if > I can find the time to check to see if this is the problem I was having. > > Worth > > -Original Message- > From: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Christian > Jauvin > Sent: Wednesday, June 02, 2010 11:18 AM > To: Daniel Morissette > Cc: mapserver-users@lists.osgeo.org > Subject: Re: [mapserver-users] MapScript resultsGetShape confusion > [solved!] > > Ok.. so with a lot of fiddling around (and with inspiration from a > Frank Warmerdam's testing script) I've been able to find the cause of > the problem, as well as its solution: with a PostGIS connected layer, > a call to resultsGetShape *has* to include the third parameter, > "tileindex": > > resultsGetShape(shp, res.shapeindex) --> hangs MS 5.6.3 > resultsGetShape(shp, res.shapeindex, res.tileindex) --> works great! > > I don't know if it's really a bug, but it contradicts the > documentation, in which the tileindex argument is optional, and it > wasn't behaving like that (to my knowledge) with MS in [5.6.0, 5.6.2]. > > By the way, an initial observation I made was wrong: it also affects > the PHP version, and the workaround is the same. > > Best regards, > > Christian > > > On Tue, Jun 1, 2010 at 5:02 PM, Daniel Morissette > > wrote: > > Christian Jauvin wrote: > >> I did what you suggested, and added: > >> > >> CONFIG "MS_ERRORFILE" "" > >> CONFIG "CPL_DEBUG" "ON" > >> DEBUG 5 > > > > Did you also include DEBUG 5 inside the POSTGIS layer itself? > > > >> to my mapfile, and performed my query again. It generated a very long > >> file (200K+ lines!) with only two types of line: > >> > >> [Tue Jun 1 14:36:01 2010].765230 getSymbol(): Symbol definition > >> error. Parsing error near (null):(line 208) > >> [...] > >> [Tue Jun 1 14:36:01 2010].777963 msPostGISLayerResultsGetShape called > >> for record = 338 > >> [...] > > > > 200k times the same message sounds like an infinite loop of some sort. > > > > Perhaps look at the first few lines of debug/error messages. There may be > > a > > > different message that would have been output *before* entering the > > infinite > > > loop and that could give a hint about what is happening. Just a guess... > > can't do much more from here. > > > > What is the last version that worked fine? 5.6.2? > > > > Daniel > > -- > > Daniel Morissette > > http://www.mapgears.com/ > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapScript resultsGetShape confusion [solved!]
Not sure why it is required with a PostGIS layer, but it shouldn't. In PHP, -1 is passe when the tileindex is not specified. Please fill a bug and assign it to "aboudreault", I'm going to take a look. Thanks, Alan On June 2, 2010 11:17:30 am Christian Jauvin wrote: > Ok.. so with a lot of fiddling around (and with inspiration from a > Frank Warmerdam's testing script) I've been able to find the cause of > the problem, as well as its solution: with a PostGIS connected layer, > a call to resultsGetShape *has* to include the third parameter, > "tileindex": > > resultsGetShape(shp, res.shapeindex) --> hangs MS 5.6.3 > resultsGetShape(shp, res.shapeindex, res.tileindex) --> works great! > > I don't know if it's really a bug, but it contradicts the > documentation, in which the tileindex argument is optional, and it > wasn't behaving like that (to my knowledge) with MS in [5.6.0, 5.6.2]. > > By the way, an initial observation I made was wrong: it also affects > the PHP version, and the workaround is the same. > > Best regards, > > Christian > > > On Tue, Jun 1, 2010 at 5:02 PM, Daniel Morissette > > wrote: > > Christian Jauvin wrote: > >> I did what you suggested, and added: > >> > >> CONFIG "MS_ERRORFILE" "" > >> CONFIG "CPL_DEBUG" "ON" > >> DEBUG 5 > > > > Did you also include DEBUG 5 inside the POSTGIS layer itself? > > > >> to my mapfile, and performed my query again. It generated a very long > >> file (200K+ lines!) with only two types of line: > >> > >> [Tue Jun 1 14:36:01 2010].765230 getSymbol(): Symbol definition > >> error. Parsing error near (null):(line 208) > >> [...] > >> [Tue Jun 1 14:36:01 2010].777963 msPostGISLayerResultsGetShape called > >> for record = 338 > >> [...] > > > > 200k times the same message sounds like an infinite loop of some sort. > > > > Perhaps look at the first few lines of debug/error messages. There may be > > a different message that would have been output *before* entering the > > infinite loop and that could give a hint about what is happening. Just a > > guess... can't do much more from here. > > > > What is the last version that worked fine? 5.6.2? > > > > Daniel > > -- > > Daniel Morissette > > http://www.mapgears.com/ > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] enable-debug in mapscript? getting a "cannot load module" error
Hi, I think you'll have to open 'mapscript/php3/php_mapscript.c' and look for ZEND_DEBUG 0 somewhere... and replace it by ZEND_DEBUG 1. Alan On April 29, 2010 10:38:23 am Burgholzer, Robert (DEQ) wrote: > This error message does not seem to agree. Is there a specific > directive to enable debugging in mapscript that I missed? > > ERROR: > PHP Warning: PHP Startup: MapScript: Unable to initialize module > Module compiled with module API=20060613, debug=0, thread-safety=1 > PHPcompiled with module API=20060613, debug=1, thread-safety=1 > These options need to match > > CONFIGURE: > ./configure --with-wfs --with-wmsclient > --with-php=/home/rob/src/php-5.2.11 --with-postgis --with-wfsclient > --with-wms --with-postgis --with-gdal --with-ogr --with-geos --with-proj > --enable-debug > > Thanks, > r.b. > > Robert W. Burgholzer > Surface Water Modeler > Office of Water Supply and Planning > Virginia Department of Environmental Quality > rwburghol...@deq.virginia.gov > 804-698-4405 > Open Source Modeling Tools: > http://sourceforge.net/projects/npsource/ > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Question about PHP object comparison
Cristiano, I haven't tested the code below.. but I assume you are using php mapscript 5.6 or ealier. You cannot use the php clone keyword with mapscript object since it has no idea how to clone the internal object properly. If you would have used php mapscript from svn (which includes the refactoring) to do this test, you would have gotten an error since the object are not clonable. It's in my enhancement todo list to make some objects clonable. I have no idea when this will be done though. Alan Cristiano Sumariva wrote: I executed this example and object comparison returned true on clone call. But it returned false when I request another reference from same layer from getLayer. Should not it return true ? #/* 09/04/2010 test for mapserver object comparison on PHP. # If I clone a layer object from a map instance and compare the cloned with ref, do they are the same ? # Answer: yes. # PHP state: Two object instances are equal if they have the same attributes and values, and are instances of the same class #require_once dirname( __FILE__ ).'/class/mapfile/Mapfile.php'; #Mapfile::checkLibrary(); $map = ms_newMapObj( '' ); var_dump( $map->numlayers ); $l = ms_newlayerobj( $map ); var_dump( $map->numlayers ); print( nl2br( "\n" ) ); $l->set( 'type', MS_LAYER_POLYGON ); #var_dump( $l->type ); $lClone = clone $l; var_dump( __LINE__, ( $l == $lClone ) ); var_dump( __LINE__, ( $l == $map->getLayer( 0 ) ) ); $lRef = $map->getLayer( 0 ); var_dump( __LINE__, ( $l == $lRef ), $l->type, $lRef->type ); #repeated test but now with $l from the reference from getLayer print( nl2br( "\n" ) ); $l = $map->getLayer( 0 ); $lClone = clone $l; var_dump( __LINE__, ( $l == $lClone ) ); var_dump( __LINE__, ( $l == $map->getLayer( 0 ) ) ); $lRef = $map->getLayer( 0 ); var_dump( __LINE__, ( $l == $lRef ), $l->type, $lRef->type ); exit; ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP $imgObj->saveImage(null) sends headers - Found word(s) list error in the Text body [Keyword]
; > > >> >> At the header line I got an header already sended error, even no > > >> >> output will be brinted before. > > >> >> > > >> >> I looked into php_mapscript.c and I found that in the saveImage > > >> >> function there is php_header(TSRMLS_C); As I do not know the PHP > > >> >> internals, i do not know what that call is doing, but when I > > >> >> removed it out, and recompiled the extension, > > >> >> > > >> >> Now output buffering is working correctly. > > >> >> > > >> >> What is the function doing? Should it be replaced in the main > > >> >> development? > > >> >> > > >> >> Thanks > > >> >> -- > > >> >> Miloslav Kmeť > > >> >> > > >> >> ___ > > >> >> mapserver-users mailing list > > >> >> mapserver-users@lists.osgeo.org > > >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> > > > >> > -- > > >> > http://iap.md, The future is open > > > > > > -- > > > Miloslav Kmeť > > > ___ > > > mapserver-users mailing list > > > mapserver-users@lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] php mapscript
Sven, I don't know really what's happen in your case. but getShape/getFeature seem to return NULL or FALSE. It's not an object, so there is no ->values array and ->free method available neither. Alan On March 25, 2010 10:52:12 am Sven Schroeter wrote: > Alan, > thanks for the reply, I tried it with getFeature(), but there comes the > same error. > nextShape() works only after msWhichShapes and here I need a rectobj. > But I want to use the script for queryByShape and queryByAttributes too. > Why there comes no array in $attr = $shpobj->values; ? > Any idea? > Sven > > - Original Message - > From: "Alan Boudreault" > To: > Cc: "Sven Schroeter" > Sent: Thursday, March 25, 2010 2:32 PM > Subject: Re: [mapserver-users] php mapscript > > > Sven, > > > > getShape() is deprecated. Use rather getFeature(). I suggest to also take > > a > > look at the nextShape() function: > > http://mapserver.org/mapscript/php/index.html#layerobj-class > > > > Alan > > > > On March 25, 2010 09:18:50 am Sven Schroeter wrote: > >> Hi, > >> I have an old php mapscript code that works fine with mapserver 5.02 or > >> 5.2, but not with 5.6.1. > >> The code runs an attribute tabe from a postgis layer and different > >> querys i.e. queryByRect: > >> > >> ... > >> @$datQuery = $query_layer->queryByRect($qRect); > >> > >> //number of objects > >> $resnum = $query_layer->getNumResults(); > >> echo "number of objects: ".$resnum.""; > >> > >> //if query success > >> if ($datQuery == MS_SUCCESS) { > >> $query_layer->open(); > >> > >> //first row > >> $result = $query_layer->getResult(0); > >> $shpobj = > >> $query_layer->getShape($result->tileindex,$result->shapeindex); > >> //read attribute > >> $attr = $shpobj->values; > >> > >> //write headline > >> echo ''; > >> foreach($attr as $name=>$wert) { > >>echo ''.$name.''; > >> } > >> echo ''; > >> > >> //write datasets > >> for ($j=0; $j<$query_layer->getNumResults(); $j++) { > >>$result = $query_layer->getResult($j); > >>$shpobj = > >> $query_layer->getShape($result->tileindex,$result->shapeindex); $ri = > >> $result->tileindex; > >>$si = $result->shapeindex; > >>$attr = $shpobj->values; > >>echo ''; > >>foreach($attr as $name=>$wert) { > >> echo ''.$wert.''; > >>} > >>echo ''; > >>$shpobj->free(); > >> } > >> $query_layer->close(); > >> echo ''; > >> > >> } // end success > >> ... > >> > >> In ms 5.6.1 the query is also successful (I get the correct number of > >> objects) but there comes following warning: > >> Invalid argument supplied for foreach() in ... Fatal error: Call to a > >> member function free() on a non-object in ... > >> No object? Why? What has changed? > >> Thanks > >> Sven > >> > >> > >> > >> ___ > >> mapserver-users mailing list > >> mapserver-users@lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP MapScript: shape->classindex is always 0
Hi Peter, If you are sure that the shape use the different classes you specified in the mapfile (you probably see it in your map image), so I guess it could be a bug. Please fill a ticket with a test case. Assign it to "aboudreault". regards, Alan On March 24, 2010 06:38:49 am Peter Hopfgartner wrote: > Hello > > As I interpreted this, classindex should point to the right class of the > instantiated shape. Unfortunatly, classindex is always 0. > > As a test I have a LAYER with 2 classes, > CLASS >NAME 'class1' >EXPRESSION (([class] eq 1)) >STYLE > SYMBOL "circle" > SIZE 7.0 > OUTLINECOLOR 0 0 0 > COLOR 0 128 0 >END > END > CLASS >NAME 'class2' >EXPRESSION (([class] eq 2)) >STYLE > SYMBOL "circle" > SIZE 7.0 > OUTLINECOLOR 0 0 0 > COLOR 0 0 128 >END > END > > In the PostGIS database are 4 point, 2 with class=1 and 2 with class=2, > the generated map image shows the expected colors. > > The following script: > > $mapfile = 'test.map'; > $map = ms_newmapobj($mapfile); > $layer = $map->getLayerByName('test'); > $status = $layer->open(); > $status = $layer->whichShapes($map->extent); > while ($shape = $layer->nextShape()) > { >echo "index: {$shape->index}\tclassindex: {$shape->classindex}\n"; > } > $layer->close(); > ?> > > the following output: > > index: 0 classindex: 0 > index: 1classindex: 0 > index: 2classindex: 0 > index: 3classindex: 0 > > which is not what I expected. > > Am I missing something obvious or is this a MapServer bug? > > Regards, > > Peter > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] php mapscript
Sven, getShape() is deprecated. Use rather getFeature(). I suggest to also take a look at the nextShape() function: http://mapserver.org/mapscript/php/index.html#layerobj-class Alan On March 25, 2010 09:18:50 am Sven Schroeter wrote: > Hi, > I have an old php mapscript code that works fine with mapserver 5.02 or > 5.2, but not with 5.6.1. > The code runs an attribute tabe from a postgis layer and different querys > i.e. queryByRect: > > ... > @$datQuery = $query_layer->queryByRect($qRect); > > //number of objects > $resnum = $query_layer->getNumResults(); > echo "number of objects: ".$resnum.""; > > //if query success > if ($datQuery == MS_SUCCESS) { > $query_layer->open(); > > //first row > $result = $query_layer->getResult(0); > $shpobj = $query_layer->getShape($result->tileindex,$result->shapeindex); > //read attribute > $attr = $shpobj->values; > > //write headline > echo ''; > foreach($attr as $name=>$wert) { >echo ''.$name.''; > } > echo ''; > > //write datasets > for ($j=0; $j<$query_layer->getNumResults(); $j++) { >$result = $query_layer->getResult($j); >$shpobj = > $query_layer->getShape($result->tileindex,$result->shapeindex); $ri = > $result->tileindex; >$si = $result->shapeindex; >$attr = $shpobj->values; >echo ''; >foreach($attr as $name=>$wert) { > echo ''.$wert.''; >} >echo ''; >$shpobj->free(); > } > $query_layer->close(); > echo ''; > > } // end success > ... > > In ms 5.6.1 the query is also successful (I get the correct number of > objects) but there comes following warning: > Invalid argument supplied for foreach() in ... Fatal error: Call to a > member function free() on a non-object in ... > No object? Why? What has changed? > Thanks > Sven > > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] help with AGG support
With mapserver 5.6.3, could you try to open the mapstring.c file and add the following include at the line 40: #include Fixed by FrankW in http://trac.osgeo.org/mapserver/changeset/9998 Alan On March 24, 2010 11:04:23 am Julie Knoll wrote: > Actually we are using version 5.4. > > I just tried compiling 5.6.3 and got a new set of errors on make > (non-related to agg) > > mapstring.c: In function ‘msConvertWideStringToUTF8’: > mapstring.c:1542: warning: dereferencing type-punned pointer will break > strict-aliasing rules > mapstring.c:1544: error: ‘errno’ undeclared (first use in this function) > mapstring.c:1544: error: (Each undeclared identifier is reported only once > mapstring.c:1544: error: for each function it appears in.) > mapstring.c:1545: error: ‘E2BIG’ undeclared (first use in this function) > mapstring.c:1548: error: ‘EILSEQ’ undeclared (first use in this function) > mapstring.c:1551: error: ‘EINVAL’ undeclared (first use in this function) > make: *** [mapstring.o] Error 1 > > I then tried version 5.6.1 which compiled and installed perfectly, but when > trying to actually draw a map, it reported an error with my postgis layer: > > [Wed Mar 24 09:49:48 2010].943741 msPostGISLayerGetItems(): Query error. > Error (ERROR: column "box" does not exist > LINE 1: ...om geom_cassidi_states where the_geom && setsrid(!BOX!,4269)... > ^ > ) executing SQL: select * from (select the_geom, state_name, gid from > geom_cassidi_states where the_geom && setsrid(!BOX!,4269)) as foo where > false limit 0 > > > so not sure what to do now ... > > > On Wed, Mar 24, 2010 at 9:52 AM, Alan Boudreault > > wrote: > > Julie, what mapserver version are you using? AGG is already included in > > mapserver 5.6.x source. Just compile with "--with-agg" option. I'm not > > sure MS > > has been tested with agg 2.5. > > > > Alan > > > > On March 24, 2010 10:22:35 am Julie Knoll wrote: > > > Hi, > > > > > > I have installed packages for agg-2.5 and agg-devel-2.5 on our server. > > > Compling mapserver using ./configure --with-php=/usr/include/php > > > --with-postgis --with-proj --with-geos --with-freetype --with-agg=/usr > > > works fine. However make returns the following errors. Could someone > > > please help? The server is CentOS 5.4 > > > > > > /usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named > > > ‘row_data’ in ‘class mapserv_row_ptr_cache’ > > > /usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named > > > ‘row_data’ in ‘class mapserv_row_ptr_cache’ > > > mapagg.cpp: In member function ‘void > > > AGGMapserverRenderer::renderEllipse(double, double, double, double, > > > > double, > > > > > agg::rgba8&, agg::rgba8&, double)’: > > > mapagg.cpp:299: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > mapagg.cpp: In function ‘void msCircleDrawShadeSymbolAGG(symbolSetObj*, > > > imageObj*, pointObj*, double, styleObj*, double)’: > > > mapagg.cpp:1077: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > mapagg.cpp:1101: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > mapagg.cpp:1144: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > mapagg.cpp:1177: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > mapagg.cpp: In function ‘void msDrawMarkerSymbolAGG(symbolSetObj*, > > > imageObj*, pointObj*, styleObj*, double)’: > > > mapagg.cpp:1300: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > mapagg.cpp: In function ‘void drawPolylineMarkers(imageObj*, shapeObj*, > > > symbolSetObj*, styleObj*, double)’: > > > mapagg.cpp:1426: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > mapagg.cpp:1427: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > mapagg.cpp:1428: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > mapagg.cpp: In function ‘void msDrawLineSymbolAGG(symbolSetObj*, > > > > imageObj*, > > > > > shapeObj*, styleObj*, double)’: > > > mapagg.cpp:1713: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > mapagg.cpp: In function ‘void msDrawShadeSymbolAGG(symbolSetObj*, > > > imageObj*, shapeObj*, styleObj*, double)’: > > > mapagg.cpp:1831: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > mapagg.cpp:1878: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > mapagg.cpp:1926: error: ‘class agg::path_storage’ has no member named > > > ‘transform’ > > > make: *** [mapagg.o] Error 1 > > > > > > Thanks > > > > -- > > Alan Boudreault > > Mapgears > > http://www.mapgears.com > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] help with AGG support
Julie, what mapserver version are you using? AGG is already included in mapserver 5.6.x source. Just compile with "--with-agg" option. I'm not sure MS has been tested with agg 2.5. Alan On March 24, 2010 10:22:35 am Julie Knoll wrote: > Hi, > > I have installed packages for agg-2.5 and agg-devel-2.5 on our server. > Compling mapserver using ./configure --with-php=/usr/include/php > --with-postgis --with-proj --with-geos --with-freetype --with-agg=/usr > works fine. However make returns the following errors. Could someone > please help? The server is CentOS 5.4 > > /usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named ‘row_data’ > in ‘class mapserv_row_ptr_cache’ > /usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named ‘row_data’ > in ‘class mapserv_row_ptr_cache’ > mapagg.cpp: In member function ‘void > AGGMapserverRenderer::renderEllipse(double, double, double, double, double, > agg::rgba8&, agg::rgba8&, double)’: > mapagg.cpp:299: error: ‘class agg::path_storage’ has no member named > ‘transform’ > mapagg.cpp: In function ‘void msCircleDrawShadeSymbolAGG(symbolSetObj*, > imageObj*, pointObj*, double, styleObj*, double)’: > mapagg.cpp:1077: error: ‘class agg::path_storage’ has no member named > ‘transform’ > mapagg.cpp:1101: error: ‘class agg::path_storage’ has no member named > ‘transform’ > mapagg.cpp:1144: error: ‘class agg::path_storage’ has no member named > ‘transform’ > mapagg.cpp:1177: error: ‘class agg::path_storage’ has no member named > ‘transform’ > mapagg.cpp: In function ‘void msDrawMarkerSymbolAGG(symbolSetObj*, > imageObj*, pointObj*, styleObj*, double)’: > mapagg.cpp:1300: error: ‘class agg::path_storage’ has no member named > ‘transform’ > mapagg.cpp: In function ‘void drawPolylineMarkers(imageObj*, shapeObj*, > symbolSetObj*, styleObj*, double)’: > mapagg.cpp:1426: error: ‘class agg::path_storage’ has no member named > ‘transform’ > mapagg.cpp:1427: error: ‘class agg::path_storage’ has no member named > ‘transform’ > mapagg.cpp:1428: error: ‘class agg::path_storage’ has no member named > ‘transform’ > mapagg.cpp: In function ‘void msDrawLineSymbolAGG(symbolSetObj*, imageObj*, > shapeObj*, styleObj*, double)’: > mapagg.cpp:1713: error: ‘class agg::path_storage’ has no member named > ‘transform’ > mapagg.cpp: In function ‘void msDrawShadeSymbolAGG(symbolSetObj*, > imageObj*, shapeObj*, styleObj*, double)’: > mapagg.cpp:1831: error: ‘class agg::path_storage’ has no member named > ‘transform’ > mapagg.cpp:1878: error: ‘class agg::path_storage’ has no member named > ‘transform’ > mapagg.cpp:1926: error: ‘class agg::path_storage’ has no member named > ‘transform’ > make: *** [mapagg.o] Error 1 > > Thanks > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Map file xsl transformation and regular expressions
It's fixed. The new xslt will be in MapServer 5.6.3. Thanks, Alan On March 22, 2010 02:56:16 pm Alexandre Soares wrote: > Hi Alan, > > I found one small bug: the default value of expressionType complex type is > 'CONSTANT'. However, the stylesheet will only quote if the value of the > attribute is equal to 'CONSTANT', which is not if you don't supply a value > for this attribute. All other cases seem to work fine. That > is, 583 will not be quoted with the current > stylesheet. > > Thanks! > > On Mon, Mar 22, 2010 at 12:04 PM, Alan Boudreault > > wrote: > > Alexandre, could you test the new xsl file and see if your two issues > > have been fixed. You can get it via: > > > > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/xmlmapfile/mapfil > >e.xsl?format=raw > > > > I did a quick fix to integrate it in MS 5.6.3, which is supposed to be > > released today. > > > > expression/filter examples: > > 583 or > > 583 > > will be quoted. > > /.../ and > > (...) will not be quoted. > > > > symbol examples: > > star.gif will be quoted > > 32 will not be quoted > > > > Thanks, > > Alan > > > > On March 19, 2010 02:59:17 pm Alexandre Soares wrote: > > > The symbol attribute (which does not get quoted by default) causes a > > > problem if the value references a stmbol's name. I think it could also > > > benefit from your fix. > > > > > > Thank you! > > > On Fri, Mar 19, 2010 at 2:49 PM, Alan Boudreault > > > > > > wrote: > > > > Alexandre, you are right, if the expression is an regular expression, > > > > it > > > > > > shouldn't be quoted. I think the only solution would be to add an > > > > attribute in > > > > the xml schema, that will specify if the expression is an regular > > > > expression > > > > of not. Something like: > > > > > > > > > > > > > > > > In this case, the xsl transformation would not quote it. I take a > > > > note > > > > on > > > > > > that > > > > and should fix this in the next few days. > > > > > > > > Thanks for reporting! > > > > Alan > > > > > > > > On March 19, 2010 02:21:45 pm Alexandre Soares wrote: > > > > > Hi, > > > > > > > > > > When I transform my xml map file to a map file, my expressions that > > > > > > > > contain > > > > > > > > > a regular expression (the same is true for filters) are rendered > > > > > with double quotes (because the stylesheet has the quote="1" param > > > > > for those templates). > > > > > > > > > > Is there an intended way to achieve this? I know I could modify the > > > > > stylesheet to not quote those elements and then quote-wrap my value > > > > if > > > > > > > I need them (in case of string comparison). > > > > > > > > > > Thank you! > > > > > > > > -- > > > > Alan Boudreault > > > > Mapgears > > > > http://www.mapgears.com > > > > -- > > Alan Boudreault > > Mapgears > > http://www.mapgears.com > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Map file xsl transformation and regular expressions
Alexandre, could you test the new xsl file and see if your two issues have been fixed. You can get it via: http://trac.osgeo.org/mapserver/browser/trunk/mapserver/xmlmapfile/mapfile.xsl?format=raw I did a quick fix to integrate it in MS 5.6.3, which is supposed to be released today. expression/filter examples: 583 or 583 will be quoted. /.../ and (...) will not be quoted. symbol examples: star.gif will be quoted 32 will not be quoted Thanks, Alan On March 19, 2010 02:59:17 pm Alexandre Soares wrote: > The symbol attribute (which does not get quoted by default) causes a > problem if the value references a stmbol's name. I think it could also > benefit from your fix. > > Thank you! > On Fri, Mar 19, 2010 at 2:49 PM, Alan Boudreault > > wrote: > > Alexandre, you are right, if the expression is an regular expression, it > > shouldn't be quoted. I think the only solution would be to add an > > attribute in > > the xml schema, that will specify if the expression is an regular > > expression > > of not. Something like: > > > > > > > > In this case, the xsl transformation would not quote it. I take a note on > > that > > and should fix this in the next few days. > > > > Thanks for reporting! > > Alan > > > > On March 19, 2010 02:21:45 pm Alexandre Soares wrote: > > > Hi, > > > > > > When I transform my xml map file to a map file, my expressions that > > > > contain > > > > > a regular expression (the same is true for filters) are rendered with > > > double quotes (because the stylesheet has the quote="1" param for > > > those templates). > > > > > > Is there an intended way to achieve this? I know I could modify the > > > stylesheet to not quote those elements and then quote-wrap my value if > > > I need them (in case of string comparison). > > > > > > Thank you! > > > > -- > > Alan Boudreault > > Mapgears > > http://www.mapgears.com > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Map file xsl transformation and regular expressions
Alexandre, you are right, if the expression is an regular expression, it shouldn't be quoted. I think the only solution would be to add an attribute in the xml schema, that will specify if the expression is an regular expression of not. Something like: In this case, the xsl transformation would not quote it. I take a note on that and should fix this in the next few days. Thanks for reporting! Alan On March 19, 2010 02:21:45 pm Alexandre Soares wrote: > Hi, > > When I transform my xml map file to a map file, my expressions that contain > a regular expression (the same is true for filters) are rendered with > double quotes (because the stylesheet has the quote="1" param for those > templates). > > Is there an intended way to achieve this? I know I could modify the > stylesheet to not quote those elements and then quote-wrap my value if I > need them (in case of string comparison). > > Thank you! > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver in ubuntu: not displaying map
ashka, Have you taken a look at the image url (in the browser) ? Since the image path is "/var/www/tutorial/tmp" and "/var/www/" is already available from the web (with the default apache configuration) the image url of your image should be something like "http://localhost/tutorial/tmp/EX2.1_12675266704111.png";. The image url can be configured in the mapfile: http://mapserver.org/mapfile/web.html Alan ashka fernando wrote: Dear all, I am trying to run Mapserver in Ubuntu Karmic Koala. I have successfully used Mapserver in windows and now want to migrate to ubuntu . But I'm very much new to ubuntu and struggle to get the work done smoothly. The Mapserver and Apache both are running ,works fine as localhost. I can get a map in map mode ( based on map server tutorial examples) but failed to get the map display in the browse mode. There is no error massage and the web template is displaying with all components except the map image. The map images are created inside the tmp folder however they are not displayed in the template interface. I think its due to permission issues but failed to solve it, even after going through forums. The locations of the templete and map files are /var/www/tutorial The location of the image path /var/www/tutorial/tmp For /var/www/tutorial/tmp permissions are as follows drwxrwsr-x 2 gisuser www-data 4096 2010-03-02 16:14 tmp when the new map images are created by the mapserver , the image files have permissions like this -rwxrwxr-- 1 www-data www-data 11686 2010-03-02 16:14 EX2.1_12675266704111.png Why doesn't these map images are not displaying in the web template file? Can anyone suggest a way to solve this issue? This may be rather relate to running Apache in Ubuntu. As failed to get any help from ubuntu forum, compelled to ask help from you all. appreciate any help . ashka ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Translate MapServer Doc into french
I've created a page int the wiki about the doc translation process. Feel free to update it if something is missing or incomplete. http://trac.osgeo.org/mapserver/wiki/DocumentationTranslation Alan On February 25, 2010 09:52:16 am Daniel Morissette wrote: > Alan Boudreault wrote: > > About the process described by Jeff.. > > > > The following step: > > > > - copy the /en folder and rename to your language > > > > could be reconsidered. Since there is a mechanism on the server that > > redirect automatically to the english version is the file of the current > > translated doc, you can simply add the "images", "include" directories > > plus the translated documents in your "fr" directory. > > > > It would be useful to have this process in the wiki. > > I agree that since we have this fallback mechanism on the server we > should avoid committing batch copies of the English docs in the SVN > directory and instead the translators should copy the docs one by one to > their directory as they translate them. > > Note to translators: the automated fallback to the English version of > missing documents in the translated directories works only on the > server, so don't be surprised if that doesn't work on your local machine > while you test your translations. > > Alan: I'd say go ahead and update the wiki with that info... it's a > wiki, so everyone is free to improve it. > > Daniel > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Translate MapServer Doc into french
About the process described by Jeff.. The following step: - copy the /en folder and rename to your language could be reconsidered. Since there is a mechanism on the server that redirect automatically to the english version is the file of the current translated doc, you can simply add the "images", "include" directories plus the translated documents in your "fr" directory. It would be useful to have this process in the wiki. Alan On February 25, 2010 03:02:56 am Lars Lingner wrote: > Yves Jacolin schrieb: > > Hello, > > > > What is the process to translate the documentation into french? Does > > someone began to work on this? > > I'm not sure if someone is working on french translation, but the > process of translating the docs has been described by Jeff McKenna here > http://lists.osgeo.org/pipermail/mapserver-dev/2010-February/009653.html > > I will add to this: Just check in the translated files. The build script > will take care of missing translation by inserting the English version. > > Its really nice to see that the multilingual setup attracts more and > more people ;) > > Thank you! > > > Lars > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] failing in updateFromString
A color should be in a style object. something like this should work: layer.updateFromString("LAYER CLASS STYLE COLOR 245 13 60 END END END"); Alan On February 19, 2010 03:29:03 am ahmettemi...@gmail.com wrote: > hello > > I want to change color of contour map according to > another map that lies beneath of contour map. Otherwise > contours cannot be discerned. > > > And I thought I might be able to change of lines' color using > > "layer.updateFromString("COLOR 245 13 60");" > > but it failed. > > what might the alternative solutions be ? > > regards > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Help PHP mapscript. DrawQuery with extent=shapes
Hi Predroaa, To simulate this CGI request, you could use: * the OwsrequestObj class * the function Layer->queryByShape() Alan On January 29, 2010 07:34:09 am Pedroaa wrote: > Hi friends, my english is not so good (im from argentina). > I need do a $oMap->drawQuery(), but i need do it like Mapserver CGI. > /cgi-bin/mapserv?mode=nquery&imgext=-60.70866644902204+-31.64842730088904+- > 60.7026972983+-31.644427300889028& > > -> mapext=shapes <- > > &imgxy=367+133&imgbox=367+133+473+249&imgsize=829+552&layers=departamentos > > Do you know if there is any way to do that easily using phpmapscript? > > > thanks > > Pedro. > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] resolution
What do you mean by "I still in 72 dpi". How do you check your image DPI ? Alan On January 25, 2010 01:24:18 pm Valeria Muñoz wrote: > ok, i update mapserver version to 5.6, i change my mapfile, but I still in > 72 dpi... > > mapfile > > MAP > NAME neonline_mapa > RESOLUTION 300 > DEFRESOLUTION 72 > SIZE 1667 1667 > > UNITS dd > SHAPEPATH "c:/ms4w/Apache/htdocs/test_mapfile/data2/" > EXTENT -112.888238 -57.06133625 -7.4194881 13.25116375 > FONTSET "c:/ms4w/Apache/htdocs/test_map_dis/fonts/fonts.txt" > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 122 206 232 > IMAGETYPE pdf > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE 'image/png' > IMAGEMODE RGB > EXTENSION "png" >FORMATOPTION "TRANSPARENT=ON" >FORMATOPTION "INTERLACE=ON" >FORMATOPTION "QUANTIZE_COLORS=256" > END > > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > .. > > 2010/1/25 Jeff McKenna > > > Alan Boudreault wrote: > >> Sorry, I was sure you was trying to use the new feature included in > >> MapServer 5.6. In MS <5.6, you can't really do more that setting the > >> resolution to 300. > > > > If you are using MS4W 3.0, you can extract the "MapServer version 5.6.0 > > release Upgrade" package on the MS4W downloads page [1], to install > > MapServer 5.6.0 > > > > If you have questions about performing this upgrade, please use the MS4W > > email list[2]. > > > > [1] http://www.maptools.org/ms4w/index.phtml?page=downloads.html > > [2] http://lists.maptools.org/mailman/listinfo/ms4w-users > > > > -jeff > > > > > > -- > > Jeff McKenna > > FOSS4G Consulting and Training Services > > http://www.gatewaygeomatics.com/ > > > > > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] resolution
Sorry, I was sure you was trying to use the new feature included in MapServer 5.6. In MS <5.6, you can't really do more that setting the resolution to 300. Alan On January 25, 2010 10:44:25 am Valeria Muñoz wrote: > Hi Alan > > i did set defresolution to 72 ,but return to me this error. > > msLoadMap(): Unknown identifier. Parsing error near (DEFRESOLUTION):(line > 7) > > > in what MapSever version can i define DEFRESOLUTION? > > RG > > 2010/1/25 Alan Boudreault > > > Hi > > > > Set the DEFRESOLUTION to 72 (I assume all your mapfile settings are for a > > 72dpi image) , change the RESOLUTION to 300. Change your map size if you > > want > > a big 300dpi image. > > > > It is possible that the image header doesn't contain the DPI information. > > This > > can easily be modified with a graphic program like "The GIMP". > > > > Alan > > > > On January 25, 2010 10:00:52 am Valeria Muñoz wrote: > > > Hi > > > > > >I need to produce a 300dpi image for printing, i defined a > > > RESOLUTION 300 in the mapfile , but nothing happens , still in 72 dpi > > > ... can you > > > > help > > > > > me please? > > > > > > mapfile > > > > > > MAP > > > NAME neonline_mapa > > > RESOLUTION 300 > > > SIZE 400 400 > > > UNITS dd > > > SHAPEPATH "c:/ms4w/Apache/htdocs/test_mapfile/dataB2/" > > > EXTENT -112.888238 -57.06133625 -7.4194881 13.25116375 > > > FONTSET "c:/ms4w/Apache/htdocs/test_map_dis/fonts/fonts.txt" > > > PROJECTION > > > 'proj=longlat' > > > 'ellps=WGS84' > > > 'datum=WGS84' > > > 'no_defs' > > > '' > > > END > > > IMAGECOLOR 122 206 232 > > > OUTPUTFORMAT > > > NAME png > > > DRIVER "AGG/PNG" > > > MIMETYPE 'image/png' > > > IMAGEMODE RGB #RGBA transparente > > > EXTENSION "png" > > >FORMATOPTION "TRANSPARENT=ON" > > >FORMATOPTION "INTERLACE=ON" > > >FORMATOPTION "QUANTIZE_COLORS=256" > > > END > > > > > > # Legend > > > LEGEND > > > IMAGECOLOR 255 255 255 > > > STATUS ON > > > KEYSIZE 18 12 > > > LABEL > > > TYPE BITMAP > > > SIZE MEDIUM > > > COLOR 0 0 89 > > > END > > > END > > > > > > > -- > > Alan Boudreault > > Mapgears > > http://www.mapgears.com > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] resolution
Hi Set the DEFRESOLUTION to 72 (I assume all your mapfile settings are for a 72dpi image) , change the RESOLUTION to 300. Change your map size if you want a big 300dpi image. It is possible that the image header doesn't contain the DPI information. This can easily be modified with a graphic program like "The GIMP". Alan On January 25, 2010 10:00:52 am Valeria Muñoz wrote: > Hi > >I need to produce a 300dpi image for printing, i defined a RESOLUTION > 300 in the mapfile , but nothing happens , still in 72 dpi ... can you help > me please? > > mapfile > > MAP > NAME neonline_mapa > RESOLUTION 300 > SIZE 400 400 > UNITS dd > SHAPEPATH "c:/ms4w/Apache/htdocs/test_mapfile/dataB2/" > EXTENT -112.888238 -57.06133625 -7.4194881 13.25116375 > FONTSET "c:/ms4w/Apache/htdocs/test_map_dis/fonts/fonts.txt" > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > IMAGECOLOR 122 206 232 > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE 'image/png' > IMAGEMODE RGB #RGBA transparente > EXTENSION "png" >FORMATOPTION "TRANSPARENT=ON" >FORMATOPTION "INTERLACE=ON" >FORMATOPTION "QUANTIZE_COLORS=256" > END > > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP mapscript recenter problem
Donatas, You'll have to convert the longitude/latitude to pixels. I'm not very familiar with those conversions since I don't play with that often. However, I think the following example can help you to figure out how to do it: http://lists.osgeo.org/pipermail/mapserver-users/2005-June/008214.html Perhaps, someone else on the list could give you a better/smaller example. regards, Alan On January 25, 2010 02:51:41 am Donatas Malinauskas wrote: > Hi Alan, > > Thanks for yours reply! Yes now it's clear pixels are integers... It is > too bad that this simply function mismatches to me. Is there other > recenter function which works with x,y in lonlat? I didn't see something > like that in mapserver/mapscript documentation... > > Good day, > Donatas. > > Alan Boudreault wrote: > > Donatas, > > > > The x,y given to the zoomPoint function are in PIXEL, not lonlat. You > > cannot specify a half pixel. That said, pixel are integers, not double. > > > > Alan > > > > On January 22, 2010 03:22:30 am Donatas Malinauskas wrote: > >> HGood day, > >> > >> I have some problem. I want to recenter my map exactly to users given > >> georeferenced coordinates. For that purpose I use php mapscript function > >> - zoompoint(ZOOMFACTOR,$myXY, WIDTH, HEIGHT, EXTENT) with ZOOMFACTOR=1. > >> But this function doesn't work correctly. ZoomPoint function centers map > >> to rounded x,y position (then I have myX 235.5px and myY 330.42 it > >> rounds to 235px, 330px) and moves map to incorect center coordinates. > >> What should I do in this situation, please give me some advice, how > >> recenter map with best precision. > >> > >> Thanks, > >> Donatas. > >> ___ > >> mapserver-users mailing list > >> mapserver-users@lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP mapscript recenter problem
Donatas, The x,y given to the zoomPoint function are in PIXEL, not lonlat. You cannot specify a half pixel. That said, pixel are integers, not double. Alan On January 22, 2010 03:22:30 am Donatas Malinauskas wrote: > HGood day, > > I have some problem. I want to recenter my map exactly to users given > georeferenced coordinates. For that purpose I use php mapscript function > - zoompoint(ZOOMFACTOR,$myXY, WIDTH, HEIGHT, EXTENT) with ZOOMFACTOR=1. > But this function doesn't work correctly. ZoomPoint function centers map > to rounded x,y position (then I have myX 235.5px and myY 330.42 it > rounds to 235px, 330px) and moves map to incorect center coordinates. > What should I do in this situation, please give me some advice, how > recenter map with best precision. > > Thanks, > Donatas. > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] php error
You can have both on your system, but if you want to use php mapscript with php 5.2.9, you need to specify the proper header path. ie. on ubuntu: --with-php=/usr/include/php5/ This way, the mapscript module will work with your php 5.2.9. Hope this help. Alan bascom49 wrote: Alan Boudreault wrote: PHP mapscript hasn't been compiled with php 5.2.9. You'll have to rebuild the module with the proper php lib. You probably have a old php 4.x on your system too. Alan bascom49 wrote: I am installing mapserver 5.4.2. My php version is 5.2.9. I am getting an error message with the following code : php if (PHP_OS == "WINNT" || PHP_OS == "WIN32") { $dllversion = 'php_mapscript.dll'; } else { $dllversion = 'php_mapscript.so'; } if (!extension_loaded('MapScript')) {dl($dllversion);} phpinfo(); ?> A link to the file producing this error is at : http://174.120.238.19/info.php You can view my php configuration at this link: http://174.120.238.19/info.php Does anyone have experience with the following php issue ? [13-Jan-2010 14:00:04] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/âphp_mapscript.soâphp_mapscript.soâ [13-Jan-2010 14:00:04] PHP Warning: PHP Startup: UõSHìè: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHPcompiled with module API=20060613, debug=0, thread-safety=0 These options need to match Thanks, Charles -- Alan Boudreault Mapgears http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users I had installing mapscript with php by following this link: http://mapserver.org/installation/php.html and must have misunderstood that I could compile against php5. I do have a php4 binary on my server. Is this as simple as compiling mapserver with the php4 binary to produce php_mapscript.so and keeping php5 on my system or do I have to reinstall php4 as well ? -- Alan Boudreault Mapgears http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] php error
PHP mapscript hasn't been compiled with php 5.2.9. You'll have to rebuild the module with the proper php lib. You probably have a old php 4.x on your system too. Alan bascom49 wrote: I am installing mapserver 5.4.2. My php version is 5.2.9. I am getting an error message with the following code : php if (PHP_OS == "WINNT" || PHP_OS == "WIN32") { $dllversion = 'php_mapscript.dll'; } else { $dllversion = 'php_mapscript.so'; } if (!extension_loaded('MapScript')) {dl($dllversion);} phpinfo(); ?> A link to the file producing this error is at : http://174.120.238.19/info.php You can view my php configuration at this link: http://174.120.238.19/info.php Does anyone have experience with the following php issue ? [13-Jan-2010 14:00:04] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/âphp_mapscript.soâphp_mapscript.soâ [13-Jan-2010 14:00:04] PHP Warning: PHP Startup: UõSHìè: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHPcompiled with module API=20060613, debug=0, thread-safety=0 These options need to match Thanks, Charles -- Alan Boudreault Mapgears http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 5.6.1 version and labels
Carlos, glad to hear that your issue is fixed. This is a new feature of MapServer 5.6: the ability to automatically scale the symbology when resolution changes so that the map maintains the same look at each resolution. For more info: http://www.mapserver.org/development/rfc/ms- rfc-55.html What's happen with your mapfile is that you set the resolution to 99 (which means that you wanted an output map of reso 99), but you did not set the defresolution (which tells mapserver the initial resolution your mapfile is supposed to be). In this case, the behavior of mapserver is to scale all the values to preserve the look of the mapfile. Without this functionnality, to convert a mapfile that use initialy a resolution of 72 to a printable mapfile of resolution 300 (example), you would have to convert all the value/size of symbol line etc... manually. regards, Alan On January 12, 2010 03:56:46 pm Carlos Ruiz wrote: > Oh, I tought it was one or the other. Adding DEFRESOLUTION fixes the > label's visual size. > > Why do I need now to add this tag if I never used before ? > > Thanks for all, Alan > > > IC Carlos Ruiz > > From: Alan Boudreault > > To: Carlos Ruiz > Cc: mapserver-users > Sent: Tue, January 12, 2010 2:37:46 PM > Subject: Re: [mapserver-users] 5.6.1 version and labels > > emm, I mean, did you *added* the DEFRESOLUTION 99 ? and not replaced the > RESOLUTION 99. You should have both. > > Alan > > On January 12, 2010 03:35:00 pm Carlos Ruiz wrote: > > Hey Alan, > > > > > > Using DEFRESOLUTION 99 now makes all the labels smaller than they was. > > > > Any other idea ? > > Thanks for helping me on this issue > > > > > > IC Carlos Ruiz > > > > > > > > > > From: Alan Boudreault > > To: mapserver-users@lists.osgeo.org > > Cc: Carlos Ruiz ; "Lime, Steve D (DNR)" > > Sent: Tue, January 12, 2010 1:43:48 PM > > Subject: Re: [mapserver-users] 5.6.1 version and labels > > > > Carlos, you haven't attached the images. > > > > What's happen if you add the following line into your map definition: > > > > DEFRESOLUTION 99 > > > > Alan > > > > On January 12, 2010 02:26:18 pm Carlos Ruiz wrote: > > > Thanks Steve, > > > > > > Lets see something simple that is changing in the new Mapserver > > > version, here's the LAYER definition: > > > > > > LAYER > > > > > > NAME "my name" > > > TYPE annotation > > > STATUS ON > > > TRANSFORM ll > > > UNITS PIXELS > > > > > > FEATURE > > > POINTS > > > 135 -10 > > > END > > > TEXT "my text" > > > END > > > > > > CLASS > > > LABEL > > > FONT "arial" > > > TYPE TRUETYPE > > > SIZE 8 > > > BUFFER 1 > > > COLOR 0 0 0 > > > BACKGROUNDCOLOR 255 255 255 > > > FORCE TRUE > > > END > > > END > > > > > > END > > > > > > And now the MAP definition: > > > > > > MAP > > > > > > EXTENT 427469.4518 2086656.9173 860880.8507 2523277.2962 > > > FONTSET "fonts/fonts.txt" > > > SYMBOLSET "symbols.txt" > > > SIZE 640 480 > > > STATUS ON > > > > > > OUTPUTFORMAT > > > NAME jpeg > > > DRIVER "GD/JPEG" > > > MIMETYPE "image/jpeg" > > > IMAGEMODE RGB > > > EXTENSION "jpg" > > > FORMATOPTION "QUALITY=80" > > > END > > > > > > QUERYMAP > > > COLOR 255 255 0 > > > STYLE NORMAL > > > END > > > > > > RESOLUTION 99 > > > > > > UNITS meters > > > > > > I've attached how it looks with the 5.4 version (before.jpg) and how it > > > looks now with the 5.6.1 version (after.jpg). > > > > > > Hope this helps you to find this strange behavior > > > > > > Thanks in advance ! > > > > > > > > > IC Carlos Ruiz > > > > > > > > > From: "Lime, Steve D (DNR)" > > > To: Carlos Ruiz ; > > > "m
Re: [mapserver-users] 5.6.1 version and labels
emm, I mean, did you *added* the DEFRESOLUTION 99 ? and not replaced the RESOLUTION 99. You should have both. Alan On January 12, 2010 03:35:00 pm Carlos Ruiz wrote: > Hey Alan, > > > Using DEFRESOLUTION 99 now makes all the labels smaller than they was. > > Any other idea ? > Thanks for helping me on this issue > > > IC Carlos Ruiz > > > > ________ > From: Alan Boudreault > To: mapserver-users@lists.osgeo.org > Cc: Carlos Ruiz ; "Lime, Steve D (DNR)" > Sent: Tue, January 12, 2010 1:43:48 PM > Subject: Re: [mapserver-users] 5.6.1 version and labels > > Carlos, you haven't attached the images. > > What's happen if you add the following line into your map definition: > > DEFRESOLUTION 99 > > Alan > > On January 12, 2010 02:26:18 pm Carlos Ruiz wrote: > > Thanks Steve, > > > > Lets see something simple that is changing in the new Mapserver version, > > here's the LAYER definition: > > > > LAYER > > > > NAME "my name" > > TYPE annotation > > STATUS ON > > TRANSFORM ll > > UNITS PIXELS > > > > FEATURE > > POINTS > > 135 -10 > > END > > TEXT "my text" > > END > > > > CLASS > > LABEL > > FONT "arial" > > TYPE TRUETYPE > > SIZE 8 > > BUFFER 1 > > COLOR 0 0 0 > > BACKGROUNDCOLOR 255 255 255 > > FORCE TRUE > > END > > END > > > > END > > > > And now the MAP definition: > > > > MAP > > > > EXTENT 427469.4518 2086656.9173 860880.8507 2523277.2962 > > FONTSET "fonts/fonts.txt" > > SYMBOLSET "symbols.txt" > > SIZE 640 480 > > STATUS ON > > > > OUTPUTFORMAT > > NAME jpeg > > DRIVER "GD/JPEG" > > MIMETYPE "image/jpeg" > > IMAGEMODE RGB > > EXTENSION "jpg" > > FORMATOPTION "QUALITY=80" > > END > > > > QUERYMAP > > COLOR 255 255 0 > > STYLE NORMAL > > END > > > > RESOLUTION 99 > > > > UNITS meters > > > > I've attached how it looks with the 5.4 version (before.jpg) and how it > > looks now with the 5.6.1 version (after.jpg). > > > > Hope this helps you to find this strange behavior > > > > Thanks in advance ! > > > > > > IC Carlos Ruiz > > > > > > From: "Lime, Steve D (DNR)" > > To: Carlos Ruiz ; > > "mapserver-users@lists.osgeo.org" Sent: > > Mon, January 11, 2010 3:55:08 PM Subject: RE: [mapserver-users] 5.6.1 > > version and labels > > > > > > What does your layer def look like? What renderer are you using? > > Are you setting a specific RESOLUTION? There may be some subtle sizing > > changes but I haven’t run across anything significant yet. > > > > Before and after images are helpful too. > > > > Steve > > > > From:mapserver-users-boun...@lists.osgeo.org > > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Carlos > > Ruiz Sent: Monday, January 11, 2010 3:43 PM > > To: mapserver-users@lists.osgeo.org > > Subject: [mapserver-users] 5.6.1 version and labels > > > > Hi all, > > > > I have updated my Mapserver version from 5.4 to 5.6.0 (and later to 5.6.1 > > because the queries). There's something odd with the labels because > > appears bigger than i had defined. > > > > Does anybody knows why ? > > > > Thanks in advance > > IC > > Carlos Ruiz > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] 5.6.1 version and labels
Carlos, you haven't attached the images. What's happen if you add the following line into your map definition: DEFRESOLUTION 99 Alan On January 12, 2010 02:26:18 pm Carlos Ruiz wrote: > Thanks Steve, > > Lets see something simple that is changing in the new Mapserver version, > here's the LAYER definition: > > LAYER > > NAME "my name" > TYPE annotation > STATUS ON > TRANSFORM ll > UNITS PIXELS > > FEATURE > POINTS > 135 -10 > END > TEXT "my text" > END > > CLASS > LABEL > FONT "arial" > TYPE TRUETYPE > SIZE 8 > BUFFER 1 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > FORCE TRUE > END > END > > END > > And now the MAP definition: > > MAP > > EXTENT 427469.4518 2086656.9173 860880.8507 2523277.2962 > FONTSET "fonts/fonts.txt" > SYMBOLSET "symbols.txt" > SIZE 640 480 > STATUS ON > > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > FORMATOPTION "QUALITY=80" > END > > QUERYMAP > COLOR 255 255 0 > STYLE NORMAL > END > > RESOLUTION 99 > > UNITS meters > > I've attached how it looks with the 5.4 version (before.jpg) and how it > looks now with the 5.6.1 version (after.jpg). > > Hope this helps you to find this strange behavior > > Thanks in advance ! > > > IC Carlos Ruiz > > > From: "Lime, Steve D (DNR)" > To: Carlos Ruiz ; "mapserver-users@lists.osgeo.org" > Sent: Mon, January 11, 2010 3:55:08 PM > Subject: RE: [mapserver-users] 5.6.1 version and labels > > > What does your layer def look like? What renderer are you using? > Are you setting a specific RESOLUTION? There may be some subtle sizing > changes but I haven’t run across anything significant yet. > > Before and after images are helpful too. > > Steve > > From:mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Carlos Ruiz > Sent: Monday, January 11, 2010 3:43 PM > To: mapserver-users@lists.osgeo.org > Subject: [mapserver-users] 5.6.1 version and labels > > Hi all, > > I have updated my Mapserver version from 5.4 to 5.6.0 (and later to 5.6.1 > because the queries). There's something odd with the labels because appears > bigger than i had defined. > > Does anybody knows why ? > > Thanks in advance > IC > Carlos Ruiz > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] cofigure problems on Ubuntu 9.10
I'm mostly sure that the configure script is right, because we use it on Ubuntu Karmic. You can see the the configure options used to build the package on karmic there: http://svn.debian.org/wsvn/pkg- grass/packages/mapserver/tags/5.6.0%2Bfinal-1/debian/rules I don't see "--with-png" in your config options... you should add it if you want the support. Otherwise, I suggest to take a look at the "config.log" file to see what's happen in detail. Hope this help. Alan On January 7, 2010 07:42:29 am Vasile Cristian Stan wrote: > Thanks Alan > > The packages are installed. > ii libjpeg62-dev 6b-14build1Development files for the IJG JPEG > library > ii libpng12-dev 1.2.37-1 PNG library - development > > Also, I tried to configure using another script presented here: > http://n2.nabble.com/Error-running-configure-on-a-Linux-machine-td3278036.h > tml#a3278036 , and with this script jpeg and png works but the rest of > packages are not included. > So, there are no problems with the packages, maybe the configuration script > is wrong. > > # Vasi > > Alan Boudreault wrote: > > I would suggest to verify with the dpkg command line if the packages > > > > |libpng12-dev and ||libjpeg62-dev |are installed. > > > > You can also take a look to these binarie packages: > > https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable , which > > contain mapserver 5.6.0. > > > > Alan > > > > luftadler wrote: > >> Hi everyone, > >> > >> I try to install MapServer 5.6.0, for the first time, on my machine > >> (using > >> Ubuntu 9.10). > >> The problem is that my configuration don't find few installed libraries > >> like: png and jpeg. > >> > >> My configuration script: > >> > >> ./configure \ > >> --enable-debug \ > >> --prefix=/usr \ > >> --with-xml2 \ > >> --with-pdf \ > >> --with-gd \ > >> --with-jpeg \ > >> --with-freetype \ > >> --with-agg \ > >> --with-eppl \ > >> --with-proj \ > >> --with-threads \ > >> --with-sde \ > >> --with-geos \ > >> --with-ogr \ > >> --with-gdal \ > >> --with-tiff \ > >> --with-postgis \ > >> --with-wfs \ > >> --with-wcs \ > >> --with-wmsclient \ > >> --with-wfsclient \ > >> --with-sos \ > >> --with-fribidi-config \ > >> --with-php=/usr/include/php5 \ > >> --with-httpd=/usr/sbin/apache2 \ > >> > >> __ > >> MapServer is now configured for > >> > >> -- Compiler Info - > >> C compiler:gcc -g -fPIC -Wall > >> C++ compiler: g++ -g -fPIC -Wall > >> Debug: -g > >> Generic NINT: > >> > >> -- Renderer Settings - > >> OpenGL support: > >> zlib support: -DUSE_ZLIB > >> png support: > >> palette rgba png support: > >> jpeg support: > >> iconv support: -DUSE_ICONV > >> AGG support: -DUSE_AGG > >> Cairo (SVG,PDF) support: > >> Ming(flash) support: > >> PDFLib support:-DUSE_PDF > >> > >> -- Support Libraries - > >> Proj.4 support:-DUSE_PROJ > >> Libxml2 support: -DUSE_LIBXML2 > >> FriBidi support: -DUSE_FRIBIDI > >> Curl support: -DUSE_CURL > >> FastCGI support: > >> Threading support: -DUSE_THREAD > >> GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY > >> > >> -- Data Format Drivers --- > >> native tiff support: -DUSE_TIFF > >> PostGIS support: -DUSE_POSTGIS > >> EPPL7 support: -DUSE_EPPL > >> ArcSDE support: > >> OGR support: -DUSE_OGR > >> GDAL support: -DUSE_GDAL > >> Oracle Spatial support: > >> > >> -- OGC Services -- > >> WMS Server:-DUSE_WMS_SVR > >> WMS Client:-DUSE_WMS_LYR > >> WFS Server:-DUSE_WFS_SVR > >> WFS Client:-DUSE_WMS_LYR > >> WCS Server:-DUSE_WCS_SVR > >> SOS Server:-DUSE_SOS_SVR > >> > >> -- MapScript - > >> PHP MapScript: yes > >> ___ > >> > >> #Vasi > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] cofigure problems on Ubuntu 9.10
I would suggest to verify with the dpkg command line if the packages |libpng12-dev and ||libjpeg62-dev |are installed. You can also take a look to these binarie packages: https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable , which contain mapserver 5.6.0. Alan luftadler wrote: Hi everyone, I try to install MapServer 5.6.0, for the first time, on my machine (using Ubuntu 9.10). The problem is that my configuration don't find few installed libraries like: png and jpeg. My configuration script: ./configure \ --enable-debug \ --prefix=/usr \ --with-xml2 \ --with-pdf \ --with-gd \ --with-jpeg \ --with-freetype \ --with-agg \ --with-eppl \ --with-proj \ --with-threads \ --with-sde \ --with-geos \ --with-ogr \ --with-gdal \ --with-tiff \ --with-postgis \ --with-wfs \ --with-wcs \ --with-wmsclient \ --with-wfsclient \ --with-sos \ --with-fribidi-config \ --with-php=/usr/include/php5 \ --with-httpd=/usr/sbin/apache2 \ __ MapServer is now configured for -- Compiler Info - C compiler:gcc -g -fPIC -Wall C++ compiler: g++ -g -fPIC -Wall Debug: -g Generic NINT: -- Renderer Settings - OpenGL support: zlib support: -DUSE_ZLIB png support: palette rgba png support: jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG Cairo (SVG,PDF) support: Ming(flash) support: PDFLib support:-DUSE_PDF -- Support Libraries - Proj.4 support:-DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: -DUSE_FRIBIDI Curl support: -DUSE_CURL FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -- Data Format Drivers --- native tiff support: -DUSE_TIFF PostGIS support: -DUSE_POSTGIS EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -- OGC Services -- WMS Server:-DUSE_WMS_SVR WMS Client:-DUSE_WMS_LYR WFS Server:-DUSE_WFS_SVR WFS Client:-DUSE_WMS_LYR WCS Server:-DUSE_WCS_SVR SOS Server:-DUSE_SOS_SVR -- MapScript - PHP MapScript: yes ___ #Vasi -- Alan Boudreault Mapgears http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Oracle Spatial layer has too many fields?
I experienced the same problem yesterday the column name was "LONG", which is an ORACLE reserved word too >:| . So for the record, never use "LONG" (which meant LONGITUDE" in my case) for a column name... even quoted... otherwise you'll experienced problems soon or later. Alan On December 16, 2009 01:35:44 pm Josh Hevenor wrote: > Thanks Alan, > I found the query in the log file and ran it through SqlDeveloper to see > the full query was valid. Nope! One of the new columns shared a name > with a reserved word. > > For now I'll rename the column to play nice. But, if MapServer quoted > the field name list it built then this case should be covered... > > select "f1", "f1", "GROUP" FROM (select * from someTable)... > > Sorry to bug everyone with this, > > Josh > > Alan Boudreault wrote: > > Hi Josh, > > > > May you add the directive "debug 5" at the map and layer levels in > > your mapfile to see what sql query is executed. You may have to add > > the directive "CONFIG "MS_ERRORFILE" "/tmp/mapserver.log"" to redirect > > the logs in a file. > > > > Alan > > > > On December 16, 2009 12:21:26 pm Josh Hevenor wrote: > > > Error: > > > > > > > > > > > > I was adding new fields to an Oracle Spatial layer, now having 61 > > > fields > > > > > > defined with > > > > > > > > > > > > geom from (select * from spatialTable) using ... > > > > > > > > > > > > Process > > > > > > > > > > > > $layer->qryByRect > > > > > > $layer->open > > > > > > For() > > > > > > $res=$layer->getResult > > > > > > $shp=$res->getShape // Fails, line 637 > > > > > > > > > > > > Error > > > > > > Fatal error: [MapServer Error]: msOracleSpatialLayerGetShape(): > > > > > > Error: ORA-00936: missing expression > > > > > > Query statement: SELECT field1, field2, field3,..., GEOM FROM > > > > > > (select * from spatialTable in C:\MSMap\genQuery.php on line > > > 637; > > > > > > > > > > > > I feel this query is getting cut off. > > > > > > If I redefine the layer using some specific subset of fields my query > > > > > > works again > > > > > > > > > > > > GEOM from (select field1, field2, ..., fieldX, geom from > > > > > > spatialTable)... X < 61 > > > > > > > > > > > > The code is old and has run solidly for a long time. The fields are > > > > > > new. Is there a limit on the number of fields/query string length in > > > > > > PHP mapscript? Any thoughts? > > > > > > > > > > > > Thanks in advance, > > > > > > > > > > > > Josh > > > > > > > > > > > > > > > > > > ___ > > > > > > mapserver-users mailing list > > > > > > mapserver-users@lists.osgeo.org > > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > Alan Boudreault > > > > Mapgears > > > > http://www.mapgears.com > > > > > > > > > > No virus found in this incoming message. > > Checked by AVG - www.avg.com > > Version: 8.5.427 / Virus Database: 270.14.110/2568 - Release Date: > > 12/16/09 08:02:00 > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Oracle Spatial layer has too many fields?
Hi Josh, May you add the directive "debug 5" at the map and layer levels in your mapfile to see what sql query is executed. You may have to add the directive "CONFIG "MS_ERRORFILE" "/tmp/mapserver.log"" to redirect the logs in a file. Alan On December 16, 2009 12:21:26 pm Josh Hevenor wrote: > Error: > > I was adding new fields to an Oracle Spatial layer, now having 61 fields > defined with > > geom from (select * from spatialTable) using ... > > Process > > $layer->qryByRect > $layer->open > For() > $res=$layer->getResult > $shp=$res->getShape// Fails, line 637 > > Error > Fatal error: [MapServer Error]: msOracleSpatialLayerGetShape(): > Error: ORA-00936: missing expression > Query statement: SELECT field1, field2, field3,..., GEOM FROM > (select * from spatialTable in C:\MSMap\genQuery.php on line 637; > > I feel this query is getting cut off. > If I redefine the layer using some specific subset of fields my query > works again > > GEOM from (select field1, field2, ..., fieldX, geom from > spatialTable)...X < 61 > > The code is old and has run solidly for a long time. The fields are > new. Is there a limit on the number of fields/query string length in > PHP mapscript? Any thoughts? > > Thanks in advance, > > Josh > > > _______ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt
The file name is not important. Theorically, ldconfig should read all those files and add it to its lib path. Unfortunately, I don't know much Fedora but it should work that way. Alan On December 11, 2009 12:55:24 pm Ted Spradley wrote: > Thanks Alan, and others. I realize my server admin skills are lacking. > > So, file.conf should be named 'lpam.conf' or 'libpam.conf'? (tried both, > then ldconfig as root ... still the same error) > > Ted S. > - Original Message - > From: Alan Boudreault [via OSGeo.org] > To: Ted Spradley > Sent: Friday, December 11, 2009 10:27 AM > Subject: Re: [mapserver-users] make error - version 5.6.0-rc1 - > /usr/bin/ld: cannot find -lxslt > > > You could simply add the path to ldconfig. Add a file.conf in > /etc/ld.so.conf.d/ which contains only a line with: /lib/ > > and type "ldconfig" as root. > > Alan > > On December 11, 2009 11:08:59 am Ted Spradley wrote: > > Stephen Woodbridge wrote: > > > http://www.google.com/#hl=en&source=hp&q=fedora+7+libpam > > > > > > -Steve > > > > Not having libpam doesn't appear to be the issue. It just can't find > > it. > > > > /usr/bin/ld: cannot find -lpam > > > > # locate libpam > > /lib/libpam.so.0 > > /lib/libpam.so.0.81.6 > > /lib/libpam_misc.so.0 > > /lib/libpam_misc.so.0.81.2 > > /lib/libpamc.so.0 > > /lib/libpamc.so.0.81.0 > > /root/psa/PSA_8.4.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8. > >4.0- fc7.build84080425.19.i586.rpm > > > > /root/psa/PSA_9.2.3/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-9. > >2.3 -fc7.build92091015.22.i586.rpm > > > > /swsoft/PSA_8.3.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8.3. > >0-f c7.build83071218.19.i586.rpm > > > > > > Is there any way to feed make the path for this library? > > > > Thanks, Ted S. > > ------- > --- > > View message @ > http://n2.nabble.com/make-error-version-5-6-0-rc1-usr-bin-ld-cannot-find-l > xslt-tp4148052p4152220.html To unsubscribe from Re: make error - version > 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt, click here. > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt
You could simply add the path to ldconfig. Add a file.conf in /etc/ld.so.conf.d/ which contains only a line with: /lib/ and type "ldconfig" as root. Alan On December 11, 2009 11:08:59 am Ted Spradley wrote: > Stephen Woodbridge wrote: > > http://www.google.com/#hl=en&source=hp&q=fedora+7+libpam > > > > -Steve > > Not having libpam doesn't appear to be the issue. It just can't find it. > > /usr/bin/ld: cannot find -lpam > > # locate libpam > /lib/libpam.so.0 > /lib/libpam.so.0.81.6 > /lib/libpam_misc.so.0 > /lib/libpam_misc.so.0.81.2 > /lib/libpamc.so.0 > /lib/libpamc.so.0.81.0 > /root/psa/PSA_8.4.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8.4.0- > fc7.build84080425.19.i586.rpm > /root/psa/PSA_9.2.3/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-9.2.3 > -fc7.build92091015.22.i586.rpm > /swsoft/PSA_8.3.0/dist-rpm-FedoraCore-7-i386/base/psa-libpam-plesk-8.3.0-f > c7.build83071218.19.i586.rpm > > > Is there any way to feed make the path for this library? > > Thanks, Ted S. > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Layer based on a view renders faster than if based on a table
Steve, Have you put the "DEBUG 5" directive at the layer level too ? Alan On December 8, 2009 09:36:27 am steve.tout...@inspq.qc.ca wrote: > Daniel, > I already set this in the mapfile > DEBUG 5 > CONFIG MS_ERRORFILE "/ms4w/logs/mapserver.log" > > I don't get the SQL query in the log though. > > [Tue Dec 08 09:33:56 2009].961000 msDrawMap(): Layer 17 (RSSincidCumul), > 0.390s > [Tue Dec 08 09:33:56 2009].992000 msDrawMap(): Drawing Label Cache, 0.031s > [Tue Dec 08 09:33:56 2009].992000 msDrawMap() total time: 0.421s > [Tue Dec 08 09:33:57 2009].8000 msSaveImage() total time: 0.016s > [Tue Dec 08 09:33:57 2009].24000 mapserv request processing time > (msLoadMap not incl.): 0.453s > [Tue Dec 08 09:33:57 2009].24000 msFreeMap(): freeing map at 01516C50. > > Steve Toutant, M. Sc. > Analyste en géomatique > Secteur environnement > Direction de la santé environnementale et de la toxicologie > Institut national de santé publique du Québec > 945, avenue Wolfe > Québec, Qc G1V 5B3 > Tél.: (418) 650-5115 #5281 > Fax.: (418) 654-3144 > steve.tout...@inspq.qc.ca > http://www.inspq.qc.ca > > > > > > Daniel Morissette @lists.osgeo.org > Envoyé par : mapserver-users-boun...@lists.osgeo.org > 04/12/2009 05:05 PM > > A > mapserver-users@lists.osgeo.org > cc > > Objet > Re: [mapserver-users] Layer based on a view renders faster than if based > on a table > > steve.tout...@inspq.qc.ca wrote: > > I thought that a layer definition based on a table would be much faster > > than on a view. > > What should be the expected behavior please? > > > > Please tell me is this should be asked to postgis forum. > > I'd suggest you capture the exact SQL query that is run in each case > (using DEBUG/MS_ERRORFILE) and check that the difference in time indeed > comes form the PostGIS queries. > > If that's the case then you could submit a question to the postgis list > based on that, taking MapServer out of the equation. > > If on the other hand the queries take about the same time and the time > difference is in MapServer's code (which I doubt) then we'd need more > details (ideally a testcase) to be able to reproduce and troubleshoot > the issue. > > Daniel > -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 5.6.0-rc1 released [Ubuntu package]
For those who are running a Ubuntu machine and would like to test the mapserver 5.6.0-rc1 release, you can simply add the following line in the "/etc/apt/sources.list" file: deb http://ppa.launchpad.net/ubuntugis/ubuntugis-testing/ubuntu main (Where codename is hardy, jaunty or karmic.) and type: sudo apt-get update && sudo apt-get install cgi-mapserver Alan Daniel Morissette wrote: MapServer 5.6.0-rc1 (release candidate 1) has just been released and is available for download at http://mapserver.org/download.html OR http://download.osgeo.org/mapserver/mapserver-5.6.0-rc1.tar.gz Please also keep an eye on the 5.4 to 5.6 Migration Guide where we are documenting migration issues for this release: http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT We have fixed the blocker issues that were holding the release, and hope that this release candidate can be promoted to final release next week if no blocker issues are found. Please test this release candidate with your applications. We need your help to ensure a high quality product, and you can help out by testing your applications with this release candidate and reporting your results. Thanks for your help The MapServer development team. Version 5.6.0-rc1 (2009-11-27): --- - Fixed a problem with shape-based queries against projected layers when using a tolerance (#3211) - Fixed long expression evaluation (#2123) - Added simplfy and topologyPreservingSimplify to MapScript (#2753) - Fixed Oracle FastCGI memory leak (#3187) - layer->project flag not being reset properly for drawquerylayer (#673 #2079) - OGC SLD: support multi-polygons geometries for filters embedded in an SLD (#3097) - [WMC] embedded SLD in context does not work with namespace prefix (#3115) - Support name aliases used in sld text symbolizer (#3114) - decode html and unicode entities for polygon truetype symbol fills (#3203) - Parse PropertyName parameter for wfs requests (#675) - Fixed when saving a map, layer->transform isn't written properly in all cases. (#3198) - Fixed buffer overflow in oracle spatial driver with large sql data (#2694) - Improve FastCGI include file finding logic (#3200) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users