Re: [mapserver-users] PHP SOAP extension depreciated in ms4w 3.0 beta7 ?

2010-01-28 Thread Alexander Bonatti
Hello Jeff,

I´ve succesfully downloaed and installed ms4w 3.0 beta10 with PHP soap ext.
What a effectiveness!
Thanks you very much,
Regards.


2010/1/27 Jeff McKenna jmcke...@gatewaygeomatics.com

 Alexander Bonatti wrote:

 Checking php extensions in this package (ms4w 3.0 beta7), i miss
 php_soap.dll.
 Why has been removed?  (since previous versions of ms4w have PHP compiled
 with this ext)



 Hello Alex,

 You should always use the MS4W email list for questions regarding MS4W
 (subscribe at
 http://lists.maptools.org/mailman/listinfo/ms4w-users)...otherwisehttp://lists.maptools.org/mailman/listinfo/ms4w-users%29...otherwisethe
  emails might be missed.  (beta9 was announced last night on that list,
 for example)

 Since MS4W 3.0 (and PHP 5.3.x) there were many changes, forcing us to
 compile PHP and all of its extensions manually, instead of using a
 ready-made archive.  It is possible that some extensions are missing; please
 report any problems using the MS4W issue tracker - I have created the
 ticket, which you can add yourself to its CC list and follow the progress (
 http://bugzilla.maptools.org/show_bug.cgi?id=2154).

 If you need any custom extension or changes to MS4W, faster than the
 release, you can always contact the Gateway Geomatics team for a custom
 build.

 Thanks.

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




-- 
Alexander Bonatti
Environment engineer and GIS-IT consultant
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Build Mapserver with OpenGL

2010-01-28 Thread Eduardo Almeida Costa
Hi! =)

I'm trying (and trying, and trying) to build Mapserver with OpenGL but I got
this errors:

mapogl.cpp: In function ‘int
msPopulateRendererVTableOGL(rendererVTableObj*)’:
mapogl.cpp:225: error: invalid conversion from ‘void (*)(imageObj*,
shapeObj*, colorObj*, double, int, double*)’ to ‘void (*)(imageObj*,
shapeObj*, strokeStyleObj*)’

mapogl.cpp:242: error: invalid conversion from ‘void (*)(imageObj*,
shapeObj*, void*)’ to ‘void (*)(imageObj*, shapeObj*, imageObj*)’
mapogl.cpp:243: error: invalid conversion from ‘void (*)(void*)’ to ‘void
(*)(imageObj*)’
make: ** [mapogl.o] Erro 1

My* .configure*:
# ./configure --enable-debug --with-php=/usr/include/php5
--with-httpd=/usr/sbin/apache2 --with-gd --with-libiconv=/usr --with-gd
--with-freetype=/usr --with-threads --with-tiff
--with-curl=/us/bin/curl-config --with-jpeg --with-proj=/usr/local
--with-geos=/usr/bin/geos-config --with-ogr=/usr/bin/gdal-config
--with-gdal=/usr/bin/gdal-config --with-wcs --with-wfsclient
--with-wmsclient --with-sos --with-ming=/usr/src/ming-0.4.2 --with-cairo
--with-fribidi-config=/usr/bin/fribidi-config --with-pdf --with-opengl
--with-ftgl
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for exp in -lm... yes
checking for __gxx_personality_v0 in -lstdc++... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strrstr... no
checking for strcasestr... yes
checking for strlcat... no
checking for vsnprintf... yes
MapServer Version from mapserver.h: '5.6.1'
checking if pkg-config path is provided... checking for pkg-config...
/usr/bin/pkg-config
configure: checking where FreeType 2.x is installed...
using libfreetype from -lfreetype -lz
configure: checking where Zlib is installed...
checking for zlibVersion in -lz... yes
using libz from system libs (-DUSE_ZLIB).
configure: checking where PNG is installed...
checking for png_init_io in -lpng... yes
using libpng from system libs.
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
using libjpeg from system libs.
configure: checking where libXpm is installed...
checking for XpmFreeXpmImage in -lXpm... yes
using libXpm from system libs.
configure: checking where libiconv is installed...
checking for iconv_open in -lc... yes
checking for libiconv_open in -liconv... no
checking for iconv_open in -liconv... no
using libiconv from -L/usr/lib -lc
libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.16 or higher...
checking for gdFontCacheSetup in -lgd... yes
using libgd 2.0.16 (or higher) from system libs (-L/usr/lib64 -lgd
-ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageOpenPolygon in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... yes
checking for gdImageSetResolution in -l... no
using GD ( -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) from system libs.
configure: checking whether we should include PDF support...
checking for PDF_setlinewidth in -lpdf... yes
checking for PDF_setrgbcolor in -lpdf... yes
checking for PDF_moveto in -lpdf... yes
checking for PDF_curveto in -lpdf... yes
checking for PDF_show_xy in -lpdf... yes
checking for PDF_load_font in -lpdf... yes
using libpdf from system libs.
checking if FTGL support requested... looking for ftgl libs in /usr
using ftgl from /usr
checking if OGL support requested... looking for opengl libs in /usr
./configure: line 9055: -L/usr/lib64: No such file or directory
using opengl from /usr
checking if AGG support requested... checking if RGBA palette png support
requested... no
configure: checking whether we should include EPPL7 support...

Re: [mapserver-users] Build Mapserver with OpenGL

2010-01-28 Thread thomas bonfort
don't enable opengl, it's not ready

--
thomas

On Thu, Jan 28, 2010 at 14:51, Eduardo Almeida Costa eud...@gmail.com wrote:
 Hi! =)

 I'm trying (and trying, and trying) to build Mapserver with OpenGL but I got
 this errors:

 mapogl.cpp: In function ‘int
 msPopulateRendererVTableOGL(rendererVTableObj*)’:
 mapogl.cpp:225: error: invalid conversion from ‘void (*)(imageObj*,
 shapeObj*, colorObj*, double, int, double*)’ to ‘void (*)(imageObj*,
 shapeObj*, strokeStyleObj*)’

 mapogl.cpp:242: error: invalid conversion from ‘void (*)(imageObj*,
 shapeObj*, void*)’ to ‘void (*)(imageObj*, shapeObj*, imageObj*)’
 mapogl.cpp:243: error: invalid conversion from ‘void (*)(void*)’ to ‘void
 (*)(imageObj*)’
 make: ** [mapogl.o] Erro 1

 My .configure:
 # ./configure --enable-debug --with-php=/usr/include/php5
 --with-httpd=/usr/sbin/apache2 --with-gd --with-libiconv=/usr --with-gd
 --with-freetype=/usr --with-threads --with-tiff
 --with-curl=/us/bin/curl-config --with-jpeg --with-proj=/usr/local
 --with-geos=/usr/bin/geos-config --with-ogr=/usr/bin/gdal-config
 --with-gdal=/usr/bin/gdal-config --with-wcs --with-wfsclient
 --with-wmsclient --with-sos --with-ming=/usr/src/ming-0.4.2 --with-cairo
 --with-fribidi-config=/usr/bin/fribidi-config --with-pdf --with-opengl
 --with-ftgl
 checking for gcc... gcc
 checking for C compiler default output file name... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for suffix of executables...
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ANSI C... none needed
 checking for g++... g++
 checking whether we are using the GNU C++ compiler... yes
 checking whether g++ accepts -g... yes
 checking for ranlib... ranlib
 checking for flex... flex
 checking for yywrap in -lfl... yes
 checking lex output file root... lex.yy
 checking whether yytext is a pointer... yes
 checking for bison... bison -y
 checking if compiler supports -R... no
 checking if compiler supports -Wl,-rpath,... yes
 checking for exp in -lm... yes
 checking for __gxx_personality_v0 in -lstdc++... yes
 checking how to run the C preprocessor... gcc -E
 checking for egrep... grep -E
 checking for ANSI C header files... yes
 checking for strcasecmp... yes
 checking for strncasecmp... yes
 checking for strdup... yes
 checking for strrstr... no
 checking for strcasestr... yes
 checking for strlcat... no
 checking for vsnprintf... yes
 MapServer Version from mapserver.h: '5.6.1'
 checking if pkg-config path is provided... checking for pkg-config...
 /usr/bin/pkg-config
 configure: checking where FreeType 2.x is installed...
     using libfreetype from -lfreetype -lz
 configure: checking where Zlib is installed...
 checking for zlibVersion in -lz... yes
     using libz from system libs (-DUSE_ZLIB).
 configure: checking where PNG is installed...
 checking for png_init_io in -lpng... yes
     using libpng from system libs.
 configure: checking whether we should include JPEG support...
 checking for jpeg_read_header in -ljpeg... yes
     using libjpeg from system libs.
 configure: checking where libXpm is installed...
 checking for XpmFreeXpmImage in -lXpm... yes
     using libXpm from system libs.
 configure: checking where libiconv is installed...
 checking for iconv_open in -lc... yes
 checking for libiconv_open in -liconv... no
 checking for iconv_open in -liconv... no
     using libiconv from -L/usr/lib -lc
     libiconv found. Enabling internationalization (-DUSE_ICONV)
 configure: checking for GD 2.0.16 or higher...
 checking for gdFontCacheSetup in -lgd... yes
     using libgd 2.0.16 (or higher) from system libs (-L/usr/lib64 -lgd
 -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
 checking for gdImageCreate in -lgd... yes
 checking for gdImageGif in -lgd... yes
 checking for gdImagePng in -lgd... yes
 checking for gdImageJpeg in -lgd... yes
 checking for gdImageWBMP in -lgd... yes
 checking for gdImageStringFT in -lgd... yes
 checking for gdImageOpenPolygon in -lgd... yes
 checking for gdImageGifPtr in -lgd... yes
 checking for gdFontGetTiny in -lgd... yes
 checking for gdImageSetResolution in -l... no
     using GD ( -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) from system libs.
 configure: checking whether we should include PDF support...
 checking for PDF_setlinewidth in -lpdf... yes
 checking for PDF_setrgbcolor in -lpdf... yes
 checking for PDF_moveto in -lpdf... yes
 checking for PDF_curveto in -lpdf... yes
 checking for PDF_show_xy in -lpdf... yes
 checking for PDF_load_font in -lpdf... yes
     using libpdf from system libs.
 checking if FTGL support requested... looking for ftgl libs in /usr
 using ftgl from /usr
 checking if OGL support requested... looking for opengl libs in /usr
 ./configure: line 

Re: [mapserver-users] Build Mapserver with OpenGL

2010-01-28 Thread Eduardo Almeida Costa
Thanks, Thomas.

I'll not enable.

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


RE: [mapserver-users] De-coupling legend from class name

2010-01-28 Thread Fawcett, David (MPCA)
I can't speak to the rendering question.  Class order does matter if you are 
using expressions to determine which features belong in each class.  If you 
have a feature with a column value that could match an expression in multiple 
classes, it will always end up in the first class that it matches.

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of ni...@maich.gr
Sent: Thursday, January 28, 2010 1:53 AM
To: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] De-coupling legend from class name

Thanx Steve and David,

A title attribute would be really useful. Consider it a feature request,
or tell me and I'll submit it;-)

I'll use David's solution to resolve this for now, but as he points out we
now have to keep track of class hierarchy, which does not seem too bad.

OTOH, does class order within a layer have any significance, as for
instance layer order/rendering order has in the mapfile?

thanx again,

nick


 I hope to see this fixed in 6.0. There was a attribute named 'title' added
 to classes years ago but it's never been hooked up...

 Steve

 
 From: mapserver-users-boun...@lists.osgeo.org
 [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Fawcett, David
 (MPCA) [david.fawc...@state.mn.us]
 Sent: Wednesday, January 27, 2010 9:05 AM
 To: ni...@maich.gr; mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] De-coupling legend from class name

 Nick,

 Just as you did with 'style[0]', you can reference a layer or class by
 it's numeric index.  This gives you the flexibility to change the class
 name, but now you need to know which class it is based on order (index).

 http://mapserver.org/cgi/controls.html?highlight=Example%203#using-mapserver-version-5

 This is for MapServer version 5.0 or greater.

 David.

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of
 ni...@maich.gr
 Sent: Wednesday, January 27, 2010 7:03 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] De-coupling legend from class name

 Hello,

 It's been a while since I've been using MS and I have the following q or
 observation.

 AFAIU, MS only supports run-time substitution for the following parameters

 *   LAYER: DATA (must validate against DATAPATTERN)
 *   LAYER: TILEINDEX
 *   LAYER: CONNECTION
 *   LAYER: FILTER
 *   CLASS EXPRESSION

 Layer color is not in this list.
 So, in order to permit a user to change the layer colors of his map I am
 using the map_object_property type syntax passed to the cgi as, for
 example when using a select for picking colors...


 input type=checkbox name=layer value=TOWNS hecked=checkedTOWNS;

 select name=map.layer[TOWNS].class[VILLAGES].style[0] id=VILLAGES
 size=1 onChange=change_layer_color('TOWNS') blah, blah..

 where I pass the color to style[0]

 While this works fine, I'm coupling my interface to the name of the class
 for the layer in question.

 Should I want for some reason change the class name from VILLAGES to
 NEIGHBORHOODS, (cause class name is coupled to the legend) I would have to
 change my template as well as the mapfile. This gets messy and is a bear
 to maintain..

 Is there a better way of doing this, or decouple legend name from the
 class name

 regards,

 nick


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


