Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread Alan Boudreault

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

2013-09-27 Thread Alan Boudreault

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

2013-09-27 Thread Alan Boudreault

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] MapServer 6.4 Released

2013-09-24 Thread Alan Boudreault

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

2013-05-03 Thread Alan Boudreault

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...

2012-11-14 Thread Alan Boudreault
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

2012-09-07 Thread Alan Boudreault

Ubuntu package is available for precise in testing PPA:

https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/+packages?field.name_filter=field.status_filter=publishedfield.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 corrigendum 2.0.1 (
https://github.com/mapserver/mapserver

Re: [mapserver-users] Python MapScript compile error

2012-07-05 Thread Alan Boudreault
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 ?

2012-06-04 Thread Alan Boudreault
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 ?

2012-06-01 Thread Alan Boudreault

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?

2012-05-24 Thread Alan Boudreault
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] Mapserv stopped running after upgrade to trunk

2012-02-28 Thread Alan Boudreault
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: Mapserv stopped running after upgrade to trunk

2012-02-28 Thread Alan Boudreault

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] Re: Problem with Mapserver 6.0.1 and PHP Mapscript

2012-02-17 Thread 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

2012-02-17 Thread Alan Boudreault
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] php_mapscript.so library

2012-02-13 Thread Alan Boudreault
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

2012-02-09 Thread Alan Boudreault
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

2012-02-09 Thread Alan Boudreault
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] Compiling Mapserver

2012-02-06 Thread Alan Boudreault

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

2012-01-22 Thread Alan Boudreault

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

2011-10-21 Thread Alan Boudreault

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] Mapscript and Python

2011-09-23 Thread Alan Boudreault
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 pyshell#0, line 1, in module
 import mapscript
   File C:\Python26\lib\site-packages\mapscript.py, line 25, in module
 _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: [mapserver-users] XML mapfile

2011-08-19 Thread Alan Boudreault
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] XML mapfile

2011-08-19 Thread Alan Boudreault
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] MapServer 6.0.0-rc2 release

2011-05-06 Thread Alan Boudreault
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

2011-04-29 Thread Alan Boudreault
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

2011-04-29 Thread Alan Boudreault
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] MapServer 6.0.0-rc1 release

2011-04-28 Thread Alan Boudreault
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

2011-04-21 Thread Alan Boudreault
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

2011-04-14 Thread Alan Boudreault
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?

2011-04-11 Thread Alan Boudreault
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 download (at download.osgeo.org) failure

2011-04-01 Thread Alan Boudreault
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

2011-03-31 Thread Alan Boudreault
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

2011-03-29 Thread Alan Boudreault
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]
 lt;ml-node+6192878-452004863-270...@n2.nabble.comgt;
 To: aznan lt;g...@email.comgt;
 Sent: Mon, Mar 21, 2011 5:26 pm
 Subject: Re: Restrict WMS operations
 
 
 On 11-03-21 1:01 PM, aznan wrote:
 
 gt; Hi!
 gt; I'm a new Mapserver user and I'm trying to figure out how to make my
 WMS
 gt; server only accept GetCapabilities and GetMap requests.
 gt;
 gt; The documentation at http://mapserver.org/ogc/wms_server.html says
 that gt; GetLegendGraphic requires a LEGEND object in the map file. I've
 been looking
 gt; at the examples in the OGC workshop and I tried to remove LEGEND from
 gt; config.map but GetLegendGraphic still shows up in the capabilities
 response
 gt; and a request still returns the blue squiggly line and 'Rivers' image.
 I
 gt; don't even know where to begin restricting GetFeatureInfo and the
 other gt; operations.
 gt;
 gt; 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

2011-03-24 Thread Alan Boudreault
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!

2011-03-09 Thread Alan Boudreault
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

2010-12-21 Thread Alan Boudreault
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

2010-11-30 Thread Alan Boudreault
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

2010-11-30 Thread Alan Boudreault
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

2010-11-30 Thread Alan Boudreault
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 aboudrea...@mapgears.com 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

2010-11-30 Thread Alan Boudreault
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 aboudrea...@mapgears.com 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 aboudrea...@mapgears.com 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] issue with the issue tracker

2010-10-12 Thread Alan Boudreault
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

2010-10-12 Thread Alan Boudreault
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
 
 aboudrea...@mapgears.com 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] MapServer Resolution - how to set the parameter dynamically

2010-10-05 Thread Alan Boudreault
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

2010-09-27 Thread Alan Boudreault
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

2010-09-22 Thread Alan Boudreault
Hmm... very strange. Although I am not able to reprodude it under Unix It 
seems to be an Oracle bug.

On September 22, 2010 03:35:38 am Jorge Bellido Diez wrote:
 We reproduced the same problem doing requets to the OCG Services using
 OpenLayers 2.8 or gvSig 1.1.2 Doing a getfeatureinfo to a Oracle layer of
 an WMS Service or getfeatrue to a Oracle layer of an WFS Service the
 Oracle Server produce a log file and a dump memory. Then I coud see
 duplicates values in my primary key, furthermore primary index still
 points to old data even though the user has no UPDATE-GRANTS. This
 behavior seems to be random
 
 These are our configuration:
 - MS4W 3.0 Beta 10
 - MapServer 5.6.1
 - Personal Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
 
 This is the way we declare an Oracle Layer in the map file:
 
 LAYER
   STATUS ON
   CONNECTIONTYPE oraclespatial
   CONNECTION admcarto/admca...@ora10gex
   NAME PoligonosSigpac
   PROJECTION
   init=epsg:23030
   END
 
   TYPE POLYGON
   METADATA
   wms_title   Poligonos Sigpac 
 2009
   wms_srs EPSG:23030
   wms_namepoligonos
   wms_server_version  1.1.1
   wms_format  image/png
   wms_transparent true
   wms_extent  47 470 61 
 482
   END
 
   DATA GEOMETRY FROM (SELECT * FROM GV_SIGPAC_POL_ED50) USING 
 UNIQUE 