[mapserver-users] Feature code Filteritem

2010-01-28 Thread Tom Nash

I am successfully using GetFeatureInfo which is correctly returning the
results in the format: GetFeaturesInfo results: Layer 'layer01' Feature 5:
Region = 'Scotland'. What I would like to do is use the returned Feature
code (in this instance 5) and use it as a Filter in a later call. However
what is the FilterItem for this unique spatial id or can only attributes be
queried through the FilterItem?
Thanks.
-- 
View this message in context: 
http://n2.nabble.com/Feature-code-Filteritem-tp4474513p4474513.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] Python mapscript throwing PostGIS support is not available error

2010-01-28 Thread Roger André
Hi All,

I'm getting kinda stumped by this error.  I'm running MapServer-5.6.0,
Python 2.6, postgresql-8.4.2, and postgis-1.4.1 on an Ubuntu 9.10 box.  I've
compiled mapserver with PostGIS support...

$ /usr/lib/cgi-bin/mapserv -v
MapServer version 5.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE

and I'm able to make a regular old mode=map request via cgi to a layer
that is coming from PostGIS.  However, when I try to access the same layer
via Python mapscript, I get the following error:

_mapscript.MapServerError: msDrawMap(): Image handling error. Failed to draw
layer named 'roadsPG'.
msPostGISLayerOpen(): General error message. PostGIS support is not
available.

I had omitted to include Postgis support in my MapServer build initially,
but did a make clean and rebuilt it.  I also re-ran the Python mapscript
install afterwards.  Is there something else I need to do to clean out the
old mapscript module?  I'm no distutils expert, so any help would be
appreciated.

Thanks,

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


[mapserver-users] Projection and mapquery

2010-01-28 Thread Morten Sickel
I presently have a set up in which I plot some measurements on some background 
maps. Things work fine, but I want to add the possibility to query the 
measurement data set by clicking on a measurement. The measurements have 
coordinates in lat lon and I only manage to query those data if I plot the 
entire map in the same projection. I have tried to reproject the query point 
using code like

$mapproj=$map-getProjection();
$layerproj=$map-getlayerbyname('mobil')-getProjection();
if($mapproj!=$layerproj){
$mapproj=ms_newProjectionObj($mapproj);
$layerproj=ms_newProjectionObj($layerproj);
debug(array($geopoint-x,$geopoint-y));
$geopoint-project($mapproj, $layerproj); 
// projects the point from the projection of the map to the projection 
of layer
debug(array($geopoint-x,$geopoint-y));
} 

 the debug function just dumps the data and it is clear that the point is 
correctly reprojected, but anyhow 
$map-queryByPoint($geopoint, MS_MULTIPLE, 1); 
never gives anything if the mobil-layer and the map are in different 
projections. 