gid
 SRID 82337
 
   CLASS
   NAME Poligonos
   STYLE
   OUTLINECOLOR 178 0 255
   END
   TEMPLATE ttt_query.html
   END
 END
 --
 
 This is a little portion of one of this log files with the error code:
 
 Dump file f:\oracle\admin\ora10gex\udump\ora10gex_ora_1408.trc
 Wed Sep 01 12:56:09 2010
 ORACLE V10.2.0.1.0 - 64bit Production vsnsta=0
 vsnsql=14 vsnxtr=3
 Personal Oracle Database 10g Release 10.2.0.1.0 - 64bit Production With the
 Partitioning, OLAP and Data Mining options Windows NT Version V5.2 Service
 Pack 2 CPU : 2 - type 8664, 1 Physical Cores
 Process Affinity: 0x
 Memory (Avail/Total): Ph:1786M/4031M, Ph+PgF:5772M/7808M Instance name:
 ora10gex
 
 Redo thread mounted by this instance: 1
 
 Oracle process number: 19
 
 Windows thread id: 1408, image: ORACLE.EXE (SHAD)
 
 
 *** SERVICE NAME:(ORA10GEX) 2010-09-01 12:56:09.919
 *** SESSION ID:(159.12216) 2010-09-01 12:56:09.919
 ** Internal heap ERROR 17182 addr=07FF985DDC24 *
 * Dump of memory around addr 07FF985DDC24:
 7FF985DCC20  3CC3093F 090E2C10 09474557  [?...,..WEG.]
 7FF985DCC30 535005C4 44511B43 3CC3093F 152B2D10  [..PSC.QD?...-+.]
 
 ..
 ..
 ..
 
 Permanent space=  1732608
 **
  Hla: 255
 *** 2010-09-01 12:56:10.966
 ksedmp: internal or fatal error
 ORA-00600: internal error code, arguments: [17182], [0x7FF985DDC24], [],
 [], [], [], [], [] Current SQL statement for this session: SELECT gid,
 TER_HIST, AREA, PERIMETRO, GID, PROVINCIA, GEOMETRY FROM (SELECT * FROM
 GT_PROVINCIAS_ED50) WHERE SDO_FILTER( GEOMETRY, MDSYS.SDO_GEOMETRY(2003,
 :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates
 ),'querytype=window') = 'TRUE' - Call Stack Trace -
 calling  call entryargument values in hex
 location type point(? means dubious value)
   
 
 
 ..
 ..
 ..
 
 
 
 Thanks, Jorge.
 
 
 -Mensaje original-
 De: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de Sumit Sharma
 Enviado el: miércoles, 15 de septiembre de 2010 17:05 Para:
 mapserver-users@lists.osgeo.org
 Asunto: [mapserver-users] Re: Problems with MapServer and Oracle Spatial
 
 
 Thanks for you response.
 As suggested by you I have created a ticket.
 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

Re: [mapserver-users] Re: Problems with MapServer and Oracle Spatial

2010-09-15 Thread Alan Boudreault
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.

2010-09-08 Thread Alan Boudreault
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*):
 
 ?php
 $map = ms_newMapObj(/map/apache/htdocs/map/mapsql.map);
 $image=$map-draw();
 $image_url=$image-saveImage(\\tmp);
 ?
 
 HTML
 
 HEAD
 TITLEExample 1: Displaying a map/TITLE
 /HEAD
 
 BODY
 br
 IMG SRC=?php echo $image_url; ? 
 /BODY
 
 /HTML
 
 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] Question about oracle spatial configuration change

2010-07-14 Thread Alan Boudreault
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 your_table_name ? 

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] cannot find -lmfhdf

2010-07-13 Thread Alan Boudreault
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] compilation problem

2010-07-13 Thread Alan Boudreault
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 aboudrea...@mapgears.com:
  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


Re: [mapserver-users] Mapserver 5.6.3 compile error

2010-06-10 Thread Alan Boudreault
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!]

2010-06-03 Thread Alan Boudreault
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
 
 dmorisse...@mapgears.com wrote:
  Christian Jauvin wrote:
  I did what you suggested, and added:
 
  CONFIG MS_ERRORFILE error file
  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!]

2010-06-02 Thread Alan Boudreault
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
 
 dmorisse...@mapgears.com wrote:
  Christian Jauvin wrote:
  I did what you suggested, and added:
 
  CONFIG MS_ERRORFILE error file
  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

2010-05-04 Thread Alan Boudreault
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

2010-04-10 Thread Alan Boudreault

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 mapscript

2010-03-25 Thread Alan Boudreault
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.br;
 
  //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 'table cellspacing=0 cellpadding=2 border=1 tr';
   foreach($attr as $name=$wert) {
echo 'td bgcolor=#CC'.$name.'/td';
   }
   echo '/tr';
 
   //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 'tr id=row'.$si.' ';
foreach($attr as $name=$wert) {
 echo 'td'.$wert.'/td';
}
echo '/tr';
$shpobj-free();
   }
   $query_layer-close();
   echo '/table';
 
 } // 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] PHP MapScript: shape-classindex is always 0

2010-03-25 Thread Alan Boudreault
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:
 
 ?php
 $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: 0classindex: 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

2010-03-25 Thread Alan Boudreault
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 aboudrea...@mapgears.com
 To: mapserver-users@lists.osgeo.org
 Cc: Sven Schroeter schroe...@netgis.de
 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.br;
 
   //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 'table cellspacing=0 cellpadding=2 border=1 tr';
foreach($attr as $name=$wert) {
 echo 'td bgcolor=#CC'.$name.'/td';
}
echo '/tr';
 
//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 'tr id=row'.$si.' ';
 foreach($attr as $name=$wert) {
  echo 'td'.$wert.'/td';
 }
 echo '/tr';
 $shpobj-free();
}
$query_layer-close();
echo '/table';
 
  } // 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] help with AGG support

2010-03-24 Thread Alan Boudreault
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_cacheint’
 /usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named ‘row_data’
  in ‘class mapserv_row_ptr_cacheint’
 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] help with AGG support

2010-03-24 Thread Alan Boudreault
With mapserver 5.6.3, could you try to open the mapstring.c file and add the 
following include at the line 40:
#include errno.h 

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
 
 aboudrea...@mapgears.comwrote:
  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_cacheint’
   /usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named
   ‘row_data’ in ‘class mapserv_row_ptr_cacheint’
   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] Map file xsl transformation and regular expressions

2010-03-22 Thread Alan Boudreault
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:
expression type=CONSTANT583/expression or expression583/expression 
will be quoted.
expression type=REGEX/...//expression and 
expression type=MSEXPR(...)/expression will not be quoted.

symbol examples:
symbol type=NAMEstar.gif/symbol will be quoted
symbol type=ID32/symbol 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
 
 aboudrea...@mapgears.comwrote:
  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:
 
  expression regex=ON/expression
 
  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

2010-03-22 Thread Alan Boudreault
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, expression583/expression will not be quoted with the current
 stylesheet.
 
 Thanks!
 
 On Mon, Mar 22, 2010 at 12:04 PM, Alan Boudreault
 
 aboudrea...@mapgears.comwrote:
  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:
  expression type=CONSTANT583/expression or
  expression583/expression
  will be quoted.
  expression type=REGEX/...//expression and
  expression type=MSEXPR(...)/expression will not be quoted.
 
  symbol examples:
  symbol type=NAMEstar.gif/symbol will be quoted
  symbol type=ID32/symbol 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
  
   aboudrea...@mapgears.comwrote:
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:
   
expression regex=ON/expression
   
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

2010-03-19 Thread Alan Boudreault
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:

expression regex=ON/expression

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

2010-03-03 Thread Alan Boudreault

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

2010-02-25 Thread Alan Boudreault
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

2010-02-19 Thread Alan Boudreault
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

2010-01-29 Thread Alan Boudreault
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=nqueryimgext=-60.70866644902204+-31.64842730088904+-
 60.7026972983+-31.644427300889028
 
 - mapext=shapes  -
 
 imgxy=367+133imgbox=367+133+473+249imgsize=829+552layers=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

2010-01-25 Thread 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
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] resolution

2010-01-25 Thread Alan Boudreault
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 aboudrea...@mapgears.com
 
  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

2010-01-25 Thread Alan Boudreault
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 jmcke...@gatewaygeomatics.com
 
  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] PHP mapscript recenter problem

2010-01-22 Thread Alan Boudreault
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

2010-01-13 Thread Alan Boudreault
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] php error

2010-01-13 Thread Alan Boudreault
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] 5.6.1 version and labels

2010-01-12 Thread Alan Boudreault
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 aboudrea...@mapgears.com
 To: mapserver-users@lists.osgeo.org
 Cc: Carlos Ruiz boolean10...@yahoo.com; Lime, Steve D (DNR)
  steve.l...@state.mn.us 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) steve.l...@state.mn.us
  To: Carlos Ruiz boolean10...@yahoo.com;
  mapserver-users@lists.osgeo.org 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

2010-01-12 Thread Alan Boudreault
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 aboudrea...@mapgears.com
 
 To: Carlos Ruiz boolean10...@yahoo.com
 Cc: mapserver-users mapserver-users@lists.osgeo.org
 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 aboudrea...@mapgears.com
  To: mapserver-users@lists.osgeo.org
  Cc: Carlos Ruiz boolean10...@yahoo.com; Lime, Steve D (DNR)
   steve.l...@state.mn.us 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) steve.l...@state.mn.us
   To: Carlos Ruiz boolean10...@yahoo.com;
   mapserver-users@lists.osgeo.org 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

2010-01-07 Thread Alan Boudreault
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

2010-01-06 Thread Alan Boudreault
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?

2009-12-16 Thread Alan Boudreault
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 bC:\MSMap\genQuery.php/b 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] Oracle Spatial layer has too many fields?

2009-12-16 Thread Alan Boudreault
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 bC:\MSMap\genQuery.php/b 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] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt

2009-12-11 Thread Alan Boudreault
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=ensource=hpq=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] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt

2009-12-11 Thread Alan Boudreault
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=ensource=hpq=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] Layer based on a view renders faster than if based on a table

2009-12-08 Thread Alan Boudreault
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 dmorisse...@mapgears.com@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]

2009-11-30 Thread Alan Boudreault
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 
codename 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


Re: [mapserver-users] Question on MapServer tutorials

2009-11-03 Thread Alan Boudreault
Hi Graham,

The map parameter is always an absolute path to the mapfile. Not a relative or 
a web path (alias) neither. Currently, you are using a Unix system path. You 
should use the proper Windows path in the URL:

http://...?map=C:\ms4w\apps\tutorial\mapfiles\a_mapfile.mapotherOption=...

Alan