Are there any ways to overcome this? As I am mostly working on maps from 60 deg 
north and upwards, geographical projection is not the projection of choise and 
I would prefer not having to reproject the measurement data.

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


[mapserver-users] RE: Projection and mapquery

2010-01-28 Thread Lime, Steve D (DNR)
What version are we talking?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Morten Sickel
Sent: Thursday, January 28, 2010 12:37 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Projection and mapquery

I presently have a set up in which I plot some measurements on some background 
maps. Things work fine, but I want to add the possibility to query the 
measurement data set by clicking on a measurement. The measurements have 
coordinates in lat lon and I only manage to query those data if I plot the 
entire map in the same projection. I have tried to reproject the query point 
using code like

$mapproj=$map-getProjection();
$layerproj=$map-getlayerbyname('mobil')-getProjection();
if($mapproj!=$layerproj){
$mapproj=ms_newProjectionObj($mapproj);
$layerproj=ms_newProjectionObj($layerproj);
debug(array($geopoint-x,$geopoint-y));
$geopoint-project($mapproj, $layerproj); 
// projects the point from the projection of the map to the projection 
of layer
debug(array($geopoint-x,$geopoint-y));
} 

 the debug function just dumps the data and it is clear that the point is 
correctly reprojected, but anyhow 
$map-queryByPoint($geopoint, MS_MULTIPLE, 1); 
never gives anything if the mobil-layer and the map are in different 
projections. 