On November 3, 2009 06:47:54 am graham_allan wrote:
 Dear all,
 
 
 
 I'm currently trying to follow the MapServer tutorials
 http://mapserver.org/tutorial/example1-1.html#example1-1  by Pericles S.
 Nacionales, I have successful downloaded and installed both the tutorial
 data and MS4W http://maptools.org/ms4w/  distribution but when I try the
 URL in the first example
 http://mapserver.org/tutorial/example1-1.html#example1-1  I get the
 following error:
 
 
 
 msLoadMap(): Unable to access file.
 (/ms4w/apps/tutorial/htdocs/example1-1.map)
 
 
 
 I'm running Windows Vista and have amended the example1-1.map file in
 C:\ms4w\apps\tutorial\mapfiles as required.
 
 
 
 If I amend the URL to:
 
 
 
 http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/mapfiles/examp
 l e1-1.map
 http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/mapfiles/exam
 p le1-1.maplayer=statesmode=map layer=statesmode=map
 
 
 
 The map is displayed as shown in the tutorial, however, I'm not sure if the
 problem is due to a configuration error on may part or whether the URL in
 the tutorial is wrong (this seems unlikely).
 
 
 
 Does anybody know which configuration files/options I need to amend?
 
 
 
 
 
 
 
 
 
 Thanks
 
 
 
 
 
 Graham
 
 
 
 
 
 Crowder  Co Ltd, Registered Office: Post Office House, 99-105 Argyle
  Street, Birkenhead, Merseyside, CH41 6AD. Telephone: 0151 647 7772
 Registered in England and Wales, No. 3003604. VAT No. GB618952020
 This e-mail is confidential and intended solely for the use of the
  individual to whom it is addressed.  Any views or opinions presented are
  solely those of the author and do not necessarily represent those of
  Crowder  Co Ltd. If you are not the intended recipient of this e-mail you
  may not copy, use, forward or disclose its contents to any other person ;
  please delete the message and attachments from your system.
 
 For more information visit our web site at http://www.crowderconsult.co.uk
 

-- 
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 on MapServer tutorials

2009-11-03 Thread Alan Boudreault
Graham,

After verification, it seems that apache is able to handle path like 
/ms4w/dir1 without the C:/. It is supposed to assume that the hard drive 
asked is the same that the web server is running.

Alan

On November 3, 2009 07:04:54 am Alan Boudreault wrote:
 Hi Graham,
 
 The map parameter is always an absolute path to the mapfile. Not a relative
  or a web path (alias) neither. Currently, you are using a Unix system
  path. You should use the proper Windows path in the URL:
 
 http://...?map=C:\ms4w\apps\tutorial\mapfiles\a_mapfile.mapotherOption=...
 
 Alan
 
 On November 3, 2009 06:47:54 am graham_allan wrote:
  Dear all,
 
 
 
  I'm currently trying to follow the MapServer tutorials
  http://mapserver.org/tutorial/example1-1.html#example1-1  by Pericles
  S. Nacionales, I have successful downloaded and installed both the
  tutorial data and MS4W http://maptools.org/ms4w/  distribution but when
  I try the URL in the first example
  http://mapserver.org/tutorial/example1-1.html#example1-1  I get the
  following error:
 
 
 
  msLoadMap(): Unable to access file.
  (/ms4w/apps/tutorial/htdocs/example1-1.map)
 
 
 
  I'm running Windows Vista and have amended the example1-1.map file in
  C:\ms4w\apps\tutorial\mapfiles as required.
 
 
 
  If I amend the URL to:
 
 
 
  http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/mapfiles/exa
 mp l e1-1.map
  http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/mapfiles/ex
 am p le1-1.maplayer=statesmode=map layer=statesmode=map
 
 
 
  The map is displayed as shown in the tutorial, however, I'm not sure if
  the problem is due to a configuration error on may part or whether the
  URL in the tutorial is wrong (this seems unlikely).
 
 
 
  Does anybody know which configuration files/options I need to amend?
 
 
 
 
 
 
 
 
 
  Thanks
 
 
 
 
 
  Graham
 
 
 
 
 
  Crowder  Co Ltd, Registered Office: Post Office House, 99-105 Argyle
   Street, Birkenhead, Merseyside, CH41 6AD. Telephone: 0151 647 7772
  Registered in England and Wales, No. 3003604. VAT No. GB618952020
  This e-mail is confidential and intended solely for the use of the
   individual to whom it is addressed.  Any views or opinions presented are
   solely those of the author and do not necessarily represent those of
   Crowder  Co Ltd. If you are not the intended recipient of this e-mail
  you may not copy, use, forward or disclose its contents to any other
  person ; please delete the message and attachments from your system.
 
  For more information visit our web site at
  http://www.crowderconsult.co.uk
 

-- 
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] PPH Mapscript - limit to number of shape objects in a layer?

2009-10-24 Thread Alan Boudreault
That's what I suspected too. I'm not sure if there is a reason why you 
keep ALL lineObj and shapeObj in arrays... but maybe you could try 
something like this:


$i = 0;
foreach($qresult as $row) {
$ln = ms_newLineObj();

$X = $row[1];
$Y = $row[2];
$ln-addXY($X-1000,$Y-1000);
$ln-addXY($X+1000,$Y-1000);
$ln-addXY($X+1000,$Y+1000);
$ln-addXY($X-1000,$Y+1000);
$ln-addXY($X-1000,$Y-1000);

$shp = ms_newShapeObj(MS_SHAPE_POLYGON);

$shp-add($ln);
$shp-set(index, $row[0]);

$layerPoi-addFeature( $shp );
 $i++;
}

This will of course reduce the memory usage of your script ... if you 
don't need all those lineObj and shapeObj arrays. (You can always get 
the shapeObjs of the layer again later)


Alan

Alan Hale wrote:
I've just figured out that this is a PHP memory limit issue - raising 
the limit in php.ini to 128M from the default 32M fixes the problem.


But can anyone suggest a more memory-efficient way of coding the 
addition of square polygons to a dynamic layer?


Many thanks

Alan



Alan Hale wrote:

Hi Alan

Thanks for the reply. I'm displaying the map image via Overlib and so 
not getting any error messages- just no image. I know the limit is 
11528 just by setting LIMIT on the database query and iterating to 
the max value. I've been trying to debug the script that generates 
the image but this is proving more difficult than I thought since 
various parameters are passed via Overlib so I will have to insert 
some dummy values.


Hope to get back with more information later.

Regards

Alan

Alan Boudreault wrote:

Hi Alan,

What's happen when you reach 11528? Is is a PHP error or a mapserver 
error ? Could you show us the error?


Alan

On October 23, 2009 11:30:00 am Alan Hale wrote:
 

Hi

I'm using PHP Mapscript to construct a layer with 2km square polygons
based on coordinates from a database query - thus:


$i = 0;
foreach($qresult as $row) {
$ln[$i] = ms_newLineObj();

$X = $row[1];
$Y = $row[2];
$ln[$i]-addXY($X-1000,$Y-1000);
$ln[$i]-addXY($X+1000,$Y-1000);
$ln[$i]-addXY($X+1000,$Y+1000);
$ln[$i]-addXY($X-1000,$Y+1000);
$ln[$i]-addXY($X-1000,$Y-1000);

$shp[$i] = ms_newShapeObj(MS_SHAPE_POLYGON);

$shp[$i]-add($ln[$i]);
$shp[$i]-set(index, $row[0]);

$layerPoi-addFeature( $shp[$i] );
 $i++;

This seems to work fine UNTIL the query result reaches more than 11528
rows (this number is exact). Is there a limit? Am I expecting too much
 here?

Many thanks

Alan Hale


__ Information from ESET Smart Security, version of virus 
signature

 database 4536 (20091023) __

The message was checked by ESET Smart Security.

http://www.eset.com


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




  




__ Information from ESET Smart Security, version of virus 
signature database 4537 (20091023) __


The message was checked by ESET Smart Security.

http://www.eset.com


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

__ Information from ESET Smart Security, version of virus 
signature database 4537 (20091023) __


The message was checked by ESET Smart Security.

http://www.eset.com








__ Information from ESET Smart Security, version of virus 
signature database 4537 (20091023) __


The message was checked by ESET Smart Security.

http://www.eset.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] PHP Mapscript delivers map with larger extent than requested

2009-10-24 Thread Alan Boudreault

Hi Chuck,

I don't know exactly how your mapserver request is and what parameters 
your pass through... but I would suggest you do a quick test by adding 
the following repository to your Ubuntu system (hopefully you are 
running under hardy, intrepid or jaunty):

https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable

That repository has MapServer 5.4.2. I would say that if your unknow 
application uses the same extent unit (meter, degree, etc..) than your 
MapServer mapfile... the extent should be respected.


Alan

Chuck Jungmann wrote:

I am a new user of MapServer, using version 5.0.3 from the Ubuntu
repositories.  I attempted to compile everything from source, had some
trouble, then decided to use the repository shortcut at least until I
understood how the application works.

I am writing an application where the browser requests a map by setting
the src attribute of an img object.  Identifying locations on the
resulting map requires that the application knows the extent.

I calculate the extent of the map from various values, and use the same
algorithms on the server so the browser and the server agree on the
dimensions without having to negotiate.  However, when I request the map
from MapServer, the extent of the resulting map is always larger (both x
and y dimensions) than what I requested, although still centered on the
same point.

Is this behavior normal (I don't want to beat my head against the wall
searching for an irrelevant math error)?  Is there some setting that
might cause MapServer to more closely match my requested extent?  Could
this be an error that was fixed in a more recent version of MapServer?

Any words of wisdom would be appreciated.

Chuck Jungmann

___
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] PPH Mapscript - limit to number of shape objects in a layer?

2009-10-23 Thread Alan Boudreault
Hi Alan,

What's happen when you reach 11528? Is is a PHP error or a mapserver error ? 
Could you show us the error?

Alan