Are there any ways to overcome this? As I am mostly working on maps from 60 deg 
north and upwards, geographical projection is not the projection of choise and 
I would prefer not having to reproject the measurement data.

M.___
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] Re: Python mapscript throwing PostGIS support is not available error

2010-01-28 Thread Roger André
Well, I've fixed this, but I had to remove the entire build dir and
recompile.  I'm guessing that when ./configure is run the first time, it
creates some sort of mapscript file used later by distutils when Python
mapscript is built.  I can't prove it, and I don't have the time to keep
re-testing, but it appears that neither running make clean, or recompiling
makes a difference once that file is present.
--

On Thu, Jan 28, 2010 at 10:18 AM, Roger André ran...@gmail.com wrote:

 Hi All,

 I'm getting kinda stumped by this error.  I'm running MapServer-5.6.0,
 Python 2.6, postgresql-8.4.2, and postgis-1.4.1 on an Ubuntu 9.10 box.  I've
 compiled mapserver with PostGIS support...

 $ /usr/lib/cgi-bin/mapserv -v
 MapServer version 5.6.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
 OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
 SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
 SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
 INPUT=SHAPEFILE

 and I'm able to make a regular old mode=map request via cgi to a layer
 that is coming from PostGIS.  However, when I try to access the same layer
 via Python mapscript, I get the following error:

 _mapscript.MapServerError: msDrawMap(): Image handling error. Failed to
 draw layer named 'roadsPG'.
 msPostGISLayerOpen(): General error message. PostGIS support is not
 available.

 I had omitted to include Postgis support in my MapServer build initially,
 but did a make clean and rebuilt it.  I also re-ran the Python mapscript
 install afterwards.  Is there something else I need to do to clean out the
 old mapscript module?  I'm no distutils expert, so any help would be
 appreciated.

 Thanks,

 Roger
 --

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


[mapserver-users] SV: Projection and mapquery

2010-01-28 Thread Morten Sickel
Sorry, forgot to say 

mapserver version 5.2.2 from osgeo4w php 5.2.5 if that matters


Morten


Fra: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] p#229; vegne av Morten Sickel 
[morten.sic...@nrpa.no]
Sendt: 28. januar 2010 19:37
Til: mapserver-users@lists.osgeo.org
Emne: [mapserver-users] Projection and mapquery

I presently have a set up in which I plot some measurements on some background 
maps. Things work fine, but I want to add the possibility to query the 
measurement data set by clicking on a measurement. The measurements have 
coordinates in lat lon and I only manage to query those data if I plot the 
entire map in the same projection. I have tried to reproject the query point 
using code like

$mapproj=$map-getProjection();
$layerproj=$map-getlayerbyname('mobil')-getProjection();
if($mapproj!=$layerproj){
$mapproj=ms_newProjectionObj($mapproj);
$layerproj=ms_newProjectionObj($layerproj);
debug(array($geopoint-x,$geopoint-y));
$geopoint-project($mapproj, $layerproj);
// projects the point from the projection of the map to the projection 
of layer
debug(array($geopoint-x,$geopoint-y));
}

 the debug function just dumps the data and it is clear that the point is 
correctly reprojected, but anyhow
$map-queryByPoint($geopoint, MS_MULTIPLE, 1);
never gives anything if the mobil-layer and the map are in different 
projections.

Are there any ways to overcome this? As I am mostly working on maps from 60 deg 
north and upwards, geographical projection is not the projection of choise and 
I would prefer not having to reproject the measurement data.

M.___
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] How to serve individual RAW binary Bands from WCS as floating point geotiff

2010-01-28 Thread Rahkonen Jukka
Hi,

How have you defined the OUTPUTFORMAT for GEOTIFF_FLOAT?

-Jukka Rahkonen-


Peter Willis wrote:

 
 Hello,

 I have been setting up a WCS map file for mapserver.

 PROBLEM:

 Problems arise when rasters are defined
 as follows:

LAYER
   NAME SomeDataChannel120
   STATUS OFF
   DEBUG ON
   TYPE RASTER ### required
   PROCESSING BANDS=120
   METADATA
 wcs_label   Data/stuff
 wcs_rangeset_name   'bands'
 wcs_rangeset_label  Stuff thats mapped
 ows_extent '-135 55 -121 46'
 wcs_resolution '0.08332 -0.083332'
 ows_srs 'EPSG:4326'
 wcs_srs 'EPSG:4326'
 wcs_formats 'GEOTIFF_FLOAT,GEOTIFF_INT16'
 wcs_nativeformat 'ENVI'
#wcs_bandcount '563'
 wcs_rangeset_axes 'bands'
   END
   DATA /data/stuff.img
   PROJECTION
 init=epsg:4623
   END
   DUMP TRUE ### required
END


I have  'wcs_bandcount'  commented out because mapserver
causes an internal error in the web server if I define the
band count.

I get floating point geotiff served with the following client request:
http://sparky.com/cgi-bin/wcs?REQUEST=GetCoverageSERVICE=WCSVERSION=1.0.0COVERAGE=SomeDataChannel120CRS=EPSG:4326BBOX=-135,55,-121,46WIDTH=432HEIGHT=216FORMAT=GEOTIFF_FLOATRangeSubset=contents:nearest[Band[120]]

..however, I always only get the first band from the img file


QUESTIONS:

Is there a problem with this setup?

Do I need to define each band as a layer in the mapfile
or will mapserver WCS allow the client to request a single
channel?

Thanks for any enlightenment,

Peter
___
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] How to serve individual RAW binary Bands from WCS as floating point geotiff

2010-01-28 Thread Peter Willis

Hello,

The definition of GEOTIFF_FLOAT is as follows:

OUTPUTFORMAT
  NAME GEOTIFF_FLOAT
  DRIVER GDAL/GTiff
  MIMETYPE application/octet-stream
  IMAGEMODE FLOAT32
END

I Added the MIMETYPE as shown to ensure that web browsers
would ask to save the file rather than just open it in an
image viewer from a temp file. (MS Windows...)

That part works fine.


Mostly I am concerned with extracting a specific 'band'
from the multi-band file. The server serves floating point
geotiff just fine.

Peter


Rahkonen Jukka wrote:

Hi,

How have you defined the OUTPUTFORMAT for GEOTIFF_FLOAT?

-Jukka Rahkonen-


Peter Willis wrote:

 

Hello,



I have been setting up a WCS map file for mapserver.



PROBLEM:



Problems arise when rasters are defined
as follows:


LAYER
   NAME SomeDataChannel120
   STATUS OFF
   DEBUG ON
   TYPE RASTER ### required
   PROCESSING BANDS=120
   METADATA
 wcs_label   Data/stuff
 wcs_rangeset_name   'bands'
 wcs_rangeset_label  Stuff thats mapped
 ows_extent '-135 55 -121 46'
 wcs_resolution '0.08332 -0.083332'
 ows_srs 'EPSG:4326'
 wcs_srs 'EPSG:4326'
 wcs_formats 'GEOTIFF_FLOAT,GEOTIFF_INT16'
 wcs_nativeformat 'ENVI'
#wcs_bandcount '563'
 wcs_rangeset_axes 'bands'
   END
   DATA /data/stuff.img
   PROJECTION
 init=epsg:4623
   END
   DUMP TRUE ### required
END