On October 23, 2009 11:30:00 am Alan Hale wrote:
 Hi
 
 I'm using PHP Mapscript to construct a layer with 2km square polygons
 based on coordinates from a database query - thus:
 
 
 $i = 0;
 foreach($qresult as $row) {
 $ln[$i] = ms_newLineObj();
 
 $X = $row[1];
 $Y = $row[2];
 $ln[$i]-addXY($X-1000,$Y-1000);
 $ln[$i]-addXY($X+1000,$Y-1000);
 $ln[$i]-addXY($X+1000,$Y+1000);
 $ln[$i]-addXY($X-1000,$Y+1000);
 $ln[$i]-addXY($X-1000,$Y-1000);
 
 $shp[$i] = ms_newShapeObj(MS_SHAPE_POLYGON);
 
 $shp[$i]-add($ln[$i]);
 $shp[$i]-set(index, $row[0]);
 
 $layerPoi-addFeature( $shp[$i] );
  $i++;
 
 This seems to work fine UNTIL the query result reaches more than 11528
 rows (this number is exact). Is there a limit? Am I expecting too much
  here?
 
 Many thanks
 
 Alan Hale
 
 
 __ Information from ESET Smart Security, version of virus signature
  database 4536 (20091023) __
 
 The message was checked by ESET Smart Security.
 
 http://www.eset.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] Installing PHP Mapscript

2009-10-15 Thread Alan Boudreault
If your PHP if pre-installed you'll need to install the developpement 
package... which contain header files etc..

In example: the php5 developpement package on a Ubuntu distribution is called: 
php5-dev

Alan

On October 15, 2009 11:37:07 am Alan Hale wrote:
 I'm a little confused by this. If I understand correctly the mapserver
 configure script will generate a php_mapscript.so if you use
 --with-php=DIR. But it seems DIR here is the directory of PHP source.
 What if PHP is pre-installed? Is this possible to do? Or am I completely
 misunderstanding?
 
 Many thanks
 
 Alan Hale
 
 
 __ Information from ESET Smart Security, version of virus signature
  database 4510 (20091015) __
 
 The message was checked by ESET Smart Security.
 
 http://www.eset.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] mapserver 5.6beta1: mindistance notworkingproperly?

2009-10-09 Thread Alan Boudreault
Hi Michael,

A similar problem has already been reported. tbonfort, danmo and I are 
currently working on that.

http://trac.osgeo.org/mapserver/ticket/3157

Thanks
Alan

On October 9, 2009 06:46:43 am Michael Schulz wrote:
 Hi Steve, Hi Alan,
 
 while I was trying to put together a test case, I realized where the
 problem is: the use of sizeunits! The labels were drawn with sizeunits
 set to meters, so it seems that the calculation of the distance of the
 labels in pixel in this case goes wrong . Maybe this information helps
 to find out, what causes the effect.
 
 Cheers, Michael
 
 2009/10/2 Michael Schulz msch...@webgis.de:
  Hi Steve, Hi Alan,
 
  exactly, that was the change I also noted in trac. When I realized the
  effect, I reverted the last condition in maplabel.c. line 515, to its
  previous state, only comparing the distance of the points with
  mindistance. With the expected results, that I even got some more
  labels. So basically the change is working, but I see a lot more
  labels than with 54.
 
  Here are three screenshots of the effect:
  - http://img35.imageshack.us/img35/7871/mindistlabelsms54.png
  - http://img39.imageshack.us/img39/1130/mindistlabelsms56.png
  - http://img32.imageshack.us/img32/5196/mindistlabelsms56wolabe.png
  (MS56 without taking the labelsize into account)
 
  The maps are based on the osm data example, and as you can see it
  renders flawlessly with mapserver 54. Maybe someone who also uses this
  example can have a try with mapserv56 and see if it is the same. The
  mindistance used is 150 px. The calls to images were getMap requests.
 
  Thanks, Michael
 
  2009/10/1 Steve Lime steve.l...@dnr.state.mn.us:
  Michael, can you describe the effect you're seeing? The change Alan
  refers to should cause you to see fewer labels but your original message
  leads me to believe that's not the case. If you remove that option with
  the 5.6 beta does the map look different?
 
  Steve
 
  Alan Boudreault aboudrea...@mapgears.com 10/01/09 10:49 AM 
 
  In fact, that ticket changed the label distance calculation. Before,
  only the distance between label1 point and label2 point was calculated.
  Now, the label size is taken into account for the distance calculation.
  So, we are now sure that there is really the mindistance value between
  our labels.
 
  Thanks,
  Alan
 
  On October 1, 2009 10:20:11 am Alan Boudreault wrote:
  Hi,
 
  Could you check that ticket please:
  http://trac.osgeo.org/mapserver/ticket/3050
 
  Let me informed.
 
  Thanks,
  Alan
 
  On October 1, 2009 10:12:57 am Steve Lime wrote:
   I'm not aware of any changes in that area of the code although
   something tells me there was a small change but will try and create a
   test case. Thanks for the testing...
  
   Steve
  
Michael Schulz msch...@webgis.de 09/30/09 5:32 AM 
  
   Hi,
  
   thanks for the 5.6 beta1. I'm pretty curious about the new mapfile
   xml-format.
  
   I have a mapfile that uses MINDISTANCE in label objects, the maps and
   labels are generated fine with mapserver- 5.4, with
   mapserver-5.6-beta1 the MINDISTANCE value seems not to be taken into
   account. Can anyone confirm this behaviour?
  
   Cheers, Michael
 
  --
  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 mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
  --
  ~
  Aufwind durch Wissen!
 
  Qualifizierte Open Source Schulungen bei der
  http://www.foss-akademie.de/
  ~
 
  ---
  Michael Schulz
  msch...@webgis.de
 
  in medias res
  Gesellschaft für Informationstechnologie mbH
 
  +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++
 
  Schwimmbadstraße 2
  D-79100  Freiburg i. Br.
 
  Tel:  +49 (0)761 705798-102
  Tel:  +49 (0)761 705798-0
  Fax: +49 (0)761 705798-09
 
  +++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++
 
  http://www.webgis.de / http://www.zopecms.de
  --
  Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
  Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
 

-- 
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] To compile module libmapsript.so for Java

2009-10-05 Thread Alan Boudreault
Take a look at the README file in mapscript/java/ directory.

Alan

On October 4, 2009 01:09:15 am joel ml wrote:
 hello to all, I have a question, I am making a program in Java and I want
  to use the functionalities of Mapserver, specifically I want to know as I
  compile libmapscript.so from the code source, on the platform Fedora 11.
 
 please any aid is welcome I need, it to migrate the program that I am doing
  in Windows to Linux.
 
 * already it installs swig 1.3.4, fgs 5.4.
 
 
   Yahoo! Cocina
 
 Encontra las mejores recetas con Yahoo! Cocina.
 
 
 http://ar.mujer.yahoo.com/cocina/
 ___
 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.6beta1: mindistance not workingproperly?

2009-10-01 Thread Alan Boudreault
Hi,

Could you check that ticket please: 
http://trac.osgeo.org/mapserver/ticket/3050

Let me informed.

Thanks,
Alan

On October 1, 2009 10:12:57 am Steve Lime wrote:
 I'm not aware of any changes in that area of the code although something
 tells me there was a small change but will try and create a test case.
 Thanks for the testing...
 
 Steve
 
  Michael Schulz msch...@webgis.de 09/30/09 5:32 AM 
 
 Hi,
 
 thanks for the 5.6 beta1. I'm pretty curious about the new mapfile
 xml-format.
 
 I have a mapfile that uses MINDISTANCE in label objects, the maps and
 labels are generated fine with mapserver- 5.4, with
 mapserver-5.6-beta1 the MINDISTANCE value seems not to be taken into
 account. Can anyone confirm this behaviour?
 
 Cheers, Michael
 

-- 
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.6beta1: mindistance not workingproperly?

2009-10-01 Thread Alan Boudreault
In fact, that ticket changed the label distance calculation. Before, only the 
distance between label1 point and label2 point was calculated. Now, the label 
size is taken into account for the distance calculation. So, we are now sure 
that there is really the mindistance value between our labels. 

Thanks,
Alan 

On October 1, 2009 10:20:11 am Alan Boudreault wrote:
 Hi,
 
 Could you check that ticket please:
 http://trac.osgeo.org/mapserver/ticket/3050
 
 Let me informed.
 
 Thanks,
 Alan
 
 On October 1, 2009 10:12:57 am Steve Lime wrote:
  I'm not aware of any changes in that area of the code although something
  tells me there was a small change but will try and create a test case.
  Thanks for the testing...
 
  Steve
 
   Michael Schulz msch...@webgis.de 09/30/09 5:32 AM 
 
  Hi,
 
  thanks for the 5.6 beta1. I'm pretty curious about the new mapfile
  xml-format.
 
  I have a mapfile that uses MINDISTANCE in label objects, the maps and
  labels are generated fine with mapserver- 5.4, with
  mapserver-5.6-beta1 the MINDISTANCE value seems not to be taken into
  account. Can anyone confirm this behaviour?
 
  Cheers, Michael
 

-- 
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] Python

2009-07-28 Thread Alan Boudreault
Hi  Mohammed,

See comments below...

On July 28, 2009 10:33:58 am Mohammed Rashad wrote:
 Why python mapscript is not used as php mapscript??
PHP is just a lot more popular/easier than python for dynamic websites. I 
think this is the only reason.

 What are problems using python mapscript??
There is no problem...

 If i am using python mapscript can i develop an webgis interface which can
 perform faster than interfaces built on php-mapscripts such as
 cartoweb,ka-map etc...
There is a no significant performance gain between the two languages.

 Can i get more speed with python mapscript apps..
I don't understand your question.. if the performance of your application 
would be very important, you wouldn't choice a mapscript binding.


 Is there any benefit in moving from php to python??
Of course... the use of python itself. ;)


 anybody please help
 Any suggestion are always welcomed..

 Thanks in advance

Alan

-- 
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] Python

2009-07-28 Thread Alan Boudreault
What about OpenLayers ?

On July 28, 2009 02:14:41 pm Mohammed Rashad wrote:
 On Tue, Jul 28, 2009 at 10:34 PM, Alan Boudreault

 aboudrea...@mapgears.comwrote:
  Hi  Mohammed,
 
  See comments below...
 
  On July 28, 2009 10:33:58 am Mohammed Rashad wrote:
   Why python mapscript is not used as php mapscript??
 
  PHP is just a lot more popular/easier than python for dynamic websites. I
  think this is the only reason.
 
   What are problems using python mapscript??
 
  There is no problem...
 
   If i am using python mapscript can i develop an webgis interface which
 
  can
 
   perform faster than interfaces built on php-mapscripts such as
   cartoweb,ka-map etc...
 
  There is a no significant performance gain between the two languages.
 
   Can i get more speed with python mapscript apps..
 
  I don't understand your question.. if the performance of your
  application
  would be very important, you wouldn't choice a mapscript binding.

 I need a webgis interface which is used in areas with low bandwidth such as
 30kb/s browsing speed. so webgis interface should display maps easily. I
 used cartoweb in my last project
  http://keralainfo.web4all.in/ . But it takes a lot time to open website. 
 I also tried KaMap. That's why i thought of changing to python mapscript.
 Both of these uses php mapscript. Changing to python will help me???
 I googled python vs php and got positive response for python. I search and
 found no webgis interface built on python. So i decided to develop one
 application.
 I want to know that python mapscript interface can reduce the problems
 relating to speed which is low in other interfaces...

 If all these cant solve my problem , then using mapserver in CGI mode will
 help?


 Thanks in advance

   Is there any benefit in moving from php to python??
 
  Of course... the use of python itself. ;)
 
   anybody please help
   Any suggestion are always welcomed..
  
   Thanks in advance
 
  Alan
 
  --
  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] unable to access the map file

2009-06-29 Thread Alan Boudreault
Hi,

If you are sure that the path is good, did you check the file permissions? 
Does the mapfile can be read by your web application user ?
 
Alan