I have  'wcs_bandcount'  commented out because mapserver
causes an internal error in the web server if I define the
band count.

I get floating point geotiff served with the following client request:
http://sparky.com/cgi-bin/wcs?REQUEST=GetCoverageSERVICE=WCSVERSION=1.0.0COVERAGE=SomeDataChannel120CRS=EPSG:4326BBOX=-135,55,-121,46WIDTH=432HEIGHT=216FORMAT=GEOTIFF_FLOATRangeSubset=contents:nearest[Band[120]]

..however, I always only get the first band from the img file


QUESTIONS:

Is there a problem with this setup?

Do I need to define each band as a layer in the mapfile
or will mapserver WCS allow the client to request a single
channel?

Thanks for any enlightenment,

Peter

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


[mapserver-users] Mapserver Dbox Draw Map

2010-01-28 Thread Eric Weisbender
I'm Using Mapserver Dbox and was wondering if there was a function that would 
keep the map from redrawing when I click on it.  Any Ideas would be greatly 
appreciated.  Thanks in advance.

EW

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


Re: [mapserver-users] How to serve individual RAW binary Bands fromWCS as floating point geotiff

2010-01-28 Thread Rahkonen Jukka
Hi,

I have never used this myself: RangeSubset=contents:nearest[Band[120]]
Is that WCS 1.0.0 parameter?  For selecting bands from WCS 1.0.0 service I have 
been using something like 
RESAMPLE=BILINEARBand=4

-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Peter Willis
Lähetetty: pe 29.1.2010 0:26
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] How to serve individual RAW binary Bands fromWCS as 
floating point geotiff
 
Hello,

The definition of GEOTIFF_FLOAT is as follows:

OUTPUTFORMAT
   NAME GEOTIFF_FLOAT
   DRIVER GDAL/GTiff
   MIMETYPE application/octet-stream
   IMAGEMODE FLOAT32
END

I Added the MIMETYPE as shown to ensure that web browsers
would ask to save the file rather than just open it in an
image viewer from a temp file. (MS Windows...)

That part works fine.


Mostly I am concerned with extracting a specific 'band'
from the multi-band file. The server serves floating point
geotiff just fine.

Peter


Rahkonen Jukka wrote:
 Hi,
 
 How have you defined the OUTPUTFORMAT for GEOTIFF_FLOAT?
 
 -Jukka Rahkonen-
 
 
 Peter Willis wrote:
 
  
 Hello,
 
 I have been setting up a WCS map file for mapserver.
 
 PROBLEM:
 
 Problems arise when rasters are defined
 as follows:
 
 LAYER
NAME SomeDataChannel120
STATUS OFF
DEBUG ON
TYPE RASTER ### required
PROCESSING BANDS=120
METADATA
  wcs_label   Data/stuff
  wcs_rangeset_name   'bands'
  wcs_rangeset_label  Stuff thats mapped
  ows_extent '-135 55 -121 46'
  wcs_resolution '0.08332 -0.083332'
  ows_srs 'EPSG:4326'
  wcs_srs 'EPSG:4326'
  wcs_formats 'GEOTIFF_FLOAT,GEOTIFF_INT16'
  wcs_nativeformat 'ENVI'
 #wcs_bandcount '563'
  wcs_rangeset_axes 'bands'
END
DATA /data/stuff.img
PROJECTION
  init=epsg:4623
END
DUMP TRUE ### required
 END
 
 
 I have  'wcs_bandcount'  commented out because mapserver
 causes an internal error in the web server if I define the
 band count.
 
 I get floating point geotiff served with the following client request:
 http://sparky.com/cgi-bin/wcs?REQUEST=GetCoverageSERVICE=WCSVERSION=1.0.0COVERAGE=SomeDataChannel120CRS=EPSG:4326BBOX=-135,55,-121,46WIDTH=432HEIGHT=216FORMAT=GEOTIFF_FLOATRangeSubset=contents:nearest[Band[120]]
 
 ..however, I always only get the first band from the img file
 
 
 QUESTIONS:
 
 Is there a problem with this setup?
 
 Do I need to define each band as a layer in the mapfile
 or will mapserver WCS allow the client to request a single
 channel?
 
 Thanks for any enlightenment,
 
 Peter
___
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