On June 29, 2009 11:13:04 am Suman Chatterjee wrote:
 Hi all,

 I have just started using mapserver. It was running well till last week.
 The Itasca application was also running. But all of a sudden the
 application is not working. Although the maps are being created in the
 temp folder but it is not being displayed in the browser. I tried with
 typing

 http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\mapserver
 demo\workshop\itasca.mapmode=map



 But it is displaying the error message



 msLoadMap(): Unable to access file.
 (C:\ms4w\Apache\htdocs\mapserverdemo\workshop\itasca.map).



 I tried by changing the backslash to forward slash in the path but I am
 still getting the same error message.



 I don't know what is going wrong.

 Any help in this regard will be highly appreciated. I require to solve
 it urgently.



 Thanks

 Suman


 ***
 This e-mail and any files or
 attachments transmitted with it contains Information that is confidential
 and privileged. This document may contain Protected Health Information
 (PHI) or other information that is intended only for the use of the
 individual(s) and entity(ies) to whom it is addressed. If you are the
 intended recipient, further disclosures are prohibited without proper
 authorization. If you are not the intended recipient, any disclosure,
 copying, printing, or use of this information is strictly prohibited and
 possibly a violation of federal or state law and regulations. If you have
 received this information in error, please delete it and notify Hamid
 Khaleghipour at 972-450-2868 immediately. 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] unable to access the map file

2009-06-29 Thread Alan Boudreault
Honestly, I don't really remember how file permissions are handled under 
Windows. There is surely a GUI that you can access via right click - 
property on the file or something like that. You should verify if the 
others than the file owner can read the file. You could have to check  the 
tree directory, maybe it's a directory that have a restricted permission.

Alan

On June 29, 2009 01:01:51 pm Suman Chatterjee wrote:
 Hi Alan,
 My map file cannot be read by the web application user. But how to
 correct it? I am using IE 7. What is the user account for web
 application user in case of Apache?
 I am looking forward for your reply.
 Thanks
 Suman
 -Original Message-
 From: Alan Boudreault [mailto:aboudrea...@mapgears.com]
 Sent: Monday, June 29, 2009 10:22 AM
 To: mapserver-users@lists.osgeo.org
 Cc: Suman Chatterjee
 Subject: Re: [mapserver-users] unable to access the map file

 Hi,

 If you are sure that the path is good, did you check the file
 permissions?
 Does the mapfile can be read by your web application user ?

 Alan

 On June 29, 2009 11:13:04 am Suman Chatterjee wrote:
  Hi all,
 
  I have just started using mapserver. It was running well till last

 week.

  The Itasca application was also running. But all of a sudden the
  application is not working. Although the maps are being created in the
  temp folder but it is not being displayed in the browser. I tried with
  typing

 http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\mapserver

  demo\workshop\itasca.mapmode=map
 
 
 
  But it is displaying the error message
 
 
 
  msLoadMap(): Unable to access file.
  (C:\ms4w\Apache\htdocs\mapserverdemo\workshop\itasca.map).
 
 
 
  I tried by changing the backslash to forward slash in the path but I

 am

  still getting the same error message.
 
 
 
  I don't know what is going wrong.
 
  Any help in this regard will be highly appreciated. I require to solve
  it urgently.
 
 
 
  Thanks
 
  Suman

 
 ***

  This e-mail and any files or
  attachments transmitted with it contains Information that is

 confidential

  and privileged. This document may contain Protected Health Information
  (PHI) or other information that is intended only for the use of the
  individual(s) and entity(ies) to whom it is addressed. If you are the
  intended recipient, further disclosures are prohibited without proper
  authorization. If you are not the intended recipient, any disclosure,
  copying, printing, or use of this information is strictly prohibited

 and

  possibly a violation of federal or state law and regulations. If you

 have

  received this information in error, please delete it and notify Hamid
  Khaleghipour at 972-450-2868 immediately. 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] mapscript memory

2009-05-20 Thread Alan Boudreault
Hi Charlotte,

This is a known issue with PHP Mapscript. With the way the object are 
currently made, complex objects (that have references to other object, like 
mapObj) are not properly freed when we delete the php object. Note that the 
memory is well freed as soon as the php script ends.

Thanks,
Alan

On May 20, 2009 08:03:41 am Charlotte Declercq wrote:
 Hello,

 I have a problem releasing the memory of mapscript objects.
 My php script :


 echo memory_get_usage() . br;
 $Directory=/applications/carmen/data/PACA3/Publication/;
 $oMap =
 @ms_newMapObj($Directory./environnement_testsymbols_sauvegarde_racine.map
);

 echo memory_get_usage() . br;
 unset($oMap);
 echo memory_get_usage() . br;

 The results :
 98688
 176360
 176600

 So it seems that the $oMap object hasn't been released from memory.

 Can anyone help on this?

 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] change mouse icon style on the specified layer

2009-05-20 Thread Alan Boudreault
Hi meenu,

MapServer returns an image to your browser. At this point, there is no more 
layers. That's only an image. You cannot bind any browser mouse event to a 
specific country or area. You would need OpenLayers + a Vector layer to do 
that.

Thanks,
Alan

On May 20, 2009 08:07:16 am meenu wrote:
 dears ...can anybody help me to change mouse pointer icon as handshape icon
 when the mouse is on the top of the point layersis it possible?

 LAYER
NAME n_123 
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION n_123 .TAB
STATUS ON
LABELITEM PLO_900 
CLASS
   STYLE
   COLOR 255 0 0
   OUTLINECOLOR 0 0 0
   SYMBOL 'ball'
 END
 LABEL
 COLOR 100 100 255
 FONT arial
 TYPE TRUETYPE
 SIZE 7
 POSITION LC
 WRAP  
 END#LABEL
   END# CLASS
   END#LAYER

 -
 Meenu


-- 
Alan Boudreault
Mapgears
http://www.mapgears.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


  1   2   >